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
670 READLINE_TEXI_INCFLAG
700 INSTALL_STRIP_PROGRAM
721 NEXT_AS_FIRST_DIRECTIVE_STRING_H
723 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
725 GL_GENERATE_STDDEF_H_FALSE
726 GL_GENERATE_STDDEF_H_TRUE
803 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
805 UINT64_MAX_EQ_ULONG_MAX
806 UINT32_MAX_LT_UINTMAX_MAX
809 INT64_MAX_EQ_LONG_MAX
810 INT32_MAX_LT_INTMAX_MAX
820 GL_GENERATE_STDINT_H_FALSE
821 GL_GENERATE_STDINT_H_TRUE
830 HAVE_SIGNED_SIG_ATOMIC_T
833 BITSIZEOF_SIG_ATOMIC_T
836 APPLE_UNIVERSAL_BUILD
840 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
844 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
849 HAVE_UNSIGNED_LONG_LONG_INT
851 GL_COND_LIBTOOL_FALSE
898 MAINTAINER_MODE_FALSE
927 program_transform_name
938 ac_subst_files
='host_makefile_frag'
940 enable_option_checking
941 enable_maintainer_mode
944 enable_dependency_tracking
945 with_separate_debug_dir
947 with_relocated_sources
948 with_auto_load_safe_path
974 enable_build_warnings
975 enable_gdb_build_warnings
983 ac_precious_vars
='build_alias
997 ac_subdirs_all
='testsuite
1002 # Initialize some variables set by options.
1004 ac_init_version
=false
1005 ac_unrecognized_opts
=
1006 ac_unrecognized_sep
=
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file
=/dev
/null
1016 program_transform_name
=s
,x
,x
,
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir
='${exec_prefix}/bin'
1031 sbindir
='${exec_prefix}/sbin'
1032 libexecdir
='${exec_prefix}/libexec'
1033 datarootdir
='${prefix}/share'
1034 datadir
='${datarootdir}'
1035 sysconfdir
='${prefix}/etc'
1036 sharedstatedir
='${prefix}/com'
1037 localstatedir
='${prefix}/var'
1038 includedir
='${prefix}/include'
1039 oldincludedir
='/usr/include'
1040 docdir
='${datarootdir}/doc/${PACKAGE}'
1041 infodir
='${datarootdir}/info'
1046 libdir
='${exec_prefix}/lib'
1047 localedir
='${datarootdir}/locale'
1048 mandir
='${datarootdir}/man'
1054 # If the previous option needs an argument, assign it.
1055 if test -n "$ac_prev"; then
1056 eval $ac_prev=\
$ac_option
1062 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066 # Accept the important Cygnus configure options, so we can diagnose typos.
1068 case $ac_dashdash$ac_option in
1072 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1074 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1075 bindir
=$ac_optarg ;;
1077 -build |
--build |
--buil |
--bui |
--bu)
1078 ac_prev
=build_alias
;;
1079 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1080 build_alias
=$ac_optarg ;;
1082 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1083 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1084 ac_prev
=cache_file
;;
1085 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1086 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1087 cache_file
=$ac_optarg ;;
1089 --config-cache |
-C)
1090 cache_file
=config.cache
;;
1092 -datadir |
--datadir |
--datadi |
--datad)
1094 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1095 datadir
=$ac_optarg ;;
1097 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1098 |
--dataroo |
--dataro |
--datar)
1099 ac_prev
=datarootdir
;;
1100 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1101 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1102 datarootdir
=$ac_optarg ;;
1104 -disable-* |
--disable-*)
1105 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1108 as_fn_error
"invalid feature name: $ac_useropt"
1109 ac_useropt_orig
=$ac_useropt
1110 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "enable_
$ac_useropt"
1115 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116 ac_unrecognized_sep
=', ';;
1118 eval enable_
$ac_useropt=no
;;
1120 -docdir |
--docdir |
--docdi |
--doc |
--do)
1122 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1123 docdir
=$ac_optarg ;;
1125 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1127 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1128 dvidir
=$ac_optarg ;;
1130 -enable-* |
--enable-*)
1131 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1134 as_fn_error
"invalid feature name: $ac_useropt"
1135 ac_useropt_orig
=$ac_useropt
1136 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "enable_
$ac_useropt"
1141 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142 ac_unrecognized_sep
=', ';;
1144 eval enable_
$ac_useropt=\
$ac_optarg ;;
1146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1148 |
--exec |
--exe |
--ex)
1149 ac_prev
=exec_prefix
;;
1150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1152 |
--exec=* |
--exe=* |
--ex=*)
1153 exec_prefix
=$ac_optarg ;;
1155 -gas |
--gas |
--ga |
--g)
1156 # Obsolete; use --with-gas.
1159 -help |
--help |
--hel |
--he |
-h)
1160 ac_init_help
=long
;;
1161 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1162 ac_init_help
=recursive
;;
1163 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1164 ac_init_help
=short
;;
1166 -host |
--host |
--hos |
--ho)
1167 ac_prev
=host_alias
;;
1168 -host=* |
--host=* |
--hos=* |
--ho=*)
1169 host_alias
=$ac_optarg ;;
1171 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1173 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1175 htmldir
=$ac_optarg ;;
1177 -includedir |
--includedir |
--includedi |
--included |
--include \
1178 |
--includ |
--inclu |
--incl |
--inc)
1179 ac_prev
=includedir
;;
1180 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1181 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1182 includedir
=$ac_optarg ;;
1184 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1186 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1187 infodir
=$ac_optarg ;;
1189 -libdir |
--libdir |
--libdi |
--libd)
1191 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1192 libdir
=$ac_optarg ;;
1194 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1195 |
--libexe |
--libex |
--libe)
1196 ac_prev
=libexecdir
;;
1197 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1198 |
--libexe=* |
--libex=* |
--libe=*)
1199 libexecdir
=$ac_optarg ;;
1201 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1202 ac_prev
=localedir
;;
1203 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1204 localedir
=$ac_optarg ;;
1206 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1207 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1208 ac_prev
=localstatedir
;;
1209 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1210 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1211 localstatedir
=$ac_optarg ;;
1213 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1215 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1216 mandir
=$ac_optarg ;;
1218 -nfp |
--nfp |
--nf)
1219 # Obsolete; use --without-fp.
1222 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1223 |
--no-cr |
--no-c |
-n)
1226 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1227 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1230 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1231 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1232 |
--oldin |
--oldi |
--old |
--ol |
--o)
1233 ac_prev
=oldincludedir
;;
1234 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1235 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1236 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1237 oldincludedir
=$ac_optarg ;;
1239 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1241 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1242 prefix
=$ac_optarg ;;
1244 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1245 |
--program-pre |
--program-pr |
--program-p)
1246 ac_prev
=program_prefix
;;
1247 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1248 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1249 program_prefix
=$ac_optarg ;;
1251 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1252 |
--program-suf |
--program-su |
--program-s)
1253 ac_prev
=program_suffix
;;
1254 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1255 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1256 program_suffix
=$ac_optarg ;;
1258 -program-transform-name |
--program-transform-name \
1259 |
--program-transform-nam |
--program-transform-na \
1260 |
--program-transform-n |
--program-transform- \
1261 |
--program-transform |
--program-transfor \
1262 |
--program-transfo |
--program-transf \
1263 |
--program-trans |
--program-tran \
1264 |
--progr-tra |
--program-tr |
--program-t)
1265 ac_prev
=program_transform_name
;;
1266 -program-transform-name=* |
--program-transform-name=* \
1267 |
--program-transform-nam=* |
--program-transform-na=* \
1268 |
--program-transform-n=* |
--program-transform-=* \
1269 |
--program-transform=* |
--program-transfor=* \
1270 |
--program-transfo=* |
--program-transf=* \
1271 |
--program-trans=* |
--program-tran=* \
1272 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1273 program_transform_name
=$ac_optarg ;;
1275 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1277 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1278 pdfdir
=$ac_optarg ;;
1280 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1282 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1285 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1286 |
-silent |
--silent |
--silen |
--sile |
--sil)
1289 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1291 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1293 sbindir
=$ac_optarg ;;
1295 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1296 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1297 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1299 ac_prev
=sharedstatedir
;;
1300 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1301 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1302 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1304 sharedstatedir
=$ac_optarg ;;
1306 -site |
--site |
--sit)
1308 -site=* |
--site=* |
--sit=*)
1311 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1313 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1314 srcdir
=$ac_optarg ;;
1316 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1317 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1318 ac_prev
=sysconfdir
;;
1319 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1320 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1321 sysconfdir
=$ac_optarg ;;
1323 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1324 ac_prev
=target_alias
;;
1325 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1326 target_alias
=$ac_optarg ;;
1328 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1331 -version |
--version |
--versio |
--versi |
--vers |
-V)
1332 ac_init_version
=: ;;
1335 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1338 as_fn_error
"invalid package name: $ac_useropt"
1339 ac_useropt_orig
=$ac_useropt
1340 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep
=', ';;
1348 eval with_
$ac_useropt=\
$ac_optarg ;;
1350 -without-* |
--without-*)
1351 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1354 as_fn_error
"invalid package name: $ac_useropt"
1355 ac_useropt_orig
=$ac_useropt
1356 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1361 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362 ac_unrecognized_sep
=', ';;
1364 eval with_
$ac_useropt=no
;;
1367 # Obsolete; use --with-x.
1370 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1371 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1372 ac_prev
=x_includes
;;
1373 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1374 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1375 x_includes
=$ac_optarg ;;
1377 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1378 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1379 ac_prev
=x_libraries
;;
1380 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1381 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1382 x_libraries
=$ac_optarg ;;
1384 -*) as_fn_error
"unrecognized option: \`$ac_option'
1385 Try \`$0 --help' for more information."
1389 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1390 # Reject names that are not valid shell variable names.
1391 case $ac_envvar in #(
1392 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1393 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1395 eval $ac_envvar=\
$ac_optarg
1396 export $ac_envvar ;;
1399 # FIXME: should be removed in autoconf 3.0.
1400 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1402 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1409 if test -n "$ac_prev"; then
1410 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1411 as_fn_error
"missing argument to $ac_option"
1414 if test -n "$ac_unrecognized_opts"; then
1415 case $enable_option_checking in
1417 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1418 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422 # Check all directory arguments for consistency.
1423 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424 datadir sysconfdir sharedstatedir localstatedir includedir \
1425 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426 libdir localedir mandir
1428 eval ac_val
=\$
$ac_var
1429 # Remove trailing slashes.
1432 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433 eval $ac_var=\
$ac_val;;
1435 # Be sure to have absolute directory names.
1437 [\\/$
]* | ?
:[\\/]* ) continue;;
1438 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1440 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1448 target
=$target_alias
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x
; then
1452 if test "x$build_alias" = x
; then
1453 cross_compiling
=maybe
1454 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1455 If a cross compiler is detected then cross compile mode will be used." >&2
1456 elif test "x$build_alias" != "x$host_alias"; then
1462 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1464 test "$silent" = yes && exec 6>/dev
/null
1467 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1468 ac_ls_di
=`ls -di .` &&
1469 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1470 as_fn_error
"working directory cannot be determined"
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472 as_fn_error
"pwd does not report name of working directory"
1475 # Find the source files, if location was not specified.
1476 if test -z "$srcdir"; then
1477 ac_srcdir_defaulted
=yes
1478 # Try the directory containing this script, then the parent directory.
1479 ac_confdir
=`$as_dirname -- "$as_myself" ||
1480 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1481 X"$as_myself" : 'X\(//\)[^/]' \| \
1482 X"$as_myself" : 'X\(//\)$' \| \
1483 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1484 $as_echo X"$as_myself" |
1485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1507 ac_srcdir_defaulted
=no
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1510 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1511 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1513 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1515 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1517 # When building in place, set srcdir=.
1518 if test "$ac_abs_confdir" = "$ac_pwd"; then
1521 # Remove unnecessary trailing slashes from srcdir.
1522 # Double slashes in file names in object file debugging info
1523 # mess up M-x gdb in Emacs.
1525 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527 for ac_var
in $ac_precious_vars; do
1528 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1529 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1530 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1531 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1535 # Report the --help message.
1537 if test "$ac_init_help" = "long"; then
1538 # Omit some internal or obsolete options to make the list less imposing.
1539 # This message is too long to be a string in the A/UX 3.1 sh.
1541 \`configure' configures this package to adapt to many kinds of systems.
1543 Usage: $0 [OPTION]... [VAR=VALUE]...
1545 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1546 VAR=VALUE. See below for descriptions of some of the useful variables.
1548 Defaults for the options are specified in brackets.
1551 -h, --help display this help and exit
1552 --help=short display options specific to this package
1553 --help=recursive display the short help of all the included packages
1554 -V, --version display version information and exit
1555 -q, --quiet, --silent do not print \`checking...' messages
1556 --cache-file=FILE cache test results in FILE [disabled]
1557 -C, --config-cache alias for \`--cache-file=config.cache'
1558 -n, --no-create do not create output files
1559 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1561 Installation directories:
1562 --prefix=PREFIX install architecture-independent files in PREFIX
1563 [$ac_default_prefix]
1564 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1567 By default, \`make install' will install all the files in
1568 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1569 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1570 for instance \`--prefix=\$HOME'.
1572 For better control, use the options below.
1574 Fine tuning of the installation directories:
1575 --bindir=DIR user executables [EPREFIX/bin]
1576 --sbindir=DIR system admin executables [EPREFIX/sbin]
1577 --libexecdir=DIR program executables [EPREFIX/libexec]
1578 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1579 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1580 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1581 --libdir=DIR object code libraries [EPREFIX/lib]
1582 --includedir=DIR C header files [PREFIX/include]
1583 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1584 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1585 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1586 --infodir=DIR info documentation [DATAROOTDIR/info]
1587 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1588 --mandir=DIR man documentation [DATAROOTDIR/man]
1589 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1590 --htmldir=DIR html documentation [DOCDIR]
1591 --dvidir=DIR dvi documentation [DOCDIR]
1592 --pdfdir=DIR pdf documentation [DOCDIR]
1593 --psdir=DIR ps documentation [DOCDIR]
1599 --program-prefix=PREFIX prepend PREFIX to installed program names
1600 --program-suffix=SUFFIX append SUFFIX to installed program names
1601 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1604 --x-includes=DIR X include files are
in DIR
1605 --x-libraries=DIR X library files are
in DIR
1608 --build=BUILD configure
for building on BUILD
[guessed
]
1609 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1610 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1614 if test -n "$ac_init_help"; then
1619 --disable-option-checking ignore unrecognized
--enable/--with options
1620 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1621 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1622 --enable-maintainer-mode enable make rules and dependencies not useful
1623 (and sometimes confusing
) to the casual installer
1624 --enable-plugins Enable support
for plugins
(defaults no
)
1625 --disable-largefile omit support
for large files
1626 --disable-dependency-tracking speeds up one-time build
1627 --enable-dependency-tracking do not reject slow dependency extractors
1628 --enable-targets=TARGETS
1629 alternative target configurations
1630 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1631 --disable-gdbcli disable command-line interface
(CLI
)
1632 --disable-gdbmi disable machine-interface
(MI
)
1633 --enable-tui enable full-screen terminal user interface
(TUI
)
1634 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1635 --enable-profiling enable profiling of GDB
1636 --disable-rpath do not hardcode runtime library paths
1637 --enable-werror treat compile warnings as errors
1638 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1639 --enable-gdb-build-warnings
1640 enable GDB specific build-time compiler warnings
if
1642 --enable-sim link gdb with simulator
1643 --enable-multi-ice build the multi-ice-gdb-server
1644 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1648 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1649 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1650 --with-separate-debug-dir=PATH
1651 look for global separate debug info
in this path
1653 --with-gdb-datadir=PATH
look for global separate data files
in this path
1655 --with-relocated-sources=PATH
1656 automatically relocate this path
for source files
1657 --with-auto-load-safe-path=PATH
1658 directories safe to hold auto-loaded files
1659 --without-auto-load-safe-path
1660 do not restrict auto-loaded files locations
1661 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1662 --with-curses use the curses library instead of the termcap
1664 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1665 --with-bugurl=URL Direct users to URL to report a bug
1666 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1667 --with-libiconv-prefix=DIR
1668 search
for libiconv
in DIR
/include and DIR
/lib
1669 --with-iconv-bin=PATH specify where to
find the
iconv program
1670 --with-system-readline use installed readline library
1671 --with-jit-reader-dir=PATH
1672 directory to load the JIT readers from
1673 --with-expat include expat support
(auto
/yes
/no
)
1674 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1675 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1676 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1677 --with-python[=PYTHON] include python support
1678 (auto/yes/no/<python-program>)
1679 --without-included-regex
1680 don't use included regex
; this is the default on
1681 systems with version
2 of the GNU C library
(use
1682 with caution on other system
)
1683 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1684 --with-system-gdbinit=PATH
1685 automatically load a system-wide gdbinit
file
1686 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1687 --with-tk directory containing tk configuration
(tkConfig.sh
)
1688 --with-x use the X Window System
1690 Some influential environment variables
:
1691 CC C compiler
command
1692 CFLAGS C compiler flags
1693 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1694 nonstandard directory
<lib dir
>
1695 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1696 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1697 you have headers
in a nonstandard directory
<include dir
>
1699 MAKEINFO Parent configure detects
if it is of sufficient version.
1701 Parameters
for MAKEINFO.
1702 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1703 the first program found out of: `bison
-y', `byacc', `yacc'.
1704 YFLAGS The list of arguments that will be passed by default to $YACC.
1705 This script will default YFLAGS to the empty string to avoid a
1706 default value of `-d' given by some make applications.
1707 XMKMF Path to xmkmf, Makefile generator for X Window System
1709 Use these variables to override the choices made by `configure' or to
help
1710 it to
find libraries and programs with nonstandard names
/locations.
1712 Report bugs to the package provider.
1717 if test "$ac_init_help" = "recursive"; then
1718 # If there are subdirs, report their specific --help.
1719 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1720 test -d "$ac_dir" ||
1721 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1726 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1728 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1729 # A ".." for each directory in $ac_dir_suffix.
1730 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1731 case $ac_top_builddir_sub in
1732 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1733 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1736 ac_abs_top_builddir
=$ac_pwd
1737 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1738 # for backward compatibility:
1739 ac_top_builddir
=$ac_top_build_prefix
1742 .
) # We are building in place.
1744 ac_top_srcdir
=$ac_top_builddir_sub
1745 ac_abs_top_srcdir
=$ac_pwd ;;
1746 [\\/]* | ?
:[\\/]* ) # Absolute name.
1747 ac_srcdir
=$srcdir$ac_dir_suffix;
1748 ac_top_srcdir
=$srcdir
1749 ac_abs_top_srcdir
=$srcdir ;;
1751 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1753 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1755 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1757 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1758 # Check for guested configure.
1759 if test -f "$ac_srcdir/configure.gnu"; then
1761 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762 elif test -f "$ac_srcdir/configure"; then
1764 $SHELL "$ac_srcdir/configure" --help=recursive
1766 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1772 test -n "$ac_init_help" && exit $ac_status
1773 if $ac_init_version; then
1776 generated by GNU Autoconf
2.64
1778 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1779 This configure
script is free software
; the Free Software Foundation
1780 gives unlimited permission to copy
, distribute and modify it.
1785 ## ------------------------ ##
1786 ## Autoconf initialization. ##
1787 ## ------------------------ ##
1789 # ac_fn_c_try_compile LINENO
1790 # --------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_compile
()
1794 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1795 rm -f conftest.
$ac_objext
1796 if { { ac_try
="$ac_compile"
1798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 } # ac_fn_c_try_compile
1827 # ac_fn_c_try_cpp LINENO
1828 # ----------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { { ac_try="$ac_cpp conftest.$ac_ext"
1835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1836 *) ac_try_echo
=$ac_try;;
1838 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1842 if test -s conftest.err
; then
1843 grep -v '^ *+' conftest.err
>conftest.er1
1844 cat conftest.er1
>&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } >/dev
/null
&& {
1849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.
$ac_ext >&5
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1864 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1867 # the include files in INCLUDES and setting the cache variable VAR
1869 ac_fn_c_check_header_mongrel
()
1871 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1872 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 $as_echo_n "(cached) " >&6
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1882 # Is the header compilable?
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1884 $as_echo_n "checking $2 usability... " >&6; }
1885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1890 if ac_fn_c_try_compile
"$LINENO"; then :
1891 ac_header_compiler
=yes
1893 ac_header_compiler
=no
1895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1897 $as_echo "$ac_header_compiler" >&6; }
1899 # Is the header present?
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1901 $as_echo_n "checking $2 presence... " >&6; }
1902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1906 if ac_fn_c_try_cpp
"$LINENO"; then :
1907 ac_header_preproc
=yes
1909 ac_header_preproc
=no
1911 rm -f conftest.err conftest.
$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1913 $as_echo "$ac_header_preproc" >&6; }
1915 # So? What about this header?
1916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1919 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1921 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1925 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1927 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1929 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1931 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 $as_echo_n "(cached) " >&6
1941 eval "$3=\$ac_header_compiler"
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1949 } # ac_fn_c_check_header_mongrel
1951 # ac_fn_c_try_run LINENO
1952 # ----------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1954 # that executables *can* be run.
1957 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1958 if { { ac_try
="$ac_link"
1960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_link") 2>&5
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1969 { { case "(($ac_try" in
1970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1971 *) ac_try_echo
=$ac_try;;
1973 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_try") 2>&5
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; }; }; then :
1981 $as_echo "$as_me: program exited with status $ac_status" >&5
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.
$ac_ext >&5
1985 ac_retval
=$ac_status
1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1993 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1994 # -------------------------------------------------------
1995 # Tests whether HEADER exists and can be compiled using the include files in
1996 # INCLUDES, setting the cache variable VAR accordingly.
1997 ac_fn_c_check_header_compile
()
1999 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 $as_echo_n "(cached) " >&6
2005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2010 if ac_fn_c_try_compile
"$LINENO"; then :
2015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2022 } # ac_fn_c_check_header_compile
2024 # ac_fn_c_try_link LINENO
2025 # -----------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded.
2029 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2030 rm -f conftest.
$ac_objext conftest
$ac_exeext
2031 if { { ac_try
="$ac_link"
2033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>conftest.err
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && {
2047 test -z "$ac_c_werror_flag" ||
2048 test ! -s conftest.err
2049 } && test -s conftest$ac_exeext && {
2050 test "$cross_compiling" = yes ||
2051 $as_test_x conftest$ac_exeext
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2060 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2061 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2062 # interfere with the next link command; also delete a directory that is
2063 # left behind by Apple's compiler. We do this before executing the actions.
2064 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068 } # ac_fn_c_try_link
2070 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2071 # --------------------------------------------
2072 # Tries to find the compile-time value of EXPR in a program that includes
2073 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2075 ac_fn_c_compute_int ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if test "$cross_compiling" = yes; then
2079 # Depending upon the size, compute the lo and hi bounds.
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) >= 0)];
2093 if ac_fn_c_try_compile "$LINENO"; then :
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2102 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 ac_hi=$ac_mid; break
2112 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2113 if test $ac_lo -le $ac_mid; then
2117 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2128 static int test_array [1 - 2 * !(($2) < 0)];
2135 if ac_fn_c_try_compile "$LINENO"; then :
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_lo=$ac_mid; break
2154 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2155 if test $ac_mid -le $ac_hi; then
2159 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 # Binary search between lo and hi bounds.
2170 while test "x$ac_lo" != "x$ac_hi"; do
2171 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2185 if ac_fn_c_try_compile "$LINENO"; then :
2188 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2200 static long int longval () { return $2; }
2201 static unsigned long int ulongval () { return $2; }
2208 FILE *f = fopen ("conftest.val", "w");
2213 long int i = longval ();
2216 fprintf (f, "%ld", i);
2220 unsigned long int i = ulongval ();
2223 fprintf (f, "%lu", i);
2225 /* Do not output a trailing newline, as this causes \r\n confusion
2226 on some platforms. */
2227 return ferror (f) || fclose (f) != 0;
2233 if ac_fn_c_try_run "$LINENO"; then :
2234 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2239 conftest.$ac_objext conftest.beam conftest.$ac_ext
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 } # ac_fn_c_compute_int
2248 # ac_fn_c_check_func LINENO FUNC VAR
2249 # ----------------------------------
2250 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2251 ac_fn_c_check_func ()
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2255 $as_echo_n "checking for $2... " >&6; }
2256 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2257 $as_echo_n "(cached) " >&6
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2261 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2263 #define $2 innocuous_$2
2265 /* System header to define __stub macros and hopefully few prototypes,
2266 which can conflict with char $2 (); below.
2267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2268 <limits.h> exists even on freestanding compilers. */
2271 # include <limits.h>
2273 # include <assert.h>
2278 /* Override any GCC internal prototype to avoid an error.
2279 Use char because int might match the return type of a GCC
2280 builtin and then its argument prototype would still apply. */
2285 /* The GNU C library defines this for functions which it implements
2286 to always fail with ENOSYS. Some functions are actually named
2287 something starting with __ and the normal name is an alias. */
2288 #if defined __stub_$2 || defined __stub___$2
2300 if ac_fn_c_try_link "$LINENO"; then :
2305 rm -f core conftest.err conftest.$ac_objext \
2306 conftest$ac_exeext conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313 } # ac_fn_c_check_func
2315 # ac_fn_c_check_decl LINENO SYMBOL VAR
2316 # ------------------------------------
2317 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2318 ac_fn_c_check_decl ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2322 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2324 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2325 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2326 $as_echo_n "(cached) " >&6
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2334 #ifndef $as_decl_name
2336 (void) $as_decl_use;
2338 (void) $as_decl_name;
2346 if ac_fn_c_try_compile "$LINENO"; then :
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355 $as_echo "$ac_res" >&6; }
2356 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2358 } # ac_fn_c_check_decl
2360 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2361 # ----------------------------------------------------
2362 # Tries to find if the field MEMBER exists in type AGGR, after including
2363 # INCLUDES, setting cache variable VAR accordingly.
2364 ac_fn_c_check_member ()
2366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2368 $as_echo_n "checking for $2.$3... " >&6; }
2369 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2370 $as_echo_n "(cached) " >&6
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2385 if ac_fn_c_try_compile "$LINENO"; then :
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2395 if (sizeof ac_aggr.$3)
2401 if ac_fn_c_try_compile "$LINENO"; then :
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412 $as_echo "$ac_res" >&6; }
2413 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 } # ac_fn_c_check_member
2417 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2418 # -------------------------------------------
2419 # Tests whether TYPE exists after having included INCLUDES, setting cache
2420 # variable VAR accordingly.
2421 ac_fn_c_check_type ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427 $as_echo_n "(cached) " >&6
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2442 if ac_fn_c_try_compile "$LINENO"; then :
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2455 if ac_fn_c_try_compile "$LINENO"; then :
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2469 } # ac_fn_c_check_type
2470 cat >config.log <<_ACEOF
2471 This file contains any messages produced by compilers while
2472 running configure, to aid debugging if configure makes a mistake.
2474 It was created by $as_me, which was
2475 generated by GNU Autoconf 2.64. Invocation command line was
2487 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2488 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2489 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2490 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2491 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2493 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2494 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2496 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2497 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2498 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2499 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2500 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2501 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2502 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 $as_echo "PATH: $as_dir"
2527 # Keep a trace of the command line.
2528 # Strip out --no-create and --no-recursion so they do not pile up.
2529 # Strip out --silent because we don't want to record it for future runs.
2530 # Also quote any args containing shell meta-characters.
2531 # Make two passes to allow for proper duplicate-argument suppression.
2535 ac_must_keep_next=false
2541 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2543 | -silent | --silent | --silen | --sile | --sil)
2546 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2549 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2551 as_fn_append ac_configure_args1 " '$ac_arg'"
2552 if test $ac_must_keep_next = true; then
2553 ac_must_keep_next=false # Got value, back to normal.
2556 *=* | --config-cache | -C | -disable-* | --disable-* \
2557 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2558 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2559 | -with-* | --with-* | -without-* | --without-* | --x)
2560 case "$ac_configure_args0 " in
2561 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2564 -* ) ac_must_keep_next=true ;;
2567 as_fn_append ac_configure_args " '$ac_arg'"
2572 { ac_configure_args0=; unset ac_configure_args0;}
2573 { ac_configure_args1=; unset ac_configure_args1;}
2575 # When interrupted or exit'd, cleanup temporary files, and complete
2576 # config.log. We remove comments because anyway the quotes in there
2577 # would cause problems or look ugly.
2578 # WARNING: Use '\'' to represent an apostrophe within the trap.
2579 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2580 trap 'exit_status=$?
2581 # Save into config.log some information that might help in debugging.
2586 ## ---------------- ##
2587 ## Cache variables. ##
2588 ## ---------------- ##
2591 # The following way of writing the cache mishandles newlines in values,
2593 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2594 eval ac_val=\$$ac_var
2598 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2599 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2602 _ | IFS | as_nl) ;; #(
2603 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2604 *) { eval $ac_var=; unset $ac_var;} ;;
2609 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2610 *${as_nl}ac_space=\ *)
2612 "s/'\''/'\''\\\\'\'''\''/g;
2613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2624 ## ----------------- ##
2625 ## Output variables. ##
2626 ## ----------------- ##
2629 for ac_var in $ac_subst_vars
2631 eval ac_val=\$$ac_var
2633 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2635 $as_echo "$ac_var='\''$ac_val'\''"
2639 if test -n "$ac_subst_files"; then
2641 ## ------------------- ##
2642 ## File substitutions. ##
2643 ## ------------------- ##
2646 for ac_var in $ac_subst_files
2648 eval ac_val=\$$ac_var
2650 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2652 $as_echo "$ac_var='\''$ac_val'\''"
2657 if test -s confdefs.h; then
2667 test "$ac_signal" != 0 &&
2668 $as_echo "$as_me: caught signal $ac_signal"
2669 $as_echo "$as_me: exit $exit_status"
2671 rm -f core *.core core.conftest.* &&
2672 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2675 for ac_signal in 1 2 13 15; do
2676 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2680 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2681 rm -f -r conftest* confdefs.h
2683 $as_echo "/* confdefs.h */" > confdefs.h
2685 # Predefined preprocessor variables.
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_NAME "$PACKAGE_NAME"
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_STRING "$PACKAGE_STRING"
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_URL "$PACKAGE_URL"
2712 # Let the site file select an alternate cache file if it wants to.
2713 # Prefer an explicitly selected file to automatically selected ones.
2716 if test -n "$CONFIG_SITE"; then
2717 ac_site_file1=$CONFIG_SITE
2718 elif test "x$prefix" != xNONE; then
2719 ac_site_file1=$prefix/share/config.site
2720 ac_site_file2=$prefix/etc/config.site
2722 ac_site_file1=$ac_default_prefix/share/config.site
2723 ac_site_file2=$ac_default_prefix/etc/config.site
2725 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2727 test "x$ac_site_file" = xNONE && continue
2728 if test -r "$ac_site_file"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2730 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2731 sed 's/^/| /' "$ac_site_file" >&5
2736 if test -r "$cache_file"; then
2737 # Some versions of bash will fail to source /dev/null (special
2738 # files actually), so we avoid doing that.
2739 if test -f "$cache_file"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2741 $as_echo "$as_me: loading cache $cache_file" >&6;}
2743 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2744 *) . "./$cache_file";;
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2749 $as_echo "$as_me: creating cache $cache_file" >&6;}
2753 gl_header_list="$gl_header_list wchar.h"
2754 gl_header_list="$gl_header_list stdint.h"
2755 gl_header_list="$gl_header_list inttypes.h"
2756 gl_header_list="$gl_header_list sys/mman.h"
2757 gl_func_list="$gl_func_list mprotect"
2758 # Check that the precious variables saved in the cache have kept the same
2760 ac_cache_corrupted=false
2761 for ac_var in $ac_precious_vars; do
2762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2763 eval ac_new_set=\$ac_env_${ac_var}_set
2764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2765 eval ac_new_val=\$ac_env_${ac_var}_value
2766 case $ac_old_set,$ac_new_set in
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2769 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2773 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2774 ac_cache_corrupted=: ;;
2777 if test "x$ac_old_val" != "x$ac_new_val"; then
2778 # differences in whitespace do not lead to failure.
2779 ac_old_val_w=`echo x
$ac_old_val`
2780 ac_new_val_w=`echo x
$ac_new_val`
2781 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2783 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2784 ac_cache_corrupted=:
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2787 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2788 eval $ac_var=\$ac_old_val
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2791 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2793 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2796 # Pass precious variables to config.status.
2797 if test "$ac_new_set" = set; then
2799 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2800 *) ac_arg=$ac_var=$ac_new_val ;;
2802 case " $ac_configure_args " in
2803 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2804 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2808 if $ac_cache_corrupted; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2812 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2813 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2815 ## -------------------- ##
2816 ## Main body of script. ##
2817 ## -------------------- ##
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 ac_config_headers="$ac_config_headers config.h:config.in"
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2833 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2834 # Check whether --enable-maintainer-mode was given.
2835 if test "${enable_maintainer_mode+set}" = set; then :
2836 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2838 USE_MAINTAINER_MODE=no
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2842 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2843 if test $USE_MAINTAINER_MODE = yes; then
2844 MAINTAINER_MODE_TRUE=
2845 MAINTAINER_MODE_FALSE='#'
2847 MAINTAINER_MODE_TRUE='#'
2848 MAINTAINER_MODE_FALSE=
2851 MAINT=$MAINTAINER_MODE_TRUE
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test -n "$CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2899 if test -z "$ac_cv_prog_CC"; then
2901 # Extract the first word of "gcc", so it can be a program name with args.
2902 set dummy gcc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_ac_ct_CC="gcc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2929 if test -n "$ac_ct_CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2931 $as_echo "$ac_ct_CC" >&6; }
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2937 if test "x$ac_ct_CC" = x; then
2940 case $cross_compiling:$ac_tool_warned in
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944 ac_tool_warned=yes ;;
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2955 set dummy ${ac_tool_prefix}cc; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_CC+set}" = set; then :
2959 $as_echo_n "(cached) " >&6
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_CC="${ac_tool_prefix}cc"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2993 if test -z "$CC"; then
2994 # Extract the first word of "cc", so it can be a program name with args.
2995 set dummy cc; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_CC+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3013 ac_prog_rejected=yes
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test $ac_prog_rejected = yes; then
3025 # We found a bogon in the path, so make sure we never use it.
3026 set dummy $ac_cv_prog_CC
3028 if test $# != 0; then
3029 # We chose a different compiler from the bogus one.
3030 # However, it has the same basename, so the bogon will be chosen
3031 # first if we set CC to just the basename; use the full file name.
3033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3039 if test -n "$CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 $as_echo "$CC" >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3049 if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 for ac_prog in cl.exe
3053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3090 test -n "$CC" && break
3093 if test -z "$CC"; then
3095 for ac_prog in cl.exe
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set dummy $ac_prog; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$ac_ct_CC"; then
3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 ac_cv_prog_ac_ct_CC="$ac_prog"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3125 if test -n "$ac_ct_CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3127 $as_echo "$ac_ct_CC" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3134 test -n "$ac_ct_CC" && break
3137 if test "x$ac_ct_CC" = x; then
3140 case $cross_compiling:$ac_tool_warned in
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3153 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error "no acceptable C compiler found
in \
$PATH
3156 See \
`config.log' for more details." "$LINENO" 5; }
3158 # Provide some information about the compiler.
3159 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3162 for ac_option in --version -v -V -qversion; do
3163 { { ac_try="$ac_compiler $ac_option >&5"
3165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3166 *) ac_try_echo
=$ac_try;;
3168 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3172 if test -s conftest.err
; then
3174 ... rest of stderr output deleted ...
3175 10q' conftest.err
>conftest.er1
3176 cat conftest.er1
>&5
3177 rm -f conftest.er1 conftest.err
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }
3183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3194 ac_clean_files_save
=$ac_clean_files
3195 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3196 # Try to create an executable without -o first, disregard a.out.
3197 # It will help us diagnose broken compilers, and finding out an intuition
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3200 $as_echo_n "checking for C compiler default output file name... " >&6; }
3201 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3203 # The possible output files:
3204 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3207 for ac_file
in $ac_files
3210 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3211 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3216 if { { ac_try
="$ac_link_default"
3218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_link_default") 2>&5
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; then :
3227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3228 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3229 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3230 # so that the user can short-circuit this test for compilers unknown to
3232 for ac_file in $ac_files ''
3234 test -f "$ac_file" || continue
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3239 # We found the default executable, but exeext='' is most
3243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247 # We set ac_cv_exeext here because the later test for it is not
3248 # safe: cross compilers may not add the suffix if given an `-o'
3249 # argument, so we may need to know it at that point already.
3250 # Even if this section looks crufty: it has the advantage of
3257 test "$ac_cv_exeext" = no && ac_cv_exeext=
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3263 $as_echo "$ac_file" >&6; }
3264 if test -z "$ac_file"; then :
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's
/^
/|
/' conftest.$ac_ext >&5
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3270 { as_fn_set_status 77
3271 as_fn_error "C compiler cannot create executables
3272 See \`config.log
' for more details." "$LINENO" 5; }; }
3274 ac_exeext=$ac_cv_exeext
3276 # Check that the compiler produces executables we can run. If not, either
3277 # the compiler is broken, or we cross compile.
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3279 $as_echo_n "checking whether the C compiler works... " >&6; }
3280 # If not cross compiling, check that we can run a simple program.
3281 if test "$cross_compiling" != yes; then
3282 if { ac_try='.
/$ac_file'
3283 { { case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_try") 2>&5
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; }; then
3295 if test "$cross_compiling" = maybe; then
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3300 as_fn_error "cannot run C compiled programs.
3301 If you meant to cross compile, use \`--host'.
3302 See \`config.log' for more details.
" "$LINENO" 5; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3307 $as_echo "yes" >&6; }
3309 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3310 ac_clean_files=$ac_clean_files_save
3311 # Check that the compiler produces executables we can run. If not, either
3312 # the compiler is broken, or we cross compile.
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3314 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3316 $as_echo "$cross_compiling" >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3319 $as_echo_n "checking
for suffix of executables...
" >&6; }
3320 if { { ac_try="$ac_link"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link") 2>&5
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3333 # work properly (i.e., refer to `conftest.exe'), while it won't with
3335 for ac_file in conftest.exe conftest conftest.*; do
3336 test -f "$ac_file" || continue
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error "cannot compute suffix of executables: cannot compile and link
3348 See \`config.log' for more details.
" "$LINENO" 5; }
3350 rm -f conftest$ac_cv_exeext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3352 $as_echo "$ac_cv_exeext" >&6; }
3354 rm -f conftest.$ac_ext
3355 EXEEXT=$ac_cv_exeext
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3358 $as_echo_n "checking
for suffix of object files...
" >&6; }
3359 if test "${ac_cv_objext+set}" = set; then :
3360 $as_echo_n "(cached
) " >&6
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3373 rm -f conftest.o conftest.obj
3374 if { { ac_try="$ac_compile"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_compile") 2>&5
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 for ac_file in conftest.o conftest.obj conftest.*; do
3386 test -f "$ac_file" || continue;
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3389 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3394 $as_echo "$as_me: failed program was
:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error "cannot compute suffix of object files: cannot compile
3400 See \`config.log' for more details.
" "$LINENO" 5; }
3402 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3405 $as_echo "$ac_cv_objext" >&6; }
3406 OBJEXT=$ac_cv_objext
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3409 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3410 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3411 $as_echo_n "(cached
) " >&6
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3427 if ac_fn_c_try_compile "$LINENO"; then :
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3437 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3438 if test $ac_compiler_gnu = yes; then
3443 ac_test_CFLAGS=${CFLAGS+set}
3444 ac_save_CFLAGS=$CFLAGS
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3446 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3447 if test "${ac_cv_prog_cc_g+set}" = set; then :
3448 $as_echo_n "(cached
) " >&6
3450 ac_save_c_werror_flag=$ac_c_werror_flag
3451 ac_c_werror_flag=yes
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3465 if ac_fn_c_try_compile "$LINENO"; then :
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3480 if ac_fn_c_try_compile "$LINENO"; then :
3483 ac_c_werror_flag=$ac_save_c_werror_flag
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3496 if ac_fn_c_try_compile "$LINENO"; then :
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_c_werror_flag=$ac_save_c_werror_flag
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3507 $as_echo "$ac_cv_prog_cc_g" >&6; }
3508 if test "$ac_test_CFLAGS" = set; then
3509 CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511 if test "$GCC" = yes; then
3517 if test "$GCC" = yes; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3524 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3525 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3526 $as_echo_n "(cached
) " >&6
3528 ac_cv_prog_cc_c89=no
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3534 #include <sys/types.h>
3535 #include <sys/stat.h>
3536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3537 struct buf { int x; };
3538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539 static char *e (p, i)
3545 static char *f (char * (*g) (char **, int), char **p, ...)
3550 s = g (p, va_arg (v,int));
3555 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3556 function prototypes and stuff, but not '\xHH' hex character constants.
3557 These don't provoke an error unfortunately, instead are silently treated
3558 as 'x'. The following induces an error, until -std is added to get
3559 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3560 array size at least. It's necessary to write '\x00'==0 to get something
3561 that's true only with -std. */
3562 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3564 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3565 inside strings and character constants. */
3567 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3569 int test (int i, double x);
3570 struct s1 {int (*f) (int a);};
3571 struct s2 {int (*f) (double a);};
3572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3578 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3584 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586 CC="$ac_save_CC $ac_arg"
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_prog_cc_c89=$ac_arg
3590 rm -f core conftest.err conftest.$ac_objext
3591 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3593 rm -f conftest.$ac_ext
3598 case "x
$ac_cv_prog_cc_c89" in
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3601 $as_echo "none needed
" >&6; } ;;
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3604 $as_echo "unsupported
" >&6; } ;;
3606 CC="$CC $ac_cv_prog_cc_c89"
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3608 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3610 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3622 for ac_t in install-sh install.sh shtool; do
3623 if test -f "$ac_dir/$ac_t"; then
3625 ac_install_sh="$ac_aux_dir/$ac_t -c"
3630 if test -z "$ac_aux_dir"; then
3631 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3634 # These three variables are undocumented and unsupported,
3635 # and are intended to be withdrawn in a future Autoconf release.
3636 # They can cause serious problems if a builder's source tree is in a directory
3637 # whose full name contains unusual characters.
3638 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3639 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3640 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3643 # Make sure we can run config.sub.
3644 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3645 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3648 $as_echo_n "checking build system
type...
" >&6; }
3649 if test "${ac_cv_build+set}" = set; then :
3650 $as_echo_n "(cached
) " >&6
3652 ac_build_alias=$build_alias
3653 test "x
$ac_build_alias" = x &&
3654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3655 test "x
$ac_build_alias" = x &&
3656 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3658 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3662 $as_echo "$ac_cv_build" >&6; }
3663 case $ac_cv_build in
3665 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3668 ac_save_IFS=$IFS; IFS='-'
3674 # Remember, the first character of IFS is used to create $*,
3675 # except with old shells:
3678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3682 $as_echo_n "checking
host system
type...
" >&6; }
3683 if test "${ac_cv_host+set}" = set; then :
3684 $as_echo_n "(cached
) " >&6
3686 if test "x
$host_alias" = x; then
3687 ac_cv_host=$ac_cv_build
3689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3690 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3695 $as_echo "$ac_cv_host" >&6; }
3698 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3701 ac_save_IFS=$IFS; IFS='-'
3707 # Remember, the first character of IFS is used to create $*,
3708 # except with old shells:
3711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3721 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3722 # On Suns, sometimes $CPP names a directory.
3723 if test -n "$CPP" && test -d "$CPP"; then
3726 if test -z "$CPP"; then
3727 if test "${ac_cv_prog_CPP+set}" = set; then :
3728 $as_echo_n "(cached
) " >&6
3730 # Double quotes because CPP needs to be expanded
3731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3734 for ac_c_preproc_warn_flag in '' yes
3736 # Use a header file that comes with gcc, so configuring glibc
3737 # with a fresh cross-compiler works.
3738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3739 # <limits.h> exists even on freestanding compilers.
3740 # On the NeXT, cc -E runs the code through the compiler's parser,
3741 # not just through cpp. "Syntax error
" is here to catch this case.
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3745 # include <limits.h>
3747 # include <assert.h>
3751 if ac_fn_c_try_cpp "$LINENO"; then :
3754 # Broken: fails on valid input.
3757 rm -f conftest.err conftest.$ac_ext
3759 # OK, works on sane cases. Now check whether nonexistent headers
3760 # can be detected and how.
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <ac_nonexistent.h>
3765 if ac_fn_c_try_cpp "$LINENO"; then :
3766 # Broken: success on invalid input.
3769 # Passes both tests.
3773 rm -f conftest.err conftest.$ac_ext
3776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3777 rm -f conftest.err conftest.$ac_ext
3778 if $ac_preproc_ok; then :
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3791 $as_echo "$CPP" >&6; }
3793 for ac_c_preproc_warn_flag in '' yes
3795 # Use a header file that comes with gcc, so configuring glibc
3796 # with a fresh cross-compiler works.
3797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 # <limits.h> exists even on freestanding compilers.
3799 # On the NeXT, cc -E runs the code through the compiler's parser,
3800 # not just through cpp. "Syntax error
" is here to catch this case.
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3804 # include <limits.h>
3806 # include <assert.h>
3810 if ac_fn_c_try_cpp "$LINENO"; then :
3813 # Broken: fails on valid input.
3816 rm -f conftest.err conftest.$ac_ext
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <ac_nonexistent.h>
3824 if ac_fn_c_try_cpp "$LINENO"; then :
3825 # Broken: success on invalid input.
3828 # Passes both tests.
3832 rm -f conftest.err conftest.$ac_ext
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then :
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3843 See \`config.log' for more details.
" "$LINENO" 5; }
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3854 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3855 if test "${ac_cv_path_GREP+set}" = set; then :
3856 $as_echo_n "(cached
) " >&6
3858 if test -z "$GREP"; then
3859 ac_path_GREP_found=false
3860 # Loop through the user's path and test for each of PROGNAME-LIST
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865 test -z "$as_dir" && as_dir=.
3866 for ac_prog in grep ggrep; do
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3869 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3870 # Check for GNU ac_path_GREP and select it if it is found.
3871 # Check for GNU $ac_path_GREP
3872 case `"$ac_path_GREP" --version 2>&1` in
3874 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3877 $as_echo_n 0123456789 >"conftest.
in"
3880 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3881 mv "conftest.tmp
" "conftest.
in"
3882 cp "conftest.
in" "conftest.
nl"
3883 $as_echo 'GREP' >> "conftest.
nl"
3884 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3885 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3886 as_fn_arith $ac_count + 1 && ac_count=$as_val
3887 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3888 # Best one so far, save it but keep looking for a better one
3889 ac_cv_path_GREP="$ac_path_GREP"
3890 ac_path_GREP_max=$ac_count
3892 # 10*(2^10) chars as input seems more than enough
3893 test $ac_count -gt 10 && break
3895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898 $ac_path_GREP_found && break 3
3903 if test -z "$ac_cv_path_GREP"; then
3904 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3907 ac_cv_path_GREP=$GREP
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3912 $as_echo "$ac_cv_path_GREP" >&6; }
3913 GREP="$ac_cv_path_GREP"
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3917 $as_echo_n "checking
for egrep...
" >&6; }
3918 if test "${ac_cv_path_EGREP+set}" = set; then :
3919 $as_echo_n "(cached
) " >&6
3921 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3922 then ac_cv_path_EGREP="$GREP -E"
3924 if test -z "$EGREP"; then
3925 ac_path_EGREP_found=false
3926 # Loop through the user's path and test for each of PROGNAME-LIST
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3931 test -z "$as_dir" && as_dir=.
3932 for ac_prog in egrep; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3935 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3936 # Check for GNU ac_path_EGREP and select it if it is found.
3937 # Check for GNU $ac_path_EGREP
3938 case `"$ac_path_EGREP" --version 2>&1` in
3940 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3943 $as_echo_n 0123456789 >"conftest.
in"
3946 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3947 mv "conftest.tmp
" "conftest.
in"
3948 cp "conftest.
in" "conftest.
nl"
3949 $as_echo 'EGREP' >> "conftest.
nl"
3950 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3951 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3952 as_fn_arith $ac_count + 1 && ac_count=$as_val
3953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3954 # Best one so far, save it but keep looking for a better one
3955 ac_cv_path_EGREP="$ac_path_EGREP"
3956 ac_path_EGREP_max=$ac_count
3958 # 10*(2^10) chars as input seems more than enough
3959 test $ac_count -gt 10 && break
3961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3964 $ac_path_EGREP_found && break 3
3969 if test -z "$ac_cv_path_EGREP"; then
3970 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3973 ac_cv_path_EGREP=$EGREP
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3979 $as_echo "$ac_cv_path_EGREP" >&6; }
3980 EGREP="$ac_cv_path_EGREP"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3984 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3985 if test "${ac_cv_header_stdc+set}" = set; then :
3986 $as_echo_n "(cached
) " >&6
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004 ac_cv_header_stdc=yes
4006 ac_cv_header_stdc=no
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 if test $ac_cv_header_stdc = yes; then
4011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4017 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4018 $EGREP "memchr
" >/dev/null 2>&1; then :
4021 ac_cv_header_stdc=no
4027 if test $ac_cv_header_stdc = yes; then
4028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4034 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4035 $EGREP "free
" >/dev/null 2>&1; then :
4038 ac_cv_header_stdc=no
4044 if test $ac_cv_header_stdc = yes; then
4045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4046 if test "$cross_compiling" = yes; then :
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4053 #if ((' ' & 0x0FF) == 0x020)
4054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4057 # define ISLOWER(c) \
4058 (('a' <= (c) && (c) <= 'i') \
4059 || ('j' <= (c) && (c) <= 'r') \
4060 || ('s' <= (c) && (c) <= 'z'))
4061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4069 for (i = 0; i < 256; i++)
4070 if (XOR (islower (i), ISLOWER (i))
4071 || toupper (i) != TOUPPER (i))
4076 if ac_fn_c_try_run "$LINENO"; then :
4079 ac_cv_header_stdc=no
4081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4082 conftest.$ac_objext conftest.beam conftest.$ac_ext
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4088 $as_echo "$ac_cv_header_stdc" >&6; }
4089 if test $ac_cv_header_stdc = yes; then
4091 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4095 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4096 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4097 inttypes.h stdint.h unistd.h
4099 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4100 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4102 eval as_val
=\$
$as_ac_Header
4103 if test "x$as_val" = x
""yes; then :
4104 cat >>confdefs.h
<<_ACEOF
4105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4116 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4117 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4124 if test "$MINIX" = yes; then
4126 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4129 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4132 $as_echo "#define _MINIX 1" >>confdefs.h
4139 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4146 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4147 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4153 # define __EXTENSIONS__ 1
4154 $ac_includes_default
4163 if ac_fn_c_try_compile
"$LINENO"; then :
4164 ac_cv_safe_to_define___extensions__
=yes
4166 ac_cv_safe_to_define___extensions__
=no
4168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4171 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4172 test $ac_cv_safe_to_define___extensions__ = yes &&
4173 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4175 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4177 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4179 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4181 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4183 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4189 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4190 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4204 gl_cv_c_amsterdam_compiler
=yes
4206 gl_cv_c_amsterdam_compiler
=no
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4213 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4214 if test -z "$AR"; then
4215 if test $gl_cv_c_amsterdam_compiler = yes; then
4217 if test -z "$ARFLAGS"; then
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4223 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if test "${ac_cv_prog_AR+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4229 if test -n "$AR"; then
4230 ac_cv_prog_AR
="$AR" # Let the user override the test.
4232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4236 test -z "$as_dir" && as_dir
=.
4237 for ac_exec_ext
in '' $ac_executable_extensions; do
4238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 if test -n "$AR"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4252 $as_echo "$AR" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4260 if test -z "$ac_cv_prog_AR"; then
4262 # Extract the first word of "ar", so it can be a program name with args.
4263 set dummy
ar; ac_word
=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4269 if test -n "$ac_ct_AR"; then
4270 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir
=.
4277 for ac_exec_ext
in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_ac_ct_AR
="ar"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4290 if test -n "$ac_ct_AR"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4292 $as_echo "$ac_ct_AR" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4298 if test "x$ac_ct_AR" = x
; then
4301 case $cross_compiling:$ac_tool_warned in
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned
=yes ;;
4313 if test -z "$ARFLAGS"; then
4318 if test -z "$ARFLAGS"; then
4324 if test -z "$RANLIB"; then
4325 if test $gl_cv_c_amsterdam_compiler = yes; then
4328 if test -n "$ac_tool_prefix"; then
4329 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4330 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4336 if test -n "$RANLIB"; then
4337 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_exec_ext
in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 RANLIB
=$ac_cv_prog_RANLIB
4357 if test -n "$RANLIB"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4359 $as_echo "$RANLIB" >&6; }
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4367 if test -z "$ac_cv_prog_RANLIB"; then
4368 ac_ct_RANLIB
=$RANLIB
4369 # Extract the first word of "ranlib", so it can be a program name with args.
4370 set dummy ranlib
; ac_word
=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4376 if test -n "$ac_ct_RANLIB"; then
4377 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4383 test -z "$as_dir" && as_dir
=.
4384 for ac_exec_ext
in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4397 if test -n "$ac_ct_RANLIB"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4399 $as_echo "$ac_ct_RANLIB" >&6; }
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4405 if test "x$ac_ct_RANLIB" = x
; then
4408 case $cross_compiling:$ac_tool_warned in
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4412 ac_tool_warned
=yes ;;
4414 RANLIB
=$ac_ct_RANLIB
4417 RANLIB
="$ac_cv_prog_RANLIB"
4432 # Code from module extensions:
4434 # Code from module include_next:
4435 # Code from module inttypes:
4436 # Code from module inttypes-incomplete:
4437 # Code from module memchr:
4438 # Code from module memmem:
4439 # Code from module memmem-simple:
4440 # Code from module multiarch:
4441 # Code from module snippet/arg-nonnull:
4442 # Code from module snippet/c++defs:
4443 # Code from module snippet/warn-on-use:
4444 # Code from module stddef:
4445 # Code from module stdint:
4446 # Code from module string:
4447 # Code from module update-copyright:
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4450 $as_echo_n "checking target system type... " >&6; }
4451 if test "${ac_cv_target+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 if test "x$target_alias" = x
; then
4455 ac_cv_target
=$ac_cv_host
4457 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4458 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4463 $as_echo "$ac_cv_target" >&6; }
4464 case $ac_cv_target in
4466 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4468 target
=$ac_cv_target
4469 ac_save_IFS
=$IFS; IFS
='-'
4475 # Remember, the first character of IFS is used to create $*,
4476 # except with old shells:
4479 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4482 # The aliases save the names the user supplied, while $host etc.
4483 # will get canonicalized.
4484 test -n "$target_alias" &&
4485 test "$program_prefix$program_suffix$program_transform_name" = \
4487 program_prefix
=${target_alias}-
4489 # The tests for host and target for $enable_largefile require
4494 # As the $enable_largefile decision depends on --enable-plugins we must set it
4495 # even in directories otherwise not depending on the $plugins option.
4498 # Check whether --enable-plugins was given.
4499 if test "${enable_plugins+set}" = set; then :
4500 enableval
=$enable_plugins; case "${enableval}" in
4501 yes |
"") plugins
=yes ;;
4512 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4513 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4514 # are mutually exclusive; and without procfs support, the bfd/ elf module
4515 # cannot provide certain routines such as elfcore_write_prpsinfo
4516 # or elfcore_write_prstatus. So unless the user explicitly requested
4517 # large-file support through the --enable-largefile switch, disable
4518 # large-file support in favor of procfs support.
4519 test "${target}" = "${host}" -a "x$plugins" = xno \
4520 && : ${enable_largefile="no"}
4524 # Check whether --enable-largefile was given.
4525 if test "${enable_largefile+set}" = set; then :
4526 enableval
=$enable_largefile;
4529 if test "$enable_largefile" != no
; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4532 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4533 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4536 ac_cv_sys_largefile_CC
=no
4537 if test "$GCC" != yes; then
4540 # IRIX 6.2 and later do not support large files by default,
4541 # so use the C compiler's -n32 option if that helps.
4542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <sys/types.h>
4545 /* Check that off_t can represent 2**63 - 1 correctly.
4546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4547 since some C++ compilers masquerading as C compilers
4548 incorrectly reject 9223372036854775807. */
4549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4551 && LARGE_OFF_T % 2147483647 == 1)
4561 if ac_fn_c_try_compile
"$LINENO"; then :
4564 rm -f core conftest.err conftest.
$ac_objext
4566 if ac_fn_c_try_compile
"$LINENO"; then :
4567 ac_cv_sys_largefile_CC
=' -n32'; break
4569 rm -f core conftest.err conftest.
$ac_objext
4573 rm -f conftest.
$ac_ext
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4577 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4578 if test "$ac_cv_sys_largefile_CC" != no
; then
4579 CC
=$CC$ac_cv_sys_largefile_CC
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4583 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4584 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590 #include <sys/types.h>
4591 /* Check that off_t can represent 2**63 - 1 correctly.
4592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4593 since some C++ compilers masquerading as C compilers
4594 incorrectly reject 9223372036854775807. */
4595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4597 && LARGE_OFF_T % 2147483647 == 1)
4607 if ac_fn_c_try_compile
"$LINENO"; then :
4608 ac_cv_sys_file_offset_bits
=no
; break
4610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #define _FILE_OFFSET_BITS 64
4614 #include <sys/types.h>
4615 /* Check that off_t can represent 2**63 - 1 correctly.
4616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4617 since some C++ compilers masquerading as C compilers
4618 incorrectly reject 9223372036854775807. */
4619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4621 && LARGE_OFF_T % 2147483647 == 1)
4631 if ac_fn_c_try_compile
"$LINENO"; then :
4632 ac_cv_sys_file_offset_bits
=64; break
4634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4635 ac_cv_sys_file_offset_bits
=unknown
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4640 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4641 case $ac_cv_sys_file_offset_bits in #(
4644 cat >>confdefs.h
<<_ACEOF
4645 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4650 if test $ac_cv_sys_file_offset_bits = unknown
; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4652 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4653 if test "${ac_cv_sys_large_files+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
4657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #include <sys/types.h>
4660 /* Check that off_t can represent 2**63 - 1 correctly.
4661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4662 since some C++ compilers masquerading as C compilers
4663 incorrectly reject 9223372036854775807. */
4664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4666 && LARGE_OFF_T % 2147483647 == 1)
4676 if ac_fn_c_try_compile
"$LINENO"; then :
4677 ac_cv_sys_large_files
=no
; break
4679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 #define _LARGE_FILES 1
4683 #include <sys/types.h>
4684 /* Check that off_t can represent 2**63 - 1 correctly.
4685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4686 since some C++ compilers masquerading as C compilers
4687 incorrectly reject 9223372036854775807. */
4688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4690 && LARGE_OFF_T % 2147483647 == 1)
4700 if ac_fn_c_try_compile
"$LINENO"; then :
4701 ac_cv_sys_large_files
=1; break
4703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4704 ac_cv_sys_large_files
=unknown
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4709 $as_echo "$ac_cv_sys_large_files" >&6; }
4710 case $ac_cv_sys_large_files in #(
4713 cat >>confdefs.h
<<_ACEOF
4714 #define _LARGE_FILES $ac_cv_sys_large_files
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4727 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4728 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4731 am_cv_prog_cc_stdc
=no
4733 # Don't try gcc -ansi; that turns off useful extensions and
4734 # breaks some systems' header files.
4735 # AIX -qlanglvl=ansi
4736 # Ultrix and OSF/1 -std1
4737 # HP-UX 10.20 and later -Ae
4738 # HP-UX older versions -Aa -D_HPUX_SOURCE
4739 # SVR4 -Xc -D__EXTENSIONS__
4740 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4742 CC
="$ac_save_CC $ac_arg"
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 #include <sys/types.h>
4748 #include <sys/stat.h>
4749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4750 struct buf { int x; };
4751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4752 static char *e (p, i)
4758 static char *f (char * (*g) (char **, int), char **p, ...)
4763 s = g (p, va_arg (v,int));
4767 int test (int i, double x);
4768 struct s1 {int (*f) (int a);};
4769 struct s2 {int (*f) (double a);};
4770 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4784 if ac_fn_c_try_compile
"$LINENO"; then :
4785 am_cv_prog_cc_stdc
="$ac_arg"; break
4787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4793 if test -z "$am_cv_prog_cc_stdc"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4795 $as_echo "none needed" >&6; }
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4798 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4800 case "x$am_cv_prog_cc_stdc" in
4802 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4807 for ac_dir
in ..
"$srcdir"/..
; do
4808 for ac_t
in install-sh
install.sh shtool
; do
4809 if test -f "$ac_dir/$ac_t"; then
4811 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4816 if test -z "$ac_aux_dir"; then
4817 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4820 # These three variables are undocumented and unsupported,
4821 # and are intended to be withdrawn in a future Autoconf release.
4822 # They can cause serious problems if a builder's source tree is in a directory
4823 # whose full name contains unusual characters.
4824 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4825 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4826 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4831 # Dependency checking.
4832 rm -rf .tst
2>/dev
/null
4833 mkdir .tst
2>/dev
/null
4834 if test -d .tst
; then
4839 rmdir .tst
2>/dev
/null
4841 DEPDIR
="${am__leading_dot}deps"
4843 ac_config_commands
="$ac_config_commands depdir"
4846 depcc
="$CC" am_compiler_list
=
4848 am_depcomp
=$ac_aux_dir/depcomp
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4850 $as_echo_n "checking dependency style of $depcc... " >&6; }
4851 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4854 if test -f "$am_depcomp"; then
4855 # We make a subdir and do the tests there. Otherwise we can end up
4856 # making bogus files that we don't know about and never remove. For
4857 # instance it was reported that on HP-UX the gcc test will end up
4858 # making a dummy file named `D' -- because `-MD' means `put the output
4861 # Copy depcomp to subdir because otherwise we won't find it if we're
4862 # using a relative directory.
4863 cp "$am_depcomp" conftest.dir
4865 # We will build objects and dependencies in a subdirectory because
4866 # it helps to detect inapplicable dependency modes. For instance
4867 # both Tru64's cc and ICC support -MD to output dependencies as a
4868 # side effect of compilation, but ICC will put the dependencies in
4869 # the current directory while Tru64 will put them in the object
4873 am_cv_CC_dependencies_compiler_type
=none
4874 if test "$am_compiler_list" = ""; then
4875 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4877 for depmode
in $am_compiler_list; do
4878 if test $depmode = none
; then break; fi
4880 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4881 # Setup a source with many dependencies, because some compilers
4882 # like to wrap large dependency lists on column 80 (with \), and
4883 # we should not choose a depcomp mode which is confused by this.
4885 # We need to recreate these files for each test, as the compiler may
4886 # overwrite some of them when testing with obscure command lines.
4887 # This happens at least with the AIX C compiler.
4889 for i
in 1 2 3 4 5 6; do
4890 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4892 # Solaris 8's {/usr,}/bin/sh.
4893 touch sub
/conftst
$i.h
4895 echo "include sub/conftest.Po" > confmf
4897 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4898 # mode. It turns out that the SunPro C++ compiler does not properly
4899 # handle `-M -o', and we need to detect this.
4900 depcmd
="depmode=$depmode \
4901 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4903 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4904 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4905 if env
$depcmd > conftest.err
2>&1 &&
4906 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4907 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4908 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4909 # icc doesn't choke on unknown options, it will just issue warnings
4910 # or remarks (even with -Werror). So we grep stderr for any message
4911 # that says an option was ignored or not supported.
4912 # When given -MP, icc 7.0 and 7.1 complain thusly:
4913 # icc: Command line warning: ignoring option '-M'; no argument required
4914 # The diagnosis changed in icc 8.0:
4915 # icc: Command line remark: option '-MP' not supported
4916 if (grep 'ignoring option' conftest.err ||
4917 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4918 am_cv_CC_dependencies_compiler_type
=$depmode
4919 $as_echo "$as_me:$LINENO: success" >&5
4923 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4924 sed -e 's/^/| /' < conftest.err
>&5
4930 am_cv_CC_dependencies_compiler_type
=none
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4935 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4936 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4937 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4938 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4943 # Check for the 'make' the user wants to use.
4946 # Extract the first word of "$ac_prog", so it can be a program name with args.
4947 set dummy
$ac_prog; ac_word
=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_prog_MAKE+set}" = set; then :
4951 $as_echo_n "(cached) " >&6
4953 if test -n "$MAKE"; then
4954 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir
=.
4961 for ac_exec_ext
in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_MAKE
="$ac_prog"
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 MAKE
=$ac_cv_prog_MAKE
4974 if test -n "$MAKE"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4976 $as_echo "$MAKE" >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4983 test -n "$MAKE" && break
4987 case "`$MAKE --version 2>&1 | sed 1q`" in
4992 if test "$MAKE_IS_GNU" = yes; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5001 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5003 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5004 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5005 $as_echo_n "(cached) " >&6
5007 cat >conftest.
make <<\_ACEOF
5010 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5013 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5015 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5017 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5021 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5023 $as_echo "yes" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 SET_MAKE
="MAKE=${MAKE-make}"
5043 # If we haven't got the data from the intl directory,
5044 # assume NLS is disabled.
5053 if test -f ..
/intl
/config.intl
; then
5054 . ..
/intl
/config.intl
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5057 $as_echo_n "checking whether NLS is requested... " >&6; }
5058 if test x
"$USE_NLS" != xyes
; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063 $as_echo "yes" >&6; }
5065 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5069 $as_echo_n "checking for catalogs to be installed... " >&6; }
5070 # Look for .po and .gmo files in the source directory.
5073 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5074 # If there aren't any .gmo files the shell will give us the
5075 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5077 case "$cat" in *\
**)
5080 # The quadruple backslash is collapsed to a double backslash
5081 # by the backticks, then collapsed again by the double quotes,
5082 # leaving us with one backslash in the sed expression (right
5083 # before the dot that mustn't act as a wildcard).
5084 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5085 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
5086 # The user is allowed to set LINGUAS to a list of languages to
5087 # install catalogs for. If it's empty that means "all of them."
5088 if test "x$LINGUAS" = x
; then
5089 CATALOGS
="$CATALOGS $cat"
5090 XLINGUAS
="$XLINGUAS $lang"
5092 case "$LINGUAS" in *$lang*)
5093 CATALOGS
="$CATALOGS $cat"
5094 XLINGUAS
="$XLINGUAS $lang"
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5101 $as_echo "$LINGUAS" >&6; }
5114 localedir
='${datadir}/locale'
5117 if test x
"$USE_NLS" = xyes
; then
5118 CONFIG_ALL
="$CONFIG_ALL all-po"
5119 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5120 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5121 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5129 LIBC_FATAL_STDERR_
=1
5130 export LIBC_FATAL_STDERR_
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5134 $as_echo_n "checking for unsigned long long int... " >&6; }
5135 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5138 ac_cv_type_unsigned_long_long_int
=yes
5139 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
5140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5143 /* For now, do not test the preprocessor; as of 2007 there are too many
5144 implementations with broken preprocessors. Perhaps this can
5145 be revisited in 2012. In the meantime, code should not expect
5146 #if to work with literals wider than 32 bits. */
5147 /* Test literals. */
5148 long long int ll = 9223372036854775807ll;
5149 long long int nll = -9223372036854775807LL;
5150 unsigned long long int ull = 18446744073709551615ULL;
5151 /* Test constant expressions. */
5152 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5154 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5160 /* Test availability of runtime routines for shift and division. */
5161 long long int llmax = 9223372036854775807ll;
5162 unsigned long long int ullmax = 18446744073709551615ull;
5163 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5164 | (llmax / ll) | (llmax % ll)
5165 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5166 | (ullmax / ull) | (ullmax % ull));
5172 if ac_fn_c_try_link
"$LINENO"; then :
5175 ac_cv_type_unsigned_long_long_int
=no
5177 rm -f core conftest.err conftest.
$ac_objext \
5178 conftest
$ac_exeext conftest.
$ac_ext
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5182 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5183 if test $ac_cv_type_unsigned_long_long_int = yes; then
5185 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5192 $as_echo_n "checking for long long int... " >&6; }
5193 if test "${ac_cv_type_long_long_int+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5196 ac_cv_type_long_long_int
=yes
5197 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
5198 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
5199 if test $ac_cv_type_long_long_int = yes; then
5200 if test "$cross_compiling" = yes; then :
5203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5208 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5209 # define LLONG_MAX (HALF - 1 + HALF)
5214 long long int n = 1;
5218 long long int m = n << i;
5221 if (LLONG_MAX / 2 < m)
5229 if ac_fn_c_try_run
"$LINENO"; then :
5232 ac_cv_type_long_long_int
=no
5234 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5235 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5242 $as_echo "$ac_cv_type_long_long_int" >&6; }
5243 if test $ac_cv_type_long_long_int = yes; then
5245 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5253 for ac_header
in $gl_header_list
5255 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5256 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5257 eval as_val
=\$
$as_ac_Header
5258 if test "x$as_val" = x
""yes; then :
5259 cat >>confdefs.h
<<_ACEOF
5260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5274 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5275 if test "${gl_cv_have_include_next+set}" = set; then :
5276 $as_echo_n "(cached) " >&6
5278 rm -rf conftestd1a conftestd1b conftestd2
5279 mkdir conftestd1a conftestd1b conftestd2
5280 cat <<EOF > conftestd1a/conftest.h
5281 #define DEFINED_IN_CONFTESTD1
5282 #include_next <conftest.h>
5283 #ifdef DEFINED_IN_CONFTESTD2
5286 #error "include_next doesn't work"
5289 cat <<EOF > conftestd1b/conftest.h
5290 #define DEFINED_IN_CONFTESTD1
5292 #include_next <conftest.h>
5293 #ifdef DEFINED_IN_CONFTESTD2
5296 #error "include_next doesn't work"
5299 cat <<EOF > conftestd2/conftest.h
5300 #ifndef DEFINED_IN_CONFTESTD1
5301 #error "include_next test doesn't work"
5303 #define DEFINED_IN_CONFTESTD2
5305 gl_save_CPPFLAGS
="$CPPFLAGS"
5306 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <conftest.h>
5311 if ac_fn_c_try_compile
"$LINENO"; then :
5312 gl_cv_have_include_next
=yes
5314 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 #include <conftest.h>
5319 if ac_fn_c_try_compile
"$LINENO"; then :
5320 gl_cv_have_include_next
=buggy
5322 gl_cv_have_include_next
=no
5324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5328 CPPFLAGS
="$gl_save_CPPFLAGS"
5329 rm -rf conftestd1a conftestd1b conftestd2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5333 $as_echo "$gl_cv_have_include_next" >&6; }
5334 PRAGMA_SYSTEM_HEADER
=
5335 if test $gl_cv_have_include_next = yes; then
5336 INCLUDE_NEXT
=include_next
5337 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5338 if test -n "$GCC"; then
5339 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5342 if test $gl_cv_have_include_next = buggy
; then
5343 INCLUDE_NEXT
=include
5344 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5346 INCLUDE_NEXT
=include
5347 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5354 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5355 if test "${gl_cv_pragma_columns+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5367 $EGREP "choke me" >/dev
/null
2>&1; then :
5368 gl_cv_pragma_columns
=yes
5370 gl_cv_pragma_columns
=no
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5377 $as_echo "$gl_cv_pragma_columns" >&6; }
5378 if test $gl_cv_pragma_columns = yes; then
5379 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
5391 gl_cv_c_multiarch
=no
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #ifndef __APPLE_CC__
5395 not a universal capable compiler
5400 if ac_fn_c_try_compile
"$LINENO"; then :
5404 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5405 if test -n "$prev"; then
5407 i?
86 | x86_64 | ppc | ppc64
)
5408 if test -z "$arch" ||
test "$arch" = "$word"; then
5411 gl_cv_c_multiarch
=yes
5417 if test "x$word" = "x-arch"; then
5424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5425 if test $gl_cv_c_multiarch = yes; then
5426 APPLE_UNIVERSAL_BUILD
=1
5428 APPLE_UNIVERSAL_BUILD
=0
5435 if test $ac_cv_type_long_long_int = yes; then
5436 HAVE_LONG_LONG_INT
=1
5438 HAVE_LONG_LONG_INT
=0
5442 if test $ac_cv_type_unsigned_long_long_int = yes; then
5443 HAVE_UNSIGNED_LONG_LONG_INT
=1
5445 HAVE_UNSIGNED_LONG_LONG_INT
=0
5456 if test $ac_cv_header_wchar_h = yes; then
5463 if test $ac_cv_header_inttypes_h = yes; then
5470 if test $ac_cv_header_sys_types_h = yes; then
5492 if test $gl_cv_have_include_next = yes; then
5493 gl_cv_next_stdint_h
='<'stdint.h
'>'
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5496 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5497 if test "${gl_cv_next_stdint_h+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5501 if test $ac_cv_header_stdint_h = yes; then
5504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5510 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5511 *) gl_absname_cpp
="$ac_cpp" ;;
5516 gl_dirsep_regex
='[/\\]'
5519 gl_dirsep_regex
='\/'
5522 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
5524 gl_header_literal_regex
=`echo 'stdint.h' \
5525 | sed -e "$gl_make_literal_regex_sed"`
5526 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5527 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5532 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5533 sed -n "$gl_absolute_header_sed"`'"'
5535 gl_cv_next_stdint_h
='<'stdint.h
'>'
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5541 $as_echo "$gl_cv_next_stdint_h" >&6; }
5543 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5545 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5547 gl_next_as_first_directive
='<'stdint.h
'>'
5549 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5550 gl_next_as_first_directive
=$gl_cv_next_stdint_h
5552 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
5557 if test $ac_cv_header_stdint_h = yes; then
5564 if test $ac_cv_header_stdint_h = yes; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5566 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5567 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5570 gl_cv_header_working_stdint_h
=no
5571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5575 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5577 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5578 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5579 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5583 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5584 included before <wchar.h>. */
5595 int8_t a1 = INT8_MAX;
5596 int8_t a1min = INT8_MIN;
5599 int16_t a2 = INT16_MAX;
5600 int16_t a2min = INT16_MIN;
5603 int32_t a3 = INT32_MAX;
5604 int32_t a3min = INT32_MIN;
5607 int64_t a4 = INT64_MAX;
5608 int64_t a4min = INT64_MIN;
5611 uint8_t b1 = UINT8_MAX;
5613 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5616 uint16_t b2 = UINT16_MAX;
5619 uint32_t b3 = UINT32_MAX;
5622 uint64_t b4 = UINT64_MAX;
5624 int_least8_t c1 = INT8_C (0x7f);
5625 int_least8_t c1max = INT_LEAST8_MAX;
5626 int_least8_t c1min = INT_LEAST8_MIN;
5627 int_least16_t c2 = INT16_C (0x7fff);
5628 int_least16_t c2max = INT_LEAST16_MAX;
5629 int_least16_t c2min = INT_LEAST16_MIN;
5630 int_least32_t c3 = INT32_C (0x7fffffff);
5631 int_least32_t c3max = INT_LEAST32_MAX;
5632 int_least32_t c3min = INT_LEAST32_MIN;
5633 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5634 int_least64_t c4max = INT_LEAST64_MAX;
5635 int_least64_t c4min = INT_LEAST64_MIN;
5636 uint_least8_t d1 = UINT8_C (0xff);
5637 uint_least8_t d1max = UINT_LEAST8_MAX;
5638 uint_least16_t d2 = UINT16_C (0xffff);
5639 uint_least16_t d2max = UINT_LEAST16_MAX;
5640 uint_least32_t d3 = UINT32_C (0xffffffff);
5641 uint_least32_t d3max = UINT_LEAST32_MAX;
5642 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5643 uint_least64_t d4max = UINT_LEAST64_MAX;
5644 int_fast8_t e1 = INT_FAST8_MAX;
5645 int_fast8_t e1min = INT_FAST8_MIN;
5646 int_fast16_t e2 = INT_FAST16_MAX;
5647 int_fast16_t e2min = INT_FAST16_MIN;
5648 int_fast32_t e3 = INT_FAST32_MAX;
5649 int_fast32_t e3min = INT_FAST32_MIN;
5650 int_fast64_t e4 = INT_FAST64_MAX;
5651 int_fast64_t e4min = INT_FAST64_MIN;
5652 uint_fast8_t f1 = UINT_FAST8_MAX;
5653 uint_fast16_t f2 = UINT_FAST16_MAX;
5654 uint_fast32_t f3 = UINT_FAST32_MAX;
5655 uint_fast64_t f4 = UINT_FAST64_MAX;
5657 intptr_t g = INTPTR_MAX;
5658 intptr_t gmin = INTPTR_MIN;
5661 uintptr_t h = UINTPTR_MAX;
5663 intmax_t i = INTMAX_MAX;
5664 uintmax_t j = UINTMAX_MAX;
5666 #include <limits.h> /* for CHAR_BIT */
5667 #define TYPE_MINIMUM(t) \
5668 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5669 #define TYPE_MAXIMUM(t) \
5670 ((t) ((t) 0 < (t) -1 \
5672 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5675 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5676 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5678 /* Detect bug in FreeBSD 6.0 / ia64. */
5679 int check_SIG_ATOMIC:
5680 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5681 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5683 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5685 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5686 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5688 /* Detect bug in mingw. */
5690 WINT_MIN == TYPE_MINIMUM (wint_t)
5691 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5694 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5696 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5698 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5700 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5702 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5705 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5708 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5711 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5713 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5714 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5715 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5716 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5717 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5718 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5719 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5720 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5721 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5722 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5723 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5734 if ac_fn_c_try_compile
"$LINENO"; then :
5735 if test "$cross_compiling" = yes; then :
5736 gl_cv_header_working_stdint_h
=yes
5739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5743 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5747 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5748 included before <wchar.h>. */
5760 #define MVAL(macro) MVAL1(macro)
5761 #define MVAL1(expression) #expression
5762 static const char *macro_values[] =
5796 for (mv = macro_values; *mv != NULL; mv++)
5798 const char *value = *mv;
5799 /* Test whether it looks like a cast expression. */
5800 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5801 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5802 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5803 || strncmp (value, "((int)"/*)*/, 6) == 0
5804 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5805 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5806 return mv - macro_values + 1;
5814 if ac_fn_c_try_run
"$LINENO"; then :
5815 gl_cv_header_working_stdint_h
=yes
5817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5827 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5829 if test "$gl_cv_header_working_stdint_h" = yes; then
5832 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5834 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5835 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5836 eval as_val
=\$
$as_ac_Header
5837 if test "x$as_val" = x
""yes; then :
5838 cat >>confdefs.h
<<_ACEOF
5839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5846 if test $ac_cv_header_sys_inttypes_h = yes; then
5847 HAVE_SYS_INTTYPES_H
=1
5849 HAVE_SYS_INTTYPES_H
=0
5852 if test $ac_cv_header_sys_bitypes_h = yes; then
5853 HAVE_SYS_BITYPES_H
=1
5855 HAVE_SYS_BITYPES_H
=0
5861 if test $APPLE_UNIVERSAL_BUILD = 0; then
5864 for gltype
in ptrdiff_t size_t
; do
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5866 $as_echo_n "checking for bit size of $gltype... " >&6; }
5867 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5868 $as_echo_n "(cached) " >&6
5870 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5871 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5872 included before <wchar.h>. */
5881 #include <limits.h>"; then :
5887 eval gl_cv_bitsizeof_
${gltype}=\
$result
5890 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5892 $as_echo "$ac_res" >&6; }
5893 eval result
=\
$gl_cv_bitsizeof_${gltype}
5894 if test $result = unknown
; then
5897 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5898 cat >>confdefs.h
<<_ACEOF
5899 #define BITSIZEOF_${GLTYPE} $result
5902 eval BITSIZEOF_
${GLTYPE}=\
$result
5909 for gltype
in sig_atomic_t wchar_t wint_t
; do
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5911 $as_echo_n "checking for bit size of $gltype... " >&6; }
5912 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5913 $as_echo_n "(cached) " >&6
5915 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5916 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5917 included before <wchar.h>. */
5926 #include <limits.h>"; then :
5932 eval gl_cv_bitsizeof_
${gltype}=\
$result
5935 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5937 $as_echo "$ac_res" >&6; }
5938 eval result
=\
$gl_cv_bitsizeof_${gltype}
5939 if test $result = unknown
; then
5942 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5943 cat >>confdefs.h
<<_ACEOF
5944 #define BITSIZEOF_${GLTYPE} $result
5947 eval BITSIZEOF_
${GLTYPE}=\
$result
5953 for gltype
in sig_atomic_t wchar_t wint_t
; do
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5955 $as_echo_n "checking whether $gltype is signed... " >&6; }
5956 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5957 $as_echo_n "(cached) " >&6
5959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5962 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5963 included before <wchar.h>. */
5972 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5981 if ac_fn_c_try_compile
"$LINENO"; then :
5986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5987 eval gl_cv_type_
${gltype}_signed
=\
$result
5990 eval ac_res
=\
$gl_cv_type_${gltype}_signed
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5992 $as_echo "$ac_res" >&6; }
5993 eval result
=\
$gl_cv_type_${gltype}_signed
5994 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5995 if test "$result" = yes; then
5996 cat >>confdefs.h
<<_ACEOF
5997 #define HAVE_SIGNED_${GLTYPE} 1
6000 eval HAVE_SIGNED_
${GLTYPE}=1
6002 eval HAVE_SIGNED_
${GLTYPE}=0
6007 gl_cv_type_ptrdiff_t_signed
=yes
6008 gl_cv_type_size_t_signed
=no
6009 if test $APPLE_UNIVERSAL_BUILD = 0; then
6012 for gltype
in ptrdiff_t size_t
; do
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6014 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6015 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6016 $as_echo_n "(cached) " >&6
6018 eval gl_cv_type_
${gltype}_suffix
=no
6019 eval result
=\
$gl_cv_type_${gltype}_signed
6020 if test "$result" = yes; then
6025 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6028 l
) gltype1
='long int';;
6029 ll
) gltype1
='long long int';;
6030 i64
) gltype1
='__int64';;
6031 u
) gltype1
='unsigned int';;
6032 ul
) gltype1
='unsigned long int';;
6033 ull
) gltype1
='unsigned long long int';;
6034 ui64
)gltype1
='unsigned __int64';;
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6039 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6040 included before <wchar.h>. */
6050 extern $gltype1 foo;
6059 if ac_fn_c_try_compile
"$LINENO"; then :
6060 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6063 eval result
=\
$gl_cv_type_${gltype}_suffix
6064 test "$result" != no
&& break
6067 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6069 $as_echo "$ac_res" >&6; }
6070 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6071 eval result
=\
$gl_cv_type_${gltype}_suffix
6072 test "$result" = no
&& result
=
6073 eval ${GLTYPE}_SUFFIX
=\
$result
6074 cat >>confdefs.h
<<_ACEOF
6075 #define ${GLTYPE}_SUFFIX $result
6084 for gltype
in sig_atomic_t wchar_t wint_t
; do
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6086 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6087 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6088 $as_echo_n "(cached) " >&6
6090 eval gl_cv_type_
${gltype}_suffix
=no
6091 eval result
=\
$gl_cv_type_${gltype}_signed
6092 if test "$result" = yes; then
6097 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6100 l
) gltype1
='long int';;
6101 ll
) gltype1
='long long int';;
6102 i64
) gltype1
='__int64';;
6103 u
) gltype1
='unsigned int';;
6104 ul
) gltype1
='unsigned long int';;
6105 ull
) gltype1
='unsigned long long int';;
6106 ui64
)gltype1
='unsigned __int64';;
6108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6111 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6112 included before <wchar.h>. */
6122 extern $gltype1 foo;
6131 if ac_fn_c_try_compile
"$LINENO"; then :
6132 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6135 eval result
=\
$gl_cv_type_${gltype}_suffix
6136 test "$result" != no
&& break
6139 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6141 $as_echo "$ac_res" >&6; }
6142 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6143 eval result
=\
$gl_cv_type_${gltype}_suffix
6144 test "$result" = no
&& result
=
6145 eval ${GLTYPE}_SUFFIX
=\
$result
6146 cat >>confdefs.h
<<_ACEOF
6147 #define ${GLTYPE}_SUFFIX $result
6154 if test $BITSIZEOF_WINT_T -lt 32; then
6161 if test -n "$STDINT_H"; then
6162 GL_GENERATE_STDINT_H_TRUE
=
6163 GL_GENERATE_STDINT_H_FALSE
='#'
6165 GL_GENERATE_STDINT_H_TRUE
='#'
6166 GL_GENERATE_STDINT_H_FALSE
=
6180 HAVE_DECL_IMAXABS
=1;
6181 HAVE_DECL_IMAXDIV
=1;
6182 HAVE_DECL_STRTOIMAX
=1;
6183 HAVE_DECL_STRTOUMAX
=1;
6184 REPLACE_STRTOIMAX
=0;
6185 INT32_MAX_LT_INTMAX_MAX
=1;
6186 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
6187 PRI_MACROS_BROKEN
=0;
6188 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
6189 UINT32_MAX_LT_UINTMAX_MAX
=1;
6190 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
6218 if test $gl_cv_have_include_next = yes; then
6219 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6222 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6223 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6227 if test $ac_cv_header_inttypes_h = yes; then
6230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 #include <inttypes.h>
6236 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6237 *) gl_absname_cpp
="$ac_cpp" ;;
6242 gl_dirsep_regex
='[/\\]'
6245 gl_dirsep_regex
='\/'
6248 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
6250 gl_header_literal_regex
=`echo 'inttypes.h' \
6251 | sed -e "$gl_make_literal_regex_sed"`
6252 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6253 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6258 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6259 sed -n "$gl_absolute_header_sed"`'"'
6261 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6267 $as_echo "$gl_cv_next_inttypes_h" >&6; }
6269 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
6271 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6273 gl_next_as_first_directive
='<'inttypes.h
'>'
6275 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6276 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
6278 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
6287 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
6288 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6290 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6291 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6292 $as_echo_n "(cached) " >&6
6294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296 #include <inttypes.h>
6307 if ac_fn_c_try_compile
"$LINENO"; then :
6308 eval "$as_gl_Symbol=yes"
6310 eval "$as_gl_Symbol=no"
6312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6314 eval ac_res
=\$
$as_gl_Symbol
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6316 $as_echo "$ac_res" >&6; }
6317 eval as_val
=\$
$as_gl_Symbol
6318 if test "x$as_val" = x
""yes; then :
6319 cat >>confdefs.h
<<_ACEOF
6320 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6323 eval ac_cv_have_decl_
$gl_func=yes
6329 for ac_header
in inttypes.h
6331 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6332 if test "x$ac_cv_header_inttypes_h" = x
""yes; then :
6333 cat >>confdefs.h
<<_ACEOF
6334 #define HAVE_INTTYPES_H 1
6341 if test $ac_cv_header_inttypes_h = yes; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6343 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6344 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6351 #include <inttypes.h>
6364 if ac_fn_c_try_compile
"$LINENO"; then :
6365 gt_cv_inttypes_pri_broken
=no
6367 gt_cv_inttypes_pri_broken
=yes
6369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6373 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6375 if test "$gt_cv_inttypes_pri_broken" = yes; then
6377 cat >>confdefs.h
<<_ACEOF
6378 #define PRI_MACROS_BROKEN 1
6396 for ac_func
in $gl_func_list
6398 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6399 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6400 eval as_val
=\$
$as_ac_var
6401 if test "x$as_val" = x
""yes; then :
6402 cat >>confdefs.h
<<_ACEOF
6403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6431 GNULIB_STRCASESTR
=0;
6438 GNULIB_MBSCASECMP
=0;
6439 GNULIB_MBSNCASECMP
=0;
6440 GNULIB_MBSPCASECMP
=0;
6441 GNULIB_MBSCASESTR
=0;
6448 GNULIB_STRERROR_R
=0;
6450 GNULIB_STRVERSCMP
=0;
6457 HAVE_DECL_MEMRCHR
=1;
6463 HAVE_DECL_STRNDUP
=1;
6464 HAVE_DECL_STRNLEN
=1;
6468 HAVE_DECL_STRTOK_R
=1;
6469 HAVE_DECL_STRERROR_R
=1;
6470 HAVE_DECL_STRSIGNAL
=1;
6477 REPLACE_STRCASESTR
=0;
6478 REPLACE_STRCHRNUL
=0;
6480 REPLACE_STRERROR_R
=0;
6484 REPLACE_STRSIGNAL
=0;
6486 UNDEFINE_STRTOK_R
=0;
6492 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
6493 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
6494 # irrelevant for anonymous mappings.
6495 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
6496 if test "x$ac_cv_func_mmap" = x
""yes; then :
6503 # Try to allow MAP_ANONYMOUS.
6504 gl_have_mmap_anonymous
=no
6505 if test $gl_have_mmap = yes; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
6507 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
6508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6511 #include <sys/mman.h>
6512 #ifdef MAP_ANONYMOUS
6513 I cant identify this map
6517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6518 $EGREP "I cant identify this map" >/dev
/null
2>&1; then :
6519 gl_have_mmap_anonymous
=yes
6523 if test $gl_have_mmap_anonymous != yes; then
6524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6527 #include <sys/mman.h>
6529 I cant identify this map
6533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6534 $EGREP "I cant identify this map" >/dev
/null
2>&1; then :
6536 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
6538 gl_have_mmap_anonymous
=yes
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
6544 $as_echo "$gl_have_mmap_anonymous" >&6; }
6545 if test $gl_have_mmap_anonymous = yes; then
6547 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
6569 if test $HAVE_MEMCHR = 1; then
6570 # Detect platform-specific bugs in some versions of glibc:
6571 # memchr should not dereference anything with length 0
6572 # http://bugzilla.redhat.com/499689
6573 # memchr should not dereference overestimated length after a match
6574 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
6575 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
6576 # Assume that memchr works on platforms that lack mprotect.
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
6578 $as_echo_n "checking whether memchr works... " >&6; }
6579 if test "${gl_cv_func_memchr_works+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6582 if test "$cross_compiling" = yes; then :
6583 gl_cv_func_memchr_works
="guessing no"
6585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6591 # include <unistd.h>
6592 # include <sys/types.h>
6593 # include <sys/mman.h>
6605 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
6606 # if HAVE_MAP_ANONYMOUS
6607 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
6609 # else /* !HAVE_MAP_ANONYMOUS */
6610 const int flags = MAP_FILE | MAP_PRIVATE;
6611 int fd = open ("/dev/zero", O_RDONLY, 0666);
6615 int pagesize = getpagesize ();
6617 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
6619 if (two_pages != (char *)(-1)
6620 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
6621 fence = two_pages + pagesize;
6626 if (memchr (fence, 0, 0))
6628 strcpy (fence - 9, "12345678");
6629 if (memchr (fence - 9, 0, 79) != fence - 1)
6631 if (memchr (fence - 1, 0, 3) != fence - 1)
6640 if ac_fn_c_try_run
"$LINENO"; then :
6641 gl_cv_func_memchr_works
=yes
6643 gl_cv_func_memchr_works
=no
6645 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6646 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
6651 $as_echo "$gl_cv_func_memchr_works" >&6; }
6652 if test "$gl_cv_func_memchr_works" != yes; then
6658 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
6659 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
6665 cat >>confdefs.h
<<_ACEOF
6666 #define HAVE_DECL_MEMMEM $ac_have_decl
6674 for ac_func
in memmem
6676 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6677 if test "x$ac_cv_func_memmem" = x
""yes; then :
6678 cat >>confdefs.h
<<_ACEOF
6679 #define HAVE_MEMMEM 1
6685 if test $ac_cv_func_memmem = yes; then
6697 if test $ac_cv_have_decl_memmem = no
; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
6701 $as_echo_n "checking whether memmem works... " >&6; }
6702 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
6705 if test "$cross_compiling" = yes; then :
6706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6709 #ifdef __GNU_LIBRARY__
6710 #include <features.h>
6711 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
6712 || __GLIBC_MINOR__ > 12)) \
6713 || (__GLIBC__ > 2)) \
6714 || defined __UCLIBC__
6717 #elif defined __CYGWIN__
6718 #include <cygwin/version.h>
6719 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
6727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6728 $EGREP "Lucky user" >/dev
/null
2>&1; then :
6729 gl_cv_func_memmem_works_always
=yes
6731 gl_cv_func_memmem_works_always
="guessing no"
6737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6740 #include <string.h> /* for memmem */
6741 #define P "_EF_BF_BD"
6742 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
6743 #define NEEDLE P P P P P
6750 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
6752 /* Check for empty needle behavior. */
6754 const char *haystack = "AAA";
6755 if (memmem (haystack, 3, NULL, 0) != haystack)
6764 if ac_fn_c_try_run
"$LINENO"; then :
6765 gl_cv_func_memmem_works_always
=yes
6767 gl_cv_func_memmem_works_always
=no
6769 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6770 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
6776 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
6777 if test "$gl_cv_func_memmem_works_always" != yes; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6789 $as_echo_n "checking for wchar_t... " >&6; }
6790 if test "${gt_cv_c_wchar_t+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6796 wchar_t foo = (wchar_t)'\0';
6805 if ac_fn_c_try_compile
"$LINENO"; then :
6810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6813 $as_echo "$gt_cv_c_wchar_t" >&6; }
6814 if test $gt_cv_c_wchar_t = yes; then
6816 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6821 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6822 if test "${ac_cv_c_restrict+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6826 # The order here caters to the fact that C++ does not require restrict.
6827 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
6828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 typedef int * int_ptr;
6831 int foo (int_ptr $ac_kw ip) {
6845 if ac_fn_c_try_compile
"$LINENO"; then :
6846 ac_cv_c_restrict
=$ac_kw
6848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6849 test "$ac_cv_c_restrict" != no
&& break
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6854 $as_echo "$ac_cv_c_restrict" >&6; }
6856 case $ac_cv_c_restrict in
6858 no
) $as_echo "#define restrict /**/" >>confdefs.h
6860 *) cat >>confdefs.h
<<_ACEOF
6861 #define restrict $ac_cv_c_restrict
6877 if test $gl_cv_have_include_next = yes; then
6878 gl_cv_next_string_h
='<'string.h
'>'
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
6881 $as_echo_n "checking absolute name of <string.h>... " >&6; }
6882 if test "${gl_cv_next_string_h+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6892 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6893 *) gl_absname_cpp
="$ac_cpp" ;;
6898 gl_dirsep_regex
='[/\\]'
6901 gl_dirsep_regex
='\/'
6904 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
6906 gl_header_literal_regex
=`echo 'string.h' \
6907 | sed -e "$gl_make_literal_regex_sed"`
6908 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6909 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6914 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6915 sed -n "$gl_absolute_header_sed"`'"'
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
6920 $as_echo "$gl_cv_next_string_h" >&6; }
6922 NEXT_STRING_H
=$gl_cv_next_string_h
6924 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6925 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6926 gl_next_as_first_directive
='<'string.h
'>'
6928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6929 gl_next_as_first_directive
=$gl_cv_next_string_h
6931 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
6938 for gl_func
in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp
; do
6939 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6941 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6942 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6943 $as_echo_n "(cached) " >&6
6945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6958 if ac_fn_c_try_compile
"$LINENO"; then :
6959 eval "$as_gl_Symbol=yes"
6961 eval "$as_gl_Symbol=no"
6963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6965 eval ac_res
=\$
$as_gl_Symbol
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6967 $as_echo "$ac_res" >&6; }
6968 eval as_val
=\$
$as_gl_Symbol
6969 if test "x$as_val" = x
""yes; then :
6970 cat >>confdefs.h
<<_ACEOF
6971 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6974 eval ac_cv_have_decl_
$gl_func=yes
6981 GL_COND_LIBTOOL_TRUE
=
6982 GL_COND_LIBTOOL_FALSE
='#'
6984 GL_COND_LIBTOOL_TRUE
='#'
6985 GL_COND_LIBTOOL_FALSE
=
6988 gl_cond_libtool
=false
6991 gl_m4_base
='gnulib/m4'
7001 gl_source_base
='gnulib'
7008 if test -n "$STDINT_H"; then
7011 for glpfx
in '' l ll I64
; do
7014 l
) gltype1
='long int';;
7015 ll
) gltype1
='long long int';;
7016 I64
) gltype1
='__int64';;
7018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7021 extern intptr_t foo;
7022 extern $gltype1 foo;
7031 if ac_fn_c_try_compile
"$LINENO"; then :
7032 PRIPTR_PREFIX
='"'$glpfx'"'
7034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7035 test -n "$PRIPTR_PREFIX" && break
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
7042 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
7043 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 /* Work also in C++ mode. */
7049 #define __STDC_LIMIT_MACROS 1
7051 /* Work if build is not clean. */
7052 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7059 #if defined INT32_MAX && defined INTMAX_MAX
7060 #define CONDITION (INT32_MAX < INTMAX_MAX)
7061 #elif HAVE_LONG_LONG_INT
7062 #define CONDITION (sizeof (int) < sizeof (long long int))
7066 int test[CONDITION ? 1 : -1];
7075 if ac_fn_c_try_compile
"$LINENO"; then :
7076 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
7078 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
7080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
7083 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
7084 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
7085 INT32_MAX_LT_INTMAX_MAX
=1;
7087 INT32_MAX_LT_INTMAX_MAX
=0;
7091 if test $APPLE_UNIVERSAL_BUILD = 0; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
7094 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
7095 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 /* Work also in C++ mode. */
7101 #define __STDC_LIMIT_MACROS 1
7103 /* Work if build is not clean. */
7104 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7111 #if defined INT64_MAX
7112 #define CONDITION (INT64_MAX == LONG_MAX)
7113 #elif HAVE_LONG_LONG_INT
7114 #define CONDITION (sizeof (long long int) == sizeof (long int))
7118 int test[CONDITION ? 1 : -1];
7127 if ac_fn_c_try_compile
"$LINENO"; then :
7128 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
7130 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
7132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
7135 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
7136 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
7137 INT64_MAX_EQ_LONG_MAX
=1;
7139 INT64_MAX_EQ_LONG_MAX
=0;
7144 INT64_MAX_EQ_LONG_MAX
=-1
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
7148 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
7149 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
7150 $as_echo_n "(cached) " >&6
7152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 /* Work also in C++ mode. */
7155 #define __STDC_LIMIT_MACROS 1
7157 /* Work if build is not clean. */
7158 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7165 #if defined UINT32_MAX && defined UINTMAX_MAX
7166 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
7167 #elif HAVE_LONG_LONG_INT
7168 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
7172 int test[CONDITION ? 1 : -1];
7181 if ac_fn_c_try_compile
"$LINENO"; then :
7182 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
7184 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
7186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
7189 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
7190 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
7191 UINT32_MAX_LT_UINTMAX_MAX
=1;
7193 UINT32_MAX_LT_UINTMAX_MAX
=0;
7197 if test $APPLE_UNIVERSAL_BUILD = 0; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
7200 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
7201 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 /* Work also in C++ mode. */
7207 #define __STDC_LIMIT_MACROS 1
7209 /* Work if build is not clean. */
7210 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7217 #if defined UINT64_MAX
7218 #define CONDITION (UINT64_MAX == ULONG_MAX)
7219 #elif HAVE_LONG_LONG_INT
7220 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
7224 int test[CONDITION ? 1 : -1];
7233 if ac_fn_c_try_compile
"$LINENO"; then :
7234 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
7236 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
7238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
7241 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
7242 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
7243 UINT64_MAX_EQ_ULONG_MAX
=1;
7245 UINT64_MAX_EQ_ULONG_MAX
=0;
7250 UINT64_MAX_EQ_ULONG_MAX
=-1
7256 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
7265 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
7268 for ac_header
in bp-sym.h
7270 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
7271 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
7272 cat >>confdefs.h
<<_ACEOF
7273 #define HAVE_BP_SYM_H 1
7293 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
7299 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
7301 $as_echo_n "checking whether memmem works in linear time... " >&6; }
7302 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7305 if test "$cross_compiling" = yes; then :
7306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7309 #include <features.h>
7310 #ifdef __GNU_LIBRARY__
7311 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
7312 && !defined __UCLIBC__
7317 #include <cygwin/version.h>
7318 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
7324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7325 $EGREP "Lucky user" >/dev
/null
2>&1; then :
7326 gl_cv_func_memmem_works_fast
=yes
7328 gl_cv_func_memmem_works_fast
="guessing no"
7334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7337 #include <signal.h> /* for signal */
7338 #include <string.h> /* for memmem */
7339 #include <stdlib.h> /* for malloc */
7340 #include <unistd.h> /* for alarm */
7341 static void quit (int sig) { exit (sig + 128); }
7349 char *haystack = (char *) malloc (2 * m + 1);
7350 char *needle = (char *) malloc (m + 1);
7351 /* Failure to compile this test due to missing alarm is okay,
7352 since all such platforms (mingw) also lack memmem. */
7353 signal (SIGALRM, quit);
7355 /* Check for quadratic performance. */
7356 if (haystack && needle)
7358 memset (haystack, 'A', 2 * m);
7359 haystack[2 * m] = 'B';
7360 memset (needle, 'A', m);
7362 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
7371 if ac_fn_c_try_run
"$LINENO"; then :
7372 gl_cv_func_memmem_works_fast
=yes
7374 gl_cv_func_memmem_works_fast
=no
7376 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7377 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
7383 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
7384 if test "$gl_cv_func_memmem_works_fast" != yes; then
7389 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
7398 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
7405 for ac_func
in memmem
7407 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
7408 if test "x$ac_cv_func_memmem" = x
""yes; then :
7409 cat >>confdefs.h
<<_ACEOF
7410 #define HAVE_MEMMEM 1
7416 if test $ac_cv_func_memmem = yes; then
7428 if test $ac_cv_have_decl_memmem = no
; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7432 $as_echo_n "checking whether memmem works... " >&6; }
7433 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7436 if test "$cross_compiling" = yes; then :
7437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7440 #ifdef __GNU_LIBRARY__
7441 #include <features.h>
7442 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7443 || __GLIBC_MINOR__ > 12)) \
7444 || (__GLIBC__ > 2)) \
7445 || defined __UCLIBC__
7448 #elif defined __CYGWIN__
7449 #include <cygwin/version.h>
7450 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
7458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7459 $EGREP "Lucky user" >/dev
/null
2>&1; then :
7460 gl_cv_func_memmem_works_always
=yes
7462 gl_cv_func_memmem_works_always
="guessing no"
7468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7471 #include <string.h> /* for memmem */
7472 #define P "_EF_BF_BD"
7473 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7474 #define NEEDLE P P P P P
7481 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7483 /* Check for empty needle behavior. */
7485 const char *haystack = "AAA";
7486 if (memmem (haystack, 3, NULL, 0) != haystack)
7495 if ac_fn_c_try_run
"$LINENO"; then :
7496 gl_cv_func_memmem_works_always
=yes
7498 gl_cv_func_memmem_works_always
=no
7500 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7501 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7507 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
7508 if test "$gl_cv_func_memmem_works_always" != yes; then
7514 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
7523 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
7537 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
7546 if test $gt_cv_c_wchar_t = no
; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
7551 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7552 if test "${gl_cv_decl_null_works+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7558 int test[2 * (sizeof NULL == sizeof (void *)) -1];
7568 if ac_fn_c_try_compile
"$LINENO"; then :
7569 gl_cv_decl_null_works
=yes
7571 gl_cv_decl_null_works
=no
7573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
7576 $as_echo "$gl_cv_decl_null_works" >&6; }
7577 if test $gl_cv_decl_null_works = no
; then
7582 if test -n "$STDDEF_H"; then
7583 GL_GENERATE_STDDEF_H_TRUE
=
7584 GL_GENERATE_STDDEF_H_FALSE
='#'
7586 GL_GENERATE_STDDEF_H_TRUE
='#'
7587 GL_GENERATE_STDDEF_H_FALSE
=
7590 if test -n "$STDDEF_H"; then
7599 if test $gl_cv_have_include_next = yes; then
7600 gl_cv_next_stddef_h
='<'stddef.h
'>'
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
7603 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7604 if test "${gl_cv_next_stddef_h+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7614 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7615 *) gl_absname_cpp
="$ac_cpp" ;;
7620 gl_dirsep_regex
='[/\\]'
7623 gl_dirsep_regex
='\/'
7626 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
7628 gl_header_literal_regex
=`echo 'stddef.h' \
7629 | sed -e "$gl_make_literal_regex_sed"`
7630 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7631 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7636 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7637 sed -n "$gl_absolute_header_sed"`'"'
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
7642 $as_echo "$gl_cv_next_stddef_h" >&6; }
7644 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
7646 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7647 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7648 gl_next_as_first_directive
='<'stddef.h
'>'
7650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7651 gl_next_as_first_directive
=$gl_cv_next_stddef_h
7653 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
7664 # End of code from modules
7685 gl_source_base
='tests'
7686 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
7688 gl_module_indicator_condition
=$gltests_WITNESS
7698 LIBGNU_LIBDEPS
="$gl_libdeps"
7700 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
7704 # For Makefile dependencies.
7706 if test x
"$STDINT_H" != x
; then
7707 GNULIB_STDINT_H
=gnulib
/$STDINT_H
7713 cat >>confdefs.h
<<_ACEOF
7714 #define PACKAGE "$PACKAGE"
7719 # We never need to detect it in this sub-configure.
7720 # But preserve it for config.status --recheck.
7724 MAKEINFO_EXTRA_FLAGS
=""
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
7726 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
7727 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
7730 echo '@clicksequence{a @click{} b}' >conftest.texinfo
7731 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
7732 gdb_cv_have_makeinfo_click
=yes
7734 gdb_cv_have_makeinfo_click
=no
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
7738 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
7739 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
7740 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
7744 # GDB does not use automake, but gnulib does. This line lets us
7745 # generate its Makefile.in.
7746 am__api_version
='1.11'
7748 # Find a good install program. We prefer a C program (faster),
7749 # so one script is as good as another. But avoid the broken or
7750 # incompatible versions:
7751 # SysV /etc/install, /usr/sbin/install
7752 # SunOS /usr/etc/install
7753 # IRIX /sbin/install
7755 # AmigaOS /C/install, which installs bootblocks on floppy discs
7756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7759 # OS/2's system install, which has a completely different semantic
7760 # ./install, which can be erroneously created by make from ./install.sh.
7761 # Reject install programs that cannot install multiple files.
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7763 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7764 if test -z "$INSTALL"; then
7765 if test "${ac_cv_path_install+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir
=.
7773 # Account for people who put trailing slashes in PATH elements.
7774 case $as_dir/ in #((
7775 .
/ | .
// |
/[cC
]/* | \
7776 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7777 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7780 # OSF1 and SCO ODT 3.0 have their own names for install.
7781 # Don't use installbsd from OSF since it installs stuff as root
7783 for ac_prog
in ginstall scoinst
install; do
7784 for ac_exec_ext
in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7786 if test $ac_prog = install &&
7787 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7788 # AIX install. It has an incompatible calling convention.
7790 elif test $ac_prog = install &&
7791 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7792 # program-specific install script used by HP pwplus--don't use.
7795 rm -rf conftest.one conftest.two conftest.dir
7796 echo one
> conftest.one
7797 echo two
> conftest.two
7799 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7800 test -s conftest.one
&& test -s conftest.two
&&
7801 test -s conftest.dir
/conftest.one
&&
7802 test -s conftest.dir
/conftest.two
7804 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7817 rm -rf conftest.one conftest.two conftest.dir
7820 if test "${ac_cv_path_install+set}" = set; then
7821 INSTALL
=$ac_cv_path_install
7823 # As a last resort, use the slow shell script. Don't cache a
7824 # value for INSTALL within a source directory, because that will
7825 # break other packages using the cache if that directory is
7826 # removed, or if the value is a relative name.
7827 INSTALL
=$ac_install_sh
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7831 $as_echo "$INSTALL" >&6; }
7833 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7834 # It thinks the first close brace ends the variable substitution.
7835 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7837 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7839 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7842 $as_echo_n "checking whether build environment is sane... " >&6; }
7845 echo timestamp
> conftest.
file
7846 # Reject unsafe characters in $srcdir or the absolute working directory
7847 # name. Accept space and tab only in the latter.
7851 *[\\\"\
#\$\&\'\`$am_lf]*)
7852 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
7855 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
7856 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7859 # Do `set' in a subshell so we don't clobber the current shell's
7860 # arguments. Must try -L first in case configure is actually a
7861 # symlink; some systems play weird games with the mod time of symlinks
7862 # (eg FreeBSD returns the mod time of the symlink's containing
7865 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7866 if test "$*" = "X"; then
7868 set X
`ls -t "$srcdir/configure" conftest.file`
7871 if test "$*" != "X $srcdir/configure conftest.file" \
7872 && test "$*" != "X conftest.file $srcdir/configure"; then
7874 # If neither matched, then we have a broken ls. This can happen
7875 # if, for instance, CONFIG_SHELL is bash and it inherits a
7876 # broken ls alias from the environment. This has actually
7877 # happened. Such a system could not be considered "sane".
7878 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
7879 alias in your environment" "$LINENO" 5
7882 test "$2" = conftest.
file
7888 as_fn_error
"newly created file is older than distributed files!
7889 Check your system clock" "$LINENO" 5
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7892 $as_echo "yes" >&6; }
7893 test "$program_prefix" != NONE
&&
7894 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
7895 # Use a double $ so make ignores it.
7896 test "$program_suffix" != NONE
&&
7897 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
7898 # Double any \ or $.
7899 # By default was `s,x,x', remove it if useless.
7900 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
7901 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
7903 # expand $ac_aux_dir to an absolute path
7904 am_aux_dir
=`cd $ac_aux_dir && pwd`
7906 if test x
"${MISSING+set}" != xset
; then
7909 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
7911 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
7914 # Use eval to expand $SHELL
7915 if eval "$MISSING --run true"; then
7916 am_missing_run
="$MISSING --run "
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7920 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7923 if test x
"${install_sh}" != xset
; then
7926 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
7928 install_sh
="\${SHELL} $am_aux_dir/install-sh"
7932 # Installed binaries are usually stripped using `strip' when the user
7933 # run `make install-strip'. However `strip' might not be the right
7934 # tool to use in cross-compilation environments, therefore Automake
7935 # will honor the `STRIP' environment variable to overrule this program.
7936 if test "$cross_compiling" != no
; then
7937 if test -n "$ac_tool_prefix"; then
7938 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7939 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_STRIP+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7945 if test -n "$STRIP"; then
7946 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7952 test -z "$as_dir" && as_dir
=.
7953 for ac_exec_ext
in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 STRIP
=$ac_cv_prog_STRIP
7966 if test -n "$STRIP"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7968 $as_echo "$STRIP" >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7976 if test -z "$ac_cv_prog_STRIP"; then
7978 # Extract the first word of "strip", so it can be a program name with args.
7979 set dummy strip
; ac_word
=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7985 if test -n "$ac_ct_STRIP"; then
7986 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir
=.
7993 for ac_exec_ext
in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_ac_ct_STRIP
="strip"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8006 if test -n "$ac_ct_STRIP"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8008 $as_echo "$ac_ct_STRIP" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8014 if test "x$ac_ct_STRIP" = x
; then
8017 case $cross_compiling:$ac_tool_warned in
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned
=yes ;;
8026 STRIP
="$ac_cv_prog_STRIP"
8030 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8033 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
8034 if test -z "$MKDIR_P"; then
8035 if test "${ac_cv_path_mkdir+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8039 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
8042 test -z "$as_dir" && as_dir
=.
8043 for ac_prog
in mkdir gmkdir
; do
8044 for ac_exec_ext
in '' $ac_executable_extensions; do
8045 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
8046 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
8047 'mkdir (GNU coreutils) '* | \
8048 'mkdir (coreutils) '* | \
8049 'mkdir (fileutils) '4.1*)
8050 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
8060 if test "${ac_cv_path_mkdir+set}" = set; then
8061 MKDIR_P
="$ac_cv_path_mkdir -p"
8063 # As a last resort, use the slow shell script. Don't cache a
8064 # value for MKDIR_P within a source directory, because that will
8065 # break other packages using the cache if that directory is
8066 # removed, or if the value is a relative name.
8067 test -d .
/--version && rmdir .
/--version
8068 MKDIR_P
="$ac_install_sh -d"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8072 $as_echo "$MKDIR_P" >&6; }
8077 [\\/$
]* | ?
:[\\/]*) ;;
8078 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
8081 for ac_prog
in gawk mawk nawk
awk
8083 # Extract the first word of "$ac_prog", so it can be a program name with args.
8084 set dummy
$ac_prog; ac_word
=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if test "${ac_cv_prog_AWK+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8090 if test -n "$AWK"; then
8091 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8097 test -z "$as_dir" && as_dir
=.
8098 for ac_exec_ext
in '' $ac_executable_extensions; do
8099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100 ac_cv_prog_AWK
="$ac_prog"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 if test -n "$AWK"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8113 $as_echo "$AWK" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8120 test -n "$AWK" && break
8123 ac_config_commands
="$ac_config_commands depfiles"
8126 am_make
=${MAKE-make}
8127 cat > confinc
<< 'END'
8129 @
echo this is the am__doit target
8132 # If we don't find an include directive, just comment out the code.
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8134 $as_echo_n "checking for style of include used by $am_make... " >&6; }
8138 # First try GNU make style include.
8139 echo "include confinc" > confmf
8140 # Ignore all kinds of additional output from `make'.
8141 case `$am_make -s -f confmf 2> /dev/null` in #(
8142 *the\ am__doit\ target
*)
8148 # Now try BSD make style include.
8149 if test "$am__include" = "#"; then
8150 echo '.include "confinc"' > confmf
8151 case `$am_make -s -f confmf 2> /dev/null` in #(
8152 *the\ am__doit\ target
*)
8153 am__include
=.include
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8162 $as_echo "$_am_result" >&6; }
8163 rm -f confinc confmf
8165 # Check whether --enable-dependency-tracking was given.
8166 if test "${enable_dependency_tracking+set}" = set; then :
8167 enableval
=$enable_dependency_tracking;
8170 if test "x$enable_dependency_tracking" != xno
; then
8171 am_depcomp
="$ac_aux_dir/depcomp"
8174 if test "x$enable_dependency_tracking" != xno; then
8183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8185 # is not polluted with repeated "-I."
8186 am__isrc
=' -I$(srcdir)'
8187 # test to see if srcdir already configured
8188 if test -f $srcdir/config.status
; then
8189 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8193 # test whether we have cygpath
8194 if test -z "$CYGPATH_W"; then
8195 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
8196 CYGPATH_W
='cygpath -w'
8203 # Define the identity of the package.
8205 VERSION
=UNUSED-VERSION
8208 # Some tools Automake needs.
8210 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8213 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
8216 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8219 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
8222 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
8224 # We need awk for the "check" target. The system "awk" is bad on
8226 # Always define AMTAR for backward compatibility.
8228 AMTAR
=${AMTAR-"${am_missing_run}tar"}
8230 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
8235 depcc
="$CC" am_compiler_list
=
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8238 $as_echo_n "checking dependency style of $depcc... " >&6; }
8239 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
8242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8243 # We make a subdir and do the tests there. Otherwise we can end up
8244 # making bogus files that we don't know about and never remove. For
8245 # instance it was reported that on HP-UX the gcc test will end up
8246 # making a dummy file named `D' -- because `-MD' means `put the output
8249 # Copy depcomp to subdir because otherwise we won't find it if we're
8250 # using a relative directory.
8251 cp "$am_depcomp" conftest.dir
8253 # We will build objects and dependencies in a subdirectory because
8254 # it helps to detect inapplicable dependency modes. For instance
8255 # both Tru64's cc and ICC support -MD to output dependencies as a
8256 # side effect of compilation, but ICC will put the dependencies in
8257 # the current directory while Tru64 will put them in the object
8261 am_cv_CC_dependencies_compiler_type
=none
8262 if test "$am_compiler_list" = ""; then
8263 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8266 case " $depcc " in #(
8267 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
8270 for depmode
in $am_compiler_list; do
8271 # Setup a source with many dependencies, because some compilers
8272 # like to wrap large dependency lists on column 80 (with \), and
8273 # we should not choose a depcomp mode which is confused by this.
8275 # We need to recreate these files for each test, as the compiler may
8276 # overwrite some of them when testing with obscure command lines.
8277 # This happens at least with the AIX C compiler.
8279 for i
in 1 2 3 4 5 6; do
8280 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8281 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8282 # Solaris 8's {/usr,}/bin/sh.
8283 touch sub
/conftst
$i.h
8285 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8287 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8288 # mode. It turns out that the SunPro C++ compiler does not properly
8289 # handle `-M -o', and we need to detect this. Also, some Intel
8290 # versions had trouble with output in subdirs
8291 am__obj
=sub
/conftest.
${OBJEXT-o}
8292 am__minus_obj
="-o $am__obj"
8295 # This depmode causes a compiler race in universal mode.
8296 test "$am__universal" = false ||
continue
8299 # after this tag, mechanisms are not by side-effect, so they'll
8300 # only be used when explicitly requested
8301 if test "x$enable_dependency_tracking" = xyes
; then
8307 msvisualcpp | msvcmsys
)
8308 # This compiler won't grok `-c -o', but also, the minuso test has
8309 # not run yet. These depmodes are late enough in the game, and
8310 # so weak that their functioning should not be impacted.
8311 am__obj
=conftest.
${OBJEXT-o}
8316 if depmode
=$depmode \
8317 source=sub
/conftest.c object
=$am__obj \
8318 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
8319 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
8320 >/dev
/null
2>conftest.err
&&
8321 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
8322 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
8323 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
8324 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
8325 # icc doesn't choke on unknown options, it will just issue warnings
8326 # or remarks (even with -Werror). So we grep stderr for any message
8327 # that says an option was ignored or not supported.
8328 # When given -MP, icc 7.0 and 7.1 complain thusly:
8329 # icc: Command line warning: ignoring option '-M'; no argument required
8330 # The diagnosis changed in icc 8.0:
8331 # icc: Command line remark: option '-MP' not supported
8332 if (grep 'ignoring option' conftest.err ||
8333 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8334 am_cv_CC_dependencies_compiler_type
=$depmode
8343 am_cv_CC_dependencies_compiler_type
=none
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8348 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8349 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
8352 test "x$enable_dependency_tracking" != xno \
8353 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
8355 am__fastdepCC_FALSE
='#'
8357 am__fastdepCC_TRUE
='#'
8358 am__fastdepCC_FALSE
=
8366 # Check whether --with-separate-debug-dir was given.
8367 if test "${with_separate_debug_dir+set}" = set; then :
8368 withval
=$with_separate_debug_dir;
8371 DEBUGDIR
=${libdir}/debug
8375 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8376 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8377 ac_define_dir
=`eval echo $DEBUGDIR`
8378 ac_define_dir
=`eval echo $ac_define_dir`
8380 cat >>confdefs.h
<<_ACEOF
8381 #define DEBUGDIR "$ac_define_dir"
8387 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8388 if test "x$prefix" = xNONE
; then
8389 test_prefix
=/usr
/local
8394 test_prefix
=$exec_prefix
8397 case ${ac_define_dir} in
8398 "${test_prefix}"|
"${test_prefix}/"*|\
8399 '${exec_prefix}'|
'${exec_prefix}/'*)
8404 cat >>confdefs.h
<<_ACEOF
8405 #define DEBUGDIR_RELOCATABLE $value
8411 # We can't pass paths as command line arguments.
8412 # Mingw32 tries to be clever and will convert the paths for us.
8413 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
8414 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
8415 # This breaks GDB's relocatable path conversions since paths passed in
8416 # config.h would not get so translated, the path prefixes no longer match.
8418 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8419 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8420 ac_define_dir
=`eval echo $bindir`
8421 ac_define_dir
=`eval echo $ac_define_dir`
8423 cat >>confdefs.h
<<_ACEOF
8424 #define BINDIR "$ac_define_dir"
8429 # GDB's datadir relocation
8433 # Check whether --with-gdb-datadir was given.
8434 if test "${with_gdb_datadir+set}" = set; then :
8435 withval
=$with_gdb_datadir;
8436 GDB_DATADIR
=$withval
8438 GDB_DATADIR
=${datadir}/gdb
8442 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8443 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8444 ac_define_dir
=`eval echo $GDB_DATADIR`
8445 ac_define_dir
=`eval echo $ac_define_dir`
8447 cat >>confdefs.h
<<_ACEOF
8448 #define GDB_DATADIR "$ac_define_dir"
8454 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8455 if test "x$prefix" = xNONE
; then
8456 test_prefix
=/usr
/local
8461 test_prefix
=$exec_prefix
8464 case ${ac_define_dir} in
8465 "${test_prefix}"|
"${test_prefix}/"*|\
8466 '${exec_prefix}'|
'${exec_prefix}/'*)
8471 cat >>confdefs.h
<<_ACEOF
8472 #define GDB_DATADIR_RELOCATABLE $value
8479 # Check whether --with-relocated-sources was given.
8480 if test "${with_relocated_sources+set}" = set; then :
8481 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
8483 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8484 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8485 ac_define_dir
=`eval echo $reloc_srcdir`
8486 ac_define_dir
=`eval echo $ac_define_dir`
8488 cat >>confdefs.h
<<_ACEOF
8489 #define RELOC_SRCDIR "$ac_define_dir"
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
8498 $as_echo_n "checking for default auto-load safe-path... " >&6; }
8500 # Check whether --with-auto-load-safe-path was given.
8501 if test "${with_auto_load_safe_path+set}" = set; then :
8502 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
8503 with_auto_load_safe_path
=""
8506 with_auto_load_safe_path
="$prefix"
8510 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8511 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8512 ac_define_dir
=`eval echo $with_auto_load_safe_path`
8513 ac_define_dir
=`eval echo $ac_define_dir`
8515 cat >>confdefs.h
<<_ACEOF
8516 #define DEFAULT_AUTO_LOAD_SAFE_PATH "$ac_define_dir"
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
8521 $as_echo "$with_auto_load_safe_path" >&6; }
8525 subdirs
="$subdirs testsuite"
8528 # Check whether to support alternative target configurations
8529 # Check whether --enable-targets was given.
8530 if test "${enable_targets+set}" = set; then :
8531 enableval
=$enable_targets; case "${enableval}" in
8532 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
8534 no
) enable_targets
= ;;
8535 *) enable_targets
=$enableval ;;
8540 # Check whether to enable 64-bit support on 32-bit hosts
8541 # Check whether --enable-64-bit-bfd was given.
8542 if test "${enable_64_bit_bfd+set}" = set; then :
8543 enableval
=$enable_64_bit_bfd; case "${enableval}" in
8546 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
8552 # Provide defaults for some variables set by the per-host and per-target
8554 gdb_host_obs
=posix-hdep.o
8556 if test "${target}" = "${host}"; then
8562 .
$srcdir/configure.
host
8564 # Accumulate some settings from configure.tgt over all enabled targets
8569 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8571 if test "$targ_alias" = "all"; then
8574 # Canonicalize the secondary target names.
8575 result
=`$ac_config_sub $targ_alias 2>/dev/null`
8576 if test -n "$result"; then
8582 .
${srcdir}/configure.tgt
8584 if test -z "${gdb_target_obs}"; then :
8585 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
8588 # Target-specific object files
8589 for i
in ${gdb_target_obs}; do
8590 case " $TARGET_OBS " in
8593 TARGET_OBS
="$TARGET_OBS ${i}"
8598 # Check whether this target needs 64-bit CORE_ADDR
8599 if test x
${want64} = xfalse
; then
8600 .
${srcdir}/..
/bfd
/config.bfd
8605 if test x
${all_targets} = xtrue
; then
8607 # We want all 64-bit targets if we either:
8608 # - run on a 64-bit host or
8609 # - already require 64-bit support for some other target or
8610 # - the --enable-64-bit-bfd option was supplied
8611 # Otherwise we only support all 32-bit targets.
8613 # NOTE: This test must be in sync with the corresponding
8616 if test x
${want64} = xfalse
; then
8617 # The cast to long int works around a bug in the HP C Compiler
8618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8620 # This bug is HP SR number 8606223364.
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8622 $as_echo_n "checking size of long... " >&6; }
8623 if test "${ac_cv_sizeof_long+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
8626 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8629 if test "$ac_cv_type_long" = yes; then
8630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8632 { as_fn_set_status
77
8633 as_fn_error
"cannot compute sizeof (long)
8634 See \`config.log' for more details." "$LINENO" 5; }; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8642 $as_echo "$ac_cv_sizeof_long" >&6; }
8646 cat >>confdefs.h
<<_ACEOF
8647 #define SIZEOF_LONG $ac_cv_sizeof_long
8651 if test "x${ac_cv_sizeof_long}" = "x8"; then
8655 if test x
${want64} = xtrue
; then
8656 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8658 TARGET_OBS
='$(ALL_TARGET_OBS)'
8664 # For other settings, only the main target counts.
8668 targ
=$target; .
${srcdir}/configure.tgt
8670 # Fetch the default architecture and default target vector from BFD.
8671 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
8673 # We only want the first architecture, so strip off the others if
8674 # there is more than one.
8675 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
8677 if test "x$targ_archs" != x
; then
8679 cat >>confdefs.h
<<_ACEOF
8680 #define DEFAULT_BFD_ARCH $targ_archs
8684 if test "x$targ_defvec" != x
; then
8686 cat >>confdefs.h
<<_ACEOF
8687 #define DEFAULT_BFD_VEC $targ_defvec
8692 # The CLI cannot be disabled yet, but may be in the future.
8695 # Check whether --enable-gdbcli was given.
8696 if test "${enable_gdbcli+set}" = set; then :
8697 enableval
=$enable_gdbcli; case $enableval in
8701 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8703 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8709 if test x
"$enable_gdbcli" = xyes
; then
8710 if test -d $srcdir/cli
; then
8711 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8712 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8713 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8714 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8719 # Check whether --enable-gdbmi was given.
8720 if test "${enable_gdbmi+set}" = set; then :
8721 enableval
=$enable_gdbmi; case $enableval in
8725 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8731 if test x
"$enable_gdbmi" = xyes
; then
8732 if test -d $srcdir/mi
; then
8733 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8734 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8735 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8736 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8741 # Check whether --enable-tui was given.
8742 if test "${enable_tui+set}" = set; then :
8743 enableval
=$enable_tui; case $enableval in
8747 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8755 # Check whether --enable-gdbtk was given.
8756 if test "${enable_gdbtk+set}" = set; then :
8757 enableval
=$enable_gdbtk; case $enableval in
8761 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8764 if test -d $srcdir/gdbtk
; then
8771 # We unconditionally disable gdbtk tests on selected platforms.
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8775 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8779 # Libunwind support for ia64.
8782 # Check whether --with-libunwind-ia64 was given.
8783 if test "${with_libunwind_ia64+set}" = set; then :
8784 withval
=$with_libunwind_ia64;
8786 with_libunwind_ia64
=auto
8790 # Backward compatibility option.
8791 if test "${with_libunwind+set}" = set; then
8792 if test x
"$with_libunwind_ia64" != xauto
; then
8793 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
8796 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
8797 with_libunwind_ia64
="$with_libunwind"
8800 case "$with_libunwind_ia64" in
8804 for ac_header
in libunwind-ia64.h
8806 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
8807 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
8808 cat >>confdefs.h
<<_ACEOF
8809 #define HAVE_LIBUNWIND_IA64_H 1
8816 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
8819 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
8823 if test x
"$with_libunwind_ia64" = xyes
; then
8824 for ac_header
in libunwind-ia64.h
8826 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
8827 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
8828 cat >>confdefs.h
<<_ACEOF
8829 #define HAVE_LIBUNWIND_IA64_H 1
8836 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
8837 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
8839 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
8840 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
8841 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
8846 # Check whether --with-curses was given.
8847 if test "${with_curses+set}" = set; then :
8848 withval
=$with_curses; opt_curses
=$withval
8853 if test "$opt_curses" = "yes"; then
8857 # Profiling support.
8858 # Check whether --enable-profiling was given.
8859 if test "${enable_profiling+set}" = set; then :
8860 enableval
=$enable_profiling; case $enableval in
8864 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8871 for ac_func
in monstartup _mcleanup
8873 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8874 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8875 eval as_val
=\$
$as_ac_var
8876 if test "x$as_val" = x
""yes; then :
8877 cat >>confdefs.h
<<_ACEOF
8878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8885 $as_echo_n "checking for _etext... " >&6; }
8886 if test "${ac_cv_var__etext+set}" = set; then :
8887 $as_echo_n "(cached) " >&6
8889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8902 if ac_fn_c_try_link
"$LINENO"; then :
8903 ac_cv_var__etext
=yes
8907 rm -f core conftest.err conftest.
$ac_objext \
8908 conftest
$ac_exeext conftest.
$ac_ext
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8911 $as_echo "$ac_cv_var__etext" >&6; }
8912 if test $ac_cv_var__etext = yes; then
8914 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8918 $as_echo_n "checking for etext... " >&6; }
8919 if test "${ac_cv_var_etext+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8935 if ac_fn_c_try_link
"$LINENO"; then :
8940 rm -f core conftest.err conftest.
$ac_objext \
8941 conftest
$ac_exeext conftest.
$ac_ext
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8944 $as_echo "$ac_cv_var_etext" >&6; }
8945 if test $ac_cv_var_etext = yes; then
8947 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8950 if test "$enable_profiling" = yes ; then
8951 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8952 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8955 OLD_CFLAGS
="$CFLAGS"
8956 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8959 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8960 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8974 if ac_fn_c_try_compile
"$LINENO"; then :
8975 ac_cv_cc_supports_pg
=yes
8977 ac_cv_cc_supports_pg
=no
8979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8982 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8984 if test $ac_cv_cc_supports_pg = no
; then
8985 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8988 CFLAGS
="$OLD_CFLAGS"
8993 # Check whether --with-pkgversion was given.
8994 if test "${with_pkgversion+set}" = set; then :
8995 withval
=$with_pkgversion; case "$withval" in
8996 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
8998 *) PKGVERSION
="($withval) " ;;
9009 # Check whether --with-bugurl was given.
9010 if test "${with_bugurl+set}" = set; then :
9011 withval
=$with_bugurl; case "$withval" in
9012 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
9015 *) BUGURL
="$withval"
9019 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
9029 REPORT_BUGS_TO
="<$BUGURL>"
9030 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
9037 cat >>confdefs.h
<<_ACEOF
9038 #define PKGVERSION "$PKGVERSION"
9042 cat >>confdefs.h
<<_ACEOF
9043 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
9047 # --------------------- #
9048 # Checks for programs. #
9049 # --------------------- #
9051 for ac_prog
in gawk mawk nawk
awk
9053 # Extract the first word of "$ac_prog", so it can be a program name with args.
9054 set dummy
$ac_prog; ac_word
=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if test "${ac_cv_prog_AWK+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9060 if test -n "$AWK"; then
9061 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
9063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9067 test -z "$as_dir" && as_dir
=.
9068 for ac_exec_ext
in '' $ac_executable_extensions; do
9069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9070 ac_cv_prog_AWK
="$ac_prog"
9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 if test -n "$AWK"; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9083 $as_echo "$AWK" >&6; }
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086 $as_echo "no" >&6; }
9090 test -n "$AWK" && break
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9095 $as_echo_n "checking whether ln -s works... " >&6; }
9097 if test "$LN_S" = "ln -s"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9099 $as_echo "yes" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9102 $as_echo "no, using $LN_S" >&6; }
9105 if test -n "$ac_tool_prefix"; then
9106 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9107 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9113 if test -n "$RANLIB"; then
9114 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
9116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9120 test -z "$as_dir" && as_dir
=.
9121 for ac_exec_ext
in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 RANLIB
=$ac_cv_prog_RANLIB
9134 if test -n "$RANLIB"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9136 $as_echo "$RANLIB" >&6; }
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9144 if test -z "$ac_cv_prog_RANLIB"; then
9145 ac_ct_RANLIB
=$RANLIB
9146 # Extract the first word of "ranlib", so it can be a program name with args.
9147 set dummy ranlib
; ac_word
=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9153 if test -n "$ac_ct_RANLIB"; then
9154 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
9156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9160 test -z "$as_dir" && as_dir
=.
9161 for ac_exec_ext
in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9163 ac_cv_prog_ac_ct_RANLIB
="ranlib"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
9174 if test -n "$ac_ct_RANLIB"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9176 $as_echo "$ac_ct_RANLIB" >&6; }
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9182 if test "x$ac_ct_RANLIB" = x
; then
9185 case $cross_compiling:$ac_tool_warned in
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189 ac_tool_warned
=yes ;;
9191 RANLIB
=$ac_ct_RANLIB
9194 RANLIB
="$ac_cv_prog_RANLIB"
9197 for ac_prog
in 'bison -y' byacc
9199 # Extract the first word of "$ac_prog", so it can be a program name with args.
9200 set dummy
$ac_prog; ac_word
=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if test "${ac_cv_prog_YACC+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9206 if test -n "$YACC"; then
9207 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
9209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9213 test -z "$as_dir" && as_dir
=.
9214 for ac_exec_ext
in '' $ac_executable_extensions; do
9215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9216 ac_cv_prog_YACC
="$ac_prog"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 YACC
=$ac_cv_prog_YACC
9227 if test -n "$YACC"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9229 $as_echo "$YACC" >&6; }
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9236 test -n "$YACC" && break
9238 test -n "$YACC" || YACC
="yacc"
9241 if test -n "$ac_tool_prefix"; then
9242 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9243 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 $as_echo_n "checking for $ac_word... " >&6; }
9246 if test "${ac_cv_prog_AR+set}" = set; then :
9247 $as_echo_n "(cached) " >&6
9249 if test -n "$AR"; then
9250 ac_cv_prog_AR
="$AR" # Let the user override the test.
9252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9256 test -z "$as_dir" && as_dir
=.
9257 for ac_exec_ext
in '' $ac_executable_extensions; do
9258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9259 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 if test -n "$AR"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9272 $as_echo "$AR" >&6; }
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9280 if test -z "$ac_cv_prog_AR"; then
9282 # Extract the first word of "ar", so it can be a program name with args.
9283 set dummy
ar; ac_word
=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9289 if test -n "$ac_ct_AR"; then
9290 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9296 test -z "$as_dir" && as_dir
=.
9297 for ac_exec_ext
in '' $ac_executable_extensions; do
9298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9299 ac_cv_prog_ac_ct_AR
="ar"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9310 if test -n "$ac_ct_AR"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9312 $as_echo "$ac_ct_AR" >&6; }
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9318 if test "x$ac_ct_AR" = x
; then
9321 case $cross_compiling:$ac_tool_warned in
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9325 ac_tool_warned
=yes ;;
9333 if test -n "$ac_tool_prefix"; then
9334 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9335 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337 $as_echo_n "checking for $ac_word... " >&6; }
9338 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9341 if test -n "$DLLTOOL"; then
9342 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
9344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9348 test -z "$as_dir" && as_dir
=.
9349 for ac_exec_ext
in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
9352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 DLLTOOL
=$ac_cv_prog_DLLTOOL
9362 if test -n "$DLLTOOL"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9364 $as_echo "$DLLTOOL" >&6; }
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9372 if test -z "$ac_cv_prog_DLLTOOL"; then
9373 ac_ct_DLLTOOL
=$DLLTOOL
9374 # Extract the first word of "dlltool", so it can be a program name with args.
9375 set dummy dlltool
; ac_word
=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9381 if test -n "$ac_ct_DLLTOOL"; then
9382 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
9384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9388 test -z "$as_dir" && as_dir
=.
9389 for ac_exec_ext
in '' $ac_executable_extensions; do
9390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
9392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
9402 if test -n "$ac_ct_DLLTOOL"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9404 $as_echo "$ac_ct_DLLTOOL" >&6; }
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9410 if test "x$ac_ct_DLLTOOL" = x
; then
9413 case $cross_compiling:$ac_tool_warned in
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9417 ac_tool_warned
=yes ;;
9419 DLLTOOL
=$ac_ct_DLLTOOL
9422 DLLTOOL
="$ac_cv_prog_DLLTOOL"
9425 if test -n "$ac_tool_prefix"; then
9426 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9427 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 $as_echo_n "checking for $ac_word... " >&6; }
9430 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9433 if test -n "$WINDRES"; then
9434 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9440 test -z "$as_dir" && as_dir
=.
9441 for ac_exec_ext
in '' $ac_executable_extensions; do
9442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9443 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9453 WINDRES
=$ac_cv_prog_WINDRES
9454 if test -n "$WINDRES"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9456 $as_echo "$WINDRES" >&6; }
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9464 if test -z "$ac_cv_prog_WINDRES"; then
9465 ac_ct_WINDRES
=$WINDRES
9466 # Extract the first word of "windres", so it can be a program name with args.
9467 set dummy windres
; ac_word
=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9473 if test -n "$ac_ct_WINDRES"; then
9474 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9480 test -z "$as_dir" && as_dir
=.
9481 for ac_exec_ext
in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483 ac_cv_prog_ac_ct_WINDRES
="windres"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9494 if test -n "$ac_ct_WINDRES"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9496 $as_echo "$ac_ct_WINDRES" >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9502 if test "x$ac_ct_WINDRES" = x
; then
9505 case $cross_compiling:$ac_tool_warned in
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9509 ac_tool_warned
=yes ;;
9511 WINDRES
=$ac_ct_WINDRES
9514 WINDRES
="$ac_cv_prog_WINDRES"
9518 # Needed for GNU/Hurd.
9519 if test -n "$ac_tool_prefix"; then
9520 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9521 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_prog_MIG+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9527 if test -n "$MIG"; then
9528 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
9530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9534 test -z "$as_dir" && as_dir
=.
9535 for ac_exec_ext
in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9537 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548 if test -n "$MIG"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
9550 $as_echo "$MIG" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9558 if test -z "$ac_cv_prog_MIG"; then
9560 # Extract the first word of "mig", so it can be a program name with args.
9561 set dummy mig
; ac_word
=$2
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563 $as_echo_n "checking for $ac_word... " >&6; }
9564 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9567 if test -n "$ac_ct_MIG"; then
9568 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
9570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9574 test -z "$as_dir" && as_dir
=.
9575 for ac_exec_ext
in '' $ac_executable_extensions; do
9576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9577 ac_cv_prog_ac_ct_MIG
="mig"
9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
9588 if test -n "$ac_ct_MIG"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
9590 $as_echo "$ac_ct_MIG" >&6; }
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 $as_echo "no" >&6; }
9596 if test "x$ac_ct_MIG" = x
; then
9599 case $cross_compiling:$ac_tool_warned in
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9603 ac_tool_warned
=yes ;;
9608 MIG
="$ac_cv_prog_MIG"
9612 # ---------------------- #
9613 # Checks for libraries. #
9614 # ---------------------- #
9616 # We might need to link with -lm; most simulators need it.
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9618 $as_echo_n "checking for main in -lm... " >&6; }
9619 if test "${ac_cv_lib_m_main+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9622 ac_check_lib_save_LIBS
=$LIBS
9624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9636 if ac_fn_c_try_link
"$LINENO"; then :
9637 ac_cv_lib_m_main
=yes
9641 rm -f core conftest.err conftest.
$ac_objext \
9642 conftest
$ac_exeext conftest.
$ac_ext
9643 LIBS
=$ac_check_lib_save_LIBS
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9646 $as_echo "$ac_cv_lib_m_main" >&6; }
9647 if test "x$ac_cv_lib_m_main" = x
""yes; then :
9648 cat >>confdefs.h
<<_ACEOF
9657 # We need to link with -lw to get `wctype' on Solaris before Solaris
9658 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9659 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9660 # is known to have this problem). Therefore we avoid libw if we can.
9661 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
9662 if test "x$ac_cv_func_wctype" = x
""yes; then :
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9666 $as_echo_n "checking for wctype in -lw... " >&6; }
9667 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9670 ac_check_lib_save_LIBS
=$LIBS
9672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9675 /* Override any GCC internal prototype to avoid an error.
9676 Use char because int might match the return type of a GCC
9677 builtin and then its argument prototype would still apply. */
9690 if ac_fn_c_try_link
"$LINENO"; then :
9691 ac_cv_lib_w_wctype
=yes
9693 ac_cv_lib_w_wctype
=no
9695 rm -f core conftest.err conftest.
$ac_objext \
9696 conftest
$ac_exeext conftest.
$ac_ext
9697 LIBS
=$ac_check_lib_save_LIBS
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9700 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9701 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
9702 cat >>confdefs.h
<<_ACEOF
9713 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9715 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9716 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9719 ac_func_search_save_LIBS
=$LIBS
9720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9729 char gethostbyname ();
9733 return gethostbyname ();
9738 for ac_lib
in '' nsl
; do
9739 if test -z "$ac_lib"; then
9740 ac_res
="none required"
9743 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9745 if ac_fn_c_try_link
"$LINENO"; then :
9746 ac_cv_search_gethostbyname
=$ac_res
9748 rm -f core conftest.err conftest.
$ac_objext \
9750 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9754 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9757 ac_cv_search_gethostbyname
=no
9760 LIBS
=$ac_func_search_save_LIBS
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9763 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9764 ac_res
=$ac_cv_search_gethostbyname
9765 if test "$ac_res" != no
; then :
9766 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9771 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9773 $as_echo_n "checking for library containing socketpair... " >&6; }
9774 if test "${ac_cv_search_socketpair+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9777 ac_func_search_save_LIBS
=$LIBS
9778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9781 /* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
9791 return socketpair ();
9796 for ac_lib
in '' socket
; do
9797 if test -z "$ac_lib"; then
9798 ac_res
="none required"
9801 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9803 if ac_fn_c_try_link
"$LINENO"; then :
9804 ac_cv_search_socketpair
=$ac_res
9806 rm -f core conftest.err conftest.
$ac_objext \
9808 if test "${ac_cv_search_socketpair+set}" = set; then :
9812 if test "${ac_cv_search_socketpair+set}" = set; then :
9815 ac_cv_search_socketpair
=no
9818 LIBS
=$ac_func_search_save_LIBS
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9821 $as_echo "$ac_cv_search_socketpair" >&6; }
9822 ac_res
=$ac_cv_search_socketpair
9823 if test "$ac_res" != no
; then :
9824 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9829 # Link in zlib if we can. This allows us to read compressed debug sections.
9831 # See if the user specified whether he wants zlib support or not.
9833 # Check whether --with-zlib was given.
9834 if test "${with_zlib+set}" = set; then :
9841 if test "$with_zlib" != "no"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9843 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9844 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9847 ac_func_search_save_LIBS
=$LIBS
9848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9851 /* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9857 char zlibVersion ();
9861 return zlibVersion ();
9866 for ac_lib
in '' z
; do
9867 if test -z "$ac_lib"; then
9868 ac_res
="none required"
9871 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9873 if ac_fn_c_try_link
"$LINENO"; then :
9874 ac_cv_search_zlibVersion
=$ac_res
9876 rm -f core conftest.err conftest.
$ac_objext \
9878 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9882 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9885 ac_cv_search_zlibVersion
=no
9888 LIBS
=$ac_func_search_save_LIBS
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9891 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9892 ac_res
=$ac_cv_search_zlibVersion
9893 if test "$ac_res" != no
; then :
9894 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9895 for ac_header
in zlib.h
9897 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9898 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
9899 cat >>confdefs.h
<<_ACEOF
9900 #define HAVE_ZLIB_H 1
9909 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9910 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9915 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9917 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9918 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9919 $as_echo_n "(cached) " >&6
9921 ac_func_search_save_LIBS
=$LIBS
9922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9925 /* Override any GCC internal prototype to avoid an error.
9926 Use char because int might match the return type of a GCC
9927 builtin and then its argument prototype would still apply. */
9931 char dlgetmodinfo ();
9935 return dlgetmodinfo ();
9940 for ac_lib
in '' dl xpdl
; do
9941 if test -z "$ac_lib"; then
9942 ac_res
="none required"
9945 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9947 if ac_fn_c_try_link
"$LINENO"; then :
9948 ac_cv_search_dlgetmodinfo
=$ac_res
9950 rm -f core conftest.err conftest.
$ac_objext \
9952 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9956 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9959 ac_cv_search_dlgetmodinfo
=no
9962 LIBS
=$ac_func_search_save_LIBS
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9965 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9966 ac_res
=$ac_cv_search_dlgetmodinfo
9967 if test "$ac_res" != no
; then :
9968 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9976 # Check whether --with-libiconv-prefix was given.
9977 if test "${with_libiconv_prefix+set}" = set; then :
9978 withval
=$with_libiconv_prefix;
9979 for dir
in `echo "$withval" | tr : ' '`; do
9980 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
9981 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
9987 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
9988 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9991 $as_echo_n "checking for iconv... " >&6; }
9992 if test "${am_cv_func_iconv+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9996 am_cv_func_iconv
="no, consider installing GNU libiconv"
9998 am_cv_use_build_libiconv
=no
9999 am_cv_build_libiconv_path
=
10001 # If libiconv is part of the build tree, then try using it over
10002 # any system iconv.
10003 if test -d ..
/libiconv
; then
10004 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
10005 am_save_LIBS
="$LIBS"
10006 am_save_CPPFLAGS
="$CPPFLAGS"
10007 LIBS
="$LIBS $lib_dir/libiconv.a"
10008 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 #include <stdlib.h>
10016 iconv_t cd = iconv_open("","");
10017 iconv(cd,NULL,NULL,NULL,NULL);
10023 if ac_fn_c_try_link
"$LINENO"; then :
10024 am_cv_use_build_libiconv
=yes
10025 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
10026 am_cv_lib_iconv
=yes
10027 am_cv_func_iconv
=yes
10029 rm -f core conftest.err conftest.
$ac_objext \
10030 conftest
$ac_exeext conftest.
$ac_ext
10031 LIBS
="$am_save_LIBS"
10032 CPPFLAGS
="$am_save_CPPFLAGS"
10033 if test "$am_cv_use_build_libiconv" = "yes"; then
10039 # Next, try to find iconv in libc.
10040 if test "$am_cv_func_iconv" != yes; then
10041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 #include <stdlib.h>
10048 iconv_t cd = iconv_open("","");
10049 iconv(cd,NULL,NULL,NULL,NULL);
10055 if ac_fn_c_try_link
"$LINENO"; then :
10056 am_cv_func_iconv
=yes
10058 rm -f core conftest.err conftest.
$ac_objext \
10059 conftest
$ac_exeext conftest.
$ac_ext
10062 # If iconv was not in libc, try -liconv. In this case, arrange to
10063 # look in the libiconv prefix, if it was specified by the user.
10064 if test "$am_cv_func_iconv" != yes; then
10065 am_save_CPPFLAGS
="$CPPFLAGS"
10066 am_save_LIBS
="$LIBS"
10067 if test -n "$LIBICONV_INCLUDE"; then
10068 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10069 LIBS
="$LIBS $LIBICONV_LIBDIR"
10071 LIBS
="$LIBS -liconv"
10072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 #include <stdlib.h>
10079 iconv_t cd = iconv_open("","");
10080 iconv(cd,NULL,NULL,NULL,NULL);
10086 if ac_fn_c_try_link
"$LINENO"; then :
10087 am_cv_lib_iconv
=yes
10088 am_cv_func_iconv
=yes
10090 rm -f core conftest.err conftest.
$ac_objext \
10091 conftest
$ac_exeext conftest.
$ac_ext
10092 LIBS
="$am_save_LIBS"
10093 CPPFLAGS
="$am_save_CPPFLAGS"
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10098 $as_echo "$am_cv_func_iconv" >&6; }
10100 # Set the various flags based on the cache variables. We can't rely
10101 # on the flags to remain set from the above code, due to caching.
10103 if test "$am_cv_lib_iconv" = yes; then
10109 if test "$am_cv_use_build_libiconv" = yes; then
10110 LIBICONV
="$am_cv_build_libiconv_path"
10112 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
10114 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10115 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10117 if test "$am_cv_func_iconv" = yes; then
10119 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10122 $as_echo_n "checking for iconv declaration... " >&6; }
10123 if test "${am_cv_proto_iconv+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10130 #include <stdlib.h>
10136 #if defined(__STDC__) || defined(__cplusplus)
10137 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10150 if ac_fn_c_try_compile
"$LINENO"; then :
10151 am_cv_proto_iconv_arg1
=""
10153 am_cv_proto_iconv_arg1
="const"
10155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10156 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);"
10159 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10161 }$am_cv_proto_iconv" >&5
10163 }$am_cv_proto_iconv" >&6; }
10165 cat >>confdefs.h
<<_ACEOF
10166 #define ICONV_CONST $am_cv_proto_iconv_arg1
10172 # GDB may fork/exec the iconv program to get the list of supported character
10173 # sets. Allow the user to specify where to find it.
10174 # There are several factors affecting the choice of option name:
10175 # - There is already --with-libiconv-prefix but we can't use it, it specifies
10176 # the build-time location of libiconv files.
10177 # - The program we need to find is iconv, which comes with glibc. The user
10178 # doesn't necessarily have libiconv installed. Therefore naming this
10179 # --with-libiconv-foo feels wrong.
10180 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
10181 # defined to work on directories not files (though it really doesn't know
10183 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
10184 # with --with-libiconv-prefix.
10185 # Putting these together is why the option name is --with-iconv-bin.
10188 # Check whether --with-iconv-bin was given.
10189 if test "${with_iconv_bin+set}" = set; then :
10190 withval
=$with_iconv_bin; iconv_bin
="${withval}"
10192 cat >>confdefs.h
<<_ACEOF
10193 #define ICONV_BIN "${iconv_bin}"
10197 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10198 if test "x$prefix" = xNONE
; then
10199 test_prefix
=/usr
/local
10201 test_prefix
=$prefix
10204 test_prefix
=$exec_prefix
10207 case ${iconv_bin} in
10208 "${test_prefix}"|
"${test_prefix}/"*|\
10209 '${exec_prefix}'|
'${exec_prefix}/'*)
10214 cat >>confdefs.h
<<_ACEOF
10215 #define ICONV_BIN_RELOCATABLE $value
10223 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10224 # There is a very specific comment in /usr/include/curses.h explaining that
10225 # termcap routines built into libcurses must not be used.
10227 # The symptoms we observed so far is GDB unexpectedly changing
10228 # the terminal settings when tgetent is called - this is particularly
10229 # visible as the output is missing carriage returns, and so rapidly
10230 # becomes very hard to read.
10232 # The readline configure script has already decided that libtermcap
10233 # was enough for its purposes, and so decided to build readline using
10234 # libtermcap. Since the TUI mode requires curses, building GDB with
10235 # TUI enabled results in both libraries to be used at the same time,
10236 # which is not allowed. This basically means that GDB with TUI is
10237 # broken on alpha-osf.
10241 if test x
"$enable_tui" = xyes
; then
10242 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
10244 if test x
"$enable_tui" = xauto
; then
10250 # For the TUI, we need enhanced curses functionality.
10251 if test x
"$enable_tui" != xno
; then
10256 if test x
"$prefer_curses" = xyes
; then
10257 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10258 # curses library because the latter might not provide all the
10259 # functionality we need. However, this leads to problems on systems
10260 # where the linker searches /usr/local/lib, but the compiler doesn't
10261 # search /usr/local/include, if ncurses is installed in /usr/local. A
10262 # default installation of ncurses on alpha*-dec-osf* will lead to such
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
10265 $as_echo_n "checking for library containing waddstr... " >&6; }
10266 if test "${ac_cv_search_waddstr+set}" = set; then :
10267 $as_echo_n "(cached) " >&6
10269 ac_func_search_save_LIBS
=$LIBS
10270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10288 for ac_lib
in '' ncurses cursesX curses
; do
10289 if test -z "$ac_lib"; then
10290 ac_res
="none required"
10293 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10295 if ac_fn_c_try_link
"$LINENO"; then :
10296 ac_cv_search_waddstr
=$ac_res
10298 rm -f core conftest.err conftest.
$ac_objext \
10300 if test "${ac_cv_search_waddstr+set}" = set; then :
10304 if test "${ac_cv_search_waddstr+set}" = set; then :
10307 ac_cv_search_waddstr
=no
10309 rm conftest.
$ac_ext
10310 LIBS
=$ac_func_search_save_LIBS
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
10313 $as_echo "$ac_cv_search_waddstr" >&6; }
10314 ac_res
=$ac_cv_search_waddstr
10315 if test "$ac_res" != no
; then :
10316 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10321 if test "$ac_cv_search_waddstr" != no
; then
10326 # Check whether we should enable the TUI, but only do so if we really
10328 if test x
"$enable_tui" != xno
; then
10329 if test -d $srcdir/tui
; then
10330 if test "$curses_found" != no
; then
10331 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10332 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10333 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10334 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10336 if test x
"$enable_tui" = xyes
; then
10337 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
10340 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10346 # Since GDB uses Readline, we need termcap functionality. In many
10347 # cases this will be provided by the curses library, but some systems
10348 # have a seperate termcap library, or no curses library at all.
10352 if test -d $srcdir/libtermcap
; then
10353 LIBS
="../libtermcap/libtermcap.a $LIBS"
10354 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
10357 ac_cv_search_tgetent
="none required"
10360 ac_cv_search_tgetent
="none required"
10361 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
10365 # These are the libraries checked by Readline.
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
10367 $as_echo_n "checking for library containing tgetent... " >&6; }
10368 if test "${ac_cv_search_tgetent+set}" = set; then :
10369 $as_echo_n "(cached) " >&6
10371 ac_func_search_save_LIBS
=$LIBS
10372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10375 /* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10390 for ac_lib
in '' termcap tinfo curses ncurses
; do
10391 if test -z "$ac_lib"; then
10392 ac_res
="none required"
10395 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10397 if ac_fn_c_try_link
"$LINENO"; then :
10398 ac_cv_search_tgetent
=$ac_res
10400 rm -f core conftest.err conftest.
$ac_objext \
10402 if test "${ac_cv_search_tgetent+set}" = set; then :
10406 if test "${ac_cv_search_tgetent+set}" = set; then :
10409 ac_cv_search_tgetent
=no
10411 rm conftest.
$ac_ext
10412 LIBS
=$ac_func_search_save_LIBS
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
10415 $as_echo "$ac_cv_search_tgetent" >&6; }
10416 ac_res
=$ac_cv_search_tgetent
10417 if test "$ac_res" != no
; then :
10418 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10423 if test "$ac_cv_search_tgetent" = no
; then
10424 as_fn_error
"no termcap library found" "$LINENO" 5
10428 # Check whether --with-system-readline was given.
10429 if test "${with_system_readline+set}" = set; then :
10430 withval
=$with_system_readline;
10434 if test "$with_system_readline" = yes; then
10435 READLINE
=-lreadline
10438 READLINE_TEXI_INCFLAG
=
10440 READLINE
='$(READLINE_DIR)/libreadline.a'
10441 READLINE_DEPS
='$(READLINE)'
10442 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
10443 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
10450 # Generate jit-reader.h
10452 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
10455 # The cast to long int works around a bug in the HP C Compiler
10456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10458 # This bug is HP SR number 8606223364.
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
10460 $as_echo_n "checking size of unsigned long long... " >&6; }
10461 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10464 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
10467 if test "$ac_cv_type_unsigned_long_long" = yes; then
10468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10470 { as_fn_set_status
77
10471 as_fn_error
"cannot compute sizeof (unsigned long long)
10472 See \`config.log' for more details." "$LINENO" 5; }; }
10474 ac_cv_sizeof_unsigned_long_long
=0
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
10480 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
10484 cat >>confdefs.h
<<_ACEOF
10485 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
10489 # The cast to long int works around a bug in the HP C Compiler
10490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10492 # This bug is HP SR number 8606223364.
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
10494 $as_echo_n "checking size of unsigned long... " >&6; }
10495 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
10498 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
10501 if test "$ac_cv_type_unsigned_long" = yes; then
10502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10504 { as_fn_set_status
77
10505 as_fn_error
"cannot compute sizeof (unsigned long)
10506 See \`config.log' for more details." "$LINENO" 5; }; }
10508 ac_cv_sizeof_unsigned_long
=0
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
10514 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
10518 cat >>confdefs.h
<<_ACEOF
10519 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
10523 # The cast to long int works around a bug in the HP C Compiler
10524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10526 # This bug is HP SR number 8606223364.
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
10528 $as_echo_n "checking size of unsigned __int128... " >&6; }
10529 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
10530 $as_echo_n "(cached) " >&6
10532 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
10535 if test "$ac_cv_type_unsigned___int128" = yes; then
10536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10538 { as_fn_set_status
77
10539 as_fn_error
"cannot compute sizeof (unsigned __int128)
10540 See \`config.log' for more details." "$LINENO" 5; }; }
10542 ac_cv_sizeof_unsigned___int128
=0
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
10548 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
10552 cat >>confdefs.h
<<_ACEOF
10553 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
10558 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
10559 TARGET_PTR
="unsigned long"
10560 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
10561 TARGET_PTR
="unsigned long long"
10562 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
10563 TARGET_PTR
="unsigned __int128"
10565 TARGET_PTR
="unsigned long"
10569 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10573 $as_echo_n "checking for library containing dlopen... " >&6; }
10574 if test "${ac_cv_search_dlopen+set}" = set; then :
10575 $as_echo_n "(cached) " >&6
10577 ac_func_search_save_LIBS
=$LIBS
10578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10581 /* Override any GCC internal prototype to avoid an error.
10582 Use char because int might match the return type of a GCC
10583 builtin and then its argument prototype would still apply. */
10596 for ac_lib
in '' dl
; do
10597 if test -z "$ac_lib"; then
10598 ac_res
="none required"
10601 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10603 if ac_fn_c_try_link
"$LINENO"; then :
10604 ac_cv_search_dlopen
=$ac_res
10606 rm -f core conftest.err conftest.
$ac_objext \
10608 if test "${ac_cv_search_dlopen+set}" = set; then :
10612 if test "${ac_cv_search_dlopen+set}" = set; then :
10615 ac_cv_search_dlopen
=no
10617 rm conftest.
$ac_ext
10618 LIBS
=$ac_func_search_save_LIBS
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10621 $as_echo "$ac_cv_search_dlopen" >&6; }
10622 ac_res
=$ac_cv_search_dlopen
10623 if test "$ac_res" != no
; then :
10624 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10631 # Check whether --with-jit-reader-dir was given.
10632 if test "${with_jit_reader_dir+set}" = set; then :
10633 withval
=$with_jit_reader_dir;
10634 JIT_READER_DIR
=$withval
10636 JIT_READER_DIR
=${libdir}/gdb
10640 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10641 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10642 ac_define_dir
=`eval echo $JIT_READER_DIR`
10643 ac_define_dir
=`eval echo $ac_define_dir`
10645 cat >>confdefs.h
<<_ACEOF
10646 #define JIT_READER_DIR "$ac_define_dir"
10652 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10653 if test "x$prefix" = xNONE
; then
10654 test_prefix
=/usr
/local
10656 test_prefix
=$prefix
10659 test_prefix
=$exec_prefix
10662 case ${ac_define_dir} in
10663 "${test_prefix}"|
"${test_prefix}/"*|\
10664 '${exec_prefix}'|
'${exec_prefix}/'*)
10669 cat >>confdefs.h
<<_ACEOF
10670 #define JIT_READER_DIR_RELOCATABLE $value
10677 # Check whether --with-expat was given.
10678 if test "${with_expat+set}" = set; then :
10679 withval
=$with_expat;
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
10685 $as_echo_n "checking whether to use expat... " >&6; }
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
10687 $as_echo "$with_expat" >&6; }
10689 if test "${with_expat}" = no
; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
10691 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10695 if test "X$prefix" = "XNONE"; then
10696 acl_final_prefix
="$ac_default_prefix"
10698 acl_final_prefix
="$prefix"
10700 if test "X$exec_prefix" = "XNONE"; then
10701 acl_final_exec_prefix
='${prefix}'
10703 acl_final_exec_prefix
="$exec_prefix"
10705 acl_save_prefix
="$prefix"
10706 prefix
="$acl_final_prefix"
10707 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10708 prefix
="$acl_save_prefix"
10711 # Check whether --with-gnu-ld was given.
10712 if test "${with_gnu_ld+set}" = set; then :
10713 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10718 # Prepare PATH_SEPARATOR.
10719 # The user is always right.
10720 if test "${PATH_SEPARATOR+set}" != set; then
10721 echo "#! /bin/sh" >conf$$.sh
10722 echo "exit 0" >>conf$$.sh
10724 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10732 if test "$GCC" = yes; then
10733 # Check if gcc -print-prog-name=ld gives a path.
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10735 $as_echo_n "checking for ld used by GCC... " >&6; }
10738 # gcc leaves a trailing carriage return which upsets mingw
10739 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10741 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10744 # Accept absolute paths.
10745 [\\/]* |
[A-Za-z
]:[\\/]*)
10746 re_direlt
='/[^/][^/]*/\.\./'
10747 # Canonicalize the path of ld
10748 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10749 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10750 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10752 test -z "$LD" && LD
="$ac_prog"
10755 # If it fails, then pretend we aren't using GCC.
10759 # If it is relative, then search for the first ld in PATH.
10760 with_gnu_ld
=unknown
10763 elif test "$with_gnu_ld" = yes; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10765 $as_echo_n "checking for GNU ld... " >&6; }
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10768 $as_echo_n "checking for non-GNU ld... " >&6; }
10770 if test "${acl_cv_path_LD+set}" = set; then :
10771 $as_echo_n "(cached) " >&6
10773 if test -z "$LD"; then
10774 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10775 for ac_dir
in $PATH; do
10776 test -z "$ac_dir" && ac_dir
=.
10777 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10778 acl_cv_path_LD
="$ac_dir/$ac_prog"
10779 # Check to see if the program is GNU ld. I'd rather use --version,
10780 # but apparently some GNU ld's only accept -v.
10781 # Break only if it was the GNU/non-GNU ld that we prefer.
10782 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10783 test "$with_gnu_ld" != no
&& break
10785 test "$with_gnu_ld" != yes && break
10791 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10795 LD
="$acl_cv_path_LD"
10796 if test -n "$LD"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10798 $as_echo "$LD" >&6; }
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10803 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10805 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10806 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
10809 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10810 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10811 acl_cv_prog_gnu_ld
=yes
10813 acl_cv_prog_gnu_ld
=no
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10817 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10818 with_gnu_ld
=$acl_cv_prog_gnu_ld
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10823 $as_echo_n "checking for shared library run path origin... " >&6; }
10824 if test "${acl_cv_rpath+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10828 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10829 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10831 rm -f .
/conftest.sh
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10836 $as_echo "$acl_cv_rpath" >&6; }
10838 libext
="$acl_cv_libext"
10839 shlibext
="$acl_cv_shlibext"
10840 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10841 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10842 hardcode_direct
="$acl_cv_hardcode_direct"
10843 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10844 # Check whether --enable-rpath was given.
10845 if test "${enable_rpath+set}" = set; then :
10846 enableval
=$enable_rpath; :
10862 acl_save_prefix
="$prefix"
10863 prefix
="$acl_final_prefix"
10864 acl_save_exec_prefix
="$exec_prefix"
10865 exec_prefix
="$acl_final_exec_prefix"
10867 eval additional_includedir
=\"$includedir\"
10868 eval additional_libdir
=\"$libdir\"
10870 exec_prefix
="$acl_save_exec_prefix"
10871 prefix
="$acl_save_prefix"
10874 # Check whether --with-libexpat-prefix was given.
10875 if test "${with_libexpat_prefix+set}" = set; then :
10876 withval
=$with_libexpat_prefix;
10877 if test "X$withval" = "Xno"; then
10880 if test "X$withval" = "X"; then
10882 acl_save_prefix
="$prefix"
10883 prefix
="$acl_final_prefix"
10884 acl_save_exec_prefix
="$exec_prefix"
10885 exec_prefix
="$acl_final_exec_prefix"
10887 eval additional_includedir
=\"$includedir\"
10888 eval additional_libdir
=\"$libdir\"
10890 exec_prefix
="$acl_save_exec_prefix"
10891 prefix
="$acl_save_prefix"
10894 additional_includedir
="$withval/include"
10895 additional_libdir
="$withval/lib"
10906 names_already_handled
=
10907 names_next_round
='expat '
10908 while test -n "$names_next_round"; do
10909 names_this_round
="$names_next_round"
10911 for name
in $names_this_round; do
10913 for n
in $names_already_handled; do
10914 if test "$n" = "$name"; then
10915 already_handled
=yes
10919 if test -z "$already_handled"; then
10920 names_already_handled
="$names_already_handled $name"
10921 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10922 eval value
=\"\
$HAVE_LIB$uppername\"
10923 if test -n "$value"; then
10924 if test "$value" = yes; then
10925 eval value
=\"\
$LIB$uppername\"
10926 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10927 eval value
=\"\
$LTLIB$uppername\"
10928 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10937 if test $use_additional = yes; then
10938 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10939 found_dir
="$additional_libdir"
10940 found_so
="$additional_libdir/lib$name.$shlibext"
10941 if test -f "$additional_libdir/lib$name.la"; then
10942 found_la
="$additional_libdir/lib$name.la"
10945 if test -f "$additional_libdir/lib$name.$libext"; then
10946 found_dir
="$additional_libdir"
10947 found_a
="$additional_libdir/lib$name.$libext"
10948 if test -f "$additional_libdir/lib$name.la"; then
10949 found_la
="$additional_libdir/lib$name.la"
10954 if test "X$found_dir" = "X"; then
10955 for x
in $LDFLAGS $LTLIBEXPAT; do
10957 acl_save_prefix
="$prefix"
10958 prefix
="$acl_final_prefix"
10959 acl_save_exec_prefix
="$exec_prefix"
10960 exec_prefix
="$acl_final_exec_prefix"
10962 exec_prefix
="$acl_save_exec_prefix"
10963 prefix
="$acl_save_prefix"
10967 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10968 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10970 found_so
="$dir/lib$name.$shlibext"
10971 if test -f "$dir/lib$name.la"; then
10972 found_la
="$dir/lib$name.la"
10975 if test -f "$dir/lib$name.$libext"; then
10977 found_a
="$dir/lib$name.$libext"
10978 if test -f "$dir/lib$name.la"; then
10979 found_la
="$dir/lib$name.la"
10985 if test "X$found_dir" != "X"; then
10990 if test "X$found_dir" != "X"; then
10991 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10992 if test "X$found_so" != "X"; then
10993 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10994 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10997 for x
in $ltrpathdirs; do
10998 if test "X$x" = "X$found_dir"; then
11003 if test -z "$haveit"; then
11004 ltrpathdirs
="$ltrpathdirs $found_dir"
11006 if test "$hardcode_direct" = yes; then
11007 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11009 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11010 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11012 for x
in $rpathdirs; do
11013 if test "X$x" = "X$found_dir"; then
11018 if test -z "$haveit"; then
11019 rpathdirs
="$rpathdirs $found_dir"
11023 for x
in $LDFLAGS $LIBEXPAT; do
11025 acl_save_prefix
="$prefix"
11026 prefix
="$acl_final_prefix"
11027 acl_save_exec_prefix
="$exec_prefix"
11028 exec_prefix
="$acl_final_exec_prefix"
11030 exec_prefix
="$acl_save_exec_prefix"
11031 prefix
="$acl_save_prefix"
11033 if test "X$x" = "X-L$found_dir"; then
11038 if test -z "$haveit"; then
11039 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11041 if test "$hardcode_minus_L" != no
; then
11042 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11044 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11050 if test "X$found_a" != "X"; then
11051 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11053 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11056 additional_includedir
=
11057 case "$found_dir" in
11059 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11060 additional_includedir
="$basedir/include"
11063 if test "X$additional_includedir" != "X"; then
11064 if test "X$additional_includedir" != "X/usr/include"; then
11066 if test "X$additional_includedir" = "X/usr/local/include"; then
11067 if test -n "$GCC"; then
11069 linux
*) haveit
=yes;;
11073 if test -z "$haveit"; then
11074 for x
in $CPPFLAGS $INCEXPAT; do
11076 acl_save_prefix
="$prefix"
11077 prefix
="$acl_final_prefix"
11078 acl_save_exec_prefix
="$exec_prefix"
11079 exec_prefix
="$acl_final_exec_prefix"
11081 exec_prefix
="$acl_save_exec_prefix"
11082 prefix
="$acl_save_prefix"
11084 if test "X$x" = "X-I$additional_includedir"; then
11089 if test -z "$haveit"; then
11090 if test -d "$additional_includedir"; then
11091 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11097 if test -n "$found_la"; then
11098 save_libdir
="$libdir"
11099 case "$found_la" in
11100 */* |
*\\*) .
"$found_la" ;;
11101 *) .
"./$found_la" ;;
11103 libdir
="$save_libdir"
11104 for dep
in $dependency_libs; do
11107 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11108 if test "X$additional_libdir" != "X/usr/lib"; then
11110 if test "X$additional_libdir" = "X/usr/local/lib"; then
11111 if test -n "$GCC"; then
11113 linux
*) haveit
=yes;;
11117 if test -z "$haveit"; then
11119 for x
in $LDFLAGS $LIBEXPAT; do
11121 acl_save_prefix
="$prefix"
11122 prefix
="$acl_final_prefix"
11123 acl_save_exec_prefix
="$exec_prefix"
11124 exec_prefix
="$acl_final_exec_prefix"
11126 exec_prefix
="$acl_save_exec_prefix"
11127 prefix
="$acl_save_prefix"
11129 if test "X$x" = "X-L$additional_libdir"; then
11134 if test -z "$haveit"; then
11135 if test -d "$additional_libdir"; then
11136 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11140 for x
in $LDFLAGS $LTLIBEXPAT; do
11142 acl_save_prefix
="$prefix"
11143 prefix
="$acl_final_prefix"
11144 acl_save_exec_prefix
="$exec_prefix"
11145 exec_prefix
="$acl_final_exec_prefix"
11147 exec_prefix
="$acl_save_exec_prefix"
11148 prefix
="$acl_save_prefix"
11150 if test "X$x" = "X-L$additional_libdir"; then
11155 if test -z "$haveit"; then
11156 if test -d "$additional_libdir"; then
11157 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11164 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11165 if test "$enable_rpath" != no
; then
11167 for x
in $rpathdirs; do
11168 if test "X$x" = "X$dir"; then
11173 if test -z "$haveit"; then
11174 rpathdirs
="$rpathdirs $dir"
11177 for x
in $ltrpathdirs; do
11178 if test "X$x" = "X$dir"; then
11183 if test -z "$haveit"; then
11184 ltrpathdirs
="$ltrpathdirs $dir"
11189 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11192 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11195 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11196 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11202 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11203 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11209 if test "X$rpathdirs" != "X"; then
11210 if test -n "$hardcode_libdir_separator"; then
11212 for found_dir
in $rpathdirs; do
11213 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11215 acl_save_libdir
="$libdir"
11217 eval flag
=\"$hardcode_libdir_flag_spec\"
11218 libdir
="$acl_save_libdir"
11219 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11221 for found_dir
in $rpathdirs; do
11222 acl_save_libdir
="$libdir"
11223 libdir
="$found_dir"
11224 eval flag
=\"$hardcode_libdir_flag_spec\"
11225 libdir
="$acl_save_libdir"
11226 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11230 if test "X$ltrpathdirs" != "X"; then
11231 for found_dir
in $ltrpathdirs; do
11232 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11237 ac_save_CPPFLAGS
="$CPPFLAGS"
11239 for element
in $INCEXPAT; do
11241 for x
in $CPPFLAGS; do
11243 acl_save_prefix
="$prefix"
11244 prefix
="$acl_final_prefix"
11245 acl_save_exec_prefix
="$exec_prefix"
11246 exec_prefix
="$acl_final_exec_prefix"
11248 exec_prefix
="$acl_save_exec_prefix"
11249 prefix
="$acl_save_prefix"
11251 if test "X$x" = "X$element"; then
11256 if test -z "$haveit"; then
11257 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
11263 $as_echo_n "checking for libexpat... " >&6; }
11264 if test "${ac_cv_libexpat+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
11268 ac_save_LIBS
="$LIBS"
11269 LIBS
="$LIBS $LIBEXPAT"
11270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11276 XML_Parser p = XML_ParserCreate (0);
11281 if ac_fn_c_try_link
"$LINENO"; then :
11286 rm -f core conftest.err conftest.
$ac_objext \
11287 conftest
$ac_exeext conftest.
$ac_ext
11288 LIBS
="$ac_save_LIBS"
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
11292 $as_echo "$ac_cv_libexpat" >&6; }
11293 if test "$ac_cv_libexpat" = yes; then
11296 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
11299 $as_echo_n "checking how to link with libexpat... " >&6; }
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
11301 $as_echo "$LIBEXPAT" >&6; }
11304 CPPFLAGS
="$ac_save_CPPFLAGS"
11314 if test "$HAVE_LIBEXPAT" != yes; then
11315 if test "$with_expat" = yes; then
11316 as_fn_error
"expat is missing or unusable" "$LINENO" 5
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11319 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11323 LIBS
="$LIBS $LIBEXPAT"
11324 for ac_func
in XML_StopParser
11326 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
11327 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
11328 cat >>confdefs.h
<<_ACEOF
11329 #define HAVE_XML_STOPPARSER 1
11344 # Check whether --with-python was given.
11345 if test "${with_python+set}" = set; then :
11346 withval
=$with_python;
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
11352 $as_echo_n "checking whether to use python... " >&6; }
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11354 $as_echo "$with_python" >&6; }
11356 if test "${with_python}" = no
; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11358 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11361 case "${with_python}" in
11363 if test -d ${with_python}; then
11364 # Assume the python binary is ${with_python}/bin/python.
11365 python_prog
="${with_python}/bin/python"
11367 # If python does not exit ${with_python}/bin, then try in
11368 # ${with_python}. On Windows/MinGW, this is where the Python
11370 if test ! -x "${python_prog}"; then
11371 python_prog
="${with_python}/python"
11374 if test ! -x "${python_prog}"; then
11375 # Fall back to gdb 7.0/7.1 behaviour.
11376 python_prog
=missing
11377 python_prefix
=${with_python}
11379 elif test -x "${with_python}"; then
11380 # While we can't run python compiled for $host (unless host == build),
11381 # the user could write a script that provides the needed information,
11382 # so we support that.
11383 python_prog
=${with_python}
11386 as_fn_error
"invalid value for --with-python" "$LINENO" 5
11390 # Disallow --with-python=foo/bar.
11391 as_fn_error
"invalid value for --with-python" "$LINENO" 5
11394 # The user has either specified auto, yes, or the name of the python
11395 # program assumed to be in $PATH.
11397 case "${with_python}" in
11399 if test ${build} = ${host}; then
11400 # Extract the first word of "python", so it can be a program name with args.
11401 set dummy python
; ac_word
=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if test "${ac_cv_path_python_prog_path+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11407 case $python_prog_path in
11409 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11413 for as_dir
in $PATH
11416 test -z "$as_dir" && as_dir
=.
11417 for ac_exec_ext
in '' $ac_executable_extensions; do
11418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11419 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11427 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11431 python_prog_path
=$ac_cv_path_python_prog_path
11432 if test -n "$python_prog_path"; then
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11434 $as_echo "$python_prog_path" >&6; }
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 $as_echo "no" >&6; }
11441 if test "${python_prog_path}" = missing
; then
11442 python_prog
=missing
11444 python_prog
=${python_prog_path}
11447 # Not much we can do except assume the cross-compiler will find the
11449 python_prog
=missing
11453 # While we can't run python compiled for $host (unless host == build),
11454 # the user could write a script that provides the needed information,
11455 # so we support that.
11456 python_prog
="${with_python}"
11457 # Extract the first word of "${python_prog}", so it can be a program name with args.
11458 set dummy
${python_prog}; ac_word
=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if test "${ac_cv_path_python_prog_path+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11464 case $python_prog_path in
11466 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11470 for as_dir
in $PATH
11473 test -z "$as_dir" && as_dir
=.
11474 for ac_exec_ext
in '' $ac_executable_extensions; do
11475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11476 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11488 python_prog_path
=$ac_cv_path_python_prog_path
11489 if test -n "$python_prog_path"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11491 $as_echo "$python_prog_path" >&6; }
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11498 if test "${python_prog_path}" = missing
; then
11499 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
11505 if test "${python_prog}" != missing
; then
11506 # We have a python program to use, but it may be too old.
11507 # Don't flag an error for --with-python=auto (the default).
11508 have_python_config
=yes
11509 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
11510 if test $?
!= 0; then
11511 have_python_config
=failed
11512 if test "${with_python}" != auto
; then
11513 as_fn_error
"failure running python-config --includes" "$LINENO" 5
11516 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11517 if test $?
!= 0; then
11518 have_python_config
=failed
11519 if test "${with_python}" != auto
; then
11520 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
11523 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11524 if test $?
!= 0; then
11525 have_python_config
=failed
11526 if test "${with_python}" != auto
; then
11527 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
11531 # We do not have a python executable we can use to determine where
11532 # to find the Python headers and libs. We cannot guess the include
11533 # path from the python_prefix either, because that include path
11534 # depends on the Python version. So, there is nothing much we can
11535 # do except assume that the compiler will be able to find those files.
11538 have_python_config
=no
11541 # If we have python-config, only try the configuration it provides.
11542 # Otherwise fallback on the old way of trying different versions of
11546 if test "${have_python_config}" = yes; then
11547 # Determine the Python version by extracting "-lpython<version>"
11548 # part of the python_libs. <version> is usually X.Y with X and Y
11549 # being decimal numbers, but can also be XY (seen on Windows).
11551 # The extraction is performed using sed with a regular expression.
11552 # Initially, the regexp used was using the '?' quantifier to make
11553 # the dot in the version number optional. Unfortunately, this
11554 # does not work with non-GNU versions of sed because, because of
11555 # what looks like a limitation (the '?' quantifier does not work
11556 # with back-references). We work around this limitation by using
11557 # the '*' quantifier instead. It means that, in theory, we might
11558 # match unexpected version strings such as "-lpython2..7", but
11559 # this seems unlikely in practice. And even if that happens,
11560 # an error will be triggered later on, when checking that version
11562 python_version
=`echo " ${python_libs} " \
11563 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
11564 case "${python_version}" in
11567 version
=${python_version}
11569 new_CPPFLAGS
=${python_includes}
11570 new_LIBS
=${python_libs}
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11572 $as_echo_n "checking for ${version}... " >&6; }
11573 save_CPPFLAGS
=$CPPFLAGS
11575 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11576 LIBS
="$LIBS $new_LIBS"
11577 found_usable_python
=no
11578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11580 #include "Python.h"
11589 if ac_fn_c_try_link
"$LINENO"; then :
11590 have_libpython
=${version}
11591 found_usable_python
=yes
11592 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11593 PYTHON_LIBS
=$new_LIBS
11595 rm -f core conftest.err conftest.
$ac_objext \
11596 conftest
$ac_exeext conftest.
$ac_ext
11597 CPPFLAGS
=$save_CPPFLAGS
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11600 $as_echo "${found_usable_python}" >&6; }
11604 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
11607 elif test "${have_python_config}" != failed
; then
11608 if test "${have_libpython}" = no
; then
11612 new_CPPFLAGS
=${python_includes}
11613 new_LIBS
="${python_libs} -lpython2.7"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11615 $as_echo_n "checking for ${version}... " >&6; }
11616 save_CPPFLAGS
=$CPPFLAGS
11618 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11619 LIBS
="$LIBS $new_LIBS"
11620 found_usable_python
=no
11621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11623 #include "Python.h"
11632 if ac_fn_c_try_link
"$LINENO"; then :
11633 have_libpython
=${version}
11634 found_usable_python
=yes
11635 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11636 PYTHON_LIBS
=$new_LIBS
11638 rm -f core conftest.err conftest.
$ac_objext \
11639 conftest
$ac_exeext conftest.
$ac_ext
11640 CPPFLAGS
=$save_CPPFLAGS
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11643 $as_echo "${found_usable_python}" >&6; }
11646 if test "${have_libpython}" = no
; then
11650 new_CPPFLAGS
=${python_includes}
11651 new_LIBS
="${python_libs} -lpython2.6"
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11653 $as_echo_n "checking for ${version}... " >&6; }
11654 save_CPPFLAGS
=$CPPFLAGS
11656 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11657 LIBS
="$LIBS $new_LIBS"
11658 found_usable_python
=no
11659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11661 #include "Python.h"
11670 if ac_fn_c_try_link
"$LINENO"; then :
11671 have_libpython
=${version}
11672 found_usable_python
=yes
11673 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11674 PYTHON_LIBS
=$new_LIBS
11676 rm -f core conftest.err conftest.
$ac_objext \
11677 conftest
$ac_exeext conftest.
$ac_ext
11678 CPPFLAGS
=$save_CPPFLAGS
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11681 $as_echo "${found_usable_python}" >&6; }
11684 if test ${have_libpython} = no
; then
11688 new_CPPFLAGS
=${python_includes}
11689 new_LIBS
="${python_libs} -lpython2.5"
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11691 $as_echo_n "checking for ${version}... " >&6; }
11692 save_CPPFLAGS
=$CPPFLAGS
11694 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11695 LIBS
="$LIBS $new_LIBS"
11696 found_usable_python
=no
11697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11699 #include "Python.h"
11708 if ac_fn_c_try_link
"$LINENO"; then :
11709 have_libpython
=${version}
11710 found_usable_python
=yes
11711 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11712 PYTHON_LIBS
=$new_LIBS
11714 rm -f core conftest.err conftest.
$ac_objext \
11715 conftest
$ac_exeext conftest.
$ac_ext
11716 CPPFLAGS
=$save_CPPFLAGS
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11719 $as_echo "${found_usable_python}" >&6; }
11722 if test ${have_libpython} = no
; then
11726 new_CPPFLAGS
=${python_includes}
11727 new_LIBS
="${python_libs} -lpython2.4"
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11729 $as_echo_n "checking for ${version}... " >&6; }
11730 save_CPPFLAGS
=$CPPFLAGS
11732 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11733 LIBS
="$LIBS $new_LIBS"
11734 found_usable_python
=no
11735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737 #include "Python.h"
11746 if ac_fn_c_try_link
"$LINENO"; then :
11747 have_libpython
=${version}
11748 found_usable_python
=yes
11749 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11750 PYTHON_LIBS
=$new_LIBS
11752 rm -f core conftest.err conftest.
$ac_objext \
11753 conftest
$ac_exeext conftest.
$ac_ext
11754 CPPFLAGS
=$save_CPPFLAGS
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11757 $as_echo "${found_usable_python}" >&6; }
11761 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
11763 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
11765 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
11767 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
11769 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
11771 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
11773 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
11775 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
11779 if test "${have_libpython}" = no
; then
11780 case "${with_python}" in
11782 as_fn_error
"python is missing or unusable" "$LINENO" 5
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11786 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11789 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
11793 if test -n "${python_prefix}"; then
11795 cat >>confdefs.h
<<_ACEOF
11796 #define WITH_PYTHON_PATH "${python_prefix}"
11800 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11801 if test "x$prefix" = xNONE
; then
11802 test_prefix
=/usr
/local
11804 test_prefix
=$prefix
11807 test_prefix
=$exec_prefix
11810 case ${python_prefix} in
11811 "${test_prefix}"|
"${test_prefix}/"*|\
11812 '${exec_prefix}'|
'${exec_prefix}/'*)
11817 cat >>confdefs.h
<<_ACEOF
11818 #define PYTHON_PATH_RELOCATABLE $value
11826 if test "${have_libpython}" != no
; then
11828 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11830 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11831 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11832 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11833 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11834 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11836 # Flags needed to compile Python code (taken from python-config --cflags).
11837 # We cannot call python-config directly because it will output whatever was
11838 # used when compiling the Python interpreter itself, including flags which
11839 # would make the python-related objects be compiled differently from the
11840 # rest of GDB (e.g., -O2 and -fPIC).
11841 if test "${GCC}" = yes; then
11842 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
11845 if test "x${tentative_python_cflags}" != x
; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11847 $as_echo_n "checking compiler flags for python code... " >&6; }
11848 for flag
in ${tentative_python_cflags}; do
11849 # Check that the compiler accepts it
11850 saved_CFLAGS
="$CFLAGS"
11851 CFLAGS
="$CFLAGS $flag"
11852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11863 if ac_fn_c_try_compile
"$LINENO"; then :
11864 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11867 CFLAGS
="$saved_CFLAGS"
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11870 $as_echo "${PYTHON_CFLAGS}" >&6; }
11873 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
11875 # #define siginfo __siginfo
11877 # The problem is that including Python causes some XOPEN macros to be
11878 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
11879 # to false. So, we work around this issue by defining siginfo ourself
11880 # though the command-line.
11881 case "$gdb_host" in
11882 irix
*) if test "${GCC}" = yes; then
11883 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
11888 # Even if Python support is not compiled in, we need to have these files
11890 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11891 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
11892 python/py-prettyprint.c python/py-auto-load.c"
11898 # ------------------------- #
11899 # Checks for header files. #
11900 # ------------------------- #
11902 ac_header_dirent
=no
11903 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11904 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11906 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11907 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11908 $as_echo_n "(cached) " >&6
11910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11912 #include <sys/types.h>
11924 if ac_fn_c_try_compile
"$LINENO"; then :
11925 eval "$as_ac_Header=yes"
11927 eval "$as_ac_Header=no"
11929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11931 eval ac_res
=\$
$as_ac_Header
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11933 $as_echo "$ac_res" >&6; }
11934 eval as_val
=\$
$as_ac_Header
11935 if test "x$as_val" = x
""yes; then :
11936 cat >>confdefs.h
<<_ACEOF
11937 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11940 ac_header_dirent
=$ac_hdr; break
11944 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11945 if test $ac_header_dirent = dirent.h
; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11947 $as_echo_n "checking for library containing opendir... " >&6; }
11948 if test "${ac_cv_search_opendir+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11951 ac_func_search_save_LIBS
=$LIBS
11952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11955 /* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11970 for ac_lib
in '' dir
; do
11971 if test -z "$ac_lib"; then
11972 ac_res
="none required"
11975 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11977 if ac_fn_c_try_link
"$LINENO"; then :
11978 ac_cv_search_opendir
=$ac_res
11980 rm -f core conftest.err conftest.
$ac_objext \
11982 if test "${ac_cv_search_opendir+set}" = set; then :
11986 if test "${ac_cv_search_opendir+set}" = set; then :
11989 ac_cv_search_opendir
=no
11991 rm conftest.
$ac_ext
11992 LIBS
=$ac_func_search_save_LIBS
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11995 $as_echo "$ac_cv_search_opendir" >&6; }
11996 ac_res
=$ac_cv_search_opendir
11997 if test "$ac_res" != no
; then :
11998 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12004 $as_echo_n "checking for library containing opendir... " >&6; }
12005 if test "${ac_cv_search_opendir+set}" = set; then :
12006 $as_echo_n "(cached) " >&6
12008 ac_func_search_save_LIBS
=$LIBS
12009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12027 for ac_lib
in '' x
; do
12028 if test -z "$ac_lib"; then
12029 ac_res
="none required"
12032 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12034 if ac_fn_c_try_link
"$LINENO"; then :
12035 ac_cv_search_opendir
=$ac_res
12037 rm -f core conftest.err conftest.
$ac_objext \
12039 if test "${ac_cv_search_opendir+set}" = set; then :
12043 if test "${ac_cv_search_opendir+set}" = set; then :
12046 ac_cv_search_opendir
=no
12048 rm conftest.
$ac_ext
12049 LIBS
=$ac_func_search_save_LIBS
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12052 $as_echo "$ac_cv_search_opendir" >&6; }
12053 ac_res
=$ac_cv_search_opendir
12054 if test "$ac_res" != no
; then :
12055 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12062 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12063 if test "${ac_cv_header_stat_broken+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12068 #include <sys/types.h>
12069 #include <sys/stat.h>
12071 #if defined S_ISBLK && defined S_IFDIR
12072 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12075 #if defined S_ISBLK && defined S_IFCHR
12076 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12079 #if defined S_ISLNK && defined S_IFREG
12080 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12083 #if defined S_ISSOCK && defined S_IFREG
12084 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12088 if ac_fn_c_try_compile
"$LINENO"; then :
12089 ac_cv_header_stat_broken
=no
12091 ac_cv_header_stat_broken
=yes
12093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12096 $as_echo "$ac_cv_header_stat_broken" >&6; }
12097 if test $ac_cv_header_stat_broken = yes; then
12099 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12104 $as_echo_n "checking for ANSI C header files... " >&6; }
12105 if test "${ac_cv_header_stdc+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 #include <stdlib.h>
12111 #include <stdarg.h>
12112 #include <string.h>
12123 if ac_fn_c_try_compile
"$LINENO"; then :
12124 ac_cv_header_stdc
=yes
12126 ac_cv_header_stdc
=no
12128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12130 if test $ac_cv_header_stdc = yes; then
12131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12134 #include <string.h>
12137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12138 $EGREP "memchr" >/dev
/null
2>&1; then :
12141 ac_cv_header_stdc
=no
12147 if test $ac_cv_header_stdc = yes; then
12148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151 #include <stdlib.h>
12154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12155 $EGREP "free" >/dev
/null
2>&1; then :
12158 ac_cv_header_stdc
=no
12164 if test $ac_cv_header_stdc = yes; then
12165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12166 if test "$cross_compiling" = yes; then :
12169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12172 #include <stdlib.h>
12173 #if ((' ' & 0x0FF) == 0x020)
12174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12177 # define ISLOWER(c) \
12178 (('a' <= (c) && (c) <= 'i') \
12179 || ('j' <= (c) && (c) <= 'r') \
12180 || ('s' <= (c) && (c) <= 'z'))
12181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12189 for (i = 0; i < 256; i++)
12190 if (XOR (islower (i), ISLOWER (i))
12191 || toupper (i) != TOUPPER (i))
12196 if ac_fn_c_try_run
"$LINENO"; then :
12199 ac_cv_header_stdc
=no
12201 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12202 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12208 $as_echo "$ac_cv_header_stdc" >&6; }
12209 if test $ac_cv_header_stdc = yes; then
12211 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12215 # elf_hp.h is for HP/UX 64-bit shared library support.
12216 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12217 # unconditionally, so what's the point in checking these?
12218 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12219 thread_db.h gnu
/libc-version.h signal.h stddef.h \
12220 stdlib.h string.h memory.h
strings.h sys
/fault.h \
12221 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12222 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12223 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
12224 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
12225 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h \
12226 dlfcn.h sys
/socket.h sys
/un.h
12228 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12229 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12230 eval as_val
=\$
$as_ac_Header
12231 if test "x$as_val" = x
""yes; then :
12232 cat >>confdefs.h
<<_ACEOF
12233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12240 for ac_header
in link.h
12242 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
12243 # include <sys/types.h>
12246 # include <nlist.h>
12250 if test "x$ac_cv_header_link_h" = x
""yes; then :
12251 cat >>confdefs.h
<<_ACEOF
12252 #define HAVE_LINK_H 1
12259 for ac_header
in sys
/proc.h
12261 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
12262 # include <sys/param.h>
12266 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
12267 cat >>confdefs.h
<<_ACEOF
12268 #define HAVE_SYS_PROC_H 1
12275 for ac_header
in sys
/user.h
12277 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12278 # include <sys/param.h>
12282 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
12283 cat >>confdefs.h
<<_ACEOF
12284 #define HAVE_SYS_USER_H 1
12292 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12293 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12294 # think that we don't have <curses.h> if we're using GCC.
12297 if test "$GCC" = yes; then
12299 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
12303 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
12305 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12306 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12307 eval as_val
=\$
$as_ac_Header
12308 if test "x$as_val" = x
""yes; then :
12309 cat >>confdefs.h
<<_ACEOF
12310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317 for ac_header
in term.h
12319 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12320 # include <curses.h>
12324 if test "x$ac_cv_header_term_h" = x
""yes; then :
12325 cat >>confdefs.h
<<_ACEOF
12326 #define HAVE_TERM_H 1
12334 # ------------------------- #
12335 # Checks for declarations. #
12336 # ------------------------- #
12338 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12339 if test "x$ac_cv_have_decl_free" = x
""yes; then :
12345 cat >>confdefs.h
<<_ACEOF
12346 #define HAVE_DECL_FREE $ac_have_decl
12348 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
12349 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
12355 cat >>confdefs.h
<<_ACEOF
12356 #define HAVE_DECL_MALLOC $ac_have_decl
12358 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
12359 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
12365 cat >>confdefs.h
<<_ACEOF
12366 #define HAVE_DECL_REALLOC $ac_have_decl
12368 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
12369 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
12375 cat >>confdefs.h
<<_ACEOF
12376 #define HAVE_DECL_STRERROR $ac_have_decl
12378 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12379 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
12385 cat >>confdefs.h
<<_ACEOF
12386 #define HAVE_DECL_STRSTR $ac_have_decl
12388 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
12389 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
12395 cat >>confdefs.h
<<_ACEOF
12396 #define HAVE_DECL_GETOPT $ac_have_decl
12398 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12399 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
12405 cat >>confdefs.h
<<_ACEOF
12406 #define HAVE_DECL_SNPRINTF $ac_have_decl
12408 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12409 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
12415 cat >>confdefs.h
<<_ACEOF
12416 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12421 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12422 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
12423 $as_echo_n "(cached) " >&6
12425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427 #include <locale.h>
12436 if ac_fn_c_try_link
"$LINENO"; then :
12437 am_cv_val_LC_MESSAGES
=yes
12439 am_cv_val_LC_MESSAGES
=no
12441 rm -f core conftest.err conftest.
$ac_objext \
12442 conftest
$ac_exeext conftest.
$ac_ext
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12445 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12446 if test $am_cv_val_LC_MESSAGES = yes; then
12448 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12453 # ----------------------- #
12454 # Checks for structures. #
12455 # ----------------------- #
12457 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12458 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
12460 cat >>confdefs.h
<<_ACEOF
12461 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12466 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12467 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
12469 cat >>confdefs.h
<<_ACEOF
12470 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12477 # ------------------ #
12478 # Checks for types. #
12479 # ------------------ #
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12482 $as_echo_n "checking return type of signal handlers... " >&6; }
12483 if test "${ac_cv_type_signal+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488 #include <sys/types.h>
12489 #include <signal.h>
12494 return *(signal (0, 0)) (0) == 1;
12499 if ac_fn_c_try_compile
"$LINENO"; then :
12500 ac_cv_type_signal
=int
12502 ac_cv_type_signal
=void
12504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12507 $as_echo "$ac_cv_type_signal" >&6; }
12509 cat >>confdefs.h
<<_ACEOF
12510 #define RETSIGTYPE $ac_cv_type_signal
12514 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12515 #include <sys/socket.h>
12518 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
12520 cat >>confdefs.h
<<_ACEOF
12521 #define HAVE_SOCKLEN_T 1
12528 # ------------------------------------- #
12529 # Checks for compiler characteristics. #
12530 # ------------------------------------- #
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12533 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12534 if test "${ac_cv_c_const+set}" = set; then :
12535 $as_echo_n "(cached) " >&6
12537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12543 /* FIXME: Include the comments suggested by Paul. */
12544 #ifndef __cplusplus
12545 /* Ultrix mips cc rejects this. */
12546 typedef int charset[2];
12548 /* SunOS 4.1.1 cc rejects this. */
12549 char const *const *pcpcc;
12551 /* NEC SVR4.0.2 mips cc rejects this. */
12552 struct point {int x, y;};
12553 static struct point const zero = {0,0};
12554 /* AIX XL C 1.02.0.0 rejects this.
12555 It does not let you subtract one const X* pointer from another in
12556 an arm of an if-expression whose if-part is not a constant
12558 const char *g = "string";
12559 pcpcc = &g + (g ? g-g : 0);
12560 /* HPUX 7.0 cc rejects these. */
12562 ppc = (char**) pcpcc;
12563 pcpcc = (char const *const *) ppc;
12564 { /* SCO 3.2v4 cc rejects this. */
12566 char const *s = 0 ? (char *) 0 : (char const *) 0;
12571 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12572 int x[] = {25, 17};
12573 const int *foo = &x[0];
12576 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12577 typedef const int *iptr;
12581 { /* AIX XL C 1.02.0.0 rejects this saying
12582 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12583 struct s { int j; const int *ap[3]; };
12584 struct s *b; b->j = 5;
12586 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12587 const int foo = 10;
12588 if (!foo) return 0;
12590 return !cs[0] && !zero.x;
12597 if ac_fn_c_try_compile
"$LINENO"; then :
12602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12605 $as_echo "$ac_cv_c_const" >&6; }
12606 if test $ac_cv_c_const = no
; then
12608 $as_echo "#define const /**/" >>confdefs.h
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12613 $as_echo_n "checking for inline... " >&6; }
12614 if test "${ac_cv_c_inline+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12618 for ac_kw
in inline __inline__ __inline
; do
12619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621 #ifndef __cplusplus
12623 static $ac_kw foo_t static_foo () {return 0; }
12624 $ac_kw foo_t foo () {return 0; }
12628 if ac_fn_c_try_compile
"$LINENO"; then :
12629 ac_cv_c_inline
=$ac_kw
12631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12632 test "$ac_cv_c_inline" != no
&& break
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12637 $as_echo "$ac_cv_c_inline" >&6; }
12639 case $ac_cv_c_inline in
12642 case $ac_cv_c_inline in
12644 *) ac_val
=$ac_cv_c_inline;;
12646 cat >>confdefs.h
<<_ACEOF
12647 #ifndef __cplusplus
12648 #define inline $ac_val
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12655 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12656 if test "${ac_cv_c_bigendian+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12659 ac_cv_c_bigendian
=unknown
12660 # See if we're dealing with a universal compiler.
12661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12663 #ifndef __APPLE_CC__
12664 not a universal capable compiler
12669 if ac_fn_c_try_compile
"$LINENO"; then :
12671 # Check for potential -arch flags. It is not universal unless
12672 # there are at least two -arch flags with different values.
12675 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12676 if test -n "$ac_prev"; then
12678 i?
86 | x86_64 | ppc | ppc64
)
12679 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12682 ac_cv_c_bigendian
=universal
12688 elif test "x$ac_word" = "x-arch"; then
12693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12694 if test $ac_cv_c_bigendian = unknown
; then
12695 # See if sys/param.h defines the BYTE_ORDER macro.
12696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698 #include <sys/types.h>
12699 #include <sys/param.h>
12704 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12705 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12707 bogus endian macros
12714 if ac_fn_c_try_compile
"$LINENO"; then :
12715 # It does; now see whether it defined to BIG_ENDIAN or not.
12716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12718 #include <sys/types.h>
12719 #include <sys/param.h>
12724 #if BYTE_ORDER != BIG_ENDIAN
12732 if ac_fn_c_try_compile
"$LINENO"; then :
12733 ac_cv_c_bigendian
=yes
12735 ac_cv_c_bigendian
=no
12737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12741 if test $ac_cv_c_bigendian = unknown
; then
12742 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745 #include <limits.h>
12750 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12751 bogus endian macros
12758 if ac_fn_c_try_compile
"$LINENO"; then :
12759 # It does; now see whether it defined to _BIG_ENDIAN or not.
12760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12762 #include <limits.h>
12767 #ifndef _BIG_ENDIAN
12775 if ac_fn_c_try_compile
"$LINENO"; then :
12776 ac_cv_c_bigendian
=yes
12778 ac_cv_c_bigendian
=no
12780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12784 if test $ac_cv_c_bigendian = unknown
; then
12785 # Compile a test program.
12786 if test "$cross_compiling" = yes; then :
12787 # Try to guess by grepping values from an object file.
12788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12790 short int ascii_mm[] =
12791 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12792 short int ascii_ii[] =
12793 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12794 int use_ascii (int i) {
12795 return ascii_mm[i] + ascii_ii[i];
12797 short int ebcdic_ii[] =
12798 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12799 short int ebcdic_mm[] =
12800 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12801 int use_ebcdic (int i) {
12802 return ebcdic_mm[i] + ebcdic_ii[i];
12809 return use_ascii (foo) == use_ebcdic (foo);
12814 if ac_fn_c_try_compile
"$LINENO"; then :
12815 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12816 ac_cv_c_bigendian
=yes
12818 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12819 if test "$ac_cv_c_bigendian" = unknown
; then
12820 ac_cv_c_bigendian
=no
12822 # finding both strings is unlikely to happen, but who knows?
12823 ac_cv_c_bigendian
=unknown
12827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831 $ac_includes_default
12836 /* Are we little or big endian? From Harbison&Steele. */
12840 char c[sizeof (long int)];
12843 return u.c[sizeof (long int) - 1] == 1;
12849 if ac_fn_c_try_run
"$LINENO"; then :
12850 ac_cv_c_bigendian
=no
12852 ac_cv_c_bigendian
=yes
12854 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12855 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12861 $as_echo "$ac_cv_c_bigendian" >&6; }
12862 case $ac_cv_c_bigendian in #(
12864 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12870 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12874 as_fn_error
"unknown endianness
12875 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12879 # ------------------------------ #
12880 # Checks for library functions. #
12881 # ------------------------------ #
12883 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12884 # for constant arguments. Useless!
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12886 $as_echo_n "checking for working alloca.h... " >&6; }
12887 if test "${ac_cv_working_alloca_h+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12891 /* end confdefs.h. */
12892 #include <alloca.h>
12896 char *p = (char *) alloca (2 * sizeof (int));
12902 if ac_fn_c_try_link
"$LINENO"; then :
12903 ac_cv_working_alloca_h
=yes
12905 ac_cv_working_alloca_h
=no
12907 rm -f core conftest.err conftest.
$ac_objext \
12908 conftest
$ac_exeext conftest.
$ac_ext
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12911 $as_echo "$ac_cv_working_alloca_h" >&6; }
12912 if test $ac_cv_working_alloca_h = yes; then
12914 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12919 $as_echo_n "checking for alloca... " >&6; }
12920 if test "${ac_cv_func_alloca_works+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12926 # define alloca __builtin_alloca
12929 # include <malloc.h>
12930 # define alloca _alloca
12932 # ifdef HAVE_ALLOCA_H
12933 # include <alloca.h>
12938 # ifndef alloca /* predefined by HP cc +Olibcalls */
12949 char *p = (char *) alloca (1);
12955 if ac_fn_c_try_link
"$LINENO"; then :
12956 ac_cv_func_alloca_works
=yes
12958 ac_cv_func_alloca_works
=no
12960 rm -f core conftest.err conftest.
$ac_objext \
12961 conftest
$ac_exeext conftest.
$ac_ext
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12964 $as_echo "$ac_cv_func_alloca_works" >&6; }
12966 if test $ac_cv_func_alloca_works = yes; then
12968 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12971 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12972 # that cause trouble. Some versions do not even contain alloca or
12973 # contain a buggy version. If you still want to use their alloca,
12974 # use ar to extract alloca.o from them instead of compiling alloca.c.
12976 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12978 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12982 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12983 if test "${ac_cv_os_cray+set}" = set; then :
12984 $as_echo_n "(cached) " >&6
12986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988 #if defined CRAY && ! defined CRAY2
12995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12996 $EGREP "webecray" >/dev
/null
2>&1; then :
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13005 $as_echo "$ac_cv_os_cray" >&6; }
13006 if test $ac_cv_os_cray = yes; then
13007 for ac_func
in _getb67 GETB67 getb67
; do
13008 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13010 eval as_val
=\$
$as_ac_var
13011 if test "x$as_val" = x
""yes; then :
13013 cat >>confdefs.h
<<_ACEOF
13014 #define CRAY_STACKSEG_END $ac_func
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13024 $as_echo_n "checking stack direction for C alloca... " >&6; }
13025 if test "${ac_cv_c_stack_direction+set}" = set; then :
13026 $as_echo_n "(cached) " >&6
13028 if test "$cross_compiling" = yes; then :
13029 ac_cv_c_stack_direction
=0
13031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 $ac_includes_default
13035 find_stack_direction ()
13037 static char *addr = 0;
13042 return find_stack_direction ();
13045 return (&dummy > addr) ? 1 : -1;
13051 return find_stack_direction () < 0;
13054 if ac_fn_c_try_run
"$LINENO"; then :
13055 ac_cv_c_stack_direction
=1
13057 ac_cv_c_stack_direction
=-1
13059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13065 $as_echo "$ac_cv_c_stack_direction" >&6; }
13066 cat >>confdefs.h
<<_ACEOF
13067 #define STACK_DIRECTION $ac_cv_c_stack_direction
13073 for ac_header
in stdlib.h unistd.h
13075 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13076 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13077 eval as_val
=\$
$as_ac_Header
13078 if test "x$as_val" = x
""yes; then :
13079 cat >>confdefs.h
<<_ACEOF
13080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13087 for ac_func
in getpagesize
13089 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13090 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
13091 cat >>confdefs.h
<<_ACEOF
13092 #define HAVE_GETPAGESIZE 1
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13099 $as_echo_n "checking for working mmap... " >&6; }
13100 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13101 $as_echo_n "(cached) " >&6
13103 if test "$cross_compiling" = yes; then :
13104 ac_cv_func_mmap_fixed_mapped
=no
13106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 $ac_includes_default
13109 /* malloc might have been renamed as rpl_malloc. */
13112 /* Thanks to Mike Haertel and Jim Avera for this test.
13113 Here is a matrix of mmap possibilities:
13114 mmap private not fixed
13115 mmap private fixed at somewhere currently unmapped
13116 mmap private fixed at somewhere already mapped
13117 mmap shared not fixed
13118 mmap shared fixed at somewhere currently unmapped
13119 mmap shared fixed at somewhere already mapped
13120 For private mappings, we should verify that changes cannot be read()
13121 back from the file, nor mmap's back from the file at a different
13122 address. (There have been systems where private was not correctly
13123 implemented like the infamous i386 svr4.0, and systems where the
13124 VM page cache was not coherent with the file system buffer cache
13125 like early versions of FreeBSD and possibly contemporary NetBSD.)
13126 For shared mappings, we should conversely verify that changes get
13127 propagated back to all the places they're supposed to be.
13129 Grep wants private fixed already mapped.
13130 The main things grep needs to know about mmap are:
13131 * does it exist and is it safe to write into the mmap'd area
13132 * how to use it (BSD variants) */
13135 #include <sys/mman.h>
13137 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13141 /* This mess was copied from the GNU getpagesize.h. */
13142 #ifndef HAVE_GETPAGESIZE
13143 /* Assume that all systems that can run configure have sys/param.h. */
13144 # ifndef HAVE_SYS_PARAM_H
13145 # define HAVE_SYS_PARAM_H 1
13148 # ifdef _SC_PAGESIZE
13149 # define getpagesize() sysconf(_SC_PAGESIZE)
13150 # else /* no _SC_PAGESIZE */
13151 # ifdef HAVE_SYS_PARAM_H
13152 # include <sys/param.h>
13153 # ifdef EXEC_PAGESIZE
13154 # define getpagesize() EXEC_PAGESIZE
13155 # else /* no EXEC_PAGESIZE */
13157 # define getpagesize() NBPG * CLSIZE
13160 # endif /* no CLSIZE */
13161 # else /* no NBPG */
13163 # define getpagesize() NBPC
13164 # else /* no NBPC */
13166 # define getpagesize() PAGESIZE
13167 # endif /* PAGESIZE */
13168 # endif /* no NBPC */
13169 # endif /* no NBPG */
13170 # endif /* no EXEC_PAGESIZE */
13171 # else /* no HAVE_SYS_PARAM_H */
13172 # define getpagesize() 8192 /* punt totally */
13173 # endif /* no HAVE_SYS_PARAM_H */
13174 # endif /* no _SC_PAGESIZE */
13176 #endif /* no HAVE_GETPAGESIZE */
13181 char *data, *data2, *data3;
13185 pagesize = getpagesize ();
13187 /* First, make a file with some known garbage in it. */
13188 data = (char *) malloc (pagesize);
13191 for (i = 0; i < pagesize; ++i)
13192 *(data + i) = rand ();
13194 fd = creat ("conftest.mmap", 0600);
13197 if (write (fd, data, pagesize) != pagesize)
13201 /* Next, try to mmap the file at a fixed address which already has
13202 something else allocated at it. If we can, also make sure that
13203 we see the same garbage. */
13204 fd = open ("conftest.mmap", O_RDWR);
13207 data2 = (char *) malloc (2 * pagesize);
13210 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13211 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13212 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13214 for (i = 0; i < pagesize; ++i)
13215 if (*(data + i) != *(data2 + i))
13218 /* Finally, make sure that changes to the mapped area do not
13219 percolate back to the file as seen by read(). (This is a bug on
13220 some variants of i386 svr4.0.) */
13221 for (i = 0; i < pagesize; ++i)
13222 *(data2 + i) = *(data2 + i) + 1;
13223 data3 = (char *) malloc (pagesize);
13226 if (read (fd, data3, pagesize) != pagesize)
13228 for (i = 0; i < pagesize; ++i)
13229 if (*(data + i) != *(data3 + i))
13235 if ac_fn_c_try_run
"$LINENO"; then :
13236 ac_cv_func_mmap_fixed_mapped
=yes
13238 ac_cv_func_mmap_fixed_mapped
=no
13240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13241 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13246 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13247 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13249 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13252 rm -f conftest.mmap
13254 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13255 if test "x$ac_cv_type_pid_t" = x
""yes; then :
13259 cat >>confdefs.h
<<_ACEOF
13265 for ac_header
in vfork.h
13267 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13268 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
13269 cat >>confdefs.h
<<_ACEOF
13270 #define HAVE_VFORK_H 1
13277 for ac_func
in fork vfork
13279 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13280 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13281 eval as_val
=\$
$as_ac_var
13282 if test "x$as_val" = x
""yes; then :
13283 cat >>confdefs.h
<<_ACEOF
13284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13290 if test "x$ac_cv_func_fork" = xyes
; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13292 $as_echo_n "checking for working fork... " >&6; }
13293 if test "${ac_cv_func_fork_works+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13296 if test "$cross_compiling" = yes; then :
13297 ac_cv_func_fork_works
=cross
13299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301 $ac_includes_default
13306 /* By Ruediger Kuhlmann. */
13307 return fork () < 0;
13313 if ac_fn_c_try_run
"$LINENO"; then :
13314 ac_cv_func_fork_works
=yes
13316 ac_cv_func_fork_works
=no
13318 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13319 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13324 $as_echo "$ac_cv_func_fork_works" >&6; }
13327 ac_cv_func_fork_works
=$ac_cv_func_fork
13329 if test "x$ac_cv_func_fork_works" = xcross
; then
13331 *-*-amigaos* |
*-*-msdosdjgpp*)
13332 # Override, as these systems have only a dummy fork() stub
13333 ac_cv_func_fork_works
=no
13336 ac_cv_func_fork_works
=yes
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13340 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13342 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13343 if test "x$ac_cv_func_vfork" = xyes
; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13345 $as_echo_n "checking for working vfork... " >&6; }
13346 if test "${ac_cv_func_vfork_works+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13349 if test "$cross_compiling" = yes; then :
13350 ac_cv_func_vfork_works
=cross
13352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 /* Thanks to Paul Eggert for this test. */
13355 $ac_includes_default
13356 #include <sys/wait.h>
13357 #ifdef HAVE_VFORK_H
13358 # include <vfork.h>
13360 /* On some sparc systems, changes by the child to local and incoming
13361 argument registers are propagated back to the parent. The compiler
13362 is told about this with #include <vfork.h>, but some compilers
13363 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13364 static variable whose address is put into a register that is
13365 clobbered by the vfork. */
13368 sparc_address_test (int arg)
13370 sparc_address_test (arg) int arg;
13373 static pid_t child;
13391 pid_t parent = getpid ();
13394 sparc_address_test (0);
13399 /* Here is another test for sparc vfork register problems. This
13400 test uses lots of local variables, at least as many local
13401 variables as main has allocated so far including compiler
13402 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13403 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13404 reuse the register of parent for one of the local variables,
13405 since it will think that parent can't possibly be used any more
13406 in this routine. Assigning to the local variable will thus
13407 munge parent in the parent process. */
13409 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13410 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13411 /* Convince the compiler that p..p7 are live; otherwise, it might
13412 use the same hardware register for all 8 local variables. */
13413 if (p != p1 || p != p2 || p != p3 || p != p4
13414 || p != p5 || p != p6 || p != p7)
13417 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13418 from child file descriptors. If the child closes a descriptor
13419 before it execs or exits, this munges the parent's descriptor
13420 as well. Test for this by closing stdout in the child. */
13421 _exit(close(fileno(stdout)) != 0);
13426 while (wait(&status) != child)
13429 /* Was there some problem with vforking? */
13432 /* Did the child fail? (This shouldn't happen.) */
13435 /* Did the vfork/compiler bug occur? */
13436 || parent != getpid()
13438 /* Did the file descriptor bug occur? */
13439 || fstat(fileno(stdout), &st) != 0
13444 if ac_fn_c_try_run
"$LINENO"; then :
13445 ac_cv_func_vfork_works
=yes
13447 ac_cv_func_vfork_works
=no
13449 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13450 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13455 $as_echo "$ac_cv_func_vfork_works" >&6; }
13458 if test "x$ac_cv_func_fork_works" = xcross
; then
13459 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13461 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13464 if test "x$ac_cv_func_vfork_works" = xyes
; then
13466 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13470 $as_echo "#define vfork fork" >>confdefs.h
13473 if test "x$ac_cv_func_fork_works" = xyes
; then
13475 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13479 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
13480 pipe poll pread pread64 pwrite readlink resize_term \
13481 sbrk setpgid setpgrp setsid \
13482 sigaction sigprocmask sigsetmask socketpair syscall \
13483 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13484 setrlimit getrlimit posix_madvise waitpid lstat
13486 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13487 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13488 eval as_val
=\$
$as_ac_var
13489 if test "x$as_val" = x
""yes; then :
13490 cat >>confdefs.h
<<_ACEOF
13491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13499 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13500 if test "${am_cv_langinfo_codeset+set}" = set; then :
13501 $as_echo_n "(cached) " >&6
13503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 #include <langinfo.h>
13509 char* cs = nl_langinfo(CODESET);
13514 if ac_fn_c_try_link
"$LINENO"; then :
13515 am_cv_langinfo_codeset
=yes
13517 am_cv_langinfo_codeset
=no
13519 rm -f core conftest.err conftest.
$ac_objext \
13520 conftest
$ac_exeext conftest.
$ac_ext
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13524 $as_echo "$am_cv_langinfo_codeset" >&6; }
13525 if test $am_cv_langinfo_codeset = yes; then
13527 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13532 # Check the return and argument types of ptrace. No canned test for
13533 # this, so roll our own.
13534 gdb_ptrace_headers
='
13535 #if HAVE_SYS_TYPES_H
13536 # include <sys/types.h>
13538 #if HAVE_SYS_PTRACE_H
13539 # include <sys/ptrace.h>
13542 # include <unistd.h>
13545 # There is no point in checking if we don't have a prototype.
13546 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13548 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
13554 cat >>confdefs.h
<<_ACEOF
13555 #define HAVE_DECL_PTRACE $ac_have_decl
13557 if test $ac_have_decl = 1; then :
13561 : ${gdb_cv_func_ptrace_ret='int'}
13562 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13566 # Check return type. Varargs (used on GNU/Linux) conflict with the
13567 # empty argument list, so check for that explicitly.
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13569 $as_echo_n "checking return type of ptrace... " >&6; }
13570 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
13571 $as_echo_n "(cached) " >&6
13573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575 $gdb_ptrace_headers
13579 extern long ptrace (enum __ptrace_request, ...);
13584 if ac_fn_c_try_compile
"$LINENO"; then :
13585 gdb_cv_func_ptrace_ret
='long'
13587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589 $gdb_ptrace_headers
13593 extern int ptrace ();
13598 if ac_fn_c_try_compile
"$LINENO"; then :
13599 gdb_cv_func_ptrace_ret
='int'
13601 gdb_cv_func_ptrace_ret
='long'
13603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13608 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13610 cat >>confdefs.h
<<_ACEOF
13611 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13614 # Check argument types.
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13616 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13617 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 $gdb_ptrace_headers
13627 extern long ptrace (enum __ptrace_request, ...);
13632 if ac_fn_c_try_compile
"$LINENO"; then :
13633 gdb_cv_func_ptrace_args
='int,int,long,long'
13636 for gdb_arg1
in 'int' 'long'; do
13637 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13638 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13639 for gdb_arg4
in 'int' 'long'; do
13640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 $gdb_ptrace_headers
13647 extern $gdb_cv_func_ptrace_ret
13648 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13654 if ac_fn_c_try_compile
"$LINENO"; then :
13655 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13659 for gdb_arg5
in 'int *' 'int' 'long'; do
13660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 $gdb_ptrace_headers
13667 extern $gdb_cv_func_ptrace_ret
13668 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13674 if ac_fn_c_try_compile
"$LINENO"; then :
13676 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13685 # Provide a safe default value.
13686 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13692 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13693 ac_save_IFS
=$IFS; IFS
=','
13694 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13698 cat >>confdefs.h
<<_ACEOF
13699 #define PTRACE_TYPE_ARG3 $3
13702 if test -n "$5"; then
13704 cat >>confdefs.h
<<_ACEOF
13705 #define PTRACE_TYPE_ARG5 $5
13710 if test "$cross_compiling" = no
; then
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13712 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13713 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13716 if test "$cross_compiling" = yes; then :
13717 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
13719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13721 $ac_includes_default
13725 /* If this system has a BSD-style setpgrp which takes arguments,
13726 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13727 exit successfully. */
13728 return setpgrp (1,1) != -1;
13733 if ac_fn_c_try_run
"$LINENO"; then :
13734 ac_cv_func_setpgrp_void
=no
13736 ac_cv_func_setpgrp_void
=yes
13738 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13739 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13744 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13745 if test $ac_cv_func_setpgrp_void = yes; then
13747 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13753 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13754 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13760 #include <unistd.h>
13766 if (setpgrp(1,1) == -1)
13775 if ac_fn_c_try_compile
"$LINENO"; then :
13776 ac_cv_func_setpgrp_void
=no
13778 ac_cv_func_setpgrp_void
=yes
13780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13783 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13784 if test $ac_cv_func_setpgrp_void = yes; then
13785 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13790 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
13791 # since sigsetjmp might only be defined as a macro.
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13793 $as_echo_n "checking for sigsetjmp... " >&6; }
13794 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13800 #include <setjmp.h>
13805 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13810 if ac_fn_c_try_compile
"$LINENO"; then :
13811 gdb_cv_func_sigsetjmp
=yes
13813 gdb_cv_func_sigsetjmp
=no
13815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13818 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13819 if test $gdb_cv_func_sigsetjmp = yes; then
13821 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13825 # Assume we'll default to using the included libiberty regex.
13826 gdb_use_included_regex
=yes
13828 # However, if the system regex is GNU regex, then default to *not*
13829 # using the included regex.
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13831 $as_echo_n "checking for GNU regex... " >&6; }
13832 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13833 $as_echo_n "(cached) " >&6
13835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #include <gnu-versions.h>
13841 #define REGEX_INTERFACE_VERSION 1
13842 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13843 # error "Version mismatch"
13849 if ac_fn_c_try_compile
"$LINENO"; then :
13850 gdb_cv_have_gnu_regex
=yes
13852 gdb_cv_have_gnu_regex
=no
13854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13857 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13858 if test $gdb_cv_have_gnu_regex = yes; then
13859 gdb_use_included_regex
=no
13863 # Check whether --with-included-regex was given.
13864 if test "${with_included_regex+set}" = set; then :
13865 withval
=$with_included_regex; gdb_with_regex
=$withval
13867 gdb_with_regex
=$gdb_use_included_regex
13870 if test "$gdb_with_regex" = yes; then
13872 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13876 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13877 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13878 #include <sys/proc.h>
13881 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
13883 cat >>confdefs.h
<<_ACEOF
13884 #define HAVE_STRUCT_THREAD_TD_PCB 1
13891 # See if <sys/lwp.h> defines `struct lwp`.
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13893 $as_echo_n "checking for struct lwp... " >&6; }
13894 if test "${gdb_cv_struct_lwp+set}" = set; then :
13895 $as_echo_n "(cached) " >&6
13897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 #include <sys/param.h>
13900 #include <sys/lwp.h>
13909 if ac_fn_c_try_compile
"$LINENO"; then :
13910 gdb_cv_struct_lwp
=yes
13912 gdb_cv_struct_lwp
=no
13914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13917 $as_echo "$gdb_cv_struct_lwp" >&6; }
13918 if test $gdb_cv_struct_lwp = yes; then
13920 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13924 # See if <machine/reg.h> degines `struct reg'.
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13926 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13927 if test "${gdb_cv_struct_reg+set}" = set; then :
13928 $as_echo_n "(cached) " >&6
13930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932 #include <sys/types.h>
13933 #include <machine/reg.h>
13942 if ac_fn_c_try_compile
"$LINENO"; then :
13943 gdb_cv_struct_reg
=yes
13945 gdb_cv_struct_reg
=no
13947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13950 $as_echo "$gdb_cv_struct_reg" >&6; }
13951 if test $gdb_cv_struct_reg = yes; then
13953 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13957 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13958 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13959 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13961 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
13963 cat >>confdefs.h
<<_ACEOF
13964 #define HAVE_STRUCT_REG_R_FS 1
13969 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13971 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
13973 cat >>confdefs.h
<<_ACEOF
13974 #define HAVE_STRUCT_REG_R_GS 1
13981 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13983 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13984 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 #include <sys/ptrace.h>
13998 if ac_fn_c_try_compile
"$LINENO"; then :
13999 gdb_cv_have_ptrace_getregs
=yes
14001 gdb_cv_have_ptrace_getregs
=no
14003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14007 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14008 if test $gdb_cv_have_ptrace_getregs = yes; then
14010 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14014 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14016 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14017 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
14018 $as_echo_n "(cached) " >&6
14020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14022 #include <sys/ptrace.h>
14031 if ac_fn_c_try_compile
"$LINENO"; then :
14032 gdb_cv_have_ptrace_getfpxregs
=yes
14034 gdb_cv_have_ptrace_getfpxregs
=no
14036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14040 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14041 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14043 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14047 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14049 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14050 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
14051 $as_echo_n "(cached) " >&6
14053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 #include <sys/types.h>
14056 #include <sys/ptrace.h>
14065 if ac_fn_c_try_compile
"$LINENO"; then :
14066 gdb_cv_have_pt_getdbregs
=yes
14068 gdb_cv_have_pt_getdbregs
=no
14070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14074 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14075 if test $gdb_cv_have_pt_getdbregs = yes; then
14077 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14081 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14083 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14084 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
14085 $as_echo_n "(cached) " >&6
14087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 #include <sys/types.h>
14090 #include <sys/ptrace.h>
14099 if ac_fn_c_try_compile
"$LINENO"; then :
14100 gdb_cv_have_pt_getxmmregs
=yes
14102 gdb_cv_have_pt_getxmmregs
=no
14104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14108 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14109 if test $gdb_cv_have_pt_getxmmregs = yes; then
14111 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14115 # Detect which type of /proc is in use, such as for Unixware or Solaris.
14117 if test "${target}" = "${host}"; then
14119 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
14121 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14124 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
14126 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14130 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
14132 $as_echo "#define _KMEMUSER 1" >>confdefs.h
14138 if test "$ac_cv_header_sys_procfs_h" = yes; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14140 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14141 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14142 $as_echo_n "(cached) " >&6
14144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14148 /* Needed for new procfs interface on sparc-solaris. */
14149 #define _STRUCTURED_PROC 1
14150 #include <sys/procfs.h>
14159 if ac_fn_c_try_compile
"$LINENO"; then :
14160 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
14162 bfd_cv_have_sys_procfs_type_pstatus_t
=no
14165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14168 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14170 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14174 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
14177 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
14178 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14185 /* Needed for new procfs interface on sparc-solaris. */
14186 #define _STRUCTURED_PROC 1
14187 #include <sys/procfs.h>
14196 if ac_fn_c_try_compile
"$LINENO"; then :
14197 bfd_cv_have_sys_procfs_type_prrun_t
=yes
14199 bfd_cv_have_sys_procfs_type_prrun_t
=no
14202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14205 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
14207 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
14211 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14214 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14215 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
14216 $as_echo_n "(cached) " >&6
14218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14222 /* Needed for new procfs interface on sparc-solaris. */
14223 #define _STRUCTURED_PROC 1
14224 #include <sys/procfs.h>
14233 if ac_fn_c_try_compile
"$LINENO"; then :
14234 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14236 bfd_cv_have_sys_procfs_type_gregset_t
=no
14239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14242 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14244 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14248 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14251 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14252 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14259 /* Needed for new procfs interface on sparc-solaris. */
14260 #define _STRUCTURED_PROC 1
14261 #include <sys/procfs.h>
14270 if ac_fn_c_try_compile
"$LINENO"; then :
14271 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14273 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14279 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14281 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14285 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14288 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14289 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
14290 $as_echo_n "(cached) " >&6
14292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14296 /* Needed for new procfs interface on sparc-solaris. */
14297 #define _STRUCTURED_PROC 1
14298 #include <sys/procfs.h>
14307 if ac_fn_c_try_compile
"$LINENO"; then :
14308 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14310 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14316 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14318 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14322 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14325 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14326 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
14327 $as_echo_n "(cached) " >&6
14329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14333 /* Needed for new procfs interface on sparc-solaris. */
14334 #define _STRUCTURED_PROC 1
14335 #include <sys/procfs.h>
14344 if ac_fn_c_try_compile
"$LINENO"; then :
14345 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14347 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14353 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14355 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14359 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14362 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14363 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
14364 $as_echo_n "(cached) " >&6
14366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14370 /* Needed for new procfs interface on sparc-solaris. */
14371 #define _STRUCTURED_PROC 1
14372 #include <sys/procfs.h>
14381 if ac_fn_c_try_compile
"$LINENO"; then :
14382 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14384 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14390 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14392 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14396 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
14399 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
14400 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14407 /* Needed for new procfs interface on sparc-solaris. */
14408 #define _STRUCTURED_PROC 1
14409 #include <sys/procfs.h>
14413 prfpregset32_t avar
14418 if ac_fn_c_try_compile
"$LINENO"; then :
14419 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
14421 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
14424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14427 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
14429 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
14433 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14436 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14437 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14444 /* Needed for new procfs interface on sparc-solaris. */
14445 #define _STRUCTURED_PROC 1
14446 #include <sys/procfs.h>
14455 if ac_fn_c_try_compile
"$LINENO"; then :
14456 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14458 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14464 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14466 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14470 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14473 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14474 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
14475 $as_echo_n "(cached) " >&6
14477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14481 /* Needed for new procfs interface on sparc-solaris. */
14482 #define _STRUCTURED_PROC 1
14483 #include <sys/procfs.h>
14492 if ac_fn_c_try_compile
"$LINENO"; then :
14493 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14495 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14501 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14503 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14507 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
14510 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
14511 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
14512 $as_echo_n "(cached) " >&6
14514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14518 /* Needed for new procfs interface on sparc-solaris. */
14519 #define _STRUCTURED_PROC 1
14520 #include <sys/procfs.h>
14529 if ac_fn_c_try_compile
"$LINENO"; then :
14530 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
14532 bfd_cv_have_sys_procfs_type_prsysent_t
=no
14535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14538 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
14540 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
14544 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
14547 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
14548 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
14549 $as_echo_n "(cached) " >&6
14551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14555 /* Needed for new procfs interface on sparc-solaris. */
14556 #define _STRUCTURED_PROC 1
14557 #include <sys/procfs.h>
14566 if ac_fn_c_try_compile
"$LINENO"; then :
14567 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
14569 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
14572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14575 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
14577 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
14581 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
14584 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
14585 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
14586 $as_echo_n "(cached) " >&6
14588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14592 /* Needed for new procfs interface on sparc-solaris. */
14593 #define _STRUCTURED_PROC 1
14594 #include <sys/procfs.h>
14598 pr_sigaction64_t avar
14603 if ac_fn_c_try_compile
"$LINENO"; then :
14604 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
14606 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
14609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14612 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
14614 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
14618 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
14621 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
14622 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
14623 $as_echo_n "(cached) " >&6
14625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14629 /* Needed for new procfs interface on sparc-solaris. */
14630 #define _STRUCTURED_PROC 1
14631 #include <sys/procfs.h>
14635 pr_siginfo64_t avar
14640 if ac_fn_c_try_compile
"$LINENO"; then :
14641 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
14643 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
14646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14649 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
14651 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
14655 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
14661 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14663 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14664 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14667 if test "$cross_compiling" = yes; then :
14668 gdb_cv_prfpregset_t_broken
=yes
14670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 #include <sys/procfs.h>
14675 if (sizeof (prfpregset_t) == sizeof (void *))
14680 if ac_fn_c_try_run
"$LINENO"; then :
14681 gdb_cv_prfpregset_t_broken
=no
14683 gdb_cv_prfpregset_t_broken
=yes
14685 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14686 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14692 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14693 if test $gdb_cv_prfpregset_t_broken = yes; then
14695 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
14702 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
14703 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
14704 $as_echo_n "(cached) " >&6
14706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14708 #include <unistd.h>
14709 #include <sys/types.h>
14710 #include <sys/procfs.h>
14717 dummy = ioctl(0, PIOCSET, &dummy);
14723 if ac_fn_c_try_compile
"$LINENO"; then :
14724 gdb_cv_have_procfs_piocset
=yes
14726 gdb_cv_have_procfs_piocset
=no
14728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
14732 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
14733 if test $gdb_cv_have_procfs_piocset = yes; then
14735 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
14740 if test ${host} = ${target} ; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
14743 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
14744 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
14745 $as_echo_n "(cached) " >&6
14747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14753 struct link_map lm; (void) lm.l_addr;
14758 if ac_fn_c_try_compile
"$LINENO"; then :
14759 gdb_cv_have_struct_link_map_with_l_members
=yes
14761 gdb_cv_have_struct_link_map_with_l_members
=no
14763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
14767 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
14768 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
14770 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
14776 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
14777 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782 #include <sys/types.h>
14787 struct link_map lm; (void) lm.lm_addr;
14792 if ac_fn_c_try_compile
"$LINENO"; then :
14793 gdb_cv_have_struct_link_map_with_lm_members
=yes
14795 gdb_cv_have_struct_link_map_with_lm_members
=no
14797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
14801 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
14802 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
14804 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
14810 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
14811 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
14812 $as_echo_n "(cached) " >&6
14814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816 #include <sys/types.h>
14817 #ifdef HAVE_NLIST_H
14824 struct so_map lm; (void) lm.som_addr;
14829 if ac_fn_c_try_compile
"$LINENO"; then :
14830 gdb_cv_have_struct_so_map_with_som_members
=yes
14832 gdb_cv_have_struct_so_map_with_som_members
=no
14834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
14838 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
14839 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
14841 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
14847 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
14848 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
14849 $as_echo_n "(cached) " >&6
14851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14854 #include <sys/link.h>
14858 struct link_map32 l;
14863 if ac_fn_c_try_compile
"$LINENO"; then :
14864 gdb_cv_have_struct_link_map32
=yes
14866 gdb_cv_have_struct_link_map32
=no
14868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
14872 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
14873 if test $gdb_cv_have_struct_link_map32 = yes; then
14875 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
14878 $as_echo "#define _SYSCALL32 1" >>confdefs.h
14883 # Check if the compiler supports the `long long' type.
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14886 $as_echo_n "checking for long long support in compiler... " >&6; }
14887 if test "${gdb_cv_c_long_long+set}" = set; then :
14888 $as_echo_n "(cached) " >&6
14890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 extern long long foo;
14896 switch (foo & 2) { case 0: return 1; }
14901 if ac_fn_c_try_compile
"$LINENO"; then :
14902 gdb_cv_c_long_long
=yes
14904 gdb_cv_c_long_long
=no
14906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14909 $as_echo "$gdb_cv_c_long_long" >&6; }
14910 if test $gdb_cv_c_long_long = yes; then
14912 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14916 # Check if the compiler and runtime support printing long longs.
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14919 $as_echo_n "checking for long long support in printf... " >&6; }
14920 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14921 $as_echo_n "(cached) " >&6
14923 if test "$cross_compiling" = yes; then :
14924 gdb_cv_printf_has_long_long
=no
14926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14928 $ac_includes_default
14934 l = (l << 16) + 0x0123;
14935 l = (l << 16) + 0x4567;
14936 l = (l << 16) + 0x89ab;
14937 l = (l << 16) + 0xcdef;
14938 sprintf (buf, "0x%016llx", l);
14939 return (strcmp ("0x0123456789abcdef", buf));
14944 if ac_fn_c_try_run
"$LINENO"; then :
14945 gdb_cv_printf_has_long_long
=yes
14947 gdb_cv_printf_has_long_long
=no
14949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14950 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14955 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14956 if test $gdb_cv_printf_has_long_long = yes; then
14958 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14962 # Check if the compiler and runtime support printing decfloats.
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14965 $as_echo_n "checking for decfloat support in printf... " >&6; }
14966 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14967 $as_echo_n "(cached) " >&6
14969 if test "$cross_compiling" = yes; then :
14970 gdb_cv_printf_has_decfloat
=no
14972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14974 $ac_includes_default
14979 _Decimal32 d32 = 1.2345df;
14980 _Decimal64 d64 = 1.2345dd;
14981 _Decimal128 d128 = 1.2345dl;
14982 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14983 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14988 if ac_fn_c_try_run
"$LINENO"; then :
14989 gdb_cv_printf_has_decfloat
=yes
14991 gdb_cv_printf_has_decfloat
=no
14993 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14994 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14999 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15000 if test $gdb_cv_printf_has_decfloat = yes; then
15002 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15006 # Check if the compiler supports the `long double' type. We can't use
15007 # AC_C_LONG_DOUBLE because that one does additional checks on the
15008 # constants defined in <float.h> that fail on some systems,
15009 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15012 $as_echo_n "checking for long double support in compiler... " >&6; }
15013 if test "${gdb_cv_c_long_double+set}" = set; then :
15014 $as_echo_n "(cached) " >&6
15016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15020 if ac_fn_c_try_compile
"$LINENO"; then :
15021 gdb_cv_c_long_double
=yes
15023 gdb_cv_c_long_double
=no
15025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15028 $as_echo "$gdb_cv_c_long_double" >&6; }
15029 if test $gdb_cv_c_long_double = yes; then
15031 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15035 # Check if the compiler and runtime support printing long doubles.
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15038 $as_echo_n "checking for long double support in printf... " >&6; }
15039 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
15040 $as_echo_n "(cached) " >&6
15042 if test "$cross_compiling" = yes; then :
15043 gdb_cv_printf_has_long_double
=no
15045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15047 $ac_includes_default
15052 long double f = 3.141592653;
15053 sprintf (buf, "%Lg", f);
15054 return (strncmp ("3.14159", buf, 7));
15059 if ac_fn_c_try_run
"$LINENO"; then :
15060 gdb_cv_printf_has_long_double
=yes
15062 gdb_cv_printf_has_long_double
=no
15064 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15065 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15070 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15071 if test $gdb_cv_printf_has_long_double = yes; then
15073 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15077 # Check if the compiler and runtime support scanning long doubles.
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15080 $as_echo_n "checking for long double support in scanf... " >&6; }
15081 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
15082 $as_echo_n "(cached) " >&6
15084 if test "$cross_compiling" = yes; then :
15085 gdb_cv_scanf_has_long_double
=no
15087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15093 char *buf = "3.141592653";
15095 sscanf (buf, "%Lg", &f);
15096 return !(f > 3.14159 && f < 3.14160);
15101 if ac_fn_c_try_run
"$LINENO"; then :
15102 gdb_cv_scanf_has_long_double
=yes
15104 gdb_cv_scanf_has_long_double
=no
15106 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15107 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15112 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15113 if test $gdb_cv_scanf_has_long_double = yes; then
15115 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15122 $as_echo_n "checking for -bbigtoc option... " >&6; }
15123 if test "${gdb_cv_bigtoc+set}" = set; then :
15124 $as_echo_n "(cached) " >&6
15127 SAVE_LDFLAGS
=$LDFLAGS
15130 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15131 *) gdb_cv_bigtoc
=-bbigtoc ;;
15134 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15146 if ac_fn_c_try_link
"$LINENO"; then :
15151 rm -f core conftest.err conftest.
$ac_objext \
15152 conftest
$ac_exeext conftest.
$ac_ext
15153 LDFLAGS
="${SAVE_LDFLAGS}"
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15157 $as_echo "$gdb_cv_bigtoc" >&6; }
15158 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15163 $as_echo_n "checking for the dynamic export flag... " >&6; }
15165 if test "${gdb_native}" = yes; then
15166 # The dynamically loaded libthread_db needs access to symbols in the gdb
15167 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15168 # may not be supported there.
15169 old_LDFLAGS
="$LDFLAGS"
15170 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15171 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15172 LDFLAGS
="$LDFLAGS $RDYNAMIC"
15173 if test "${have_libpython}" = no
; then
15174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15185 if ac_fn_c_try_link
"$LINENO"; then :
15188 rm -f core conftest.err conftest.
$ac_objext \
15189 conftest
$ac_exeext conftest.
$ac_ext
15191 # Workaround http://bugs.python.org/issue4434 where static
15192 # libpythonX.Y.a would get its symbols required for
15193 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15194 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15195 old_CFLAGS
="$CFLAGS"
15196 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15197 if test "$cross_compiling" = yes; then :
15200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202 #include "${have_libpython}/Python.h"
15208 err = PyRun_SimpleString ("import itertools\n");
15210 return err == 0 ? 0 : 1;
15215 if ac_fn_c_try_run
"$LINENO"; then :
15218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15219 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15222 CFLAGS
="$old_CFLAGS"
15224 LDFLAGS
="$old_LDFLAGS"
15226 if $dynamic_list; then
15227 found
="-Wl,--dynamic-list"
15228 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15231 RDYNAMIC
="-rdynamic"
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15235 $as_echo "$found" >&6; }
15238 if test ${build} = ${host} -a ${host} = ${target} ; then
15241 # See if thread_db library is around for Solaris thread debugging.
15242 # Note that we must explicitly test for version 1 of the library
15243 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
15246 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
15247 if test -f /usr
/lib
/libthread_db.so
.1 ; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15249 $as_echo "yes" >&6; }
15251 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
15253 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
15254 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15256 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15257 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15258 $as_echo_n "(cached) " >&6
15260 ac_check_lib_save_LIBS
=$LIBS
15262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply. */
15280 if ac_fn_c_try_link
"$LINENO"; then :
15281 ac_cv_lib_dl_dlopen
=yes
15283 ac_cv_lib_dl_dlopen
=no
15285 rm -f core conftest.err conftest.
$ac_objext \
15286 conftest
$ac_exeext conftest.
$ac_ext
15287 LIBS
=$ac_check_lib_save_LIBS
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15290 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15291 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
15292 cat >>confdefs.h
<<_ACEOF
15293 #define HAVE_LIBDL 1
15300 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
15301 # Sun randomly tweaked the prototypes in <proc_service.h>
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
15304 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
15305 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
15306 $as_echo_n "(cached) " >&6
15309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15312 #include <proc_service.h>
15313 ps_err_e ps_pdwrite
15314 (struct ps_prochandle*, psaddr_t, const void*, size_t);
15324 if ac_fn_c_try_compile
"$LINENO"; then :
15325 gdb_cv_proc_service_is_old
=no
15327 gdb_cv_proc_service_is_old
=yes
15329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
15334 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
15335 if test $gdb_cv_proc_service_is_old = yes; then
15337 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15347 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15348 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
15349 $as_echo_n "(cached) " >&6
15351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15352 /* end confdefs.h. */
15353 #include <sys/pthdebug.h>
15357 #ifndef PTHDB_VERSION_3
15364 if ac_fn_c_try_compile
"$LINENO"; then :
15365 gdb_cv_have_aix_thread_debug
=yes
15367 gdb_cv_have_aix_thread_debug
=no
15369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15373 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15374 if test $gdb_cv_have_aix_thread_debug = yes; then
15375 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15376 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15377 LIBS
="$LIBS -lpthdebug"
15379 # Older versions of AIX do not provide the declaration for
15380 # the getthrds function (it appears that it was introduced
15382 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15384 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
15390 cat >>confdefs.h
<<_ACEOF
15391 #define HAVE_DECL_GETTHRDS $ac_have_decl
15400 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15402 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15403 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
15404 $as_echo_n "(cached) " >&6
15406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 #include <thread_db.h>
15412 int i = TD_NOTALLOC;
15417 if ac_fn_c_try_compile
"$LINENO"; then :
15418 gdb_cv_thread_db_h_has_td_notalloc
=yes
15420 gdb_cv_thread_db_h_has_td_notalloc
=no
15423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15427 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15429 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15430 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
15431 $as_echo_n "(cached) " >&6
15433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435 #include <thread_db.h>
15439 int i = TD_VERSION;
15444 if ac_fn_c_try_compile
"$LINENO"; then :
15445 gdb_cv_thread_db_h_has_td_version
=yes
15447 gdb_cv_thread_db_h_has_td_version
=no
15450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15454 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15456 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15457 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
15458 $as_echo_n "(cached) " >&6
15460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15462 #include <thread_db.h>
15471 if ac_fn_c_try_compile
"$LINENO"; then :
15472 gdb_cv_thread_db_h_has_td_notls
=yes
15474 gdb_cv_thread_db_h_has_td_notls
=no
15477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15481 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15483 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15485 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15488 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15490 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15493 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15495 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15499 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
15501 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
15502 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
15503 $as_echo_n "(cached) " >&6
15505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15507 #include <sys/syscall.h>
15511 int i = __NR_tkill;
15516 if ac_fn_c_try_compile
"$LINENO"; then :
15517 gdb_cv_sys_syscall_h_has_tkill
=yes
15519 gdb_cv_sys_syscall_h_has_tkill
=no
15522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
15526 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
15528 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
15530 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
15534 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15536 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
15542 cat >>confdefs.h
<<_ACEOF
15543 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15547 if test "$cross_compiling" = yes; then :
15548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15549 /* end confdefs.h. */
15550 #include <sys/personality.h>
15555 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15556 # define ADDR_NO_RANDOMIZE 0x0040000
15558 /* Test the flag could be set and stays set. */
15559 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15560 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15566 if ac_fn_c_try_link
"$LINENO"; then :
15567 have_personality
=true
15569 have_personality
=false
15571 rm -f core conftest.err conftest.
$ac_objext \
15572 conftest
$ac_exeext conftest.
$ac_ext
15574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15576 #include <sys/personality.h>
15581 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15582 # define ADDR_NO_RANDOMIZE 0x0040000
15584 /* Test the flag could be set and stays set. */
15585 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15586 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15592 if ac_fn_c_try_run
"$LINENO"; then :
15593 have_personality
=true
15595 have_personality
=false
15597 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15598 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15601 if $have_personality
15604 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15609 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15610 # except that the argument to --with-sysroot is optional.
15611 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15612 if test "x$with_sysroot" = xyes
; then
15613 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15616 # Check whether --with-sysroot was given.
15617 if test "${with_sysroot+set}" = set; then :
15618 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15620 TARGET_SYSTEM_ROOT
=
15624 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15625 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15626 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15627 ac_define_dir
=`eval echo $ac_define_dir`
15629 cat >>confdefs.h
<<_ACEOF
15630 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15636 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15637 if test "x$prefix" = xNONE
; then
15638 test_prefix
=/usr
/local
15640 test_prefix
=$prefix
15643 test_prefix
=$exec_prefix
15646 case ${ac_define_dir} in
15647 "${test_prefix}"|
"${test_prefix}/"*|\
15648 '${exec_prefix}'|
'${exec_prefix}/'*)
15653 cat >>confdefs.h
<<_ACEOF
15654 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15661 # Check whether --with-system-gdbinit was given.
15662 if test "${with_system_gdbinit+set}" = set; then :
15663 withval
=$with_system_gdbinit;
15664 SYSTEM_GDBINIT
=$withval
15670 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15671 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15672 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15673 ac_define_dir
=`eval echo $ac_define_dir`
15675 cat >>confdefs.h
<<_ACEOF
15676 #define SYSTEM_GDBINIT "$ac_define_dir"
15682 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15683 if test "x$prefix" = xNONE
; then
15684 test_prefix
=/usr
/local
15686 test_prefix
=$prefix
15689 test_prefix
=$exec_prefix
15692 case ${ac_define_dir} in
15693 "${test_prefix}"|
"${test_prefix}/"*|\
15694 '${exec_prefix}'|
'${exec_prefix}/'*)
15699 cat >>confdefs.h
<<_ACEOF
15700 #define SYSTEM_GDBINIT_RELOCATABLE $value
15706 # Check whether --enable-werror was given.
15707 if test "${enable_werror+set}" = set; then :
15708 enableval
=$enable_werror; case "${enableval}" in
15709 yes | y
) ERROR_ON_WARNING
="yes" ;;
15710 no | n
) ERROR_ON_WARNING
="no" ;;
15711 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15716 # Enable -Werror by default when using gcc
15717 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15718 ERROR_ON_WARNING
=yes
15722 if test "${ERROR_ON_WARNING}" = yes ; then
15723 WERROR_CFLAGS
="-Werror"
15726 # The entries after -Wno-pointer-sign are disabled warnings which may
15727 # be enabled in the future, which can not currently be used to build
15729 # NOTE: If you change this list, remember to update
15730 # gdb/doc/gdbint.texinfo.
15731 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
15732 -Wformat-nonliteral -Wno-pointer-sign \
15733 -Wno-unused -Wunused-value -Wunused-function \
15734 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
15736 # Enable -Wno-format by default when using gcc on mingw since many
15737 # GCC versions complain about %I64.
15739 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
15742 # Check whether --enable-build-warnings was given.
15743 if test "${enable_build_warnings+set}" = set; then :
15744 enableval
=$enable_build_warnings; case "${enableval}" in
15746 no
) build_warnings
="-w";;
15747 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15748 build_warnings
="${build_warnings} ${t}";;
15749 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15750 build_warnings
="${t} ${build_warnings}";;
15751 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15753 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15754 echo "Setting compiler warning flags = $build_warnings" 6>&1
15757 # Check whether --enable-gdb-build-warnings was given.
15758 if test "${enable_gdb_build_warnings+set}" = set; then :
15759 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15761 no
) build_warnings
="-w";;
15762 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15763 build_warnings
="${build_warnings} ${t}";;
15764 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15765 build_warnings
="${t} ${build_warnings}";;
15766 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15768 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15769 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15773 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15776 $as_echo_n "checking compiler warning flags... " >&6; }
15777 # Separate out the -Werror flag as some files just cannot be
15778 # compiled with it enabled.
15779 for w
in ${build_warnings}; do
15781 -Werr*) WERROR_CFLAGS
=-Werror ;;
15782 *) # Check that GCC accepts it
15783 saved_CFLAGS
="$CFLAGS"
15784 CFLAGS
="$CFLAGS $w"
15785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15786 /* end confdefs.h. */
15796 if ac_fn_c_try_compile
"$LINENO"; then :
15797 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15800 CFLAGS
="$saved_CFLAGS"
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15804 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15809 # In the Cygwin environment, we need some additional flags.
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15811 $as_echo_n "checking
for cygwin...
" >&6; }
15812 if test "${gdb_cv_os_cygwin+set}" = set; then :
15813 $as_echo_n "(cached
) " >&6
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15818 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15822 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15823 $EGREP "lose
" >/dev/null 2>&1; then :
15824 gdb_cv_os_cygwin=yes
15826 gdb_cv_os_cygwin=no
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15832 $as_echo "$gdb_cv_os_cygwin" >&6; }
15835 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15837 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15838 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15839 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15843 # libreadline needs libuser32.a in a cygwin environment
15845 if test x$gdb_cv_os_cygwin = xyes; then
15846 WIN32LIBS="-luser32"
15847 case "${target}" in
15848 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15853 # The ser-tcp.c module requires sockets.
15857 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15859 WIN32LIBS
="$WIN32LIBS -lws2_32"
15864 # Add ELF support to GDB, but only if BFD includes ELF support.
15866 OLD_LDFLAGS
=$LDFLAGS
15868 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15869 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15870 # always want our bfd.
15871 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15872 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
15873 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15874 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15875 if test "$plugins" = "yes"; then
15878 LIBS
="-lbfd -liberty $intl $LIBS"
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15880 $as_echo_n "checking for ELF support in BFD... " >&6; }
15881 if test "${gdb_cv_var_elf+set}" = set; then :
15882 $as_echo_n "(cached) " >&6
15884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15886 #include <stdlib.h>
15888 #include "elf-bfd.h"
15893 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
15898 if ac_fn_c_try_link
"$LINENO"; then :
15903 rm -f core conftest.err conftest.
$ac_objext \
15904 conftest
$ac_exeext conftest.
$ac_ext
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15907 $as_echo "$gdb_cv_var_elf" >&6; }
15908 if test $gdb_cv_var_elf = yes; then
15909 CONFIG_OBS
="$CONFIG_OBS elfread.o"
15911 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15913 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15914 if test "$plugins" = "yes"; then
15915 OLD_LIBS
="-ldl $OLD_LIBS"
15919 LDFLAGS
=$OLD_LDFLAGS
15922 # Add any host-specific objects to GDB.
15923 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15925 LIBGUI
="../libgui/src/libgui.a"
15926 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15935 *-*-cygwin* |
*-*-mingw* )
15944 if test "${enable_gdbtk}" = "yes"; then
15946 # Gdbtk must have an absolute path to srcdir in order to run
15947 # properly when not installed.
15950 GDBTK_SRC_DIR
=`pwd`
15955 # Ok, lets find the tcl configuration
15956 # First, look for one uninstalled.
15957 # the alternative search directory is invoked by --with-tcl
15960 if test x
"${no_tcl}" = x
; then
15961 # we reset no_tcl in case something fails here
15964 # Check whether --with-tcl was given.
15965 if test "${with_tcl+set}" = set; then :
15966 withval
=$with_tcl; with_tclconfig
=${withval}
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15970 $as_echo_n "checking for Tcl configuration... " >&6; }
15971 if test "${ac_cv_c_tclconfig+set}" = set; then :
15972 $as_echo_n "(cached) " >&6
15976 # First check to see if --with-tcl was specified.
15978 *-*-cygwin*) platDir
="win" ;;
15979 *) platDir
="unix" ;;
15981 if test x
"${with_tclconfig}" != x
; then
15982 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15983 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15985 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15989 # then check for a private Tcl installation
15990 if test x
"${ac_cv_c_tclconfig}" = x
; then
15993 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15994 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15995 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15997 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15998 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15999 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16001 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16002 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16003 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16004 if test -f "$i/$platDir/tclConfig.sh" ; then
16005 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16011 # on Darwin, check in Framework installation locations
16012 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16013 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16014 `ls -d /Library/Frameworks 2>/dev/null` \
16015 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16016 `ls -d /System/Library/Frameworks 2>/dev/null` \
16018 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16019 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16025 # check in a few common install locations
16026 if test x
"${ac_cv_c_tclconfig}" = x
; then
16027 for i
in `ls -d ${libdir} 2>/dev/null` \
16028 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16029 `ls -d ${prefix}/lib 2>/dev/null` \
16030 `ls -d /usr/local/lib 2>/dev/null` \
16031 `ls -d /usr/contrib/lib 2>/dev/null` \
16032 `ls -d /usr/lib 2>/dev/null` \
16034 if test -f "$i/tclConfig.sh" ; then
16035 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16041 # check in a few other private locations
16042 if test x
"${ac_cv_c_tclconfig}" = x
; then
16045 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16046 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16047 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16048 if test -f "$i/$platDir/tclConfig.sh" ; then
16049 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16058 if test x
"${ac_cv_c_tclconfig}" = x
; then
16059 TCL_BIN_DIR
="# no Tcl configs found"
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16061 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16064 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16066 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16071 # If $no_tk is nonempty, then we can't do Tk, and there is no
16072 # point to doing Tcl.
16075 # Ok, lets find the tk configuration
16076 # First, look for one uninstalled.
16077 # the alternative search directory is invoked by --with-tk
16080 if test x
"${no_tk}" = x
; then
16081 # we reset no_tk in case something fails here
16084 # Check whether --with-tk was given.
16085 if test "${with_tk+set}" = set; then :
16086 withval
=$with_tk; with_tkconfig
=${withval}
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16090 $as_echo_n "checking for Tk configuration... " >&6; }
16091 if test "${ac_cv_c_tkconfig+set}" = set; then :
16092 $as_echo_n "(cached) " >&6
16096 # First check to see if --with-tkconfig was specified.
16097 if test x
"${with_tkconfig}" != x
; then
16098 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16099 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16101 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16105 # then check for a private Tk library
16107 *-*-cygwin*) platDir
="win" ;;
16108 *) platDir
="unix" ;;
16110 if test x
"${ac_cv_c_tkconfig}" = x
; then
16113 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16114 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16115 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16117 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16118 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16119 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16121 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16122 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16123 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16124 if test -f "$i/$platDir/tkConfig.sh" ; then
16125 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16131 # on Darwin, check in Framework installation locations
16132 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16133 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16134 `ls -d /Library/Frameworks 2>/dev/null` \
16135 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16136 `ls -d /System/Library/Frameworks 2>/dev/null` \
16138 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16139 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16145 # check in a few common install locations
16146 if test x
"${ac_cv_c_tkconfig}" = x
; then
16147 for i
in `ls -d ${libdir} 2>/dev/null` \
16148 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16149 `ls -d ${prefix}/lib 2>/dev/null` \
16150 `ls -d /usr/local/lib 2>/dev/null` \
16151 `ls -d /usr/contrib/lib 2>/dev/null` \
16152 `ls -d /usr/lib 2>/dev/null` \
16154 if test -f "$i/tkConfig.sh" ; then
16155 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16160 # check in a few other private locations
16161 if test x
"${ac_cv_c_tkconfig}" = x
; then
16164 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16165 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16166 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16167 if test -f "$i/$platDir/tkConfig.sh" ; then
16168 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16177 if test x
"${ac_cv_c_tkconfig}" = x
; then
16178 TK_BIN_DIR
="# no Tk configs found"
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16180 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16183 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16185 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16190 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16193 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16195 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16197 $as_echo "loading" >&6; }
16198 .
${TCL_BIN_DIR}/tclConfig.sh
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16201 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16204 # eval is required to do the TCL_DBGX substitution
16205 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16206 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16208 # If the TCL_BIN_DIR is the build directory (not the install directory),
16209 # then set the common variable name to the value of the build variables.
16210 # For example, the variable TCL_LIB_SPEC will be set to the value
16211 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16212 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16213 # installed and uninstalled version of Tcl.
16214 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16215 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16216 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16217 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16218 elif test "`uname -s`" = "Darwin"; then
16219 # If Tcl was built as a framework, attempt to use the libraries
16220 # from the framework at the given location so that linking works
16221 # against Tcl.framework installed in an arbitary location.
16222 case ${TCL_DEFS} in
16224 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16225 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16226 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16227 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16228 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16233 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16234 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16235 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16241 # eval is required to do the TCL_DBGX substitution
16242 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16243 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16244 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16245 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16261 # Check for in-tree tcl
16268 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16272 # Find Tcl private headers
16273 if test x
"${intree}" = xno
; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16276 $as_echo_n "checking for Tcl private headers... " >&6; }
16278 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16279 if test -f ${dir}/tclInt.h
; then
16283 if test x
"${private_dir}" = x
; then
16284 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
16286 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16288 $as_echo "${private_dir}" >&6; }
16291 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16292 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16295 # If building tcl in the same src tree, private headers
16296 # are not needed, but we need to be sure to use the right
16298 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16299 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16300 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16308 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16310 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16312 $as_echo "loading" >&6; }
16313 .
${TK_BIN_DIR}/tkConfig.sh
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16316 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16319 # eval is required to do the TK_DBGX substitution
16320 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16321 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16323 # If the TK_BIN_DIR is the build directory (not the install directory),
16324 # then set the common variable name to the value of the build variables.
16325 # For example, the variable TK_LIB_SPEC will be set to the value
16326 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16327 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16328 # installed and uninstalled version of Tcl.
16329 if test -f "${TK_BIN_DIR}/Makefile" ; then
16330 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16331 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16332 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16333 elif test "`uname -s`" = "Darwin"; then
16334 # If Tk was built as a framework, attempt to use the libraries
16335 # from the framework at the given location so that linking works
16336 # against Tk.framework installed in an arbitary location.
16339 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16340 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16341 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16342 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16343 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16348 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16349 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16350 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16356 # eval is required to do the TK_DBGX substitution
16357 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16358 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16359 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16360 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16375 # Check for in-tree Tk
16377 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16381 # Find Tk private headers
16382 if test x
"${intree}" = xno
; then
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16385 $as_echo_n "checking for Tk private headers... " >&6; }
16387 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16388 if test -f ${dir}/tkInt.h
; then
16392 if test x
"${private_dir}" = x
; then
16393 as_fn_error
"could not find Tk private headers" "$LINENO" 5
16395 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16397 $as_echo "${private_dir}" >&6; }
16400 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16401 TK_LIBRARY
=${TK_LIB_SPEC}
16404 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16405 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16406 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16413 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16415 # Include some libraries that Tcl and Tk want.
16416 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16417 # Yes, the ordering seems wrong here. But it isn't.
16418 # TK_LIBS is the list of libraries that need to be linked
16419 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16420 # were in LIBS then any link tests after this point would
16421 # try to include things like `$(LIBGUI)', which wouldn't work.
16422 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16424 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16425 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16426 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16427 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16428 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16429 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16430 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16432 if test x
$gdb_cv_os_cygwin = xyes
; then
16433 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16434 WIN32LDAPP
="-Wl,--subsystem,console"
16435 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16438 subdirs
="$subdirs gdbtk"
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16451 $as_echo_n "checking for X... " >&6; }
16454 # Check whether --with-x was given.
16455 if test "${with_x+set}" = set; then :
16459 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16460 if test "x$with_x" = xno
; then
16461 # The user explicitly disabled X.
16464 case $x_includes,$x_libraries in #(
16465 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
16466 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
16467 $as_echo_n "(cached) " >&6
16469 # One or both of the vars are not set, and there is no cached value.
16470 ac_x_includes
=no ac_x_libraries
=no
16471 rm -f -r conftest.dir
16472 if mkdir conftest.dir
; then
16474 cat >Imakefile
<<'_ACEOF'
16476 @echo incroot='${INCROOT}'
16478 @echo usrlibdir='${USRLIBDIR}'
16480 @echo libdir='${LIBDIR}'
16482 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16483 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16484 for ac_var
in incroot usrlibdir libdir
; do
16485 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16487 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16488 for ac_extension
in a so sl dylib la dll
; do
16489 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16490 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16491 ac_im_usrlibdir
=$ac_im_libdir; break
16494 # Screen out bogus values from the imake configuration. They are
16495 # bogus both because they are the default anyway, and because
16496 # using them would break gcc on systems where it needs fixed includes.
16497 case $ac_im_incroot in
16498 /usr
/include
) ac_x_includes
= ;;
16499 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16501 case $ac_im_usrlibdir in
16502 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16503 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16507 rm -f -r conftest.dir
16510 # Standard set of common directories for X headers.
16511 # Check X11 before X11Rn because it is often a symlink to the current release.
16525 /usr/local/X11/include
16526 /usr/local/X11R7/include
16527 /usr/local/X11R6/include
16528 /usr/local/X11R5/include
16529 /usr/local/X11R4/include
16531 /usr/local/include/X11
16532 /usr/local/include/X11R7
16533 /usr/local/include/X11R6
16534 /usr/local/include/X11R5
16535 /usr/local/include/X11R4
16539 /usr/XFree86/include/X11
16543 /usr/unsupported/include
16544 /usr/athena/include
16545 /usr/local/x11r5/include
16546 /usr/lpp/Xamples/include
16548 /usr/openwin/include
16549 /usr/openwin/share/include'
16551 if test "$ac_x_includes" = no
; then
16552 # Guess where to find include files, by looking for Xlib.h.
16553 # First, try using that file with no special directory specified.
16554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <X11/Xlib.h>
16558 if ac_fn_c_try_cpp
"$LINENO"; then :
16559 # We can compile using X headers with no special include directory.
16562 for ac_dir
in $ac_x_header_dirs; do
16563 if test -r "$ac_dir/X11/Xlib.h"; then
16564 ac_x_includes
=$ac_dir
16569 rm -f conftest.err conftest.
$ac_ext
16570 fi # $ac_x_includes = no
16572 if test "$ac_x_libraries" = no
; then
16573 # Check for the libraries.
16574 # See if we find them without any special options.
16575 # Don't add to $LIBS permanently.
16578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16580 #include <X11/Xlib.h>
16589 if ac_fn_c_try_link
"$LINENO"; then :
16591 # We can link X programs with no special library path.
16595 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16597 # Don't even attempt the hair of trying to link an X program!
16598 for ac_extension
in a so sl dylib la dll
; do
16599 if test -r "$ac_dir/libX11.$ac_extension"; then
16600 ac_x_libraries
=$ac_dir
16606 rm -f core conftest.err conftest.
$ac_objext \
16607 conftest
$ac_exeext conftest.
$ac_ext
16608 fi # $ac_x_libraries = no
16610 case $ac_x_includes,$ac_x_libraries in #(
16611 no
,* |
*,no |
*\'*)
16612 # Didn't find X, or a directory has "'" in its name.
16613 ac_cv_have_x
="have_x=no";; #(
16615 # Record where we found X for the cache.
16616 ac_cv_have_x
="have_x=yes\
16617 ac_x_includes='$ac_x_includes'\
16618 ac_x_libraries='$ac_x_libraries'"
16624 eval "$ac_cv_have_x"
16627 if test "$have_x" != yes; then
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16629 $as_echo "$have_x" >&6; }
16632 # If each of the values was on the command line, it overrides each guess.
16633 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16634 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16635 # Update the cache value to reflect the command line values.
16636 ac_cv_have_x
="have_x=yes\
16637 ac_x_includes='$x_includes'\
16638 ac_x_libraries='$x_libraries'"
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16640 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16644 # Unlike the sim directory, whether a simulator is linked is controlled by
16645 # presence of a gdb_sim definition in the target configure.tgt entry.
16646 # This code just checks for a few cases where we'd like to ignore those
16647 # definitions, even when they're present in the '.mt' file. These cases
16648 # are when --disable-sim is specified, or if the simulator directory is
16649 # not part of the source tree.
16651 # Check whether --enable-sim was given.
16652 if test "${enable_sim+set}" = set; then :
16653 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
16654 echo "enableval = ${enableval}";
16655 case "${enableval}" in
16656 yes) ignore_sim
=false
;;
16657 no
) ignore_sim
=true
;;
16658 *) ignore_sim
=false
;;
16665 if test ! -d "${srcdir}/../sim"; then
16671 if test "${ignore_sim}" = "false"; then
16672 if test x
"${gdb_sim}" != x
; then
16674 SIM_OBS
="remote-sim.o"
16676 $as_echo "#define WITH_SIM 1" >>confdefs.h
16694 # List of host floatformats.
16696 cat >>confdefs.h
<<_ACEOF
16697 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16701 cat >>confdefs.h
<<_ACEOF
16702 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16706 cat >>confdefs.h
<<_ACEOF
16707 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16711 # target_subdir is used by the testsuite to find the target libraries.
16713 if test "${host}" != "${target}"; then
16714 target_subdir
="${target_alias}/"
16719 if test "${gdb_native}" = "yes"; then
16720 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
16721 if test ! -f ${host_makefile_frag}; then
16722 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
16724 frags
="$frags $host_makefile_frag"
16726 host_makefile_frag
=/dev
/null
16732 if test "${gdb_native}" = "yes"; then
16733 # We pick this up from the host configuration file (.mh) because we
16734 # do not have a native configuration Makefile fragment.
16735 nativefile
=`sed -n '
16736 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
16737 ' ${host_makefile_frag}`
16741 if test x
"${gdb_osabi}" != x
; then
16743 cat >>confdefs.h
<<_ACEOF
16744 #define GDB_OSABI_DEFAULT $gdb_osabi
16749 # Enable multi-ice-gdb-server.
16750 # Check whether --enable-multi-ice was given.
16751 if test "${enable_multi_ice+set}" = set; then :
16752 enableval
=$enable_multi_ice; case $enableval in
16755 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16759 if test "x$enable_multi_ice" = xyes
; then
16760 subdirs
="$subdirs multi-ice"
16764 # Check whether --enable-gdbserver was given.
16765 if test "${enable_gdbserver+set}" = set; then :
16766 enableval
=$enable_gdbserver; case "${enableval}" in
16768 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16771 enable_gdbserver
=auto
16775 # We only build gdbserver automatically in a native configuration, and
16776 # only if the user did not explicitly disable its build.
16777 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16779 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16780 if test "x$build_gdbserver" = xyes
; then
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16782 $as_echo "yes" >&6; }
16783 subdirs
="$subdirs gdbserver"
16785 gdbserver_build_enabled
=yes
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16792 # If the user explicitly request the gdbserver to be built, verify that
16793 # we were in fact able to enable it.
16794 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16795 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16798 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16799 # to an empty version.
16805 if test "${nativefile}" != ""; then
16806 case "${nativefile}" in
16807 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
16808 * ) GDB_NM_FILE
="${nativefile}"
16810 files
="${files} ${GDB_NM_FILE}"
16811 links
="${links} nm.h"
16813 cat >>confdefs.h
<<_ACEOF
16814 #define GDB_NM_FILE "${GDB_NM_FILE}"
16820 ac_sources
="$files"
16822 while test -n "$ac_sources"; do
16823 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
16824 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
16825 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
16827 ac_config_links
="$ac_config_links $ac_config_links_1"
16833 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16836 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile gnulib/Makefile data-directory/Makefile"
16838 ac_config_commands
="$ac_config_commands default"
16840 cat >confcache
<<\_ACEOF
16841 # This file is a shell script that caches the results of configure
16842 # tests run on this system so they can be shared between configure
16843 # scripts and configure runs, see configure's option --config-cache.
16844 # It is not useful on other systems. If it contains results you don't
16845 # want to keep, you may remove or edit it.
16847 # config.status only pays attention to the cache file if you give it
16848 # the --recheck option to rerun configure.
16850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16852 # following values.
16856 # The following way of writing the cache mishandles newlines in values,
16857 # but we know of no workaround that is simple, portable, and efficient.
16858 # So, we kill variables containing newlines.
16859 # Ultrix sh set writes to stderr and can't be redirected directly,
16860 # and sets the high bit in the cache file unless we assign to the vars.
16862 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16863 eval ac_val
=\$
$ac_var
16867 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16868 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16871 _ | IFS | as_nl
) ;; #(
16872 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16873 *) { eval $ac_var=; unset $ac_var;} ;;
16879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16880 *${as_nl}ac_space
=\
*)
16881 # `set' does not quote correctly, so add quotes: double-quote
16882 # substitution turns \\\\ into \\, and sed turns \\ into \.
16885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16888 # `set' quotes correctly as required by POSIX, so do not add quotes.
16889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16902 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16903 if test -w "$cache_file"; then
16904 test "x$cache_file" != "x/dev/null" &&
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16906 $as_echo "$as_me: updating cache $cache_file" >&6;}
16907 cat confcache
>$cache_file
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16910 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16915 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16916 # Let make expand exec_prefix.
16917 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16919 DEFS
=-DHAVE_CONFIG_H
16923 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16924 # 1. Remove the extension, and $U if already installed.
16925 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16926 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16928 # will be set to the directory where LIBOBJS objects are built.
16929 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16930 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16932 LIBOBJS
=$ac_libobjs
16934 LTLIBOBJS
=$ac_ltlibobjs
16937 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16938 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16941 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16942 as_fn_error
"conditional \"GMAKE\" was never defined.
16943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16945 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16946 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
16947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16949 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
16950 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
16951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16953 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
16954 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
16955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16960 if test -n "$gl_LIBOBJS"; then
16961 # Remove the extension.
16962 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16963 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16964 gl_libobjs
="$gl_libobjs $i.$ac_objext"
16965 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
16968 gl_LIBOBJS
=$gl_libobjs
16970 gl_LTLIBOBJS
=$gl_ltlibobjs
16976 if test -n "$gltests_LIBOBJS"; then
16977 # Remove the extension.
16978 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16979 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16980 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
16981 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
16984 gltests_LIBOBJS
=$gltests_libobjs
16986 gltests_LTLIBOBJS
=$gltests_ltlibobjs
16989 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16990 as_fn_error
"conditional \"AMDEP\" was never defined.
16991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16993 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16994 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16997 if test -n "$EXEEXT"; then
16999 am__EXEEXT_FALSE
='#'
17001 am__EXEEXT_TRUE
='#'
17007 : ${CONFIG_STATUS=./config.status}
17009 ac_clean_files_save
=$ac_clean_files
17010 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17012 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17014 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17016 # Generated by $as_me.
17017 # Run this file to recreate the current configuration.
17018 # Compiler output produced by configure, useful for debugging
17019 # configure, is in config.log if it exists.
17022 ac_cs_recheck=false
17025 SHELL=\${CONFIG_SHELL-$SHELL}
17028 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17029 ## -------------------- ##
17030 ## M4sh Initialization. ##
17031 ## -------------------- ##
17033 # Be more Bourne compatible
17034 DUALCASE
=1; export DUALCASE
# for MKS sh
17035 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17039 # is contrary to our usage. Disable this feature.
17040 alias -g '${1+"$@"}'='"$@"'
17041 setopt NO_GLOB_SUBST
17043 case `(set -o) 2>/dev/null` in #(
17055 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17056 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17058 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17059 # Prefer a ksh shell builtin over an external printf program on Solaris,
17060 # but without wasting forks for bash or zsh.
17061 if test -z "$BASH_VERSION$ZSH_VERSION" \
17062 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17063 as_echo='print
-r --'
17064 as_echo_n='print
-rn --'
17065 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17066 as_echo='printf %s
\n'
17067 as_echo_n='printf %s
'
17069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17070 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17071 as_echo_n='/usr
/ucb
/echo -n'
17073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17074 as_echo_n_body='eval
17078 expr "X$arg" : "X\\(.*\\)$as_nl";
17079 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17081 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17083 export as_echo_n_body
17084 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17086 export as_echo_body
17087 as_echo='sh
-c $as_echo_body as_echo
'
17090 # The user is always right.
17091 if test "${PATH_SEPARATOR+set}" != set; then
17093 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17094 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17101 # We need space, tab and new line, in precisely that order. Quoting is
17102 # there to prevent editors from complaining about space-tab.
17103 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17104 # splitting by setting IFS to empty value.)
17107 # Find who we are. Look in the path if we contain no directory separator.
17109 *[\\/]* ) as_myself=$0 ;;
17110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17111 for as_dir in $PATH
17114 test -z "$as_dir" && as_dir=.
17115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17121 # We did not find ourselves, most probably we were run as `sh COMMAND'
17122 # in which case we are not to be found in the path.
17123 if test "x$as_myself" = x
; then
17126 if test ! -f "$as_myself"; then
17127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17131 # Unset variables that we do not need and which cause bugs (e.g. in
17132 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17133 # suppresses any "Segmentation fault" message there. '((' could
17134 # trigger a bug in pdksh 5.2.14.
17135 for as_var
in BASH_ENV ENV MAIL MAILPATH
17136 do eval test x\
${$as_var+set} = xset \
17137 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17150 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17153 # as_fn_error ERROR [LINENO LOG_FD]
17154 # ---------------------------------
17155 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17156 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17157 # script with status $?, using 1 if that was 0.
17160 as_status
=$?
; test $as_status -eq 0 && as_status
=1
17162 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17163 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17165 $as_echo "$as_me: error: $1" >&2
17166 as_fn_exit
$as_status
17170 # as_fn_set_status STATUS
17171 # -----------------------
17172 # Set $? to STATUS, without forking.
17173 as_fn_set_status
()
17176 } # as_fn_set_status
17178 # as_fn_exit STATUS
17179 # -----------------
17180 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17184 as_fn_set_status
$1
17190 # Portably unset VAR.
17193 { eval $1=; unset $1;}
17195 as_unset
=as_fn_unset
17196 # as_fn_append VAR VALUE
17197 # ----------------------
17198 # Append the text in VALUE to the end of the definition contained in VAR. Take
17199 # advantage of any shell optimizations that allow amortized linear growth over
17200 # repeated appends, instead of the typical quadratic growth present in naive
17202 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17203 eval 'as_fn_append ()
17214 # as_fn_arith ARG...
17215 # ------------------
17216 # Perform arithmetic evaluation on the ARGs, and store the result in the
17217 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17218 # must be portable across $(()) and expr.
17219 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17220 eval 'as_fn_arith ()
17227 as_val
=`expr "$@" || test $? -eq 1`
17232 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17233 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17239 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17240 as_basename
=basename
17245 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17251 as_me
=`$as_basename -- "$0" ||
17252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17253 X"$0" : 'X\(//\)$' \| \
17254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17256 sed '/^.*\/\([^/][^/]*\)\/*$/{
17270 # Avoid depending upon Character Ranges.
17271 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17272 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17273 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17274 as_cr_digits
='0123456789'
17275 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17277 ECHO_C
= ECHO_N
= ECHO_T
=
17278 case `echo -n x` in #(((((
17280 case `echo 'xy\c'` in
17281 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17283 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17290 rm -f conf$$ conf$$.exe conf$$.
file
17291 if test -d conf$$.dir
; then
17292 rm -f conf$$.dir
/conf$$.
file
17295 mkdir conf$$.dir
2>/dev
/null
17297 if (echo >conf$$.
file) 2>/dev
/null
; then
17298 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17300 # ... but there are two gotchas:
17301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17303 # In both cases, we have to default to `cp -p'.
17304 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17306 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17314 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17315 rmdir conf$$.dir
2>/dev
/null
17320 # Create "$as_dir" as a directory, including parents if necessary.
17325 -*) as_dir
=.
/$as_dir;;
17327 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17331 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17332 *) as_qdir
=$as_dir;;
17334 as_dirs
="'$as_qdir' $as_dirs"
17335 as_dir
=`$as_dirname -- "$as_dir" ||
17336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17337 X"$as_dir" : 'X\(//\)[^/]' \| \
17338 X"$as_dir" : 'X\(//\)$' \| \
17339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17340 $as_echo X"$as_dir" |
17341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17345 /^X\(\/\/\)[^/].*/{
17358 test -d "$as_dir" && break
17360 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17361 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17365 if mkdir
-p .
2>/dev
/null
; then
17366 as_mkdir_p
='mkdir -p "$as_dir"'
17368 test -d .
/-p && rmdir .
/-p
17372 if test -x / >/dev
/null
2>&1; then
17373 as_test_x
='test -x'
17375 if ls -dL / >/dev
/null
2>&1; then
17382 if test -d "$1"; then
17388 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17389 ???[sx]*):;;*)false;;esac;fi
17393 as_executable_p
=$as_test_x
17395 # Sed expression to map a string onto a valid CPP name.
17396 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17398 # Sed expression to map a string onto a valid variable name.
17399 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17403 ## ----------------------------------- ##
17404 ## Main body of $CONFIG_STATUS script. ##
17405 ## ----------------------------------- ##
17407 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17410 # Save the log message, to keep $0 and so on meaningful, and to
17411 # report actual input values of CONFIG_FILES etc. instead of their
17412 # values after options handling.
17414 This file was extended by $as_me, which was
17415 generated by GNU Autoconf 2.64. Invocation command line was
17417 CONFIG_FILES = $CONFIG_FILES
17418 CONFIG_HEADERS = $CONFIG_HEADERS
17419 CONFIG_LINKS = $CONFIG_LINKS
17420 CONFIG_COMMANDS = $CONFIG_COMMANDS
17423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17428 case $ac_config_files in *"
17429 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17432 case $ac_config_headers in *"
17433 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17438 # Files that config.status was made for.
17439 config_files="$ac_config_files"
17440 config_headers="$ac_config_headers"
17441 config_links="$ac_config_links"
17442 config_commands="$ac_config_commands"
17446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17448 \`$as_me' instantiates files and other configuration actions
17449 from templates according to the current configuration. Unless the files
17450 and actions are specified as TAGs, all are instantiated by default.
17452 Usage: $0 [OPTION]... [TAG]...
17454 -h, --help print this help, then exit
17455 -V, --version print version number and configuration settings, then exit
17456 -q, --quiet, --silent
17457 do not print progress messages
17458 -d, --debug don't remove temporary files
17459 --recheck update $as_me by reconfiguring in the same conditions
17460 --file=FILE[:TEMPLATE]
17461 instantiate the configuration file FILE
17462 --header=FILE[:TEMPLATE]
17463 instantiate the configuration header FILE
17465 Configuration files:
17468 Configuration headers:
17471 Configuration links:
17474 Configuration commands:
17477 Report bugs to the package provider."
17480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17483 configured by $0, generated by GNU Autoconf 2.64,
17484 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17486 Copyright (C) 2009 Free Software Foundation, Inc.
17487 This config.status script is free software; the Free Software Foundation
17488 gives unlimited permission to copy, distribute and modify it."
17495 test -n "\$AWK" || AWK=awk
17498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17499 # The default lists apply if the user does not specify any file.
17505 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17506 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17517 # Handling of the options.
17518 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17520 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17521 $as_echo "$ac_cs_version"; exit ;;
17522 --debug |
--debu |
--deb |
--de |
--d |
-d )
17524 --file |
--fil |
--fi |
--f )
17527 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17529 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17530 ac_need_defaults
=false
;;
17531 --header |
--heade |
--head |
--hea )
17534 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17536 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17537 ac_need_defaults
=false
;;
17539 # Conflict between --help and --header
17540 as_fn_error
"ambiguous option: \`$1'
17541 Try \`$0 --help' for more information.";;
17542 --help |
--hel |
-h )
17543 $as_echo "$ac_cs_usage"; exit ;;
17544 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17545 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17548 # This is an error.
17549 -*) as_fn_error
"unrecognized option: \`$1'
17550 Try \`$0 --help' for more information." ;;
17552 *) as_fn_append ac_config_targets
" $1"
17553 ac_need_defaults
=false
;;
17559 ac_configure_extra_args
=
17561 if $ac_cs_silent; then
17563 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17568 if \$ac_cs_recheck; then
17569 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17571 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17572 CONFIG_SHELL='$SHELL'
17573 export CONFIG_SHELL
17578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17583 ## Running $as_me. ##
17589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17593 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17594 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17600 # Handling of arguments.
17601 for ac_config_target
in $ac_config_targets
17603 case $ac_config_target in
17604 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
17605 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
17606 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17607 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17608 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
17609 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17610 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
17611 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17612 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
17613 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
17614 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17616 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17621 # If the user did not use the arguments to specify the items to instantiate,
17622 # then the envvar interface is used. Set only those that are not.
17623 # We use the long form for the default assignment because of an extremely
17624 # bizarre bug on SunOS 4.1.3.
17625 if $ac_need_defaults; then
17626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17628 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17632 # Have a temporary directory for convenience. Make it in the build tree
17633 # simply because there is no reason against having it here, and in addition,
17634 # creating and moving files from /tmp can sometimes cause problems.
17635 # Hook for its removal unless debugging.
17636 # Note that there is a small window in which the directory will not be cleaned:
17637 # after its creation but before its name has been assigned to `$tmp'.
17641 trap 'exit_status=$?
17642 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17644 trap 'as_fn_exit 1' 1 2 13 15
17646 # Create a (secure) tmp directory for tmp files.
17649 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17650 test -n "$tmp" && test -d "$tmp"
17653 tmp
=.
/conf$$
-$RANDOM
17654 (umask 077 && mkdir
"$tmp")
17655 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17657 # Set up the scripts for CONFIG_FILES section.
17658 # No need to generate them if there are no CONFIG_FILES.
17659 # This happens for instance with `./config.status config.h'.
17660 if test -n "$CONFIG_FILES"; then
17662 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
17663 ac_cs_awk_getline
=:
17664 ac_cs_awk_pipe_init
=
17665 ac_cs_awk_read_file
='
17666 while ((getline aline < (F[key])) > 0)
17669 ac_cs_awk_pipe_fini
=
17671 ac_cs_awk_getline
=false
17672 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
17673 ac_cs_awk_read_file
='
17675 print "cat " F[key] " &&"
17676 '$ac_cs_awk_pipe_init
17677 # The final `:' finishes the AND list.
17678 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
17680 ac_cr
=`echo X | tr X '\015'`
17681 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17682 # But we know of no other shell where ac_cr would be empty at this
17683 # point, so we can use a bashism as a fallback.
17684 if test "x$ac_cr" = x
; then
17685 eval ac_cr
=\$
\'\\r
\'
17687 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17688 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17691 ac_cs_awk_cr
=$ac_cr
17694 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17697 # Create commands to substitute file output variables.
17699 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17700 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17701 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
17704 } >conf$
$files.sh
&&
17705 . .
/conf$
$files.sh ||
17706 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
17707 rm -f conf$
$files.sh
17710 echo "cat >conf$$subs.awk <<_ACEOF" &&
17711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17713 } >conf$$subs.sh ||
17714 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17717 for ac_last_try in false false false false false :; do
17718 . ./conf$$subs.sh ||
17719 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17721 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17722 if test $ac_delim_n = $ac_delim_num; then
17724 elif $ac_last_try; then
17725 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17727 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17730 rm -f conf$$subs.sh
17732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17733 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17737 s/^/S["/; s
/!.
*/"]=/
17747 s/\(.\{148\}\).*/\1/
17749 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17754 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17761 s/\(.\{148\}\).*/\1/
17763 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17767 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17772 ' <conf$$subs.awk | sed '
17777 ' >>$CONFIG_STATUS || ac_write_fail=1
17778 rm -f conf$$subs.awk
17779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17781 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17782 for (key in S) S_is_set[key] = 1
17784 \$ac_cs_awk_pipe_init
17788 nfields = split(line, field, "@
")
17790 len = length(field[1])
17791 for (i = 2; i < nfields; i++) {
17793 keylen = length(key)
17794 if (S_is_set[key]) {
17796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17797 len += length(value) + length(field[++i])
17802 if (nfields == 3 && !substed) {
17804 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17805 \$ac_cs_awk_read_file
17811 \$ac_cs_awk_pipe_fini
17814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17815 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17816 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17819 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17820 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17823 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17824 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17825 # trailing colons and then remove the whole line if VPATH becomes empty
17826 # (actually we leave an empty line to preserve line numbers).
17827 if test "x
$srcdir" = x.; then
17828 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17829 s/:*\$(srcdir):*/:/
17830 s/:*\${srcdir}:*/:/
17832 s/^\([^=]*=[ ]*\):*/\1/
17838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17839 fi # test -n "$CONFIG_FILES"
17841 # Set up the scripts for CONFIG_HEADERS section.
17842 # No need to generate them if there are no CONFIG_HEADERS.
17843 # This happens for instance with `./config.status Makefile'.
17844 if test -n "$CONFIG_HEADERS"; then
17845 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17849 # Transform confdefs.h into an awk script `defines.awk', embedded as
17850 # here-document in config.status, that substitutes the proper values into
17851 # config.h.in to produce config.h.
17853 # Create a delimiter string that does not exist in confdefs.h, to ease
17854 # handling of long lines.
17856 for ac_last_try in false false :; do
17857 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17858 if test -z "$ac_t"; then
17860 elif $ac_last_try; then
17861 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17863 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17867 # For the awk script, D is an array of macro values keyed by name,
17868 # likewise P contains macro parameters if any. Preserve backslash
17869 # newline sequences.
17871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17873 s/.\{148\}/&'"$ac_delim"'/g
17876 s/^[ ]*#[ ]*define[ ][ ]*/ /
17883 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17885 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17890 D["\
1"]=" \
3\\\\\\n
"\\/p
17892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17897 s/.\{148\}/&'"$ac_delim"'/g
17902 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17905 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17907 ' <confdefs.h | sed '
17908 s/'"$ac_delim"'/"\\\
17909 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17912 for (key in D) D_is_set[key] = 1
17915 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17917 split(line, arg, " ")
17918 if (arg[1] == "#") {
17922 defundef
= substr
(arg
[1], 2)
17925 split(mac1
, mac2
, "(") #)
17927 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17928 if (D_is_set
[macro
]) {
17929 # Preserve the white space surrounding the "#".
17930 print prefix
"define", macro P
[macro
] D
[macro
]
17933 # Replace #undef with comments. This is necessary, for example,
17934 # in the case of _POSIX_SOURCE, which is predefined and required
17935 # on some systems where configure will not decide to define it.
17936 if (defundef
== "undef") {
17937 print
"/*", prefix defundef
, macro
, "*/"
17945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17946 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17947 fi # test -n "$CONFIG_HEADERS"
17950 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17955 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17957 case $ac_mode$ac_tag in
17959 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17960 :[FH
]-) ac_tag
=-:-;;
17961 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17978 -) ac_f
="$tmp/stdin";;
17979 *) # Look for the file first in the build tree, then in the source tree
17980 # (if the path is not absolute). The absolute path cannot be DOS-style,
17981 # because $ac_f cannot contain `:'.
17985 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17987 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17989 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17990 as_fn_append ac_file_inputs
" '$ac_f'"
17993 # Let's still pretend it is `configure' which instantiates (i.e., don't
17994 # use $as_me), people would be surprised to read:
17995 # /* config.h. Generated by config.status. */
17996 configure_input
='Generated from '`
17997 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17999 if test x
"$ac_file" != x-
; then
18000 configure_input
="$ac_file. $configure_input"
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18002 $as_echo "$as_me: creating $ac_file" >&6;}
18004 # Neutralize special characters interpreted by sed in replacement strings.
18005 case $configure_input in #(
18006 *\
&* |
*\|
* |
*\\* )
18007 ac_sed_conf_input
=`$as_echo "$configure_input" |
18008 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18009 *) ac_sed_conf_input
=$configure_input;;
18013 *:-:* |
*:-) cat >"$tmp/stdin" \
18014 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18019 ac_dir
=`$as_dirname -- "$ac_file" ||
18020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18021 X"$ac_file" : 'X\(//\)[^/]' \| \
18022 X"$ac_file" : 'X\(//\)$' \| \
18023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18024 $as_echo X"$ac_file" |
18025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18029 /^X\(\/\/\)[^/].*/{
18042 as_dir
="$ac_dir"; as_fn_mkdir_p
18046 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18048 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18049 # A ".." for each directory in $ac_dir_suffix.
18050 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18051 case $ac_top_builddir_sub in
18052 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18053 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18056 ac_abs_top_builddir
=$ac_pwd
18057 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18058 # for backward compatibility:
18059 ac_top_builddir
=$ac_top_build_prefix
18062 .
) # We are building in place.
18064 ac_top_srcdir
=$ac_top_builddir_sub
18065 ac_abs_top_srcdir
=$ac_pwd ;;
18066 [\\/]* | ?
:[\\/]* ) # Absolute name.
18067 ac_srcdir
=$srcdir$ac_dir_suffix;
18068 ac_top_srcdir
=$srcdir
18069 ac_abs_top_srcdir
=$srcdir ;;
18070 *) # Relative name.
18071 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18072 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18073 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18075 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18085 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18086 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18088 ac_MKDIR_P
=$MKDIR_P
18090 [\\/$
]* | ?
:[\\/]* ) ;;
18091 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18096 # If the template does not know about datarootdir, expand it.
18097 # FIXME: This hack should be removed a few years after 2.60.
18098 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18110 *datarootdir
*) ac_datarootdir_seen
=yes;;
18111 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18116 ac_datarootdir_hack='
18117 s&@datadir@&$datadir&g
18118 s&@docdir@&$docdir&g
18119 s&@infodir@&$infodir&g
18120 s&@localedir@&$localedir&g
18121 s&@mandir@&$mandir&g
18122 s&\\\${datarootdir}&$datarootdir&g' ;;
18126 # Neutralize VPATH when `$srcdir' = `.'.
18127 # Shell code in configure.ac might set extrasub.
18128 # FIXME: do we really want to maintain this feature?
18129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18130 ac_sed_extra="$ac_vpsub
18133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18135 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18136 s|@configure_input@|
$ac_sed_conf_input|
;t t
18137 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18138 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18139 s
&@srcdir@
&$ac_srcdir&;t t
18140 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18141 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18142 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18143 s
&@builddir@
&$ac_builddir&;t t
18144 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18145 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18146 s
&@INSTALL@
&$ac_INSTALL&;t t
18147 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18148 $ac_datarootdir_hack
18150 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18151 if $ac_cs_awk_getline; then
18152 $AWK -f "$tmp/subs.
awk"
18154 $AWK -f "$tmp/subs.
awk" | $SHELL
18156 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18158 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18159 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18160 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18162 which seems to be undefined. Please make sure it is defined." >&5
18163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18164 which seems to be undefined. Please make sure it is defined." >&2;}
18168 -) cat "$tmp/out" && rm -f "$tmp/out";;
18169 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18171 || as_fn_error "could not create $ac_file" "$LINENO" 5
18177 if test x"$ac_file" != x-; then
18179 $as_echo "/* $configure_input */" \
18180 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18181 } >"$tmp/config.h" \
18182 || as_fn_error "could not create $ac_file" "$LINENO" 5
18183 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18188 mv "$tmp/config.h" "$ac_file" \
18189 || as_fn_error "could not create $ac_file" "$LINENO" 5
18192 $as_echo "/* $configure_input */" \
18193 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18194 || as_fn_error "could not create -" "$LINENO" 5
18196 # Compute "$ac_file"'s index
in $config_headers.
18199 for _am_header
in $config_headers :; do
18200 case $_am_header in
18201 $_am_arg |
$_am_arg:* )
18204 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18209 X"$_am_arg" : 'X\(//\)[^/]' \| \
18210 X"$_am_arg" : 'X\(//\)$' \| \
18211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18212 $as_echo X"$_am_arg" |
18213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18217 /^X\(\/\/\)[^/].*/{
18229 s/.*/./; q'`/stamp-h
$_am_stamp_count
18236 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18239 # Prefer the file from the source tree if names are identical.
18240 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
18241 ac_source
=$srcdir/$ac_source
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18245 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18247 if test ! -r "$ac_source"; then
18248 as_fn_error
"$ac_source: file not found" "$LINENO" 5
18252 # Try a relative symlink, then a hard link, then a copy.
18254 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
18255 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
18257 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
18258 ln "$ac_source" "$ac_file" 2>/dev
/null ||
18259 cp -p "$ac_source" "$ac_file" ||
18260 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18263 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18264 $as_echo "$as_me: executing $ac_file commands" >&6;}
18269 case $ac_file$ac_mode in
18270 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
18271 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18272 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18273 # are listed without --file. Let's play safe and only enable the eval
18274 # if we detect the quoting.
18275 case $CONFIG_FILES in
18276 *\'*) eval set x
"$CONFIG_FILES" ;;
18277 *) set x
$CONFIG_FILES ;;
18282 # Strip MF so we end up with the name of the file.
18283 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18284 # Check whether this is an Automake generated Makefile or not.
18285 # We used to match only the files named `Makefile.in', but
18286 # some people rename them; so instead we look at the file content.
18287 # Grep'ing the first line is not enough: some people post-process
18288 # each Makefile.in and add a new line on top of each file to say so.
18289 # Grep'ing the whole file is not good either: AIX grep has a line
18290 # limit of 2048, but all sed's we know have understand at least 4000.
18291 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18292 dirpart
=`$as_dirname -- "$mf" ||
18293 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18294 X"$mf" : 'X\(//\)[^/]' \| \
18295 X"$mf" : 'X\(//\)$' \| \
18296 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18302 /^X\(\/\/\)[^/].*/{
18318 # Extract the definition of DEPDIR, am__include, and am__quote
18319 # from the Makefile without running `make'.
18320 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18321 test -z "$DEPDIR" && continue
18322 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18323 test -z "am__include" && continue
18324 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18325 # When using ansi2knr, U may be empty or an underscore; expand it
18326 U
=`sed -n 's/^U = //p' < "$mf"`
18327 # Find all dependency output files, they are included files with
18328 # $(DEPDIR) in their names. We invoke sed twice because it is the
18329 # simplest approach to changing $(DEPDIR) to its actual value in the
18331 for file in `sed -n "
18332 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18333 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18334 # Make sure the directory exists.
18335 test -f "$dirpart/$file" && continue
18336 fdir
=`$as_dirname -- "$file" ||
18337 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18338 X"$file" : 'X\(//\)[^/]' \| \
18339 X"$file" : 'X\(//\)$' \| \
18340 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18341 $as_echo X"$file" |
18342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18346 /^X\(\/\/\)[^/].*/{
18359 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18360 # echo "creating $dirpart/$file"
18361 echo '# dummy' > "$dirpart/$file"
18367 case x
$CONFIG_HEADERS in
18368 xconfig.h
:config.
in)
18379 ac_clean_files
=$ac_clean_files_save
18381 test $ac_write_fail = 0 ||
18382 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18385 # configure is writing to config.log, and then calls config.status.
18386 # config.status does its own redirection, appending to config.log.
18387 # Unfortunately, on DOS this fails, as config.log is still kept open
18388 # by configure, so config.status won't be able to write to it; its
18389 # output is simply discarded. So we exec the FD to /dev/null,
18390 # effectively closing config.log, so it can be properly (re)opened and
18391 # appended to by config.status. When coming back to configure, we
18392 # need to make the FD available again.
18393 if test "$no_create" != yes; then
18395 ac_config_status_args
=
18396 test "$silent" = yes &&
18397 ac_config_status_args
="$ac_config_status_args --quiet"
18399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18402 # would make configure fail if this is the last instruction.
18403 $ac_cs_success || as_fn_exit $?
18407 # CONFIG_SUBDIRS section.
18409 if test "$no_recursion" != yes; then
18411 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18412 # so they do not pile up.
18413 ac_sub_configure_args
=
18415 eval "set x $ac_configure_args"
18419 if test -n "$ac_prev"; then
18424 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
18425 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
18426 ac_prev
=cache_file
;;
18427 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
18428 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
18431 --config-cache |
-C)
18433 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
18435 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
18437 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
18439 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
18441 --disable-option-checking)
18445 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18447 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
18451 # Always prepend --prefix to ensure using the same prefix
18452 # in subdir configurations.
18453 ac_arg
="--prefix=$prefix"
18455 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18457 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
18460 if test "$silent" = yes; then
18461 ac_sub_configure_args
="--silent $ac_sub_configure_args"
18464 # Always prepend --disable-option-checking to silence warnings, since
18465 # different subdirs can have different --enable and --with options.
18466 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
18469 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
18471 # Do not complain, so a configure script can configure whichever
18472 # parts of a large source tree are present.
18473 test -d "$srcdir/$ac_dir" ||
continue
18475 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18476 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18477 $as_echo "$ac_msg" >&6
18478 as_dir
="$ac_dir"; as_fn_mkdir_p
18482 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18484 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18485 # A ".." for each directory in $ac_dir_suffix.
18486 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18487 case $ac_top_builddir_sub in
18488 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18489 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18492 ac_abs_top_builddir
=$ac_pwd
18493 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18494 # for backward compatibility:
18495 ac_top_builddir
=$ac_top_build_prefix
18498 .
) # We are building in place.
18500 ac_top_srcdir
=$ac_top_builddir_sub
18501 ac_abs_top_srcdir
=$ac_pwd ;;
18502 [\\/]* | ?
:[\\/]* ) # Absolute name.
18503 ac_srcdir
=$srcdir$ac_dir_suffix;
18504 ac_top_srcdir
=$srcdir
18505 ac_abs_top_srcdir
=$srcdir ;;
18506 *) # Relative name.
18507 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18508 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18509 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18511 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18516 # Check for guested configure; otherwise get Cygnus style configure.
18517 if test -f "$ac_srcdir/configure.gnu"; then
18518 ac_sub_configure
=$ac_srcdir/configure.gnu
18519 elif test -f "$ac_srcdir/configure"; then
18520 ac_sub_configure
=$ac_srcdir/configure
18521 elif test -f "$ac_srcdir/configure.in"; then
18522 # This should be Cygnus configure.
18523 ac_sub_configure
=$ac_aux_dir/configure
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18526 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18530 # The recursion is here.
18531 if test -n "$ac_sub_configure"; then
18532 # Make the cache file name correct relative to the subdirectory.
18533 case $cache_file in
18534 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
18535 *) # Relative name.
18536 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
18539 { $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
18540 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18541 # The eval makes quoting arguments work.
18542 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18543 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18544 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18550 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18552 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}