2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
593 enable_option_checking=no
594 ac_subst_vars='am__EXEEXT_FALSE
657 TARGET_SYSTEM_ROOT_DEFINE
697 INSTALL_STRIP_PROGRAM
718 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
754 NEXT_AS_FIRST_DIRECTIVE_STRING_H
764 HAVE_SIGNED_SIG_ATOMIC_T
767 BITSIZEOF_SIG_ATOMIC_T
773 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
777 HAVE_UNSIGNED_LONG_LONG_INT
779 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
782 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
787 APPLE_UNIVERSAL_BUILD
853 GL_COND_LIBTOOL_FALSE
898 MAINTAINER_MODE_FALSE
927 program_transform_name
938 ac_subst_files='host_makefile_frag'
940 enable_option_checking
941 enable_maintainer_mode
944 enable_dependency_tracking
945 with_separate_debug_dir
947 with_relocated_sources
971 enable_build_warnings
972 enable_gdb_build_warnings
979 ac_precious_vars='build_alias
991 ac_subdirs_all='doc testsuite
996 # Initialize some variables set by options.
998 ac_init_version=false
999 ac_unrecognized_opts=
1000 ac_unrecognized_sep=
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file=/dev/null
1010 program_transform_name=s,x,x,
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir='${exec_prefix}/bin'
1025 sbindir='${exec_prefix}/sbin'
1026 libexecdir='${exec_prefix}/libexec'
1027 datarootdir='${prefix}/share'
1028 datadir='${datarootdir}'
1029 sysconfdir='${prefix}/etc'
1030 sharedstatedir='${prefix}/com'
1031 localstatedir='${prefix}/var'
1032 includedir='${prefix}/include'
1033 oldincludedir='/usr/include'
1034 docdir='${datarootdir}/doc/${PACKAGE}'
1035 infodir='${datarootdir}/info'
1040 libdir='${exec_prefix}/lib'
1041 localedir='${datarootdir}/locale'
1042 mandir='${datarootdir}/man'
1048 # If the previous option needs an argument, assign it.
1049 if test -n "$ac_prev"; then
1050 eval $ac_prev=\$ac_option
1056 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060 # Accept the important Cygnus configure options, so we can diagnose typos.
1062 case $ac_dashdash$ac_option in
1066 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1068 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1069 bindir=$ac_optarg ;;
1071 -build | --build | --buil | --bui | --bu)
1072 ac_prev=build_alias ;;
1073 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1074 build_alias=$ac_optarg ;;
1076 -cache-file | --cache-file | --cache-fil | --cache-fi \
1077 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1078 ac_prev=cache_file ;;
1079 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1080 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1081 cache_file=$ac_optarg ;;
1083 --config-cache | -C)
1084 cache_file=config.cache ;;
1086 -datadir | --datadir | --datadi | --datad)
1088 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1089 datadir=$ac_optarg ;;
1091 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1092 | --dataroo | --dataro | --datar)
1093 ac_prev=datarootdir ;;
1094 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1095 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1096 datarootdir=$ac_optarg ;;
1098 -disable-* | --disable-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid feature name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "enable_$ac_useropt"
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1112 eval enable_$ac_useropt=no ;;
1114 -docdir | --docdir | --docdi | --doc | --do)
1116 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1117 docdir=$ac_optarg ;;
1119 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1121 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1122 dvidir=$ac_optarg ;;
1124 -enable-* | --enable-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid feature name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "enable_$ac_useropt"
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1138 eval enable_$ac_useropt=\$ac_optarg ;;
1140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142 | --exec | --exe | --ex)
1143 ac_prev=exec_prefix ;;
1144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146 | --exec=* | --exe=* | --ex=*)
1147 exec_prefix=$ac_optarg ;;
1149 -gas | --gas | --ga | --g)
1150 # Obsolete; use --with-gas.
1153 -help | --help | --hel | --he | -h)
1154 ac_init_help=long ;;
1155 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156 ac_init_help=recursive ;;
1157 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158 ac_init_help=short ;;
1160 -host | --host | --hos | --ho)
1161 ac_prev=host_alias ;;
1162 -host=* | --host=* | --hos=* | --ho=*)
1163 host_alias=$ac_optarg ;;
1165 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1167 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1169 htmldir=$ac_optarg ;;
1171 -includedir | --includedir | --includedi | --included | --include \
1172 | --includ | --inclu | --incl | --inc)
1173 ac_prev=includedir ;;
1174 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175 | --includ=* | --inclu=* | --incl=* | --inc=*)
1176 includedir=$ac_optarg ;;
1178 -infodir | --infodir | --infodi | --infod | --info | --inf)
1180 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1181 infodir=$ac_optarg ;;
1183 -libdir | --libdir | --libdi | --libd)
1185 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1186 libdir=$ac_optarg ;;
1188 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189 | --libexe | --libex | --libe)
1190 ac_prev=libexecdir ;;
1191 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192 | --libexe=* | --libex=* | --libe=*)
1193 libexecdir=$ac_optarg ;;
1195 -localedir | --localedir | --localedi | --localed | --locale)
1196 ac_prev=localedir ;;
1197 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198 localedir=$ac_optarg ;;
1200 -localstatedir | --localstatedir | --localstatedi | --localstated \
1201 | --localstate | --localstat | --localsta | --localst | --locals)
1202 ac_prev=localstatedir ;;
1203 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1204 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1205 localstatedir=$ac_optarg ;;
1207 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1209 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1210 mandir=$ac_optarg ;;
1212 -nfp | --nfp | --nf)
1213 # Obsolete; use --without-fp.
1216 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1217 | --no-cr | --no-c | -n)
1220 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1224 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226 | --oldin | --oldi | --old | --ol | --o)
1227 ac_prev=oldincludedir ;;
1228 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1231 oldincludedir=$ac_optarg ;;
1233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1236 prefix=$ac_optarg ;;
1238 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239 | --program-pre | --program-pr | --program-p)
1240 ac_prev=program_prefix ;;
1241 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1243 program_prefix=$ac_optarg ;;
1245 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246 | --program-suf | --program-su | --program-s)
1247 ac_prev=program_suffix ;;
1248 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1250 program_suffix=$ac_optarg ;;
1252 -program-transform-name | --program-transform-name \
1253 | --program-transform-nam | --program-transform-na \
1254 | --program-transform-n | --program-transform- \
1255 | --program-transform | --program-transfor \
1256 | --program-transfo | --program-transf \
1257 | --program-trans | --program-tran \
1258 | --progr-tra | --program-tr | --program-t)
1259 ac_prev=program_transform_name ;;
1260 -program-transform-name=* | --program-transform-name=* \
1261 | --program-transform-nam=* | --program-transform-na=* \
1262 | --program-transform-n=* | --program-transform-=* \
1263 | --program-transform=* | --program-transfor=* \
1264 | --program-transfo=* | --program-transf=* \
1265 | --program-trans=* | --program-tran=* \
1266 | --progr-tra=* | --program-tr=* | --program-t=*)
1267 program_transform_name=$ac_optarg ;;
1269 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1271 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272 pdfdir=$ac_optarg ;;
1274 -psdir | --psdir | --psdi | --psd | --ps)
1276 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1283 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1285 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1287 sbindir=$ac_optarg ;;
1289 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1290 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1291 | --sharedst | --shareds | --shared | --share | --shar \
1293 ac_prev=sharedstatedir ;;
1294 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1295 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1296 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1298 sharedstatedir=$ac_optarg ;;
1300 -site | --site | --sit)
1302 -site=* | --site=* | --sit=*)
1305 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1307 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1308 srcdir=$ac_optarg ;;
1310 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1311 | --syscon | --sysco | --sysc | --sys | --sy)
1312 ac_prev=sysconfdir ;;
1313 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1314 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1315 sysconfdir=$ac_optarg ;;
1317 -target | --target | --targe | --targ | --tar | --ta | --t)
1318 ac_prev=target_alias ;;
1319 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1320 target_alias=$ac_optarg ;;
1322 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1325 -version | --version | --versio | --versi | --vers | -V)
1326 ac_init_version=: ;;
1329 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 as_fn_error "invalid package name: $ac_useropt"
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1342 eval with_$ac_useropt=\$ac_optarg ;;
1344 -without-* | --without-*)
1345 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 as_fn_error "invalid package name: $ac_useropt"
1349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1358 eval with_$ac_useropt=no ;;
1361 # Obsolete; use --with-x.
1364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365 | --x-incl | --x-inc | --x-in | --x-i)
1366 ac_prev=x_includes ;;
1367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369 x_includes=$ac_optarg ;;
1371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373 ac_prev=x_libraries ;;
1374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376 x_libraries=$ac_optarg ;;
1378 -*) as_fn_error "unrecognized option: \`$ac_option'
1379 Try \`$0 --help' for more information."
1383 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1384 # Reject names that are not valid shell variable names.
1385 case $ac_envvar in #(
1386 '' | [0-9]* | *[!_$as_cr_alnum]* )
1387 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1389 eval $ac_envvar=\$ac_optarg
1390 export $ac_envvar ;;
1393 # FIXME: should be removed in autoconf 3.0.
1394 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1403 if test -n "$ac_prev"; then
1404 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1405 as_fn_error "missing argument to $ac_option"
1408 if test -n "$ac_unrecognized_opts"; then
1409 case $enable_option_checking in
1411 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1412 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1416 # Check all directory arguments for consistency.
1417 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1418 datadir sysconfdir sharedstatedir localstatedir includedir \
1419 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1420 libdir localedir mandir
1422 eval ac_val=\$$ac_var
1423 # Remove trailing slashes.
1426 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1427 eval $ac_var=\$ac_val;;
1429 # Be sure to have absolute directory names.
1431 [\\/$]* | ?:[\\/]* ) continue;;
1432 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1434 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1437 # There might be people who depend on the old broken behavior: `$host'
1438 # used to hold the argument of --host etc.
1439 # FIXME: To remove some day.
1442 target=$target_alias
1444 # FIXME: To remove some day.
1445 if test "x$host_alias" != x; then
1446 if test "x$build_alias" = x; then
1447 cross_compiling=maybe
1448 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1449 If a cross compiler is detected then cross compile mode will be used." >&2
1450 elif test "x$build_alias" != "x$host_alias"; then
1456 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1458 test "$silent" = yes && exec 6>/dev/null
1461 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462 ac_ls_di=`ls -di .` &&
1463 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464 as_fn_error "working directory cannot be determined"
1465 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 as_fn_error "pwd does not report name of working directory"
1469 # Find the source files, if location was not specified.
1470 if test -z "$srcdir"; then
1471 ac_srcdir_defaulted=yes
1472 # Try the directory containing this script, then the parent directory.
1473 ac_confdir=`$as_dirname -- "$as_myself" ||
1474 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475 X"$as_myself" : 'X\(//\)[^/]' \| \
1476 X"$as_myself" : 'X\(//\)$' \| \
1477 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478 $as_echo X"$as_myself" |
1479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1501 ac_srcdir_defaulted=no
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1504 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1505 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1507 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1509 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1511 # When building in place, set srcdir=.
1512 if test "$ac_abs_confdir" = "$ac_pwd"; then
1515 # Remove unnecessary trailing slashes from srcdir.
1516 # Double slashes in file names in object file debugging info
1517 # mess up M-x gdb in Emacs.
1519 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1521 for ac_var in $ac_precious_vars; do
1522 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1523 eval ac_env_${ac_var}_value=\$${ac_var}
1524 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1525 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1529 # Report the --help message.
1531 if test "$ac_init_help" = "long"; then
1532 # Omit some internal or obsolete options to make the list less imposing.
1533 # This message is too long to be a string in the A/UX 3.1 sh.
1535 \`configure' configures this package to adapt to many kinds of systems.
1537 Usage: $0 [OPTION]... [VAR=VALUE]...
1539 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540 VAR=VALUE. See below for descriptions of some of the useful variables.
1542 Defaults for the options are specified in brackets.
1545 -h, --help display this help and exit
1546 --help=short display options specific to this package
1547 --help=recursive display the short help of all the included packages
1548 -V, --version display version information and exit
1549 -q, --quiet, --silent do not print \`checking...' messages
1550 --cache-file=FILE cache test results in FILE [disabled]
1551 -C, --config-cache alias for \`--cache-file=config.cache'
1552 -n, --no-create do not create output files
1553 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1555 Installation directories:
1556 --prefix=PREFIX install architecture-independent files in PREFIX
1557 [$ac_default_prefix]
1558 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1561 By default, \`make install' will install all the files in
1562 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1563 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564 for instance \`--prefix=\$HOME'.
1566 For better control, use the options below.
1568 Fine tuning of the installation directories:
1569 --bindir=DIR user executables [EPREFIX/bin]
1570 --sbindir=DIR system admin executables [EPREFIX/sbin]
1571 --libexecdir=DIR program executables [EPREFIX/libexec]
1572 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1573 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1574 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1575 --libdir=DIR object code libraries [EPREFIX/lib]
1576 --includedir=DIR C header files [PREFIX/include]
1577 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1578 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1579 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1580 --infodir=DIR info documentation [DATAROOTDIR/info]
1581 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1582 --mandir=DIR man documentation [DATAROOTDIR/man]
1583 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1584 --htmldir=DIR html documentation [DOCDIR]
1585 --dvidir=DIR dvi documentation [DOCDIR]
1586 --pdfdir=DIR pdf documentation [DOCDIR]
1587 --psdir=DIR ps documentation [DOCDIR]
1593 --program-prefix=PREFIX prepend PREFIX to installed program names
1594 --program-suffix=SUFFIX append SUFFIX to installed program names
1595 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1598 --x-includes=DIR X include files are in DIR
1599 --x-libraries=DIR X library files are in DIR
1602 --build=BUILD configure for building on BUILD [guessed]
1603 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1604 --target=TARGET configure for building compilers for TARGET [HOST]
1608 if test -n "$ac_init_help"; then
1613 --disable-option-checking ignore unrecognized --enable/--with options
1614 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1615 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1616 --enable-maintainer-mode enable make rules and dependencies not useful
1617 (and sometimes confusing) to the casual installer
1618 --enable-plugins Enable support for plugins (defaults no)
1619 --disable-largefile omit support for large files
1620 --disable-dependency-tracking speeds up one-time build
1621 --enable-dependency-tracking do not reject slow dependency extractors
1622 --enable-targets=TARGETS
1623 alternative target configurations
1624 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1625 --disable-gdbcli disable command-line interface (CLI)
1626 --disable-gdbmi disable machine-interface (MI)
1627 --enable-tui enable full-screen terminal user interface (TUI)
1628 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1629 --enable-profiling enable profiling of GDB
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-werror treat compile warnings as errors
1632 --enable-build-warnings enable build-time compiler warnings if gcc is used
1633 --enable-gdb-build-warnings
1634 enable GDB specific build-time compiler warnings if
1636 --enable-sim link gdb with simulator
1637 --enable-multi-ice build the multi-ice-gdb-server
1640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1642 --with-separate-debug-dir=PATH
1643 look for global separate debug info in this path
1645 --with-gdb-datadir=PATH look for global separate data files in this path
1647 --with-relocated-sources=PATH
1648 automatically relocate this path for source files
1649 --with-libunwind use libunwind frame unwinding support
1650 --with-curses use the curses library instead of the termcap
1652 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1653 --with-bugurl=URL Direct users to URL to report a bug
1654 --with-zlib include zlib support (auto/yes/no) default=auto
1655 --with-libiconv-prefix=DIR
1656 search for libiconv in DIR/include and DIR/lib
1657 --with-system-readline use installed readline library
1658 --with-expat include expat support (auto/yes/no)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1661 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1662 --with-python[=PYTHON] include python support
1663 (auto/yes/no/<python-program>)
1664 --without-included-regex
1665 don't use included regex; this is the default on
1666 systems with version 2 of the GNU C library (use
1667 with caution on other system)
1668 --with-sysroot[=DIR] search for usr/lib et al within DIR
1669 --with-system-gdbinit=PATH
1670 automatically load a system-wide gdbinit file
1671 --with-tcl directory containing tcl configuration (tclConfig.sh)
1672 --with-tk directory containing tk configuration (tkConfig.sh)
1673 --with-x use the X Window System
1675 Some influential environment variables:
1676 CC C compiler command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1679 nonstandard directory <lib dir>
1680 LIBS libraries to pass to the linker, e.g. -l<library>
1681 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682 you have headers in a nonstandard directory <include dir>
1684 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1685 the first program found out of: `bison -y', `byacc', `yacc'.
1686 YFLAGS The list of arguments that will be passed by default to $YACC.
1687 This script will default YFLAGS to the empty string to avoid a
1688 default value of `-d' given by some make applications.
1689 XMKMF Path to xmkmf, Makefile generator for X Window System
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1694 Report bugs to the package provider.
1699 if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1724 .) # We are building in place.
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
1729 ac_srcdir=$srcdir$ac_dir_suffix;
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1750 cd "$ac_pwd" || { ac_status=$?; break; }
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1758 generated by GNU Autoconf 2.64
1760 Copyright (C) 2009 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 } # ac_fn_c_try_compile
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } >/dev/null && {
1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1851 ac_fn_c_check_header_mongrel ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 $as_echo_n "(cached) " >&6
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1864 # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873 ac_header_compiler=yes
1875 ac_header_compiler=no
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1888 if ac_fn_c_try_cpp "$LINENO"; then :
1889 ac_header_preproc=yes
1891 ac_header_preproc=no
1893 rm -f conftest.err conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1897 # So? What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 $as_echo_n "(cached) " >&6
1923 eval "$3=\$ac_header_compiler"
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931 } # ac_fn_c_check_header_mongrel
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_link"
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>&5
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951 { { case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_try") 2>&5
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; }; }; then :
1963 $as_echo "$as_me: program exited with status $ac_status" >&5
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1967 ac_retval=$ac_status
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_compile ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 $as_echo_n "(cached) " >&6
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_c_try_compile "$LINENO"; then :
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 } # ac_fn_c_check_header_compile
2006 # ac_fn_c_try_link LINENO
2007 # -----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 rm -f conftest.$ac_objext conftest$ac_exeext
2013 if { { ac_try="$ac_link"
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>conftest.err
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest$ac_exeext && {
2032 test "$cross_compiling" = yes ||
2033 $as_test_x conftest$ac_exeext
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2042 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044 # interfere with the next link command; also delete a directory that is
2045 # left behind by Apple's compiler. We do this before executing the actions.
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050 } # ac_fn_c_try_link
2052 # ac_fn_c_check_func LINENO FUNC VAR
2053 # ----------------------------------
2054 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2055 ac_fn_c_check_func ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2061 $as_echo_n "(cached) " >&6
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2067 #define $2 innocuous_$2
2069 /* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char $2 (); below.
2071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2072 <limits.h> exists even on freestanding compilers. */
2075 # include <limits.h>
2077 # include <assert.h>
2082 /* Override any GCC internal prototype to avoid an error.
2083 Use char because int might match the return type of a GCC
2084 builtin and then its argument prototype would still apply. */
2089 /* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092 #if defined __stub_$2 || defined __stub___$2
2104 if ac_fn_c_try_link "$LINENO"; then :
2109 rm -f core conftest.err conftest.$ac_objext \
2110 conftest$ac_exeext conftest.$ac_ext
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117 } # ac_fn_c_check_func
2119 # ac_fn_c_check_decl LINENO SYMBOL VAR
2120 # ------------------------------------
2121 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2122 ac_fn_c_check_decl ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 as_decl_name=`echo $2|sed 's/ *(.*//'`
2126 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2128 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2129 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2130 $as_echo_n "(cached) " >&6
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 #ifndef $as_decl_name
2140 (void) $as_decl_use;
2142 (void) $as_decl_name;
2150 if ac_fn_c_try_compile "$LINENO"; then :
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2162 } # ac_fn_c_check_decl
2164 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2165 # --------------------------------------------
2166 # Tries to find the compile-time value of EXPR in a program that includes
2167 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2169 ac_fn_c_compute_int ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if test "$cross_compiling" = yes; then
2173 # Depending upon the size, compute the lo and hi bounds.
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 static int test_array [1 - 2 * !(($2) >= 0)];
2187 if ac_fn_c_try_compile "$LINENO"; then :
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_hi=$ac_mid; break
2206 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2207 if test $ac_lo -le $ac_mid; then
2211 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2222 static int test_array [1 - 2 * !(($2) < 0)];
2229 if ac_fn_c_try_compile "$LINENO"; then :
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 ac_lo=$ac_mid; break
2248 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2249 if test $ac_mid -le $ac_hi; then
2253 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 # Binary search between lo and hi bounds.
2264 while test "x$ac_lo" != "x$ac_hi"; do
2265 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2272 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2279 if ac_fn_c_try_compile "$LINENO"; then :
2282 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2294 static long int longval () { return $2; }
2295 static unsigned long int ulongval () { return $2; }
2302 FILE *f = fopen ("conftest.val", "w");
2307 long int i = longval ();
2310 fprintf (f, "%ld", i);
2314 unsigned long int i = ulongval ();
2317 fprintf (f, "%lu", i);
2319 /* Do not output a trailing newline, as this causes \r\n confusion
2320 on some platforms. */
2321 return ferror (f) || fclose (f) != 0;
2327 if ac_fn_c_try_run "$LINENO"; then :
2328 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2333 conftest.$ac_objext conftest.beam conftest.$ac_ext
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2340 } # ac_fn_c_compute_int
2342 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2343 # ----------------------------------------------------
2344 # Tries to find if the field MEMBER exists in type AGGR, after including
2345 # INCLUDES, setting cache variable VAR accordingly.
2346 ac_fn_c_check_member ()
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2350 $as_echo_n "checking for $2.$3... " >&6; }
2351 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2352 $as_echo_n "(cached) " >&6
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2367 if ac_fn_c_try_compile "$LINENO"; then :
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2377 if (sizeof ac_aggr.$3)
2383 if ac_fn_c_try_compile "$LINENO"; then :
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394 $as_echo "$ac_res" >&6; }
2395 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397 } # ac_fn_c_check_member
2399 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2400 # -------------------------------------------
2401 # Tests whether TYPE exists after having included INCLUDES, setting cache
2402 # variable VAR accordingly.
2403 ac_fn_c_check_type ()
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2407 $as_echo_n "checking for $2... " >&6; }
2408 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2409 $as_echo_n "(cached) " >&6
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2437 if ac_fn_c_try_compile "$LINENO"; then :
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 } # ac_fn_c_check_type
2452 cat >config.log <<_ACEOF
2453 This file contains any messages produced by compilers while
2454 running configure, to aid debugging if configure makes a mistake.
2456 It was created by $as_me, which was
2457 generated by GNU Autoconf 2.64. Invocation command line was
2469 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2470 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2471 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2472 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2473 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2475 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2476 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2478 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2479 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2480 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2481 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2482 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2483 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2484 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 $as_echo "PATH: $as_dir"
2509 # Keep a trace of the command line.
2510 # Strip out --no-create and --no-recursion so they do not pile up.
2511 # Strip out --silent because we don't want to record it for future runs.
2512 # Also quote any args containing shell meta-characters.
2513 # Make two passes to allow for proper duplicate-argument suppression.
2517 ac_must_keep_next=false
2523 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2525 | -silent | --silent | --silen | --sile | --sil)
2528 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2531 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2533 as_fn_append ac_configure_args1 " '$ac_arg'"
2534 if test $ac_must_keep_next = true; then
2535 ac_must_keep_next=false # Got value, back to normal.
2538 *=* | --config-cache | -C | -disable-* | --disable-* \
2539 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2540 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2541 | -with-* | --with-* | -without-* | --without-* | --x)
2542 case "$ac_configure_args0 " in
2543 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2546 -* ) ac_must_keep_next=true ;;
2549 as_fn_append ac_configure_args " '$ac_arg'"
2554 { ac_configure_args0=; unset ac_configure_args0;}
2555 { ac_configure_args1=; unset ac_configure_args1;}
2557 # When interrupted or exit'd, cleanup temporary files, and complete
2558 # config.log. We remove comments because anyway the quotes in there
2559 # would cause problems or look ugly.
2560 # WARNING: Use '\'' to represent an apostrophe within the trap.
2561 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2562 trap 'exit_status=$?
2563 # Save into config.log some information that might help in debugging.
2568 ## ---------------- ##
2569 ## Cache variables. ##
2570 ## ---------------- ##
2573 # The following way of writing the cache mishandles newlines in values,
2575 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2576 eval ac_val=\$$ac_var
2580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2584 _ | IFS | as_nl) ;; #(
2585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2586 *) { eval $ac_var=; unset $ac_var;} ;;
2591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2592 *${as_nl}ac_space=\ *)
2594 "s/'\''/'\''\\\\'\'''\''/g;
2595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2606 ## ----------------- ##
2607 ## Output variables. ##
2608 ## ----------------- ##
2611 for ac_var in $ac_subst_vars
2613 eval ac_val=\$$ac_var
2615 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2617 $as_echo "$ac_var='\''$ac_val'\''"
2621 if test -n "$ac_subst_files"; then
2623 ## ------------------- ##
2624 ## File substitutions. ##
2625 ## ------------------- ##
2628 for ac_var in $ac_subst_files
2630 eval ac_val=\$$ac_var
2632 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2634 $as_echo "$ac_var='\''$ac_val'\''"
2639 if test -s confdefs.h; then
2649 test "$ac_signal" != 0 &&
2650 $as_echo "$as_me: caught signal $ac_signal"
2651 $as_echo "$as_me: exit $exit_status"
2653 rm -f core *.core core.conftest.* &&
2654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2657 for ac_signal in 1 2 13 15; do
2658 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2663 rm -f -r conftest* confdefs.h
2665 $as_echo "/* confdefs.h */" > confdefs.h
2667 # Predefined preprocessor variables.
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_NAME "$PACKAGE_NAME"
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_STRING "$PACKAGE_STRING"
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_URL "$PACKAGE_URL"
2694 # Let the site file select an alternate cache file if it wants to.
2695 # Prefer an explicitly selected file to automatically selected ones.
2698 if test -n "$CONFIG_SITE"; then
2699 ac_site_file1=$CONFIG_SITE
2700 elif test "x$prefix" != xNONE; then
2701 ac_site_file1=$prefix/share/config.site
2702 ac_site_file2=$prefix/etc/config.site
2704 ac_site_file1=$ac_default_prefix/share/config.site
2705 ac_site_file2=$ac_default_prefix/etc/config.site
2707 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2709 test "x$ac_site_file" = xNONE && continue
2710 if test -r "$ac_site_file"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2712 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2713 sed 's/^/| /' "$ac_site_file" >&5
2718 if test -r "$cache_file"; then
2719 # Some versions of bash will fail to source /dev/null (special
2720 # files actually), so we avoid doing that.
2721 if test -f "$cache_file"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2723 $as_echo "$as_me: loading cache $cache_file" >&6;}
2725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2726 *) . "./$cache_file";;
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2731 $as_echo "$as_me: creating cache $cache_file" >&6;}
2735 gl_header_list="$gl_header_list sys/mman.h"
2736 gl_func_list="$gl_func_list mprotect"
2737 gl_func_list="$gl_func_list memchr"
2738 gl_header_list="$gl_header_list stddef.h"
2739 gl_header_list="$gl_header_list stdint.h"
2740 gl_header_list="$gl_header_list wchar.h"
2741 gl_header_list="$gl_header_list string.h"
2742 # Check that the precious variables saved in the cache have kept the same
2744 ac_cache_corrupted=false
2745 for ac_var in $ac_precious_vars; do
2746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2747 eval ac_new_set=\$ac_env_${ac_var}_set
2748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2749 eval ac_new_val=\$ac_env_${ac_var}_value
2750 case $ac_old_set,$ac_new_set in
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2753 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2754 ac_cache_corrupted=: ;;
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2757 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2758 ac_cache_corrupted=: ;;
2761 if test "x$ac_old_val" != "x$ac_new_val"; then
2762 # differences in whitespace do not lead to failure.
2763 ac_old_val_w=`echo x $ac_old_val`
2764 ac_new_val_w=`echo x $ac_new_val`
2765 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2767 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2768 ac_cache_corrupted=:
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2771 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2772 eval $ac_var=\$ac_old_val
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2775 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2777 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2780 # Pass precious variables to config.status.
2781 if test "$ac_new_set" = set; then
2783 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2784 *) ac_arg=$ac_var=$ac_new_val ;;
2786 case " $ac_configure_args " in
2787 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2788 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2792 if $ac_cache_corrupted; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2796 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2797 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2799 ## -------------------- ##
2800 ## Main body of script. ##
2801 ## -------------------- ##
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2813 ac_config_headers="$ac_config_headers config.h:config.in"
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2817 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2818 # Check whether --enable-maintainer-mode was given.
2819 if test "${enable_maintainer_mode+set}" = set; then :
2820 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2822 USE_MAINTAINER_MODE=no
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2826 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2827 if test $USE_MAINTAINER_MODE = yes; then
2828 MAINTAINER_MODE_TRUE=
2829 MAINTAINER_MODE_FALSE='#'
2831 MAINTAINER_MODE_TRUE='#'
2832 MAINTAINER_MODE_FALSE=
2835 MAINT=$MAINTAINER_MODE_TRUE
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2883 if test -z "$ac_cv_prog_CC"; then
2885 # Extract the first word of "gcc", so it can be a program name with args.
2886 set dummy gcc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC="gcc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2921 if test "x$ac_ct_CC" = x; then
2924 case $cross_compiling:$ac_tool_warned in
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}cc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC="${ac_tool_prefix}cc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2977 if test -z "$CC"; then
2978 # Extract the first word of "cc", so it can be a program name with args.
2979 set dummy cc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997 ac_prog_rejected=yes
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test $ac_prog_rejected = yes; then
3009 # We found a bogon in the path, so make sure we never use it.
3010 set dummy $ac_cv_prog_CC
3012 if test $# != 0; then
3013 # We chose a different compiler from the bogus one.
3014 # However, it has the same basename, so the bogon will be chosen
3015 # first if we set CC to just the basename; use the full file name.
3017 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3033 if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 for ac_prog in cl.exe
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3074 test -n "$CC" && break
3077 if test -z "$CC"; then
3079 for ac_prog in cl.exe
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="$ac_prog"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3118 test -n "$ac_ct_CC" && break
3121 if test "x$ac_ct_CC" = x; then
3124 case $cross_compiling:$ac_tool_warned in
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3137 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error "no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details." "$LINENO" 5; }
3142 # Provide some information about the compiler.
3143 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3146 for ac_option in --version -v -V -qversion; do
3147 { { ac_try="$ac_compiler $ac_option >&5"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3156 if test -s conftest.err; then
3158 ... rest of stderr output deleted ...
3159 10q' conftest.err >conftest.er1
3160 cat conftest.er1 >&5
3161 rm -f conftest.er1 conftest.err
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3178 ac_clean_files_save=$ac_clean_files
3179 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3180 # Try to create an executable without -o first, disregard a.out.
3181 # It will help us diagnose broken compilers, and finding out an intuition
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3184 $as_echo_n "checking for C compiler default output file name... " >&6; }
3185 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3187 # The possible output files:
3188 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3191 for ac_file in $ac_files
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200 if { { ac_try="$ac_link_default"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_link_default") 2>&5
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; then :
3211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3212 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3213 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3214 # so that the user can short-circuit this test for compilers unknown to
3216 for ac_file in $ac_files ''
3218 test -f "$ac_file" || continue
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3223 # We found the default executable, but exeext='' is most
3227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231 # We set ac_cv_exeext here because the later test for it is not
3232 # safe: cross compilers may not add the suffix if given an `-o'
3233 # argument, so we may need to know it at that point already.
3234 # Even if this section looks crufty: it has the advantage of
3241 test "$ac_cv_exeext" = no && ac_cv_exeext=
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3247 $as_echo "$ac_file" >&6; }
3248 if test -z "$ac_file"; then :
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 { as_fn_set_status 77
3255 as_fn_error "C compiler cannot create executables
3256 See \`config.log' for more details." "$LINENO" 5; }; }
3258 ac_exeext=$ac_cv_exeext
3260 # Check that the compiler produces executables we can run. If not, either
3261 # the compiler is broken, or we cross compile.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3263 $as_echo_n "checking whether the C compiler works... " >&6; }
3264 # If not cross compiling, check that we can run a simple program.
3265 if test "$cross_compiling" != yes; then
3266 if { ac_try='./$ac_file'
3267 { { case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_try") 2>&5
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; }; then
3279 if test "$cross_compiling" = maybe; then
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error "cannot run C compiled programs.
3285 If you meant to cross compile, use \`--host'.
3286 See \`config.log' for more details." "$LINENO" 5; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3293 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3294 ac_clean_files=$ac_clean_files_save
3295 # Check that the compiler produces executables we can run. If not, either
3296 # the compiler is broken, or we cross compile.
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3298 $as_echo_n "checking whether we are cross compiling... " >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300 $as_echo "$cross_compiling" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3303 $as_echo_n "checking for suffix of executables... " >&6; }
3304 if { { ac_try="$ac_link"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link") 2>&5
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3317 # work properly (i.e., refer to `conftest.exe'), while it won't with
3319 for ac_file in conftest.exe conftest conftest.*; do
3320 test -f "$ac_file" || continue
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error "cannot compute suffix of executables: cannot compile and link
3332 See \`config.log' for more details." "$LINENO" 5; }
3334 rm -f conftest$ac_cv_exeext
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3336 $as_echo "$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3342 $as_echo_n "checking for suffix of object files... " >&6; }
3343 if test "${ac_cv_objext+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3357 rm -f conftest.o conftest.obj
3358 if { { ac_try="$ac_compile"
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_compile") 2>&5
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }; then :
3369 for ac_file in conftest.o conftest.obj conftest.*; do
3370 test -f "$ac_file" || continue;
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3378 $as_echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error "cannot compute suffix of object files: cannot compile
3384 See \`config.log' for more details." "$LINENO" 5; }
3386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3389 $as_echo "$ac_cv_objext" >&6; }
3390 OBJEXT=$ac_cv_objext
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3393 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3394 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3395 $as_echo_n "(cached) " >&6
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3411 if ac_fn_c_try_compile "$LINENO"; then :
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3421 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3422 if test $ac_compiler_gnu = yes; then
3427 ac_test_CFLAGS=${CFLAGS+set}
3428 ac_save_CFLAGS=$CFLAGS
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3430 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3431 if test "${ac_cv_prog_cc_g+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3434 ac_save_c_werror_flag=$ac_c_werror_flag
3435 ac_c_werror_flag=yes
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3449 if ac_fn_c_try_compile "$LINENO"; then :
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3464 if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3480 if ac_fn_c_try_compile "$LINENO"; then :
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_c_werror_flag=$ac_save_c_werror_flag
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3491 $as_echo "$ac_cv_prog_cc_g" >&6; }
3492 if test "$ac_test_CFLAGS" = set; then
3493 CFLAGS=$ac_save_CFLAGS
3494 elif test $ac_cv_prog_cc_g = yes; then
3495 if test "$GCC" = yes; then
3501 if test "$GCC" = yes; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3508 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3509 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3512 ac_cv_prog_cc_c89=no
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3518 #include <sys/types.h>
3519 #include <sys/stat.h>
3520 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3521 struct buf { int x; };
3522 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3523 static char *e (p, i)
3529 static char *f (char * (*g) (char **, int), char **p, ...)
3534 s = g (p, va_arg (v,int));
3539 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3540 function prototypes and stuff, but not '\xHH' hex character constants.
3541 These don't provoke an error unfortunately, instead are silently treated
3542 as 'x'. The following induces an error, until -std is added to get
3543 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3544 array size at least. It's necessary to write '\x00'==0 to get something
3545 that's true only with -std. */
3546 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3548 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3549 inside strings and character constants. */
3551 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3553 int test (int i, double x);
3554 struct s1 {int (*f) (int a);};
3555 struct s2 {int (*f) (double a);};
3556 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3562 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3567 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3568 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3570 CC="$ac_save_CC $ac_arg"
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572 ac_cv_prog_cc_c89=$ac_arg
3574 rm -f core conftest.err conftest.$ac_objext
3575 test "x$ac_cv_prog_cc_c89" != "xno" && break
3577 rm -f conftest.$ac_ext
3582 case "x$ac_cv_prog_cc_c89" in
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3585 $as_echo "none needed" >&6; } ;;
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3588 $as_echo "unsupported" >&6; } ;;
3590 CC="$CC $ac_cv_prog_cc_c89"
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3592 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3594 if test "x$ac_cv_prog_cc_c89" != xno; then :
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3606 for ac_t in install-sh install.sh shtool; do
3607 if test -f "$ac_dir/$ac_t"; then
3609 ac_install_sh="$ac_aux_dir/$ac_t -c"
3614 if test -z "$ac_aux_dir"; then
3615 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3618 # These three variables are undocumented and unsupported,
3619 # and are intended to be withdrawn in a future Autoconf release.
3620 # They can cause serious problems if a builder's source tree is in a directory
3621 # whose full name contains unusual characters.
3622 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3623 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3624 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3627 # Make sure we can run config.sub.
3628 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3629 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3632 $as_echo_n "checking build system type... " >&6; }
3633 if test "${ac_cv_build+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3636 ac_build_alias=$build_alias
3637 test "x$ac_build_alias" = x &&
3638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3639 test "x$ac_build_alias" = x &&
3640 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3641 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3642 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3646 $as_echo "$ac_cv_build" >&6; }
3647 case $ac_cv_build in
3649 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3652 ac_save_IFS=$IFS; IFS='-'
3658 # Remember, the first character of IFS is used to create $*,
3659 # except with old shells:
3662 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3666 $as_echo_n "checking host system type... " >&6; }
3667 if test "${ac_cv_host+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3670 if test "x$host_alias" = x; then
3671 ac_cv_host=$ac_cv_build
3673 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3674 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3679 $as_echo "$ac_cv_host" >&6; }
3682 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3685 ac_save_IFS=$IFS; IFS='-'
3691 # Remember, the first character of IFS is used to create $*,
3692 # except with old shells:
3695 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3705 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3706 # On Suns, sometimes $CPP names a directory.
3707 if test -n "$CPP" && test -d "$CPP"; then
3710 if test -z "$CPP"; then
3711 if test "${ac_cv_prog_CPP+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3714 # Double quotes because CPP needs to be expanded
3715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3718 for ac_c_preproc_warn_flag in '' yes
3720 # Use a header file that comes with gcc, so configuring glibc
3721 # with a fresh cross-compiler works.
3722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3723 # <limits.h> exists even on freestanding compilers.
3724 # On the NeXT, cc -E runs the code through the compiler's parser,
3725 # not just through cpp. "Syntax error" is here to catch this case.
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3729 # include <limits.h>
3731 # include <assert.h>
3735 if ac_fn_c_try_cpp "$LINENO"; then :
3738 # Broken: fails on valid input.
3741 rm -f conftest.err conftest.$ac_ext
3743 # OK, works on sane cases. Now check whether nonexistent headers
3744 # can be detected and how.
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747 #include <ac_nonexistent.h>
3749 if ac_fn_c_try_cpp "$LINENO"; then :
3750 # Broken: success on invalid input.
3753 # Passes both tests.
3757 rm -f conftest.err conftest.$ac_ext
3760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3761 rm -f conftest.err conftest.$ac_ext
3762 if $ac_preproc_ok; then :
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3775 $as_echo "$CPP" >&6; }
3777 for ac_c_preproc_warn_flag in '' yes
3779 # Use a header file that comes with gcc, so configuring glibc
3780 # with a fresh cross-compiler works.
3781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3782 # <limits.h> exists even on freestanding compilers.
3783 # On the NeXT, cc -E runs the code through the compiler's parser,
3784 # not just through cpp. "Syntax error" is here to catch this case.
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3788 # include <limits.h>
3790 # include <assert.h>
3794 if ac_fn_c_try_cpp "$LINENO"; then :
3797 # Broken: fails on valid input.
3800 rm -f conftest.err conftest.$ac_ext
3802 # OK, works on sane cases. Now check whether nonexistent headers
3803 # can be detected and how.
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806 #include <ac_nonexistent.h>
3808 if ac_fn_c_try_cpp "$LINENO"; then :
3809 # Broken: success on invalid input.
3812 # Passes both tests.
3816 rm -f conftest.err conftest.$ac_ext
3819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3820 rm -f conftest.err conftest.$ac_ext
3821 if $ac_preproc_ok; then :
3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3827 See \`config.log' for more details." "$LINENO" 5; }
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3839 if test "${ac_cv_path_GREP+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3842 if test -z "$GREP"; then
3843 ac_path_GREP_found=false
3844 # Loop through the user's path and test for each of PROGNAME-LIST
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3849 test -z "$as_dir" && as_dir=.
3850 for ac_prog in grep ggrep; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3853 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3854 # Check for GNU ac_path_GREP and select it if it is found.
3855 # Check for GNU $ac_path_GREP
3856 case `"$ac_path_GREP" --version 2>&1` in
3858 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3861 $as_echo_n 0123456789 >"conftest.in"
3864 cat "conftest.in" "conftest.in" >"conftest.tmp"
3865 mv "conftest.tmp" "conftest.in"
3866 cp "conftest.in" "conftest.nl"
3867 $as_echo 'GREP' >> "conftest.nl"
3868 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870 as_fn_arith $ac_count + 1 && ac_count=$as_val
3871 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3872 # Best one so far, save it but keep looking for a better one
3873 ac_cv_path_GREP="$ac_path_GREP"
3874 ac_path_GREP_max=$ac_count
3876 # 10*(2^10) chars as input seems more than enough
3877 test $ac_count -gt 10 && break
3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3882 $ac_path_GREP_found && break 3
3887 if test -z "$ac_cv_path_GREP"; then
3888 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3891 ac_cv_path_GREP=$GREP
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3896 $as_echo "$ac_cv_path_GREP" >&6; }
3897 GREP="$ac_cv_path_GREP"
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3901 $as_echo_n "checking for egrep... " >&6; }
3902 if test "${ac_cv_path_EGREP+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
3905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906 then ac_cv_path_EGREP="$GREP -E"
3908 if test -z "$EGREP"; then
3909 ac_path_EGREP_found=false
3910 # Loop through the user's path and test for each of PROGNAME-LIST
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3915 test -z "$as_dir" && as_dir=.
3916 for ac_prog in egrep; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3920 # Check for GNU ac_path_EGREP and select it if it is found.
3921 # Check for GNU $ac_path_EGREP
3922 case `"$ac_path_EGREP" --version 2>&1` in
3924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3927 $as_echo_n 0123456789 >"conftest.in"
3930 cat "conftest.in" "conftest.in" >"conftest.tmp"
3931 mv "conftest.tmp" "conftest.in"
3932 cp "conftest.in" "conftest.nl"
3933 $as_echo 'EGREP' >> "conftest.nl"
3934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936 as_fn_arith $ac_count + 1 && ac_count=$as_val
3937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3938 # Best one so far, save it but keep looking for a better one
3939 ac_cv_path_EGREP="$ac_path_EGREP"
3940 ac_path_EGREP_max=$ac_count
3942 # 10*(2^10) chars as input seems more than enough
3943 test $ac_count -gt 10 && break
3945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3948 $ac_path_EGREP_found && break 3
3953 if test -z "$ac_cv_path_EGREP"; then
3954 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3957 ac_cv_path_EGREP=$EGREP
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3963 $as_echo "$ac_cv_path_EGREP" >&6; }
3964 EGREP="$ac_cv_path_EGREP"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3968 $as_echo_n "checking for ANSI C header files... " >&6; }
3969 if test "${ac_cv_header_stdc+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_header_stdc=yes
3990 ac_cv_header_stdc=no
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 if test $ac_cv_header_stdc = yes; then
3995 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4002 $EGREP "memchr" >/dev/null 2>&1; then :
4005 ac_cv_header_stdc=no
4011 if test $ac_cv_header_stdc = yes; then
4012 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "free" >/dev/null 2>&1; then :
4022 ac_cv_header_stdc=no
4028 if test $ac_cv_header_stdc = yes; then
4029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030 if test "$cross_compiling" = yes; then :
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4037 #if ((' ' & 0x0FF) == 0x020)
4038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4041 # define ISLOWER(c) \
4042 (('a' <= (c) && (c) <= 'i') \
4043 || ('j' <= (c) && (c) <= 'r') \
4044 || ('s' <= (c) && (c) <= 'z'))
4045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4053 for (i = 0; i < 256; i++)
4054 if (XOR (islower (i), ISLOWER (i))
4055 || toupper (i) != TOUPPER (i))
4060 if ac_fn_c_try_run "$LINENO"; then :
4063 ac_cv_header_stdc=no
4065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4066 conftest.$ac_objext conftest.beam conftest.$ac_ext
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4072 $as_echo "$ac_cv_header_stdc" >&6; }
4073 if test $ac_cv_header_stdc = yes; then
4075 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4079 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4080 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4081 inttypes.h stdint.h unistd.h
4083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4084 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4086 eval as_val=\$$as_ac_Header
4087 if test "x$as_val" = x""yes; then :
4088 cat >>confdefs.h <<_ACEOF
4089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4100 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4101 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4108 if test "$MINIX" = yes; then
4110 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4113 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4116 $as_echo "#define _MINIX 1" >>confdefs.h
4123 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4130 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4131 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4137 # define __EXTENSIONS__ 1
4138 $ac_includes_default
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_safe_to_define___extensions__=yes
4150 ac_cv_safe_to_define___extensions__=no
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4155 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4156 test $ac_cv_safe_to_define___extensions__ = yes &&
4157 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4159 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4161 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4163 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4165 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4176 if test -n "$RANLIB"; then
4177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 RANLIB=$ac_cv_prog_RANLIB
4197 if test -n "$RANLIB"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4199 $as_echo "$RANLIB" >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4207 if test -z "$ac_cv_prog_RANLIB"; then
4208 ac_ct_RANLIB=$RANLIB
4209 # Extract the first word of "ranlib", so it can be a program name with args.
4210 set dummy ranlib; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -n "$ac_ct_RANLIB"; then
4217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_ac_ct_RANLIB="ranlib"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4237 if test -n "$ac_ct_RANLIB"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4239 $as_echo "$ac_ct_RANLIB" >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4245 if test "x$ac_ct_RANLIB" = x; then
4248 case $cross_compiling:$ac_tool_warned in
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252 ac_tool_warned=yes ;;
4254 RANLIB=$ac_ct_RANLIB
4257 RANLIB="$ac_cv_prog_RANLIB"
4268 # Code from module arg-nonnull:
4269 # Code from module c++defs:
4270 # Code from module extensions:
4272 # Code from module include_next:
4273 # Code from module memchr:
4274 # Code from module memmem:
4275 # Code from module memmem-simple:
4276 # Code from module multiarch:
4277 # Code from module stddef:
4278 # Code from module stdint:
4279 # Code from module string:
4280 # Code from module warn-on-use:
4281 # Code from module wchar:
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4284 $as_echo_n "checking target system type... " >&6; }
4285 if test "${ac_cv_target+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4288 if test "x$target_alias" = x; then
4289 ac_cv_target=$ac_cv_host
4291 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4292 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4297 $as_echo "$ac_cv_target" >&6; }
4298 case $ac_cv_target in
4300 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4302 target=$ac_cv_target
4303 ac_save_IFS=$IFS; IFS='-'
4309 # Remember, the first character of IFS is used to create $*,
4310 # except with old shells:
4313 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4316 # The aliases save the names the user supplied, while $host etc.
4317 # will get canonicalized.
4318 test -n "$target_alias" &&
4319 test "$program_prefix$program_suffix$program_transform_name" = \
4321 program_prefix=${target_alias}-
4323 # The tests for host and target for $enable_largefile require
4328 # As the $enable_largefile decision depends on --enable-plugins we must set it
4329 # even in directories otherwise not depending on the $plugins option.
4332 # Check whether --enable-plugins was given.
4333 if test "${enable_plugins+set}" = set; then :
4334 enableval=$enable_plugins; case "${enableval}" in
4335 yes | "") plugins=yes ;;
4346 sparc-*-solaris*|i[3-7]86-*-solaris*)
4347 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4348 # are mutually exclusive; and without procfs support, the bfd/ elf module
4349 # cannot provide certain routines such as elfcore_write_prpsinfo
4350 # or elfcore_write_prstatus. So unless the user explicitly requested
4351 # large-file support through the --enable-largefile switch, disable
4352 # large-file support in favor of procfs support.
4353 test "${target}" = "${host}" -a "x$plugins" = xno \
4354 && : ${enable_largefile="no"}
4358 # Check whether --enable-largefile was given.
4359 if test "${enable_largefile+set}" = set; then :
4360 enableval=$enable_largefile;
4363 if test "$enable_largefile" != no; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4366 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4367 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4370 ac_cv_sys_largefile_CC=no
4371 if test "$GCC" != yes; then
4374 # IRIX 6.2 and later do not support large files by default,
4375 # so use the C compiler's -n32 option if that helps.
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 #include <sys/types.h>
4379 /* Check that off_t can represent 2**63 - 1 correctly.
4380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4381 since some C++ compilers masquerading as C compilers
4382 incorrectly reject 9223372036854775807. */
4383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4385 && LARGE_OFF_T % 2147483647 == 1)
4395 if ac_fn_c_try_compile "$LINENO"; then :
4398 rm -f core conftest.err conftest.$ac_objext
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401 ac_cv_sys_largefile_CC=' -n32'; break
4403 rm -f core conftest.err conftest.$ac_objext
4407 rm -f conftest.$ac_ext
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4411 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4412 if test "$ac_cv_sys_largefile_CC" != no; then
4413 CC=$CC$ac_cv_sys_largefile_CC
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4417 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4418 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424 #include <sys/types.h>
4425 /* Check that off_t can represent 2**63 - 1 correctly.
4426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4427 since some C++ compilers masquerading as C compilers
4428 incorrectly reject 9223372036854775807. */
4429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4431 && LARGE_OFF_T % 2147483647 == 1)
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442 ac_cv_sys_file_offset_bits=no; break
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #define _FILE_OFFSET_BITS 64
4448 #include <sys/types.h>
4449 /* Check that off_t can represent 2**63 - 1 correctly.
4450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4451 since some C++ compilers masquerading as C compilers
4452 incorrectly reject 9223372036854775807. */
4453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4455 && LARGE_OFF_T % 2147483647 == 1)
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466 ac_cv_sys_file_offset_bits=64; break
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 ac_cv_sys_file_offset_bits=unknown
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4474 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4475 case $ac_cv_sys_file_offset_bits in #(
4478 cat >>confdefs.h <<_ACEOF
4479 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4484 if test $ac_cv_sys_file_offset_bits = unknown; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4486 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4487 if test "${ac_cv_sys_large_files+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493 #include <sys/types.h>
4494 /* Check that off_t can represent 2**63 - 1 correctly.
4495 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4496 since some C++ compilers masquerading as C compilers
4497 incorrectly reject 9223372036854775807. */
4498 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4500 && LARGE_OFF_T % 2147483647 == 1)
4510 if ac_fn_c_try_compile "$LINENO"; then :
4511 ac_cv_sys_large_files=no; break
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #define _LARGE_FILES 1
4517 #include <sys/types.h>
4518 /* Check that off_t can represent 2**63 - 1 correctly.
4519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4520 since some C++ compilers masquerading as C compilers
4521 incorrectly reject 9223372036854775807. */
4522 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4524 && LARGE_OFF_T % 2147483647 == 1)
4534 if ac_fn_c_try_compile "$LINENO"; then :
4535 ac_cv_sys_large_files=1; break
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cv_sys_large_files=unknown
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4543 $as_echo "$ac_cv_sys_large_files" >&6; }
4544 case $ac_cv_sys_large_files in #(
4547 cat >>confdefs.h <<_ACEOF
4548 #define _LARGE_FILES $ac_cv_sys_large_files
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4561 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4562 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4565 am_cv_prog_cc_stdc=no
4567 # Don't try gcc -ansi; that turns off useful extensions and
4568 # breaks some systems' header files.
4569 # AIX -qlanglvl=ansi
4570 # Ultrix and OSF/1 -std1
4571 # HP-UX 10.20 and later -Ae
4572 # HP-UX older versions -Aa -D_HPUX_SOURCE
4573 # SVR4 -Xc -D__EXTENSIONS__
4574 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4576 CC="$ac_save_CC $ac_arg"
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4581 #include <sys/types.h>
4582 #include <sys/stat.h>
4583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4584 struct buf { int x; };
4585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4586 static char *e (p, i)
4592 static char *f (char * (*g) (char **, int), char **p, ...)
4597 s = g (p, va_arg (v,int));
4601 int test (int i, double x);
4602 struct s1 {int (*f) (int a);};
4603 struct s2 {int (*f) (double a);};
4604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4612 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619 am_cv_prog_cc_stdc="$ac_arg"; break
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 if test -z "$am_cv_prog_cc_stdc"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4629 $as_echo "none needed" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4632 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4634 case "x$am_cv_prog_cc_stdc" in
4636 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4641 for ac_dir in .. "$srcdir"/..; do
4642 for ac_t in install-sh install.sh shtool; do
4643 if test -f "$ac_dir/$ac_t"; then
4645 ac_install_sh="$ac_aux_dir/$ac_t -c"
4650 if test -z "$ac_aux_dir"; then
4651 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4654 # These three variables are undocumented and unsupported,
4655 # and are intended to be withdrawn in a future Autoconf release.
4656 # They can cause serious problems if a builder's source tree is in a directory
4657 # whose full name contains unusual characters.
4658 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4659 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4660 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4665 # Dependency checking.
4666 rm -rf .tst 2>/dev/null
4667 mkdir .tst 2>/dev/null
4668 if test -d .tst; then
4673 rmdir .tst 2>/dev/null
4675 DEPDIR="${am__leading_dot}deps"
4677 ac_config_commands="$ac_config_commands depdir"
4680 depcc="$CC" am_compiler_list=
4682 am_depcomp=$ac_aux_dir/depcomp
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4684 $as_echo_n "checking dependency style of $depcc... " >&6; }
4685 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4688 if test -f "$am_depcomp"; then
4689 # We make a subdir and do the tests there. Otherwise we can end up
4690 # making bogus files that we don't know about and never remove. For
4691 # instance it was reported that on HP-UX the gcc test will end up
4692 # making a dummy file named `D' -- because `-MD' means `put the output
4695 # Copy depcomp to subdir because otherwise we won't find it if we're
4696 # using a relative directory.
4697 cp "$am_depcomp" conftest.dir
4699 # We will build objects and dependencies in a subdirectory because
4700 # it helps to detect inapplicable dependency modes. For instance
4701 # both Tru64's cc and ICC support -MD to output dependencies as a
4702 # side effect of compilation, but ICC will put the dependencies in
4703 # the current directory while Tru64 will put them in the object
4707 am_cv_CC_dependencies_compiler_type=none
4708 if test "$am_compiler_list" = ""; then
4709 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4711 for depmode in $am_compiler_list; do
4712 if test $depmode = none; then break; fi
4714 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4715 # Setup a source with many dependencies, because some compilers
4716 # like to wrap large dependency lists on column 80 (with \), and
4717 # we should not choose a depcomp mode which is confused by this.
4719 # We need to recreate these files for each test, as the compiler may
4720 # overwrite some of them when testing with obscure command lines.
4721 # This happens at least with the AIX C compiler.
4723 for i in 1 2 3 4 5 6; do
4724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4725 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4726 # Solaris 8's {/usr,}/bin/sh.
4727 touch sub/conftst$i.h
4729 echo "include sub/conftest.Po" > confmf
4731 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4732 # mode. It turns out that the SunPro C++ compiler does not properly
4733 # handle `-M -o', and we need to detect this.
4734 depcmd="depmode=$depmode \
4735 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4736 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4737 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4738 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4739 if env $depcmd > conftest.err 2>&1 &&
4740 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4741 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4742 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4743 # icc doesn't choke on unknown options, it will just issue warnings
4744 # or remarks (even with -Werror). So we grep stderr for any message
4745 # that says an option was ignored or not supported.
4746 # When given -MP, icc 7.0 and 7.1 complain thusly:
4747 # icc: Command line warning: ignoring option '-M'; no argument required
4748 # The diagnosis changed in icc 8.0:
4749 # icc: Command line remark: option '-MP' not supported
4750 if (grep 'ignoring option' conftest.err ||
4751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4752 am_cv_CC_dependencies_compiler_type=$depmode
4753 $as_echo "$as_me:$LINENO: success" >&5
4757 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4758 sed -e 's/^/| /' < conftest.err >&5
4764 am_cv_CC_dependencies_compiler_type=none
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4769 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4770 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4771 then as_fn_error "no usable dependency style found" "$LINENO" 5
4772 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4777 # Check for the 'make' the user wants to use.
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_MAKE+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4787 if test -n "$MAKE"; then
4788 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_MAKE="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 MAKE=$ac_cv_prog_MAKE
4808 if test -n "$MAKE"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4810 $as_echo "$MAKE" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 test -n "$MAKE" && break
4821 case "`$MAKE --version 2>&1 | sed 1q`" in
4826 if test "$MAKE_IS_GNU" = yes; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4835 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4837 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4838 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4839 $as_echo_n "(cached) " >&6
4841 cat >conftest.make <<\_ACEOF
4844 @echo '@@@%%%=$(MAKE)=@@@%%%'
4846 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4847 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4849 eval ac_cv_prog_make_${ac_make}_set=yes;;
4851 eval ac_cv_prog_make_${ac_make}_set=no;;
4855 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4857 $as_echo "yes" >&6; }
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862 SET_MAKE="MAKE=${MAKE-make}"
4877 # If we haven't got the data from the intl directory,
4878 # assume NLS is disabled.
4887 if test -f ../intl/config.intl; then
4888 . ../intl/config.intl
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4891 $as_echo_n "checking whether NLS is requested... " >&6; }
4892 if test x"$USE_NLS" != xyes; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4897 $as_echo "yes" >&6; }
4899 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4903 $as_echo_n "checking for catalogs to be installed... " >&6; }
4904 # Look for .po and .gmo files in the source directory.
4907 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4908 # If there aren't any .gmo files the shell will give us the
4909 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4911 case "$cat" in *\**)
4914 # The quadruple backslash is collapsed to a double backslash
4915 # by the backticks, then collapsed again by the double quotes,
4916 # leaving us with one backslash in the sed expression (right
4917 # before the dot that mustn't act as a wildcard).
4918 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4919 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4920 # The user is allowed to set LINGUAS to a list of languages to
4921 # install catalogs for. If it's empty that means "all of them."
4922 if test "x$LINGUAS" = x; then
4923 CATALOGS="$CATALOGS $cat"
4924 XLINGUAS="$XLINGUAS $lang"
4926 case "$LINGUAS" in *$lang*)
4927 CATALOGS="$CATALOGS $cat"
4928 XLINGUAS="$XLINGUAS $lang"
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4935 $as_echo "$LINGUAS" >&6; }
4948 localedir='${datadir}/locale'
4951 if test x"$USE_NLS" = xyes; then
4952 CONFIG_ALL="$CONFIG_ALL all-po"
4953 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4954 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4955 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4962 LIBC_FATAL_STDERR_=1
4963 export LIBC_FATAL_STDERR_
4969 for ac_header in $gl_header_list
4971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4973 eval as_val=\$$as_ac_Header
4974 if test "x$as_val" = x""yes; then :
4975 cat >>confdefs.h <<_ACEOF
4976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4991 for ac_func in $gl_func_list
4993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4994 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4995 eval as_val=\$$as_ac_var
4996 if test "x$as_val" = x""yes; then :
4997 cat >>confdefs.h <<_ACEOF
4998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5024 GNULIB_STRCASESTR=0;
5031 GNULIB_MBSCASECMP=0;
5032 GNULIB_MBSNCASECMP=0;
5033 GNULIB_MBSPCASECMP=0;
5034 GNULIB_MBSCASESTR=0;
5042 GNULIB_STRVERSCMP=0;
5047 HAVE_DECL_MEMRCHR=1;
5053 HAVE_DECL_STRNDUP=1;
5054 HAVE_DECL_STRNLEN=1;
5058 HAVE_DECL_STRTOK_R=1;
5059 HAVE_DECL_STRSIGNAL=1;
5066 REPLACE_STRCASESTR=0;
5071 REPLACE_STRSIGNAL=0;
5073 UNDEFINE_STRTOK_R=0;
5087 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5088 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5089 # irrelevant for anonymous mappings.
5090 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5091 if test "x$ac_cv_func_mmap" = x""yes; then :
5098 # Try to allow MAP_ANONYMOUS.
5099 gl_have_mmap_anonymous=no
5100 if test $gl_have_mmap = yes; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5102 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5106 #include <sys/mman.h>
5107 #ifdef MAP_ANONYMOUS
5108 I cant identify this map.
5112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5113 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5114 gl_have_mmap_anonymous=yes
5118 if test $gl_have_mmap_anonymous != yes; then
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5122 #include <sys/mman.h>
5124 I cant identify this map.
5128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5129 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5131 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5133 gl_have_mmap_anonymous=yes
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5139 $as_echo "$gl_have_mmap_anonymous" >&6; }
5140 if test $gl_have_mmap_anonymous = yes; then
5142 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5170 if test $ac_cv_func_memchr = yes; then
5171 # Detect platform-specific bugs in some versions of glibc:
5172 # memchr should not dereference anything with length 0
5173 # http://bugzilla.redhat.com/499689
5174 # memchr should not dereference overestimated length after a match
5175 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5176 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5177 # Assume that memchr works on platforms that lack mprotect.
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5179 $as_echo_n "checking whether memchr works... " >&6; }
5180 if test "${gl_cv_func_memchr_works+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5183 if test "$cross_compiling" = yes; then :
5184 gl_cv_func_memchr_works="guessing no"
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5192 # include <unistd.h>
5193 # include <sys/types.h>
5194 # include <sys/mman.h>
5205 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5206 # if HAVE_MAP_ANONYMOUS
5207 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5209 # else /* !HAVE_MAP_ANONYMOUS */
5210 const int flags = MAP_FILE | MAP_PRIVATE;
5211 int fd = open ("/dev/zero", O_RDONLY, 0666);
5215 int pagesize = getpagesize ();
5217 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5219 if (two_pages != (char *)(-1)
5220 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5221 fence = two_pages + pagesize;
5226 if (memchr (fence, 0, 0))
5228 strcpy (fence - 9, "12345678");
5229 if (memchr (fence - 9, 0, 79) != fence - 1)
5238 if ac_fn_c_try_run "$LINENO"; then :
5239 gl_cv_func_memchr_works=yes
5241 gl_cv_func_memchr_works=no
5243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5244 conftest.$ac_objext conftest.beam conftest.$ac_ext
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5249 $as_echo "$gl_cv_func_memchr_works" >&6; }
5250 if test "$gl_cv_func_memchr_works" != yes; then
5256 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5265 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5268 for ac_header in bp-sym.h
5270 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5271 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5272 cat >>confdefs.h <<_ACEOF
5273 #define HAVE_BP_SYM_H 1
5284 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5285 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5291 cat >>confdefs.h <<_ACEOF
5292 #define HAVE_DECL_MEMMEM $ac_have_decl
5308 for ac_func in memmem
5310 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5311 if test "x$ac_cv_func_memmem" = x""yes; then :
5312 cat >>confdefs.h <<_ACEOF
5313 #define HAVE_MEMMEM 1
5318 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5331 if test $ac_cv_have_decl_memmem = no; then
5337 gl_cv_c_multiarch=no
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340 #ifndef __APPLE_CC__
5341 not a universal capable compiler
5346 if ac_fn_c_try_compile "$LINENO"; then :
5350 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5351 if test -n "$prev"; then
5353 i?86 | x86_64 | ppc | ppc64)
5354 if test -z "$arch" || test "$arch" = "$word"; then
5357 gl_cv_c_multiarch=yes
5363 if test "x$word" = "x-arch"; then
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 if test $gl_cv_c_multiarch = yes; then
5373 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5375 APPLE_UNIVERSAL_BUILD=1
5377 APPLE_UNIVERSAL_BUILD=0
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5388 $as_echo_n "checking for wchar_t... " >&6; }
5389 if test "${gt_cv_c_wchar_t+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5395 wchar_t foo = (wchar_t)'\0';
5404 if ac_fn_c_try_compile "$LINENO"; then :
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5412 $as_echo "$gt_cv_c_wchar_t" >&6; }
5413 if test $gt_cv_c_wchar_t = yes; then
5415 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5422 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5423 if test "${gl_cv_have_include_next+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5426 rm -rf conftestd1a conftestd1b conftestd2
5427 mkdir conftestd1a conftestd1b conftestd2
5428 cat <<EOF > conftestd1a/conftest.h
5429 #define DEFINED_IN_CONFTESTD1
5430 #include_next <conftest.h>
5431 #ifdef DEFINED_IN_CONFTESTD2
5434 #error "include_next doesn't work"
5437 cat <<EOF > conftestd1b/conftest.h
5438 #define DEFINED_IN_CONFTESTD1
5440 #include_next <conftest.h>
5441 #ifdef DEFINED_IN_CONFTESTD2
5444 #error "include_next doesn't work"
5447 cat <<EOF > conftestd2/conftest.h
5448 #ifndef DEFINED_IN_CONFTESTD1
5449 #error "include_next test doesn't work"
5451 #define DEFINED_IN_CONFTESTD2
5453 gl_save_CPPFLAGS="$CPPFLAGS"
5454 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 #include <conftest.h>
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 gl_cv_have_include_next=yes
5462 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 #include <conftest.h>
5467 if ac_fn_c_try_compile "$LINENO"; then :
5468 gl_cv_have_include_next=buggy
5470 gl_cv_have_include_next=no
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 CPPFLAGS="$gl_save_CPPFLAGS"
5477 rm -rf conftestd1a conftestd1b conftestd2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5481 $as_echo "$gl_cv_have_include_next" >&6; }
5482 PRAGMA_SYSTEM_HEADER=
5483 if test $gl_cv_have_include_next = yes; then
5484 INCLUDE_NEXT=include_next
5485 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5486 if test -n "$GCC"; then
5487 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5490 if test $gl_cv_have_include_next = buggy; then
5491 INCLUDE_NEXT=include
5492 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5494 INCLUDE_NEXT=include
5495 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5509 $as_echo_n "checking for long long int... " >&6; }
5510 if test "${ac_cv_type_long_long_int+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5516 /* For now, do not test the preprocessor; as of 2007 there are too many
5517 implementations with broken preprocessors. Perhaps this can
5518 be revisited in 2012. In the meantime, code should not expect
5519 #if to work with literals wider than 32 bits. */
5520 /* Test literals. */
5521 long long int ll = 9223372036854775807ll;
5522 long long int nll = -9223372036854775807LL;
5523 unsigned long long int ull = 18446744073709551615ULL;
5524 /* Test constant expressions. */
5525 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5527 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5533 /* Test availability of runtime routines for shift and division. */
5534 long long int llmax = 9223372036854775807ll;
5535 unsigned long long int ullmax = 18446744073709551615ull;
5536 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5537 | (llmax / ll) | (llmax % ll)
5538 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5539 | (ullmax / ull) | (ullmax % ull));
5545 if ac_fn_c_try_link "$LINENO"; then :
5546 if test "$cross_compiling" = yes; then :
5547 ac_cv_type_long_long_int=yes
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5554 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5555 # define LLONG_MAX (HALF - 1 + HALF)
5560 long long int n = 1;
5564 long long int m = n << i;
5567 if (LLONG_MAX / 2 < m)
5575 if ac_fn_c_try_run "$LINENO"; then :
5576 ac_cv_type_long_long_int=yes
5578 ac_cv_type_long_long_int=no
5580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5581 conftest.$ac_objext conftest.beam conftest.$ac_ext
5585 ac_cv_type_long_long_int=no
5587 rm -f core conftest.err conftest.$ac_objext \
5588 conftest$ac_exeext conftest.$ac_ext
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5591 $as_echo "$ac_cv_type_long_long_int" >&6; }
5592 if test $ac_cv_type_long_long_int = yes; then
5594 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5600 $as_echo_n "checking for unsigned long long int... " >&6; }
5601 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5602 $as_echo_n "(cached) " >&6
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5607 /* For now, do not test the preprocessor; as of 2007 there are too many
5608 implementations with broken preprocessors. Perhaps this can
5609 be revisited in 2012. In the meantime, code should not expect
5610 #if to work with literals wider than 32 bits. */
5611 /* Test literals. */
5612 long long int ll = 9223372036854775807ll;
5613 long long int nll = -9223372036854775807LL;
5614 unsigned long long int ull = 18446744073709551615ULL;
5615 /* Test constant expressions. */
5616 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5618 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5624 /* Test availability of runtime routines for shift and division. */
5625 long long int llmax = 9223372036854775807ll;
5626 unsigned long long int ullmax = 18446744073709551615ull;
5627 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5628 | (llmax / ll) | (llmax % ll)
5629 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5630 | (ullmax / ull) | (ullmax % ull));
5636 if ac_fn_c_try_link "$LINENO"; then :
5637 ac_cv_type_unsigned_long_long_int=yes
5639 ac_cv_type_unsigned_long_long_int=no
5641 rm -f core conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5645 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5646 if test $ac_cv_type_unsigned_long_long_int = yes; then
5648 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5663 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5664 if test "${ac_cv_c_restrict+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5668 # The order here caters to the fact that C++ does not require restrict.
5669 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 typedef int * int_ptr;
5673 int foo (int_ptr $ac_kw ip) {
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688 ac_cv_c_restrict=$ac_kw
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 test "$ac_cv_c_restrict" != no && break
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5696 $as_echo "$ac_cv_c_restrict" >&6; }
5698 case $ac_cv_c_restrict in
5700 no) $as_echo "#define restrict /**/" >>confdefs.h
5702 *) cat >>confdefs.h <<_ACEOF
5703 #define restrict $ac_cv_c_restrict
5728 if test $gl_cv_have_include_next = yes; then
5729 gl_cv_next_string_h='<'string.h'>'
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5732 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5733 if test "${gl_cv_next_string_h+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5737 if test $ac_cv_header_string_h = yes; then
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5744 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5745 *) gl_absname_cpp="$ac_cpp" ;;
5747 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5748 sed -n '\#/string.h#{
5749 s#.*"\(.*/string.h\)".*#\1#
5755 gl_cv_next_string_h='<'string.h'>'
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5760 $as_echo "$gl_cv_next_string_h" >&6; }
5762 NEXT_STRING_H=$gl_cv_next_string_h
5764 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5765 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5766 gl_next_as_first_directive='<'string.h'>'
5768 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5769 gl_next_as_first_directive=$gl_cv_next_string_h
5771 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5777 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5778 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5780 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5781 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5782 $as_echo_n "(cached) " >&6
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5797 if ac_fn_c_try_compile "$LINENO"; then :
5798 eval "$as_gl_Symbol=yes"
5800 eval "$as_gl_Symbol=no"
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 eval ac_res=\$$as_gl_Symbol
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5806 $as_echo "$ac_res" >&6; }
5807 eval as_val=\$$as_gl_Symbol
5808 if test "x$as_val" = x""yes; then :
5809 cat >>confdefs.h <<_ACEOF
5810 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5813 eval ac_cv_have_decl_$gl_func=yes
5825 GNULIB_MBSNRTOWCS=0;
5828 GNULIB_WCSNRTOMBS=0;
5840 HAVE_DECL_WCWIDTH=1;
5841 REPLACE_MBSTATE_T=0;
5847 REPLACE_MBSRTOWCS=0;
5848 REPLACE_MBSNRTOWCS=0;
5850 REPLACE_WCSRTOMBS=0;
5851 REPLACE_WCSNRTOMBS=0;
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5856 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5857 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5860 gl_cv_header_wchar_h_correct_inline=yes
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5864 #define wcstod renamed_wcstod
5866 extern int zero (void);
5867 int main () { return zero(); }
5870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5871 (eval $ac_compile) 2>&5
5873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874 test $ac_status = 0; }; then
5875 mv conftest.$ac_objext conftest1.$ac_objext
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5879 #define wcstod renamed_wcstod
5881 int zero (void) { return 0; }
5884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5885 (eval $ac_compile) 2>&5
5887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888 test $ac_status = 0; }; then
5889 mv conftest.$ac_objext conftest2.$ac_objext
5890 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5893 gl_cv_header_wchar_h_correct_inline=no
5897 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5901 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5902 if test $gl_cv_header_wchar_h_correct_inline = no; then
5903 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5904 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5905 C99 mode. You have four options:
5906 - Add the flag -fgnu89-inline to CC and reconfigure, or
5907 - Fix your include files, using parts of
5908 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5909 - Use a gcc version older than 4.3, or
5910 - Don't use the flags -std=c99 or -std=gnu99.
5911 Configuration aborted." "$LINENO" 5
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5916 $as_echo_n "checking for wint_t... " >&6; }
5917 if test "${gt_cv_c_wint_t+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5923 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5925 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5926 before <wchar.h>. */
5931 wint_t foo = (wchar_t)'\0';
5940 if ac_fn_c_try_compile "$LINENO"; then :
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5948 $as_echo "$gt_cv_c_wint_t" >&6; }
5949 if test $gt_cv_c_wint_t = yes; then
5951 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5957 GL_COND_LIBTOOL_TRUE=
5958 GL_COND_LIBTOOL_FALSE='#'
5960 GL_COND_LIBTOOL_TRUE='#'
5961 GL_COND_LIBTOOL_FALSE=
5964 gl_cond_libtool=false
5967 gl_m4_base='gnulib/m4'
5977 gl_source_base='gnulib'
5978 # Code from module arg-nonnull:
5979 # Code from module c++defs:
5980 # Code from module extensions:
5981 # Code from module include_next:
5982 # Code from module memchr:
5991 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5995 # Code from module memmem:
5998 if test $ac_cv_have_decl_memmem = yes; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6000 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6001 if test "${gl_cv_func_memmem_works+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6004 if test "$cross_compiling" = yes; then :
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6008 #include <features.h>
6009 #ifdef __GNU_LIBRARY__
6010 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6015 #include <cygwin/version.h>
6016 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023 $EGREP "Lucky user" >/dev/null 2>&1; then :
6024 gl_cv_func_memmem_works=yes
6026 gl_cv_func_memmem_works="guessing no"
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6035 #include <signal.h> /* for signal */
6036 #include <string.h> /* for memmem */
6037 #include <stdlib.h> /* for malloc */
6038 #include <unistd.h> /* for alarm */
6044 char *haystack = (char *) malloc (2 * m + 1);
6045 char *needle = (char *) malloc (m + 1);
6047 /* Failure to compile this test due to missing alarm is okay,
6048 since all such platforms (mingw) also lack memmem. */
6049 signal (SIGALRM, SIG_DFL);
6051 /* Check for quadratic performance. */
6052 if (haystack && needle)
6054 memset (haystack, 'A', 2 * m);
6055 haystack[2 * m] = 'B';
6056 memset (needle, 'A', m);
6058 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6060 /* Check for empty needle behavior. */
6061 return !result || !memmem ("a", 1, 0, 0);
6066 if ac_fn_c_try_run "$LINENO"; then :
6067 gl_cv_func_memmem_works=yes
6069 gl_cv_func_memmem_works=no
6071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6072 conftest.$ac_objext conftest.beam conftest.$ac_ext
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6078 $as_echo "$gl_cv_func_memmem_works" >&6; }
6079 if test "$gl_cv_func_memmem_works" != yes; then
6089 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6094 # Code from module memmem-simple:
6107 for ac_func in memmem
6109 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6110 if test "x$ac_cv_func_memmem" = x""yes; then :
6111 cat >>confdefs.h <<_ACEOF
6112 #define HAVE_MEMMEM 1
6117 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6130 if test $ac_cv_have_decl_memmem = no; then
6142 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6146 # Code from module multiarch:
6148 # Code from module stddef:
6152 if test $gt_cv_c_wchar_t = no; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6157 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6158 if test "${gl_cv_decl_null_works+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6164 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175 gl_cv_decl_null_works=yes
6177 gl_cv_decl_null_works=no
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6182 $as_echo "$gl_cv_decl_null_works" >&6; }
6183 if test $gl_cv_decl_null_works = no; then
6187 if test -n "$STDDEF_H"; then
6200 if test $gl_cv_have_include_next = yes; then
6201 gl_cv_next_stddef_h='<'stddef.h'>'
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6204 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6205 if test "${gl_cv_next_stddef_h+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6209 if test $ac_cv_header_stddef_h = yes; then
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6216 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6217 *) gl_absname_cpp="$ac_cpp" ;;
6219 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6220 sed -n '\#/stddef.h#{
6221 s#.*"\(.*/stddef.h\)".*#\1#
6227 gl_cv_next_stddef_h='<'stddef.h'>'
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6232 $as_echo "$gl_cv_next_stddef_h" >&6; }
6234 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6236 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6238 gl_next_as_first_directive='<'stddef.h'>'
6240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6241 gl_next_as_first_directive=$gl_cv_next_stddef_h
6243 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6249 # Code from module stdint:
6253 if test $ac_cv_type_long_long_int = yes; then
6254 HAVE_LONG_LONG_INT=1
6256 HAVE_LONG_LONG_INT=0
6260 if test $ac_cv_type_unsigned_long_long_int = yes; then
6261 HAVE_UNSIGNED_LONG_LONG_INT=1
6263 HAVE_UNSIGNED_LONG_LONG_INT=0
6267 if test $ac_cv_header_inttypes_h = yes; then
6274 if test $ac_cv_header_sys_types_h = yes; then
6293 if test $gl_cv_have_include_next = yes; then
6294 gl_cv_next_stdint_h='<'stdint.h'>'
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6297 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6298 if test "${gl_cv_next_stdint_h+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6302 if test $ac_cv_header_stdint_h = yes; then
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6309 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6310 *) gl_absname_cpp="$ac_cpp" ;;
6312 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6313 sed -n '\#/stdint.h#{
6314 s#.*"\(.*/stdint.h\)".*#\1#
6320 gl_cv_next_stdint_h='<'stdint.h'>'
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6325 $as_echo "$gl_cv_next_stdint_h" >&6; }
6327 NEXT_STDINT_H=$gl_cv_next_stdint_h
6329 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6331 gl_next_as_first_directive='<'stdint.h'>'
6333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6334 gl_next_as_first_directive=$gl_cv_next_stdint_h
6336 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6340 if test $ac_cv_header_stdint_h = yes; then
6347 if test $ac_cv_header_stdint_h = yes; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6349 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6350 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6353 gl_cv_header_working_stdint_h=no
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6358 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6359 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6360 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6362 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6363 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6364 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6368 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6369 included before <wchar.h>. */
6380 int8_t a1 = INT8_MAX;
6381 int8_t a1min = INT8_MIN;
6384 int16_t a2 = INT16_MAX;
6385 int16_t a2min = INT16_MIN;
6388 int32_t a3 = INT32_MAX;
6389 int32_t a3min = INT32_MIN;
6392 int64_t a4 = INT64_MAX;
6393 int64_t a4min = INT64_MIN;
6396 uint8_t b1 = UINT8_MAX;
6398 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6401 uint16_t b2 = UINT16_MAX;
6404 uint32_t b3 = UINT32_MAX;
6407 uint64_t b4 = UINT64_MAX;
6409 int_least8_t c1 = INT8_C (0x7f);
6410 int_least8_t c1max = INT_LEAST8_MAX;
6411 int_least8_t c1min = INT_LEAST8_MIN;
6412 int_least16_t c2 = INT16_C (0x7fff);
6413 int_least16_t c2max = INT_LEAST16_MAX;
6414 int_least16_t c2min = INT_LEAST16_MIN;
6415 int_least32_t c3 = INT32_C (0x7fffffff);
6416 int_least32_t c3max = INT_LEAST32_MAX;
6417 int_least32_t c3min = INT_LEAST32_MIN;
6418 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6419 int_least64_t c4max = INT_LEAST64_MAX;
6420 int_least64_t c4min = INT_LEAST64_MIN;
6421 uint_least8_t d1 = UINT8_C (0xff);
6422 uint_least8_t d1max = UINT_LEAST8_MAX;
6423 uint_least16_t d2 = UINT16_C (0xffff);
6424 uint_least16_t d2max = UINT_LEAST16_MAX;
6425 uint_least32_t d3 = UINT32_C (0xffffffff);
6426 uint_least32_t d3max = UINT_LEAST32_MAX;
6427 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6428 uint_least64_t d4max = UINT_LEAST64_MAX;
6429 int_fast8_t e1 = INT_FAST8_MAX;
6430 int_fast8_t e1min = INT_FAST8_MIN;
6431 int_fast16_t e2 = INT_FAST16_MAX;
6432 int_fast16_t e2min = INT_FAST16_MIN;
6433 int_fast32_t e3 = INT_FAST32_MAX;
6434 int_fast32_t e3min = INT_FAST32_MIN;
6435 int_fast64_t e4 = INT_FAST64_MAX;
6436 int_fast64_t e4min = INT_FAST64_MIN;
6437 uint_fast8_t f1 = UINT_FAST8_MAX;
6438 uint_fast16_t f2 = UINT_FAST16_MAX;
6439 uint_fast32_t f3 = UINT_FAST32_MAX;
6440 uint_fast64_t f4 = UINT_FAST64_MAX;
6442 intptr_t g = INTPTR_MAX;
6443 intptr_t gmin = INTPTR_MIN;
6446 uintptr_t h = UINTPTR_MAX;
6448 intmax_t i = INTMAX_MAX;
6449 uintmax_t j = UINTMAX_MAX;
6451 #include <limits.h> /* for CHAR_BIT */
6452 #define TYPE_MINIMUM(t) \
6453 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6454 #define TYPE_MAXIMUM(t) \
6455 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6458 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6459 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6461 /* Detect bug in FreeBSD 6.0 / ia64. */
6462 int check_SIG_ATOMIC:
6463 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6464 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6466 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6468 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6469 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6471 /* Detect bug in mingw. */
6473 WINT_MIN == TYPE_MINIMUM (wint_t)
6474 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6477 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6479 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6481 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6483 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6485 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6488 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6491 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6494 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6496 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6497 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6498 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6499 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6500 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6501 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6502 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6503 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6504 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6505 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6506 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6517 if ac_fn_c_try_compile "$LINENO"; then :
6518 if test "$cross_compiling" = yes; then :
6519 gl_cv_header_working_stdint_h=yes
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6526 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6527 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6528 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6532 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6533 included before <wchar.h>. */
6545 #define MVAL(macro) MVAL1(macro)
6546 #define MVAL1(expression) #expression
6547 static const char *macro_values[] =
6581 for (mv = macro_values; *mv != NULL; mv++)
6583 const char *value = *mv;
6584 /* Test whether it looks like a cast expression. */
6585 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6586 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6587 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6588 || strncmp (value, "((int)"/*)*/, 6) == 0
6589 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6590 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6599 if ac_fn_c_try_run "$LINENO"; then :
6600 gl_cv_header_working_stdint_h=yes
6602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6603 conftest.$ac_objext conftest.beam conftest.$ac_ext
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6612 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6614 if test "$gl_cv_header_working_stdint_h" = yes; then
6617 for ac_header in sys/inttypes.h sys/bitypes.h
6619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6620 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6621 eval as_val=\$$as_ac_Header
6622 if test "x$as_val" = x""yes; then :
6623 cat >>confdefs.h <<_ACEOF
6624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 if test $ac_cv_header_sys_inttypes_h = yes; then
6632 HAVE_SYS_INTTYPES_H=1
6634 HAVE_SYS_INTTYPES_H=0
6637 if test $ac_cv_header_sys_bitypes_h = yes; then
6638 HAVE_SYS_BITYPES_H=1
6640 HAVE_SYS_BITYPES_H=0
6654 if test $APPLE_UNIVERSAL_BUILD = 0; then
6657 for gltype in ptrdiff_t size_t ; do
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6659 $as_echo_n "checking for bit size of $gltype... " >&6; }
6660 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6661 $as_echo_n "(cached) " >&6
6663 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6664 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6665 included before <wchar.h>. */
6674 #include <limits.h>"; then :
6680 eval gl_cv_bitsizeof_${gltype}=\$result
6683 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6685 $as_echo "$ac_res" >&6; }
6686 eval result=\$gl_cv_bitsizeof_${gltype}
6687 if test $result = unknown; then
6690 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6691 cat >>confdefs.h <<_ACEOF
6692 #define BITSIZEOF_${GLTYPE} $result
6695 eval BITSIZEOF_${GLTYPE}=\$result
6702 for gltype in sig_atomic_t wchar_t wint_t ; do
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6704 $as_echo_n "checking for bit size of $gltype... " >&6; }
6705 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6706 $as_echo_n "(cached) " >&6
6708 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6709 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6710 included before <wchar.h>. */
6719 #include <limits.h>"; then :
6725 eval gl_cv_bitsizeof_${gltype}=\$result
6728 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6730 $as_echo "$ac_res" >&6; }
6731 eval result=\$gl_cv_bitsizeof_${gltype}
6732 if test $result = unknown; then
6735 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6736 cat >>confdefs.h <<_ACEOF
6737 #define BITSIZEOF_${GLTYPE} $result
6740 eval BITSIZEOF_${GLTYPE}=\$result
6746 for gltype in sig_atomic_t wchar_t wint_t ; do
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6748 $as_echo_n "checking whether $gltype is signed... " >&6; }
6749 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6750 $as_echo_n "(cached) " >&6
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6755 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6756 included before <wchar.h>. */
6765 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6774 if ac_fn_c_try_compile "$LINENO"; then :
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 eval gl_cv_type_${gltype}_signed=\$result
6783 eval ac_res=\$gl_cv_type_${gltype}_signed
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6785 $as_echo "$ac_res" >&6; }
6786 eval result=\$gl_cv_type_${gltype}_signed
6787 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6788 if test "$result" = yes; then
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_SIGNED_${GLTYPE} 1
6793 eval HAVE_SIGNED_${GLTYPE}=1
6795 eval HAVE_SIGNED_${GLTYPE}=0
6800 gl_cv_type_ptrdiff_t_signed=yes
6801 gl_cv_type_size_t_signed=no
6802 if test $APPLE_UNIVERSAL_BUILD = 0; then
6805 for gltype in ptrdiff_t size_t ; do
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6807 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6808 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6809 $as_echo_n "(cached) " >&6
6811 eval gl_cv_type_${gltype}_suffix=no
6812 eval result=\$gl_cv_type_${gltype}_signed
6813 if test "$result" = yes; then
6818 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6821 l) gltype1='long int';;
6822 ll) gltype1='long long int';;
6823 i64) gltype1='__int64';;
6824 u) gltype1='unsigned int';;
6825 ul) gltype1='unsigned long int';;
6826 ull) gltype1='unsigned long long int';;
6827 ui64)gltype1='unsigned __int64';;
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6832 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6833 included before <wchar.h>. */
6843 extern $gltype1 foo;
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853 eval gl_cv_type_${gltype}_suffix=\$glsuf
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 eval result=\$gl_cv_type_${gltype}_suffix
6857 test "$result" != no && break
6860 eval ac_res=\$gl_cv_type_${gltype}_suffix
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6862 $as_echo "$ac_res" >&6; }
6863 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6864 eval result=\$gl_cv_type_${gltype}_suffix
6865 test "$result" = no && result=
6866 eval ${GLTYPE}_SUFFIX=\$result
6867 cat >>confdefs.h <<_ACEOF
6868 #define ${GLTYPE}_SUFFIX $result
6877 for gltype in sig_atomic_t wchar_t wint_t ; do
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6879 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6880 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6881 $as_echo_n "(cached) " >&6
6883 eval gl_cv_type_${gltype}_suffix=no
6884 eval result=\$gl_cv_type_${gltype}_signed
6885 if test "$result" = yes; then
6890 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6893 l) gltype1='long int';;
6894 ll) gltype1='long long int';;
6895 i64) gltype1='__int64';;
6896 u) gltype1='unsigned int';;
6897 ul) gltype1='unsigned long int';;
6898 ull) gltype1='unsigned long long int';;
6899 ui64)gltype1='unsigned __int64';;
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6904 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6905 included before <wchar.h>. */
6915 extern $gltype1 foo;
6924 if ac_fn_c_try_compile "$LINENO"; then :
6925 eval gl_cv_type_${gltype}_suffix=\$glsuf
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 eval result=\$gl_cv_type_${gltype}_suffix
6929 test "$result" != no && break
6932 eval ac_res=\$gl_cv_type_${gltype}_suffix
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6934 $as_echo "$ac_res" >&6; }
6935 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6936 eval result=\$gl_cv_type_${gltype}_suffix
6937 test "$result" = no && result=
6938 eval ${GLTYPE}_SUFFIX=\$result
6939 cat >>confdefs.h <<_ACEOF
6940 #define ${GLTYPE}_SUFFIX $result
6951 # Code from module string:
6955 # Code from module warn-on-use:
6956 # Code from module wchar:
6979 if test $gl_cv_have_include_next = yes; then
6980 gl_cv_next_wchar_h='<'wchar.h'>'
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6983 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6984 if test "${gl_cv_next_wchar_h+set}" = set; then :
6985 $as_echo_n "(cached) " >&6
6988 if test $ac_cv_header_wchar_h = yes; then
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6995 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6996 *) gl_absname_cpp="$ac_cpp" ;;
6998 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6999 sed -n '\#/wchar.h#{
7000 s#.*"\(.*/wchar.h\)".*#\1#
7006 gl_cv_next_wchar_h='<'wchar.h'>'
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7011 $as_echo "$gl_cv_next_wchar_h" >&6; }
7013 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7015 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7016 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7017 gl_next_as_first_directive='<'wchar.h'>'
7019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7020 gl_next_as_first_directive=$gl_cv_next_wchar_h
7022 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7026 if test $ac_cv_header_wchar_h = yes; then
7034 if test $gt_cv_c_wint_t = yes; then
7042 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7043 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7045 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7046 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7047 $as_echo_n "(cached) " >&6
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7052 /* Some systems require additional headers. */
7054 # include <stddef.h>
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070 eval "$as_gl_Symbol=yes"
7072 eval "$as_gl_Symbol=no"
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 eval ac_res=\$$as_gl_Symbol
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7078 $as_echo "$ac_res" >&6; }
7079 eval as_val=\$$as_gl_Symbol
7080 if test "x$as_val" = x""yes; then :
7081 cat >>confdefs.h <<_ACEOF
7082 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7085 eval ac_cv_have_decl_$gl_func=yes
7090 # Code from module dummy:
7091 # End of code from modules
7112 gl_source_base='tests'
7113 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
7115 gl_module_indicator_condition=$gltests_WITNESS
7125 LIBGNU_LIBDEPS="$gl_libdeps"
7127 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7131 # For Makefile dependencies.
7133 if test x"$STDINT_H" != x; then
7134 GNULIB_STDINT_H=gnulib/$STDINT_H
7140 cat >>confdefs.h <<_ACEOF
7141 #define PACKAGE "$PACKAGE"
7146 # GDB does not use automake, but gnulib does. This line lets us
7147 # generate its Makefile.in.
7148 am__api_version='1.11'
7150 # Find a good install program. We prefer a C program (faster),
7151 # so one script is as good as another. But avoid the broken or
7152 # incompatible versions:
7153 # SysV /etc/install, /usr/sbin/install
7154 # SunOS /usr/etc/install
7155 # IRIX /sbin/install
7157 # AmigaOS /C/install, which installs bootblocks on floppy discs
7158 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7159 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7160 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7161 # OS/2's system install, which has a completely different semantic
7162 # ./install, which can be erroneously created by make from ./install.sh.
7163 # Reject install programs that cannot install multiple files.
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7165 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7166 if test -z "$INSTALL"; then
7167 if test "${ac_cv_path_install+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 # Account for people who put trailing slashes in PATH elements.
7176 case $as_dir/ in #((
7177 ./ | .// | /[cC]/* | \
7178 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7179 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7182 # OSF1 and SCO ODT 3.0 have their own names for install.
7183 # Don't use installbsd from OSF since it installs stuff as root
7185 for ac_prog in ginstall scoinst install; do
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7188 if test $ac_prog = install &&
7189 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7190 # AIX install. It has an incompatible calling convention.
7192 elif test $ac_prog = install &&
7193 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7194 # program-specific install script used by HP pwplus--don't use.
7197 rm -rf conftest.one conftest.two conftest.dir
7198 echo one > conftest.one
7199 echo two > conftest.two
7201 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7202 test -s conftest.one && test -s conftest.two &&
7203 test -s conftest.dir/conftest.one &&
7204 test -s conftest.dir/conftest.two
7206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7219 rm -rf conftest.one conftest.two conftest.dir
7222 if test "${ac_cv_path_install+set}" = set; then
7223 INSTALL=$ac_cv_path_install
7225 # As a last resort, use the slow shell script. Don't cache a
7226 # value for INSTALL within a source directory, because that will
7227 # break other packages using the cache if that directory is
7228 # removed, or if the value is a relative name.
7229 INSTALL=$ac_install_sh
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7233 $as_echo "$INSTALL" >&6; }
7235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7236 # It thinks the first close brace ends the variable substitution.
7237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7244 $as_echo_n "checking whether build environment is sane... " >&6; }
7247 echo timestamp > conftest.file
7248 # Reject unsafe characters in $srcdir or the absolute working directory
7249 # name. Accept space and tab only in the latter.
7253 *[\\\"\#\$\&\'\`$am_lf]*)
7254 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7257 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7258 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7261 # Do `set' in a subshell so we don't clobber the current shell's
7262 # arguments. Must try -L first in case configure is actually a
7263 # symlink; some systems play weird games with the mod time of symlinks
7264 # (eg FreeBSD returns the mod time of the symlink's containing
7267 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7268 if test "$*" = "X"; then
7270 set X `ls -t "$srcdir/configure" conftest.file`
7273 if test "$*" != "X $srcdir/configure conftest.file" \
7274 && test "$*" != "X conftest.file $srcdir/configure"; then
7276 # If neither matched, then we have a broken ls. This can happen
7277 # if, for instance, CONFIG_SHELL is bash and it inherits a
7278 # broken ls alias from the environment. This has actually
7279 # happened. Such a system could not be considered "sane".
7280 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7281 alias in your environment" "$LINENO" 5
7284 test "$2" = conftest.file
7290 as_fn_error "newly created file is older than distributed files!
7291 Check your system clock" "$LINENO" 5
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7294 $as_echo "yes" >&6; }
7295 test "$program_prefix" != NONE &&
7296 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7297 # Use a double $ so make ignores it.
7298 test "$program_suffix" != NONE &&
7299 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7300 # Double any \ or $.
7301 # By default was `s,x,x', remove it if useless.
7302 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7303 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7305 # expand $ac_aux_dir to an absolute path
7306 am_aux_dir=`cd $ac_aux_dir && pwd`
7308 if test x"${MISSING+set}" != xset; then
7311 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7313 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7316 # Use eval to expand $SHELL
7317 if eval "$MISSING --run true"; then
7318 am_missing_run="$MISSING --run "
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7322 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7325 if test x"${install_sh}" != xset; then
7328 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7330 install_sh="\${SHELL} $am_aux_dir/install-sh"
7334 # Installed binaries are usually stripped using `strip' when the user
7335 # run `make install-strip'. However `strip' might not be the right
7336 # tool to use in cross-compilation environments, therefore Automake
7337 # will honor the `STRIP' environment variable to overrule this program.
7338 if test "$cross_compiling" != no; then
7339 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}strip; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_STRIP+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$STRIP"; then
7348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 STRIP=$ac_cv_prog_STRIP
7368 if test -n "$STRIP"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7370 $as_echo "$STRIP" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7378 if test -z "$ac_cv_prog_STRIP"; then
7380 # Extract the first word of "strip", so it can be a program name with args.
7381 set dummy strip; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7385 $as_echo_n "(cached) " >&6
7387 if test -n "$ac_ct_STRIP"; then
7388 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_prog_ac_ct_STRIP="strip"
7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7408 if test -n "$ac_ct_STRIP"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7410 $as_echo "$ac_ct_STRIP" >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7416 if test "x$ac_ct_STRIP" = x; then
7419 case $cross_compiling:$ac_tool_warned in
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423 ac_tool_warned=yes ;;
7428 STRIP="$ac_cv_prog_STRIP"
7432 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7435 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7436 if test -z "$MKDIR_P"; then
7437 if test "${ac_cv_path_mkdir+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7444 test -z "$as_dir" && as_dir=.
7445 for ac_prog in mkdir gmkdir; do
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7448 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7449 'mkdir (GNU coreutils) '* | \
7450 'mkdir (coreutils) '* | \
7451 'mkdir (fileutils) '4.1*)
7452 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7462 if test "${ac_cv_path_mkdir+set}" = set; then
7463 MKDIR_P="$ac_cv_path_mkdir -p"
7465 # As a last resort, use the slow shell script. Don't cache a
7466 # value for MKDIR_P within a source directory, because that will
7467 # break other packages using the cache if that directory is
7468 # removed, or if the value is a relative name.
7469 test -d ./--version && rmdir ./--version
7470 MKDIR_P="$ac_install_sh -d"
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7474 $as_echo "$MKDIR_P" >&6; }
7479 [\\/$]* | ?:[\\/]*) ;;
7480 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7483 for ac_prog in gawk mawk nawk awk
7485 # Extract the first word of "$ac_prog", so it can be a program name with args.
7486 set dummy $ac_prog; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if test "${ac_cv_prog_AWK+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7492 if test -n "$AWK"; then
7493 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_prog_AWK="$ac_prog"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 if test -n "$AWK"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7515 $as_echo "$AWK" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7522 test -n "$AWK" && break
7525 ac_config_commands="$ac_config_commands depfiles"
7528 am_make=${MAKE-make}
7529 cat > confinc << 'END'
7531 @echo this is the am__doit target
7534 # If we don't find an include directive, just comment out the code.
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7536 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7540 # First try GNU make style include.
7541 echo "include confinc" > confmf
7542 # Ignore all kinds of additional output from `make'.
7543 case `$am_make -s -f confmf 2> /dev/null` in #(
7544 *the\ am__doit\ target*)
7550 # Now try BSD make style include.
7551 if test "$am__include" = "#"; then
7552 echo '.include "confinc"' > confmf
7553 case `$am_make -s -f confmf 2> /dev/null` in #(
7554 *the\ am__doit\ target*)
7555 am__include=.include
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7564 $as_echo "$_am_result" >&6; }
7565 rm -f confinc confmf
7567 # Check whether --enable-dependency-tracking was given.
7568 if test "${enable_dependency_tracking+set}" = set; then :
7569 enableval=$enable_dependency_tracking;
7572 if test "x$enable_dependency_tracking" != xno; then
7573 am_depcomp="$ac_aux_dir/depcomp"
7576 if test "x$enable_dependency_tracking" != xno; then
7585 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7586 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7587 # is not polluted with repeated "-I."
7588 am__isrc=' -I$(srcdir)'
7589 # test to see if srcdir already configured
7590 if test -f $srcdir/config.status; then
7591 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7595 # test whether we have cygpath
7596 if test -z "$CYGPATH_W"; then
7597 if (cygpath --version) >/dev/null 2>/dev/null; then
7598 CYGPATH_W='cygpath -w'
7605 # Define the identity of the package.
7607 VERSION=UNUSED-VERSION
7610 # Some tools Automake needs.
7612 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7615 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7618 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7621 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7624 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7626 # We need awk for the "check" target. The system "awk" is bad on
7628 # Always define AMTAR for backward compatibility.
7630 AMTAR=${AMTAR-"${am_missing_run}tar"}
7632 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7637 depcc="$CC" am_compiler_list=
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7640 $as_echo_n "checking dependency style of $depcc... " >&6; }
7641 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
7644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7645 # We make a subdir and do the tests there. Otherwise we can end up
7646 # making bogus files that we don't know about and never remove. For
7647 # instance it was reported that on HP-UX the gcc test will end up
7648 # making a dummy file named `D' -- because `-MD' means `put the output
7651 # Copy depcomp to subdir because otherwise we won't find it if we're
7652 # using a relative directory.
7653 cp "$am_depcomp" conftest.dir
7655 # We will build objects and dependencies in a subdirectory because
7656 # it helps to detect inapplicable dependency modes. For instance
7657 # both Tru64's cc and ICC support -MD to output dependencies as a
7658 # side effect of compilation, but ICC will put the dependencies in
7659 # the current directory while Tru64 will put them in the object
7663 am_cv_CC_dependencies_compiler_type=none
7664 if test "$am_compiler_list" = ""; then
7665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7668 case " $depcc " in #(
7669 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7672 for depmode in $am_compiler_list; do
7673 # Setup a source with many dependencies, because some compilers
7674 # like to wrap large dependency lists on column 80 (with \), and
7675 # we should not choose a depcomp mode which is confused by this.
7677 # We need to recreate these files for each test, as the compiler may
7678 # overwrite some of them when testing with obscure command lines.
7679 # This happens at least with the AIX C compiler.
7681 for i in 1 2 3 4 5 6; do
7682 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7683 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7684 # Solaris 8's {/usr,}/bin/sh.
7685 touch sub/conftst$i.h
7687 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7689 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7690 # mode. It turns out that the SunPro C++ compiler does not properly
7691 # handle `-M -o', and we need to detect this. Also, some Intel
7692 # versions had trouble with output in subdirs
7693 am__obj=sub/conftest.${OBJEXT-o}
7694 am__minus_obj="-o $am__obj"
7697 # This depmode causes a compiler race in universal mode.
7698 test "$am__universal" = false || continue
7701 # after this tag, mechanisms are not by side-effect, so they'll
7702 # only be used when explicitly requested
7703 if test "x$enable_dependency_tracking" = xyes; then
7709 msvisualcpp | msvcmsys)
7710 # This compiler won't grok `-c -o', but also, the minuso test has
7711 # not run yet. These depmodes are late enough in the game, and
7712 # so weak that their functioning should not be impacted.
7713 am__obj=conftest.${OBJEXT-o}
7718 if depmode=$depmode \
7719 source=sub/conftest.c object=$am__obj \
7720 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7721 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7722 >/dev/null 2>conftest.err &&
7723 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7724 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7725 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7726 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7727 # icc doesn't choke on unknown options, it will just issue warnings
7728 # or remarks (even with -Werror). So we grep stderr for any message
7729 # that says an option was ignored or not supported.
7730 # When given -MP, icc 7.0 and 7.1 complain thusly:
7731 # icc: Command line warning: ignoring option '-M'; no argument required
7732 # The diagnosis changed in icc 8.0:
7733 # icc: Command line remark: option '-MP' not supported
7734 if (grep 'ignoring option' conftest.err ||
7735 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7736 am_cv_CC_dependencies_compiler_type=$depmode
7745 am_cv_CC_dependencies_compiler_type=none
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7750 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7751 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7754 test "x$enable_dependency_tracking" != xno \
7755 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7757 am__fastdepCC_FALSE='#'
7759 am__fastdepCC_TRUE='#'
7760 am__fastdepCC_FALSE=
7768 # Check whether --with-separate-debug-dir was given.
7769 if test "${with_separate_debug_dir+set}" = set; then :
7770 withval=$with_separate_debug_dir;
7773 DEBUGDIR=${libdir}/debug
7777 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7779 ac_define_dir=`eval echo $DEBUGDIR`
7780 ac_define_dir=`eval echo $ac_define_dir`
7782 cat >>confdefs.h <<_ACEOF
7783 #define DEBUGDIR "$ac_define_dir"
7789 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7790 if test "x$prefix" = xNONE; then
7791 test_prefix=/usr/local
7796 test_prefix=$exec_prefix
7799 case ${ac_define_dir} in
7800 "${test_prefix}"|"${test_prefix}/"*|\
7801 '${exec_prefix}'|'${exec_prefix}/'*)
7806 cat >>confdefs.h <<_ACEOF
7807 #define DEBUGDIR_RELOCATABLE $value
7813 # GDB's datadir relocation
7817 # Check whether --with-gdb-datadir was given.
7818 if test "${with_gdb_datadir+set}" = set; then :
7819 withval=$with_gdb_datadir;
7820 GDB_DATADIR=$withval
7822 GDB_DATADIR=${datadir}/gdb
7826 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7828 ac_define_dir=`eval echo $GDB_DATADIR`
7829 ac_define_dir=`eval echo $ac_define_dir`
7831 cat >>confdefs.h <<_ACEOF
7832 #define GDB_DATADIR "$ac_define_dir"
7838 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7839 if test "x$prefix" = xNONE; then
7840 test_prefix=/usr/local
7845 test_prefix=$exec_prefix
7848 case ${ac_define_dir} in
7849 "${test_prefix}"|"${test_prefix}/"*|\
7850 '${exec_prefix}'|'${exec_prefix}/'*)
7855 cat >>confdefs.h <<_ACEOF
7856 #define GDB_DATADIR_RELOCATABLE $value
7863 # Check whether --with-relocated-sources was given.
7864 if test "${with_relocated_sources+set}" = set; then :
7865 withval=$with_relocated_sources; reloc_srcdir="${withval}"
7867 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7869 ac_define_dir=`eval echo $reloc_srcdir`
7870 ac_define_dir=`eval echo $ac_define_dir`
7872 cat >>confdefs.h <<_ACEOF
7873 #define RELOC_SRCDIR "$ac_define_dir"
7883 subdirs="$subdirs doc testsuite"
7886 # Check whether to support alternative target configurations
7887 # Check whether --enable-targets was given.
7888 if test "${enable_targets+set}" = set; then :
7889 enableval=$enable_targets; case "${enableval}" in
7890 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7892 no) enable_targets= ;;
7893 *) enable_targets=$enableval ;;
7898 # Check whether to enable 64-bit support on 32-bit hosts
7899 # Check whether --enable-64-bit-bfd was given.
7900 if test "${enable_64_bit_bfd+set}" = set; then :
7901 enableval=$enable_64_bit_bfd; case "${enableval}" in
7904 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7910 # Provide defaults for some variables set by the per-host and per-target
7912 gdb_host_obs=posix-hdep.o
7914 if test "${target}" = "${host}"; then
7920 . $srcdir/configure.host
7922 # Accumulate some settings from configure.tgt over all enabled targets
7927 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7929 if test "$targ_alias" = "all"; then
7932 # Canonicalize the secondary target names.
7933 result=`$ac_config_sub $targ_alias 2>/dev/null`
7934 if test -n "$result"; then
7940 . ${srcdir}/configure.tgt
7942 if test -z "${gdb_target_obs}"; then :
7943 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7946 # Target-specific object files
7947 for i in ${gdb_target_obs}; do
7948 case " $TARGET_OBS " in
7951 TARGET_OBS="$TARGET_OBS ${i}"
7956 # Check whether this target needs 64-bit CORE_ADDR
7957 if test x${want64} = xfalse; then
7958 . ${srcdir}/../bfd/config.bfd
7963 if test x${all_targets} = xtrue; then
7965 # We want all 64-bit targets if we either:
7966 # - run on a 64-bit host or
7967 # - already require 64-bit support for some other target or
7968 # - the --enable-64-bit-bfd option was supplied
7969 # Otherwise we only support all 32-bit targets.
7971 # NOTE: This test must be in sync with the corresponding
7974 if test x${want64} = xfalse; then
7975 # The cast to long int works around a bug in the HP C Compiler
7976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7978 # This bug is HP SR number 8606223364.
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7980 $as_echo_n "checking size of long... " >&6; }
7981 if test "${ac_cv_sizeof_long+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7987 if test "$ac_cv_type_long" = yes; then
7988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7990 { as_fn_set_status 77
7991 as_fn_error "cannot compute sizeof (long)
7992 See \`config.log' for more details." "$LINENO" 5; }; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8000 $as_echo "$ac_cv_sizeof_long" >&6; }
8004 cat >>confdefs.h <<_ACEOF
8005 #define SIZEOF_LONG $ac_cv_sizeof_long
8009 if test "x${ac_cv_sizeof_long}" = "x8"; then
8013 if test x${want64} = xtrue; then
8014 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8016 TARGET_OBS='$(ALL_TARGET_OBS)'
8022 # For other settings, only the main target counts.
8026 targ=$target; . ${srcdir}/configure.tgt
8028 # Fetch the default architecture and default target vector from BFD.
8029 targ=$target; . $srcdir/../bfd/config.bfd
8031 # We only want the first architecture, so strip off the others if
8032 # there is more than one.
8033 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8035 if test "x$targ_archs" != x; then
8037 cat >>confdefs.h <<_ACEOF
8038 #define DEFAULT_BFD_ARCH $targ_archs
8042 if test "x$targ_defvec" != x; then
8044 cat >>confdefs.h <<_ACEOF
8045 #define DEFAULT_BFD_VEC $targ_defvec
8050 # The CLI cannot be disabled yet, but may be in the future.
8053 # Check whether --enable-gdbcli was given.
8054 if test "${enable_gdbcli+set}" = set; then :
8055 enableval=$enable_gdbcli; case $enableval in
8059 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8061 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8067 if test x"$enable_gdbcli" = xyes; then
8068 if test -d $srcdir/cli; then
8069 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8070 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8071 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8072 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8077 # Check whether --enable-gdbmi was given.
8078 if test "${enable_gdbmi+set}" = set; then :
8079 enableval=$enable_gdbmi; case $enableval in
8083 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8089 if test x"$enable_gdbmi" = xyes; then
8090 if test -d $srcdir/mi; then
8091 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8092 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8093 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8094 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8099 # Check whether --enable-tui was given.
8100 if test "${enable_tui+set}" = set; then :
8101 enableval=$enable_tui; case $enableval in
8105 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8113 # Check whether --enable-gdbtk was given.
8114 if test "${enable_gdbtk+set}" = set; then :
8115 enableval=$enable_gdbtk; case $enableval in
8119 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8122 if test -d $srcdir/gdbtk; then
8129 # We unconditionally disable gdbtk tests on selected platforms.
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8133 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8137 # Libunwind support.
8139 # Check whether --with-libunwind was given.
8140 if test "${with_libunwind+set}" = set; then :
8141 withval=$with_libunwind; case "${withval}" in
8142 yes) enable_libunwind=yes ;;
8143 no) enable_libunwind=no ;;
8144 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8148 for ac_header in libunwind.h libunwind-ia64.h
8150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8152 eval as_val=\$$as_ac_Header
8153 if test "x$as_val" = x""yes; then :
8154 cat >>confdefs.h <<_ACEOF
8155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8162 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8163 enable_libunwind=yes;
8169 if test x"$enable_libunwind" = xyes; then
8170 for ac_header in libunwind.h libunwind-ia64.h
8172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8173 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8174 eval as_val=\$$as_ac_Header
8175 if test "x$as_val" = x""yes; then :
8176 cat >>confdefs.h <<_ACEOF
8177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8185 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8187 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8188 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8189 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8194 # Check whether --with-curses was given.
8195 if test "${with_curses+set}" = set; then :
8196 withval=$with_curses; opt_curses=$withval
8201 if test "$opt_curses" = "yes"; then
8205 # Profiling support.
8206 # Check whether --enable-profiling was given.
8207 if test "${enable_profiling+set}" = set; then :
8208 enableval=$enable_profiling; case $enableval in
8212 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8219 for ac_func in monstartup _mcleanup
8221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8223 eval as_val=\$$as_ac_var
8224 if test "x$as_val" = x""yes; then :
8225 cat >>confdefs.h <<_ACEOF
8226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8233 $as_echo_n "checking for _etext... " >&6; }
8234 if test "${ac_cv_var__etext+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8250 if ac_fn_c_try_link "$LINENO"; then :
8251 ac_cv_var__etext=yes
8255 rm -f core conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8259 $as_echo "$ac_cv_var__etext" >&6; }
8260 if test $ac_cv_var__etext = yes; then
8262 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8266 $as_echo_n "checking for etext... " >&6; }
8267 if test "${ac_cv_var_etext+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8283 if ac_fn_c_try_link "$LINENO"; then :
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8292 $as_echo "$ac_cv_var_etext" >&6; }
8293 if test $ac_cv_var_etext = yes; then
8295 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8298 if test "$enable_profiling" = yes ; then
8299 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8300 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8303 OLD_CFLAGS="$CFLAGS"
8304 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8307 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8308 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8322 if ac_fn_c_try_compile "$LINENO"; then :
8323 ac_cv_cc_supports_pg=yes
8325 ac_cv_cc_supports_pg=no
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8330 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8332 if test $ac_cv_cc_supports_pg = no; then
8333 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8336 CFLAGS="$OLD_CFLAGS"
8341 # Check whether --with-pkgversion was given.
8342 if test "${with_pkgversion+set}" = set; then :
8343 withval=$with_pkgversion; case "$withval" in
8344 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8346 *) PKGVERSION="($withval) " ;;
8357 # Check whether --with-bugurl was given.
8358 if test "${with_bugurl+set}" = set; then :
8359 withval=$with_bugurl; case "$withval" in
8360 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8363 *) BUGURL="$withval"
8367 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8377 REPORT_BUGS_TO="<$BUGURL>"
8378 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8385 cat >>confdefs.h <<_ACEOF
8386 #define PKGVERSION "$PKGVERSION"
8390 cat >>confdefs.h <<_ACEOF
8391 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8395 # --------------------- #
8396 # Checks for programs. #
8397 # --------------------- #
8399 for ac_prog in gawk mawk nawk awk
8401 # Extract the first word of "$ac_prog", so it can be a program name with args.
8402 set dummy $ac_prog; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if test "${ac_cv_prog_AWK+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8408 if test -n "$AWK"; then
8409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_prog_AWK="$ac_prog"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 if test -n "$AWK"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8431 $as_echo "$AWK" >&6; }
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8438 test -n "$AWK" && break
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8443 $as_echo_n "checking whether ln -s works... " >&6; }
8445 if test "$LN_S" = "ln -s"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8447 $as_echo "yes" >&6; }
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8450 $as_echo "no, using $LN_S" >&6; }
8453 if test -n "$ac_tool_prefix"; then
8454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8461 if test -n "$RANLIB"; then
8462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 RANLIB=$ac_cv_prog_RANLIB
8482 if test -n "$RANLIB"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8484 $as_echo "$RANLIB" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8492 if test -z "$ac_cv_prog_RANLIB"; then
8493 ac_ct_RANLIB=$RANLIB
8494 # Extract the first word of "ranlib", so it can be a program name with args.
8495 set dummy ranlib; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8501 if test -n "$ac_ct_RANLIB"; then
8502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8511 ac_cv_prog_ac_ct_RANLIB="ranlib"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8522 if test -n "$ac_ct_RANLIB"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8524 $as_echo "$ac_ct_RANLIB" >&6; }
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8530 if test "x$ac_ct_RANLIB" = x; then
8533 case $cross_compiling:$ac_tool_warned in
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8537 ac_tool_warned=yes ;;
8539 RANLIB=$ac_ct_RANLIB
8542 RANLIB="$ac_cv_prog_RANLIB"
8545 for ac_prog in 'bison -y' byacc
8547 # Extract the first word of "$ac_prog", so it can be a program name with args.
8548 set dummy $ac_prog; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if test "${ac_cv_prog_YACC+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
8554 if test -n "$YACC"; then
8555 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_prog_YACC="$ac_prog"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 YACC=$ac_cv_prog_YACC
8575 if test -n "$YACC"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8577 $as_echo "$YACC" >&6; }
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8584 test -n "$YACC" && break
8586 test -n "$YACC" || YACC="yacc"
8589 if test -n "$ac_tool_prefix"; then
8590 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8591 set dummy ${ac_tool_prefix}ar; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if test "${ac_cv_prog_AR+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8597 if test -n "$AR"; then
8598 ac_cv_prog_AR="$AR" # Let the user override the test.
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607 ac_cv_prog_AR="${ac_tool_prefix}ar"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 if test -n "$AR"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8620 $as_echo "$AR" >&6; }
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8628 if test -z "$ac_cv_prog_AR"; then
8630 # Extract the first word of "ar", so it can be a program name with args.
8631 set dummy ar; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8637 if test -n "$ac_ct_AR"; then
8638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_prog_ac_ct_AR="ar"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8658 if test -n "$ac_ct_AR"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8660 $as_echo "$ac_ct_AR" >&6; }
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8666 if test "x$ac_ct_AR" = x; then
8669 case $cross_compiling:$ac_tool_warned in
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8681 if test -n "$ac_tool_prefix"; then
8682 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8683 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
8689 if test -n "$DLLTOOL"; then
8690 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8699 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 DLLTOOL=$ac_cv_prog_DLLTOOL
8710 if test -n "$DLLTOOL"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8712 $as_echo "$DLLTOOL" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8720 if test -z "$ac_cv_prog_DLLTOOL"; then
8721 ac_ct_DLLTOOL=$DLLTOOL
8722 # Extract the first word of "dlltool", so it can be a program name with args.
8723 set dummy dlltool; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8729 if test -n "$ac_ct_DLLTOOL"; then
8730 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8750 if test -n "$ac_ct_DLLTOOL"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8752 $as_echo "$ac_ct_DLLTOOL" >&6; }
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8758 if test "x$ac_ct_DLLTOOL" = x; then
8761 case $cross_compiling:$ac_tool_warned in
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8767 DLLTOOL=$ac_ct_DLLTOOL
8770 DLLTOOL="$ac_cv_prog_DLLTOOL"
8773 if test -n "$ac_tool_prefix"; then
8774 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8775 set dummy ${ac_tool_prefix}windres; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
8781 if test -n "$WINDRES"; then
8782 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 WINDRES=$ac_cv_prog_WINDRES
8802 if test -n "$WINDRES"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8804 $as_echo "$WINDRES" >&6; }
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8812 if test -z "$ac_cv_prog_WINDRES"; then
8813 ac_ct_WINDRES=$WINDRES
8814 # Extract the first word of "windres", so it can be a program name with args.
8815 set dummy windres; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8821 if test -n "$ac_ct_WINDRES"; then
8822 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_ac_ct_WINDRES="windres"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8842 if test -n "$ac_ct_WINDRES"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8844 $as_echo "$ac_ct_WINDRES" >&6; }
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8850 if test "x$ac_ct_WINDRES" = x; then
8853 case $cross_compiling:$ac_tool_warned in
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857 ac_tool_warned=yes ;;
8859 WINDRES=$ac_ct_WINDRES
8862 WINDRES="$ac_cv_prog_WINDRES"
8866 # Needed for GNU/Hurd.
8867 if test -n "$ac_tool_prefix"; then
8868 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8869 set dummy ${ac_tool_prefix}mig; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if test "${ac_cv_prog_MIG+set}" = set; then :
8873 $as_echo_n "(cached) " >&6
8875 if test -n "$MIG"; then
8876 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 test -z "$as_dir" && as_dir=.
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8885 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 if test -n "$MIG"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8898 $as_echo "$MIG" >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8906 if test -z "$ac_cv_prog_MIG"; then
8908 # Extract the first word of "mig", so it can be a program name with args.
8909 set dummy mig; ac_word=$2
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911 $as_echo_n "checking for $ac_word... " >&6; }
8912 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8913 $as_echo_n "(cached) " >&6
8915 if test -n "$ac_ct_MIG"; then
8916 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 test -z "$as_dir" && as_dir=.
8923 for ac_exec_ext in '' $ac_executable_extensions; do
8924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8925 ac_cv_prog_ac_ct_MIG="mig"
8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8936 if test -n "$ac_ct_MIG"; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8938 $as_echo "$ac_ct_MIG" >&6; }
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941 $as_echo "no" >&6; }
8944 if test "x$ac_ct_MIG" = x; then
8947 case $cross_compiling:$ac_tool_warned in
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8951 ac_tool_warned=yes ;;
8956 MIG="$ac_cv_prog_MIG"
8960 # ---------------------- #
8961 # Checks for libraries. #
8962 # ---------------------- #
8964 # We might need to link with -lm; most simulators need it.
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8966 $as_echo_n "checking for main in -lm... " >&6; }
8967 if test "${ac_cv_lib_m_main+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8970 ac_check_lib_save_LIBS=$LIBS
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8984 if ac_fn_c_try_link "$LINENO"; then :
8985 ac_cv_lib_m_main=yes
8989 rm -f core conftest.err conftest.$ac_objext \
8990 conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8994 $as_echo "$ac_cv_lib_m_main" >&6; }
8995 if test "x$ac_cv_lib_m_main" = x""yes; then :
8996 cat >>confdefs.h <<_ACEOF
9005 # We need to link with -lw to get `wctype' on Solaris before Solaris
9006 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9007 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9008 # is known to have this problem). Therefore we avoid libw if we can.
9009 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9010 if test "x$ac_cv_func_wctype" = x""yes; then :
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9014 $as_echo_n "checking for wctype in -lw... " >&6; }
9015 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9018 ac_check_lib_save_LIBS=$LIBS
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9023 /* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
9038 if ac_fn_c_try_link "$LINENO"; then :
9039 ac_cv_lib_w_wctype=yes
9041 ac_cv_lib_w_wctype=no
9043 rm -f core conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
9045 LIBS=$ac_check_lib_save_LIBS
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9048 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9049 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9050 cat >>confdefs.h <<_ACEOF
9061 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9063 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9064 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9065 $as_echo_n "(cached) " >&6
9067 ac_func_search_save_LIBS=$LIBS
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9071 /* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9077 char gethostbyname ();
9081 return gethostbyname ();
9086 for ac_lib in '' nsl; do
9087 if test -z "$ac_lib"; then
9088 ac_res="none required"
9091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9093 if ac_fn_c_try_link "$LINENO"; then :
9094 ac_cv_search_gethostbyname=$ac_res
9096 rm -f core conftest.err conftest.$ac_objext \
9098 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9102 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9105 ac_cv_search_gethostbyname=no
9108 LIBS=$ac_func_search_save_LIBS
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9111 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9112 ac_res=$ac_cv_search_gethostbyname
9113 if test "$ac_res" != no; then :
9114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9119 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9121 $as_echo_n "checking for library containing socketpair... " >&6; }
9122 if test "${ac_cv_search_socketpair+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9125 ac_func_search_save_LIBS=$LIBS
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9129 /* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9139 return socketpair ();
9144 for ac_lib in '' socket; do
9145 if test -z "$ac_lib"; then
9146 ac_res="none required"
9149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9151 if ac_fn_c_try_link "$LINENO"; then :
9152 ac_cv_search_socketpair=$ac_res
9154 rm -f core conftest.err conftest.$ac_objext \
9156 if test "${ac_cv_search_socketpair+set}" = set; then :
9160 if test "${ac_cv_search_socketpair+set}" = set; then :
9163 ac_cv_search_socketpair=no
9166 LIBS=$ac_func_search_save_LIBS
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9169 $as_echo "$ac_cv_search_socketpair" >&6; }
9170 ac_res=$ac_cv_search_socketpair
9171 if test "$ac_res" != no; then :
9172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9177 # Link in zlib if we can. This allows us to read compressed debug sections.
9179 # See if the user specified whether he wants zlib support or not.
9181 # Check whether --with-zlib was given.
9182 if test "${with_zlib+set}" = set; then :
9189 if test "$with_zlib" != "no"; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9191 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9192 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9195 ac_func_search_save_LIBS=$LIBS
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9199 /* Override any GCC internal prototype to avoid an error.
9200 Use char because int might match the return type of a GCC
9201 builtin and then its argument prototype would still apply. */
9205 char zlibVersion ();
9209 return zlibVersion ();
9214 for ac_lib in '' z; do
9215 if test -z "$ac_lib"; then
9216 ac_res="none required"
9219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9221 if ac_fn_c_try_link "$LINENO"; then :
9222 ac_cv_search_zlibVersion=$ac_res
9224 rm -f core conftest.err conftest.$ac_objext \
9226 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9230 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9233 ac_cv_search_zlibVersion=no
9236 LIBS=$ac_func_search_save_LIBS
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9239 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9240 ac_res=$ac_cv_search_zlibVersion
9241 if test "$ac_res" != no; then :
9242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9243 for ac_header in zlib.h
9245 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9246 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_ZLIB_H 1
9257 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9258 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9263 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9265 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9266 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9269 ac_func_search_save_LIBS=$LIBS
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9273 /* Override any GCC internal prototype to avoid an error.
9274 Use char because int might match the return type of a GCC
9275 builtin and then its argument prototype would still apply. */
9279 char dlgetmodinfo ();
9283 return dlgetmodinfo ();
9288 for ac_lib in '' dl xpdl; do
9289 if test -z "$ac_lib"; then
9290 ac_res="none required"
9293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9295 if ac_fn_c_try_link "$LINENO"; then :
9296 ac_cv_search_dlgetmodinfo=$ac_res
9298 rm -f core conftest.err conftest.$ac_objext \
9300 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9304 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9307 ac_cv_search_dlgetmodinfo=no
9310 LIBS=$ac_func_search_save_LIBS
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9313 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9314 ac_res=$ac_cv_search_dlgetmodinfo
9315 if test "$ac_res" != no; then :
9316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9324 # Check whether --with-libiconv-prefix was given.
9325 if test "${with_libiconv_prefix+set}" = set; then :
9326 withval=$with_libiconv_prefix;
9327 for dir in `echo "$withval" | tr : ' '`; do
9328 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9329 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9335 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9336 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9339 $as_echo_n "checking for iconv... " >&6; }
9340 if test "${am_cv_func_iconv+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9344 am_cv_func_iconv="no, consider installing GNU libiconv"
9346 am_cv_use_build_libiconv=no
9347 am_cv_build_libiconv_path=
9349 # If libiconv is part of the build tree, then try using it over
9351 if test -d ../libiconv; then
9352 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9353 am_save_LIBS="$LIBS"
9354 am_save_CPPFLAGS="$CPPFLAGS"
9355 LIBS="$LIBS $lib_dir/libiconv.a"
9356 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9364 iconv_t cd = iconv_open("","");
9365 iconv(cd,NULL,NULL,NULL,NULL);
9371 if ac_fn_c_try_link "$LINENO"; then :
9372 am_cv_use_build_libiconv=yes
9373 am_cv_build_libiconv_path=$lib_dir/libiconv.a
9375 am_cv_func_iconv=yes
9377 rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LIBS="$am_save_LIBS"
9380 CPPFLAGS="$am_save_CPPFLAGS"
9381 if test "$am_cv_use_build_libiconv" = "yes"; then
9387 # Next, try to find iconv in libc.
9388 if test "$am_cv_func_iconv" != yes; then
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9396 iconv_t cd = iconv_open("","");
9397 iconv(cd,NULL,NULL,NULL,NULL);
9403 if ac_fn_c_try_link "$LINENO"; then :
9404 am_cv_func_iconv=yes
9406 rm -f core conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext conftest.$ac_ext
9410 # If iconv was not in libc, try -liconv. In this case, arrange to
9411 # look in the libiconv prefix, if it was specified by the user.
9412 if test "$am_cv_func_iconv" != yes; then
9413 am_save_CPPFLAGS="$CPPFLAGS"
9414 am_save_LIBS="$LIBS"
9415 if test -n "$LIBICONV_INCLUDE"; then
9416 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9417 LIBS="$LIBS $LIBICONV_LIBDIR"
9419 LIBS="$LIBS -liconv"
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9427 iconv_t cd = iconv_open("","");
9428 iconv(cd,NULL,NULL,NULL,NULL);
9434 if ac_fn_c_try_link "$LINENO"; then :
9436 am_cv_func_iconv=yes
9438 rm -f core conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440 LIBS="$am_save_LIBS"
9441 CPPFLAGS="$am_save_CPPFLAGS"
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9446 $as_echo "$am_cv_func_iconv" >&6; }
9448 # Set the various flags based on the cache variables. We can't rely
9449 # on the flags to remain set from the above code, due to caching.
9451 if test "$am_cv_lib_iconv" = yes; then
9457 if test "$am_cv_use_build_libiconv" = yes; then
9458 LIBICONV="$am_cv_build_libiconv_path"
9460 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9462 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9463 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9465 if test "$am_cv_func_iconv" = yes; then
9467 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9470 $as_echo_n "checking for iconv declaration... " >&6; }
9471 if test "${am_cv_proto_iconv+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9484 #if defined(__STDC__) || defined(__cplusplus)
9485 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9498 if ac_fn_c_try_compile "$LINENO"; then :
9499 am_cv_proto_iconv_arg1=""
9501 am_cv_proto_iconv_arg1="const"
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 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);"
9507 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9509 }$am_cv_proto_iconv" >&5
9511 }$am_cv_proto_iconv" >&6; }
9513 cat >>confdefs.h <<_ACEOF
9514 #define ICONV_CONST $am_cv_proto_iconv_arg1
9520 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9521 # There is a very specific comment in /usr/include/curses.h explaining that
9522 # termcap routines built into libcurses must not be used.
9524 # The symptoms we observed so far is GDB unexpectedly changing
9525 # the terminal settings when tgetent is called - this is particularly
9526 # visible as the output is missing carriage returns, and so rapidly
9527 # becomes very hard to read.
9529 # The readline configure script has already decided that libtermcap
9530 # was enough for its purposes, and so decided to build readline using
9531 # libtermcap. Since the TUI mode requires curses, building GDB with
9532 # TUI enabled results in both libraries to be used at the same time,
9533 # which is not allowed. This basically means that GDB with TUI is
9534 # broken on alpha-osf.
9538 if test x"$enable_tui" = xyes; then
9539 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9541 if test x"$enable_tui" = xauto; then
9547 # For the TUI, we need enhanced curses functionality.
9548 if test x"$enable_tui" != xno; then
9553 if test x"$prefer_curses" = xyes; then
9554 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9555 # curses library because the latter might not provide all the
9556 # functionality we need. However, this leads to problems on systems
9557 # where the linker searches /usr/local/lib, but the compiler doesn't
9558 # search /usr/local/include, if ncurses is installed in /usr/local. A
9559 # default installation of ncurses on alpha*-dec-osf* will lead to such
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9562 $as_echo_n "checking for library containing waddstr... " >&6; }
9563 if test "${ac_cv_search_waddstr+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9566 ac_func_search_save_LIBS=$LIBS
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9570 /* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
9585 for ac_lib in '' ncurses cursesX curses; do
9586 if test -z "$ac_lib"; then
9587 ac_res="none required"
9590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9592 if ac_fn_c_try_link "$LINENO"; then :
9593 ac_cv_search_waddstr=$ac_res
9595 rm -f core conftest.err conftest.$ac_objext \
9597 if test "${ac_cv_search_waddstr+set}" = set; then :
9601 if test "${ac_cv_search_waddstr+set}" = set; then :
9604 ac_cv_search_waddstr=no
9607 LIBS=$ac_func_search_save_LIBS
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9610 $as_echo "$ac_cv_search_waddstr" >&6; }
9611 ac_res=$ac_cv_search_waddstr
9612 if test "$ac_res" != no; then :
9613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9618 if test "$ac_cv_search_waddstr" != no; then
9623 # Check whether we should enable the TUI, but only do so if we really
9625 if test x"$enable_tui" != xno; then
9626 if test -d $srcdir/tui; then
9627 if test "$curses_found" != no; then
9628 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9629 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9630 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9631 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9632 CONFIG_ALL="${CONFIG_ALL} all-tui"
9633 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9634 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9635 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9637 if test x"$enable_tui" = xyes; then
9638 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9641 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9647 # Since GDB uses Readline, we need termcap functionality. In many
9648 # cases this will be provided by the curses library, but some systems
9649 # have a seperate termcap library, or no curses library at all.
9653 if test -d $srcdir/libtermcap; then
9654 LIBS="../libtermcap/libtermcap.a $LIBS"
9655 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9658 ac_cv_search_tgetent="none required"
9661 ac_cv_search_tgetent="none required"
9662 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9666 # These are the libraries checked by Readline.
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9668 $as_echo_n "checking for library containing tgetent... " >&6; }
9669 if test "${ac_cv_search_tgetent+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9672 ac_func_search_save_LIBS=$LIBS
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9676 /* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9691 for ac_lib in '' termcap tinfo curses ncurses; do
9692 if test -z "$ac_lib"; then
9693 ac_res="none required"
9696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9698 if ac_fn_c_try_link "$LINENO"; then :
9699 ac_cv_search_tgetent=$ac_res
9701 rm -f core conftest.err conftest.$ac_objext \
9703 if test "${ac_cv_search_tgetent+set}" = set; then :
9707 if test "${ac_cv_search_tgetent+set}" = set; then :
9710 ac_cv_search_tgetent=no
9713 LIBS=$ac_func_search_save_LIBS
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9716 $as_echo "$ac_cv_search_tgetent" >&6; }
9717 ac_res=$ac_cv_search_tgetent
9718 if test "$ac_res" != no; then :
9719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9724 if test "$ac_cv_search_tgetent" = no; then
9725 as_fn_error "no termcap library found" "$LINENO" 5
9729 # Check whether --with-system-readline was given.
9730 if test "${with_system_readline+set}" = set; then :
9731 withval=$with_system_readline;
9735 if test "$with_system_readline" = yes; then
9740 # readline-6.0 started to use the name `_rl_echoing_p'.
9741 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9744 $as_echo_n "checking for readline_echoing_p... " >&6; }
9746 LIBS="$LIBS $READLINE"
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9753 extern int readline_echoing_p;
9754 return readline_echoing_p;
9759 if ac_fn_c_try_link "$LINENO"; then :
9760 READLINE_ECHOING_P=yes
9762 READLINE_ECHOING_P=no
9764 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9767 rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9771 $as_echo "$READLINE_ECHOING_P" >&6; }
9773 READLINE='$(READLINE_DIR)/libreadline.a'
9774 READLINE_DEPS='$(READLINE)'
9775 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9782 # Check whether --with-expat was given.
9783 if test "${with_expat+set}" = set; then :
9784 withval=$with_expat;
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9790 $as_echo_n "checking whether to use expat... " >&6; }
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9792 $as_echo "$with_expat" >&6; }
9794 if test "${with_expat}" = no; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9796 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9800 if test "X$prefix" = "XNONE"; then
9801 acl_final_prefix="$ac_default_prefix"
9803 acl_final_prefix="$prefix"
9805 if test "X$exec_prefix" = "XNONE"; then
9806 acl_final_exec_prefix='${prefix}'
9808 acl_final_exec_prefix="$exec_prefix"
9810 acl_save_prefix="$prefix"
9811 prefix="$acl_final_prefix"
9812 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9813 prefix="$acl_save_prefix"
9816 # Check whether --with-gnu-ld was given.
9817 if test "${with_gnu_ld+set}" = set; then :
9818 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9823 # Prepare PATH_SEPARATOR.
9824 # The user is always right.
9825 if test "${PATH_SEPARATOR+set}" != set; then
9826 echo "#! /bin/sh" >conf$$.sh
9827 echo "exit 0" >>conf$$.sh
9829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9837 if test "$GCC" = yes; then
9838 # Check if gcc -print-prog-name=ld gives a path.
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9840 $as_echo_n "checking for ld used by GCC... " >&6; }
9843 # gcc leaves a trailing carriage return which upsets mingw
9844 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9846 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9849 # Accept absolute paths.
9850 [\\/]* | [A-Za-z]:[\\/]*)
9851 re_direlt='/[^/][^/]*/\.\./'
9852 # Canonicalize the path of ld
9853 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9854 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9855 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9857 test -z "$LD" && LD="$ac_prog"
9860 # If it fails, then pretend we aren't using GCC.
9864 # If it is relative, then search for the first ld in PATH.
9868 elif test "$with_gnu_ld" = yes; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9870 $as_echo_n "checking for GNU ld... " >&6; }
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9873 $as_echo_n "checking for non-GNU ld... " >&6; }
9875 if test "${acl_cv_path_LD+set}" = set; then :
9876 $as_echo_n "(cached) " >&6
9878 if test -z "$LD"; then
9879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9880 for ac_dir in $PATH; do
9881 test -z "$ac_dir" && ac_dir=.
9882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9883 acl_cv_path_LD="$ac_dir/$ac_prog"
9884 # Check to see if the program is GNU ld. I'd rather use --version,
9885 # but apparently some GNU ld's only accept -v.
9886 # Break only if it was the GNU/non-GNU ld that we prefer.
9887 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9888 test "$with_gnu_ld" != no && break
9890 test "$with_gnu_ld" != yes && break
9896 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9900 LD="$acl_cv_path_LD"
9901 if test -n "$LD"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9903 $as_echo "$LD" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9908 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9911 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9914 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9915 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9916 acl_cv_prog_gnu_ld=yes
9918 acl_cv_prog_gnu_ld=no
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9922 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9923 with_gnu_ld=$acl_cv_prog_gnu_ld
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9928 $as_echo_n "checking for shared library run path origin... " >&6; }
9929 if test "${acl_cv_rpath+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
9933 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9934 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9941 $as_echo "$acl_cv_rpath" >&6; }
9943 libext="$acl_cv_libext"
9944 shlibext="$acl_cv_shlibext"
9945 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9946 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9947 hardcode_direct="$acl_cv_hardcode_direct"
9948 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9949 # Check whether --enable-rpath was given.
9950 if test "${enable_rpath+set}" = set; then :
9951 enableval=$enable_rpath; :
9967 acl_save_prefix="$prefix"
9968 prefix="$acl_final_prefix"
9969 acl_save_exec_prefix="$exec_prefix"
9970 exec_prefix="$acl_final_exec_prefix"
9972 eval additional_includedir=\"$includedir\"
9973 eval additional_libdir=\"$libdir\"
9975 exec_prefix="$acl_save_exec_prefix"
9976 prefix="$acl_save_prefix"
9979 # Check whether --with-libexpat-prefix was given.
9980 if test "${with_libexpat_prefix+set}" = set; then :
9981 withval=$with_libexpat_prefix;
9982 if test "X$withval" = "Xno"; then
9985 if test "X$withval" = "X"; then
9987 acl_save_prefix="$prefix"
9988 prefix="$acl_final_prefix"
9989 acl_save_exec_prefix="$exec_prefix"
9990 exec_prefix="$acl_final_exec_prefix"
9992 eval additional_includedir=\"$includedir\"
9993 eval additional_libdir=\"$libdir\"
9995 exec_prefix="$acl_save_exec_prefix"
9996 prefix="$acl_save_prefix"
9999 additional_includedir="$withval/include"
10000 additional_libdir="$withval/lib"
10011 names_already_handled=
10012 names_next_round='expat '
10013 while test -n "$names_next_round"; do
10014 names_this_round="$names_next_round"
10016 for name in $names_this_round; do
10018 for n in $names_already_handled; do
10019 if test "$n" = "$name"; then
10020 already_handled=yes
10024 if test -z "$already_handled"; then
10025 names_already_handled="$names_already_handled $name"
10026 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10027 eval value=\"\$HAVE_LIB$uppername\"
10028 if test -n "$value"; then
10029 if test "$value" = yes; then
10030 eval value=\"\$LIB$uppername\"
10031 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10032 eval value=\"\$LTLIB$uppername\"
10033 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10042 if test $use_additional = yes; then
10043 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10044 found_dir="$additional_libdir"
10045 found_so="$additional_libdir/lib$name.$shlibext"
10046 if test -f "$additional_libdir/lib$name.la"; then
10047 found_la="$additional_libdir/lib$name.la"
10050 if test -f "$additional_libdir/lib$name.$libext"; then
10051 found_dir="$additional_libdir"
10052 found_a="$additional_libdir/lib$name.$libext"
10053 if test -f "$additional_libdir/lib$name.la"; then
10054 found_la="$additional_libdir/lib$name.la"
10059 if test "X$found_dir" = "X"; then
10060 for x in $LDFLAGS $LTLIBEXPAT; do
10062 acl_save_prefix="$prefix"
10063 prefix="$acl_final_prefix"
10064 acl_save_exec_prefix="$exec_prefix"
10065 exec_prefix="$acl_final_exec_prefix"
10067 exec_prefix="$acl_save_exec_prefix"
10068 prefix="$acl_save_prefix"
10072 dir=`echo "X$x" | sed -e 's/^X-L//'`
10073 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10075 found_so="$dir/lib$name.$shlibext"
10076 if test -f "$dir/lib$name.la"; then
10077 found_la="$dir/lib$name.la"
10080 if test -f "$dir/lib$name.$libext"; then
10082 found_a="$dir/lib$name.$libext"
10083 if test -f "$dir/lib$name.la"; then
10084 found_la="$dir/lib$name.la"
10090 if test "X$found_dir" != "X"; then
10095 if test "X$found_dir" != "X"; then
10096 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10097 if test "X$found_so" != "X"; then
10098 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10099 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10102 for x in $ltrpathdirs; do
10103 if test "X$x" = "X$found_dir"; then
10108 if test -z "$haveit"; then
10109 ltrpathdirs="$ltrpathdirs $found_dir"
10111 if test "$hardcode_direct" = yes; then
10112 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10114 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10115 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10117 for x in $rpathdirs; do
10118 if test "X$x" = "X$found_dir"; then
10123 if test -z "$haveit"; then
10124 rpathdirs="$rpathdirs $found_dir"
10128 for x in $LDFLAGS $LIBEXPAT; do
10130 acl_save_prefix="$prefix"
10131 prefix="$acl_final_prefix"
10132 acl_save_exec_prefix="$exec_prefix"
10133 exec_prefix="$acl_final_exec_prefix"
10135 exec_prefix="$acl_save_exec_prefix"
10136 prefix="$acl_save_prefix"
10138 if test "X$x" = "X-L$found_dir"; then
10143 if test -z "$haveit"; then
10144 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10146 if test "$hardcode_minus_L" != no; then
10147 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10149 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10155 if test "X$found_a" != "X"; then
10156 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10158 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10161 additional_includedir=
10162 case "$found_dir" in
10164 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10165 additional_includedir="$basedir/include"
10168 if test "X$additional_includedir" != "X"; then
10169 if test "X$additional_includedir" != "X/usr/include"; then
10171 if test "X$additional_includedir" = "X/usr/local/include"; then
10172 if test -n "$GCC"; then
10174 linux*) haveit=yes;;
10178 if test -z "$haveit"; then
10179 for x in $CPPFLAGS $INCEXPAT; do
10181 acl_save_prefix="$prefix"
10182 prefix="$acl_final_prefix"
10183 acl_save_exec_prefix="$exec_prefix"
10184 exec_prefix="$acl_final_exec_prefix"
10186 exec_prefix="$acl_save_exec_prefix"
10187 prefix="$acl_save_prefix"
10189 if test "X$x" = "X-I$additional_includedir"; then
10194 if test -z "$haveit"; then
10195 if test -d "$additional_includedir"; then
10196 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10202 if test -n "$found_la"; then
10203 save_libdir="$libdir"
10204 case "$found_la" in
10205 */* | *\\*) . "$found_la" ;;
10206 *) . "./$found_la" ;;
10208 libdir="$save_libdir"
10209 for dep in $dependency_libs; do
10212 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10213 if test "X$additional_libdir" != "X/usr/lib"; then
10215 if test "X$additional_libdir" = "X/usr/local/lib"; then
10216 if test -n "$GCC"; then
10218 linux*) haveit=yes;;
10222 if test -z "$haveit"; then
10224 for x in $LDFLAGS $LIBEXPAT; do
10226 acl_save_prefix="$prefix"
10227 prefix="$acl_final_prefix"
10228 acl_save_exec_prefix="$exec_prefix"
10229 exec_prefix="$acl_final_exec_prefix"
10231 exec_prefix="$acl_save_exec_prefix"
10232 prefix="$acl_save_prefix"
10234 if test "X$x" = "X-L$additional_libdir"; then
10239 if test -z "$haveit"; then
10240 if test -d "$additional_libdir"; then
10241 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10245 for x in $LDFLAGS $LTLIBEXPAT; do
10247 acl_save_prefix="$prefix"
10248 prefix="$acl_final_prefix"
10249 acl_save_exec_prefix="$exec_prefix"
10250 exec_prefix="$acl_final_exec_prefix"
10252 exec_prefix="$acl_save_exec_prefix"
10253 prefix="$acl_save_prefix"
10255 if test "X$x" = "X-L$additional_libdir"; then
10260 if test -z "$haveit"; then
10261 if test -d "$additional_libdir"; then
10262 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10269 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10270 if test "$enable_rpath" != no; then
10272 for x in $rpathdirs; do
10273 if test "X$x" = "X$dir"; then
10278 if test -z "$haveit"; then
10279 rpathdirs="$rpathdirs $dir"
10282 for x in $ltrpathdirs; do
10283 if test "X$x" = "X$dir"; then
10288 if test -z "$haveit"; then
10289 ltrpathdirs="$ltrpathdirs $dir"
10294 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10300 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10301 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10307 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10308 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10314 if test "X$rpathdirs" != "X"; then
10315 if test -n "$hardcode_libdir_separator"; then
10317 for found_dir in $rpathdirs; do
10318 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10320 acl_save_libdir="$libdir"
10322 eval flag=\"$hardcode_libdir_flag_spec\"
10323 libdir="$acl_save_libdir"
10324 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10326 for found_dir in $rpathdirs; do
10327 acl_save_libdir="$libdir"
10328 libdir="$found_dir"
10329 eval flag=\"$hardcode_libdir_flag_spec\"
10330 libdir="$acl_save_libdir"
10331 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10335 if test "X$ltrpathdirs" != "X"; then
10336 for found_dir in $ltrpathdirs; do
10337 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10342 ac_save_CPPFLAGS="$CPPFLAGS"
10344 for element in $INCEXPAT; do
10346 for x in $CPPFLAGS; do
10348 acl_save_prefix="$prefix"
10349 prefix="$acl_final_prefix"
10350 acl_save_exec_prefix="$exec_prefix"
10351 exec_prefix="$acl_final_exec_prefix"
10353 exec_prefix="$acl_save_exec_prefix"
10354 prefix="$acl_save_prefix"
10356 if test "X$x" = "X$element"; then
10361 if test -z "$haveit"; then
10362 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10368 $as_echo_n "checking for libexpat... " >&6; }
10369 if test "${ac_cv_libexpat+set}" = set; then :
10370 $as_echo_n "(cached) " >&6
10373 ac_save_LIBS="$LIBS"
10374 LIBS="$LIBS $LIBEXPAT"
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10381 XML_Parser p = XML_ParserCreate (0);
10386 if ac_fn_c_try_link "$LINENO"; then :
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LIBS="$ac_save_LIBS"
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10397 $as_echo "$ac_cv_libexpat" >&6; }
10398 if test "$ac_cv_libexpat" = yes; then
10401 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10404 $as_echo_n "checking how to link with libexpat... " >&6; }
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10406 $as_echo "$LIBEXPAT" >&6; }
10409 CPPFLAGS="$ac_save_CPPFLAGS"
10419 if test "$HAVE_LIBEXPAT" != yes; then
10420 if test "$with_expat" = yes; then
10421 as_fn_error "expat is missing or unusable" "$LINENO" 5
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10424 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10428 LIBS="$LIBS $LIBEXPAT"
10429 for ac_func in XML_StopParser
10431 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10432 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10433 cat >>confdefs.h <<_ACEOF
10434 #define HAVE_XML_STOPPARSER 1
10449 # Check whether --with-python was given.
10450 if test "${with_python+set}" = set; then :
10451 withval=$with_python;
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10457 $as_echo_n "checking whether to use python... " >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10459 $as_echo "$with_python" >&6; }
10461 if test "${with_python}" = no; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10463 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10466 case "${with_python}" in
10468 if test -d ${with_python}; then
10469 # Assume the python binary is ${with_python}/bin/python.
10470 python_prog="${with_python}/bin/python"
10472 if test ! -x "${python_prog}"; then
10473 # Fall back to gdb 7.0/7.1 behaviour.
10474 python_prog=missing
10475 python_prefix=${with_python}
10477 elif test -x "${with_python}"; then
10478 # While we can't run python compiled for $host (unless host == build),
10479 # the user could write a script that provides the needed information,
10480 # so we support that.
10481 python_prog=${with_python}
10484 as_fn_error "invalid value for --with-python" "$LINENO" 5
10488 # Disallow --with-python=foo/bar.
10489 as_fn_error "invalid value for --with-python" "$LINENO" 5
10492 # The user has either specified auto, yes, or the name of the python
10493 # program assumed to be in $PATH.
10495 case "${with_python}" in
10497 if test ${build} = ${host}; then
10498 # Extract the first word of "python", so it can be a program name with args.
10499 set dummy python; ac_word=$2
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501 $as_echo_n "checking for $ac_word... " >&6; }
10502 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10503 $as_echo_n "(cached) " >&6
10505 case $python_prog_path in
10507 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10525 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10529 python_prog_path=$ac_cv_path_python_prog_path
10530 if test -n "$python_prog_path"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10532 $as_echo "$python_prog_path" >&6; }
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10539 if test "${python_prog_path}" = missing; then
10540 python_prog=missing
10542 python_prog=${python_prog_path}
10545 # Not much we can do except assume the cross-compiler will find the
10547 python_prog=missing
10551 # While we can't run python compiled for $host (unless host == build),
10552 # the user could write a script that provides the needed information,
10553 # so we support that.
10554 python_prog="${with_python}"
10555 # Extract the first word of "${python_prog}", so it can be a program name with args.
10556 set dummy ${python_prog}; ac_word=$2
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558 $as_echo_n "checking for $ac_word... " >&6; }
10559 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10562 case $python_prog_path in
10564 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568 for as_dir in $PATH
10571 test -z "$as_dir" && as_dir=.
10572 for ac_exec_ext in '' $ac_executable_extensions; do
10573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10574 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10586 python_prog_path=$ac_cv_path_python_prog_path
10587 if test -n "$python_prog_path"; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10589 $as_echo "$python_prog_path" >&6; }
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10596 if test "${python_prog_path}" = missing; then
10597 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10603 if test "${python_prog}" != missing; then
10604 # We have a python program to use, but it may be too old.
10605 # Don't flag an error for --with-python=auto (the default).
10606 have_python_config=yes
10607 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10608 if test $? != 0; then
10609 have_python_config=failed
10610 if test "${with_python}" != auto; then
10611 as_fn_error "failure running python-config --includes" "$LINENO" 5
10614 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10615 if test $? != 0; then
10616 have_python_config=failed
10617 if test "${with_python}" != auto; then
10618 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10621 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10622 if test $? != 0; then
10623 have_python_config=failed
10624 if test "${with_python}" != auto; then
10625 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10629 # Fall back to gdb 7.0/7.1 behaviour.
10630 if test -z ${python_prefix}; then
10634 python_includes="-I${python_prefix}/include"
10635 python_libs="-L${python_prefix}/lib"
10637 have_python_config=no
10640 # Having "/pythonX.Y" in the include path is awkward.
10641 # All those python headers get bubbled up to the top inviting lots
10642 # of random collisions. GDB originally didn't use python-config to
10643 # find the compilation parameters and includes "pythonX.Y/" in the
10644 # path of the, umm, include file. So strip away this part of the
10645 # output of python-config --includes.
10646 python_includes=`echo "${python_includes} " \
10647 | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
10649 # If we have python-config, only try the configuration it provides.
10650 # Otherwise fallback on the old way of trying different versions of
10654 if test "${have_python_config}" = yes; then
10655 python_version=`echo " ${python_libs} " \
10656 | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10657 case "${python_version}" in
10660 version=${python_version}
10662 new_CPPFLAGS=${python_includes}
10663 new_LIBS=${python_libs}
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10665 $as_echo_n "checking for ${version}... " >&6; }
10666 save_CPPFLAGS=$CPPFLAGS
10668 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10669 LIBS="$LIBS $new_LIBS"
10670 found_usable_python=no
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 #include "${version}/Python.h"
10682 if ac_fn_c_try_link "$LINENO"; then :
10683 have_libpython=${version}
10684 found_usable_python=yes
10686 CPPFLAGS=$save_CPPFLAGS
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10692 $as_echo "${found_usable_python}" >&6; }
10696 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10699 elif test "${have_python_config}" != failed; then
10700 if test "${have_libpython}" = no; then
10704 new_CPPFLAGS=${python_includes}
10705 new_LIBS="${python_libs} -lpython2.7"
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10707 $as_echo_n "checking for ${version}... " >&6; }
10708 save_CPPFLAGS=$CPPFLAGS
10710 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10711 LIBS="$LIBS $new_LIBS"
10712 found_usable_python=no
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 #include "${version}/Python.h"
10724 if ac_fn_c_try_link "$LINENO"; then :
10725 have_libpython=${version}
10726 found_usable_python=yes
10728 CPPFLAGS=$save_CPPFLAGS
10731 rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10734 $as_echo "${found_usable_python}" >&6; }
10737 if test "${have_libpython}" = no; then
10741 new_CPPFLAGS=${python_includes}
10742 new_LIBS="${python_libs} -lpython2.6"
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10744 $as_echo_n "checking for ${version}... " >&6; }
10745 save_CPPFLAGS=$CPPFLAGS
10747 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10748 LIBS="$LIBS $new_LIBS"
10749 found_usable_python=no
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10752 #include "${version}/Python.h"
10761 if ac_fn_c_try_link "$LINENO"; then :
10762 have_libpython=${version}
10763 found_usable_python=yes
10765 CPPFLAGS=$save_CPPFLAGS
10768 rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10771 $as_echo "${found_usable_python}" >&6; }
10774 if test ${have_libpython} = no; then
10778 new_CPPFLAGS=${python_includes}
10779 new_LIBS="${python_libs} -lpython2.5"
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10781 $as_echo_n "checking for ${version}... " >&6; }
10782 save_CPPFLAGS=$CPPFLAGS
10784 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10785 LIBS="$LIBS $new_LIBS"
10786 found_usable_python=no
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 #include "${version}/Python.h"
10798 if ac_fn_c_try_link "$LINENO"; then :
10799 have_libpython=${version}
10800 found_usable_python=yes
10802 CPPFLAGS=$save_CPPFLAGS
10805 rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10808 $as_echo "${found_usable_python}" >&6; }
10811 if test ${have_libpython} = no; then
10815 new_CPPFLAGS=${python_includes}
10816 new_LIBS="${python_libs} -lpython2.4"
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10818 $as_echo_n "checking for ${version}... " >&6; }
10819 save_CPPFLAGS=$CPPFLAGS
10821 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10822 LIBS="$LIBS $new_LIBS"
10823 found_usable_python=no
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826 #include "${version}/Python.h"
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 have_libpython=${version}
10837 found_usable_python=yes
10839 CPPFLAGS=$save_CPPFLAGS
10842 rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10845 $as_echo "${found_usable_python}" >&6; }
10849 if test "${have_libpython}" = python2.7; then
10851 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10853 elif test "${have_libpython}" = python2.6; then
10855 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10857 elif test "${have_libpython}" = python2.5; then
10859 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10861 elif test "${have_libpython}" = python2.4; then
10863 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10867 if test "${have_libpython}" = no; then
10868 case "${with_python}" in
10870 as_fn_error "python is missing or unusable" "$LINENO" 5
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10874 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10877 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10881 if test -n "${python_prefix}"; then
10883 cat >>confdefs.h <<_ACEOF
10884 #define WITH_PYTHON_PATH "${python_prefix}"
10888 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10889 if test "x$prefix" = xNONE; then
10890 test_prefix=/usr/local
10892 test_prefix=$prefix
10895 test_prefix=$exec_prefix
10898 case ${python_prefix} in
10899 "${test_prefix}"|"${test_prefix}/"*|\
10900 '${exec_prefix}'|'${exec_prefix}/'*)
10905 cat >>confdefs.h <<_ACEOF
10906 #define PYTHON_PATH_RELOCATABLE $value
10914 if test "${have_libpython}" != no; then
10916 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10918 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10919 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10920 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10921 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10923 # Flags needed to compile Python code (taken from python-config --cflags).
10924 # We cannot call python-config directly because it will output whatever was
10925 # used when compiling the Python interpreter itself, including flags which
10926 # would make the python-related objects be compiled differently from the
10927 # rest of GDB (e.g., -O2 and -fPIC).
10928 if test "${GCC}" = yes; then
10929 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10932 if test "x${tentative_python_cflags}" != x; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10934 $as_echo_n "checking compiler flags for python code... " >&6; }
10935 for flag in ${tentative_python_cflags}; do
10936 # Check that the compiler accepts it
10937 saved_CFLAGS="$CFLAGS"
10938 CFLAGS="$CFLAGS $flag"
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10950 if ac_fn_c_try_compile "$LINENO"; then :
10951 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954 CFLAGS="$saved_CFLAGS"
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10957 $as_echo "${PYTHON_CFLAGS}" >&6; }
10960 # Even if Python support is not compiled in, we need to have these files
10962 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10963 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10964 python/py-prettyprint.c python/py-auto-load.c"
10968 # ------------------------- #
10969 # Checks for header files. #
10970 # ------------------------- #
10972 ac_header_dirent=no
10973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10974 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10976 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10978 $as_echo_n "(cached) " >&6
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982 #include <sys/types.h>
10994 if ac_fn_c_try_compile "$LINENO"; then :
10995 eval "$as_ac_Header=yes"
10997 eval "$as_ac_Header=no"
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 eval ac_res=\$$as_ac_Header
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11003 $as_echo "$ac_res" >&6; }
11004 eval as_val=\$$as_ac_Header
11005 if test "x$as_val" = x""yes; then :
11006 cat >>confdefs.h <<_ACEOF
11007 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11010 ac_header_dirent=$ac_hdr; break
11014 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11015 if test $ac_header_dirent = dirent.h; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11017 $as_echo_n "checking for library containing opendir... " >&6; }
11018 if test "${ac_cv_search_opendir+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11021 ac_func_search_save_LIBS=$LIBS
11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11025 /* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11040 for ac_lib in '' dir; do
11041 if test -z "$ac_lib"; then
11042 ac_res="none required"
11045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_search_opendir=$ac_res
11050 rm -f core conftest.err conftest.$ac_objext \
11052 if test "${ac_cv_search_opendir+set}" = set; then :
11056 if test "${ac_cv_search_opendir+set}" = set; then :
11059 ac_cv_search_opendir=no
11061 rm conftest.$ac_ext
11062 LIBS=$ac_func_search_save_LIBS
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11065 $as_echo "$ac_cv_search_opendir" >&6; }
11066 ac_res=$ac_cv_search_opendir
11067 if test "$ac_res" != no; then :
11068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11074 $as_echo_n "checking for library containing opendir... " >&6; }
11075 if test "${ac_cv_search_opendir+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11078 ac_func_search_save_LIBS=$LIBS
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11082 /* Override any GCC internal prototype to avoid an error.
11083 Use char because int might match the return type of a GCC
11084 builtin and then its argument prototype would still apply. */
11097 for ac_lib in '' x; do
11098 if test -z "$ac_lib"; then
11099 ac_res="none required"
11102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11104 if ac_fn_c_try_link "$LINENO"; then :
11105 ac_cv_search_opendir=$ac_res
11107 rm -f core conftest.err conftest.$ac_objext \
11109 if test "${ac_cv_search_opendir+set}" = set; then :
11113 if test "${ac_cv_search_opendir+set}" = set; then :
11116 ac_cv_search_opendir=no
11118 rm conftest.$ac_ext
11119 LIBS=$ac_func_search_save_LIBS
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11122 $as_echo "$ac_cv_search_opendir" >&6; }
11123 ac_res=$ac_cv_search_opendir
11124 if test "$ac_res" != no; then :
11125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11132 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11133 if test "${ac_cv_header_stat_broken+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11138 #include <sys/types.h>
11139 #include <sys/stat.h>
11141 #if defined S_ISBLK && defined S_IFDIR
11142 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11145 #if defined S_ISBLK && defined S_IFCHR
11146 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11149 #if defined S_ISLNK && defined S_IFREG
11150 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11153 #if defined S_ISSOCK && defined S_IFREG
11154 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11158 if ac_fn_c_try_compile "$LINENO"; then :
11159 ac_cv_header_stat_broken=no
11161 ac_cv_header_stat_broken=yes
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11166 $as_echo "$ac_cv_header_stat_broken" >&6; }
11167 if test $ac_cv_header_stat_broken = yes; then
11169 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11174 $as_echo_n "checking for ANSI C header files... " >&6; }
11175 if test "${ac_cv_header_stdc+set}" = set; then :
11176 $as_echo_n "(cached) " >&6
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180 #include <stdlib.h>
11181 #include <stdarg.h>
11182 #include <string.h>
11193 if ac_fn_c_try_compile "$LINENO"; then :
11194 ac_cv_header_stdc=yes
11196 ac_cv_header_stdc=no
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200 if test $ac_cv_header_stdc = yes; then
11201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11204 #include <string.h>
11207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11208 $EGREP "memchr" >/dev/null 2>&1; then :
11211 ac_cv_header_stdc=no
11217 if test $ac_cv_header_stdc = yes; then
11218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 #include <stdlib.h>
11224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11225 $EGREP "free" >/dev/null 2>&1; then :
11228 ac_cv_header_stdc=no
11234 if test $ac_cv_header_stdc = yes; then
11235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11236 if test "$cross_compiling" = yes; then :
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11242 #include <stdlib.h>
11243 #if ((' ' & 0x0FF) == 0x020)
11244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11247 # define ISLOWER(c) \
11248 (('a' <= (c) && (c) <= 'i') \
11249 || ('j' <= (c) && (c) <= 'r') \
11250 || ('s' <= (c) && (c) <= 'z'))
11251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11259 for (i = 0; i < 256; i++)
11260 if (XOR (islower (i), ISLOWER (i))
11261 || toupper (i) != TOUPPER (i))
11266 if ac_fn_c_try_run "$LINENO"; then :
11269 ac_cv_header_stdc=no
11271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11272 conftest.$ac_objext conftest.beam conftest.$ac_ext
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11278 $as_echo "$ac_cv_header_stdc" >&6; }
11279 if test $ac_cv_header_stdc = yes; then
11281 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11285 # elf_hp.h is for HP/UX 64-bit shared library support.
11286 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11287 # unconditionally, so what's the point in checking these?
11288 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11289 thread_db.h gnu/libc-version.h signal.h stddef.h \
11290 stdlib.h string.h memory.h strings.h sys/fault.h \
11291 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11292 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11293 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11294 sys/types.h sys/wait.h wait.h termios.h termio.h \
11295 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11299 eval as_val=\$$as_ac_Header
11300 if test "x$as_val" = x""yes; then :
11301 cat >>confdefs.h <<_ACEOF
11302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11309 for ac_header in link.h
11311 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11312 # include <sys/types.h>
11315 # include <nlist.h>
11319 if test "x$ac_cv_header_link_h" = x""yes; then :
11320 cat >>confdefs.h <<_ACEOF
11321 #define HAVE_LINK_H 1
11328 for ac_header in sys/proc.h
11330 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11331 # include <sys/param.h>
11335 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11336 cat >>confdefs.h <<_ACEOF
11337 #define HAVE_SYS_PROC_H 1
11344 for ac_header in sys/user.h
11346 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11347 # include <sys/param.h>
11351 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11352 cat >>confdefs.h <<_ACEOF
11353 #define HAVE_SYS_USER_H 1
11361 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11362 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11363 # think that we don't have <curses.h> if we're using GCC.
11366 if test "$GCC" = yes; then
11368 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11372 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11375 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11376 eval as_val=\$$as_ac_Header
11377 if test "x$as_val" = x""yes; then :
11378 cat >>confdefs.h <<_ACEOF
11379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386 for ac_header in term.h
11388 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11389 # include <curses.h>
11393 if test "x$ac_cv_header_term_h" = x""yes; then :
11394 cat >>confdefs.h <<_ACEOF
11395 #define HAVE_TERM_H 1
11403 # ------------------------- #
11404 # Checks for declarations. #
11405 # ------------------------- #
11407 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11408 if test "x$ac_cv_have_decl_free" = x""yes; then :
11414 cat >>confdefs.h <<_ACEOF
11415 #define HAVE_DECL_FREE $ac_have_decl
11417 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11418 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11424 cat >>confdefs.h <<_ACEOF
11425 #define HAVE_DECL_MALLOC $ac_have_decl
11427 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11428 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11434 cat >>confdefs.h <<_ACEOF
11435 #define HAVE_DECL_REALLOC $ac_have_decl
11437 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11438 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11444 cat >>confdefs.h <<_ACEOF
11445 #define HAVE_DECL_STRERROR $ac_have_decl
11447 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11448 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11454 cat >>confdefs.h <<_ACEOF
11455 #define HAVE_DECL_STRSTR $ac_have_decl
11457 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11458 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11464 cat >>confdefs.h <<_ACEOF
11465 #define HAVE_DECL_GETOPT $ac_have_decl
11467 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11468 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11474 cat >>confdefs.h <<_ACEOF
11475 #define HAVE_DECL_SNPRINTF $ac_have_decl
11477 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11478 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11484 cat >>confdefs.h <<_ACEOF
11485 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11490 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11491 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11492 $as_echo_n "(cached) " >&6
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11496 #include <locale.h>
11505 if ac_fn_c_try_link "$LINENO"; then :
11506 am_cv_val_LC_MESSAGES=yes
11508 am_cv_val_LC_MESSAGES=no
11510 rm -f core conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11514 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11515 if test $am_cv_val_LC_MESSAGES = yes; then
11517 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11522 # ----------------------- #
11523 # Checks for structures. #
11524 # ----------------------- #
11526 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11527 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11529 cat >>confdefs.h <<_ACEOF
11530 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11535 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11536 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11538 cat >>confdefs.h <<_ACEOF
11539 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11546 # ------------------ #
11547 # Checks for types. #
11548 # ------------------ #
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11551 $as_echo_n "checking return type of signal handlers... " >&6; }
11552 if test "${ac_cv_type_signal+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11557 #include <sys/types.h>
11558 #include <signal.h>
11563 return *(signal (0, 0)) (0) == 1;
11568 if ac_fn_c_try_compile "$LINENO"; then :
11569 ac_cv_type_signal=int
11571 ac_cv_type_signal=void
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11576 $as_echo "$ac_cv_type_signal" >&6; }
11578 cat >>confdefs.h <<_ACEOF
11579 #define RETSIGTYPE $ac_cv_type_signal
11583 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11584 #include <sys/socket.h>
11587 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11589 cat >>confdefs.h <<_ACEOF
11590 #define HAVE_SOCKLEN_T 1
11597 # ------------------------------------- #
11598 # Checks for compiler characteristics. #
11599 # ------------------------------------- #
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11602 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11603 if test "${ac_cv_c_const+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11612 /* FIXME: Include the comments suggested by Paul. */
11613 #ifndef __cplusplus
11614 /* Ultrix mips cc rejects this. */
11615 typedef int charset[2];
11617 /* SunOS 4.1.1 cc rejects this. */
11618 char const *const *pcpcc;
11620 /* NEC SVR4.0.2 mips cc rejects this. */
11621 struct point {int x, y;};
11622 static struct point const zero = {0,0};
11623 /* AIX XL C 1.02.0.0 rejects this.
11624 It does not let you subtract one const X* pointer from another in
11625 an arm of an if-expression whose if-part is not a constant
11627 const char *g = "string";
11628 pcpcc = &g + (g ? g-g : 0);
11629 /* HPUX 7.0 cc rejects these. */
11631 ppc = (char**) pcpcc;
11632 pcpcc = (char const *const *) ppc;
11633 { /* SCO 3.2v4 cc rejects this. */
11635 char const *s = 0 ? (char *) 0 : (char const *) 0;
11640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11641 int x[] = {25, 17};
11642 const int *foo = &x[0];
11645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11646 typedef const int *iptr;
11650 { /* AIX XL C 1.02.0.0 rejects this saying
11651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11652 struct s { int j; const int *ap[3]; };
11653 struct s *b; b->j = 5;
11655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11656 const int foo = 10;
11657 if (!foo) return 0;
11659 return !cs[0] && !zero.x;
11666 if ac_fn_c_try_compile "$LINENO"; then :
11671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11674 $as_echo "$ac_cv_c_const" >&6; }
11675 if test $ac_cv_c_const = no; then
11677 $as_echo "#define const /**/" >>confdefs.h
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11682 $as_echo_n "checking for inline... " >&6; }
11683 if test "${ac_cv_c_inline+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11687 for ac_kw in inline __inline__ __inline; do
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 #ifndef __cplusplus
11692 static $ac_kw foo_t static_foo () {return 0; }
11693 $ac_kw foo_t foo () {return 0; }
11697 if ac_fn_c_try_compile "$LINENO"; then :
11698 ac_cv_c_inline=$ac_kw
11700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11701 test "$ac_cv_c_inline" != no && break
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11706 $as_echo "$ac_cv_c_inline" >&6; }
11708 case $ac_cv_c_inline in
11711 case $ac_cv_c_inline in
11713 *) ac_val=$ac_cv_c_inline;;
11715 cat >>confdefs.h <<_ACEOF
11716 #ifndef __cplusplus
11717 #define inline $ac_val
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11724 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11725 if test "${ac_cv_c_bigendian+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11728 ac_cv_c_bigendian=unknown
11729 # See if we're dealing with a universal compiler.
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11732 #ifndef __APPLE_CC__
11733 not a universal capable compiler
11738 if ac_fn_c_try_compile "$LINENO"; then :
11740 # Check for potential -arch flags. It is not universal unless
11741 # there are at least two -arch flags with different values.
11744 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11745 if test -n "$ac_prev"; then
11747 i?86 | x86_64 | ppc | ppc64)
11748 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11751 ac_cv_c_bigendian=universal
11757 elif test "x$ac_word" = "x-arch"; then
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 if test $ac_cv_c_bigendian = unknown; then
11764 # See if sys/param.h defines the BYTE_ORDER macro.
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767 #include <sys/types.h>
11768 #include <sys/param.h>
11773 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11774 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11776 bogus endian macros
11783 if ac_fn_c_try_compile "$LINENO"; then :
11784 # It does; now see whether it defined to BIG_ENDIAN or not.
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <sys/types.h>
11788 #include <sys/param.h>
11793 #if BYTE_ORDER != BIG_ENDIAN
11801 if ac_fn_c_try_compile "$LINENO"; then :
11802 ac_cv_c_bigendian=yes
11804 ac_cv_c_bigendian=no
11806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 if test $ac_cv_c_bigendian = unknown; then
11811 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include <limits.h>
11819 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11820 bogus endian macros
11827 if ac_fn_c_try_compile "$LINENO"; then :
11828 # It does; now see whether it defined to _BIG_ENDIAN or not.
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #include <limits.h>
11836 #ifndef _BIG_ENDIAN
11844 if ac_fn_c_try_compile "$LINENO"; then :
11845 ac_cv_c_bigendian=yes
11847 ac_cv_c_bigendian=no
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 if test $ac_cv_c_bigendian = unknown; then
11854 # Compile a test program.
11855 if test "$cross_compiling" = yes; then :
11856 # Try to guess by grepping values from an object file.
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11859 short int ascii_mm[] =
11860 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11861 short int ascii_ii[] =
11862 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11863 int use_ascii (int i) {
11864 return ascii_mm[i] + ascii_ii[i];
11866 short int ebcdic_ii[] =
11867 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11868 short int ebcdic_mm[] =
11869 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11870 int use_ebcdic (int i) {
11871 return ebcdic_mm[i] + ebcdic_ii[i];
11878 return use_ascii (foo) == use_ebcdic (foo);
11883 if ac_fn_c_try_compile "$LINENO"; then :
11884 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11885 ac_cv_c_bigendian=yes
11887 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11888 if test "$ac_cv_c_bigendian" = unknown; then
11889 ac_cv_c_bigendian=no
11891 # finding both strings is unlikely to happen, but who knows?
11892 ac_cv_c_bigendian=unknown
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11900 $ac_includes_default
11905 /* Are we little or big endian? From Harbison&Steele. */
11909 char c[sizeof (long int)];
11912 return u.c[sizeof (long int) - 1] == 1;
11918 if ac_fn_c_try_run "$LINENO"; then :
11919 ac_cv_c_bigendian=no
11921 ac_cv_c_bigendian=yes
11923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11924 conftest.$ac_objext conftest.beam conftest.$ac_ext
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11930 $as_echo "$ac_cv_c_bigendian" >&6; }
11931 case $ac_cv_c_bigendian in #(
11933 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11939 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11943 as_fn_error "unknown endianness
11944 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11948 # ------------------------------ #
11949 # Checks for library functions. #
11950 # ------------------------------ #
11952 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11953 # for constant arguments. Useless!
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11955 $as_echo_n "checking for working alloca.h... " >&6; }
11956 if test "${ac_cv_working_alloca_h+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961 #include <alloca.h>
11965 char *p = (char *) alloca (2 * sizeof (int));
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_working_alloca_h=yes
11974 ac_cv_working_alloca_h=no
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11980 $as_echo "$ac_cv_working_alloca_h" >&6; }
11981 if test $ac_cv_working_alloca_h = yes; then
11983 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11988 $as_echo_n "checking for alloca... " >&6; }
11989 if test "${ac_cv_func_alloca_works+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11995 # define alloca __builtin_alloca
11998 # include <malloc.h>
11999 # define alloca _alloca
12001 # ifdef HAVE_ALLOCA_H
12002 # include <alloca.h>
12007 # ifndef alloca /* predefined by HP cc +Olibcalls */
12018 char *p = (char *) alloca (1);
12024 if ac_fn_c_try_link "$LINENO"; then :
12025 ac_cv_func_alloca_works=yes
12027 ac_cv_func_alloca_works=no
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12033 $as_echo "$ac_cv_func_alloca_works" >&6; }
12035 if test $ac_cv_func_alloca_works = yes; then
12037 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12040 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12041 # that cause trouble. Some versions do not even contain alloca or
12042 # contain a buggy version. If you still want to use their alloca,
12043 # use ar to extract alloca.o from them instead of compiling alloca.c.
12045 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12047 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12051 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12052 if test "${ac_cv_os_cray+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12057 #if defined CRAY && ! defined CRAY2
12064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12065 $EGREP "webecray" >/dev/null 2>&1; then :
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12074 $as_echo "$ac_cv_os_cray" >&6; }
12075 if test $ac_cv_os_cray = yes; then
12076 for ac_func in _getb67 GETB67 getb67; do
12077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12079 eval as_val=\$$as_ac_var
12080 if test "x$as_val" = x""yes; then :
12082 cat >>confdefs.h <<_ACEOF
12083 #define CRAY_STACKSEG_END $ac_func
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12093 $as_echo_n "checking stack direction for C alloca... " >&6; }
12094 if test "${ac_cv_c_stack_direction+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12097 if test "$cross_compiling" = yes; then :
12098 ac_cv_c_stack_direction=0
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 $ac_includes_default
12104 find_stack_direction ()
12106 static char *addr = 0;
12111 return find_stack_direction ();
12114 return (&dummy > addr) ? 1 : -1;
12120 return find_stack_direction () < 0;
12123 if ac_fn_c_try_run "$LINENO"; then :
12124 ac_cv_c_stack_direction=1
12126 ac_cv_c_stack_direction=-1
12128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12129 conftest.$ac_objext conftest.beam conftest.$ac_ext
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12134 $as_echo "$ac_cv_c_stack_direction" >&6; }
12135 cat >>confdefs.h <<_ACEOF
12136 #define STACK_DIRECTION $ac_cv_c_stack_direction
12142 for ac_header in stdlib.h unistd.h
12144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12145 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12146 eval as_val=\$$as_ac_Header
12147 if test "x$as_val" = x""yes; then :
12148 cat >>confdefs.h <<_ACEOF
12149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12156 for ac_func in getpagesize
12158 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12159 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_GETPAGESIZE 1
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12168 $as_echo_n "checking for working mmap... " >&6; }
12169 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12172 if test "$cross_compiling" = yes; then :
12173 ac_cv_func_mmap_fixed_mapped=no
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177 $ac_includes_default
12178 /* malloc might have been renamed as rpl_malloc. */
12181 /* Thanks to Mike Haertel and Jim Avera for this test.
12182 Here is a matrix of mmap possibilities:
12183 mmap private not fixed
12184 mmap private fixed at somewhere currently unmapped
12185 mmap private fixed at somewhere already mapped
12186 mmap shared not fixed
12187 mmap shared fixed at somewhere currently unmapped
12188 mmap shared fixed at somewhere already mapped
12189 For private mappings, we should verify that changes cannot be read()
12190 back from the file, nor mmap's back from the file at a different
12191 address. (There have been systems where private was not correctly
12192 implemented like the infamous i386 svr4.0, and systems where the
12193 VM page cache was not coherent with the file system buffer cache
12194 like early versions of FreeBSD and possibly contemporary NetBSD.)
12195 For shared mappings, we should conversely verify that changes get
12196 propagated back to all the places they're supposed to be.
12198 Grep wants private fixed already mapped.
12199 The main things grep needs to know about mmap are:
12200 * does it exist and is it safe to write into the mmap'd area
12201 * how to use it (BSD variants) */
12204 #include <sys/mman.h>
12206 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12210 /* This mess was copied from the GNU getpagesize.h. */
12211 #ifndef HAVE_GETPAGESIZE
12212 /* Assume that all systems that can run configure have sys/param.h. */
12213 # ifndef HAVE_SYS_PARAM_H
12214 # define HAVE_SYS_PARAM_H 1
12217 # ifdef _SC_PAGESIZE
12218 # define getpagesize() sysconf(_SC_PAGESIZE)
12219 # else /* no _SC_PAGESIZE */
12220 # ifdef HAVE_SYS_PARAM_H
12221 # include <sys/param.h>
12222 # ifdef EXEC_PAGESIZE
12223 # define getpagesize() EXEC_PAGESIZE
12224 # else /* no EXEC_PAGESIZE */
12226 # define getpagesize() NBPG * CLSIZE
12229 # endif /* no CLSIZE */
12230 # else /* no NBPG */
12232 # define getpagesize() NBPC
12233 # else /* no NBPC */
12235 # define getpagesize() PAGESIZE
12236 # endif /* PAGESIZE */
12237 # endif /* no NBPC */
12238 # endif /* no NBPG */
12239 # endif /* no EXEC_PAGESIZE */
12240 # else /* no HAVE_SYS_PARAM_H */
12241 # define getpagesize() 8192 /* punt totally */
12242 # endif /* no HAVE_SYS_PARAM_H */
12243 # endif /* no _SC_PAGESIZE */
12245 #endif /* no HAVE_GETPAGESIZE */
12250 char *data, *data2, *data3;
12254 pagesize = getpagesize ();
12256 /* First, make a file with some known garbage in it. */
12257 data = (char *) malloc (pagesize);
12260 for (i = 0; i < pagesize; ++i)
12261 *(data + i) = rand ();
12263 fd = creat ("conftest.mmap", 0600);
12266 if (write (fd, data, pagesize) != pagesize)
12270 /* Next, try to mmap the file at a fixed address which already has
12271 something else allocated at it. If we can, also make sure that
12272 we see the same garbage. */
12273 fd = open ("conftest.mmap", O_RDWR);
12276 data2 = (char *) malloc (2 * pagesize);
12279 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12280 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12281 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12283 for (i = 0; i < pagesize; ++i)
12284 if (*(data + i) != *(data2 + i))
12287 /* Finally, make sure that changes to the mapped area do not
12288 percolate back to the file as seen by read(). (This is a bug on
12289 some variants of i386 svr4.0.) */
12290 for (i = 0; i < pagesize; ++i)
12291 *(data2 + i) = *(data2 + i) + 1;
12292 data3 = (char *) malloc (pagesize);
12295 if (read (fd, data3, pagesize) != pagesize)
12297 for (i = 0; i < pagesize; ++i)
12298 if (*(data + i) != *(data3 + i))
12304 if ac_fn_c_try_run "$LINENO"; then :
12305 ac_cv_func_mmap_fixed_mapped=yes
12307 ac_cv_func_mmap_fixed_mapped=no
12309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12310 conftest.$ac_objext conftest.beam conftest.$ac_ext
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12315 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12316 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12318 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12321 rm -f conftest.mmap
12323 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12324 if test "x$ac_cv_type_pid_t" = x""yes; then :
12328 cat >>confdefs.h <<_ACEOF
12334 for ac_header in vfork.h
12336 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12337 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12338 cat >>confdefs.h <<_ACEOF
12339 #define HAVE_VFORK_H 1
12346 for ac_func in fork vfork
12348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12350 eval as_val=\$$as_ac_var
12351 if test "x$as_val" = x""yes; then :
12352 cat >>confdefs.h <<_ACEOF
12353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12359 if test "x$ac_cv_func_fork" = xyes; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12361 $as_echo_n "checking for working fork... " >&6; }
12362 if test "${ac_cv_func_fork_works+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12365 if test "$cross_compiling" = yes; then :
12366 ac_cv_func_fork_works=cross
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370 $ac_includes_default
12375 /* By Ruediger Kuhlmann. */
12376 return fork () < 0;
12382 if ac_fn_c_try_run "$LINENO"; then :
12383 ac_cv_func_fork_works=yes
12385 ac_cv_func_fork_works=no
12387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12388 conftest.$ac_objext conftest.beam conftest.$ac_ext
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12393 $as_echo "$ac_cv_func_fork_works" >&6; }
12396 ac_cv_func_fork_works=$ac_cv_func_fork
12398 if test "x$ac_cv_func_fork_works" = xcross; then
12400 *-*-amigaos* | *-*-msdosdjgpp*)
12401 # Override, as these systems have only a dummy fork() stub
12402 ac_cv_func_fork_works=no
12405 ac_cv_func_fork_works=yes
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12409 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12411 ac_cv_func_vfork_works=$ac_cv_func_vfork
12412 if test "x$ac_cv_func_vfork" = xyes; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12414 $as_echo_n "checking for working vfork... " >&6; }
12415 if test "${ac_cv_func_vfork_works+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12418 if test "$cross_compiling" = yes; then :
12419 ac_cv_func_vfork_works=cross
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423 /* Thanks to Paul Eggert for this test. */
12424 $ac_includes_default
12425 #include <sys/wait.h>
12426 #ifdef HAVE_VFORK_H
12427 # include <vfork.h>
12429 /* On some sparc systems, changes by the child to local and incoming
12430 argument registers are propagated back to the parent. The compiler
12431 is told about this with #include <vfork.h>, but some compilers
12432 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12433 static variable whose address is put into a register that is
12434 clobbered by the vfork. */
12437 sparc_address_test (int arg)
12439 sparc_address_test (arg) int arg;
12442 static pid_t child;
12460 pid_t parent = getpid ();
12463 sparc_address_test (0);
12468 /* Here is another test for sparc vfork register problems. This
12469 test uses lots of local variables, at least as many local
12470 variables as main has allocated so far including compiler
12471 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12472 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12473 reuse the register of parent for one of the local variables,
12474 since it will think that parent can't possibly be used any more
12475 in this routine. Assigning to the local variable will thus
12476 munge parent in the parent process. */
12478 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12479 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12480 /* Convince the compiler that p..p7 are live; otherwise, it might
12481 use the same hardware register for all 8 local variables. */
12482 if (p != p1 || p != p2 || p != p3 || p != p4
12483 || p != p5 || p != p6 || p != p7)
12486 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12487 from child file descriptors. If the child closes a descriptor
12488 before it execs or exits, this munges the parent's descriptor
12489 as well. Test for this by closing stdout in the child. */
12490 _exit(close(fileno(stdout)) != 0);
12495 while (wait(&status) != child)
12498 /* Was there some problem with vforking? */
12501 /* Did the child fail? (This shouldn't happen.) */
12504 /* Did the vfork/compiler bug occur? */
12505 || parent != getpid()
12507 /* Did the file descriptor bug occur? */
12508 || fstat(fileno(stdout), &st) != 0
12513 if ac_fn_c_try_run "$LINENO"; then :
12514 ac_cv_func_vfork_works=yes
12516 ac_cv_func_vfork_works=no
12518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12519 conftest.$ac_objext conftest.beam conftest.$ac_ext
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12524 $as_echo "$ac_cv_func_vfork_works" >&6; }
12527 if test "x$ac_cv_func_fork_works" = xcross; then
12528 ac_cv_func_vfork_works=$ac_cv_func_vfork
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12530 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12533 if test "x$ac_cv_func_vfork_works" = xyes; then
12535 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12539 $as_echo "#define vfork fork" >>confdefs.h
12542 if test "x$ac_cv_func_fork_works" = xyes; then
12544 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12548 for ac_func in canonicalize_file_name realpath getrusage getuid \
12549 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12550 sigaction sigprocmask sigsetmask socketpair syscall \
12551 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12552 setrlimit getrlimit posix_madvise
12554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12556 eval as_val=\$$as_ac_var
12557 if test "x$as_val" = x""yes; then :
12558 cat >>confdefs.h <<_ACEOF
12559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12567 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12568 if test "${am_cv_langinfo_codeset+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12573 #include <langinfo.h>
12577 char* cs = nl_langinfo(CODESET);
12582 if ac_fn_c_try_link "$LINENO"; then :
12583 am_cv_langinfo_codeset=yes
12585 am_cv_langinfo_codeset=no
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12592 $as_echo "$am_cv_langinfo_codeset" >&6; }
12593 if test $am_cv_langinfo_codeset = yes; then
12595 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12600 # Check the return and argument types of ptrace. No canned test for
12601 # this, so roll our own.
12602 gdb_ptrace_headers='
12603 #if HAVE_SYS_TYPES_H
12604 # include <sys/types.h>
12606 #if HAVE_SYS_PTRACE_H
12607 # include <sys/ptrace.h>
12610 # include <unistd.h>
12613 # There is no point in checking if we don't have a prototype.
12614 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12616 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12622 cat >>confdefs.h <<_ACEOF
12623 #define HAVE_DECL_PTRACE $ac_have_decl
12625 if test $ac_have_decl = 1; then :
12629 : ${gdb_cv_func_ptrace_ret='int'}
12630 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12634 # Check return type. Varargs (used on GNU/Linux) conflict with the
12635 # empty argument list, so check for that explicitly.
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12637 $as_echo_n "checking return type of ptrace... " >&6; }
12638 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12639 $as_echo_n "(cached) " >&6
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 $gdb_ptrace_headers
12647 extern long ptrace (enum __ptrace_request, ...);
12652 if ac_fn_c_try_compile "$LINENO"; then :
12653 gdb_cv_func_ptrace_ret='long'
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12657 $gdb_ptrace_headers
12661 extern int ptrace ();
12666 if ac_fn_c_try_compile "$LINENO"; then :
12667 gdb_cv_func_ptrace_ret='int'
12669 gdb_cv_func_ptrace_ret='long'
12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12676 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12678 cat >>confdefs.h <<_ACEOF
12679 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12682 # Check argument types.
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12684 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12685 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 $gdb_ptrace_headers
12695 extern long ptrace (enum __ptrace_request, ...);
12700 if ac_fn_c_try_compile "$LINENO"; then :
12701 gdb_cv_func_ptrace_args='int,int,long,long'
12704 for gdb_arg1 in 'int' 'long'; do
12705 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12706 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12707 for gdb_arg4 in 'int' 'long'; do
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 $gdb_ptrace_headers
12715 extern $gdb_cv_func_ptrace_ret
12716 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12722 if ac_fn_c_try_compile "$LINENO"; then :
12723 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12727 for gdb_arg5 in 'int *' 'int' 'long'; do
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730 $gdb_ptrace_headers
12735 extern $gdb_cv_func_ptrace_ret
12736 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12742 if ac_fn_c_try_compile "$LINENO"; then :
12744 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 # Provide a safe default value.
12754 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12760 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12761 ac_save_IFS=$IFS; IFS=','
12762 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12766 cat >>confdefs.h <<_ACEOF
12767 #define PTRACE_TYPE_ARG3 $3
12770 if test -n "$5"; then
12772 cat >>confdefs.h <<_ACEOF
12773 #define PTRACE_TYPE_ARG5 $5
12778 if test "$cross_compiling" = no; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12780 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12781 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12784 if test "$cross_compiling" = yes; then :
12785 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12789 $ac_includes_default
12793 /* If this system has a BSD-style setpgrp which takes arguments,
12794 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12795 exit successfully. */
12796 return setpgrp (1,1) != -1;
12801 if ac_fn_c_try_run "$LINENO"; then :
12802 ac_cv_func_setpgrp_void=no
12804 ac_cv_func_setpgrp_void=yes
12806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12807 conftest.$ac_objext conftest.beam conftest.$ac_ext
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12812 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12813 if test $ac_cv_func_setpgrp_void = yes; then
12815 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12821 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12822 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12828 #include <unistd.h>
12834 if (setpgrp(1,1) == -1)
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844 ac_cv_func_setpgrp_void=no
12846 ac_cv_func_setpgrp_void=yes
12848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12851 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12852 if test $ac_cv_func_setpgrp_void = yes; then
12853 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12858 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12859 # since sigsetjmp might only be defined as a macro.
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12861 $as_echo_n "checking for sigsetjmp... " >&6; }
12862 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12863 $as_echo_n "(cached) " >&6
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12868 #include <setjmp.h>
12873 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12878 if ac_fn_c_try_compile "$LINENO"; then :
12879 gdb_cv_func_sigsetjmp=yes
12881 gdb_cv_func_sigsetjmp=no
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12886 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12887 if test $gdb_cv_func_sigsetjmp = yes; then
12889 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12893 # Assume we'll default to using the included libiberty regex.
12894 gdb_use_included_regex=yes
12896 # However, if the system regex is GNU regex, then default to *not*
12897 # using the included regex.
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12899 $as_echo_n "checking for GNU regex... " >&6; }
12900 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12901 $as_echo_n "(cached) " >&6
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905 #include <gnu-versions.h>
12909 #define REGEX_INTERFACE_VERSION 1
12910 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12911 # error "Version mismatch"
12917 if ac_fn_c_try_compile "$LINENO"; then :
12918 gdb_cv_have_gnu_regex=yes
12920 gdb_cv_have_gnu_regex=no
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12925 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12926 if test $gdb_cv_have_gnu_regex = yes; then
12927 gdb_use_included_regex=no
12931 # Check whether --with-included-regex was given.
12932 if test "${with_included_regex+set}" = set; then :
12933 withval=$with_included_regex; gdb_with_regex=$withval
12935 gdb_with_regex=$gdb_use_included_regex
12938 if test "$gdb_with_regex" = yes; then
12940 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12944 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12945 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12946 #include <sys/proc.h>
12949 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12951 cat >>confdefs.h <<_ACEOF
12952 #define HAVE_STRUCT_THREAD_TD_PCB 1
12959 # See if <sys/lwp.h> defines `struct lwp`.
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12961 $as_echo_n "checking for struct lwp... " >&6; }
12962 if test "${gdb_cv_struct_lwp+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967 #include <sys/param.h>
12968 #include <sys/lwp.h>
12977 if ac_fn_c_try_compile "$LINENO"; then :
12978 gdb_cv_struct_lwp=yes
12980 gdb_cv_struct_lwp=no
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12985 $as_echo "$gdb_cv_struct_lwp" >&6; }
12986 if test $gdb_cv_struct_lwp = yes; then
12988 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12992 # See if <machine/reg.h> degines `struct reg'.
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12994 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12995 if test "${gdb_cv_struct_reg+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000 #include <sys/types.h>
13001 #include <machine/reg.h>
13010 if ac_fn_c_try_compile "$LINENO"; then :
13011 gdb_cv_struct_reg=yes
13013 gdb_cv_struct_reg=no
13015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13018 $as_echo "$gdb_cv_struct_reg" >&6; }
13019 if test $gdb_cv_struct_reg = yes; then
13021 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13025 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13026 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13027 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13029 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13031 cat >>confdefs.h <<_ACEOF
13032 #define HAVE_STRUCT_REG_R_FS 1
13037 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13039 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13041 cat >>confdefs.h <<_ACEOF
13042 #define HAVE_STRUCT_REG_R_GS 1
13049 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13051 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13052 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 #include <sys/ptrace.h>
13066 if ac_fn_c_try_compile "$LINENO"; then :
13067 gdb_cv_have_ptrace_getregs=yes
13069 gdb_cv_have_ptrace_getregs=no
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13075 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13076 if test $gdb_cv_have_ptrace_getregs = yes; then
13078 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13082 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13084 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13085 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13086 $as_echo_n "(cached) " >&6
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090 #include <sys/ptrace.h>
13099 if ac_fn_c_try_compile "$LINENO"; then :
13100 gdb_cv_have_ptrace_getfpxregs=yes
13102 gdb_cv_have_ptrace_getfpxregs=no
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13108 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13109 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13111 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13115 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13117 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13118 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13123 #include <sys/types.h>
13124 #include <sys/ptrace.h>
13133 if ac_fn_c_try_compile "$LINENO"; then :
13134 gdb_cv_have_pt_getdbregs=yes
13136 gdb_cv_have_pt_getdbregs=no
13138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13142 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13143 if test $gdb_cv_have_pt_getdbregs = yes; then
13145 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13149 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13151 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13152 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13153 $as_echo_n "(cached) " >&6
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 #include <sys/types.h>
13158 #include <sys/ptrace.h>
13167 if ac_fn_c_try_compile "$LINENO"; then :
13168 gdb_cv_have_pt_getxmmregs=yes
13170 gdb_cv_have_pt_getxmmregs=no
13172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13176 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13177 if test $gdb_cv_have_pt_getxmmregs = yes; then
13179 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13183 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13185 if test "${target}" = "${host}"; then
13187 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13189 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13192 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13194 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13198 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13200 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13206 if test "$ac_cv_header_sys_procfs_h" = yes; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13208 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13209 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13210 $as_echo_n "(cached) " >&6
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13216 /* Needed for new procfs interface on sparc-solaris. */
13217 #define _STRUCTURED_PROC 1
13218 #include <sys/procfs.h>
13227 if ac_fn_c_try_compile "$LINENO"; then :
13228 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13230 bfd_cv_have_sys_procfs_type_pstatus_t=no
13233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13238 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13242 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13245 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13246 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13253 /* Needed for new procfs interface on sparc-solaris. */
13254 #define _STRUCTURED_PROC 1
13255 #include <sys/procfs.h>
13264 if ac_fn_c_try_compile "$LINENO"; then :
13265 bfd_cv_have_sys_procfs_type_prrun_t=yes
13267 bfd_cv_have_sys_procfs_type_prrun_t=no
13270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13275 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13279 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13282 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13283 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13290 /* Needed for new procfs interface on sparc-solaris. */
13291 #define _STRUCTURED_PROC 1
13292 #include <sys/procfs.h>
13301 if ac_fn_c_try_compile "$LINENO"; then :
13302 bfd_cv_have_sys_procfs_type_gregset_t=yes
13304 bfd_cv_have_sys_procfs_type_gregset_t=no
13307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13310 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13312 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13316 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13319 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13320 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h. */
13327 /* Needed for new procfs interface on sparc-solaris. */
13328 #define _STRUCTURED_PROC 1
13329 #include <sys/procfs.h>
13338 if ac_fn_c_try_compile "$LINENO"; then :
13339 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13341 bfd_cv_have_sys_procfs_type_fpregset_t=no
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13349 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13353 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13356 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13357 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13358 $as_echo_n "(cached) " >&6
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13364 /* Needed for new procfs interface on sparc-solaris. */
13365 #define _STRUCTURED_PROC 1
13366 #include <sys/procfs.h>
13375 if ac_fn_c_try_compile "$LINENO"; then :
13376 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13378 bfd_cv_have_sys_procfs_type_prgregset_t=no
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13386 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13390 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13393 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13394 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13401 /* Needed for new procfs interface on sparc-solaris. */
13402 #define _STRUCTURED_PROC 1
13403 #include <sys/procfs.h>
13412 if ac_fn_c_try_compile "$LINENO"; then :
13413 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13415 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13423 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13427 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13430 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13431 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13438 /* Needed for new procfs interface on sparc-solaris. */
13439 #define _STRUCTURED_PROC 1
13440 #include <sys/procfs.h>
13449 if ac_fn_c_try_compile "$LINENO"; then :
13450 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13452 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13460 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13464 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13467 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13468 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13469 $as_echo_n "(cached) " >&6
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13475 /* Needed for new procfs interface on sparc-solaris. */
13476 #define _STRUCTURED_PROC 1
13477 #include <sys/procfs.h>
13481 prfpregset32_t avar
13486 if ac_fn_c_try_compile "$LINENO"; then :
13487 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13489 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13497 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13501 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13504 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13505 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13512 /* Needed for new procfs interface on sparc-solaris. */
13513 #define _STRUCTURED_PROC 1
13514 #include <sys/procfs.h>
13523 if ac_fn_c_try_compile "$LINENO"; then :
13524 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13526 bfd_cv_have_sys_procfs_type_lwpid_t=no
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13534 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13538 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13541 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13542 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13543 $as_echo_n "(cached) " >&6
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13549 /* Needed for new procfs interface on sparc-solaris. */
13550 #define _STRUCTURED_PROC 1
13551 #include <sys/procfs.h>
13560 if ac_fn_c_try_compile "$LINENO"; then :
13561 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13563 bfd_cv_have_sys_procfs_type_psaddr_t=no
13566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13571 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13575 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13578 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13579 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13580 $as_echo_n "(cached) " >&6
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13586 /* Needed for new procfs interface on sparc-solaris. */
13587 #define _STRUCTURED_PROC 1
13588 #include <sys/procfs.h>
13597 if ac_fn_c_try_compile "$LINENO"; then :
13598 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13600 bfd_cv_have_sys_procfs_type_prsysent_t=no
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13608 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13612 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13615 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13616 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13623 /* Needed for new procfs interface on sparc-solaris. */
13624 #define _STRUCTURED_PROC 1
13625 #include <sys/procfs.h>
13634 if ac_fn_c_try_compile "$LINENO"; then :
13635 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13637 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13645 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13649 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13652 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13653 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13660 /* Needed for new procfs interface on sparc-solaris. */
13661 #define _STRUCTURED_PROC 1
13662 #include <sys/procfs.h>
13666 pr_sigaction64_t avar
13671 if ac_fn_c_try_compile "$LINENO"; then :
13672 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13674 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13682 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13686 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13689 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13690 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13691 $as_echo_n "(cached) " >&6
13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13697 /* Needed for new procfs interface on sparc-solaris. */
13698 #define _STRUCTURED_PROC 1
13699 #include <sys/procfs.h>
13703 pr_siginfo64_t avar
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13711 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13719 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13723 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13729 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13731 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13732 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13733 $as_echo_n "(cached) " >&6
13735 if test "$cross_compiling" = yes; then :
13736 gdb_cv_prfpregset_t_broken=yes
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13740 #include <sys/procfs.h>
13743 if (sizeof (prfpregset_t) == sizeof (void *))
13748 if ac_fn_c_try_run "$LINENO"; then :
13749 gdb_cv_prfpregset_t_broken=no
13751 gdb_cv_prfpregset_t_broken=yes
13753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13754 conftest.$ac_objext conftest.beam conftest.$ac_ext
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13760 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13761 if test $gdb_cv_prfpregset_t_broken = yes; then
13763 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13770 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13771 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776 #include <unistd.h>
13777 #include <sys/types.h>
13778 #include <sys/procfs.h>
13785 dummy = ioctl(0, PIOCSET, &dummy);
13791 if ac_fn_c_try_compile "$LINENO"; then :
13792 gdb_cv_have_procfs_piocset=yes
13794 gdb_cv_have_procfs_piocset=no
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13800 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13801 if test $gdb_cv_have_procfs_piocset = yes; then
13803 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13808 if test ${host} = ${target} ; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13811 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13812 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13813 $as_echo_n "(cached) " >&6
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13821 struct link_map lm; (void) lm.l_addr;
13826 if ac_fn_c_try_compile "$LINENO"; then :
13827 gdb_cv_have_struct_link_map_with_l_members=yes
13829 gdb_cv_have_struct_link_map_with_l_members=no
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13835 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13836 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13838 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13844 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13845 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13846 $as_echo_n "(cached) " >&6
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #include <sys/types.h>
13855 struct link_map lm; (void) lm.lm_addr;
13860 if ac_fn_c_try_compile "$LINENO"; then :
13861 gdb_cv_have_struct_link_map_with_lm_members=yes
13863 gdb_cv_have_struct_link_map_with_lm_members=no
13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13869 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13870 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13872 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13878 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13879 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884 #include <sys/types.h>
13885 #ifdef HAVE_NLIST_H
13892 struct so_map lm; (void) lm.som_addr;
13897 if ac_fn_c_try_compile "$LINENO"; then :
13898 gdb_cv_have_struct_so_map_with_som_members=yes
13900 gdb_cv_have_struct_so_map_with_som_members=no
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13906 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13907 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13909 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13915 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13916 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13917 $as_echo_n "(cached) " >&6
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13922 #include <sys/link.h>
13926 struct link_map32 l;
13931 if ac_fn_c_try_compile "$LINENO"; then :
13932 gdb_cv_have_struct_link_map32=yes
13934 gdb_cv_have_struct_link_map32=no
13936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13940 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13941 if test $gdb_cv_have_struct_link_map32 = yes; then
13943 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13946 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13951 # Check if the compiler supports the `long long' type.
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13954 $as_echo_n "checking for long long support in compiler... " >&6; }
13955 if test "${gdb_cv_c_long_long+set}" = set; then :
13956 $as_echo_n "(cached) " >&6
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 extern long long foo;
13964 switch (foo & 2) { case 0: return 1; }
13969 if ac_fn_c_try_compile "$LINENO"; then :
13970 gdb_cv_c_long_long=yes
13972 gdb_cv_c_long_long=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13977 $as_echo "$gdb_cv_c_long_long" >&6; }
13978 if test $gdb_cv_c_long_long = yes; then
13980 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13984 # Check if the compiler and runtime support printing long longs.
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13987 $as_echo_n "checking for long long support in printf... " >&6; }
13988 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13989 $as_echo_n "(cached) " >&6
13991 if test "$cross_compiling" = yes; then :
13992 gdb_cv_printf_has_long_long=no
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996 $ac_includes_default
14002 l = (l << 16) + 0x0123;
14003 l = (l << 16) + 0x4567;
14004 l = (l << 16) + 0x89ab;
14005 l = (l << 16) + 0xcdef;
14006 sprintf (buf, "0x%016llx", l);
14007 return (strcmp ("0x0123456789abcdef", buf));
14012 if ac_fn_c_try_run "$LINENO"; then :
14013 gdb_cv_printf_has_long_long=yes
14015 gdb_cv_printf_has_long_long=no
14017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14018 conftest.$ac_objext conftest.beam conftest.$ac_ext
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14023 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14024 if test $gdb_cv_printf_has_long_long = yes; then
14026 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14030 # Check if the compiler and runtime support printing decfloats.
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14033 $as_echo_n "checking for decfloat support in printf... " >&6; }
14034 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14035 $as_echo_n "(cached) " >&6
14037 if test "$cross_compiling" = yes; then :
14038 gdb_cv_printf_has_decfloat=no
14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h. */
14042 $ac_includes_default
14047 _Decimal32 d32 = 1.2345df;
14048 _Decimal64 d64 = 1.2345dd;
14049 _Decimal128 d128 = 1.2345dl;
14050 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14051 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14056 if ac_fn_c_try_run "$LINENO"; then :
14057 gdb_cv_printf_has_decfloat=yes
14059 gdb_cv_printf_has_decfloat=no
14061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14062 conftest.$ac_objext conftest.beam conftest.$ac_ext
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14067 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14068 if test $gdb_cv_printf_has_decfloat = yes; then
14070 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14074 # Check if the compiler supports the `long double' type. We can't use
14075 # AC_C_LONG_DOUBLE because that one does additional checks on the
14076 # constants defined in <float.h> that fail on some systems,
14077 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14080 $as_echo_n "checking for long double support in compiler... " >&6; }
14081 if test "${gdb_cv_c_long_double+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14088 if ac_fn_c_try_compile "$LINENO"; then :
14089 gdb_cv_c_long_double=yes
14091 gdb_cv_c_long_double=no
14093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14096 $as_echo "$gdb_cv_c_long_double" >&6; }
14097 if test $gdb_cv_c_long_double = yes; then
14099 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14103 # Check if the compiler and runtime support printing long doubles.
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14106 $as_echo_n "checking for long double support in printf... " >&6; }
14107 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14108 $as_echo_n "(cached) " >&6
14110 if test "$cross_compiling" = yes; then :
14111 gdb_cv_printf_has_long_double=no
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14115 $ac_includes_default
14120 long double f = 3.141592653;
14121 sprintf (buf, "%Lg", f);
14122 return (strncmp ("3.14159", buf, 7));
14127 if ac_fn_c_try_run "$LINENO"; then :
14128 gdb_cv_printf_has_long_double=yes
14130 gdb_cv_printf_has_long_double=no
14132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14133 conftest.$ac_objext conftest.beam conftest.$ac_ext
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14138 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14139 if test $gdb_cv_printf_has_long_double = yes; then
14141 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14145 # Check if the compiler and runtime support scanning long doubles.
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14148 $as_echo_n "checking for long double support in scanf... " >&6; }
14149 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14152 if test "$cross_compiling" = yes; then :
14153 gdb_cv_scanf_has_long_double=no
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14161 char *buf = "3.141592653";
14163 sscanf (buf, "%Lg", &f);
14164 return !(f > 3.14159 && f < 3.14160);
14169 if ac_fn_c_try_run "$LINENO"; then :
14170 gdb_cv_scanf_has_long_double=yes
14172 gdb_cv_scanf_has_long_double=no
14174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14175 conftest.$ac_objext conftest.beam conftest.$ac_ext
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14180 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14181 if test $gdb_cv_scanf_has_long_double = yes; then
14183 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14190 $as_echo_n "checking for -bbigtoc option... " >&6; }
14191 if test "${gdb_cv_bigtoc+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14195 SAVE_LDFLAGS=$LDFLAGS
14198 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14199 *) gdb_cv_bigtoc=-bbigtoc ;;
14202 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14214 if ac_fn_c_try_link "$LINENO"; then :
14219 rm -f core conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14221 LDFLAGS="${SAVE_LDFLAGS}"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14225 $as_echo "$gdb_cv_bigtoc" >&6; }
14226 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14231 $as_echo_n "checking for the dynamic export flag... " >&6; }
14233 if test "${gdb_native}" = yes; then
14234 # The dynamically loaded libthread_db needs access to symbols in the gdb
14235 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14236 # may not be supported there.
14237 old_LDFLAGS="$LDFLAGS"
14238 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14239 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14240 LDFLAGS="$LDFLAGS $RDYNAMIC"
14241 if test "${have_libpython}" = no; then
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14253 if ac_fn_c_try_link "$LINENO"; then :
14256 rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14259 # Workaround http://bugs.python.org/issue4434 where static
14260 # libpythonX.Y.a would get its symbols required for
14261 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14262 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14263 old_CFLAGS="$CFLAGS"
14264 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14265 if test "$cross_compiling" = yes; then :
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14270 #include "${have_libpython}/Python.h"
14276 err = PyRun_SimpleString ("import itertools\n");
14278 return err == 0 ? 0 : 1;
14283 if ac_fn_c_try_run "$LINENO"; then :
14286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14287 conftest.$ac_objext conftest.beam conftest.$ac_ext
14290 CFLAGS="$old_CFLAGS"
14292 LDFLAGS="$old_LDFLAGS"
14294 if $dynamic_list; then
14295 found="-Wl,--dynamic-list"
14296 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14299 RDYNAMIC="-rdynamic"
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14303 $as_echo "$found" >&6; }
14306 if test ${build} = ${host} -a ${host} = ${target} ; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14310 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
14311 if test -f /usr/include/dce/cma_config.h ; then
14312 if test "$GCC" = "yes" ; then
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14314 $as_echo "yes" >&6; }
14316 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
14318 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
14319 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14322 $as_echo "no (suppressed because you are not using GCC)" >&6; }
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14326 $as_echo "no" >&6; }
14330 # See if thread_db library is around for Solaris thread debugging.
14331 # Note that we must explicitly test for version 1 of the library
14332 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14335 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14336 if test -f /usr/lib/libthread_db.so.1 ; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14338 $as_echo "yes" >&6; }
14340 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14342 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14343 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14347 $as_echo_n "(cached) " >&6
14349 ac_check_lib_save_LIBS=$LIBS
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14354 /* Override any GCC internal prototype to avoid an error.
14355 Use char because int might match the return type of a GCC
14356 builtin and then its argument prototype would still apply. */
14369 if ac_fn_c_try_link "$LINENO"; then :
14370 ac_cv_lib_dl_dlopen=yes
14372 ac_cv_lib_dl_dlopen=no
14374 rm -f core conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
14376 LIBS=$ac_check_lib_save_LIBS
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14380 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14381 cat >>confdefs.h <<_ACEOF
14382 #define HAVE_LIBDL 1
14389 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14390 # Sun randomly tweaked the prototypes in <proc_service.h>
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14393 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14394 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14395 $as_echo_n "(cached) " >&6
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14401 #include <proc_service.h>
14402 ps_err_e ps_pdwrite
14403 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14413 if ac_fn_c_try_compile "$LINENO"; then :
14414 gdb_cv_proc_service_is_old=no
14416 gdb_cv_proc_service_is_old=yes
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14423 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14424 if test $gdb_cv_proc_service_is_old = yes; then
14426 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14431 $as_echo "no" >&6; }
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14436 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14437 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442 #include <sys/pthdebug.h>
14446 #ifndef PTHDB_VERSION_3
14453 if ac_fn_c_try_compile "$LINENO"; then :
14454 gdb_cv_have_aix_thread_debug=yes
14456 gdb_cv_have_aix_thread_debug=no
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14462 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14463 if test $gdb_cv_have_aix_thread_debug = yes; then
14464 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14465 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14466 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14473 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14475 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14476 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14477 $as_echo_n "(cached) " >&6
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 #include <thread_db.h>
14485 int i = TD_NOTALLOC;
14490 if ac_fn_c_try_compile "$LINENO"; then :
14491 gdb_cv_thread_db_h_has_td_notalloc=yes
14493 gdb_cv_thread_db_h_has_td_notalloc=no
14496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14500 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14502 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14503 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14504 $as_echo_n "(cached) " >&6
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14508 #include <thread_db.h>
14512 int i = TD_VERSION;
14517 if ac_fn_c_try_compile "$LINENO"; then :
14518 gdb_cv_thread_db_h_has_td_version=yes
14520 gdb_cv_thread_db_h_has_td_version=no
14523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14527 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14529 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14530 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14535 #include <thread_db.h>
14544 if ac_fn_c_try_compile "$LINENO"; then :
14545 gdb_cv_thread_db_h_has_td_notls=yes
14547 gdb_cv_thread_db_h_has_td_notls=no
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14554 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14556 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14558 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14561 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14563 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14566 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14568 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14572 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14574 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14575 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14576 $as_echo_n "(cached) " >&6
14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14580 #include <sys/syscall.h>
14584 int i = __NR_tkill;
14589 if ac_fn_c_try_compile "$LINENO"; then :
14590 gdb_cv_sys_syscall_h_has_tkill=yes
14592 gdb_cv_sys_syscall_h_has_tkill=no
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14599 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14601 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14603 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14607 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14609 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14620 if test "$cross_compiling" = yes; then :
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623 #include <sys/personality.h>
14628 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14629 # define ADDR_NO_RANDOMIZE 0x0040000
14631 /* Test the flag could be set and stays set. */
14632 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14633 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14639 if ac_fn_c_try_link "$LINENO"; then :
14640 have_personality=true
14642 have_personality=false
14644 rm -f core conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h. */
14649 #include <sys/personality.h>
14654 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14655 # define ADDR_NO_RANDOMIZE 0x0040000
14657 /* Test the flag could be set and stays set. */
14658 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14659 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14665 if ac_fn_c_try_run "$LINENO"; then :
14666 have_personality=true
14668 have_personality=false
14670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14671 conftest.$ac_objext conftest.beam conftest.$ac_ext
14674 if $have_personality
14677 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14682 target_sysroot_reloc=0
14684 # Check whether --with-sysroot was given.
14685 if test "${with_sysroot+set}" = set; then :
14686 withval=$with_sysroot;
14687 case ${with_sysroot} in
14688 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14689 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14692 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14694 if test "x$prefix" = xNONE; then
14695 test_prefix=/usr/local
14697 test_prefix=$prefix
14699 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14700 test_exec_prefix=$test_prefix
14702 test_exec_prefix=$exec_prefix
14704 case ${TARGET_SYSTEM_ROOT} in
14705 "${test_prefix}"|"${test_prefix}/"*|\
14706 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14707 '${prefix}'|'${prefix}/'*|\
14708 '${exec_prefix}'|'${exec_prefix}/'*)
14709 target_sysroot_reloc=1
14715 TARGET_SYSTEM_ROOT=
14716 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14720 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14726 # Check whether --with-system-gdbinit was given.
14727 if test "${with_system_gdbinit+set}" = set; then :
14728 withval=$with_system_gdbinit;
14729 SYSTEM_GDBINIT=$withval
14735 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14736 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14737 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14738 ac_define_dir=`eval echo $ac_define_dir`
14740 cat >>confdefs.h <<_ACEOF
14741 #define SYSTEM_GDBINIT "$ac_define_dir"
14747 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14748 if test "x$prefix" = xNONE; then
14749 test_prefix=/usr/local
14751 test_prefix=$prefix
14754 test_prefix=$exec_prefix
14757 case ${ac_define_dir} in
14758 "${test_prefix}"|"${test_prefix}/"*|\
14759 '${exec_prefix}'|'${exec_prefix}/'*)
14764 cat >>confdefs.h <<_ACEOF
14765 #define SYSTEM_GDBINIT_RELOCATABLE $value
14771 # Check whether --enable-werror was given.
14772 if test "${enable_werror+set}" = set; then :
14773 enableval=$enable_werror; case "${enableval}" in
14774 yes | y) ERROR_ON_WARNING="yes" ;;
14775 no | n) ERROR_ON_WARNING="no" ;;
14776 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14781 # Enable -Werror by default when using gcc
14782 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14783 ERROR_ON_WARNING=yes
14787 if test "${ERROR_ON_WARNING}" = yes ; then
14788 WERROR_CFLAGS="-Werror"
14791 # The entries after -Wno-pointer-sign are disabled warnings which may
14792 # be enabled in the future, which can not currently be used to build
14794 # NOTE: If you change this list, remember to update
14795 # gdb/doc/gdbint.texinfo.
14796 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14797 -Wformat-nonliteral -Wno-pointer-sign \
14798 -Wno-unused -Wunused-value -Wunused-function \
14799 -Wno-switch -Wno-char-subscripts"
14801 # Enable -Wno-format by default when using gcc on mingw since many
14802 # GCC versions complain about %I64.
14804 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14807 # Check whether --enable-build-warnings was given.
14808 if test "${enable_build_warnings+set}" = set; then :
14809 enableval=$enable_build_warnings; case "${enableval}" in
14811 no) build_warnings="-w";;
14812 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14813 build_warnings="${build_warnings} ${t}";;
14814 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14815 build_warnings="${t} ${build_warnings}";;
14816 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14818 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14819 echo "Setting compiler warning flags = $build_warnings" 6>&1
14822 # Check whether --enable-gdb-build-warnings was given.
14823 if test "${enable_gdb_build_warnings+set}" = set; then :
14824 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14826 no) build_warnings="-w";;
14827 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14828 build_warnings="${build_warnings} ${t}";;
14829 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14830 build_warnings="${t} ${build_warnings}";;
14831 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14833 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14834 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14838 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14841 $as_echo_n "checking compiler warning flags... " >&6; }
14842 # Separate out the -Werror flag as some files just cannot be
14843 # compiled with it enabled.
14844 for w in ${build_warnings}; do
14846 -Werr*) WERROR_CFLAGS=-Werror ;;
14847 *) # Check that GCC accepts it
14848 saved_CFLAGS="$CFLAGS"
14849 CFLAGS="$CFLAGS $w"
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h. */
14861 if ac_fn_c_try_compile "$LINENO"; then :
14862 WARN_CFLAGS="${WARN_CFLAGS} $w"
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 CFLAGS="$saved_CFLAGS"
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14869 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14874 # In the Cygwin environment, we need some additional flags.
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14876 $as_echo_n "checking for cygwin... " >&6; }
14877 if test "${gdb_cv_os_cygwin+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14888 $EGREP "lose" >/dev/null 2>&1; then :
14889 gdb_cv_os_cygwin=yes
14891 gdb_cv_os_cygwin=no
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14897 $as_echo "$gdb_cv_os_cygwin" >&6; }
14900 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14902 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14903 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14904 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14908 # libreadline needs libuser32.a in a cygwin environment
14910 if test x$gdb_cv_os_cygwin = xyes; then
14911 WIN32LIBS="-luser32"
14912 case "${target}" in
14913 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14918 # The ser-tcp.c module requires sockets.
14922 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14924 WIN32LIBS="$WIN32LIBS -lws2_32"
14929 # Add ELF support to GDB, but only if BFD includes ELF support.
14931 OLD_LDFLAGS=$LDFLAGS
14933 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14934 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14935 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14936 LIBS="-lbfd -liberty $intl $LIBS"
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14938 $as_echo_n "checking for ELF support in BFD... " >&6; }
14939 if test "${gdb_cv_var_elf+set}" = set; then :
14940 $as_echo_n "(cached) " >&6
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14944 #include <stdlib.h>
14946 #include "elf-bfd.h"
14951 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14956 if ac_fn_c_try_link "$LINENO"; then :
14961 rm -f core conftest.err conftest.$ac_objext \
14962 conftest$ac_exeext conftest.$ac_ext
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14965 $as_echo "$gdb_cv_var_elf" >&6; }
14966 if test $gdb_cv_var_elf = yes; then
14967 CONFIG_OBS="$CONFIG_OBS elfread.o"
14969 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14973 LDFLAGS=$OLD_LDFLAGS
14976 # Add any host-specific objects to GDB.
14977 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14979 LIBGUI="../libgui/src/libgui.a"
14980 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14989 *-*-cygwin* | *-*-mingw* )
14998 if test "${enable_gdbtk}" = "yes"; then
15000 # Gdbtk must have an absolute path to srcdir in order to run
15001 # properly when not installed.
15004 GDBTK_SRC_DIR=`pwd`
15009 # Ok, lets find the tcl configuration
15010 # First, look for one uninstalled.
15011 # the alternative search directory is invoked by --with-tcl
15014 if test x"${no_tcl}" = x ; then
15015 # we reset no_tcl in case something fails here
15018 # Check whether --with-tcl was given.
15019 if test "${with_tcl+set}" = set; then :
15020 withval=$with_tcl; with_tclconfig=${withval}
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15024 $as_echo_n "checking for Tcl configuration... " >&6; }
15025 if test "${ac_cv_c_tclconfig+set}" = set; then :
15026 $as_echo_n "(cached) " >&6
15030 # First check to see if --with-tcl was specified.
15032 *-*-cygwin*) platDir="win" ;;
15033 *) platDir="unix" ;;
15035 if test x"${with_tclconfig}" != x ; then
15036 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15037 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15039 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15043 # then check for a private Tcl installation
15044 if test x"${ac_cv_c_tclconfig}" = x ; then
15047 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15048 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15049 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15051 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15052 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15053 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15055 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15056 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15057 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15058 if test -f "$i/$platDir/tclConfig.sh" ; then
15059 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15065 # on Darwin, check in Framework installation locations
15066 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15067 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15068 `ls -d /Library/Frameworks 2>/dev/null` \
15069 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15070 `ls -d /System/Library/Frameworks 2>/dev/null` \
15072 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15073 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15079 # check in a few common install locations
15080 if test x"${ac_cv_c_tclconfig}" = x ; then
15081 for i in `ls -d ${libdir} 2>/dev/null` \
15082 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15083 `ls -d ${prefix}/lib 2>/dev/null` \
15084 `ls -d /usr/local/lib 2>/dev/null` \
15085 `ls -d /usr/contrib/lib 2>/dev/null` \
15086 `ls -d /usr/lib 2>/dev/null` \
15088 if test -f "$i/tclConfig.sh" ; then
15089 ac_cv_c_tclconfig=`(cd $i; pwd)`
15095 # check in a few other private locations
15096 if test x"${ac_cv_c_tclconfig}" = x ; then
15099 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15100 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15101 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15102 if test -f "$i/$platDir/tclConfig.sh" ; then
15103 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15112 if test x"${ac_cv_c_tclconfig}" = x ; then
15113 TCL_BIN_DIR="# no Tcl configs found"
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15115 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15118 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15120 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15125 # If $no_tk is nonempty, then we can't do Tk, and there is no
15126 # point to doing Tcl.
15129 # Ok, lets find the tk configuration
15130 # First, look for one uninstalled.
15131 # the alternative search directory is invoked by --with-tk
15134 if test x"${no_tk}" = x ; then
15135 # we reset no_tk in case something fails here
15138 # Check whether --with-tk was given.
15139 if test "${with_tk+set}" = set; then :
15140 withval=$with_tk; with_tkconfig=${withval}
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15144 $as_echo_n "checking for Tk configuration... " >&6; }
15145 if test "${ac_cv_c_tkconfig+set}" = set; then :
15146 $as_echo_n "(cached) " >&6
15150 # First check to see if --with-tkconfig was specified.
15151 if test x"${with_tkconfig}" != x ; then
15152 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15153 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15155 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15159 # then check for a private Tk library
15161 *-*-cygwin*) platDir="win" ;;
15162 *) platDir="unix" ;;
15164 if test x"${ac_cv_c_tkconfig}" = x ; then
15167 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15168 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15169 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15171 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15172 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15173 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15175 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15176 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15177 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15178 if test -f "$i/$platDir/tkConfig.sh" ; then
15179 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15185 # on Darwin, check in Framework installation locations
15186 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15187 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15188 `ls -d /Library/Frameworks 2>/dev/null` \
15189 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15190 `ls -d /System/Library/Frameworks 2>/dev/null` \
15192 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15193 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15199 # check in a few common install locations
15200 if test x"${ac_cv_c_tkconfig}" = x ; then
15201 for i in `ls -d ${libdir} 2>/dev/null` \
15202 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15203 `ls -d ${prefix}/lib 2>/dev/null` \
15204 `ls -d /usr/local/lib 2>/dev/null` \
15205 `ls -d /usr/contrib/lib 2>/dev/null` \
15206 `ls -d /usr/lib 2>/dev/null` \
15208 if test -f "$i/tkConfig.sh" ; then
15209 ac_cv_c_tkconfig=`(cd $i; pwd)`
15214 # check in a few other private locations
15215 if test x"${ac_cv_c_tkconfig}" = x ; then
15218 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15219 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15220 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15221 if test -f "$i/$platDir/tkConfig.sh" ; then
15222 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15231 if test x"${ac_cv_c_tkconfig}" = x ; then
15232 TK_BIN_DIR="# no Tk configs found"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15234 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15237 TK_BIN_DIR=${ac_cv_c_tkconfig}
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15239 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15244 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15247 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15249 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15251 $as_echo "loading" >&6; }
15252 . ${TCL_BIN_DIR}/tclConfig.sh
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15255 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15258 # eval is required to do the TCL_DBGX substitution
15259 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15260 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15262 # If the TCL_BIN_DIR is the build directory (not the install directory),
15263 # then set the common variable name to the value of the build variables.
15264 # For example, the variable TCL_LIB_SPEC will be set to the value
15265 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15266 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15267 # installed and uninstalled version of Tcl.
15268 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15269 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15270 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15271 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15272 elif test "`uname -s`" = "Darwin"; then
15273 # If Tcl was built as a framework, attempt to use the libraries
15274 # from the framework at the given location so that linking works
15275 # against Tcl.framework installed in an arbitary location.
15276 case ${TCL_DEFS} in
15278 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15279 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15280 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15281 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15282 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15287 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15288 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15289 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15295 # eval is required to do the TCL_DBGX substitution
15296 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15297 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15298 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15299 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15315 # Check for in-tree tcl
15322 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15326 # Find Tcl private headers
15327 if test x"${intree}" = xno; then
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15330 $as_echo_n "checking for Tcl private headers... " >&6; }
15332 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15333 if test -f ${dir}/tclInt.h ; then
15337 if test x"${private_dir}" = x; then
15338 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15340 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15342 $as_echo "${private_dir}" >&6; }
15345 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15346 TCL_LIBRARY="${TCL_LIB_SPEC}"
15349 # If building tcl in the same src tree, private headers
15350 # are not needed, but we need to be sure to use the right
15352 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15353 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15354 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15362 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15364 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15366 $as_echo "loading" >&6; }
15367 . ${TK_BIN_DIR}/tkConfig.sh
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15370 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15373 # eval is required to do the TK_DBGX substitution
15374 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15375 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15377 # If the TK_BIN_DIR is the build directory (not the install directory),
15378 # then set the common variable name to the value of the build variables.
15379 # For example, the variable TK_LIB_SPEC will be set to the value
15380 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15381 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15382 # installed and uninstalled version of Tcl.
15383 if test -f "${TK_BIN_DIR}/Makefile" ; then
15384 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15385 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15386 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15387 elif test "`uname -s`" = "Darwin"; then
15388 # If Tk was built as a framework, attempt to use the libraries
15389 # from the framework at the given location so that linking works
15390 # against Tk.framework installed in an arbitary location.
15393 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15394 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15395 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15396 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15397 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15402 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15403 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15404 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15410 # eval is required to do the TK_DBGX substitution
15411 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15412 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15413 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15414 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15429 # Check for in-tree Tk
15431 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15435 # Find Tk private headers
15436 if test x"${intree}" = xno; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15439 $as_echo_n "checking for Tk private headers... " >&6; }
15441 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15442 if test -f ${dir}/tkInt.h; then
15446 if test x"${private_dir}" = x; then
15447 as_fn_error "could not find Tk private headers" "$LINENO" 5
15449 TK_PRIVATE_INCLUDE="-I${private_dir}"
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15451 $as_echo "${private_dir}" >&6; }
15454 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15455 TK_LIBRARY=${TK_LIB_SPEC}
15458 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15459 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15460 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15467 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15469 # Include some libraries that Tcl and Tk want.
15470 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15471 # Yes, the ordering seems wrong here. But it isn't.
15472 # TK_LIBS is the list of libraries that need to be linked
15473 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15474 # were in LIBS then any link tests after this point would
15475 # try to include things like `$(LIBGUI)', which wouldn't work.
15476 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15478 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15479 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15480 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15481 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15482 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15483 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15484 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15486 if test x$gdb_cv_os_cygwin = xyes; then
15487 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15488 WIN32LDAPP="-Wl,--subsystem,console"
15489 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15492 subdirs="$subdirs gdbtk"
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15505 $as_echo_n "checking for X... " >&6; }
15508 # Check whether --with-x was given.
15509 if test "${with_x+set}" = set; then :
15513 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15514 if test "x$with_x" = xno; then
15515 # The user explicitly disabled X.
15518 case $x_includes,$x_libraries in #(
15519 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15520 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15521 $as_echo_n "(cached) " >&6
15523 # One or both of the vars are not set, and there is no cached value.
15524 ac_x_includes=no ac_x_libraries=no
15525 rm -f -r conftest.dir
15526 if mkdir conftest.dir; then
15528 cat >Imakefile <<'_ACEOF'
15530 @echo incroot='${INCROOT}'
15532 @echo usrlibdir='${USRLIBDIR}'
15534 @echo libdir='${LIBDIR}'
15536 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15537 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15538 for ac_var in incroot usrlibdir libdir; do
15539 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15541 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15542 for ac_extension in a so sl dylib la dll; do
15543 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15544 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15545 ac_im_usrlibdir=$ac_im_libdir; break
15548 # Screen out bogus values from the imake configuration. They are
15549 # bogus both because they are the default anyway, and because
15550 # using them would break gcc on systems where it needs fixed includes.
15551 case $ac_im_incroot in
15552 /usr/include) ac_x_includes= ;;
15553 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15555 case $ac_im_usrlibdir in
15556 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15557 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15561 rm -f -r conftest.dir
15564 # Standard set of common directories for X headers.
15565 # Check X11 before X11Rn because it is often a symlink to the current release.
15579 /usr/local/X11/include
15580 /usr/local/X11R7/include
15581 /usr/local/X11R6/include
15582 /usr/local/X11R5/include
15583 /usr/local/X11R4/include
15585 /usr/local/include/X11
15586 /usr/local/include/X11R7
15587 /usr/local/include/X11R6
15588 /usr/local/include/X11R5
15589 /usr/local/include/X11R4
15593 /usr/XFree86/include/X11
15597 /usr/unsupported/include
15598 /usr/athena/include
15599 /usr/local/x11r5/include
15600 /usr/lpp/Xamples/include
15602 /usr/openwin/include
15603 /usr/openwin/share/include'
15605 if test "$ac_x_includes" = no; then
15606 # Guess where to find include files, by looking for Xlib.h.
15607 # First, try using that file with no special directory specified.
15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15610 #include <X11/Xlib.h>
15612 if ac_fn_c_try_cpp "$LINENO"; then :
15613 # We can compile using X headers with no special include directory.
15616 for ac_dir in $ac_x_header_dirs; do
15617 if test -r "$ac_dir/X11/Xlib.h"; then
15618 ac_x_includes=$ac_dir
15623 rm -f conftest.err conftest.$ac_ext
15624 fi # $ac_x_includes = no
15626 if test "$ac_x_libraries" = no; then
15627 # Check for the libraries.
15628 # See if we find them without any special options.
15629 # Don't add to $LIBS permanently.
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 #include <X11/Xlib.h>
15643 if ac_fn_c_try_link "$LINENO"; then :
15645 # We can link X programs with no special library path.
15649 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15651 # Don't even attempt the hair of trying to link an X program!
15652 for ac_extension in a so sl dylib la dll; do
15653 if test -r "$ac_dir/libX11.$ac_extension"; then
15654 ac_x_libraries=$ac_dir
15660 rm -f core conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 fi # $ac_x_libraries = no
15664 case $ac_x_includes,$ac_x_libraries in #(
15665 no,* | *,no | *\'*)
15666 # Didn't find X, or a directory has "'" in its name.
15667 ac_cv_have_x="have_x=no";; #(
15669 # Record where we found X for the cache.
15670 ac_cv_have_x="have_x=yes\
15671 ac_x_includes='$ac_x_includes'\
15672 ac_x_libraries='$ac_x_libraries'"
15678 eval "$ac_cv_have_x"
15681 if test "$have_x" != yes; then
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15683 $as_echo "$have_x" >&6; }
15686 # If each of the values was on the command line, it overrides each guess.
15687 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15688 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15689 # Update the cache value to reflect the command line values.
15690 ac_cv_have_x="have_x=yes\
15691 ac_x_includes='$x_includes'\
15692 ac_x_libraries='$x_libraries'"
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15694 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15698 # Unlike the sim directory, whether a simulator is linked is controlled by
15699 # presence of a gdb_sim definition in the target configure.tgt entry.
15700 # This code just checks for a few cases where we'd like to ignore those
15701 # definitions, even when they're present in the '.mt' file. These cases
15702 # are when --disable-sim is specified, or if the simulator directory is
15703 # not part of the source tree.
15705 # Check whether --enable-sim was given.
15706 if test "${enable_sim+set}" = set; then :
15707 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15708 echo "enableval = ${enableval}";
15709 case "${enableval}" in
15710 yes) ignore_sim=false ;;
15711 no) ignore_sim=true ;;
15712 *) ignore_sim=false ;;
15719 if test ! -d "${srcdir}/../sim"; then
15725 if test "${ignore_sim}" = "false"; then
15726 if test x"${gdb_sim}" != x ; then
15728 SIM_OBS="remote-sim.o"
15730 $as_echo "#define WITH_SIM 1" >>confdefs.h
15748 # List of host floatformats.
15750 cat >>confdefs.h <<_ACEOF
15751 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15755 cat >>confdefs.h <<_ACEOF
15756 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15760 cat >>confdefs.h <<_ACEOF
15761 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15765 # target_subdir is used by the testsuite to find the target libraries.
15767 if test "${host}" != "${target}"; then
15768 target_subdir="${target_alias}/"
15773 if test "${gdb_native}" = "yes"; then
15774 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15775 if test ! -f ${host_makefile_frag}; then
15776 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15778 frags="$frags $host_makefile_frag"
15780 host_makefile_frag=/dev/null
15786 if test "${gdb_native}" = "yes"; then
15787 # We pick this up from the host configuration file (.mh) because we
15788 # do not have a native configuration Makefile fragment.
15789 nativefile=`sed -n '
15790 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15791 ' ${host_makefile_frag}`
15795 if test x"${gdb_osabi}" != x ; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define GDB_OSABI_DEFAULT $gdb_osabi
15803 # Enable multi-ice-gdb-server.
15804 # Check whether --enable-multi-ice was given.
15805 if test "${enable_multi_ice+set}" = set; then :
15806 enableval=$enable_multi_ice; case $enableval in
15809 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15813 if test "x$enable_multi_ice" = xyes; then
15814 subdirs="$subdirs multi-ice"
15818 # We only build gdbserver automatically in a native configuration.
15819 if test "$gdb_native" = "yes"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15821 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15822 if test "x$build_gdbserver" = xyes; then
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15824 $as_echo "yes" >&6; }
15825 subdirs="$subdirs gdbserver"
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15833 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15834 # to an empty version.
15840 if test "${nativefile}" != ""; then
15841 case "${nativefile}" in
15842 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15843 * ) GDB_NM_FILE="${nativefile}"
15845 files="${files} ${GDB_NM_FILE}"
15846 links="${links} nm.h"
15848 cat >>confdefs.h <<_ACEOF
15849 #define GDB_NM_FILE "${GDB_NM_FILE}"
15855 ac_sources="$files"
15857 while test -n "$ac_sources"; do
15858 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15859 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15860 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15862 ac_config_links="$ac_config_links $ac_config_links_1"
15868 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15871 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
15873 ac_config_commands="$ac_config_commands default"
15875 cat >confcache <<\_ACEOF
15876 # This file is a shell script that caches the results of configure
15877 # tests run on this system so they can be shared between configure
15878 # scripts and configure runs, see configure's option --config-cache.
15879 # It is not useful on other systems. If it contains results you don't
15880 # want to keep, you may remove or edit it.
15882 # config.status only pays attention to the cache file if you give it
15883 # the --recheck option to rerun configure.
15885 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15886 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15887 # following values.
15891 # The following way of writing the cache mishandles newlines in values,
15892 # but we know of no workaround that is simple, portable, and efficient.
15893 # So, we kill variables containing newlines.
15894 # Ultrix sh set writes to stderr and can't be redirected directly,
15895 # and sets the high bit in the cache file unless we assign to the vars.
15897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15898 eval ac_val=\$$ac_var
15902 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15903 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15906 _ | IFS | as_nl) ;; #(
15907 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15908 *) { eval $ac_var=; unset $ac_var;} ;;
15914 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15915 *${as_nl}ac_space=\ *)
15916 # `set' does not quote correctly, so add quotes: double-quote
15917 # substitution turns \\\\ into \\, and sed turns \\ into \.
15920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15923 # `set' quotes correctly as required by POSIX, so do not add quotes.
15924 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15933 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15935 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15937 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15938 if test -w "$cache_file"; then
15939 test "x$cache_file" != "x/dev/null" &&
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15941 $as_echo "$as_me: updating cache $cache_file" >&6;}
15942 cat confcache >$cache_file
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15945 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15950 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15951 # Let make expand exec_prefix.
15952 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15954 DEFS=-DHAVE_CONFIG_H
15958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15959 # 1. Remove the extension, and $U if already installed.
15960 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15961 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15962 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15963 # will be set to the directory where LIBOBJS objects are built.
15964 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15965 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15967 LIBOBJS=$ac_libobjs
15969 LTLIBOBJS=$ac_ltlibobjs
15972 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15973 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15976 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15977 as_fn_error "conditional \"GMAKE\" was never defined.
15978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15980 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15981 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15987 if test -n "$gl_LIBOBJS"; then
15988 # Remove the extension.
15989 sed_drop_objext='s/\.o$//;s/\.obj$//'
15990 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15991 gl_libobjs="$gl_libobjs $i.$ac_objext"
15992 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15995 gl_LIBOBJS=$gl_libobjs
15997 gl_LTLIBOBJS=$gl_ltlibobjs
16003 if test -n "$gltests_LIBOBJS"; then
16004 # Remove the extension.
16005 sed_drop_objext='s/\.o$//;s/\.obj$//'
16006 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16007 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16008 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16011 gltests_LIBOBJS=$gltests_libobjs
16013 gltests_LTLIBOBJS=$gltests_ltlibobjs
16016 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16017 as_fn_error "conditional \"AMDEP\" was never defined.
16018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16020 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16021 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16024 if test -n "$EXEEXT"; then
16026 am__EXEEXT_FALSE='#'
16028 am__EXEEXT_TRUE='#'
16034 : ${CONFIG_STATUS=./config.status}
16036 ac_clean_files_save=$ac_clean_files
16037 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16039 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16041 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16043 # Generated by $as_me.
16044 # Run this file to recreate the current configuration.
16045 # Compiler output produced by configure, useful for debugging
16046 # configure, is in config.log if it exists.
16049 ac_cs_recheck=false
16052 SHELL=\${CONFIG_SHELL-$SHELL}
16055 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16056 ## -------------------- ##
16057 ## M4sh Initialization. ##
16058 ## -------------------- ##
16060 # Be more Bourne compatible
16061 DUALCASE=1; export DUALCASE # for MKS sh
16062 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16065 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16066 # is contrary to our usage. Disable this feature.
16067 alias -g '${1+"$@"}'='"$@"'
16068 setopt NO_GLOB_SUBST
16070 case `(set -o) 2>/dev/null` in #(
16082 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16083 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16084 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16086 # Prefer a ksh shell builtin over an external printf program on Solaris,
16087 # but without wasting forks for bash or zsh.
16088 if test -z "$BASH_VERSION$ZSH_VERSION" \
16089 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16090 as_echo='print -r --'
16091 as_echo_n='print -rn --'
16092 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16093 as_echo='printf %s\n'
16094 as_echo_n='printf %s'
16096 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16097 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16098 as_echo_n='/usr/ucb/echo -n'
16100 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16101 as_echo_n_body='eval
16105 expr "X$arg" : "X\\(.*\\)$as_nl";
16106 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16108 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16110 export as_echo_n_body
16111 as_echo_n='sh -c $as_echo_n_body as_echo'
16113 export as_echo_body
16114 as_echo='sh -c $as_echo_body as_echo'
16117 # The user is always right.
16118 if test "${PATH_SEPARATOR+set}" != set; then
16120 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16121 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16128 # We need space, tab and new line, in precisely that order. Quoting is
16129 # there to prevent editors from complaining about space-tab.
16130 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16131 # splitting by setting IFS to empty value.)
16134 # Find who we are. Look in the path if we contain no directory separator.
16136 *[\\/]* ) as_myself=$0 ;;
16137 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16138 for as_dir in $PATH
16141 test -z "$as_dir" && as_dir=.
16142 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16148 # We did not find ourselves, most probably we were run as `sh COMMAND'
16149 # in which case we are not to be found in the path.
16150 if test "x$as_myself" = x; then
16153 if test ! -f "$as_myself"; then
16154 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16158 # Unset variables that we do not need and which cause bugs (e.g. in
16159 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16160 # suppresses any "Segmentation fault" message there. '((' could
16161 # trigger a bug in pdksh 5.2.14.
16162 for as_var in BASH_ENV ENV MAIL MAILPATH
16163 do eval test x\${$as_var+set} = xset \
16164 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16177 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16180 # as_fn_error ERROR [LINENO LOG_FD]
16181 # ---------------------------------
16182 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16183 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16184 # script with status $?, using 1 if that was 0.
16187 as_status=$?; test $as_status -eq 0 && as_status=1
16189 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16190 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16192 $as_echo "$as_me: error: $1" >&2
16193 as_fn_exit $as_status
16197 # as_fn_set_status STATUS
16198 # -----------------------
16199 # Set $? to STATUS, without forking.
16200 as_fn_set_status ()
16203 } # as_fn_set_status
16205 # as_fn_exit STATUS
16206 # -----------------
16207 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16211 as_fn_set_status $1
16217 # Portably unset VAR.
16220 { eval $1=; unset $1;}
16222 as_unset=as_fn_unset
16223 # as_fn_append VAR VALUE
16224 # ----------------------
16225 # Append the text in VALUE to the end of the definition contained in VAR. Take
16226 # advantage of any shell optimizations that allow amortized linear growth over
16227 # repeated appends, instead of the typical quadratic growth present in naive
16229 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16230 eval 'as_fn_append ()
16241 # as_fn_arith ARG...
16242 # ------------------
16243 # Perform arithmetic evaluation on the ARGs, and store the result in the
16244 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16245 # must be portable across $(()) and expr.
16246 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16247 eval 'as_fn_arith ()
16254 as_val=`expr "$@" || test $? -eq 1`
16259 if expr a : '\(a\)' >/dev/null 2>&1 &&
16260 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16266 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16267 as_basename=basename
16272 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16278 as_me=`$as_basename -- "$0" ||
16279 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16280 X"$0" : 'X\(//\)$' \| \
16281 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16283 sed '/^.*\/\([^/][^/]*\)\/*$/{
16297 # Avoid depending upon Character Ranges.
16298 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16299 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16300 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16301 as_cr_digits='0123456789'
16302 as_cr_alnum=$as_cr_Letters$as_cr_digits
16304 ECHO_C= ECHO_N= ECHO_T=
16305 case `echo -n x` in #(((((
16307 case `echo 'xy\c'` in
16308 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16310 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16317 rm -f conf$$ conf$$.exe conf$$.file
16318 if test -d conf$$.dir; then
16319 rm -f conf$$.dir/conf$$.file
16322 mkdir conf$$.dir 2>/dev/null
16324 if (echo >conf$$.file) 2>/dev/null; then
16325 if ln -s conf$$.file conf$$ 2>/dev/null; then
16327 # ... but there are two gotchas:
16328 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16329 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16330 # In both cases, we have to default to `cp -p'.
16331 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16333 elif ln conf$$.file conf$$ 2>/dev/null; then
16341 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16342 rmdir conf$$.dir 2>/dev/null
16347 # Create "$as_dir" as a directory, including parents if necessary.
16352 -*) as_dir=./$as_dir;;
16354 test -d "$as_dir" || eval $as_mkdir_p || {
16358 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16359 *) as_qdir=$as_dir;;
16361 as_dirs="'$as_qdir' $as_dirs"
16362 as_dir=`$as_dirname -- "$as_dir" ||
16363 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16364 X"$as_dir" : 'X\(//\)[^/]' \| \
16365 X"$as_dir" : 'X\(//\)$' \| \
16366 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16367 $as_echo X"$as_dir" |
16368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16372 /^X\(\/\/\)[^/].*/{
16385 test -d "$as_dir" && break
16387 test -z "$as_dirs" || eval "mkdir $as_dirs"
16388 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16392 if mkdir -p . 2>/dev/null; then
16393 as_mkdir_p='mkdir -p "$as_dir"'
16395 test -d ./-p && rmdir ./-p
16399 if test -x / >/dev/null 2>&1; then
16400 as_test_x='test -x'
16402 if ls -dL / >/dev/null 2>&1; then
16409 if test -d "$1"; then
16415 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16416 ???[sx]*):;;*)false;;esac;fi
16420 as_executable_p=$as_test_x
16422 # Sed expression to map a string onto a valid CPP name.
16423 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16425 # Sed expression to map a string onto a valid variable name.
16426 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16430 ## ----------------------------------- ##
16431 ## Main body of $CONFIG_STATUS script. ##
16432 ## ----------------------------------- ##
16434 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16437 # Save the log message, to keep $0 and so on meaningful, and to
16438 # report actual input values of CONFIG_FILES etc. instead of their
16439 # values after options handling.
16441 This file was extended by $as_me, which was
16442 generated by GNU Autoconf 2.64. Invocation command line was
16444 CONFIG_FILES = $CONFIG_FILES
16445 CONFIG_HEADERS = $CONFIG_HEADERS
16446 CONFIG_LINKS = $CONFIG_LINKS
16447 CONFIG_COMMANDS = $CONFIG_COMMANDS
16450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16455 case $ac_config_files in *"
16456 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16459 case $ac_config_headers in *"
16460 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16465 # Files that config.status was made for.
16466 config_files="$ac_config_files"
16467 config_headers="$ac_config_headers"
16468 config_links="$ac_config_links"
16469 config_commands="$ac_config_commands"
16473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16475 \`$as_me' instantiates files and other configuration actions
16476 from templates according to the current configuration. Unless the files
16477 and actions are specified as TAGs, all are instantiated by default.
16479 Usage: $0 [OPTION]... [TAG]...
16481 -h, --help print this help, then exit
16482 -V, --version print version number and configuration settings, then exit
16483 -q, --quiet, --silent
16484 do not print progress messages
16485 -d, --debug don't remove temporary files
16486 --recheck update $as_me by reconfiguring in the same conditions
16487 --file=FILE[:TEMPLATE]
16488 instantiate the configuration file FILE
16489 --header=FILE[:TEMPLATE]
16490 instantiate the configuration header FILE
16492 Configuration files:
16495 Configuration headers:
16498 Configuration links:
16501 Configuration commands:
16504 Report bugs to the package provider."
16507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16510 configured by $0, generated by GNU Autoconf 2.64,
16511 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16513 Copyright (C) 2009 Free Software Foundation, Inc.
16514 This config.status script is free software; the Free Software Foundation
16515 gives unlimited permission to copy, distribute and modify it."
16522 test -n "\$AWK" || AWK=awk
16525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16526 # The default lists apply if the user does not specify any file.
16532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16533 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16544 # Handling of the options.
16545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16548 $as_echo "$ac_cs_version"; exit ;;
16549 --debug | --debu | --deb | --de | --d | -d )
16551 --file | --fil | --fi | --f )
16554 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16556 as_fn_append CONFIG_FILES " '$ac_optarg'"
16557 ac_need_defaults=false;;
16558 --header | --heade | --head | --hea )
16561 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16563 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16564 ac_need_defaults=false;;
16566 # Conflict between --help and --header
16567 as_fn_error "ambiguous option: \`$1'
16568 Try \`$0 --help' for more information.";;
16569 --help | --hel | -h )
16570 $as_echo "$ac_cs_usage"; exit ;;
16571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16572 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16575 # This is an error.
16576 -*) as_fn_error "unrecognized option: \`$1'
16577 Try \`$0 --help' for more information." ;;
16579 *) as_fn_append ac_config_targets " $1"
16580 ac_need_defaults=false ;;
16586 ac_configure_extra_args=
16588 if $ac_cs_silent; then
16590 ac_configure_extra_args="$ac_configure_extra_args --silent"
16594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595 if \$ac_cs_recheck; then
16596 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16598 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16599 CONFIG_SHELL='$SHELL'
16600 export CONFIG_SHELL
16605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16609 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16610 ## Running $as_me. ##
16616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16620 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16621 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627 # Handling of arguments.
16628 for ac_config_target in $ac_config_targets
16630 case $ac_config_target in
16631 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16632 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16633 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16634 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16635 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16636 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16637 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16638 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16640 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16645 # If the user did not use the arguments to specify the items to instantiate,
16646 # then the envvar interface is used. Set only those that are not.
16647 # We use the long form for the default assignment because of an extremely
16648 # bizarre bug on SunOS 4.1.3.
16649 if $ac_need_defaults; then
16650 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16651 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16652 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16656 # Have a temporary directory for convenience. Make it in the build tree
16657 # simply because there is no reason against having it here, and in addition,
16658 # creating and moving files from /tmp can sometimes cause problems.
16659 # Hook for its removal unless debugging.
16660 # Note that there is a small window in which the directory will not be cleaned:
16661 # after its creation but before its name has been assigned to `$tmp'.
16665 trap 'exit_status=$?
16666 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16668 trap 'as_fn_exit 1' 1 2 13 15
16670 # Create a (secure) tmp directory for tmp files.
16673 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16674 test -n "$tmp" && test -d "$tmp"
16677 tmp=./conf$$-$RANDOM
16678 (umask 077 && mkdir "$tmp")
16679 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16681 # Set up the scripts for CONFIG_FILES section.
16682 # No need to generate them if there are no CONFIG_FILES.
16683 # This happens for instance with `./config.status config.h'.
16684 if test -n "$CONFIG_FILES"; then
16686 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16687 ac_cs_awk_getline=:
16688 ac_cs_awk_pipe_init=
16689 ac_cs_awk_read_file='
16690 while ((getline aline < (F[key])) > 0)
16693 ac_cs_awk_pipe_fini=
16695 ac_cs_awk_getline=false
16696 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16697 ac_cs_awk_read_file='
16699 print "cat " F[key] " &&"
16700 '$ac_cs_awk_pipe_init
16701 # The final `:' finishes the AND list.
16702 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16704 ac_cr=`echo X | tr X '\015'`
16705 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16706 # But we know of no other shell where ac_cr would be empty at this
16707 # point, so we can use a bashism as a fallback.
16708 if test "x$ac_cr" = x; then
16709 eval ac_cr=\$\'\\r\'
16711 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16712 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16715 ac_cs_awk_cr=$ac_cr
16718 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16721 # Create commands to substitute file output variables.
16723 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16724 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16725 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16728 } >conf$$files.sh &&
16729 . ./conf$$files.sh ||
16730 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16731 rm -f conf$$files.sh
16734 echo "cat >conf$$subs.awk <<_ACEOF" &&
16735 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16737 } >conf$$subs.sh ||
16738 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16739 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16741 for ac_last_try in false false false false false :; do
16742 . ./conf$$subs.sh ||
16743 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16745 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16746 if test $ac_delim_n = $ac_delim_num; then
16748 elif $ac_last_try; then
16749 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16754 rm -f conf$$subs.sh
16756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16757 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16761 s/^/S["/; s/!.*/"]=/
16771 s/\(.\{148\}\).*/\1/
16773 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16785 s/\(.\{148\}\).*/\1/
16787 s/["\\]/\\&/g; s/^/"/; s/$/"/
16791 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16796 ' <conf$$subs.awk | sed '
16801 ' >>$CONFIG_STATUS || ac_write_fail=1
16802 rm -f conf$$subs.awk
16803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16805 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16806 for (key in S) S_is_set[key] = 1
16808 \$ac_cs_awk_pipe_init
16812 nfields = split(line, field, "@")
16814 len = length(field[1])
16815 for (i = 2; i < nfields; i++) {
16817 keylen = length(key)
16818 if (S_is_set[key]) {
16820 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16821 len += length(value) + length(field[++i])
16826 if (nfields == 3 && !substed) {
16828 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16829 \$ac_cs_awk_read_file
16835 \$ac_cs_awk_pipe_fini
16838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16839 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16840 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16843 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16844 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16847 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16848 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16849 # trailing colons and then remove the whole line if VPATH becomes empty
16850 # (actually we leave an empty line to preserve line numbers).
16851 if test "x$srcdir" = x.; then
16852 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16853 s/:*\$(srcdir):*/:/
16854 s/:*\${srcdir}:*/:/
16856 s/^\([^=]*=[ ]*\):*/\1/
16862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16863 fi # test -n "$CONFIG_FILES"
16865 # Set up the scripts for CONFIG_HEADERS section.
16866 # No need to generate them if there are no CONFIG_HEADERS.
16867 # This happens for instance with `./config.status Makefile'.
16868 if test -n "$CONFIG_HEADERS"; then
16869 cat >"$tmp/defines.awk" <<\_ACAWK ||
16873 # Transform confdefs.h into an awk script `defines.awk', embedded as
16874 # here-document in config.status, that substitutes the proper values into
16875 # config.h.in to produce config.h.
16877 # Create a delimiter string that does not exist in confdefs.h, to ease
16878 # handling of long lines.
16880 for ac_last_try in false false :; do
16881 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16882 if test -z "$ac_t"; then
16884 elif $ac_last_try; then
16885 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16891 # For the awk script, D is an array of macro values keyed by name,
16892 # likewise P contains macro parameters if any. Preserve backslash
16893 # newline sequences.
16895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16897 s/.\{148\}/&'"$ac_delim"'/g
16900 s/^[ ]*#[ ]*define[ ][ ]*/ /
16907 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16914 D["\1"]=" \3\\\\\\n"\\/p
16916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16921 s/.\{148\}/&'"$ac_delim"'/g
16926 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16929 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16931 ' <confdefs.h | sed '
16932 s/'"$ac_delim"'/"\\\
16933 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16936 for (key in D) D_is_set[key] = 1
16939 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16941 split(line, arg, " ")
16942 if (arg[1] == "#") {
16946 defundef = substr(arg[1], 2)
16949 split(mac1, mac2, "(") #)
16951 prefix = substr(line, 1, index(line, defundef) - 1)
16952 if (D_is_set[macro]) {
16953 # Preserve the white space surrounding the "#".
16954 print prefix "define", macro P[macro] D[macro]
16957 # Replace #undef with comments. This is necessary, for example,
16958 # in the case of _POSIX_SOURCE, which is predefined and required
16959 # on some systems where configure will not decide to define it.
16960 if (defundef == "undef") {
16961 print "/*", prefix defundef, macro, "*/"
16969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16970 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16971 fi # test -n "$CONFIG_HEADERS"
16974 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16979 :[FHLC]) ac_mode=$ac_tag; continue;;
16981 case $ac_mode$ac_tag in
16983 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16984 :[FH]-) ac_tag=-:-;;
16985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17002 -) ac_f="$tmp/stdin";;
17003 *) # Look for the file first in the build tree, then in the source tree
17004 # (if the path is not absolute). The absolute path cannot be DOS-style,
17005 # because $ac_f cannot contain `:'.
17009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17011 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17013 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17014 as_fn_append ac_file_inputs " '$ac_f'"
17017 # Let's still pretend it is `configure' which instantiates (i.e., don't
17018 # use $as_me), people would be surprised to read:
17019 # /* config.h. Generated by config.status. */
17020 configure_input='Generated from '`
17021 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17023 if test x"$ac_file" != x-; then
17024 configure_input="$ac_file. $configure_input"
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17026 $as_echo "$as_me: creating $ac_file" >&6;}
17028 # Neutralize special characters interpreted by sed in replacement strings.
17029 case $configure_input in #(
17030 *\&* | *\|* | *\\* )
17031 ac_sed_conf_input=`$as_echo "$configure_input" |
17032 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17033 *) ac_sed_conf_input=$configure_input;;
17037 *:-:* | *:-) cat >"$tmp/stdin" \
17038 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17043 ac_dir=`$as_dirname -- "$ac_file" ||
17044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17045 X"$ac_file" : 'X\(//\)[^/]' \| \
17046 X"$ac_file" : 'X\(//\)$' \| \
17047 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17048 $as_echo X"$ac_file" |
17049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17053 /^X\(\/\/\)[^/].*/{
17066 as_dir="$ac_dir"; as_fn_mkdir_p
17070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17073 # A ".." for each directory in $ac_dir_suffix.
17074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17075 case $ac_top_builddir_sub in
17076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17080 ac_abs_top_builddir=$ac_pwd
17081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17082 # for backward compatibility:
17083 ac_top_builddir=$ac_top_build_prefix
17086 .) # We are building in place.
17088 ac_top_srcdir=$ac_top_builddir_sub
17089 ac_abs_top_srcdir=$ac_pwd ;;
17090 [\\/]* | ?:[\\/]* ) # Absolute name.
17091 ac_srcdir=$srcdir$ac_dir_suffix;
17092 ac_top_srcdir=$srcdir
17093 ac_abs_top_srcdir=$srcdir ;;
17094 *) # Relative name.
17095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17096 ac_top_srcdir=$ac_top_build_prefix$srcdir
17097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17109 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17110 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17112 ac_MKDIR_P=$MKDIR_P
17114 [\\/$]* | ?:[\\/]* ) ;;
17115 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120 # If the template does not know about datarootdir, expand it.
17121 # FIXME: This hack should be removed a few years after 2.60.
17122 ac_datarootdir_hack=; ac_datarootdir_seen=
17133 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17134 *datarootdir*) ac_datarootdir_seen=yes;;
17135 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17137 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17140 ac_datarootdir_hack='
17141 s&@datadir@&$datadir&g
17142 s&@docdir@&$docdir&g
17143 s&@infodir@&$infodir&g
17144 s&@localedir@&$localedir&g
17145 s&@mandir@&$mandir&g
17146 s&\\\${datarootdir}&$datarootdir&g' ;;
17150 # Neutralize VPATH when `$srcdir' = `.'.
17151 # Shell code in configure.ac might set extrasub.
17152 # FIXME: do we really want to maintain this feature?
17153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17154 ac_sed_extra="$ac_vpsub
17157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17160 s|@configure_input@|$ac_sed_conf_input|;t t
17161 s&@top_builddir@&$ac_top_builddir_sub&;t t
17162 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17163 s&@srcdir@&$ac_srcdir&;t t
17164 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17165 s&@top_srcdir@&$ac_top_srcdir&;t t
17166 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17167 s&@builddir@&$ac_builddir&;t t
17168 s&@abs_builddir@&$ac_abs_builddir&;t t
17169 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17170 s&@INSTALL@&$ac_INSTALL&;t t
17171 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17172 $ac_datarootdir_hack
17174 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17175 if $ac_cs_awk_getline; then
17176 $AWK -f "$tmp/subs.awk"
17178 $AWK -f "$tmp/subs.awk" | $SHELL
17180 || as_fn_error "could not create $ac_file" "$LINENO" 5
17182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17183 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17186 which seems to be undefined. Please make sure it is defined." >&5
17187 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17188 which seems to be undefined. Please make sure it is defined." >&2;}
17192 -) cat "$tmp/out" && rm -f "$tmp/out";;
17193 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17195 || as_fn_error "could not create $ac_file" "$LINENO" 5
17201 if test x"$ac_file" != x-; then
17203 $as_echo "/* $configure_input */" \
17204 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17205 } >"$tmp/config.h" \
17206 || as_fn_error "could not create $ac_file" "$LINENO" 5
17207 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17209 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17212 mv "$tmp/config.h" "$ac_file" \
17213 || as_fn_error "could not create $ac_file" "$LINENO" 5
17216 $as_echo "/* $configure_input */" \
17217 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17218 || as_fn_error "could not create -" "$LINENO" 5
17220 # Compute "$ac_file"'s index in $config_headers.
17223 for _am_header in $config_headers :; do
17224 case $_am_header in
17225 $_am_arg | $_am_arg:* )
17228 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17231 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17232 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17233 X"$_am_arg" : 'X\(//\)[^/]' \| \
17234 X"$_am_arg" : 'X\(//\)$' \| \
17235 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17236 $as_echo X"$_am_arg" |
17237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17241 /^X\(\/\/\)[^/].*/{
17253 s/.*/./; q'`/stamp-h$_am_stamp_count
17260 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17263 # Prefer the file from the source tree if names are identical.
17264 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17265 ac_source=$srcdir/$ac_source
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17269 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17271 if test ! -r "$ac_source"; then
17272 as_fn_error "$ac_source: file not found" "$LINENO" 5
17276 # Try a relative symlink, then a hard link, then a copy.
17278 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17279 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17281 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17282 ln "$ac_source" "$ac_file" 2>/dev/null ||
17283 cp -p "$ac_source" "$ac_file" ||
17284 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17287 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17288 $as_echo "$as_me: executing $ac_file commands" >&6;}
17293 case $ac_file$ac_mode in
17294 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17295 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17296 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17297 # are listed without --file. Let's play safe and only enable the eval
17298 # if we detect the quoting.
17299 case $CONFIG_FILES in
17300 *\'*) eval set x "$CONFIG_FILES" ;;
17301 *) set x $CONFIG_FILES ;;
17306 # Strip MF so we end up with the name of the file.
17307 mf=`echo "$mf" | sed -e 's/:.*$//'`
17308 # Check whether this is an Automake generated Makefile or not.
17309 # We used to match only the files named `Makefile.in', but
17310 # some people rename them; so instead we look at the file content.
17311 # Grep'ing the first line is not enough: some people post-process
17312 # each Makefile.in and add a new line on top of each file to say so.
17313 # Grep'ing the whole file is not good either: AIX grep has a line
17314 # limit of 2048, but all sed's we know have understand at least 4000.
17315 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17316 dirpart=`$as_dirname -- "$mf" ||
17317 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17318 X"$mf" : 'X\(//\)[^/]' \| \
17319 X"$mf" : 'X\(//\)$' \| \
17320 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17326 /^X\(\/\/\)[^/].*/{
17342 # Extract the definition of DEPDIR, am__include, and am__quote
17343 # from the Makefile without running `make'.
17344 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17345 test -z "$DEPDIR" && continue
17346 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17347 test -z "am__include" && continue
17348 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17349 # When using ansi2knr, U may be empty or an underscore; expand it
17350 U=`sed -n 's/^U = //p' < "$mf"`
17351 # Find all dependency output files, they are included files with
17352 # $(DEPDIR) in their names. We invoke sed twice because it is the
17353 # simplest approach to changing $(DEPDIR) to its actual value in the
17355 for file in `sed -n "
17356 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17357 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17358 # Make sure the directory exists.
17359 test -f "$dirpart/$file" && continue
17360 fdir=`$as_dirname -- "$file" ||
17361 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17362 X"$file" : 'X\(//\)[^/]' \| \
17363 X"$file" : 'X\(//\)$' \| \
17364 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17365 $as_echo X"$file" |
17366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17370 /^X\(\/\/\)[^/].*/{
17383 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17384 # echo "creating $dirpart/$file"
17385 echo '# dummy' > "$dirpart/$file"
17391 case x$CONFIG_HEADERS in
17392 xconfig.h:config.in)
17403 ac_clean_files=$ac_clean_files_save
17405 test $ac_write_fail = 0 ||
17406 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17409 # configure is writing to config.log, and then calls config.status.
17410 # config.status does its own redirection, appending to config.log.
17411 # Unfortunately, on DOS this fails, as config.log is still kept open
17412 # by configure, so config.status won't be able to write to it; its
17413 # output is simply discarded. So we exec the FD to /dev/null,
17414 # effectively closing config.log, so it can be properly (re)opened and
17415 # appended to by config.status. When coming back to configure, we
17416 # need to make the FD available again.
17417 if test "$no_create" != yes; then
17419 ac_config_status_args=
17420 test "$silent" = yes &&
17421 ac_config_status_args="$ac_config_status_args --quiet"
17423 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17425 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17426 # would make configure fail if this is the last instruction.
17427 $ac_cs_success || as_fn_exit $?
17431 # CONFIG_SUBDIRS section.
17433 if test "$no_recursion" != yes; then
17435 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17436 # so they do not pile up.
17437 ac_sub_configure_args=
17439 eval "set x $ac_configure_args"
17443 if test -n "$ac_prev"; then
17448 -cache-file | --cache-file | --cache-fil | --cache-fi \
17449 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17450 ac_prev=cache_file ;;
17451 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17452 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17455 --config-cache | -C)
17457 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17459 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17461 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17463 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17465 --disable-option-checking)
17469 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17471 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17475 # Always prepend --prefix to ensure using the same prefix
17476 # in subdir configurations.
17477 ac_arg="--prefix=$prefix"
17479 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17481 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17484 if test "$silent" = yes; then
17485 ac_sub_configure_args="--silent $ac_sub_configure_args"
17488 # Always prepend --disable-option-checking to silence warnings, since
17489 # different subdirs can have different --enable and --with options.
17490 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17493 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17495 # Do not complain, so a configure script can configure whichever
17496 # parts of a large source tree are present.
17497 test -d "$srcdir/$ac_dir" || continue
17499 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17500 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17501 $as_echo "$ac_msg" >&6
17502 as_dir="$ac_dir"; as_fn_mkdir_p
17506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17509 # A ".." for each directory in $ac_dir_suffix.
17510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17511 case $ac_top_builddir_sub in
17512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17516 ac_abs_top_builddir=$ac_pwd
17517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17518 # for backward compatibility:
17519 ac_top_builddir=$ac_top_build_prefix
17522 .) # We are building in place.
17524 ac_top_srcdir=$ac_top_builddir_sub
17525 ac_abs_top_srcdir=$ac_pwd ;;
17526 [\\/]* | ?:[\\/]* ) # Absolute name.
17527 ac_srcdir=$srcdir$ac_dir_suffix;
17528 ac_top_srcdir=$srcdir
17529 ac_abs_top_srcdir=$srcdir ;;
17530 *) # Relative name.
17531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17532 ac_top_srcdir=$ac_top_build_prefix$srcdir
17533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17540 # Check for guested configure; otherwise get Cygnus style configure.
17541 if test -f "$ac_srcdir/configure.gnu"; then
17542 ac_sub_configure=$ac_srcdir/configure.gnu
17543 elif test -f "$ac_srcdir/configure"; then
17544 ac_sub_configure=$ac_srcdir/configure
17545 elif test -f "$ac_srcdir/configure.in"; then
17546 # This should be Cygnus configure.
17547 ac_sub_configure=$ac_aux_dir/configure
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17554 # The recursion is here.
17555 if test -n "$ac_sub_configure"; then
17556 # Make the cache file name correct relative to the subdirectory.
17557 case $cache_file in
17558 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17559 *) # Relative name.
17560 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17563 { $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
17564 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17565 # The eval makes quoting arguments work.
17566 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17567 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17568 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17574 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17576 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}