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
667 READLINE_TEXI_INCFLAG
698 INSTALL_STRIP_PROGRAM
719 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
755 NEXT_AS_FIRST_DIRECTIVE_STRING_H
765 HAVE_SIGNED_SIG_ATOMIC_T
768 BITSIZEOF_SIG_ATOMIC_T
774 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
778 HAVE_UNSIGNED_LONG_LONG_INT
780 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
783 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
788 APPLE_UNIVERSAL_BUILD
854 GL_COND_LIBTOOL_FALSE
899 MAINTAINER_MODE_FALSE
928 program_transform_name
939 ac_subst_files='host_makefile_frag'
941 enable_option_checking
942 enable_maintainer_mode
945 enable_dependency_tracking
946 with_separate_debug_dir
948 with_relocated_sources
972 enable_build_warnings
973 enable_gdb_build_warnings
981 ac_precious_vars='build_alias
993 ac_subdirs_all='testsuite
998 # Initialize some variables set by options.
1000 ac_init_version=false
1001 ac_unrecognized_opts=
1002 ac_unrecognized_sep=
1003 # The variables have the same names as the options, with
1004 # dashes changed to underlines.
1005 cache_file=/dev/null
1012 program_transform_name=s,x,x,
1020 # Installation directory options.
1021 # These are left unexpanded so users can "make install exec_prefix=/foo"
1022 # and all the variables that are supposed to be based on exec_prefix
1023 # by default will actually change.
1024 # Use braces instead of parens because sh, perl, etc. also accept them.
1025 # (The list follows the same order as the GNU Coding Standards.)
1026 bindir='${exec_prefix}/bin'
1027 sbindir='${exec_prefix}/sbin'
1028 libexecdir='${exec_prefix}/libexec'
1029 datarootdir='${prefix}/share'
1030 datadir='${datarootdir}'
1031 sysconfdir='${prefix}/etc'
1032 sharedstatedir='${prefix}/com'
1033 localstatedir='${prefix}/var'
1034 includedir='${prefix}/include'
1035 oldincludedir='/usr/include'
1036 docdir='${datarootdir}/doc/${PACKAGE}'
1037 infodir='${datarootdir}/info'
1042 libdir='${exec_prefix}/lib'
1043 localedir='${datarootdir}/locale'
1044 mandir='${datarootdir}/man'
1050 # If the previous option needs an argument, assign it.
1051 if test -n "$ac_prev"; then
1052 eval $ac_prev=\$ac_option
1058 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1062 # Accept the important Cygnus configure options, so we can diagnose typos.
1064 case $ac_dashdash$ac_option in
1068 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1071 bindir=$ac_optarg ;;
1073 -build | --build | --buil | --bui | --bu)
1074 ac_prev=build_alias ;;
1075 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1076 build_alias=$ac_optarg ;;
1078 -cache-file | --cache-file | --cache-fil | --cache-fi \
1079 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1080 ac_prev=cache_file ;;
1081 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1082 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1083 cache_file=$ac_optarg ;;
1085 --config-cache | -C)
1086 cache_file=config.cache ;;
1088 -datadir | --datadir | --datadi | --datad)
1090 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1091 datadir=$ac_optarg ;;
1093 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1094 | --dataroo | --dataro | --datar)
1095 ac_prev=datarootdir ;;
1096 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1097 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1098 datarootdir=$ac_optarg ;;
1100 -disable-* | --disable-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid feature name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "enable_$ac_useropt"
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1114 eval enable_$ac_useropt=no ;;
1116 -docdir | --docdir | --docdi | --doc | --do)
1118 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1119 docdir=$ac_optarg ;;
1121 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1123 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1124 dvidir=$ac_optarg ;;
1126 -enable-* | --enable-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid feature name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "enable_$ac_useropt"
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1140 eval enable_$ac_useropt=\$ac_optarg ;;
1142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1144 | --exec | --exe | --ex)
1145 ac_prev=exec_prefix ;;
1146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1148 | --exec=* | --exe=* | --ex=*)
1149 exec_prefix=$ac_optarg ;;
1151 -gas | --gas | --ga | --g)
1152 # Obsolete; use --with-gas.
1155 -help | --help | --hel | --he | -h)
1156 ac_init_help=long ;;
1157 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1158 ac_init_help=recursive ;;
1159 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1160 ac_init_help=short ;;
1162 -host | --host | --hos | --ho)
1163 ac_prev=host_alias ;;
1164 -host=* | --host=* | --hos=* | --ho=*)
1165 host_alias=$ac_optarg ;;
1167 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1169 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1171 htmldir=$ac_optarg ;;
1173 -includedir | --includedir | --includedi | --included | --include \
1174 | --includ | --inclu | --incl | --inc)
1175 ac_prev=includedir ;;
1176 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1177 | --includ=* | --inclu=* | --incl=* | --inc=*)
1178 includedir=$ac_optarg ;;
1180 -infodir | --infodir | --infodi | --infod | --info | --inf)
1182 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1183 infodir=$ac_optarg ;;
1185 -libdir | --libdir | --libdi | --libd)
1187 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1188 libdir=$ac_optarg ;;
1190 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1191 | --libexe | --libex | --libe)
1192 ac_prev=libexecdir ;;
1193 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1194 | --libexe=* | --libex=* | --libe=*)
1195 libexecdir=$ac_optarg ;;
1197 -localedir | --localedir | --localedi | --localed | --locale)
1198 ac_prev=localedir ;;
1199 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1200 localedir=$ac_optarg ;;
1202 -localstatedir | --localstatedir | --localstatedi | --localstated \
1203 | --localstate | --localstat | --localsta | --localst | --locals)
1204 ac_prev=localstatedir ;;
1205 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1206 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1207 localstatedir=$ac_optarg ;;
1209 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1211 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1212 mandir=$ac_optarg ;;
1214 -nfp | --nfp | --nf)
1215 # Obsolete; use --without-fp.
1218 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1219 | --no-cr | --no-c | -n)
1222 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1223 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1226 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1227 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1228 | --oldin | --oldi | --old | --ol | --o)
1229 ac_prev=oldincludedir ;;
1230 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1231 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1232 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1233 oldincludedir=$ac_optarg ;;
1235 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1237 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1238 prefix=$ac_optarg ;;
1240 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1241 | --program-pre | --program-pr | --program-p)
1242 ac_prev=program_prefix ;;
1243 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1244 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1245 program_prefix=$ac_optarg ;;
1247 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1248 | --program-suf | --program-su | --program-s)
1249 ac_prev=program_suffix ;;
1250 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1251 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1252 program_suffix=$ac_optarg ;;
1254 -program-transform-name | --program-transform-name \
1255 | --program-transform-nam | --program-transform-na \
1256 | --program-transform-n | --program-transform- \
1257 | --program-transform | --program-transfor \
1258 | --program-transfo | --program-transf \
1259 | --program-trans | --program-tran \
1260 | --progr-tra | --program-tr | --program-t)
1261 ac_prev=program_transform_name ;;
1262 -program-transform-name=* | --program-transform-name=* \
1263 | --program-transform-nam=* | --program-transform-na=* \
1264 | --program-transform-n=* | --program-transform-=* \
1265 | --program-transform=* | --program-transfor=* \
1266 | --program-transfo=* | --program-transf=* \
1267 | --program-trans=* | --program-tran=* \
1268 | --progr-tra=* | --program-tr=* | --program-t=*)
1269 program_transform_name=$ac_optarg ;;
1271 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1273 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1274 pdfdir=$ac_optarg ;;
1276 -psdir | --psdir | --psdi | --psd | --ps)
1278 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1285 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1287 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1289 sbindir=$ac_optarg ;;
1291 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1292 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1293 | --sharedst | --shareds | --shared | --share | --shar \
1295 ac_prev=sharedstatedir ;;
1296 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1297 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1298 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1300 sharedstatedir=$ac_optarg ;;
1302 -site | --site | --sit)
1304 -site=* | --site=* | --sit=*)
1307 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1309 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1310 srcdir=$ac_optarg ;;
1312 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1313 | --syscon | --sysco | --sysc | --sys | --sy)
1314 ac_prev=sysconfdir ;;
1315 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1316 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1317 sysconfdir=$ac_optarg ;;
1319 -target | --target | --targe | --targ | --tar | --ta | --t)
1320 ac_prev=target_alias ;;
1321 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1322 target_alias=$ac_optarg ;;
1324 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1327 -version | --version | --versio | --versi | --vers | -V)
1328 ac_init_version=: ;;
1331 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 as_fn_error "invalid package name: $ac_useropt"
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1344 eval with_$ac_useropt=\$ac_optarg ;;
1346 -without-* | --without-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error "invalid package name: $ac_useropt"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1360 eval with_$ac_useropt=no ;;
1363 # Obsolete; use --with-x.
1366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1367 | --x-incl | --x-inc | --x-in | --x-i)
1368 ac_prev=x_includes ;;
1369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1371 x_includes=$ac_optarg ;;
1373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1375 ac_prev=x_libraries ;;
1376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1378 x_libraries=$ac_optarg ;;
1380 -*) as_fn_error "unrecognized option: \`$ac_option'
1381 Try \`$0 --help' for more information."
1385 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386 # Reject names that are not valid shell variable names.
1387 case $ac_envvar in #(
1388 '' | [0-9]* | *[!_$as_cr_alnum]* )
1389 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1391 eval $ac_envvar=\$ac_optarg
1392 export $ac_envvar ;;
1395 # FIXME: should be removed in autoconf 3.0.
1396 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1397 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1398 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1399 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405 if test -n "$ac_prev"; then
1406 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1407 as_fn_error "missing argument to $ac_option"
1410 if test -n "$ac_unrecognized_opts"; then
1411 case $enable_option_checking in
1413 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1414 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1418 # Check all directory arguments for consistency.
1419 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420 datadir sysconfdir sharedstatedir localstatedir includedir \
1421 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422 libdir localedir mandir
1424 eval ac_val=\$$ac_var
1425 # Remove trailing slashes.
1428 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429 eval $ac_var=\$ac_val;;
1431 # Be sure to have absolute directory names.
1433 [\\/$]* | ?:[\\/]* ) continue;;
1434 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1436 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1439 # There might be people who depend on the old broken behavior: `$host'
1440 # used to hold the argument of --host etc.
1441 # FIXME: To remove some day.
1444 target=$target_alias
1446 # FIXME: To remove some day.
1447 if test "x$host_alias" != x; then
1448 if test "x$build_alias" = x; then
1449 cross_compiling=maybe
1450 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1451 If a cross compiler is detected then cross compile mode will be used." >&2
1452 elif test "x$build_alias" != "x$host_alias"; then
1458 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1460 test "$silent" = yes && exec 6>/dev/null
1463 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1464 ac_ls_di=`ls -di .` &&
1465 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1466 as_fn_error "working directory cannot be determined"
1467 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1468 as_fn_error "pwd does not report name of working directory"
1471 # Find the source files, if location was not specified.
1472 if test -z "$srcdir"; then
1473 ac_srcdir_defaulted=yes
1474 # Try the directory containing this script, then the parent directory.
1475 ac_confdir=`$as_dirname -- "$as_myself" ||
1476 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1477 X"$as_myself" : 'X\(//\)[^/]' \| \
1478 X"$as_myself" : 'X\(//\)$' \| \
1479 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1480 $as_echo X"$as_myself" |
1481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1499 if test ! -r "$srcdir/$ac_unique_file"; then
1503 ac_srcdir_defaulted=no
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1506 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1507 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1509 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1511 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1513 # When building in place, set srcdir=.
1514 if test "$ac_abs_confdir" = "$ac_pwd"; then
1517 # Remove unnecessary trailing slashes from srcdir.
1518 # Double slashes in file names in object file debugging info
1519 # mess up M-x gdb in Emacs.
1521 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1523 for ac_var in $ac_precious_vars; do
1524 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1525 eval ac_env_${ac_var}_value=\$${ac_var}
1526 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1527 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 # Report the --help message.
1533 if test "$ac_init_help" = "long"; then
1534 # Omit some internal or obsolete options to make the list less imposing.
1535 # This message is too long to be a string in the A/UX 3.1 sh.
1537 \`configure' configures this package to adapt to many kinds of systems.
1539 Usage: $0 [OPTION]... [VAR=VALUE]...
1541 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1542 VAR=VALUE. See below for descriptions of some of the useful variables.
1544 Defaults for the options are specified in brackets.
1547 -h, --help display this help and exit
1548 --help=short display options specific to this package
1549 --help=recursive display the short help of all the included packages
1550 -V, --version display version information and exit
1551 -q, --quiet, --silent do not print \`checking...' messages
1552 --cache-file=FILE cache test results in FILE [disabled]
1553 -C, --config-cache alias for \`--cache-file=config.cache'
1554 -n, --no-create do not create output files
1555 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1557 Installation directories:
1558 --prefix=PREFIX install architecture-independent files in PREFIX
1559 [$ac_default_prefix]
1560 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1563 By default, \`make install' will install all the files in
1564 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1565 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1566 for instance \`--prefix=\$HOME'.
1568 For better control, use the options below.
1570 Fine tuning of the installation directories:
1571 --bindir=DIR user executables [EPREFIX/bin]
1572 --sbindir=DIR system admin executables [EPREFIX/sbin]
1573 --libexecdir=DIR program executables [EPREFIX/libexec]
1574 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1575 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1576 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1577 --libdir=DIR object code libraries [EPREFIX/lib]
1578 --includedir=DIR C header files [PREFIX/include]
1579 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1580 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1581 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1582 --infodir=DIR info documentation [DATAROOTDIR/info]
1583 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1584 --mandir=DIR man documentation [DATAROOTDIR/man]
1585 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1586 --htmldir=DIR html documentation [DOCDIR]
1587 --dvidir=DIR dvi documentation [DOCDIR]
1588 --pdfdir=DIR pdf documentation [DOCDIR]
1589 --psdir=DIR ps documentation [DOCDIR]
1595 --program-prefix=PREFIX prepend PREFIX to installed program names
1596 --program-suffix=SUFFIX append SUFFIX to installed program names
1597 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1600 --x-includes=DIR X include files are in DIR
1601 --x-libraries=DIR X library files are in DIR
1604 --build=BUILD configure for building on BUILD [guessed]
1605 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1606 --target=TARGET configure for building compilers for TARGET [HOST]
1610 if test -n "$ac_init_help"; then
1615 --disable-option-checking ignore unrecognized --enable/--with options
1616 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1617 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1618 --enable-maintainer-mode enable make rules and dependencies not useful
1619 (and sometimes confusing) to the casual installer
1620 --enable-plugins Enable support for plugins (defaults no)
1621 --disable-largefile omit support for large files
1622 --disable-dependency-tracking speeds up one-time build
1623 --enable-dependency-tracking do not reject slow dependency extractors
1624 --enable-targets=TARGETS
1625 alternative target configurations
1626 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1627 --disable-gdbcli disable command-line interface (CLI)
1628 --disable-gdbmi disable machine-interface (MI)
1629 --enable-tui enable full-screen terminal user interface (TUI)
1630 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1631 --enable-profiling enable profiling of GDB
1632 --disable-rpath do not hardcode runtime library paths
1633 --enable-werror treat compile warnings as errors
1634 --enable-build-warnings enable build-time compiler warnings if gcc is used
1635 --enable-gdb-build-warnings
1636 enable GDB specific build-time compiler warnings if
1638 --enable-sim link gdb with simulator
1639 --enable-multi-ice build the multi-ice-gdb-server
1640 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-separate-debug-dir=PATH
1647 look for global separate debug info in this path
1649 --with-gdb-datadir=PATH look for global separate data files in this path
1651 --with-relocated-sources=PATH
1652 automatically relocate this path for source files
1653 --with-libunwind use libunwind frame unwinding support
1654 --with-curses use the curses library instead of the termcap
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-zlib include zlib support (auto/yes/no) default=auto
1659 --with-libiconv-prefix=DIR
1660 search for libiconv in DIR/include and DIR/lib
1661 --with-system-readline use installed readline library
1662 --with-expat include expat support (auto/yes/no)
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1665 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1666 --with-python[=PYTHON] include python support
1667 (auto/yes/no/<python-program>)
1668 --without-included-regex
1669 don't use included regex; this is the default on
1670 systems with version 2 of the GNU C library (use
1671 with caution on other system)
1672 --with-sysroot[=DIR] search for usr/lib et al within DIR
1673 --with-system-gdbinit=PATH
1674 automatically load a system-wide gdbinit file
1675 --with-tcl directory containing tcl configuration (tclConfig.sh)
1676 --with-tk directory containing tk configuration (tkConfig.sh)
1677 --with-x use the X Window System
1679 Some influential environment variables:
1680 CC C compiler command
1681 CFLAGS C compiler flags
1682 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1683 nonstandard directory <lib dir>
1684 LIBS libraries to pass to the linker, e.g. -l<library>
1685 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1686 you have headers in a nonstandard directory <include dir>
1688 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1689 the first program found out of: `bison -y', `byacc', `yacc'.
1690 YFLAGS The list of arguments that will be passed by default to $YACC.
1691 This script will default YFLAGS to the empty string to avoid a
1692 default value of `-d' given by some make applications.
1693 XMKMF Path to xmkmf, Makefile generator for X Window System
1695 Use these variables to override the choices made by `configure' or to help
1696 it to find libraries and programs with nonstandard names/locations.
1698 Report bugs to the package provider.
1703 if test "$ac_init_help" = "recursive"; then
1704 # If there are subdirs, report their specific --help.
1705 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706 test -d "$ac_dir" ||
1707 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715 # A ".." for each directory in $ac_dir_suffix.
1716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717 case $ac_top_builddir_sub in
1718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722 ac_abs_top_builddir=$ac_pwd
1723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724 # for backward compatibility:
1725 ac_top_builddir=$ac_top_build_prefix
1728 .) # We are building in place.
1730 ac_top_srcdir=$ac_top_builddir_sub
1731 ac_abs_top_srcdir=$ac_pwd ;;
1732 [\\/]* | ?:[\\/]* ) # Absolute name.
1733 ac_srcdir=$srcdir$ac_dir_suffix;
1734 ac_top_srcdir=$srcdir
1735 ac_abs_top_srcdir=$srcdir ;;
1737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738 ac_top_srcdir=$ac_top_build_prefix$srcdir
1739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743 cd "$ac_dir" || { ac_status=$?; continue; }
1744 # Check for guested configure.
1745 if test -f "$ac_srcdir/configure.gnu"; then
1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748 elif test -f "$ac_srcdir/configure"; then
1750 $SHELL "$ac_srcdir/configure" --help=recursive
1752 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754 cd "$ac_pwd" || { ac_status=$?; break; }
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1762 generated by GNU Autoconf 2.64
1764 Copyright (C) 2009 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext
1782 if { { ac_try="$ac_compile"
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.$ac_objext; then :
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 } # ac_fn_c_try_compile
1813 # ac_fn_c_try_cpp LINENO
1814 # ----------------------
1815 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_cpp conftest.$ac_ext"
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } >/dev/null && {
1835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1853 # the include files in INCLUDES and setting the cache variable VAR
1855 ac_fn_c_check_header_mongrel ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862 $as_echo_n "(cached) " >&6
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1868 # Is the header compilable?
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1870 $as_echo_n "checking $2 usability... " >&6; }
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 ac_header_compiler=yes
1879 ac_header_compiler=no
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1883 $as_echo "$ac_header_compiler" >&6; }
1885 # Is the header present?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1887 $as_echo_n "checking $2 presence... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1892 if ac_fn_c_try_cpp "$LINENO"; then :
1893 ac_header_preproc=yes
1895 ac_header_preproc=no
1897 rm -f conftest.err conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1899 $as_echo "$ac_header_preproc" >&6; }
1901 # So? What about this header?
1902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1905 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1911 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1913 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1915 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1917 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925 $as_echo_n "(cached) " >&6
1927 eval "$3=\$ac_header_compiler"
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935 } # ac_fn_c_check_header_mongrel
1937 # ac_fn_c_try_run LINENO
1938 # ----------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1940 # that executables *can* be run.
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_link"
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>&5
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1955 { { case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_try") 2>&5
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; }; }; then :
1967 $as_echo "$as_me: program exited with status $ac_status" >&5
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1971 ac_retval=$ac_status
1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists and can be compiled using the include files in
1982 # INCLUDES, setting the cache variable VAR accordingly.
1983 ac_fn_c_check_header_compile ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1989 $as_echo_n "(cached) " >&6
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1996 if ac_fn_c_try_compile "$LINENO"; then :
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008 } # ac_fn_c_check_header_compile
2010 # ac_fn_c_try_link LINENO
2011 # -----------------------
2012 # Try to link conftest.$ac_ext, and return whether this succeeded.
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 rm -f conftest.$ac_objext conftest$ac_exeext
2017 if { { ac_try="$ac_link"
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_link") 2>conftest.err
2026 if test -s conftest.err; then
2027 grep -v '^ *+' conftest.err >conftest.er1
2028 cat conftest.er1 >&5
2029 mv -f conftest.er1 conftest.err
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && {
2033 test -z "$ac_c_werror_flag" ||
2034 test ! -s conftest.err
2035 } && test -s conftest$ac_exeext && {
2036 test "$cross_compiling" = yes ||
2037 $as_test_x conftest$ac_exeext
2041 $as_echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2046 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2047 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2048 # interfere with the next link command; also delete a directory that is
2049 # left behind by Apple's compiler. We do this before executing the actions.
2050 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 } # ac_fn_c_try_link
2056 # ac_fn_c_check_func LINENO FUNC VAR
2057 # ----------------------------------
2058 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2059 ac_fn_c_check_func ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071 #define $2 innocuous_$2
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
2079 # include <limits.h>
2081 # include <assert.h>
2086 /* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined __stub_$2 || defined __stub___$2
2108 if ac_fn_c_try_link "$LINENO"; then :
2113 rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121 } # ac_fn_c_check_func
2123 # ac_fn_c_check_decl LINENO SYMBOL VAR
2124 # ------------------------------------
2125 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2126 ac_fn_c_check_decl ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 as_decl_name=`echo $2|sed 's/ *(.*//'`
2130 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2132 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2133 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2134 $as_echo_n "(cached) " >&6
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2142 #ifndef $as_decl_name
2144 (void) $as_decl_use;
2146 (void) $as_decl_name;
2154 if ac_fn_c_try_compile "$LINENO"; then :
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 } # ac_fn_c_check_decl
2168 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2169 # --------------------------------------------
2170 # Tries to find the compile-time value of EXPR in a program that includes
2171 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2173 ac_fn_c_compute_int ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if test "$cross_compiling" = yes; then
2177 # Depending upon the size, compute the lo and hi bounds.
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2184 static int test_array [1 - 2 * !(($2) >= 0)];
2191 if ac_fn_c_try_compile "$LINENO"; then :
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208 ac_hi=$ac_mid; break
2210 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2211 if test $ac_lo -le $ac_mid; then
2215 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2226 static int test_array [1 - 2 * !(($2) < 0)];
2233 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2242 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_lo=$ac_mid; break
2252 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2253 if test $ac_mid -le $ac_hi; then
2257 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 # Binary search between lo and hi bounds.
2268 while test "x$ac_lo" != "x$ac_hi"; do
2269 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2276 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2283 if ac_fn_c_try_compile "$LINENO"; then :
2286 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2298 static long int longval () { return $2; }
2299 static unsigned long int ulongval () { return $2; }
2306 FILE *f = fopen ("conftest.val", "w");
2311 long int i = longval ();
2314 fprintf (f, "%ld", i);
2318 unsigned long int i = ulongval ();
2321 fprintf (f, "%lu", i);
2323 /* Do not output a trailing newline, as this causes \r\n confusion
2324 on some platforms. */
2325 return ferror (f) || fclose (f) != 0;
2331 if ac_fn_c_try_run "$LINENO"; then :
2332 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2337 conftest.$ac_objext conftest.beam conftest.$ac_ext
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2344 } # ac_fn_c_compute_int
2346 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2347 # ----------------------------------------------------
2348 # Tries to find if the field MEMBER exists in type AGGR, after including
2349 # INCLUDES, setting cache variable VAR accordingly.
2350 ac_fn_c_check_member ()
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2354 $as_echo_n "checking for $2.$3... " >&6; }
2355 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2356 $as_echo_n "(cached) " >&6
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2371 if ac_fn_c_try_compile "$LINENO"; then :
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2381 if (sizeof ac_aggr.$3)
2387 if ac_fn_c_try_compile "$LINENO"; then :
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398 $as_echo "$ac_res" >&6; }
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2401 } # ac_fn_c_check_member
2403 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2404 # -------------------------------------------
2405 # Tests whether TYPE exists after having included INCLUDES, setting cache
2406 # variable VAR accordingly.
2407 ac_fn_c_check_type ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2441 if ac_fn_c_try_compile "$LINENO"; then :
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2455 } # ac_fn_c_check_type
2456 cat >config.log <<_ACEOF
2457 This file contains any messages produced by compilers while
2458 running configure, to aid debugging if configure makes a mistake.
2460 It was created by $as_me, which was
2461 generated by GNU Autoconf 2.64. Invocation command line was
2473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2480 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2482 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2485 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2486 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2487 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2488 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 $as_echo "PATH: $as_dir"
2513 # Keep a trace of the command line.
2514 # Strip out --no-create and --no-recursion so they do not pile up.
2515 # Strip out --silent because we don't want to record it for future runs.
2516 # Also quote any args containing shell meta-characters.
2517 # Make two passes to allow for proper duplicate-argument suppression.
2521 ac_must_keep_next=false
2527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2529 | -silent | --silent | --silen | --sile | --sil)
2532 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2535 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2537 as_fn_append ac_configure_args1 " '$ac_arg'"
2538 if test $ac_must_keep_next = true; then
2539 ac_must_keep_next=false # Got value, back to normal.
2542 *=* | --config-cache | -C | -disable-* | --disable-* \
2543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2545 | -with-* | --with-* | -without-* | --without-* | --x)
2546 case "$ac_configure_args0 " in
2547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2550 -* ) ac_must_keep_next=true ;;
2553 as_fn_append ac_configure_args " '$ac_arg'"
2558 { ac_configure_args0=; unset ac_configure_args0;}
2559 { ac_configure_args1=; unset ac_configure_args1;}
2561 # When interrupted or exit'd, cleanup temporary files, and complete
2562 # config.log. We remove comments because anyway the quotes in there
2563 # would cause problems or look ugly.
2564 # WARNING: Use '\'' to represent an apostrophe within the trap.
2565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2566 trap 'exit_status=$?
2567 # Save into config.log some information that might help in debugging.
2572 ## ---------------- ##
2573 ## Cache variables. ##
2574 ## ---------------- ##
2577 # The following way of writing the cache mishandles newlines in values,
2579 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2580 eval ac_val=\$$ac_var
2584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2585 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2588 _ | IFS | as_nl) ;; #(
2589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2590 *) { eval $ac_var=; unset $ac_var;} ;;
2595 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2596 *${as_nl}ac_space=\ *)
2598 "s/'\''/'\''\\\\'\'''\''/g;
2599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2610 ## ----------------- ##
2611 ## Output variables. ##
2612 ## ----------------- ##
2615 for ac_var in $ac_subst_vars
2617 eval ac_val=\$$ac_var
2619 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2621 $as_echo "$ac_var='\''$ac_val'\''"
2625 if test -n "$ac_subst_files"; then
2627 ## ------------------- ##
2628 ## File substitutions. ##
2629 ## ------------------- ##
2632 for ac_var in $ac_subst_files
2634 eval ac_val=\$$ac_var
2636 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2638 $as_echo "$ac_var='\''$ac_val'\''"
2643 if test -s confdefs.h; then
2653 test "$ac_signal" != 0 &&
2654 $as_echo "$as_me: caught signal $ac_signal"
2655 $as_echo "$as_me: exit $exit_status"
2657 rm -f core *.core core.conftest.* &&
2658 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2661 for ac_signal in 1 2 13 15; do
2662 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2666 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2667 rm -f -r conftest* confdefs.h
2669 $as_echo "/* confdefs.h */" > confdefs.h
2671 # Predefined preprocessor variables.
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_NAME "$PACKAGE_NAME"
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_STRING "$PACKAGE_STRING"
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2693 cat >>confdefs.h <<_ACEOF
2694 #define PACKAGE_URL "$PACKAGE_URL"
2698 # Let the site file select an alternate cache file if it wants to.
2699 # Prefer an explicitly selected file to automatically selected ones.
2702 if test -n "$CONFIG_SITE"; then
2703 ac_site_file1=$CONFIG_SITE
2704 elif test "x$prefix" != xNONE; then
2705 ac_site_file1=$prefix/share/config.site
2706 ac_site_file2=$prefix/etc/config.site
2708 ac_site_file1=$ac_default_prefix/share/config.site
2709 ac_site_file2=$ac_default_prefix/etc/config.site
2711 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2713 test "x$ac_site_file" = xNONE && continue
2714 if test -r "$ac_site_file"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2716 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2717 sed 's/^/| /' "$ac_site_file" >&5
2722 if test -r "$cache_file"; then
2723 # Some versions of bash will fail to source /dev/null (special
2724 # files actually), so we avoid doing that.
2725 if test -f "$cache_file"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2727 $as_echo "$as_me: loading cache $cache_file" >&6;}
2729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2730 *) . "./$cache_file";;
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2735 $as_echo "$as_me: creating cache $cache_file" >&6;}
2739 gl_header_list="$gl_header_list sys/mman.h"
2740 gl_func_list="$gl_func_list mprotect"
2741 gl_func_list="$gl_func_list memchr"
2742 gl_header_list="$gl_header_list stddef.h"
2743 gl_header_list="$gl_header_list stdint.h"
2744 gl_header_list="$gl_header_list wchar.h"
2745 gl_header_list="$gl_header_list string.h"
2746 # Check that the precious variables saved in the cache have kept the same
2748 ac_cache_corrupted=false
2749 for ac_var in $ac_precious_vars; do
2750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2751 eval ac_new_set=\$ac_env_${ac_var}_set
2752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2753 eval ac_new_val=\$ac_env_${ac_var}_value
2754 case $ac_old_set,$ac_new_set in
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2757 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2758 ac_cache_corrupted=: ;;
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2761 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2762 ac_cache_corrupted=: ;;
2765 if test "x$ac_old_val" != "x$ac_new_val"; then
2766 # differences in whitespace do not lead to failure.
2767 ac_old_val_w=`echo x $ac_old_val`
2768 ac_new_val_w=`echo x $ac_new_val`
2769 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2771 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2772 ac_cache_corrupted=:
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2775 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2776 eval $ac_var=\$ac_old_val
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2779 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2781 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2784 # Pass precious variables to config.status.
2785 if test "$ac_new_set" = set; then
2787 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2788 *) ac_arg=$ac_var=$ac_new_val ;;
2790 case " $ac_configure_args " in
2791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2792 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2796 if $ac_cache_corrupted; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2800 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2801 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2803 ## -------------------- ##
2804 ## Main body of script. ##
2805 ## -------------------- ##
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 ac_config_headers="$ac_config_headers config.h:config.in"
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2821 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2822 # Check whether --enable-maintainer-mode was given.
2823 if test "${enable_maintainer_mode+set}" = set; then :
2824 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2826 USE_MAINTAINER_MODE=no
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2830 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2831 if test $USE_MAINTAINER_MODE = yes; then
2832 MAINTAINER_MODE_TRUE=
2833 MAINTAINER_MODE_FALSE='#'
2835 MAINTAINER_MODE_TRUE='#'
2836 MAINTAINER_MODE_FALSE=
2839 MAINT=$MAINTAINER_MODE_TRUE
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if test "${ac_cv_prog_CC+set}" = set; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2887 if test -z "$ac_cv_prog_CC"; then
2889 # Extract the first word of "gcc", so it can be a program name with args.
2890 set dummy gcc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_ac_ct_CC="gcc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 $as_echo "$ac_ct_CC" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2925 if test "x$ac_ct_CC" = x; then
2928 case $cross_compiling:$ac_tool_warned in
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2940 if test -z "$CC"; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}cc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_CC="${ac_tool_prefix}cc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2981 if test -z "$CC"; then
2982 # Extract the first word of "cc", so it can be a program name with args.
2983 set dummy cc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_CC+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001 ac_prog_rejected=yes
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 if test $ac_prog_rejected = yes; then
3013 # We found a bogon in the path, so make sure we never use it.
3014 set dummy $ac_cv_prog_CC
3016 if test $# != 0; then
3017 # We chose a different compiler from the bogus one.
3018 # However, it has the same basename, so the bogon will be chosen
3019 # first if we set CC to just the basename; use the full file name.
3021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3027 if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3037 if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then
3039 for ac_prog in cl.exe
3041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_CC+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3078 test -n "$CC" && break
3081 if test -z "$CC"; then
3083 for ac_prog in cl.exe
3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
3086 set dummy $ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_CC="$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3122 test -n "$ac_ct_CC" && break
3125 if test "x$ac_ct_CC" = x; then
3128 case $cross_compiling:$ac_tool_warned in
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error "no acceptable C compiler found in \$PATH
3144 See \`config.log' for more details." "$LINENO" 5; }
3146 # Provide some information about the compiler.
3147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3150 for ac_option in --version -v -V -qversion; do
3151 { { ac_try="$ac_compiler $ac_option >&5"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3160 if test -s conftest.err; then
3162 ... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5
3165 rm -f conftest.er1 conftest.err
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 ac_clean_files_save=$ac_clean_files
3183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3184 # Try to create an executable without -o first, disregard a.out.
3185 # It will help us diagnose broken compilers, and finding out an intuition
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3188 $as_echo_n "checking for C compiler default output file name... " >&6; }
3189 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3191 # The possible output files:
3192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3195 for ac_file in $ac_files
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3204 if { { ac_try="$ac_link_default"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link_default") 2>&5
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3218 # so that the user can short-circuit this test for compilers unknown to
3220 for ac_file in $ac_files ''
3222 test -f "$ac_file" || continue
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3227 # We found the default executable, but exeext='' is most
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235 # We set ac_cv_exeext here because the later test for it is not
3236 # safe: cross compilers may not add the suffix if given an `-o'
3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3245 test "$ac_cv_exeext" = no && ac_cv_exeext=
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3251 $as_echo "$ac_file" >&6; }
3252 if test -z "$ac_file"; then :
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 { as_fn_set_status 77
3259 as_fn_error "C compiler cannot create executables
3260 See \`config.log' for more details." "$LINENO" 5; }; }
3262 ac_exeext=$ac_cv_exeext
3264 # Check that the compiler produces executables we can run. If not, either
3265 # the compiler is broken, or we cross compile.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3267 $as_echo_n "checking whether the C compiler works... " >&6; }
3268 # If not cross compiling, check that we can run a simple program.
3269 if test "$cross_compiling" != yes; then
3270 if { ac_try='./$ac_file'
3271 { { case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_try") 2>&5
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; }; then
3283 if test "$cross_compiling" = maybe; then
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error "cannot run C compiled programs.
3289 If you meant to cross compile, use \`--host'.
3290 See \`config.log' for more details." "$LINENO" 5; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3297 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3298 ac_clean_files=$ac_clean_files_save
3299 # Check that the compiler produces executables we can run. If not, either
3300 # the compiler is broken, or we cross compile.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3302 $as_echo_n "checking whether we are cross compiling... " >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 $as_echo "$cross_compiling" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3307 $as_echo_n "checking for suffix of executables... " >&6; }
3308 if { { ac_try="$ac_link"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link") 2>&5
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3321 # work properly (i.e., refer to `conftest.exe'), while it won't with
3323 for ac_file in conftest.exe conftest conftest.*; do
3324 test -f "$ac_file" || continue
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error "cannot compute suffix of executables: cannot compile and link
3336 See \`config.log' for more details." "$LINENO" 5; }
3338 rm -f conftest$ac_cv_exeext
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3340 $as_echo "$ac_cv_exeext" >&6; }
3342 rm -f conftest.$ac_ext
3343 EXEEXT=$ac_cv_exeext
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3346 $as_echo_n "checking for suffix of object files... " >&6; }
3347 if test "${ac_cv_objext+set}" = set; then :
3348 $as_echo_n "(cached) " >&6
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3361 rm -f conftest.o conftest.obj
3362 if { { ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_compile") 2>&5
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
3373 for ac_file in conftest.o conftest.obj conftest.*; do
3374 test -f "$ac_file" || continue;
3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3377 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3382 $as_echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error "cannot compute suffix of object files: cannot compile
3388 See \`config.log' for more details." "$LINENO" 5; }
3390 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3393 $as_echo "$ac_cv_objext" >&6; }
3394 OBJEXT=$ac_cv_objext
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3397 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3398 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3415 if ac_fn_c_try_compile "$LINENO"; then :
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3425 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3426 if test $ac_compiler_gnu = yes; then
3431 ac_test_CFLAGS=${CFLAGS+set}
3432 ac_save_CFLAGS=$CFLAGS
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3434 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3435 if test "${ac_cv_prog_cc_g+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3438 ac_save_c_werror_flag=$ac_c_werror_flag
3439 ac_c_werror_flag=yes
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3453 if ac_fn_c_try_compile "$LINENO"; then :
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3468 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_c_werror_flag=$ac_save_c_werror_flag
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3484 if ac_fn_c_try_compile "$LINENO"; then :
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 ac_c_werror_flag=$ac_save_c_werror_flag
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3495 $as_echo "$ac_cv_prog_cc_g" >&6; }
3496 if test "$ac_test_CFLAGS" = set; then
3497 CFLAGS=$ac_save_CFLAGS
3498 elif test $ac_cv_prog_cc_g = yes; then
3499 if test "$GCC" = yes; then
3505 if test "$GCC" = yes; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3512 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3513 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3516 ac_cv_prog_cc_c89=no
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3522 #include <sys/types.h>
3523 #include <sys/stat.h>
3524 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3525 struct buf { int x; };
3526 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3527 static char *e (p, i)
3533 static char *f (char * (*g) (char **, int), char **p, ...)
3538 s = g (p, va_arg (v,int));
3543 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3544 function prototypes and stuff, but not '\xHH' hex character constants.
3545 These don't provoke an error unfortunately, instead are silently treated
3546 as 'x'. The following induces an error, until -std is added to get
3547 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3548 array size at least. It's necessary to write '\x00'==0 to get something
3549 that's true only with -std. */
3550 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3552 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3553 inside strings and character constants. */
3555 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3557 int test (int i, double x);
3558 struct s1 {int (*f) (int a);};
3559 struct s2 {int (*f) (double a);};
3560 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3566 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3571 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3572 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3574 CC="$ac_save_CC $ac_arg"
3575 if ac_fn_c_try_compile "$LINENO"; then :
3576 ac_cv_prog_cc_c89=$ac_arg
3578 rm -f core conftest.err conftest.$ac_objext
3579 test "x$ac_cv_prog_cc_c89" != "xno" && break
3581 rm -f conftest.$ac_ext
3586 case "x$ac_cv_prog_cc_c89" in
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3589 $as_echo "none needed" >&6; } ;;
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3592 $as_echo "unsupported" >&6; } ;;
3594 CC="$CC $ac_cv_prog_cc_c89"
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3596 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3598 if test "x$ac_cv_prog_cc_c89" != xno; then :
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3609 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3610 for ac_t in install-sh install.sh shtool; do
3611 if test -f "$ac_dir/$ac_t"; then
3613 ac_install_sh="$ac_aux_dir/$ac_t -c"
3618 if test -z "$ac_aux_dir"; then
3619 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3622 # These three variables are undocumented and unsupported,
3623 # and are intended to be withdrawn in a future Autoconf release.
3624 # They can cause serious problems if a builder's source tree is in a directory
3625 # whose full name contains unusual characters.
3626 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3627 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3628 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3631 # Make sure we can run config.sub.
3632 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3633 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3636 $as_echo_n "checking build system type... " >&6; }
3637 if test "${ac_cv_build+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
3640 ac_build_alias=$build_alias
3641 test "x$ac_build_alias" = x &&
3642 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3643 test "x$ac_build_alias" = x &&
3644 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3645 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3646 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3650 $as_echo "$ac_cv_build" >&6; }
3651 case $ac_cv_build in
3653 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3656 ac_save_IFS=$IFS; IFS='-'
3662 # Remember, the first character of IFS is used to create $*,
3663 # except with old shells:
3666 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3670 $as_echo_n "checking host system type... " >&6; }
3671 if test "${ac_cv_host+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3674 if test "x$host_alias" = x; then
3675 ac_cv_host=$ac_cv_build
3677 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3678 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3683 $as_echo "$ac_cv_host" >&6; }
3686 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3689 ac_save_IFS=$IFS; IFS='-'
3695 # Remember, the first character of IFS is used to create $*,
3696 # except with old shells:
3699 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3709 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3710 # On Suns, sometimes $CPP names a directory.
3711 if test -n "$CPP" && test -d "$CPP"; then
3714 if test -z "$CPP"; then
3715 if test "${ac_cv_prog_CPP+set}" = set; then :
3716 $as_echo_n "(cached) " >&6
3718 # Double quotes because CPP needs to be expanded
3719 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3722 for ac_c_preproc_warn_flag in '' yes
3724 # Use a header file that comes with gcc, so configuring glibc
3725 # with a fresh cross-compiler works.
3726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3727 # <limits.h> exists even on freestanding compilers.
3728 # On the NeXT, cc -E runs the code through the compiler's parser,
3729 # not just through cpp. "Syntax error" is here to catch this case.
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3733 # include <limits.h>
3735 # include <assert.h>
3739 if ac_fn_c_try_cpp "$LINENO"; then :
3742 # Broken: fails on valid input.
3745 rm -f conftest.err conftest.$ac_ext
3747 # OK, works on sane cases. Now check whether nonexistent headers
3748 # can be detected and how.
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <ac_nonexistent.h>
3753 if ac_fn_c_try_cpp "$LINENO"; then :
3754 # Broken: success on invalid input.
3757 # Passes both tests.
3761 rm -f conftest.err conftest.$ac_ext
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then :
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3779 $as_echo "$CPP" >&6; }
3781 for ac_c_preproc_warn_flag in '' yes
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3792 # include <limits.h>
3794 # include <assert.h>
3798 if ac_fn_c_try_cpp "$LINENO"; then :
3801 # Broken: fails on valid input.
3804 rm -f conftest.err conftest.$ac_ext
3806 # OK, works on sane cases. Now check whether nonexistent headers
3807 # can be detected and how.
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810 #include <ac_nonexistent.h>
3812 if ac_fn_c_try_cpp "$LINENO"; then :
3813 # Broken: success on invalid input.
3816 # Passes both tests.
3820 rm -f conftest.err conftest.$ac_ext
3823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3824 rm -f conftest.err conftest.$ac_ext
3825 if $ac_preproc_ok; then :
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3831 See \`config.log' for more details." "$LINENO" 5; }
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3842 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3843 if test "${ac_cv_path_GREP+set}" = set; then :
3844 $as_echo_n "(cached) " >&6
3846 if test -z "$GREP"; then
3847 ac_path_GREP_found=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in grep ggrep; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3857 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3858 # Check for GNU ac_path_GREP and select it if it is found.
3859 # Check for GNU $ac_path_GREP
3860 case `"$ac_path_GREP" --version 2>&1` in
3862 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3865 $as_echo_n 0123456789 >"conftest.in"
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
3871 $as_echo 'GREP' >> "conftest.nl"
3872 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874 as_fn_arith $ac_count + 1 && ac_count=$as_val
3875 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_GREP="$ac_path_GREP"
3878 ac_path_GREP_max=$ac_count
3880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886 $ac_path_GREP_found && break 3
3891 if test -z "$ac_cv_path_GREP"; then
3892 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3895 ac_cv_path_GREP=$GREP
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3900 $as_echo "$ac_cv_path_GREP" >&6; }
3901 GREP="$ac_cv_path_GREP"
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3905 $as_echo_n "checking for egrep... " >&6; }
3906 if test "${ac_cv_path_EGREP+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3909 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3910 then ac_cv_path_EGREP="$GREP -E"
3912 if test -z "$EGREP"; then
3913 ac_path_EGREP_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in egrep; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3923 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3924 # Check for GNU ac_path_EGREP and select it if it is found.
3925 # Check for GNU $ac_path_EGREP
3926 case `"$ac_path_EGREP" --version 2>&1` in
3928 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3931 $as_echo_n 0123456789 >"conftest.in"
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 $as_echo 'EGREP' >> "conftest.nl"
3938 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 as_fn_arith $ac_count + 1 && ac_count=$as_val
3941 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_EGREP="$ac_path_EGREP"
3944 ac_path_EGREP_max=$ac_count
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952 $ac_path_EGREP_found && break 3
3957 if test -z "$ac_cv_path_EGREP"; then
3958 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3961 ac_cv_path_EGREP=$EGREP
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3967 $as_echo "$ac_cv_path_EGREP" >&6; }
3968 EGREP="$ac_cv_path_EGREP"
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3972 $as_echo_n "checking for ANSI C header files... " >&6; }
3973 if test "${ac_cv_header_stdc+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_header_stdc=yes
3994 ac_cv_header_stdc=no
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 if test $ac_cv_header_stdc = yes; then
3999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4006 $EGREP "memchr" >/dev/null 2>&1; then :
4009 ac_cv_header_stdc=no
4015 if test $ac_cv_header_stdc = yes; then
4016 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "free" >/dev/null 2>&1; then :
4026 ac_cv_header_stdc=no
4032 if test $ac_cv_header_stdc = yes; then
4033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4034 if test "$cross_compiling" = yes; then :
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4041 #if ((' ' & 0x0FF) == 0x020)
4042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4045 # define ISLOWER(c) \
4046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
4049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
4059 || toupper (i) != TOUPPER (i))
4064 if ac_fn_c_try_run "$LINENO"; then :
4067 ac_cv_header_stdc=no
4069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4070 conftest.$ac_objext conftest.beam conftest.$ac_ext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4076 $as_echo "$ac_cv_header_stdc" >&6; }
4077 if test $ac_cv_header_stdc = yes; then
4079 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4083 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4084 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4085 inttypes.h stdint.h unistd.h
4087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4088 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4090 eval as_val=\$$as_ac_Header
4091 if test "x$as_val" = x""yes; then :
4092 cat >>confdefs.h <<_ACEOF
4093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4105 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4112 if test "$MINIX" = yes; then
4114 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4117 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4120 $as_echo "#define _MINIX 1" >>confdefs.h
4127 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4134 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4135 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4141 # define __EXTENSIONS__ 1
4142 $ac_includes_default
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152 ac_cv_safe_to_define___extensions__=yes
4154 ac_cv_safe_to_define___extensions__=no
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4159 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4160 test $ac_cv_safe_to_define___extensions__ = yes &&
4161 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4163 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4165 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4167 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4169 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4172 if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4178 $as_echo_n "(cached) " >&6
4180 if test -n "$RANLIB"; then
4181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 RANLIB=$ac_cv_prog_RANLIB
4201 if test -n "$RANLIB"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4203 $as_echo "$RANLIB" >&6; }
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4211 if test -z "$ac_cv_prog_RANLIB"; then
4212 ac_ct_RANLIB=$RANLIB
4213 # Extract the first word of "ranlib", so it can be a program name with args.
4214 set dummy ranlib; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4220 if test -n "$ac_ct_RANLIB"; then
4221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_prog_ac_ct_RANLIB="ranlib"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4241 if test -n "$ac_ct_RANLIB"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4243 $as_echo "$ac_ct_RANLIB" >&6; }
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4249 if test "x$ac_ct_RANLIB" = x; then
4252 case $cross_compiling:$ac_tool_warned in
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4256 ac_tool_warned=yes ;;
4258 RANLIB=$ac_ct_RANLIB
4261 RANLIB="$ac_cv_prog_RANLIB"
4272 # Code from module arg-nonnull:
4273 # Code from module c++defs:
4274 # Code from module extensions:
4276 # Code from module include_next:
4277 # Code from module memchr:
4278 # Code from module memmem:
4279 # Code from module memmem-simple:
4280 # Code from module multiarch:
4281 # Code from module stddef:
4282 # Code from module stdint:
4283 # Code from module string:
4284 # Code from module warn-on-use:
4285 # Code from module wchar:
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4288 $as_echo_n "checking target system type... " >&6; }
4289 if test "${ac_cv_target+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4292 if test "x$target_alias" = x; then
4293 ac_cv_target=$ac_cv_host
4295 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4296 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4301 $as_echo "$ac_cv_target" >&6; }
4302 case $ac_cv_target in
4304 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4306 target=$ac_cv_target
4307 ac_save_IFS=$IFS; IFS='-'
4313 # Remember, the first character of IFS is used to create $*,
4314 # except with old shells:
4317 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4320 # The aliases save the names the user supplied, while $host etc.
4321 # will get canonicalized.
4322 test -n "$target_alias" &&
4323 test "$program_prefix$program_suffix$program_transform_name" = \
4325 program_prefix=${target_alias}-
4327 # The tests for host and target for $enable_largefile require
4332 # As the $enable_largefile decision depends on --enable-plugins we must set it
4333 # even in directories otherwise not depending on the $plugins option.
4336 # Check whether --enable-plugins was given.
4337 if test "${enable_plugins+set}" = set; then :
4338 enableval=$enable_plugins; case "${enableval}" in
4339 yes | "") plugins=yes ;;
4350 sparc-*-solaris*|i[3-7]86-*-solaris*)
4351 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4352 # are mutually exclusive; and without procfs support, the bfd/ elf module
4353 # cannot provide certain routines such as elfcore_write_prpsinfo
4354 # or elfcore_write_prstatus. So unless the user explicitly requested
4355 # large-file support through the --enable-largefile switch, disable
4356 # large-file support in favor of procfs support.
4357 test "${target}" = "${host}" -a "x$plugins" = xno \
4358 && : ${enable_largefile="no"}
4362 # Check whether --enable-largefile was given.
4363 if test "${enable_largefile+set}" = set; then :
4364 enableval=$enable_largefile;
4367 if test "$enable_largefile" != no; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4370 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4371 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4374 ac_cv_sys_largefile_CC=no
4375 if test "$GCC" != yes; then
4378 # IRIX 6.2 and later do not support large files by default,
4379 # so use the C compiler's -n32 option if that helps.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 #include <sys/types.h>
4383 /* Check that off_t can represent 2**63 - 1 correctly.
4384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4385 since some C++ compilers masquerading as C compilers
4386 incorrectly reject 9223372036854775807. */
4387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4389 && LARGE_OFF_T % 2147483647 == 1)
4399 if ac_fn_c_try_compile "$LINENO"; then :
4402 rm -f core conftest.err conftest.$ac_objext
4404 if ac_fn_c_try_compile "$LINENO"; then :
4405 ac_cv_sys_largefile_CC=' -n32'; break
4407 rm -f core conftest.err conftest.$ac_objext
4411 rm -f conftest.$ac_ext
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4415 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4416 if test "$ac_cv_sys_largefile_CC" != no; then
4417 CC=$CC$ac_cv_sys_largefile_CC
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4421 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4422 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <sys/types.h>
4429 /* Check that off_t can represent 2**63 - 1 correctly.
4430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4431 since some C++ compilers masquerading as C compilers
4432 incorrectly reject 9223372036854775807. */
4433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4435 && LARGE_OFF_T % 2147483647 == 1)
4445 if ac_fn_c_try_compile "$LINENO"; then :
4446 ac_cv_sys_file_offset_bits=no; break
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #define _FILE_OFFSET_BITS 64
4452 #include <sys/types.h>
4453 /* Check that off_t can represent 2**63 - 1 correctly.
4454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4455 since some C++ compilers masquerading as C compilers
4456 incorrectly reject 9223372036854775807. */
4457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4459 && LARGE_OFF_T % 2147483647 == 1)
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_sys_file_offset_bits=64; break
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 ac_cv_sys_file_offset_bits=unknown
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4478 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4479 case $ac_cv_sys_file_offset_bits in #(
4482 cat >>confdefs.h <<_ACEOF
4483 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4488 if test $ac_cv_sys_file_offset_bits = unknown; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4490 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4491 if test "${ac_cv_sys_large_files+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <sys/types.h>
4498 /* Check that off_t can represent 2**63 - 1 correctly.
4499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4500 since some C++ compilers masquerading as C compilers
4501 incorrectly reject 9223372036854775807. */
4502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4504 && LARGE_OFF_T % 2147483647 == 1)
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515 ac_cv_sys_large_files=no; break
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #define _LARGE_FILES 1
4521 #include <sys/types.h>
4522 /* Check that off_t can represent 2**63 - 1 correctly.
4523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4524 since some C++ compilers masquerading as C compilers
4525 incorrectly reject 9223372036854775807. */
4526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4528 && LARGE_OFF_T % 2147483647 == 1)
4538 if ac_fn_c_try_compile "$LINENO"; then :
4539 ac_cv_sys_large_files=1; break
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_sys_large_files=unknown
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4547 $as_echo "$ac_cv_sys_large_files" >&6; }
4548 case $ac_cv_sys_large_files in #(
4551 cat >>confdefs.h <<_ACEOF
4552 #define _LARGE_FILES $ac_cv_sys_large_files
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4565 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4566 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4569 am_cv_prog_cc_stdc=no
4571 # Don't try gcc -ansi; that turns off useful extensions and
4572 # breaks some systems' header files.
4573 # AIX -qlanglvl=ansi
4574 # Ultrix and OSF/1 -std1
4575 # HP-UX 10.20 and later -Ae
4576 # HP-UX older versions -Aa -D_HPUX_SOURCE
4577 # SVR4 -Xc -D__EXTENSIONS__
4578 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4580 CC="$ac_save_CC $ac_arg"
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4585 #include <sys/types.h>
4586 #include <sys/stat.h>
4587 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4588 struct buf { int x; };
4589 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4590 static char *e (p, i)
4596 static char *f (char * (*g) (char **, int), char **p, ...)
4601 s = g (p, va_arg (v,int));
4605 int test (int i, double x);
4606 struct s1 {int (*f) (int a);};
4607 struct s2 {int (*f) (double a);};
4608 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4616 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4622 if ac_fn_c_try_compile "$LINENO"; then :
4623 am_cv_prog_cc_stdc="$ac_arg"; break
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 if test -z "$am_cv_prog_cc_stdc"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4633 $as_echo "none needed" >&6; }
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4636 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4638 case "x$am_cv_prog_cc_stdc" in
4640 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4645 for ac_dir in .. "$srcdir"/..; do
4646 for ac_t in install-sh install.sh shtool; do
4647 if test -f "$ac_dir/$ac_t"; then
4649 ac_install_sh="$ac_aux_dir/$ac_t -c"
4654 if test -z "$ac_aux_dir"; then
4655 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4658 # These three variables are undocumented and unsupported,
4659 # and are intended to be withdrawn in a future Autoconf release.
4660 # They can cause serious problems if a builder's source tree is in a directory
4661 # whose full name contains unusual characters.
4662 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4663 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4664 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4669 # Dependency checking.
4670 rm -rf .tst 2>/dev/null
4671 mkdir .tst 2>/dev/null
4672 if test -d .tst; then
4677 rmdir .tst 2>/dev/null
4679 DEPDIR="${am__leading_dot}deps"
4681 ac_config_commands="$ac_config_commands depdir"
4684 depcc="$CC" am_compiler_list=
4686 am_depcomp=$ac_aux_dir/depcomp
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4688 $as_echo_n "checking dependency style of $depcc... " >&6; }
4689 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4692 if test -f "$am_depcomp"; then
4693 # We make a subdir and do the tests there. Otherwise we can end up
4694 # making bogus files that we don't know about and never remove. For
4695 # instance it was reported that on HP-UX the gcc test will end up
4696 # making a dummy file named `D' -- because `-MD' means `put the output
4699 # Copy depcomp to subdir because otherwise we won't find it if we're
4700 # using a relative directory.
4701 cp "$am_depcomp" conftest.dir
4703 # We will build objects and dependencies in a subdirectory because
4704 # it helps to detect inapplicable dependency modes. For instance
4705 # both Tru64's cc and ICC support -MD to output dependencies as a
4706 # side effect of compilation, but ICC will put the dependencies in
4707 # the current directory while Tru64 will put them in the object
4711 am_cv_CC_dependencies_compiler_type=none
4712 if test "$am_compiler_list" = ""; then
4713 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4715 for depmode in $am_compiler_list; do
4716 if test $depmode = none; then break; fi
4718 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4719 # Setup a source with many dependencies, because some compilers
4720 # like to wrap large dependency lists on column 80 (with \), and
4721 # we should not choose a depcomp mode which is confused by this.
4723 # We need to recreate these files for each test, as the compiler may
4724 # overwrite some of them when testing with obscure command lines.
4725 # This happens at least with the AIX C compiler.
4727 for i in 1 2 3 4 5 6; do
4728 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4729 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4730 # Solaris 8's {/usr,}/bin/sh.
4731 touch sub/conftst$i.h
4733 echo "include sub/conftest.Po" > confmf
4735 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4736 # mode. It turns out that the SunPro C++ compiler does not properly
4737 # handle `-M -o', and we need to detect this.
4738 depcmd="depmode=$depmode \
4739 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4741 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4742 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4743 if env $depcmd > conftest.err 2>&1 &&
4744 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4745 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4746 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4747 # icc doesn't choke on unknown options, it will just issue warnings
4748 # or remarks (even with -Werror). So we grep stderr for any message
4749 # that says an option was ignored or not supported.
4750 # When given -MP, icc 7.0 and 7.1 complain thusly:
4751 # icc: Command line warning: ignoring option '-M'; no argument required
4752 # The diagnosis changed in icc 8.0:
4753 # icc: Command line remark: option '-MP' not supported
4754 if (grep 'ignoring option' conftest.err ||
4755 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4756 am_cv_CC_dependencies_compiler_type=$depmode
4757 $as_echo "$as_me:$LINENO: success" >&5
4761 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4762 sed -e 's/^/| /' < conftest.err >&5
4768 am_cv_CC_dependencies_compiler_type=none
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4773 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4774 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4775 then as_fn_error "no usable dependency style found" "$LINENO" 5
4776 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4781 # Check for the 'make' the user wants to use.
4784 # Extract the first word of "$ac_prog", so it can be a program name with args.
4785 set dummy $ac_prog; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_MAKE+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 if test -n "$MAKE"; then
4792 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_MAKE="$ac_prog"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 MAKE=$ac_cv_prog_MAKE
4812 if test -n "$MAKE"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4814 $as_echo "$MAKE" >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4821 test -n "$MAKE" && break
4825 case "`$MAKE --version 2>&1 | sed 1q`" in
4830 if test "$MAKE_IS_GNU" = yes; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4839 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4841 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4842 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4843 $as_echo_n "(cached) " >&6
4845 cat >conftest.make <<\_ACEOF
4848 @echo '@@@%%%=$(MAKE)=@@@%%%'
4850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4851 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4853 eval ac_cv_prog_make_${ac_make}_set=yes;;
4855 eval ac_cv_prog_make_${ac_make}_set=no;;
4859 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4861 $as_echo "yes" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 SET_MAKE="MAKE=${MAKE-make}"
4881 # If we haven't got the data from the intl directory,
4882 # assume NLS is disabled.
4891 if test -f ../intl/config.intl; then
4892 . ../intl/config.intl
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4895 $as_echo_n "checking whether NLS is requested... " >&6; }
4896 if test x"$USE_NLS" != xyes; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4901 $as_echo "yes" >&6; }
4903 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4907 $as_echo_n "checking for catalogs to be installed... " >&6; }
4908 # Look for .po and .gmo files in the source directory.
4911 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4912 # If there aren't any .gmo files the shell will give us the
4913 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4915 case "$cat" in *\**)
4918 # The quadruple backslash is collapsed to a double backslash
4919 # by the backticks, then collapsed again by the double quotes,
4920 # leaving us with one backslash in the sed expression (right
4921 # before the dot that mustn't act as a wildcard).
4922 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4923 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4924 # The user is allowed to set LINGUAS to a list of languages to
4925 # install catalogs for. If it's empty that means "all of them."
4926 if test "x$LINGUAS" = x; then
4927 CATALOGS="$CATALOGS $cat"
4928 XLINGUAS="$XLINGUAS $lang"
4930 case "$LINGUAS" in *$lang*)
4931 CATALOGS="$CATALOGS $cat"
4932 XLINGUAS="$XLINGUAS $lang"
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4939 $as_echo "$LINGUAS" >&6; }
4952 localedir='${datadir}/locale'
4955 if test x"$USE_NLS" = xyes; then
4956 CONFIG_ALL="$CONFIG_ALL all-po"
4957 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4958 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4959 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4966 LIBC_FATAL_STDERR_=1
4967 export LIBC_FATAL_STDERR_
4973 for ac_header in $gl_header_list
4975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4976 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4977 eval as_val=\$$as_ac_Header
4978 if test "x$as_val" = x""yes; then :
4979 cat >>confdefs.h <<_ACEOF
4980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4995 for ac_func in $gl_func_list
4997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4999 eval as_val=\$$as_ac_var
5000 if test "x$as_val" = x""yes; then :
5001 cat >>confdefs.h <<_ACEOF
5002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5028 GNULIB_STRCASESTR=0;
5035 GNULIB_MBSCASECMP=0;
5036 GNULIB_MBSNCASECMP=0;
5037 GNULIB_MBSPCASECMP=0;
5038 GNULIB_MBSCASESTR=0;
5046 GNULIB_STRVERSCMP=0;
5051 HAVE_DECL_MEMRCHR=1;
5057 HAVE_DECL_STRNDUP=1;
5058 HAVE_DECL_STRNLEN=1;
5062 HAVE_DECL_STRTOK_R=1;
5063 HAVE_DECL_STRSIGNAL=1;
5070 REPLACE_STRCASESTR=0;
5075 REPLACE_STRSIGNAL=0;
5077 UNDEFINE_STRTOK_R=0;
5091 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5092 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5093 # irrelevant for anonymous mappings.
5094 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5095 if test "x$ac_cv_func_mmap" = x""yes; then :
5102 # Try to allow MAP_ANONYMOUS.
5103 gl_have_mmap_anonymous=no
5104 if test $gl_have_mmap = yes; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5106 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5110 #include <sys/mman.h>
5111 #ifdef MAP_ANONYMOUS
5112 I cant identify this map.
5116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5117 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5118 gl_have_mmap_anonymous=yes
5122 if test $gl_have_mmap_anonymous != yes; then
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5126 #include <sys/mman.h>
5128 I cant identify this map.
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5135 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5137 gl_have_mmap_anonymous=yes
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5143 $as_echo "$gl_have_mmap_anonymous" >&6; }
5144 if test $gl_have_mmap_anonymous = yes; then
5146 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5174 if test $ac_cv_func_memchr = yes; then
5175 # Detect platform-specific bugs in some versions of glibc:
5176 # memchr should not dereference anything with length 0
5177 # http://bugzilla.redhat.com/499689
5178 # memchr should not dereference overestimated length after a match
5179 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5180 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5181 # Assume that memchr works on platforms that lack mprotect.
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5183 $as_echo_n "checking whether memchr works... " >&6; }
5184 if test "${gl_cv_func_memchr_works+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5187 if test "$cross_compiling" = yes; then :
5188 gl_cv_func_memchr_works="guessing no"
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5196 # include <unistd.h>
5197 # include <sys/types.h>
5198 # include <sys/mman.h>
5209 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5210 # if HAVE_MAP_ANONYMOUS
5211 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5213 # else /* !HAVE_MAP_ANONYMOUS */
5214 const int flags = MAP_FILE | MAP_PRIVATE;
5215 int fd = open ("/dev/zero", O_RDONLY, 0666);
5219 int pagesize = getpagesize ();
5221 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5223 if (two_pages != (char *)(-1)
5224 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5225 fence = two_pages + pagesize;
5230 if (memchr (fence, 0, 0))
5232 strcpy (fence - 9, "12345678");
5233 if (memchr (fence - 9, 0, 79) != fence - 1)
5242 if ac_fn_c_try_run "$LINENO"; then :
5243 gl_cv_func_memchr_works=yes
5245 gl_cv_func_memchr_works=no
5247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5248 conftest.$ac_objext conftest.beam conftest.$ac_ext
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5253 $as_echo "$gl_cv_func_memchr_works" >&6; }
5254 if test "$gl_cv_func_memchr_works" != yes; then
5260 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5269 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5272 for ac_header in bp-sym.h
5274 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5275 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5276 cat >>confdefs.h <<_ACEOF
5277 #define HAVE_BP_SYM_H 1
5288 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5289 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5295 cat >>confdefs.h <<_ACEOF
5296 #define HAVE_DECL_MEMMEM $ac_have_decl
5312 for ac_func in memmem
5314 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5315 if test "x$ac_cv_func_memmem" = x""yes; then :
5316 cat >>confdefs.h <<_ACEOF
5317 #define HAVE_MEMMEM 1
5322 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5335 if test $ac_cv_have_decl_memmem = no; then
5341 gl_cv_c_multiarch=no
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #ifndef __APPLE_CC__
5345 not a universal capable compiler
5350 if ac_fn_c_try_compile "$LINENO"; then :
5354 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5355 if test -n "$prev"; then
5357 i?86 | x86_64 | ppc | ppc64)
5358 if test -z "$arch" || test "$arch" = "$word"; then
5361 gl_cv_c_multiarch=yes
5367 if test "x$word" = "x-arch"; then
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 if test $gl_cv_c_multiarch = yes; then
5377 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5379 APPLE_UNIVERSAL_BUILD=1
5381 APPLE_UNIVERSAL_BUILD=0
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5392 $as_echo_n "checking for wchar_t... " >&6; }
5393 if test "${gt_cv_c_wchar_t+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5399 wchar_t foo = (wchar_t)'\0';
5408 if ac_fn_c_try_compile "$LINENO"; then :
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5416 $as_echo "$gt_cv_c_wchar_t" >&6; }
5417 if test $gt_cv_c_wchar_t = yes; then
5419 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5426 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5427 if test "${gl_cv_have_include_next+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5430 rm -rf conftestd1a conftestd1b conftestd2
5431 mkdir conftestd1a conftestd1b conftestd2
5432 cat <<EOF > conftestd1a/conftest.h
5433 #define DEFINED_IN_CONFTESTD1
5434 #include_next <conftest.h>
5435 #ifdef DEFINED_IN_CONFTESTD2
5438 #error "include_next doesn't work"
5441 cat <<EOF > conftestd1b/conftest.h
5442 #define DEFINED_IN_CONFTESTD1
5444 #include_next <conftest.h>
5445 #ifdef DEFINED_IN_CONFTESTD2
5448 #error "include_next doesn't work"
5451 cat <<EOF > conftestd2/conftest.h
5452 #ifndef DEFINED_IN_CONFTESTD1
5453 #error "include_next test doesn't work"
5455 #define DEFINED_IN_CONFTESTD2
5457 gl_save_CPPFLAGS="$CPPFLAGS"
5458 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #include <conftest.h>
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464 gl_cv_have_include_next=yes
5466 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <conftest.h>
5471 if ac_fn_c_try_compile "$LINENO"; then :
5472 gl_cv_have_include_next=buggy
5474 gl_cv_have_include_next=no
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 CPPFLAGS="$gl_save_CPPFLAGS"
5481 rm -rf conftestd1a conftestd1b conftestd2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5485 $as_echo "$gl_cv_have_include_next" >&6; }
5486 PRAGMA_SYSTEM_HEADER=
5487 if test $gl_cv_have_include_next = yes; then
5488 INCLUDE_NEXT=include_next
5489 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5490 if test -n "$GCC"; then
5491 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5494 if test $gl_cv_have_include_next = buggy; then
5495 INCLUDE_NEXT=include
5496 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5498 INCLUDE_NEXT=include
5499 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5513 $as_echo_n "checking for long long int... " >&6; }
5514 if test "${ac_cv_type_long_long_int+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5520 /* For now, do not test the preprocessor; as of 2007 there are too many
5521 implementations with broken preprocessors. Perhaps this can
5522 be revisited in 2012. In the meantime, code should not expect
5523 #if to work with literals wider than 32 bits. */
5524 /* Test literals. */
5525 long long int ll = 9223372036854775807ll;
5526 long long int nll = -9223372036854775807LL;
5527 unsigned long long int ull = 18446744073709551615ULL;
5528 /* Test constant expressions. */
5529 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5531 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5537 /* Test availability of runtime routines for shift and division. */
5538 long long int llmax = 9223372036854775807ll;
5539 unsigned long long int ullmax = 18446744073709551615ull;
5540 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5541 | (llmax / ll) | (llmax % ll)
5542 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5543 | (ullmax / ull) | (ullmax % ull));
5549 if ac_fn_c_try_link "$LINENO"; then :
5550 if test "$cross_compiling" = yes; then :
5551 ac_cv_type_long_long_int=yes
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5558 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5559 # define LLONG_MAX (HALF - 1 + HALF)
5564 long long int n = 1;
5568 long long int m = n << i;
5571 if (LLONG_MAX / 2 < m)
5579 if ac_fn_c_try_run "$LINENO"; then :
5580 ac_cv_type_long_long_int=yes
5582 ac_cv_type_long_long_int=no
5584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5585 conftest.$ac_objext conftest.beam conftest.$ac_ext
5589 ac_cv_type_long_long_int=no
5591 rm -f core conftest.err conftest.$ac_objext \
5592 conftest$ac_exeext conftest.$ac_ext
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5595 $as_echo "$ac_cv_type_long_long_int" >&6; }
5596 if test $ac_cv_type_long_long_int = yes; then
5598 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5604 $as_echo_n "checking for unsigned long long int... " >&6; }
5605 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5611 /* For now, do not test the preprocessor; as of 2007 there are too many
5612 implementations with broken preprocessors. Perhaps this can
5613 be revisited in 2012. In the meantime, code should not expect
5614 #if to work with literals wider than 32 bits. */
5615 /* Test literals. */
5616 long long int ll = 9223372036854775807ll;
5617 long long int nll = -9223372036854775807LL;
5618 unsigned long long int ull = 18446744073709551615ULL;
5619 /* Test constant expressions. */
5620 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5622 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5628 /* Test availability of runtime routines for shift and division. */
5629 long long int llmax = 9223372036854775807ll;
5630 unsigned long long int ullmax = 18446744073709551615ull;
5631 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5632 | (llmax / ll) | (llmax % ll)
5633 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5634 | (ullmax / ull) | (ullmax % ull));
5640 if ac_fn_c_try_link "$LINENO"; then :
5641 ac_cv_type_unsigned_long_long_int=yes
5643 ac_cv_type_unsigned_long_long_int=no
5645 rm -f core conftest.err conftest.$ac_objext \
5646 conftest$ac_exeext conftest.$ac_ext
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5649 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5650 if test $ac_cv_type_unsigned_long_long_int = yes; then
5652 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5667 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5668 if test "${ac_cv_c_restrict+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5672 # The order here caters to the fact that C++ does not require restrict.
5673 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 typedef int * int_ptr;
5677 int foo (int_ptr $ac_kw ip) {
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 ac_cv_c_restrict=$ac_kw
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 test "$ac_cv_c_restrict" != no && break
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5700 $as_echo "$ac_cv_c_restrict" >&6; }
5702 case $ac_cv_c_restrict in
5704 no) $as_echo "#define restrict /**/" >>confdefs.h
5706 *) cat >>confdefs.h <<_ACEOF
5707 #define restrict $ac_cv_c_restrict
5732 if test $gl_cv_have_include_next = yes; then
5733 gl_cv_next_string_h='<'string.h'>'
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5736 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5737 if test "${gl_cv_next_string_h+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5741 if test $ac_cv_header_string_h = yes; then
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5748 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5749 *) gl_absname_cpp="$ac_cpp" ;;
5751 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5752 sed -n '\#/string.h#{
5753 s#.*"\(.*/string.h\)".*#\1#
5759 gl_cv_next_string_h='<'string.h'>'
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5764 $as_echo "$gl_cv_next_string_h" >&6; }
5766 NEXT_STRING_H=$gl_cv_next_string_h
5768 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5770 gl_next_as_first_directive='<'string.h'>'
5772 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5773 gl_next_as_first_directive=$gl_cv_next_string_h
5775 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5781 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5782 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5784 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5785 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5786 $as_echo_n "(cached) " >&6
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5801 if ac_fn_c_try_compile "$LINENO"; then :
5802 eval "$as_gl_Symbol=yes"
5804 eval "$as_gl_Symbol=no"
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 eval ac_res=\$$as_gl_Symbol
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5810 $as_echo "$ac_res" >&6; }
5811 eval as_val=\$$as_gl_Symbol
5812 if test "x$as_val" = x""yes; then :
5813 cat >>confdefs.h <<_ACEOF
5814 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5817 eval ac_cv_have_decl_$gl_func=yes
5829 GNULIB_MBSNRTOWCS=0;
5832 GNULIB_WCSNRTOMBS=0;
5844 HAVE_DECL_WCWIDTH=1;
5845 REPLACE_MBSTATE_T=0;
5851 REPLACE_MBSRTOWCS=0;
5852 REPLACE_MBSNRTOWCS=0;
5854 REPLACE_WCSRTOMBS=0;
5855 REPLACE_WCSNRTOMBS=0;
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5860 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5861 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 gl_cv_header_wchar_h_correct_inline=yes
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5868 #define wcstod renamed_wcstod
5870 extern int zero (void);
5871 int main () { return zero(); }
5874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5875 (eval $ac_compile) 2>&5
5877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5878 test $ac_status = 0; }; then
5879 mv conftest.$ac_objext conftest1.$ac_objext
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5883 #define wcstod renamed_wcstod
5885 int zero (void) { return 0; }
5888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5889 (eval $ac_compile) 2>&5
5891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892 test $ac_status = 0; }; then
5893 mv conftest.$ac_objext conftest2.$ac_objext
5894 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5897 gl_cv_header_wchar_h_correct_inline=no
5901 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5905 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5906 if test $gl_cv_header_wchar_h_correct_inline = no; then
5907 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5908 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5909 C99 mode. You have four options:
5910 - Add the flag -fgnu89-inline to CC and reconfigure, or
5911 - Fix your include files, using parts of
5912 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5913 - Use a gcc version older than 4.3, or
5914 - Don't use the flags -std=c99 or -std=gnu99.
5915 Configuration aborted." "$LINENO" 5
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5920 $as_echo_n "checking for wint_t... " >&6; }
5921 if test "${gt_cv_c_wint_t+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5927 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5929 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5930 before <wchar.h>. */
5935 wint_t foo = (wchar_t)'\0';
5944 if ac_fn_c_try_compile "$LINENO"; then :
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5952 $as_echo "$gt_cv_c_wint_t" >&6; }
5953 if test $gt_cv_c_wint_t = yes; then
5955 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5961 GL_COND_LIBTOOL_TRUE=
5962 GL_COND_LIBTOOL_FALSE='#'
5964 GL_COND_LIBTOOL_TRUE='#'
5965 GL_COND_LIBTOOL_FALSE=
5968 gl_cond_libtool=false
5971 gl_m4_base='gnulib/m4'
5981 gl_source_base='gnulib'
5982 # Code from module arg-nonnull:
5983 # Code from module c++defs:
5984 # Code from module extensions:
5985 # Code from module include_next:
5986 # Code from module memchr:
5995 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5999 # Code from module memmem:
6002 if test $ac_cv_have_decl_memmem = yes; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6004 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6005 if test "${gl_cv_func_memmem_works+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6008 if test "$cross_compiling" = yes; then :
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6012 #include <features.h>
6013 #ifdef __GNU_LIBRARY__
6014 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6019 #include <cygwin/version.h>
6020 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 $EGREP "Lucky user" >/dev/null 2>&1; then :
6028 gl_cv_func_memmem_works=yes
6030 gl_cv_func_memmem_works="guessing no"
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6039 #include <signal.h> /* for signal */
6040 #include <string.h> /* for memmem */
6041 #include <stdlib.h> /* for malloc */
6042 #include <unistd.h> /* for alarm */
6048 char *haystack = (char *) malloc (2 * m + 1);
6049 char *needle = (char *) malloc (m + 1);
6051 /* Failure to compile this test due to missing alarm is okay,
6052 since all such platforms (mingw) also lack memmem. */
6053 signal (SIGALRM, SIG_DFL);
6055 /* Check for quadratic performance. */
6056 if (haystack && needle)
6058 memset (haystack, 'A', 2 * m);
6059 haystack[2 * m] = 'B';
6060 memset (needle, 'A', m);
6062 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6064 /* Check for empty needle behavior. */
6065 return !result || !memmem ("a", 1, 0, 0);
6070 if ac_fn_c_try_run "$LINENO"; then :
6071 gl_cv_func_memmem_works=yes
6073 gl_cv_func_memmem_works=no
6075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6076 conftest.$ac_objext conftest.beam conftest.$ac_ext
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6082 $as_echo "$gl_cv_func_memmem_works" >&6; }
6083 if test "$gl_cv_func_memmem_works" != yes; then
6093 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6098 # Code from module memmem-simple:
6111 for ac_func in memmem
6113 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6114 if test "x$ac_cv_func_memmem" = x""yes; then :
6115 cat >>confdefs.h <<_ACEOF
6116 #define HAVE_MEMMEM 1
6121 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6134 if test $ac_cv_have_decl_memmem = no; then
6146 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6150 # Code from module multiarch:
6152 # Code from module stddef:
6156 if test $gt_cv_c_wchar_t = no; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6161 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6162 if test "${gl_cv_decl_null_works+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6168 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6178 if ac_fn_c_try_compile "$LINENO"; then :
6179 gl_cv_decl_null_works=yes
6181 gl_cv_decl_null_works=no
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6186 $as_echo "$gl_cv_decl_null_works" >&6; }
6187 if test $gl_cv_decl_null_works = no; then
6191 if test -n "$STDDEF_H"; then
6204 if test $gl_cv_have_include_next = yes; then
6205 gl_cv_next_stddef_h='<'stddef.h'>'
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6208 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6209 if test "${gl_cv_next_stddef_h+set}" = set; then :
6210 $as_echo_n "(cached) " >&6
6213 if test $ac_cv_header_stddef_h = yes; then
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6220 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6221 *) gl_absname_cpp="$ac_cpp" ;;
6223 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6224 sed -n '\#/stddef.h#{
6225 s#.*"\(.*/stddef.h\)".*#\1#
6231 gl_cv_next_stddef_h='<'stddef.h'>'
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6236 $as_echo "$gl_cv_next_stddef_h" >&6; }
6238 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6240 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6241 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6242 gl_next_as_first_directive='<'stddef.h'>'
6244 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6245 gl_next_as_first_directive=$gl_cv_next_stddef_h
6247 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6253 # Code from module stdint:
6257 if test $ac_cv_type_long_long_int = yes; then
6258 HAVE_LONG_LONG_INT=1
6260 HAVE_LONG_LONG_INT=0
6264 if test $ac_cv_type_unsigned_long_long_int = yes; then
6265 HAVE_UNSIGNED_LONG_LONG_INT=1
6267 HAVE_UNSIGNED_LONG_LONG_INT=0
6271 if test $ac_cv_header_inttypes_h = yes; then
6278 if test $ac_cv_header_sys_types_h = yes; then
6297 if test $gl_cv_have_include_next = yes; then
6298 gl_cv_next_stdint_h='<'stdint.h'>'
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6301 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6302 if test "${gl_cv_next_stdint_h+set}" = set; then :
6303 $as_echo_n "(cached) " >&6
6306 if test $ac_cv_header_stdint_h = yes; then
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6313 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6314 *) gl_absname_cpp="$ac_cpp" ;;
6316 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6317 sed -n '\#/stdint.h#{
6318 s#.*"\(.*/stdint.h\)".*#\1#
6324 gl_cv_next_stdint_h='<'stdint.h'>'
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6329 $as_echo "$gl_cv_next_stdint_h" >&6; }
6331 NEXT_STDINT_H=$gl_cv_next_stdint_h
6333 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6334 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6335 gl_next_as_first_directive='<'stdint.h'>'
6337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6338 gl_next_as_first_directive=$gl_cv_next_stdint_h
6340 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6344 if test $ac_cv_header_stdint_h = yes; then
6351 if test $ac_cv_header_stdint_h = yes; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6353 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6354 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6355 $as_echo_n "(cached) " >&6
6357 gl_cv_header_working_stdint_h=no
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6362 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6363 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6364 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6366 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6367 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6368 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6372 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6373 included before <wchar.h>. */
6384 int8_t a1 = INT8_MAX;
6385 int8_t a1min = INT8_MIN;
6388 int16_t a2 = INT16_MAX;
6389 int16_t a2min = INT16_MIN;
6392 int32_t a3 = INT32_MAX;
6393 int32_t a3min = INT32_MIN;
6396 int64_t a4 = INT64_MAX;
6397 int64_t a4min = INT64_MIN;
6400 uint8_t b1 = UINT8_MAX;
6402 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6405 uint16_t b2 = UINT16_MAX;
6408 uint32_t b3 = UINT32_MAX;
6411 uint64_t b4 = UINT64_MAX;
6413 int_least8_t c1 = INT8_C (0x7f);
6414 int_least8_t c1max = INT_LEAST8_MAX;
6415 int_least8_t c1min = INT_LEAST8_MIN;
6416 int_least16_t c2 = INT16_C (0x7fff);
6417 int_least16_t c2max = INT_LEAST16_MAX;
6418 int_least16_t c2min = INT_LEAST16_MIN;
6419 int_least32_t c3 = INT32_C (0x7fffffff);
6420 int_least32_t c3max = INT_LEAST32_MAX;
6421 int_least32_t c3min = INT_LEAST32_MIN;
6422 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6423 int_least64_t c4max = INT_LEAST64_MAX;
6424 int_least64_t c4min = INT_LEAST64_MIN;
6425 uint_least8_t d1 = UINT8_C (0xff);
6426 uint_least8_t d1max = UINT_LEAST8_MAX;
6427 uint_least16_t d2 = UINT16_C (0xffff);
6428 uint_least16_t d2max = UINT_LEAST16_MAX;
6429 uint_least32_t d3 = UINT32_C (0xffffffff);
6430 uint_least32_t d3max = UINT_LEAST32_MAX;
6431 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6432 uint_least64_t d4max = UINT_LEAST64_MAX;
6433 int_fast8_t e1 = INT_FAST8_MAX;
6434 int_fast8_t e1min = INT_FAST8_MIN;
6435 int_fast16_t e2 = INT_FAST16_MAX;
6436 int_fast16_t e2min = INT_FAST16_MIN;
6437 int_fast32_t e3 = INT_FAST32_MAX;
6438 int_fast32_t e3min = INT_FAST32_MIN;
6439 int_fast64_t e4 = INT_FAST64_MAX;
6440 int_fast64_t e4min = INT_FAST64_MIN;
6441 uint_fast8_t f1 = UINT_FAST8_MAX;
6442 uint_fast16_t f2 = UINT_FAST16_MAX;
6443 uint_fast32_t f3 = UINT_FAST32_MAX;
6444 uint_fast64_t f4 = UINT_FAST64_MAX;
6446 intptr_t g = INTPTR_MAX;
6447 intptr_t gmin = INTPTR_MIN;
6450 uintptr_t h = UINTPTR_MAX;
6452 intmax_t i = INTMAX_MAX;
6453 uintmax_t j = UINTMAX_MAX;
6455 #include <limits.h> /* for CHAR_BIT */
6456 #define TYPE_MINIMUM(t) \
6457 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6458 #define TYPE_MAXIMUM(t) \
6459 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6462 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6463 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6465 /* Detect bug in FreeBSD 6.0 / ia64. */
6466 int check_SIG_ATOMIC:
6467 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6468 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6470 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6472 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6473 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6475 /* Detect bug in mingw. */
6477 WINT_MIN == TYPE_MINIMUM (wint_t)
6478 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6481 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6483 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6485 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6487 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6489 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6492 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6495 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6498 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6500 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6501 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6502 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6503 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6504 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6505 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6506 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6507 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6508 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6509 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6510 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 if test "$cross_compiling" = yes; then :
6523 gl_cv_header_working_stdint_h=yes
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6530 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6531 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6532 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6536 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6537 included before <wchar.h>. */
6549 #define MVAL(macro) MVAL1(macro)
6550 #define MVAL1(expression) #expression
6551 static const char *macro_values[] =
6585 for (mv = macro_values; *mv != NULL; mv++)
6587 const char *value = *mv;
6588 /* Test whether it looks like a cast expression. */
6589 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6590 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6591 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6592 || strncmp (value, "((int)"/*)*/, 6) == 0
6593 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6594 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6603 if ac_fn_c_try_run "$LINENO"; then :
6604 gl_cv_header_working_stdint_h=yes
6606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6607 conftest.$ac_objext conftest.beam conftest.$ac_ext
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6616 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6618 if test "$gl_cv_header_working_stdint_h" = yes; then
6621 for ac_header in sys/inttypes.h sys/bitypes.h
6623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6624 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6625 eval as_val=\$$as_ac_Header
6626 if test "x$as_val" = x""yes; then :
6627 cat >>confdefs.h <<_ACEOF
6628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6635 if test $ac_cv_header_sys_inttypes_h = yes; then
6636 HAVE_SYS_INTTYPES_H=1
6638 HAVE_SYS_INTTYPES_H=0
6641 if test $ac_cv_header_sys_bitypes_h = yes; then
6642 HAVE_SYS_BITYPES_H=1
6644 HAVE_SYS_BITYPES_H=0
6658 if test $APPLE_UNIVERSAL_BUILD = 0; then
6661 for gltype in ptrdiff_t size_t ; do
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6663 $as_echo_n "checking for bit size of $gltype... " >&6; }
6664 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6665 $as_echo_n "(cached) " >&6
6667 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6668 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6669 included before <wchar.h>. */
6678 #include <limits.h>"; then :
6684 eval gl_cv_bitsizeof_${gltype}=\$result
6687 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6689 $as_echo "$ac_res" >&6; }
6690 eval result=\$gl_cv_bitsizeof_${gltype}
6691 if test $result = unknown; then
6694 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6695 cat >>confdefs.h <<_ACEOF
6696 #define BITSIZEOF_${GLTYPE} $result
6699 eval BITSIZEOF_${GLTYPE}=\$result
6706 for gltype in sig_atomic_t wchar_t wint_t ; do
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6708 $as_echo_n "checking for bit size of $gltype... " >&6; }
6709 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6710 $as_echo_n "(cached) " >&6
6712 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6713 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6714 included before <wchar.h>. */
6723 #include <limits.h>"; then :
6729 eval gl_cv_bitsizeof_${gltype}=\$result
6732 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6734 $as_echo "$ac_res" >&6; }
6735 eval result=\$gl_cv_bitsizeof_${gltype}
6736 if test $result = unknown; then
6739 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6740 cat >>confdefs.h <<_ACEOF
6741 #define BITSIZEOF_${GLTYPE} $result
6744 eval BITSIZEOF_${GLTYPE}=\$result
6750 for gltype in sig_atomic_t wchar_t wint_t ; do
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6752 $as_echo_n "checking whether $gltype is signed... " >&6; }
6753 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6754 $as_echo_n "(cached) " >&6
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6759 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6760 included before <wchar.h>. */
6769 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6778 if ac_fn_c_try_compile "$LINENO"; then :
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 eval gl_cv_type_${gltype}_signed=\$result
6787 eval ac_res=\$gl_cv_type_${gltype}_signed
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6789 $as_echo "$ac_res" >&6; }
6790 eval result=\$gl_cv_type_${gltype}_signed
6791 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6792 if test "$result" = yes; then
6793 cat >>confdefs.h <<_ACEOF
6794 #define HAVE_SIGNED_${GLTYPE} 1
6797 eval HAVE_SIGNED_${GLTYPE}=1
6799 eval HAVE_SIGNED_${GLTYPE}=0
6804 gl_cv_type_ptrdiff_t_signed=yes
6805 gl_cv_type_size_t_signed=no
6806 if test $APPLE_UNIVERSAL_BUILD = 0; then
6809 for gltype in ptrdiff_t size_t ; do
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6811 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6812 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6813 $as_echo_n "(cached) " >&6
6815 eval gl_cv_type_${gltype}_suffix=no
6816 eval result=\$gl_cv_type_${gltype}_signed
6817 if test "$result" = yes; then
6822 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6825 l) gltype1='long int';;
6826 ll) gltype1='long long int';;
6827 i64) gltype1='__int64';;
6828 u) gltype1='unsigned int';;
6829 ul) gltype1='unsigned long int';;
6830 ull) gltype1='unsigned long long int';;
6831 ui64)gltype1='unsigned __int64';;
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6836 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6837 included before <wchar.h>. */
6847 extern $gltype1 foo;
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 eval gl_cv_type_${gltype}_suffix=\$glsuf
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 eval result=\$gl_cv_type_${gltype}_suffix
6861 test "$result" != no && break
6864 eval ac_res=\$gl_cv_type_${gltype}_suffix
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6866 $as_echo "$ac_res" >&6; }
6867 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6868 eval result=\$gl_cv_type_${gltype}_suffix
6869 test "$result" = no && result=
6870 eval ${GLTYPE}_SUFFIX=\$result
6871 cat >>confdefs.h <<_ACEOF
6872 #define ${GLTYPE}_SUFFIX $result
6881 for gltype in sig_atomic_t wchar_t wint_t ; do
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6883 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6884 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6885 $as_echo_n "(cached) " >&6
6887 eval gl_cv_type_${gltype}_suffix=no
6888 eval result=\$gl_cv_type_${gltype}_signed
6889 if test "$result" = yes; then
6894 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6897 l) gltype1='long int';;
6898 ll) gltype1='long long int';;
6899 i64) gltype1='__int64';;
6900 u) gltype1='unsigned int';;
6901 ul) gltype1='unsigned long int';;
6902 ull) gltype1='unsigned long long int';;
6903 ui64)gltype1='unsigned __int64';;
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6908 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6909 included before <wchar.h>. */
6919 extern $gltype1 foo;
6928 if ac_fn_c_try_compile "$LINENO"; then :
6929 eval gl_cv_type_${gltype}_suffix=\$glsuf
6931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 eval result=\$gl_cv_type_${gltype}_suffix
6933 test "$result" != no && break
6936 eval ac_res=\$gl_cv_type_${gltype}_suffix
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6938 $as_echo "$ac_res" >&6; }
6939 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6940 eval result=\$gl_cv_type_${gltype}_suffix
6941 test "$result" = no && result=
6942 eval ${GLTYPE}_SUFFIX=\$result
6943 cat >>confdefs.h <<_ACEOF
6944 #define ${GLTYPE}_SUFFIX $result
6955 # Code from module string:
6959 # Code from module warn-on-use:
6960 # Code from module wchar:
6983 if test $gl_cv_have_include_next = yes; then
6984 gl_cv_next_wchar_h='<'wchar.h'>'
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6987 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6988 if test "${gl_cv_next_wchar_h+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6992 if test $ac_cv_header_wchar_h = yes; then
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6999 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7000 *) gl_absname_cpp="$ac_cpp" ;;
7002 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7003 sed -n '\#/wchar.h#{
7004 s#.*"\(.*/wchar.h\)".*#\1#
7010 gl_cv_next_wchar_h='<'wchar.h'>'
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7015 $as_echo "$gl_cv_next_wchar_h" >&6; }
7017 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7019 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7020 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7021 gl_next_as_first_directive='<'wchar.h'>'
7023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7024 gl_next_as_first_directive=$gl_cv_next_wchar_h
7026 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7030 if test $ac_cv_header_wchar_h = yes; then
7038 if test $gt_cv_c_wint_t = yes; then
7046 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7047 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7049 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7050 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7051 $as_echo_n "(cached) " >&6
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7056 /* Some systems require additional headers. */
7058 # include <stddef.h>
7073 if ac_fn_c_try_compile "$LINENO"; then :
7074 eval "$as_gl_Symbol=yes"
7076 eval "$as_gl_Symbol=no"
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 eval ac_res=\$$as_gl_Symbol
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7082 $as_echo "$ac_res" >&6; }
7083 eval as_val=\$$as_gl_Symbol
7084 if test "x$as_val" = x""yes; then :
7085 cat >>confdefs.h <<_ACEOF
7086 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7089 eval ac_cv_have_decl_$gl_func=yes
7094 # Code from module dummy:
7095 # End of code from modules
7116 gl_source_base='tests'
7117 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
7119 gl_module_indicator_condition=$gltests_WITNESS
7129 LIBGNU_LIBDEPS="$gl_libdeps"
7131 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7135 # For Makefile dependencies.
7137 if test x"$STDINT_H" != x; then
7138 GNULIB_STDINT_H=gnulib/$STDINT_H
7144 cat >>confdefs.h <<_ACEOF
7145 #define PACKAGE "$PACKAGE"
7150 # GDB does not use automake, but gnulib does. This line lets us
7151 # generate its Makefile.in.
7152 am__api_version='1.11'
7154 # Find a good install program. We prefer a C program (faster),
7155 # so one script is as good as another. But avoid the broken or
7156 # incompatible versions:
7157 # SysV /etc/install, /usr/sbin/install
7158 # SunOS /usr/etc/install
7159 # IRIX /sbin/install
7161 # AmigaOS /C/install, which installs bootblocks on floppy discs
7162 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7163 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7164 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7165 # OS/2's system install, which has a completely different semantic
7166 # ./install, which can be erroneously created by make from ./install.sh.
7167 # Reject install programs that cannot install multiple files.
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7169 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7170 if test -z "$INSTALL"; then
7171 if test "${ac_cv_path_install+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 # Account for people who put trailing slashes in PATH elements.
7180 case $as_dir/ in #((
7181 ./ | .// | /[cC]/* | \
7182 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7183 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7186 # OSF1 and SCO ODT 3.0 have their own names for install.
7187 # Don't use installbsd from OSF since it installs stuff as root
7189 for ac_prog in ginstall scoinst install; do
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7192 if test $ac_prog = install &&
7193 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7194 # AIX install. It has an incompatible calling convention.
7196 elif test $ac_prog = install &&
7197 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7198 # program-specific install script used by HP pwplus--don't use.
7201 rm -rf conftest.one conftest.two conftest.dir
7202 echo one > conftest.one
7203 echo two > conftest.two
7205 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7206 test -s conftest.one && test -s conftest.two &&
7207 test -s conftest.dir/conftest.one &&
7208 test -s conftest.dir/conftest.two
7210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7223 rm -rf conftest.one conftest.two conftest.dir
7226 if test "${ac_cv_path_install+set}" = set; then
7227 INSTALL=$ac_cv_path_install
7229 # As a last resort, use the slow shell script. Don't cache a
7230 # value for INSTALL within a source directory, because that will
7231 # break other packages using the cache if that directory is
7232 # removed, or if the value is a relative name.
7233 INSTALL=$ac_install_sh
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7237 $as_echo "$INSTALL" >&6; }
7239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7240 # It thinks the first close brace ends the variable substitution.
7241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7248 $as_echo_n "checking whether build environment is sane... " >&6; }
7251 echo timestamp > conftest.file
7252 # Reject unsafe characters in $srcdir or the absolute working directory
7253 # name. Accept space and tab only in the latter.
7257 *[\\\"\#\$\&\'\`$am_lf]*)
7258 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7261 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7262 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7265 # Do `set' in a subshell so we don't clobber the current shell's
7266 # arguments. Must try -L first in case configure is actually a
7267 # symlink; some systems play weird games with the mod time of symlinks
7268 # (eg FreeBSD returns the mod time of the symlink's containing
7271 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7272 if test "$*" = "X"; then
7274 set X `ls -t "$srcdir/configure" conftest.file`
7277 if test "$*" != "X $srcdir/configure conftest.file" \
7278 && test "$*" != "X conftest.file $srcdir/configure"; then
7280 # If neither matched, then we have a broken ls. This can happen
7281 # if, for instance, CONFIG_SHELL is bash and it inherits a
7282 # broken ls alias from the environment. This has actually
7283 # happened. Such a system could not be considered "sane".
7284 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7285 alias in your environment" "$LINENO" 5
7288 test "$2" = conftest.file
7294 as_fn_error "newly created file is older than distributed files!
7295 Check your system clock" "$LINENO" 5
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7298 $as_echo "yes" >&6; }
7299 test "$program_prefix" != NONE &&
7300 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7301 # Use a double $ so make ignores it.
7302 test "$program_suffix" != NONE &&
7303 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7304 # Double any \ or $.
7305 # By default was `s,x,x', remove it if useless.
7306 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7307 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7309 # expand $ac_aux_dir to an absolute path
7310 am_aux_dir=`cd $ac_aux_dir && pwd`
7312 if test x"${MISSING+set}" != xset; then
7315 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7317 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7320 # Use eval to expand $SHELL
7321 if eval "$MISSING --run true"; then
7322 am_missing_run="$MISSING --run "
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7326 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7329 if test x"${install_sh}" != xset; then
7332 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7334 install_sh="\${SHELL} $am_aux_dir/install-sh"
7338 # Installed binaries are usually stripped using `strip' when the user
7339 # run `make install-strip'. However `strip' might not be the right
7340 # tool to use in cross-compilation environments, therefore Automake
7341 # will honor the `STRIP' environment variable to overrule this program.
7342 if test "$cross_compiling" != no; then
7343 if test -n "$ac_tool_prefix"; then
7344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}strip; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if test "${ac_cv_prog_STRIP+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7351 if test -n "$STRIP"; then
7352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 STRIP=$ac_cv_prog_STRIP
7372 if test -n "$STRIP"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7374 $as_echo "$STRIP" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7382 if test -z "$ac_cv_prog_STRIP"; then
7384 # Extract the first word of "strip", so it can be a program name with args.
7385 set dummy strip; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7391 if test -n "$ac_ct_STRIP"; then
7392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_prog_ac_ct_STRIP="strip"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7412 if test -n "$ac_ct_STRIP"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7414 $as_echo "$ac_ct_STRIP" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7420 if test "x$ac_ct_STRIP" = x; then
7423 case $cross_compiling:$ac_tool_warned in
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7432 STRIP="$ac_cv_prog_STRIP"
7436 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7439 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7440 if test -z "$MKDIR_P"; then
7441 if test "${ac_cv_path_mkdir+set}" = set; then :
7442 $as_echo_n "(cached) " >&6
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7448 test -z "$as_dir" && as_dir=.
7449 for ac_prog in mkdir gmkdir; do
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7452 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7453 'mkdir (GNU coreutils) '* | \
7454 'mkdir (coreutils) '* | \
7455 'mkdir (fileutils) '4.1*)
7456 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7466 if test "${ac_cv_path_mkdir+set}" = set; then
7467 MKDIR_P="$ac_cv_path_mkdir -p"
7469 # As a last resort, use the slow shell script. Don't cache a
7470 # value for MKDIR_P within a source directory, because that will
7471 # break other packages using the cache if that directory is
7472 # removed, or if the value is a relative name.
7473 test -d ./--version && rmdir ./--version
7474 MKDIR_P="$ac_install_sh -d"
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7478 $as_echo "$MKDIR_P" >&6; }
7483 [\\/$]* | ?:[\\/]*) ;;
7484 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7487 for ac_prog in gawk mawk nawk awk
7489 # Extract the first word of "$ac_prog", so it can be a program name with args.
7490 set dummy $ac_prog; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if test "${ac_cv_prog_AWK+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7496 if test -n "$AWK"; then
7497 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 ac_cv_prog_AWK="$ac_prog"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 if test -n "$AWK"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7519 $as_echo "$AWK" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7526 test -n "$AWK" && break
7529 ac_config_commands="$ac_config_commands depfiles"
7532 am_make=${MAKE-make}
7533 cat > confinc << 'END'
7535 @echo this is the am__doit target
7538 # If we don't find an include directive, just comment out the code.
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7540 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7544 # First try GNU make style include.
7545 echo "include confinc" > confmf
7546 # Ignore all kinds of additional output from `make'.
7547 case `$am_make -s -f confmf 2> /dev/null` in #(
7548 *the\ am__doit\ target*)
7554 # Now try BSD make style include.
7555 if test "$am__include" = "#"; then
7556 echo '.include "confinc"' > confmf
7557 case `$am_make -s -f confmf 2> /dev/null` in #(
7558 *the\ am__doit\ target*)
7559 am__include=.include
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7568 $as_echo "$_am_result" >&6; }
7569 rm -f confinc confmf
7571 # Check whether --enable-dependency-tracking was given.
7572 if test "${enable_dependency_tracking+set}" = set; then :
7573 enableval=$enable_dependency_tracking;
7576 if test "x$enable_dependency_tracking" != xno; then
7577 am_depcomp="$ac_aux_dir/depcomp"
7580 if test "x$enable_dependency_tracking" != xno; then
7589 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7590 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7591 # is not polluted with repeated "-I."
7592 am__isrc=' -I$(srcdir)'
7593 # test to see if srcdir already configured
7594 if test -f $srcdir/config.status; then
7595 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7599 # test whether we have cygpath
7600 if test -z "$CYGPATH_W"; then
7601 if (cygpath --version) >/dev/null 2>/dev/null; then
7602 CYGPATH_W='cygpath -w'
7609 # Define the identity of the package.
7611 VERSION=UNUSED-VERSION
7614 # Some tools Automake needs.
7616 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7619 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7622 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7625 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7628 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7630 # We need awk for the "check" target. The system "awk" is bad on
7632 # Always define AMTAR for backward compatibility.
7634 AMTAR=${AMTAR-"${am_missing_run}tar"}
7636 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7641 depcc="$CC" am_compiler_list=
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7644 $as_echo_n "checking dependency style of $depcc... " >&6; }
7645 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7649 # We make a subdir and do the tests there. Otherwise we can end up
7650 # making bogus files that we don't know about and never remove. For
7651 # instance it was reported that on HP-UX the gcc test will end up
7652 # making a dummy file named `D' -- because `-MD' means `put the output
7655 # Copy depcomp to subdir because otherwise we won't find it if we're
7656 # using a relative directory.
7657 cp "$am_depcomp" conftest.dir
7659 # We will build objects and dependencies in a subdirectory because
7660 # it helps to detect inapplicable dependency modes. For instance
7661 # both Tru64's cc and ICC support -MD to output dependencies as a
7662 # side effect of compilation, but ICC will put the dependencies in
7663 # the current directory while Tru64 will put them in the object
7667 am_cv_CC_dependencies_compiler_type=none
7668 if test "$am_compiler_list" = ""; then
7669 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7672 case " $depcc " in #(
7673 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7676 for depmode in $am_compiler_list; do
7677 # Setup a source with many dependencies, because some compilers
7678 # like to wrap large dependency lists on column 80 (with \), and
7679 # we should not choose a depcomp mode which is confused by this.
7681 # We need to recreate these files for each test, as the compiler may
7682 # overwrite some of them when testing with obscure command lines.
7683 # This happens at least with the AIX C compiler.
7685 for i in 1 2 3 4 5 6; do
7686 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7687 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7688 # Solaris 8's {/usr,}/bin/sh.
7689 touch sub/conftst$i.h
7691 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7693 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7694 # mode. It turns out that the SunPro C++ compiler does not properly
7695 # handle `-M -o', and we need to detect this. Also, some Intel
7696 # versions had trouble with output in subdirs
7697 am__obj=sub/conftest.${OBJEXT-o}
7698 am__minus_obj="-o $am__obj"
7701 # This depmode causes a compiler race in universal mode.
7702 test "$am__universal" = false || continue
7705 # after this tag, mechanisms are not by side-effect, so they'll
7706 # only be used when explicitly requested
7707 if test "x$enable_dependency_tracking" = xyes; then
7713 msvisualcpp | msvcmsys)
7714 # This compiler won't grok `-c -o', but also, the minuso test has
7715 # not run yet. These depmodes are late enough in the game, and
7716 # so weak that their functioning should not be impacted.
7717 am__obj=conftest.${OBJEXT-o}
7722 if depmode=$depmode \
7723 source=sub/conftest.c object=$am__obj \
7724 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7725 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7726 >/dev/null 2>conftest.err &&
7727 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7728 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7729 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7730 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7731 # icc doesn't choke on unknown options, it will just issue warnings
7732 # or remarks (even with -Werror). So we grep stderr for any message
7733 # that says an option was ignored or not supported.
7734 # When given -MP, icc 7.0 and 7.1 complain thusly:
7735 # icc: Command line warning: ignoring option '-M'; no argument required
7736 # The diagnosis changed in icc 8.0:
7737 # icc: Command line remark: option '-MP' not supported
7738 if (grep 'ignoring option' conftest.err ||
7739 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7740 am_cv_CC_dependencies_compiler_type=$depmode
7749 am_cv_CC_dependencies_compiler_type=none
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7754 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7755 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7758 test "x$enable_dependency_tracking" != xno \
7759 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7761 am__fastdepCC_FALSE='#'
7763 am__fastdepCC_TRUE='#'
7764 am__fastdepCC_FALSE=
7772 # Check whether --with-separate-debug-dir was given.
7773 if test "${with_separate_debug_dir+set}" = set; then :
7774 withval=$with_separate_debug_dir;
7777 DEBUGDIR=${libdir}/debug
7781 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7783 ac_define_dir=`eval echo $DEBUGDIR`
7784 ac_define_dir=`eval echo $ac_define_dir`
7786 cat >>confdefs.h <<_ACEOF
7787 #define DEBUGDIR "$ac_define_dir"
7793 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7794 if test "x$prefix" = xNONE; then
7795 test_prefix=/usr/local
7800 test_prefix=$exec_prefix
7803 case ${ac_define_dir} in
7804 "${test_prefix}"|"${test_prefix}/"*|\
7805 '${exec_prefix}'|'${exec_prefix}/'*)
7810 cat >>confdefs.h <<_ACEOF
7811 #define DEBUGDIR_RELOCATABLE $value
7817 # GDB's datadir relocation
7821 # Check whether --with-gdb-datadir was given.
7822 if test "${with_gdb_datadir+set}" = set; then :
7823 withval=$with_gdb_datadir;
7824 GDB_DATADIR=$withval
7826 GDB_DATADIR=${datadir}/gdb
7830 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7832 ac_define_dir=`eval echo $GDB_DATADIR`
7833 ac_define_dir=`eval echo $ac_define_dir`
7835 cat >>confdefs.h <<_ACEOF
7836 #define GDB_DATADIR "$ac_define_dir"
7842 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7843 if test "x$prefix" = xNONE; then
7844 test_prefix=/usr/local
7849 test_prefix=$exec_prefix
7852 case ${ac_define_dir} in
7853 "${test_prefix}"|"${test_prefix}/"*|\
7854 '${exec_prefix}'|'${exec_prefix}/'*)
7859 cat >>confdefs.h <<_ACEOF
7860 #define GDB_DATADIR_RELOCATABLE $value
7867 # Check whether --with-relocated-sources was given.
7868 if test "${with_relocated_sources+set}" = set; then :
7869 withval=$with_relocated_sources; reloc_srcdir="${withval}"
7871 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7873 ac_define_dir=`eval echo $reloc_srcdir`
7874 ac_define_dir=`eval echo $ac_define_dir`
7876 cat >>confdefs.h <<_ACEOF
7877 #define RELOC_SRCDIR "$ac_define_dir"
7887 subdirs="$subdirs testsuite"
7890 # Check whether to support alternative target configurations
7891 # Check whether --enable-targets was given.
7892 if test "${enable_targets+set}" = set; then :
7893 enableval=$enable_targets; case "${enableval}" in
7894 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7896 no) enable_targets= ;;
7897 *) enable_targets=$enableval ;;
7902 # Check whether to enable 64-bit support on 32-bit hosts
7903 # Check whether --enable-64-bit-bfd was given.
7904 if test "${enable_64_bit_bfd+set}" = set; then :
7905 enableval=$enable_64_bit_bfd; case "${enableval}" in
7908 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7914 # Provide defaults for some variables set by the per-host and per-target
7916 gdb_host_obs=posix-hdep.o
7918 if test "${target}" = "${host}"; then
7924 . $srcdir/configure.host
7926 # Accumulate some settings from configure.tgt over all enabled targets
7931 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7933 if test "$targ_alias" = "all"; then
7936 # Canonicalize the secondary target names.
7937 result=`$ac_config_sub $targ_alias 2>/dev/null`
7938 if test -n "$result"; then
7944 . ${srcdir}/configure.tgt
7946 if test -z "${gdb_target_obs}"; then :
7947 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7950 # Target-specific object files
7951 for i in ${gdb_target_obs}; do
7952 case " $TARGET_OBS " in
7955 TARGET_OBS="$TARGET_OBS ${i}"
7960 # Check whether this target needs 64-bit CORE_ADDR
7961 if test x${want64} = xfalse; then
7962 . ${srcdir}/../bfd/config.bfd
7967 if test x${all_targets} = xtrue; then
7969 # We want all 64-bit targets if we either:
7970 # - run on a 64-bit host or
7971 # - already require 64-bit support for some other target or
7972 # - the --enable-64-bit-bfd option was supplied
7973 # Otherwise we only support all 32-bit targets.
7975 # NOTE: This test must be in sync with the corresponding
7978 if test x${want64} = xfalse; then
7979 # The cast to long int works around a bug in the HP C Compiler
7980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7982 # This bug is HP SR number 8606223364.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7984 $as_echo_n "checking size of long... " >&6; }
7985 if test "${ac_cv_sizeof_long+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7988 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7991 if test "$ac_cv_type_long" = yes; then
7992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7994 { as_fn_set_status 77
7995 as_fn_error "cannot compute sizeof (long)
7996 See \`config.log' for more details." "$LINENO" 5; }; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8004 $as_echo "$ac_cv_sizeof_long" >&6; }
8008 cat >>confdefs.h <<_ACEOF
8009 #define SIZEOF_LONG $ac_cv_sizeof_long
8013 if test "x${ac_cv_sizeof_long}" = "x8"; then
8017 if test x${want64} = xtrue; then
8018 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8020 TARGET_OBS='$(ALL_TARGET_OBS)'
8026 # For other settings, only the main target counts.
8030 targ=$target; . ${srcdir}/configure.tgt
8032 # Fetch the default architecture and default target vector from BFD.
8033 targ=$target; . $srcdir/../bfd/config.bfd
8035 # We only want the first architecture, so strip off the others if
8036 # there is more than one.
8037 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8039 if test "x$targ_archs" != x; then
8041 cat >>confdefs.h <<_ACEOF
8042 #define DEFAULT_BFD_ARCH $targ_archs
8046 if test "x$targ_defvec" != x; then
8048 cat >>confdefs.h <<_ACEOF
8049 #define DEFAULT_BFD_VEC $targ_defvec
8054 # The CLI cannot be disabled yet, but may be in the future.
8057 # Check whether --enable-gdbcli was given.
8058 if test "${enable_gdbcli+set}" = set; then :
8059 enableval=$enable_gdbcli; case $enableval in
8063 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8065 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8071 if test x"$enable_gdbcli" = xyes; then
8072 if test -d $srcdir/cli; then
8073 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8074 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8075 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8076 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8081 # Check whether --enable-gdbmi was given.
8082 if test "${enable_gdbmi+set}" = set; then :
8083 enableval=$enable_gdbmi; case $enableval in
8087 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8093 if test x"$enable_gdbmi" = xyes; then
8094 if test -d $srcdir/mi; then
8095 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8096 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8097 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8098 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8103 # Check whether --enable-tui was given.
8104 if test "${enable_tui+set}" = set; then :
8105 enableval=$enable_tui; case $enableval in
8109 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8117 # Check whether --enable-gdbtk was given.
8118 if test "${enable_gdbtk+set}" = set; then :
8119 enableval=$enable_gdbtk; case $enableval in
8123 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8126 if test -d $srcdir/gdbtk; then
8133 # We unconditionally disable gdbtk tests on selected platforms.
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8137 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8141 # Libunwind support.
8143 # Check whether --with-libunwind was given.
8144 if test "${with_libunwind+set}" = set; then :
8145 withval=$with_libunwind; case "${withval}" in
8146 yes) enable_libunwind=yes ;;
8147 no) enable_libunwind=no ;;
8148 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8152 for ac_header in libunwind.h libunwind-ia64.h
8154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8155 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8156 eval as_val=\$$as_ac_Header
8157 if test "x$as_val" = x""yes; then :
8158 cat >>confdefs.h <<_ACEOF
8159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8166 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8167 enable_libunwind=yes;
8173 if test x"$enable_libunwind" = xyes; then
8174 for ac_header in libunwind.h libunwind-ia64.h
8176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8177 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8178 eval as_val=\$$as_ac_Header
8179 if test "x$as_val" = x""yes; then :
8180 cat >>confdefs.h <<_ACEOF
8181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8189 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8191 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8192 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8193 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8198 # Check whether --with-curses was given.
8199 if test "${with_curses+set}" = set; then :
8200 withval=$with_curses; opt_curses=$withval
8205 if test "$opt_curses" = "yes"; then
8209 # Profiling support.
8210 # Check whether --enable-profiling was given.
8211 if test "${enable_profiling+set}" = set; then :
8212 enableval=$enable_profiling; case $enableval in
8216 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8223 for ac_func in monstartup _mcleanup
8225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8227 eval as_val=\$$as_ac_var
8228 if test "x$as_val" = x""yes; then :
8229 cat >>confdefs.h <<_ACEOF
8230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8237 $as_echo_n "checking for _etext... " >&6; }
8238 if test "${ac_cv_var__etext+set}" = set; then :
8239 $as_echo_n "(cached) " >&6
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8254 if ac_fn_c_try_link "$LINENO"; then :
8255 ac_cv_var__etext=yes
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8263 $as_echo "$ac_cv_var__etext" >&6; }
8264 if test $ac_cv_var__etext = yes; then
8266 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8270 $as_echo_n "checking for etext... " >&6; }
8271 if test "${ac_cv_var_etext+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8287 if ac_fn_c_try_link "$LINENO"; then :
8292 rm -f core conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8296 $as_echo "$ac_cv_var_etext" >&6; }
8297 if test $ac_cv_var_etext = yes; then
8299 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8302 if test "$enable_profiling" = yes ; then
8303 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8304 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8307 OLD_CFLAGS="$CFLAGS"
8308 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8311 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8312 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8326 if ac_fn_c_try_compile "$LINENO"; then :
8327 ac_cv_cc_supports_pg=yes
8329 ac_cv_cc_supports_pg=no
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8334 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8336 if test $ac_cv_cc_supports_pg = no; then
8337 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8340 CFLAGS="$OLD_CFLAGS"
8345 # Check whether --with-pkgversion was given.
8346 if test "${with_pkgversion+set}" = set; then :
8347 withval=$with_pkgversion; case "$withval" in
8348 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8350 *) PKGVERSION="($withval) " ;;
8361 # Check whether --with-bugurl was given.
8362 if test "${with_bugurl+set}" = set; then :
8363 withval=$with_bugurl; case "$withval" in
8364 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8367 *) BUGURL="$withval"
8371 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8381 REPORT_BUGS_TO="<$BUGURL>"
8382 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8389 cat >>confdefs.h <<_ACEOF
8390 #define PKGVERSION "$PKGVERSION"
8394 cat >>confdefs.h <<_ACEOF
8395 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8399 # --------------------- #
8400 # Checks for programs. #
8401 # --------------------- #
8403 for ac_prog in gawk mawk nawk awk
8405 # Extract the first word of "$ac_prog", so it can be a program name with args.
8406 set dummy $ac_prog; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_prog_AWK+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8412 if test -n "$AWK"; then
8413 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_prog_AWK="$ac_prog"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 if test -n "$AWK"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8435 $as_echo "$AWK" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8442 test -n "$AWK" && break
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8447 $as_echo_n "checking whether ln -s works... " >&6; }
8449 if test "$LN_S" = "ln -s"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8451 $as_echo "yes" >&6; }
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8454 $as_echo "no, using $LN_S" >&6; }
8457 if test -n "$ac_tool_prefix"; then
8458 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8459 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8465 if test -n "$RANLIB"; then
8466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 RANLIB=$ac_cv_prog_RANLIB
8486 if test -n "$RANLIB"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8488 $as_echo "$RANLIB" >&6; }
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8496 if test -z "$ac_cv_prog_RANLIB"; then
8497 ac_ct_RANLIB=$RANLIB
8498 # Extract the first word of "ranlib", so it can be a program name with args.
8499 set dummy ranlib; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8505 if test -n "$ac_ct_RANLIB"; then
8506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_prog_ac_ct_RANLIB="ranlib"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8526 if test -n "$ac_ct_RANLIB"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8528 $as_echo "$ac_ct_RANLIB" >&6; }
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8534 if test "x$ac_ct_RANLIB" = x; then
8537 case $cross_compiling:$ac_tool_warned in
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8541 ac_tool_warned=yes ;;
8543 RANLIB=$ac_ct_RANLIB
8546 RANLIB="$ac_cv_prog_RANLIB"
8549 for ac_prog in 'bison -y' byacc
8551 # Extract the first word of "$ac_prog", so it can be a program name with args.
8552 set dummy $ac_prog; ac_word=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if test "${ac_cv_prog_YACC+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8558 if test -n "$YACC"; then
8559 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8568 ac_cv_prog_YACC="$ac_prog"
8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 YACC=$ac_cv_prog_YACC
8579 if test -n "$YACC"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8581 $as_echo "$YACC" >&6; }
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8588 test -n "$YACC" && break
8590 test -n "$YACC" || YACC="yacc"
8593 if test -n "$ac_tool_prefix"; then
8594 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8595 set dummy ${ac_tool_prefix}ar; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_prog_AR+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8601 if test -n "$AR"; then
8602 ac_cv_prog_AR="$AR" # Let the user override the test.
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_prog_AR="${ac_tool_prefix}ar"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 if test -n "$AR"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8624 $as_echo "$AR" >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8632 if test -z "$ac_cv_prog_AR"; then
8634 # Extract the first word of "ar", so it can be a program name with args.
8635 set dummy ar; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8641 if test -n "$ac_ct_AR"; then
8642 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_prog_ac_ct_AR="ar"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8662 if test -n "$ac_ct_AR"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8664 $as_echo "$ac_ct_AR" >&6; }
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8670 if test "x$ac_ct_AR" = x; then
8673 case $cross_compiling:$ac_tool_warned in
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8677 ac_tool_warned=yes ;;
8685 if test -n "$ac_tool_prefix"; then
8686 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8687 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8693 if test -n "$DLLTOOL"; then
8694 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8703 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 DLLTOOL=$ac_cv_prog_DLLTOOL
8714 if test -n "$DLLTOOL"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8716 $as_echo "$DLLTOOL" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8724 if test -z "$ac_cv_prog_DLLTOOL"; then
8725 ac_ct_DLLTOOL=$DLLTOOL
8726 # Extract the first word of "dlltool", so it can be a program name with args.
8727 set dummy dlltool; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8733 if test -n "$ac_ct_DLLTOOL"; then
8734 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8743 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8754 if test -n "$ac_ct_DLLTOOL"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8756 $as_echo "$ac_ct_DLLTOOL" >&6; }
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8762 if test "x$ac_ct_DLLTOOL" = x; then
8765 case $cross_compiling:$ac_tool_warned in
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8769 ac_tool_warned=yes ;;
8771 DLLTOOL=$ac_ct_DLLTOOL
8774 DLLTOOL="$ac_cv_prog_DLLTOOL"
8777 if test -n "$ac_tool_prefix"; then
8778 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8779 set dummy ${ac_tool_prefix}windres; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8785 if test -n "$WINDRES"; then
8786 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8795 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 WINDRES=$ac_cv_prog_WINDRES
8806 if test -n "$WINDRES"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8808 $as_echo "$WINDRES" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8816 if test -z "$ac_cv_prog_WINDRES"; then
8817 ac_ct_WINDRES=$WINDRES
8818 # Extract the first word of "windres", so it can be a program name with args.
8819 set dummy windres; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8823 $as_echo_n "(cached) " >&6
8825 if test -n "$ac_ct_WINDRES"; then
8826 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8835 ac_cv_prog_ac_ct_WINDRES="windres"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8846 if test -n "$ac_ct_WINDRES"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8848 $as_echo "$ac_ct_WINDRES" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8854 if test "x$ac_ct_WINDRES" = x; then
8857 case $cross_compiling:$ac_tool_warned in
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8863 WINDRES=$ac_ct_WINDRES
8866 WINDRES="$ac_cv_prog_WINDRES"
8870 # Needed for GNU/Hurd.
8871 if test -n "$ac_tool_prefix"; then
8872 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8873 set dummy ${ac_tool_prefix}mig; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if test "${ac_cv_prog_MIG+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8879 if test -n "$MIG"; then
8880 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 if test -n "$MIG"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8902 $as_echo "$MIG" >&6; }
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8910 if test -z "$ac_cv_prog_MIG"; then
8912 # Extract the first word of "mig", so it can be a program name with args.
8913 set dummy mig; ac_word=$2
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915 $as_echo_n "checking for $ac_word... " >&6; }
8916 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
8919 if test -n "$ac_ct_MIG"; then
8920 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8929 ac_cv_prog_ac_ct_MIG="mig"
8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8940 if test -n "$ac_ct_MIG"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8942 $as_echo "$ac_ct_MIG" >&6; }
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8948 if test "x$ac_ct_MIG" = x; then
8951 case $cross_compiling:$ac_tool_warned in
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8955 ac_tool_warned=yes ;;
8960 MIG="$ac_cv_prog_MIG"
8964 # ---------------------- #
8965 # Checks for libraries. #
8966 # ---------------------- #
8968 # We might need to link with -lm; most simulators need it.
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8970 $as_echo_n "checking for main in -lm... " >&6; }
8971 if test "${ac_cv_lib_m_main+set}" = set; then :
8972 $as_echo_n "(cached) " >&6
8974 ac_check_lib_save_LIBS=$LIBS
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8988 if ac_fn_c_try_link "$LINENO"; then :
8989 ac_cv_lib_m_main=yes
8993 rm -f core conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 LIBS=$ac_check_lib_save_LIBS
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8998 $as_echo "$ac_cv_lib_m_main" >&6; }
8999 if test "x$ac_cv_lib_m_main" = x""yes; then :
9000 cat >>confdefs.h <<_ACEOF
9009 # We need to link with -lw to get `wctype' on Solaris before Solaris
9010 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9011 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9012 # is known to have this problem). Therefore we avoid libw if we can.
9013 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9014 if test "x$ac_cv_func_wctype" = x""yes; then :
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9018 $as_echo_n "checking for wctype in -lw... " >&6; }
9019 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9022 ac_check_lib_save_LIBS=$LIBS
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9027 /* Override any GCC internal prototype to avoid an error.
9028 Use char because int might match the return type of a GCC
9029 builtin and then its argument prototype would still apply. */
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 ac_cv_lib_w_wctype=yes
9045 ac_cv_lib_w_wctype=no
9047 rm -f core conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
9049 LIBS=$ac_check_lib_save_LIBS
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9052 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9053 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9054 cat >>confdefs.h <<_ACEOF
9065 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9067 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9068 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9069 $as_echo_n "(cached) " >&6
9071 ac_func_search_save_LIBS=$LIBS
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9075 /* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9081 char gethostbyname ();
9085 return gethostbyname ();
9090 for ac_lib in '' nsl; do
9091 if test -z "$ac_lib"; then
9092 ac_res="none required"
9095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9097 if ac_fn_c_try_link "$LINENO"; then :
9098 ac_cv_search_gethostbyname=$ac_res
9100 rm -f core conftest.err conftest.$ac_objext \
9102 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9106 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9109 ac_cv_search_gethostbyname=no
9112 LIBS=$ac_func_search_save_LIBS
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9115 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9116 ac_res=$ac_cv_search_gethostbyname
9117 if test "$ac_res" != no; then :
9118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9123 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9125 $as_echo_n "checking for library containing socketpair... " >&6; }
9126 if test "${ac_cv_search_socketpair+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9129 ac_func_search_save_LIBS=$LIBS
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9133 /* Override any GCC internal prototype to avoid an error.
9134 Use char because int might match the return type of a GCC
9135 builtin and then its argument prototype would still apply. */
9143 return socketpair ();
9148 for ac_lib in '' socket; do
9149 if test -z "$ac_lib"; then
9150 ac_res="none required"
9153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9155 if ac_fn_c_try_link "$LINENO"; then :
9156 ac_cv_search_socketpair=$ac_res
9158 rm -f core conftest.err conftest.$ac_objext \
9160 if test "${ac_cv_search_socketpair+set}" = set; then :
9164 if test "${ac_cv_search_socketpair+set}" = set; then :
9167 ac_cv_search_socketpair=no
9170 LIBS=$ac_func_search_save_LIBS
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9173 $as_echo "$ac_cv_search_socketpair" >&6; }
9174 ac_res=$ac_cv_search_socketpair
9175 if test "$ac_res" != no; then :
9176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9181 # Link in zlib if we can. This allows us to read compressed debug sections.
9183 # See if the user specified whether he wants zlib support or not.
9185 # Check whether --with-zlib was given.
9186 if test "${with_zlib+set}" = set; then :
9193 if test "$with_zlib" != "no"; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9195 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9196 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9199 ac_func_search_save_LIBS=$LIBS
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9209 char zlibVersion ();
9213 return zlibVersion ();
9218 for ac_lib in '' z; do
9219 if test -z "$ac_lib"; then
9220 ac_res="none required"
9223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9225 if ac_fn_c_try_link "$LINENO"; then :
9226 ac_cv_search_zlibVersion=$ac_res
9228 rm -f core conftest.err conftest.$ac_objext \
9230 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9234 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9237 ac_cv_search_zlibVersion=no
9240 LIBS=$ac_func_search_save_LIBS
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9243 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9244 ac_res=$ac_cv_search_zlibVersion
9245 if test "$ac_res" != no; then :
9246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9247 for ac_header in zlib.h
9249 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9250 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9251 cat >>confdefs.h <<_ACEOF
9252 #define HAVE_ZLIB_H 1
9261 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9262 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9267 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9269 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9270 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9271 $as_echo_n "(cached) " >&6
9273 ac_func_search_save_LIBS=$LIBS
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9283 char dlgetmodinfo ();
9287 return dlgetmodinfo ();
9292 for ac_lib in '' dl xpdl; do
9293 if test -z "$ac_lib"; then
9294 ac_res="none required"
9297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9299 if ac_fn_c_try_link "$LINENO"; then :
9300 ac_cv_search_dlgetmodinfo=$ac_res
9302 rm -f core conftest.err conftest.$ac_objext \
9304 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9308 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9311 ac_cv_search_dlgetmodinfo=no
9314 LIBS=$ac_func_search_save_LIBS
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9317 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9318 ac_res=$ac_cv_search_dlgetmodinfo
9319 if test "$ac_res" != no; then :
9320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9328 # Check whether --with-libiconv-prefix was given.
9329 if test "${with_libiconv_prefix+set}" = set; then :
9330 withval=$with_libiconv_prefix;
9331 for dir in `echo "$withval" | tr : ' '`; do
9332 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9333 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9339 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9340 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9343 $as_echo_n "checking for iconv... " >&6; }
9344 if test "${am_cv_func_iconv+set}" = set; then :
9345 $as_echo_n "(cached) " >&6
9348 am_cv_func_iconv="no, consider installing GNU libiconv"
9350 am_cv_use_build_libiconv=no
9351 am_cv_build_libiconv_path=
9353 # If libiconv is part of the build tree, then try using it over
9355 if test -d ../libiconv; then
9356 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9357 am_save_LIBS="$LIBS"
9358 am_save_CPPFLAGS="$CPPFLAGS"
9359 LIBS="$LIBS $lib_dir/libiconv.a"
9360 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9368 iconv_t cd = iconv_open("","");
9369 iconv(cd,NULL,NULL,NULL,NULL);
9375 if ac_fn_c_try_link "$LINENO"; then :
9376 am_cv_use_build_libiconv=yes
9377 am_cv_build_libiconv_path=$lib_dir/libiconv.a
9379 am_cv_func_iconv=yes
9381 rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383 LIBS="$am_save_LIBS"
9384 CPPFLAGS="$am_save_CPPFLAGS"
9385 if test "$am_cv_use_build_libiconv" = "yes"; then
9391 # Next, try to find iconv in libc.
9392 if test "$am_cv_func_iconv" != yes; then
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9400 iconv_t cd = iconv_open("","");
9401 iconv(cd,NULL,NULL,NULL,NULL);
9407 if ac_fn_c_try_link "$LINENO"; then :
9408 am_cv_func_iconv=yes
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9414 # If iconv was not in libc, try -liconv. In this case, arrange to
9415 # look in the libiconv prefix, if it was specified by the user.
9416 if test "$am_cv_func_iconv" != yes; then
9417 am_save_CPPFLAGS="$CPPFLAGS"
9418 am_save_LIBS="$LIBS"
9419 if test -n "$LIBICONV_INCLUDE"; then
9420 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9421 LIBS="$LIBS $LIBICONV_LIBDIR"
9423 LIBS="$LIBS -liconv"
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9431 iconv_t cd = iconv_open("","");
9432 iconv(cd,NULL,NULL,NULL,NULL);
9438 if ac_fn_c_try_link "$LINENO"; then :
9440 am_cv_func_iconv=yes
9442 rm -f core conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext conftest.$ac_ext
9444 LIBS="$am_save_LIBS"
9445 CPPFLAGS="$am_save_CPPFLAGS"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9450 $as_echo "$am_cv_func_iconv" >&6; }
9452 # Set the various flags based on the cache variables. We can't rely
9453 # on the flags to remain set from the above code, due to caching.
9455 if test "$am_cv_lib_iconv" = yes; then
9461 if test "$am_cv_use_build_libiconv" = yes; then
9462 LIBICONV="$am_cv_build_libiconv_path"
9464 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9466 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9467 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9469 if test "$am_cv_func_iconv" = yes; then
9471 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9474 $as_echo_n "checking for iconv declaration... " >&6; }
9475 if test "${am_cv_proto_iconv+set}" = set; then :
9476 $as_echo_n "(cached) " >&6
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9488 #if defined(__STDC__) || defined(__cplusplus)
9489 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9502 if ac_fn_c_try_compile "$LINENO"; then :
9503 am_cv_proto_iconv_arg1=""
9505 am_cv_proto_iconv_arg1="const"
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508 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);"
9511 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9513 }$am_cv_proto_iconv" >&5
9515 }$am_cv_proto_iconv" >&6; }
9517 cat >>confdefs.h <<_ACEOF
9518 #define ICONV_CONST $am_cv_proto_iconv_arg1
9524 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9525 # There is a very specific comment in /usr/include/curses.h explaining that
9526 # termcap routines built into libcurses must not be used.
9528 # The symptoms we observed so far is GDB unexpectedly changing
9529 # the terminal settings when tgetent is called - this is particularly
9530 # visible as the output is missing carriage returns, and so rapidly
9531 # becomes very hard to read.
9533 # The readline configure script has already decided that libtermcap
9534 # was enough for its purposes, and so decided to build readline using
9535 # libtermcap. Since the TUI mode requires curses, building GDB with
9536 # TUI enabled results in both libraries to be used at the same time,
9537 # which is not allowed. This basically means that GDB with TUI is
9538 # broken on alpha-osf.
9542 if test x"$enable_tui" = xyes; then
9543 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9545 if test x"$enable_tui" = xauto; then
9551 # For the TUI, we need enhanced curses functionality.
9552 if test x"$enable_tui" != xno; then
9557 if test x"$prefer_curses" = xyes; then
9558 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9559 # curses library because the latter might not provide all the
9560 # functionality we need. However, this leads to problems on systems
9561 # where the linker searches /usr/local/lib, but the compiler doesn't
9562 # search /usr/local/include, if ncurses is installed in /usr/local. A
9563 # default installation of ncurses on alpha*-dec-osf* will lead to such
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9566 $as_echo_n "checking for library containing waddstr... " >&6; }
9567 if test "${ac_cv_search_waddstr+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9570 ac_func_search_save_LIBS=$LIBS
9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9574 /* Override any GCC internal prototype to avoid an error.
9575 Use char because int might match the return type of a GCC
9576 builtin and then its argument prototype would still apply. */
9589 for ac_lib in '' ncurses cursesX curses; do
9590 if test -z "$ac_lib"; then
9591 ac_res="none required"
9594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9596 if ac_fn_c_try_link "$LINENO"; then :
9597 ac_cv_search_waddstr=$ac_res
9599 rm -f core conftest.err conftest.$ac_objext \
9601 if test "${ac_cv_search_waddstr+set}" = set; then :
9605 if test "${ac_cv_search_waddstr+set}" = set; then :
9608 ac_cv_search_waddstr=no
9611 LIBS=$ac_func_search_save_LIBS
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9614 $as_echo "$ac_cv_search_waddstr" >&6; }
9615 ac_res=$ac_cv_search_waddstr
9616 if test "$ac_res" != no; then :
9617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9622 if test "$ac_cv_search_waddstr" != no; then
9627 # Check whether we should enable the TUI, but only do so if we really
9629 if test x"$enable_tui" != xno; then
9630 if test -d $srcdir/tui; then
9631 if test "$curses_found" != no; then
9632 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9633 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9634 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9635 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9636 CONFIG_ALL="${CONFIG_ALL} all-tui"
9637 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9638 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9639 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9641 if test x"$enable_tui" = xyes; then
9642 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9645 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9651 # Since GDB uses Readline, we need termcap functionality. In many
9652 # cases this will be provided by the curses library, but some systems
9653 # have a seperate termcap library, or no curses library at all.
9657 if test -d $srcdir/libtermcap; then
9658 LIBS="../libtermcap/libtermcap.a $LIBS"
9659 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9662 ac_cv_search_tgetent="none required"
9665 ac_cv_search_tgetent="none required"
9666 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9670 # These are the libraries checked by Readline.
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9672 $as_echo_n "checking for library containing tgetent... " >&6; }
9673 if test "${ac_cv_search_tgetent+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9676 ac_func_search_save_LIBS=$LIBS
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9680 /* Override any GCC internal prototype to avoid an error.
9681 Use char because int might match the return type of a GCC
9682 builtin and then its argument prototype would still apply. */
9695 for ac_lib in '' termcap tinfo curses ncurses; do
9696 if test -z "$ac_lib"; then
9697 ac_res="none required"
9700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9702 if ac_fn_c_try_link "$LINENO"; then :
9703 ac_cv_search_tgetent=$ac_res
9705 rm -f core conftest.err conftest.$ac_objext \
9707 if test "${ac_cv_search_tgetent+set}" = set; then :
9711 if test "${ac_cv_search_tgetent+set}" = set; then :
9714 ac_cv_search_tgetent=no
9717 LIBS=$ac_func_search_save_LIBS
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9720 $as_echo "$ac_cv_search_tgetent" >&6; }
9721 ac_res=$ac_cv_search_tgetent
9722 if test "$ac_res" != no; then :
9723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9728 if test "$ac_cv_search_tgetent" = no; then
9729 as_fn_error "no termcap library found" "$LINENO" 5
9733 # Check whether --with-system-readline was given.
9734 if test "${with_system_readline+set}" = set; then :
9735 withval=$with_system_readline;
9739 if test "$with_system_readline" = yes; then
9743 READLINE_TEXI_INCFLAG=
9745 # readline-6.0 started to use the name `_rl_echoing_p'.
9746 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9749 $as_echo_n "checking for readline_echoing_p... " >&6; }
9751 LIBS="$LIBS $READLINE"
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9758 extern int readline_echoing_p;
9759 return readline_echoing_p;
9764 if ac_fn_c_try_link "$LINENO"; then :
9765 READLINE_ECHOING_P=yes
9767 READLINE_ECHOING_P=no
9769 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9772 rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9776 $as_echo "$READLINE_ECHOING_P" >&6; }
9778 READLINE='$(READLINE_DIR)/libreadline.a'
9779 READLINE_DEPS='$(READLINE)'
9780 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9781 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9789 # Check whether --with-expat was given.
9790 if test "${with_expat+set}" = set; then :
9791 withval=$with_expat;
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9797 $as_echo_n "checking whether to use expat... " >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9799 $as_echo "$with_expat" >&6; }
9801 if test "${with_expat}" = no; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9803 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9807 if test "X$prefix" = "XNONE"; then
9808 acl_final_prefix="$ac_default_prefix"
9810 acl_final_prefix="$prefix"
9812 if test "X$exec_prefix" = "XNONE"; then
9813 acl_final_exec_prefix='${prefix}'
9815 acl_final_exec_prefix="$exec_prefix"
9817 acl_save_prefix="$prefix"
9818 prefix="$acl_final_prefix"
9819 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9820 prefix="$acl_save_prefix"
9823 # Check whether --with-gnu-ld was given.
9824 if test "${with_gnu_ld+set}" = set; then :
9825 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9830 # Prepare PATH_SEPARATOR.
9831 # The user is always right.
9832 if test "${PATH_SEPARATOR+set}" != set; then
9833 echo "#! /bin/sh" >conf$$.sh
9834 echo "exit 0" >>conf$$.sh
9836 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9844 if test "$GCC" = yes; then
9845 # Check if gcc -print-prog-name=ld gives a path.
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9847 $as_echo_n "checking for ld used by GCC... " >&6; }
9850 # gcc leaves a trailing carriage return which upsets mingw
9851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9856 # Accept absolute paths.
9857 [\\/]* | [A-Za-z]:[\\/]*)
9858 re_direlt='/[^/][^/]*/\.\./'
9859 # Canonicalize the path of ld
9860 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9861 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9862 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9864 test -z "$LD" && LD="$ac_prog"
9867 # If it fails, then pretend we aren't using GCC.
9871 # If it is relative, then search for the first ld in PATH.
9875 elif test "$with_gnu_ld" = yes; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9877 $as_echo_n "checking for GNU ld... " >&6; }
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9880 $as_echo_n "checking for non-GNU ld... " >&6; }
9882 if test "${acl_cv_path_LD+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9885 if test -z "$LD"; then
9886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9887 for ac_dir in $PATH; do
9888 test -z "$ac_dir" && ac_dir=.
9889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9890 acl_cv_path_LD="$ac_dir/$ac_prog"
9891 # Check to see if the program is GNU ld. I'd rather use --version,
9892 # but apparently some GNU ld's only accept -v.
9893 # Break only if it was the GNU/non-GNU ld that we prefer.
9894 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9895 test "$with_gnu_ld" != no && break
9897 test "$with_gnu_ld" != yes && break
9903 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9907 LD="$acl_cv_path_LD"
9908 if test -n "$LD"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9910 $as_echo "$LD" >&6; }
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9915 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9917 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9918 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9919 $as_echo_n "(cached) " >&6
9921 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9922 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9923 acl_cv_prog_gnu_ld=yes
9925 acl_cv_prog_gnu_ld=no
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9929 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9930 with_gnu_ld=$acl_cv_prog_gnu_ld
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9935 $as_echo_n "checking for shared library run path origin... " >&6; }
9936 if test "${acl_cv_rpath+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9940 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9941 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9948 $as_echo "$acl_cv_rpath" >&6; }
9950 libext="$acl_cv_libext"
9951 shlibext="$acl_cv_shlibext"
9952 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9953 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9954 hardcode_direct="$acl_cv_hardcode_direct"
9955 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9956 # Check whether --enable-rpath was given.
9957 if test "${enable_rpath+set}" = set; then :
9958 enableval=$enable_rpath; :
9974 acl_save_prefix="$prefix"
9975 prefix="$acl_final_prefix"
9976 acl_save_exec_prefix="$exec_prefix"
9977 exec_prefix="$acl_final_exec_prefix"
9979 eval additional_includedir=\"$includedir\"
9980 eval additional_libdir=\"$libdir\"
9982 exec_prefix="$acl_save_exec_prefix"
9983 prefix="$acl_save_prefix"
9986 # Check whether --with-libexpat-prefix was given.
9987 if test "${with_libexpat_prefix+set}" = set; then :
9988 withval=$with_libexpat_prefix;
9989 if test "X$withval" = "Xno"; then
9992 if test "X$withval" = "X"; then
9994 acl_save_prefix="$prefix"
9995 prefix="$acl_final_prefix"
9996 acl_save_exec_prefix="$exec_prefix"
9997 exec_prefix="$acl_final_exec_prefix"
9999 eval additional_includedir=\"$includedir\"
10000 eval additional_libdir=\"$libdir\"
10002 exec_prefix="$acl_save_exec_prefix"
10003 prefix="$acl_save_prefix"
10006 additional_includedir="$withval/include"
10007 additional_libdir="$withval/lib"
10018 names_already_handled=
10019 names_next_round='expat '
10020 while test -n "$names_next_round"; do
10021 names_this_round="$names_next_round"
10023 for name in $names_this_round; do
10025 for n in $names_already_handled; do
10026 if test "$n" = "$name"; then
10027 already_handled=yes
10031 if test -z "$already_handled"; then
10032 names_already_handled="$names_already_handled $name"
10033 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10034 eval value=\"\$HAVE_LIB$uppername\"
10035 if test -n "$value"; then
10036 if test "$value" = yes; then
10037 eval value=\"\$LIB$uppername\"
10038 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10039 eval value=\"\$LTLIB$uppername\"
10040 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10049 if test $use_additional = yes; then
10050 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10051 found_dir="$additional_libdir"
10052 found_so="$additional_libdir/lib$name.$shlibext"
10053 if test -f "$additional_libdir/lib$name.la"; then
10054 found_la="$additional_libdir/lib$name.la"
10057 if test -f "$additional_libdir/lib$name.$libext"; then
10058 found_dir="$additional_libdir"
10059 found_a="$additional_libdir/lib$name.$libext"
10060 if test -f "$additional_libdir/lib$name.la"; then
10061 found_la="$additional_libdir/lib$name.la"
10066 if test "X$found_dir" = "X"; then
10067 for x in $LDFLAGS $LTLIBEXPAT; do
10069 acl_save_prefix="$prefix"
10070 prefix="$acl_final_prefix"
10071 acl_save_exec_prefix="$exec_prefix"
10072 exec_prefix="$acl_final_exec_prefix"
10074 exec_prefix="$acl_save_exec_prefix"
10075 prefix="$acl_save_prefix"
10079 dir=`echo "X$x" | sed -e 's/^X-L//'`
10080 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10082 found_so="$dir/lib$name.$shlibext"
10083 if test -f "$dir/lib$name.la"; then
10084 found_la="$dir/lib$name.la"
10087 if test -f "$dir/lib$name.$libext"; then
10089 found_a="$dir/lib$name.$libext"
10090 if test -f "$dir/lib$name.la"; then
10091 found_la="$dir/lib$name.la"
10097 if test "X$found_dir" != "X"; then
10102 if test "X$found_dir" != "X"; then
10103 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10104 if test "X$found_so" != "X"; then
10105 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10106 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10109 for x in $ltrpathdirs; do
10110 if test "X$x" = "X$found_dir"; then
10115 if test -z "$haveit"; then
10116 ltrpathdirs="$ltrpathdirs $found_dir"
10118 if test "$hardcode_direct" = yes; then
10119 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10121 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10122 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10124 for x in $rpathdirs; do
10125 if test "X$x" = "X$found_dir"; then
10130 if test -z "$haveit"; then
10131 rpathdirs="$rpathdirs $found_dir"
10135 for x in $LDFLAGS $LIBEXPAT; do
10137 acl_save_prefix="$prefix"
10138 prefix="$acl_final_prefix"
10139 acl_save_exec_prefix="$exec_prefix"
10140 exec_prefix="$acl_final_exec_prefix"
10142 exec_prefix="$acl_save_exec_prefix"
10143 prefix="$acl_save_prefix"
10145 if test "X$x" = "X-L$found_dir"; then
10150 if test -z "$haveit"; then
10151 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10153 if test "$hardcode_minus_L" != no; then
10154 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10156 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10162 if test "X$found_a" != "X"; then
10163 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10165 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10168 additional_includedir=
10169 case "$found_dir" in
10171 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10172 additional_includedir="$basedir/include"
10175 if test "X$additional_includedir" != "X"; then
10176 if test "X$additional_includedir" != "X/usr/include"; then
10178 if test "X$additional_includedir" = "X/usr/local/include"; then
10179 if test -n "$GCC"; then
10181 linux*) haveit=yes;;
10185 if test -z "$haveit"; then
10186 for x in $CPPFLAGS $INCEXPAT; do
10188 acl_save_prefix="$prefix"
10189 prefix="$acl_final_prefix"
10190 acl_save_exec_prefix="$exec_prefix"
10191 exec_prefix="$acl_final_exec_prefix"
10193 exec_prefix="$acl_save_exec_prefix"
10194 prefix="$acl_save_prefix"
10196 if test "X$x" = "X-I$additional_includedir"; then
10201 if test -z "$haveit"; then
10202 if test -d "$additional_includedir"; then
10203 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10209 if test -n "$found_la"; then
10210 save_libdir="$libdir"
10211 case "$found_la" in
10212 */* | *\\*) . "$found_la" ;;
10213 *) . "./$found_la" ;;
10215 libdir="$save_libdir"
10216 for dep in $dependency_libs; do
10219 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10220 if test "X$additional_libdir" != "X/usr/lib"; then
10222 if test "X$additional_libdir" = "X/usr/local/lib"; then
10223 if test -n "$GCC"; then
10225 linux*) haveit=yes;;
10229 if test -z "$haveit"; then
10231 for x in $LDFLAGS $LIBEXPAT; do
10233 acl_save_prefix="$prefix"
10234 prefix="$acl_final_prefix"
10235 acl_save_exec_prefix="$exec_prefix"
10236 exec_prefix="$acl_final_exec_prefix"
10238 exec_prefix="$acl_save_exec_prefix"
10239 prefix="$acl_save_prefix"
10241 if test "X$x" = "X-L$additional_libdir"; then
10246 if test -z "$haveit"; then
10247 if test -d "$additional_libdir"; then
10248 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10252 for x in $LDFLAGS $LTLIBEXPAT; do
10254 acl_save_prefix="$prefix"
10255 prefix="$acl_final_prefix"
10256 acl_save_exec_prefix="$exec_prefix"
10257 exec_prefix="$acl_final_exec_prefix"
10259 exec_prefix="$acl_save_exec_prefix"
10260 prefix="$acl_save_prefix"
10262 if test "X$x" = "X-L$additional_libdir"; then
10267 if test -z "$haveit"; then
10268 if test -d "$additional_libdir"; then
10269 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10276 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10277 if test "$enable_rpath" != no; then
10279 for x in $rpathdirs; do
10280 if test "X$x" = "X$dir"; then
10285 if test -z "$haveit"; then
10286 rpathdirs="$rpathdirs $dir"
10289 for x in $ltrpathdirs; do
10290 if test "X$x" = "X$dir"; then
10295 if test -z "$haveit"; then
10296 ltrpathdirs="$ltrpathdirs $dir"
10301 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10304 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10307 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10308 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10314 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10315 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10321 if test "X$rpathdirs" != "X"; then
10322 if test -n "$hardcode_libdir_separator"; then
10324 for found_dir in $rpathdirs; do
10325 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10327 acl_save_libdir="$libdir"
10329 eval flag=\"$hardcode_libdir_flag_spec\"
10330 libdir="$acl_save_libdir"
10331 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10333 for found_dir in $rpathdirs; do
10334 acl_save_libdir="$libdir"
10335 libdir="$found_dir"
10336 eval flag=\"$hardcode_libdir_flag_spec\"
10337 libdir="$acl_save_libdir"
10338 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10342 if test "X$ltrpathdirs" != "X"; then
10343 for found_dir in $ltrpathdirs; do
10344 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10349 ac_save_CPPFLAGS="$CPPFLAGS"
10351 for element in $INCEXPAT; do
10353 for x in $CPPFLAGS; do
10355 acl_save_prefix="$prefix"
10356 prefix="$acl_final_prefix"
10357 acl_save_exec_prefix="$exec_prefix"
10358 exec_prefix="$acl_final_exec_prefix"
10360 exec_prefix="$acl_save_exec_prefix"
10361 prefix="$acl_save_prefix"
10363 if test "X$x" = "X$element"; then
10368 if test -z "$haveit"; then
10369 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10375 $as_echo_n "checking for libexpat... " >&6; }
10376 if test "${ac_cv_libexpat+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10380 ac_save_LIBS="$LIBS"
10381 LIBS="$LIBS $LIBEXPAT"
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10388 XML_Parser p = XML_ParserCreate (0);
10393 if ac_fn_c_try_link "$LINENO"; then :
10398 rm -f core conftest.err conftest.$ac_objext \
10399 conftest$ac_exeext conftest.$ac_ext
10400 LIBS="$ac_save_LIBS"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10404 $as_echo "$ac_cv_libexpat" >&6; }
10405 if test "$ac_cv_libexpat" = yes; then
10408 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10411 $as_echo_n "checking how to link with libexpat... " >&6; }
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10413 $as_echo "$LIBEXPAT" >&6; }
10416 CPPFLAGS="$ac_save_CPPFLAGS"
10426 if test "$HAVE_LIBEXPAT" != yes; then
10427 if test "$with_expat" = yes; then
10428 as_fn_error "expat is missing or unusable" "$LINENO" 5
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10431 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10435 LIBS="$LIBS $LIBEXPAT"
10436 for ac_func in XML_StopParser
10438 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10439 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10440 cat >>confdefs.h <<_ACEOF
10441 #define HAVE_XML_STOPPARSER 1
10456 # Check whether --with-python was given.
10457 if test "${with_python+set}" = set; then :
10458 withval=$with_python;
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10464 $as_echo_n "checking whether to use python... " >&6; }
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10466 $as_echo "$with_python" >&6; }
10468 if test "${with_python}" = no; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10470 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10473 case "${with_python}" in
10475 if test -d ${with_python}; then
10476 # Assume the python binary is ${with_python}/bin/python.
10477 python_prog="${with_python}/bin/python"
10479 if test ! -x "${python_prog}"; then
10480 # Fall back to gdb 7.0/7.1 behaviour.
10481 python_prog=missing
10482 python_prefix=${with_python}
10484 elif test -x "${with_python}"; then
10485 # While we can't run python compiled for $host (unless host == build),
10486 # the user could write a script that provides the needed information,
10487 # so we support that.
10488 python_prog=${with_python}
10491 as_fn_error "invalid value for --with-python" "$LINENO" 5
10495 # Disallow --with-python=foo/bar.
10496 as_fn_error "invalid value for --with-python" "$LINENO" 5
10499 # The user has either specified auto, yes, or the name of the python
10500 # program assumed to be in $PATH.
10502 case "${with_python}" in
10504 if test ${build} = ${host}; then
10505 # Extract the first word of "python", so it can be a program name with args.
10506 set dummy python; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10510 $as_echo_n "(cached) " >&6
10512 case $python_prog_path in
10514 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10524 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10536 python_prog_path=$ac_cv_path_python_prog_path
10537 if test -n "$python_prog_path"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10539 $as_echo "$python_prog_path" >&6; }
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10546 if test "${python_prog_path}" = missing; then
10547 python_prog=missing
10549 python_prog=${python_prog_path}
10552 # Not much we can do except assume the cross-compiler will find the
10554 python_prog=missing
10558 # While we can't run python compiled for $host (unless host == build),
10559 # the user could write a script that provides the needed information,
10560 # so we support that.
10561 python_prog="${with_python}"
10562 # Extract the first word of "${python_prog}", so it can be a program name with args.
10563 set dummy ${python_prog}; ac_word=$2
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565 $as_echo_n "checking for $ac_word... " >&6; }
10566 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10569 case $python_prog_path in
10571 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10593 python_prog_path=$ac_cv_path_python_prog_path
10594 if test -n "$python_prog_path"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10596 $as_echo "$python_prog_path" >&6; }
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10603 if test "${python_prog_path}" = missing; then
10604 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10610 if test "${python_prog}" != missing; then
10611 # We have a python program to use, but it may be too old.
10612 # Don't flag an error for --with-python=auto (the default).
10613 have_python_config=yes
10614 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
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 --includes" "$LINENO" 5
10621 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
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 --ldflags" "$LINENO" 5
10628 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10629 if test $? != 0; then
10630 have_python_config=failed
10631 if test "${with_python}" != auto; then
10632 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10636 # Fall back to gdb 7.0/7.1 behaviour.
10637 if test -z ${python_prefix}; then
10641 python_includes="-I${python_prefix}/include"
10642 python_libs="-L${python_prefix}/lib"
10644 have_python_config=no
10647 # Having "/pythonX.Y" in the include path is awkward.
10648 # All those python headers get bubbled up to the top inviting lots
10649 # of random collisions. GDB originally didn't use python-config to
10650 # find the compilation parameters and includes "pythonX.Y/" in the
10651 # path of the, umm, include file. So strip away this part of the
10652 # output of python-config --includes.
10653 python_includes=`echo "${python_includes} " \
10654 | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
10656 # If we have python-config, only try the configuration it provides.
10657 # Otherwise fallback on the old way of trying different versions of
10661 if test "${have_python_config}" = yes; then
10662 python_version=`echo " ${python_libs} " \
10663 | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10664 case "${python_version}" in
10667 version=${python_version}
10669 new_CPPFLAGS=${python_includes}
10670 new_LIBS=${python_libs}
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10672 $as_echo_n "checking for ${version}... " >&6; }
10673 save_CPPFLAGS=$CPPFLAGS
10675 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10676 LIBS="$LIBS $new_LIBS"
10677 found_usable_python=no
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10680 #include "${version}/Python.h"
10689 if ac_fn_c_try_link "$LINENO"; then :
10690 have_libpython=${version}
10691 found_usable_python=yes
10693 CPPFLAGS=$save_CPPFLAGS
10696 rm -f core conftest.err conftest.$ac_objext \
10697 conftest$ac_exeext conftest.$ac_ext
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10699 $as_echo "${found_usable_python}" >&6; }
10703 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10706 elif test "${have_python_config}" != failed; then
10707 if test "${have_libpython}" = no; then
10711 new_CPPFLAGS=${python_includes}
10712 new_LIBS="${python_libs} -lpython2.7"
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10714 $as_echo_n "checking for ${version}... " >&6; }
10715 save_CPPFLAGS=$CPPFLAGS
10717 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10718 LIBS="$LIBS $new_LIBS"
10719 found_usable_python=no
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 #include "${version}/Python.h"
10731 if ac_fn_c_try_link "$LINENO"; then :
10732 have_libpython=${version}
10733 found_usable_python=yes
10735 CPPFLAGS=$save_CPPFLAGS
10738 rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10741 $as_echo "${found_usable_python}" >&6; }
10744 if test "${have_libpython}" = no; then
10748 new_CPPFLAGS=${python_includes}
10749 new_LIBS="${python_libs} -lpython2.6"
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10751 $as_echo_n "checking for ${version}... " >&6; }
10752 save_CPPFLAGS=$CPPFLAGS
10754 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10755 LIBS="$LIBS $new_LIBS"
10756 found_usable_python=no
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759 #include "${version}/Python.h"
10768 if ac_fn_c_try_link "$LINENO"; then :
10769 have_libpython=${version}
10770 found_usable_python=yes
10772 CPPFLAGS=$save_CPPFLAGS
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10778 $as_echo "${found_usable_python}" >&6; }
10781 if test ${have_libpython} = no; then
10785 new_CPPFLAGS=${python_includes}
10786 new_LIBS="${python_libs} -lpython2.5"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10788 $as_echo_n "checking for ${version}... " >&6; }
10789 save_CPPFLAGS=$CPPFLAGS
10791 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10792 LIBS="$LIBS $new_LIBS"
10793 found_usable_python=no
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796 #include "${version}/Python.h"
10805 if ac_fn_c_try_link "$LINENO"; then :
10806 have_libpython=${version}
10807 found_usable_python=yes
10809 CPPFLAGS=$save_CPPFLAGS
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10815 $as_echo "${found_usable_python}" >&6; }
10818 if test ${have_libpython} = no; then
10822 new_CPPFLAGS=${python_includes}
10823 new_LIBS="${python_libs} -lpython2.4"
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10825 $as_echo_n "checking for ${version}... " >&6; }
10826 save_CPPFLAGS=$CPPFLAGS
10828 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10829 LIBS="$LIBS $new_LIBS"
10830 found_usable_python=no
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 #include "${version}/Python.h"
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 have_libpython=${version}
10844 found_usable_python=yes
10846 CPPFLAGS=$save_CPPFLAGS
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10852 $as_echo "${found_usable_python}" >&6; }
10856 if test "${have_libpython}" = python2.7; then
10858 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10860 elif test "${have_libpython}" = python2.6; then
10862 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10864 elif test "${have_libpython}" = python2.5; then
10866 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10868 elif test "${have_libpython}" = python2.4; then
10870 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10874 if test "${have_libpython}" = no; then
10875 case "${with_python}" in
10877 as_fn_error "python is missing or unusable" "$LINENO" 5
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10881 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10884 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10888 if test -n "${python_prefix}"; then
10890 cat >>confdefs.h <<_ACEOF
10891 #define WITH_PYTHON_PATH "${python_prefix}"
10895 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10896 if test "x$prefix" = xNONE; then
10897 test_prefix=/usr/local
10899 test_prefix=$prefix
10902 test_prefix=$exec_prefix
10905 case ${python_prefix} in
10906 "${test_prefix}"|"${test_prefix}/"*|\
10907 '${exec_prefix}'|'${exec_prefix}/'*)
10912 cat >>confdefs.h <<_ACEOF
10913 #define PYTHON_PATH_RELOCATABLE $value
10921 if test "${have_libpython}" != no; then
10923 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10925 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10926 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10927 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10928 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10929 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10931 # Flags needed to compile Python code (taken from python-config --cflags).
10932 # We cannot call python-config directly because it will output whatever was
10933 # used when compiling the Python interpreter itself, including flags which
10934 # would make the python-related objects be compiled differently from the
10935 # rest of GDB (e.g., -O2 and -fPIC).
10936 if test "${GCC}" = yes; then
10937 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10940 if test "x${tentative_python_cflags}" != x; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10942 $as_echo_n "checking compiler flags for python code... " >&6; }
10943 for flag in ${tentative_python_cflags}; do
10944 # Check that the compiler accepts it
10945 saved_CFLAGS="$CFLAGS"
10946 CFLAGS="$CFLAGS $flag"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10958 if ac_fn_c_try_compile "$LINENO"; then :
10959 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 CFLAGS="$saved_CFLAGS"
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10965 $as_echo "${PYTHON_CFLAGS}" >&6; }
10968 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
10970 # #define siginfo __siginfo
10972 # The problem is that including Python causes some XOPEN macros to be
10973 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
10974 # to false. So, we work around this issue by defining siginfo ourself
10975 # though the command-line.
10976 case "$gdb_host" in
10977 irix*) if test "${GCC}" = yes; then
10978 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
10983 # Even if Python support is not compiled in, we need to have these files
10985 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10986 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10987 python/py-prettyprint.c python/py-auto-load.c"
10991 # ------------------------- #
10992 # Checks for header files. #
10993 # ------------------------- #
10995 ac_header_dirent=no
10996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10997 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10999 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11001 $as_echo_n "(cached) " >&6
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 #include <sys/types.h>
11017 if ac_fn_c_try_compile "$LINENO"; then :
11018 eval "$as_ac_Header=yes"
11020 eval "$as_ac_Header=no"
11022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 eval ac_res=\$$as_ac_Header
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11026 $as_echo "$ac_res" >&6; }
11027 eval as_val=\$$as_ac_Header
11028 if test "x$as_val" = x""yes; then :
11029 cat >>confdefs.h <<_ACEOF
11030 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11033 ac_header_dirent=$ac_hdr; break
11037 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11038 if test $ac_header_dirent = dirent.h; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11040 $as_echo_n "checking for library containing opendir... " >&6; }
11041 if test "${ac_cv_search_opendir+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11044 ac_func_search_save_LIBS=$LIBS
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11048 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11063 for ac_lib in '' dir; do
11064 if test -z "$ac_lib"; then
11065 ac_res="none required"
11068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11070 if ac_fn_c_try_link "$LINENO"; then :
11071 ac_cv_search_opendir=$ac_res
11073 rm -f core conftest.err conftest.$ac_objext \
11075 if test "${ac_cv_search_opendir+set}" = set; then :
11079 if test "${ac_cv_search_opendir+set}" = set; then :
11082 ac_cv_search_opendir=no
11084 rm conftest.$ac_ext
11085 LIBS=$ac_func_search_save_LIBS
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11088 $as_echo "$ac_cv_search_opendir" >&6; }
11089 ac_res=$ac_cv_search_opendir
11090 if test "$ac_res" != no; then :
11091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11097 $as_echo_n "checking for library containing opendir... " >&6; }
11098 if test "${ac_cv_search_opendir+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11101 ac_func_search_save_LIBS=$LIBS
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11120 for ac_lib in '' x; do
11121 if test -z "$ac_lib"; then
11122 ac_res="none required"
11125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11127 if ac_fn_c_try_link "$LINENO"; then :
11128 ac_cv_search_opendir=$ac_res
11130 rm -f core conftest.err conftest.$ac_objext \
11132 if test "${ac_cv_search_opendir+set}" = set; then :
11136 if test "${ac_cv_search_opendir+set}" = set; then :
11139 ac_cv_search_opendir=no
11141 rm conftest.$ac_ext
11142 LIBS=$ac_func_search_save_LIBS
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11145 $as_echo "$ac_cv_search_opendir" >&6; }
11146 ac_res=$ac_cv_search_opendir
11147 if test "$ac_res" != no; then :
11148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11155 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11156 if test "${ac_cv_header_stat_broken+set}" = set; then :
11157 $as_echo_n "(cached) " >&6
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161 #include <sys/types.h>
11162 #include <sys/stat.h>
11164 #if defined S_ISBLK && defined S_IFDIR
11165 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11168 #if defined S_ISBLK && defined S_IFCHR
11169 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11172 #if defined S_ISLNK && defined S_IFREG
11173 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11176 #if defined S_ISSOCK && defined S_IFREG
11177 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11181 if ac_fn_c_try_compile "$LINENO"; then :
11182 ac_cv_header_stat_broken=no
11184 ac_cv_header_stat_broken=yes
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11189 $as_echo "$ac_cv_header_stat_broken" >&6; }
11190 if test $ac_cv_header_stat_broken = yes; then
11192 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11197 $as_echo_n "checking for ANSI C header files... " >&6; }
11198 if test "${ac_cv_header_stdc+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11203 #include <stdlib.h>
11204 #include <stdarg.h>
11205 #include <string.h>
11216 if ac_fn_c_try_compile "$LINENO"; then :
11217 ac_cv_header_stdc=yes
11219 ac_cv_header_stdc=no
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 if test $ac_cv_header_stdc = yes; then
11224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 #include <string.h>
11230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11231 $EGREP "memchr" >/dev/null 2>&1; then :
11234 ac_cv_header_stdc=no
11240 if test $ac_cv_header_stdc = yes; then
11241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11244 #include <stdlib.h>
11247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11248 $EGREP "free" >/dev/null 2>&1; then :
11251 ac_cv_header_stdc=no
11257 if test $ac_cv_header_stdc = yes; then
11258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11259 if test "$cross_compiling" = yes; then :
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11265 #include <stdlib.h>
11266 #if ((' ' & 0x0FF) == 0x020)
11267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11270 # define ISLOWER(c) \
11271 (('a' <= (c) && (c) <= 'i') \
11272 || ('j' <= (c) && (c) <= 'r') \
11273 || ('s' <= (c) && (c) <= 'z'))
11274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11282 for (i = 0; i < 256; i++)
11283 if (XOR (islower (i), ISLOWER (i))
11284 || toupper (i) != TOUPPER (i))
11289 if ac_fn_c_try_run "$LINENO"; then :
11292 ac_cv_header_stdc=no
11294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11295 conftest.$ac_objext conftest.beam conftest.$ac_ext
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11301 $as_echo "$ac_cv_header_stdc" >&6; }
11302 if test $ac_cv_header_stdc = yes; then
11304 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11308 # elf_hp.h is for HP/UX 64-bit shared library support.
11309 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11310 # unconditionally, so what's the point in checking these?
11311 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11312 thread_db.h gnu/libc-version.h signal.h stddef.h \
11313 stdlib.h string.h memory.h strings.h sys/fault.h \
11314 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11315 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11316 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11317 sys/types.h sys/wait.h wait.h termios.h termio.h \
11318 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11321 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11322 eval as_val=\$$as_ac_Header
11323 if test "x$as_val" = x""yes; then :
11324 cat >>confdefs.h <<_ACEOF
11325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11332 for ac_header in link.h
11334 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11335 # include <sys/types.h>
11338 # include <nlist.h>
11342 if test "x$ac_cv_header_link_h" = x""yes; then :
11343 cat >>confdefs.h <<_ACEOF
11344 #define HAVE_LINK_H 1
11351 for ac_header in sys/proc.h
11353 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11354 # include <sys/param.h>
11358 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11359 cat >>confdefs.h <<_ACEOF
11360 #define HAVE_SYS_PROC_H 1
11367 for ac_header in sys/user.h
11369 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11370 # include <sys/param.h>
11374 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11375 cat >>confdefs.h <<_ACEOF
11376 #define HAVE_SYS_USER_H 1
11384 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11385 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11386 # think that we don't have <curses.h> if we're using GCC.
11389 if test "$GCC" = yes; then
11391 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11395 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11398 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11399 eval as_val=\$$as_ac_Header
11400 if test "x$as_val" = x""yes; then :
11401 cat >>confdefs.h <<_ACEOF
11402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11409 for ac_header in term.h
11411 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11412 # include <curses.h>
11416 if test "x$ac_cv_header_term_h" = x""yes; then :
11417 cat >>confdefs.h <<_ACEOF
11418 #define HAVE_TERM_H 1
11426 # ------------------------- #
11427 # Checks for declarations. #
11428 # ------------------------- #
11430 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11431 if test "x$ac_cv_have_decl_free" = x""yes; then :
11437 cat >>confdefs.h <<_ACEOF
11438 #define HAVE_DECL_FREE $ac_have_decl
11440 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11441 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11447 cat >>confdefs.h <<_ACEOF
11448 #define HAVE_DECL_MALLOC $ac_have_decl
11450 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11451 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11457 cat >>confdefs.h <<_ACEOF
11458 #define HAVE_DECL_REALLOC $ac_have_decl
11460 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11461 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11467 cat >>confdefs.h <<_ACEOF
11468 #define HAVE_DECL_STRERROR $ac_have_decl
11470 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11471 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11477 cat >>confdefs.h <<_ACEOF
11478 #define HAVE_DECL_STRSTR $ac_have_decl
11480 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11481 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11487 cat >>confdefs.h <<_ACEOF
11488 #define HAVE_DECL_GETOPT $ac_have_decl
11490 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11491 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11497 cat >>confdefs.h <<_ACEOF
11498 #define HAVE_DECL_SNPRINTF $ac_have_decl
11500 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11501 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11507 cat >>confdefs.h <<_ACEOF
11508 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11513 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11514 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 #include <locale.h>
11528 if ac_fn_c_try_link "$LINENO"; then :
11529 am_cv_val_LC_MESSAGES=yes
11531 am_cv_val_LC_MESSAGES=no
11533 rm -f core conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11537 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11538 if test $am_cv_val_LC_MESSAGES = yes; then
11540 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11545 # ----------------------- #
11546 # Checks for structures. #
11547 # ----------------------- #
11549 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11550 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11552 cat >>confdefs.h <<_ACEOF
11553 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11558 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11559 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11561 cat >>confdefs.h <<_ACEOF
11562 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11569 # ------------------ #
11570 # Checks for types. #
11571 # ------------------ #
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11574 $as_echo_n "checking return type of signal handlers... " >&6; }
11575 if test "${ac_cv_type_signal+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11580 #include <sys/types.h>
11581 #include <signal.h>
11586 return *(signal (0, 0)) (0) == 1;
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592 ac_cv_type_signal=int
11594 ac_cv_type_signal=void
11596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11599 $as_echo "$ac_cv_type_signal" >&6; }
11601 cat >>confdefs.h <<_ACEOF
11602 #define RETSIGTYPE $ac_cv_type_signal
11606 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11607 #include <sys/socket.h>
11610 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11612 cat >>confdefs.h <<_ACEOF
11613 #define HAVE_SOCKLEN_T 1
11620 # ------------------------------------- #
11621 # Checks for compiler characteristics. #
11622 # ------------------------------------- #
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11625 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11626 if test "${ac_cv_c_const+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11635 /* FIXME: Include the comments suggested by Paul. */
11636 #ifndef __cplusplus
11637 /* Ultrix mips cc rejects this. */
11638 typedef int charset[2];
11640 /* SunOS 4.1.1 cc rejects this. */
11641 char const *const *pcpcc;
11643 /* NEC SVR4.0.2 mips cc rejects this. */
11644 struct point {int x, y;};
11645 static struct point const zero = {0,0};
11646 /* AIX XL C 1.02.0.0 rejects this.
11647 It does not let you subtract one const X* pointer from another in
11648 an arm of an if-expression whose if-part is not a constant
11650 const char *g = "string";
11651 pcpcc = &g + (g ? g-g : 0);
11652 /* HPUX 7.0 cc rejects these. */
11654 ppc = (char**) pcpcc;
11655 pcpcc = (char const *const *) ppc;
11656 { /* SCO 3.2v4 cc rejects this. */
11658 char const *s = 0 ? (char *) 0 : (char const *) 0;
11663 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11664 int x[] = {25, 17};
11665 const int *foo = &x[0];
11668 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11669 typedef const int *iptr;
11673 { /* AIX XL C 1.02.0.0 rejects this saying
11674 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11675 struct s { int j; const int *ap[3]; };
11676 struct s *b; b->j = 5;
11678 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11679 const int foo = 10;
11680 if (!foo) return 0;
11682 return !cs[0] && !zero.x;
11689 if ac_fn_c_try_compile "$LINENO"; then :
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11697 $as_echo "$ac_cv_c_const" >&6; }
11698 if test $ac_cv_c_const = no; then
11700 $as_echo "#define const /**/" >>confdefs.h
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11705 $as_echo_n "checking for inline... " >&6; }
11706 if test "${ac_cv_c_inline+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
11710 for ac_kw in inline __inline__ __inline; do
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713 #ifndef __cplusplus
11715 static $ac_kw foo_t static_foo () {return 0; }
11716 $ac_kw foo_t foo () {return 0; }
11720 if ac_fn_c_try_compile "$LINENO"; then :
11721 ac_cv_c_inline=$ac_kw
11723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724 test "$ac_cv_c_inline" != no && break
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11729 $as_echo "$ac_cv_c_inline" >&6; }
11731 case $ac_cv_c_inline in
11734 case $ac_cv_c_inline in
11736 *) ac_val=$ac_cv_c_inline;;
11738 cat >>confdefs.h <<_ACEOF
11739 #ifndef __cplusplus
11740 #define inline $ac_val
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11747 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11748 if test "${ac_cv_c_bigendian+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11751 ac_cv_c_bigendian=unknown
11752 # See if we're dealing with a universal compiler.
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755 #ifndef __APPLE_CC__
11756 not a universal capable compiler
11761 if ac_fn_c_try_compile "$LINENO"; then :
11763 # Check for potential -arch flags. It is not universal unless
11764 # there are at least two -arch flags with different values.
11767 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11768 if test -n "$ac_prev"; then
11770 i?86 | x86_64 | ppc | ppc64)
11771 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11774 ac_cv_c_bigendian=universal
11780 elif test "x$ac_word" = "x-arch"; then
11785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 if test $ac_cv_c_bigendian = unknown; then
11787 # See if sys/param.h defines the BYTE_ORDER macro.
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790 #include <sys/types.h>
11791 #include <sys/param.h>
11796 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11797 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11799 bogus endian macros
11806 if ac_fn_c_try_compile "$LINENO"; then :
11807 # It does; now see whether it defined to BIG_ENDIAN or not.
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11810 #include <sys/types.h>
11811 #include <sys/param.h>
11816 #if BYTE_ORDER != BIG_ENDIAN
11824 if ac_fn_c_try_compile "$LINENO"; then :
11825 ac_cv_c_bigendian=yes
11827 ac_cv_c_bigendian=no
11829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833 if test $ac_cv_c_bigendian = unknown; then
11834 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837 #include <limits.h>
11842 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11843 bogus endian macros
11850 if ac_fn_c_try_compile "$LINENO"; then :
11851 # It does; now see whether it defined to _BIG_ENDIAN or not.
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #include <limits.h>
11859 #ifndef _BIG_ENDIAN
11867 if ac_fn_c_try_compile "$LINENO"; then :
11868 ac_cv_c_bigendian=yes
11870 ac_cv_c_bigendian=no
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 if test $ac_cv_c_bigendian = unknown; then
11877 # Compile a test program.
11878 if test "$cross_compiling" = yes; then :
11879 # Try to guess by grepping values from an object file.
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11882 short int ascii_mm[] =
11883 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11884 short int ascii_ii[] =
11885 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11886 int use_ascii (int i) {
11887 return ascii_mm[i] + ascii_ii[i];
11889 short int ebcdic_ii[] =
11890 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11891 short int ebcdic_mm[] =
11892 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11893 int use_ebcdic (int i) {
11894 return ebcdic_mm[i] + ebcdic_ii[i];
11901 return use_ascii (foo) == use_ebcdic (foo);
11906 if ac_fn_c_try_compile "$LINENO"; then :
11907 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11908 ac_cv_c_bigendian=yes
11910 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11911 if test "$ac_cv_c_bigendian" = unknown; then
11912 ac_cv_c_bigendian=no
11914 # finding both strings is unlikely to happen, but who knows?
11915 ac_cv_c_bigendian=unknown
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 $ac_includes_default
11928 /* Are we little or big endian? From Harbison&Steele. */
11932 char c[sizeof (long int)];
11935 return u.c[sizeof (long int) - 1] == 1;
11941 if ac_fn_c_try_run "$LINENO"; then :
11942 ac_cv_c_bigendian=no
11944 ac_cv_c_bigendian=yes
11946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11947 conftest.$ac_objext conftest.beam conftest.$ac_ext
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11953 $as_echo "$ac_cv_c_bigendian" >&6; }
11954 case $ac_cv_c_bigendian in #(
11956 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11962 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11966 as_fn_error "unknown endianness
11967 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11971 # ------------------------------ #
11972 # Checks for library functions. #
11973 # ------------------------------ #
11975 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11976 # for constant arguments. Useless!
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11978 $as_echo_n "checking for working alloca.h... " >&6; }
11979 if test "${ac_cv_working_alloca_h+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984 #include <alloca.h>
11988 char *p = (char *) alloca (2 * sizeof (int));
11994 if ac_fn_c_try_link "$LINENO"; then :
11995 ac_cv_working_alloca_h=yes
11997 ac_cv_working_alloca_h=no
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12003 $as_echo "$ac_cv_working_alloca_h" >&6; }
12004 if test $ac_cv_working_alloca_h = yes; then
12006 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12011 $as_echo_n "checking for alloca... " >&6; }
12012 if test "${ac_cv_func_alloca_works+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 # define alloca __builtin_alloca
12021 # include <malloc.h>
12022 # define alloca _alloca
12024 # ifdef HAVE_ALLOCA_H
12025 # include <alloca.h>
12030 # ifndef alloca /* predefined by HP cc +Olibcalls */
12041 char *p = (char *) alloca (1);
12047 if ac_fn_c_try_link "$LINENO"; then :
12048 ac_cv_func_alloca_works=yes
12050 ac_cv_func_alloca_works=no
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12056 $as_echo "$ac_cv_func_alloca_works" >&6; }
12058 if test $ac_cv_func_alloca_works = yes; then
12060 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12063 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12064 # that cause trouble. Some versions do not even contain alloca or
12065 # contain a buggy version. If you still want to use their alloca,
12066 # use ar to extract alloca.o from them instead of compiling alloca.c.
12068 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12070 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12074 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12075 if test "${ac_cv_os_cray+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #if defined CRAY && ! defined CRAY2
12087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12088 $EGREP "webecray" >/dev/null 2>&1; then :
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12097 $as_echo "$ac_cv_os_cray" >&6; }
12098 if test $ac_cv_os_cray = yes; then
12099 for ac_func in _getb67 GETB67 getb67; do
12100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12102 eval as_val=\$$as_ac_var
12103 if test "x$as_val" = x""yes; then :
12105 cat >>confdefs.h <<_ACEOF
12106 #define CRAY_STACKSEG_END $ac_func
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12116 $as_echo_n "checking stack direction for C alloca... " >&6; }
12117 if test "${ac_cv_c_stack_direction+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12120 if test "$cross_compiling" = yes; then :
12121 ac_cv_c_stack_direction=0
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 $ac_includes_default
12127 find_stack_direction ()
12129 static char *addr = 0;
12134 return find_stack_direction ();
12137 return (&dummy > addr) ? 1 : -1;
12143 return find_stack_direction () < 0;
12146 if ac_fn_c_try_run "$LINENO"; then :
12147 ac_cv_c_stack_direction=1
12149 ac_cv_c_stack_direction=-1
12151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12152 conftest.$ac_objext conftest.beam conftest.$ac_ext
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12157 $as_echo "$ac_cv_c_stack_direction" >&6; }
12158 cat >>confdefs.h <<_ACEOF
12159 #define STACK_DIRECTION $ac_cv_c_stack_direction
12165 for ac_header in stdlib.h unistd.h
12167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12168 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12169 eval as_val=\$$as_ac_Header
12170 if test "x$as_val" = x""yes; then :
12171 cat >>confdefs.h <<_ACEOF
12172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12179 for ac_func in getpagesize
12181 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12182 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12183 cat >>confdefs.h <<_ACEOF
12184 #define HAVE_GETPAGESIZE 1
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12191 $as_echo_n "checking for working mmap... " >&6; }
12192 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
12195 if test "$cross_compiling" = yes; then :
12196 ac_cv_func_mmap_fixed_mapped=no
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12200 $ac_includes_default
12201 /* malloc might have been renamed as rpl_malloc. */
12204 /* Thanks to Mike Haertel and Jim Avera for this test.
12205 Here is a matrix of mmap possibilities:
12206 mmap private not fixed
12207 mmap private fixed at somewhere currently unmapped
12208 mmap private fixed at somewhere already mapped
12209 mmap shared not fixed
12210 mmap shared fixed at somewhere currently unmapped
12211 mmap shared fixed at somewhere already mapped
12212 For private mappings, we should verify that changes cannot be read()
12213 back from the file, nor mmap's back from the file at a different
12214 address. (There have been systems where private was not correctly
12215 implemented like the infamous i386 svr4.0, and systems where the
12216 VM page cache was not coherent with the file system buffer cache
12217 like early versions of FreeBSD and possibly contemporary NetBSD.)
12218 For shared mappings, we should conversely verify that changes get
12219 propagated back to all the places they're supposed to be.
12221 Grep wants private fixed already mapped.
12222 The main things grep needs to know about mmap are:
12223 * does it exist and is it safe to write into the mmap'd area
12224 * how to use it (BSD variants) */
12227 #include <sys/mman.h>
12229 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12233 /* This mess was copied from the GNU getpagesize.h. */
12234 #ifndef HAVE_GETPAGESIZE
12235 /* Assume that all systems that can run configure have sys/param.h. */
12236 # ifndef HAVE_SYS_PARAM_H
12237 # define HAVE_SYS_PARAM_H 1
12240 # ifdef _SC_PAGESIZE
12241 # define getpagesize() sysconf(_SC_PAGESIZE)
12242 # else /* no _SC_PAGESIZE */
12243 # ifdef HAVE_SYS_PARAM_H
12244 # include <sys/param.h>
12245 # ifdef EXEC_PAGESIZE
12246 # define getpagesize() EXEC_PAGESIZE
12247 # else /* no EXEC_PAGESIZE */
12249 # define getpagesize() NBPG * CLSIZE
12252 # endif /* no CLSIZE */
12253 # else /* no NBPG */
12255 # define getpagesize() NBPC
12256 # else /* no NBPC */
12258 # define getpagesize() PAGESIZE
12259 # endif /* PAGESIZE */
12260 # endif /* no NBPC */
12261 # endif /* no NBPG */
12262 # endif /* no EXEC_PAGESIZE */
12263 # else /* no HAVE_SYS_PARAM_H */
12264 # define getpagesize() 8192 /* punt totally */
12265 # endif /* no HAVE_SYS_PARAM_H */
12266 # endif /* no _SC_PAGESIZE */
12268 #endif /* no HAVE_GETPAGESIZE */
12273 char *data, *data2, *data3;
12277 pagesize = getpagesize ();
12279 /* First, make a file with some known garbage in it. */
12280 data = (char *) malloc (pagesize);
12283 for (i = 0; i < pagesize; ++i)
12284 *(data + i) = rand ();
12286 fd = creat ("conftest.mmap", 0600);
12289 if (write (fd, data, pagesize) != pagesize)
12293 /* Next, try to mmap the file at a fixed address which already has
12294 something else allocated at it. If we can, also make sure that
12295 we see the same garbage. */
12296 fd = open ("conftest.mmap", O_RDWR);
12299 data2 = (char *) malloc (2 * pagesize);
12302 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12303 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12304 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12306 for (i = 0; i < pagesize; ++i)
12307 if (*(data + i) != *(data2 + i))
12310 /* Finally, make sure that changes to the mapped area do not
12311 percolate back to the file as seen by read(). (This is a bug on
12312 some variants of i386 svr4.0.) */
12313 for (i = 0; i < pagesize; ++i)
12314 *(data2 + i) = *(data2 + i) + 1;
12315 data3 = (char *) malloc (pagesize);
12318 if (read (fd, data3, pagesize) != pagesize)
12320 for (i = 0; i < pagesize; ++i)
12321 if (*(data + i) != *(data3 + i))
12327 if ac_fn_c_try_run "$LINENO"; then :
12328 ac_cv_func_mmap_fixed_mapped=yes
12330 ac_cv_func_mmap_fixed_mapped=no
12332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12333 conftest.$ac_objext conftest.beam conftest.$ac_ext
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12338 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12339 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12341 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12344 rm -f conftest.mmap
12346 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12347 if test "x$ac_cv_type_pid_t" = x""yes; then :
12351 cat >>confdefs.h <<_ACEOF
12357 for ac_header in vfork.h
12359 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12360 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12361 cat >>confdefs.h <<_ACEOF
12362 #define HAVE_VFORK_H 1
12369 for ac_func in fork vfork
12371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12373 eval as_val=\$$as_ac_var
12374 if test "x$as_val" = x""yes; then :
12375 cat >>confdefs.h <<_ACEOF
12376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12382 if test "x$ac_cv_func_fork" = xyes; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12384 $as_echo_n "checking for working fork... " >&6; }
12385 if test "${ac_cv_func_fork_works+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12388 if test "$cross_compiling" = yes; then :
12389 ac_cv_func_fork_works=cross
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393 $ac_includes_default
12398 /* By Ruediger Kuhlmann. */
12399 return fork () < 0;
12405 if ac_fn_c_try_run "$LINENO"; then :
12406 ac_cv_func_fork_works=yes
12408 ac_cv_func_fork_works=no
12410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12411 conftest.$ac_objext conftest.beam conftest.$ac_ext
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12416 $as_echo "$ac_cv_func_fork_works" >&6; }
12419 ac_cv_func_fork_works=$ac_cv_func_fork
12421 if test "x$ac_cv_func_fork_works" = xcross; then
12423 *-*-amigaos* | *-*-msdosdjgpp*)
12424 # Override, as these systems have only a dummy fork() stub
12425 ac_cv_func_fork_works=no
12428 ac_cv_func_fork_works=yes
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12432 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12434 ac_cv_func_vfork_works=$ac_cv_func_vfork
12435 if test "x$ac_cv_func_vfork" = xyes; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12437 $as_echo_n "checking for working vfork... " >&6; }
12438 if test "${ac_cv_func_vfork_works+set}" = set; then :
12439 $as_echo_n "(cached) " >&6
12441 if test "$cross_compiling" = yes; then :
12442 ac_cv_func_vfork_works=cross
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446 /* Thanks to Paul Eggert for this test. */
12447 $ac_includes_default
12448 #include <sys/wait.h>
12449 #ifdef HAVE_VFORK_H
12450 # include <vfork.h>
12452 /* On some sparc systems, changes by the child to local and incoming
12453 argument registers are propagated back to the parent. The compiler
12454 is told about this with #include <vfork.h>, but some compilers
12455 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12456 static variable whose address is put into a register that is
12457 clobbered by the vfork. */
12460 sparc_address_test (int arg)
12462 sparc_address_test (arg) int arg;
12465 static pid_t child;
12483 pid_t parent = getpid ();
12486 sparc_address_test (0);
12491 /* Here is another test for sparc vfork register problems. This
12492 test uses lots of local variables, at least as many local
12493 variables as main has allocated so far including compiler
12494 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12495 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12496 reuse the register of parent for one of the local variables,
12497 since it will think that parent can't possibly be used any more
12498 in this routine. Assigning to the local variable will thus
12499 munge parent in the parent process. */
12501 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12502 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12503 /* Convince the compiler that p..p7 are live; otherwise, it might
12504 use the same hardware register for all 8 local variables. */
12505 if (p != p1 || p != p2 || p != p3 || p != p4
12506 || p != p5 || p != p6 || p != p7)
12509 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12510 from child file descriptors. If the child closes a descriptor
12511 before it execs or exits, this munges the parent's descriptor
12512 as well. Test for this by closing stdout in the child. */
12513 _exit(close(fileno(stdout)) != 0);
12518 while (wait(&status) != child)
12521 /* Was there some problem with vforking? */
12524 /* Did the child fail? (This shouldn't happen.) */
12527 /* Did the vfork/compiler bug occur? */
12528 || parent != getpid()
12530 /* Did the file descriptor bug occur? */
12531 || fstat(fileno(stdout), &st) != 0
12536 if ac_fn_c_try_run "$LINENO"; then :
12537 ac_cv_func_vfork_works=yes
12539 ac_cv_func_vfork_works=no
12541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12542 conftest.$ac_objext conftest.beam conftest.$ac_ext
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12547 $as_echo "$ac_cv_func_vfork_works" >&6; }
12550 if test "x$ac_cv_func_fork_works" = xcross; then
12551 ac_cv_func_vfork_works=$ac_cv_func_vfork
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12553 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12556 if test "x$ac_cv_func_vfork_works" = xyes; then
12558 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12562 $as_echo "#define vfork fork" >>confdefs.h
12565 if test "x$ac_cv_func_fork_works" = xyes; then
12567 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12571 for ac_func in canonicalize_file_name realpath getrusage getuid \
12572 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12573 sigaction sigprocmask sigsetmask socketpair syscall \
12574 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12575 setrlimit getrlimit posix_madvise waitpid
12577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12579 eval as_val=\$$as_ac_var
12580 if test "x$as_val" = x""yes; then :
12581 cat >>confdefs.h <<_ACEOF
12582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12590 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12591 if test "${am_cv_langinfo_codeset+set}" = set; then :
12592 $as_echo_n "(cached) " >&6
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 #include <langinfo.h>
12600 char* cs = nl_langinfo(CODESET);
12605 if ac_fn_c_try_link "$LINENO"; then :
12606 am_cv_langinfo_codeset=yes
12608 am_cv_langinfo_codeset=no
12610 rm -f core conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12615 $as_echo "$am_cv_langinfo_codeset" >&6; }
12616 if test $am_cv_langinfo_codeset = yes; then
12618 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12623 # Check the return and argument types of ptrace. No canned test for
12624 # this, so roll our own.
12625 gdb_ptrace_headers='
12626 #if HAVE_SYS_TYPES_H
12627 # include <sys/types.h>
12629 #if HAVE_SYS_PTRACE_H
12630 # include <sys/ptrace.h>
12633 # include <unistd.h>
12636 # There is no point in checking if we don't have a prototype.
12637 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12639 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12645 cat >>confdefs.h <<_ACEOF
12646 #define HAVE_DECL_PTRACE $ac_have_decl
12648 if test $ac_have_decl = 1; then :
12652 : ${gdb_cv_func_ptrace_ret='int'}
12653 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12657 # Check return type. Varargs (used on GNU/Linux) conflict with the
12658 # empty argument list, so check for that explicitly.
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12660 $as_echo_n "checking return type of ptrace... " >&6; }
12661 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12666 $gdb_ptrace_headers
12670 extern long ptrace (enum __ptrace_request, ...);
12675 if ac_fn_c_try_compile "$LINENO"; then :
12676 gdb_cv_func_ptrace_ret='long'
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680 $gdb_ptrace_headers
12684 extern int ptrace ();
12689 if ac_fn_c_try_compile "$LINENO"; then :
12690 gdb_cv_func_ptrace_ret='int'
12692 gdb_cv_func_ptrace_ret='long'
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12699 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12701 cat >>confdefs.h <<_ACEOF
12702 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12705 # Check argument types.
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12707 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12708 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 $gdb_ptrace_headers
12718 extern long ptrace (enum __ptrace_request, ...);
12723 if ac_fn_c_try_compile "$LINENO"; then :
12724 gdb_cv_func_ptrace_args='int,int,long,long'
12727 for gdb_arg1 in 'int' 'long'; do
12728 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12729 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12730 for gdb_arg4 in 'int' 'long'; do
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 $gdb_ptrace_headers
12738 extern $gdb_cv_func_ptrace_ret
12739 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12745 if ac_fn_c_try_compile "$LINENO"; then :
12746 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 for gdb_arg5 in 'int *' 'int' 'long'; do
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753 $gdb_ptrace_headers
12758 extern $gdb_cv_func_ptrace_ret
12759 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12765 if ac_fn_c_try_compile "$LINENO"; then :
12767 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12776 # Provide a safe default value.
12777 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12783 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12784 ac_save_IFS=$IFS; IFS=','
12785 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12789 cat >>confdefs.h <<_ACEOF
12790 #define PTRACE_TYPE_ARG3 $3
12793 if test -n "$5"; then
12795 cat >>confdefs.h <<_ACEOF
12796 #define PTRACE_TYPE_ARG5 $5
12801 if test "$cross_compiling" = no; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12803 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12804 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12807 if test "$cross_compiling" = yes; then :
12808 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12812 $ac_includes_default
12816 /* If this system has a BSD-style setpgrp which takes arguments,
12817 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12818 exit successfully. */
12819 return setpgrp (1,1) != -1;
12824 if ac_fn_c_try_run "$LINENO"; then :
12825 ac_cv_func_setpgrp_void=no
12827 ac_cv_func_setpgrp_void=yes
12829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12830 conftest.$ac_objext conftest.beam conftest.$ac_ext
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12835 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12836 if test $ac_cv_func_setpgrp_void = yes; then
12838 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12844 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12845 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12851 #include <unistd.h>
12857 if (setpgrp(1,1) == -1)
12866 if ac_fn_c_try_compile "$LINENO"; then :
12867 ac_cv_func_setpgrp_void=no
12869 ac_cv_func_setpgrp_void=yes
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12874 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12875 if test $ac_cv_func_setpgrp_void = yes; then
12876 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12881 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12882 # since sigsetjmp might only be defined as a macro.
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12884 $as_echo_n "checking for sigsetjmp... " >&6; }
12885 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12886 $as_echo_n "(cached) " >&6
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12891 #include <setjmp.h>
12896 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12901 if ac_fn_c_try_compile "$LINENO"; then :
12902 gdb_cv_func_sigsetjmp=yes
12904 gdb_cv_func_sigsetjmp=no
12906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12909 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12910 if test $gdb_cv_func_sigsetjmp = yes; then
12912 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12916 # Assume we'll default to using the included libiberty regex.
12917 gdb_use_included_regex=yes
12919 # However, if the system regex is GNU regex, then default to *not*
12920 # using the included regex.
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12922 $as_echo_n "checking for GNU regex... " >&6; }
12923 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12928 #include <gnu-versions.h>
12932 #define REGEX_INTERFACE_VERSION 1
12933 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12934 # error "Version mismatch"
12940 if ac_fn_c_try_compile "$LINENO"; then :
12941 gdb_cv_have_gnu_regex=yes
12943 gdb_cv_have_gnu_regex=no
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12948 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12949 if test $gdb_cv_have_gnu_regex = yes; then
12950 gdb_use_included_regex=no
12954 # Check whether --with-included-regex was given.
12955 if test "${with_included_regex+set}" = set; then :
12956 withval=$with_included_regex; gdb_with_regex=$withval
12958 gdb_with_regex=$gdb_use_included_regex
12961 if test "$gdb_with_regex" = yes; then
12963 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12967 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12968 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12969 #include <sys/proc.h>
12972 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12974 cat >>confdefs.h <<_ACEOF
12975 #define HAVE_STRUCT_THREAD_TD_PCB 1
12982 # See if <sys/lwp.h> defines `struct lwp`.
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12984 $as_echo_n "checking for struct lwp... " >&6; }
12985 if test "${gdb_cv_struct_lwp+set}" = set; then :
12986 $as_echo_n "(cached) " >&6
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h. */
12990 #include <sys/param.h>
12991 #include <sys/lwp.h>
13000 if ac_fn_c_try_compile "$LINENO"; then :
13001 gdb_cv_struct_lwp=yes
13003 gdb_cv_struct_lwp=no
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13008 $as_echo "$gdb_cv_struct_lwp" >&6; }
13009 if test $gdb_cv_struct_lwp = yes; then
13011 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13015 # See if <machine/reg.h> degines `struct reg'.
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13017 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13018 if test "${gdb_cv_struct_reg+set}" = set; then :
13019 $as_echo_n "(cached) " >&6
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023 #include <sys/types.h>
13024 #include <machine/reg.h>
13033 if ac_fn_c_try_compile "$LINENO"; then :
13034 gdb_cv_struct_reg=yes
13036 gdb_cv_struct_reg=no
13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13041 $as_echo "$gdb_cv_struct_reg" >&6; }
13042 if test $gdb_cv_struct_reg = yes; then
13044 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13048 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13049 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13050 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13052 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13054 cat >>confdefs.h <<_ACEOF
13055 #define HAVE_STRUCT_REG_R_FS 1
13060 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13062 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13064 cat >>confdefs.h <<_ACEOF
13065 #define HAVE_STRUCT_REG_R_GS 1
13072 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13074 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13075 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13076 $as_echo_n "(cached) " >&6
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13080 #include <sys/ptrace.h>
13089 if ac_fn_c_try_compile "$LINENO"; then :
13090 gdb_cv_have_ptrace_getregs=yes
13092 gdb_cv_have_ptrace_getregs=no
13094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13098 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13099 if test $gdb_cv_have_ptrace_getregs = yes; then
13101 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13105 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13107 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13108 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13109 $as_echo_n "(cached) " >&6
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113 #include <sys/ptrace.h>
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 gdb_cv_have_ptrace_getfpxregs=yes
13125 gdb_cv_have_ptrace_getfpxregs=no
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13131 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13132 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13134 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13138 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13140 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13141 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146 #include <sys/types.h>
13147 #include <sys/ptrace.h>
13156 if ac_fn_c_try_compile "$LINENO"; then :
13157 gdb_cv_have_pt_getdbregs=yes
13159 gdb_cv_have_pt_getdbregs=no
13161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13165 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13166 if test $gdb_cv_have_pt_getdbregs = yes; then
13168 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13172 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13174 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13175 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180 #include <sys/types.h>
13181 #include <sys/ptrace.h>
13190 if ac_fn_c_try_compile "$LINENO"; then :
13191 gdb_cv_have_pt_getxmmregs=yes
13193 gdb_cv_have_pt_getxmmregs=no
13195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13199 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13200 if test $gdb_cv_have_pt_getxmmregs = yes; then
13202 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13206 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13208 if test "${target}" = "${host}"; then
13210 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13212 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13215 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13217 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13221 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13223 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13229 if test "$ac_cv_header_sys_procfs_h" = yes; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13231 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13232 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13239 /* Needed for new procfs interface on sparc-solaris. */
13240 #define _STRUCTURED_PROC 1
13241 #include <sys/procfs.h>
13250 if ac_fn_c_try_compile "$LINENO"; then :
13251 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13253 bfd_cv_have_sys_procfs_type_pstatus_t=no
13256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13261 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13265 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13268 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13269 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13276 /* Needed for new procfs interface on sparc-solaris. */
13277 #define _STRUCTURED_PROC 1
13278 #include <sys/procfs.h>
13287 if ac_fn_c_try_compile "$LINENO"; then :
13288 bfd_cv_have_sys_procfs_type_prrun_t=yes
13290 bfd_cv_have_sys_procfs_type_prrun_t=no
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13298 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13302 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13305 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13306 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13313 /* Needed for new procfs interface on sparc-solaris. */
13314 #define _STRUCTURED_PROC 1
13315 #include <sys/procfs.h>
13324 if ac_fn_c_try_compile "$LINENO"; then :
13325 bfd_cv_have_sys_procfs_type_gregset_t=yes
13327 bfd_cv_have_sys_procfs_type_gregset_t=no
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13333 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13335 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13339 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13342 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13343 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13344 $as_echo_n "(cached) " >&6
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13350 /* Needed for new procfs interface on sparc-solaris. */
13351 #define _STRUCTURED_PROC 1
13352 #include <sys/procfs.h>
13361 if ac_fn_c_try_compile "$LINENO"; then :
13362 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13364 bfd_cv_have_sys_procfs_type_fpregset_t=no
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13372 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13376 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13379 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13380 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13381 $as_echo_n "(cached) " >&6
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13387 /* Needed for new procfs interface on sparc-solaris. */
13388 #define _STRUCTURED_PROC 1
13389 #include <sys/procfs.h>
13398 if ac_fn_c_try_compile "$LINENO"; then :
13399 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13401 bfd_cv_have_sys_procfs_type_prgregset_t=no
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13409 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13413 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13416 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13417 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13418 $as_echo_n "(cached) " >&6
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13424 /* Needed for new procfs interface on sparc-solaris. */
13425 #define _STRUCTURED_PROC 1
13426 #include <sys/procfs.h>
13435 if ac_fn_c_try_compile "$LINENO"; then :
13436 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13438 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13444 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13446 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13450 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13453 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13454 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13461 /* Needed for new procfs interface on sparc-solaris. */
13462 #define _STRUCTURED_PROC 1
13463 #include <sys/procfs.h>
13472 if ac_fn_c_try_compile "$LINENO"; then :
13473 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13475 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13483 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13487 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13490 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13491 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13492 $as_echo_n "(cached) " >&6
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13498 /* Needed for new procfs interface on sparc-solaris. */
13499 #define _STRUCTURED_PROC 1
13500 #include <sys/procfs.h>
13504 prfpregset32_t avar
13509 if ac_fn_c_try_compile "$LINENO"; then :
13510 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13512 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13520 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13524 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13527 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13528 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13529 $as_echo_n "(cached) " >&6
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13535 /* Needed for new procfs interface on sparc-solaris. */
13536 #define _STRUCTURED_PROC 1
13537 #include <sys/procfs.h>
13546 if ac_fn_c_try_compile "$LINENO"; then :
13547 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13549 bfd_cv_have_sys_procfs_type_lwpid_t=no
13552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13557 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13561 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13564 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13565 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13572 /* Needed for new procfs interface on sparc-solaris. */
13573 #define _STRUCTURED_PROC 1
13574 #include <sys/procfs.h>
13583 if ac_fn_c_try_compile "$LINENO"; then :
13584 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13586 bfd_cv_have_sys_procfs_type_psaddr_t=no
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13594 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13598 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13601 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13602 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13603 $as_echo_n "(cached) " >&6
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13609 /* Needed for new procfs interface on sparc-solaris. */
13610 #define _STRUCTURED_PROC 1
13611 #include <sys/procfs.h>
13620 if ac_fn_c_try_compile "$LINENO"; then :
13621 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13623 bfd_cv_have_sys_procfs_type_prsysent_t=no
13626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13631 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13635 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13638 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13639 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13640 $as_echo_n "(cached) " >&6
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13646 /* Needed for new procfs interface on sparc-solaris. */
13647 #define _STRUCTURED_PROC 1
13648 #include <sys/procfs.h>
13657 if ac_fn_c_try_compile "$LINENO"; then :
13658 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13660 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13668 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13672 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13675 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13676 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13677 $as_echo_n "(cached) " >&6
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13683 /* Needed for new procfs interface on sparc-solaris. */
13684 #define _STRUCTURED_PROC 1
13685 #include <sys/procfs.h>
13689 pr_sigaction64_t avar
13694 if ac_fn_c_try_compile "$LINENO"; then :
13695 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13697 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13703 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13705 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13709 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13712 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13713 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13720 /* Needed for new procfs interface on sparc-solaris. */
13721 #define _STRUCTURED_PROC 1
13722 #include <sys/procfs.h>
13726 pr_siginfo64_t avar
13731 if ac_fn_c_try_compile "$LINENO"; then :
13732 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13734 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13742 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13746 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13752 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13754 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13755 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13756 $as_echo_n "(cached) " >&6
13758 if test "$cross_compiling" = yes; then :
13759 gdb_cv_prfpregset_t_broken=yes
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763 #include <sys/procfs.h>
13766 if (sizeof (prfpregset_t) == sizeof (void *))
13771 if ac_fn_c_try_run "$LINENO"; then :
13772 gdb_cv_prfpregset_t_broken=no
13774 gdb_cv_prfpregset_t_broken=yes
13776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13777 conftest.$ac_objext conftest.beam conftest.$ac_ext
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13783 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13784 if test $gdb_cv_prfpregset_t_broken = yes; then
13786 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13793 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13794 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 #include <unistd.h>
13800 #include <sys/types.h>
13801 #include <sys/procfs.h>
13808 dummy = ioctl(0, PIOCSET, &dummy);
13814 if ac_fn_c_try_compile "$LINENO"; then :
13815 gdb_cv_have_procfs_piocset=yes
13817 gdb_cv_have_procfs_piocset=no
13819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13823 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13824 if test $gdb_cv_have_procfs_piocset = yes; then
13826 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13831 if test ${host} = ${target} ; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13834 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13835 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13836 $as_echo_n "(cached) " >&6
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13844 struct link_map lm; (void) lm.l_addr;
13849 if ac_fn_c_try_compile "$LINENO"; then :
13850 gdb_cv_have_struct_link_map_with_l_members=yes
13852 gdb_cv_have_struct_link_map_with_l_members=no
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13858 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13859 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13861 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13867 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13868 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13869 $as_echo_n "(cached) " >&6
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 #include <sys/types.h>
13878 struct link_map lm; (void) lm.lm_addr;
13883 if ac_fn_c_try_compile "$LINENO"; then :
13884 gdb_cv_have_struct_link_map_with_lm_members=yes
13886 gdb_cv_have_struct_link_map_with_lm_members=no
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13892 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13893 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13895 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13901 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13902 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13903 $as_echo_n "(cached) " >&6
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 #include <sys/types.h>
13908 #ifdef HAVE_NLIST_H
13915 struct so_map lm; (void) lm.som_addr;
13920 if ac_fn_c_try_compile "$LINENO"; then :
13921 gdb_cv_have_struct_so_map_with_som_members=yes
13923 gdb_cv_have_struct_so_map_with_som_members=no
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13929 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13930 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13932 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13938 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13939 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13940 $as_echo_n "(cached) " >&6
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13945 #include <sys/link.h>
13949 struct link_map32 l;
13954 if ac_fn_c_try_compile "$LINENO"; then :
13955 gdb_cv_have_struct_link_map32=yes
13957 gdb_cv_have_struct_link_map32=no
13959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13963 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13964 if test $gdb_cv_have_struct_link_map32 = yes; then
13966 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13969 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13974 # Check if the compiler supports the `long long' type.
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13977 $as_echo_n "checking for long long support in compiler... " >&6; }
13978 if test "${gdb_cv_c_long_long+set}" = set; then :
13979 $as_echo_n "(cached) " >&6
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13983 extern long long foo;
13987 switch (foo & 2) { case 0: return 1; }
13992 if ac_fn_c_try_compile "$LINENO"; then :
13993 gdb_cv_c_long_long=yes
13995 gdb_cv_c_long_long=no
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14000 $as_echo "$gdb_cv_c_long_long" >&6; }
14001 if test $gdb_cv_c_long_long = yes; then
14003 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14007 # Check if the compiler and runtime support printing long longs.
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14010 $as_echo_n "checking for long long support in printf... " >&6; }
14011 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14012 $as_echo_n "(cached) " >&6
14014 if test "$cross_compiling" = yes; then :
14015 gdb_cv_printf_has_long_long=no
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14019 $ac_includes_default
14025 l = (l << 16) + 0x0123;
14026 l = (l << 16) + 0x4567;
14027 l = (l << 16) + 0x89ab;
14028 l = (l << 16) + 0xcdef;
14029 sprintf (buf, "0x%016llx", l);
14030 return (strcmp ("0x0123456789abcdef", buf));
14035 if ac_fn_c_try_run "$LINENO"; then :
14036 gdb_cv_printf_has_long_long=yes
14038 gdb_cv_printf_has_long_long=no
14040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14041 conftest.$ac_objext conftest.beam conftest.$ac_ext
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14046 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14047 if test $gdb_cv_printf_has_long_long = yes; then
14049 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14053 # Check if the compiler and runtime support printing decfloats.
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14056 $as_echo_n "checking for decfloat support in printf... " >&6; }
14057 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14060 if test "$cross_compiling" = yes; then :
14061 gdb_cv_printf_has_decfloat=no
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 $ac_includes_default
14070 _Decimal32 d32 = 1.2345df;
14071 _Decimal64 d64 = 1.2345dd;
14072 _Decimal128 d128 = 1.2345dl;
14073 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14074 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14079 if ac_fn_c_try_run "$LINENO"; then :
14080 gdb_cv_printf_has_decfloat=yes
14082 gdb_cv_printf_has_decfloat=no
14084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14085 conftest.$ac_objext conftest.beam conftest.$ac_ext
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14090 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14091 if test $gdb_cv_printf_has_decfloat = yes; then
14093 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14097 # Check if the compiler supports the `long double' type. We can't use
14098 # AC_C_LONG_DOUBLE because that one does additional checks on the
14099 # constants defined in <float.h> that fail on some systems,
14100 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14103 $as_echo_n "checking for long double support in compiler... " >&6; }
14104 if test "${gdb_cv_c_long_double+set}" = set; then :
14105 $as_echo_n "(cached) " >&6
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112 gdb_cv_c_long_double=yes
14114 gdb_cv_c_long_double=no
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14119 $as_echo "$gdb_cv_c_long_double" >&6; }
14120 if test $gdb_cv_c_long_double = yes; then
14122 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14126 # Check if the compiler and runtime support printing long doubles.
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14129 $as_echo_n "checking for long double support in printf... " >&6; }
14130 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14131 $as_echo_n "(cached) " >&6
14133 if test "$cross_compiling" = yes; then :
14134 gdb_cv_printf_has_long_double=no
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14138 $ac_includes_default
14143 long double f = 3.141592653;
14144 sprintf (buf, "%Lg", f);
14145 return (strncmp ("3.14159", buf, 7));
14150 if ac_fn_c_try_run "$LINENO"; then :
14151 gdb_cv_printf_has_long_double=yes
14153 gdb_cv_printf_has_long_double=no
14155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14156 conftest.$ac_objext conftest.beam conftest.$ac_ext
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14161 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14162 if test $gdb_cv_printf_has_long_double = yes; then
14164 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14168 # Check if the compiler and runtime support scanning long doubles.
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14171 $as_echo_n "checking for long double support in scanf... " >&6; }
14172 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14175 if test "$cross_compiling" = yes; then :
14176 gdb_cv_scanf_has_long_double=no
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14184 char *buf = "3.141592653";
14186 sscanf (buf, "%Lg", &f);
14187 return !(f > 3.14159 && f < 3.14160);
14192 if ac_fn_c_try_run "$LINENO"; then :
14193 gdb_cv_scanf_has_long_double=yes
14195 gdb_cv_scanf_has_long_double=no
14197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14198 conftest.$ac_objext conftest.beam conftest.$ac_ext
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14203 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14204 if test $gdb_cv_scanf_has_long_double = yes; then
14206 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14213 $as_echo_n "checking for -bbigtoc option... " >&6; }
14214 if test "${gdb_cv_bigtoc+set}" = set; then :
14215 $as_echo_n "(cached) " >&6
14218 SAVE_LDFLAGS=$LDFLAGS
14221 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14222 *) gdb_cv_bigtoc=-bbigtoc ;;
14225 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14237 if ac_fn_c_try_link "$LINENO"; then :
14242 rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LDFLAGS="${SAVE_LDFLAGS}"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14248 $as_echo "$gdb_cv_bigtoc" >&6; }
14249 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14254 $as_echo_n "checking for the dynamic export flag... " >&6; }
14256 if test "${gdb_native}" = yes; then
14257 # The dynamically loaded libthread_db needs access to symbols in the gdb
14258 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14259 # may not be supported there.
14260 old_LDFLAGS="$LDFLAGS"
14261 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14262 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14263 LDFLAGS="$LDFLAGS $RDYNAMIC"
14264 if test "${have_libpython}" = no; then
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14276 if ac_fn_c_try_link "$LINENO"; then :
14279 rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
14282 # Workaround http://bugs.python.org/issue4434 where static
14283 # libpythonX.Y.a would get its symbols required for
14284 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14285 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14286 old_CFLAGS="$CFLAGS"
14287 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14288 if test "$cross_compiling" = yes; then :
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14293 #include "${have_libpython}/Python.h"
14299 err = PyRun_SimpleString ("import itertools\n");
14301 return err == 0 ? 0 : 1;
14306 if ac_fn_c_try_run "$LINENO"; then :
14309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14310 conftest.$ac_objext conftest.beam conftest.$ac_ext
14313 CFLAGS="$old_CFLAGS"
14315 LDFLAGS="$old_LDFLAGS"
14317 if $dynamic_list; then
14318 found="-Wl,--dynamic-list"
14319 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14322 RDYNAMIC="-rdynamic"
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14326 $as_echo "$found" >&6; }
14329 if test ${build} = ${host} -a ${host} = ${target} ; then
14332 # See if thread_db library is around for Solaris thread debugging.
14333 # Note that we must explicitly test for version 1 of the library
14334 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14337 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14338 if test -f /usr/lib/libthread_db.so.1 ; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340 $as_echo "yes" >&6; }
14342 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14344 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14345 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14347 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14351 ac_check_lib_save_LIBS=$LIBS
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14371 if ac_fn_c_try_link "$LINENO"; then :
14372 ac_cv_lib_dl_dlopen=yes
14374 ac_cv_lib_dl_dlopen=no
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 LIBS=$ac_check_lib_save_LIBS
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14381 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14382 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14383 cat >>confdefs.h <<_ACEOF
14384 #define HAVE_LIBDL 1
14391 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14392 # Sun randomly tweaked the prototypes in <proc_service.h>
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14395 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14396 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14397 $as_echo_n "(cached) " >&6
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14403 #include <proc_service.h>
14404 ps_err_e ps_pdwrite
14405 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14415 if ac_fn_c_try_compile "$LINENO"; then :
14416 gdb_cv_proc_service_is_old=no
14418 gdb_cv_proc_service_is_old=yes
14420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14425 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14426 if test $gdb_cv_proc_service_is_old = yes; then
14428 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433 $as_echo "no" >&6; }
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14438 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14439 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14440 $as_echo_n "(cached) " >&6
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 #include <sys/pthdebug.h>
14448 #ifndef PTHDB_VERSION_3
14455 if ac_fn_c_try_compile "$LINENO"; then :
14456 gdb_cv_have_aix_thread_debug=yes
14458 gdb_cv_have_aix_thread_debug=no
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14464 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14465 if test $gdb_cv_have_aix_thread_debug = yes; then
14466 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14467 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14468 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14475 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14477 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14478 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14479 $as_echo_n "(cached) " >&6
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 #include <thread_db.h>
14487 int i = TD_NOTALLOC;
14492 if ac_fn_c_try_compile "$LINENO"; then :
14493 gdb_cv_thread_db_h_has_td_notalloc=yes
14495 gdb_cv_thread_db_h_has_td_notalloc=no
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14502 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14504 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14505 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14506 $as_echo_n "(cached) " >&6
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 #include <thread_db.h>
14514 int i = TD_VERSION;
14519 if ac_fn_c_try_compile "$LINENO"; then :
14520 gdb_cv_thread_db_h_has_td_version=yes
14522 gdb_cv_thread_db_h_has_td_version=no
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14529 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14531 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14532 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14533 $as_echo_n "(cached) " >&6
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14537 #include <thread_db.h>
14546 if ac_fn_c_try_compile "$LINENO"; then :
14547 gdb_cv_thread_db_h_has_td_notls=yes
14549 gdb_cv_thread_db_h_has_td_notls=no
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14556 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14558 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14560 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14563 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14565 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14568 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14570 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14574 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14576 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14577 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14578 $as_echo_n "(cached) " >&6
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14582 #include <sys/syscall.h>
14586 int i = __NR_tkill;
14591 if ac_fn_c_try_compile "$LINENO"; then :
14592 gdb_cv_sys_syscall_h_has_tkill=yes
14594 gdb_cv_sys_syscall_h_has_tkill=no
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14601 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14603 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14605 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14609 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14611 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14617 cat >>confdefs.h <<_ACEOF
14618 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14622 if test "$cross_compiling" = yes; then :
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14625 #include <sys/personality.h>
14630 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14631 # define ADDR_NO_RANDOMIZE 0x0040000
14633 /* Test the flag could be set and stays set. */
14634 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14635 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14641 if ac_fn_c_try_link "$LINENO"; then :
14642 have_personality=true
14644 have_personality=false
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext conftest.$ac_ext
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14651 #include <sys/personality.h>
14656 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14657 # define ADDR_NO_RANDOMIZE 0x0040000
14659 /* Test the flag could be set and stays set. */
14660 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14661 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14667 if ac_fn_c_try_run "$LINENO"; then :
14668 have_personality=true
14670 have_personality=false
14672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14673 conftest.$ac_objext conftest.beam conftest.$ac_ext
14676 if $have_personality
14679 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14684 target_sysroot_reloc=0
14686 # Check whether --with-sysroot was given.
14687 if test "${with_sysroot+set}" = set; then :
14688 withval=$with_sysroot;
14689 case ${with_sysroot} in
14690 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14691 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14694 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14696 if test "x$prefix" = xNONE; then
14697 test_prefix=/usr/local
14699 test_prefix=$prefix
14701 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14702 test_exec_prefix=$test_prefix
14704 test_exec_prefix=$exec_prefix
14706 case ${TARGET_SYSTEM_ROOT} in
14707 "${test_prefix}"|"${test_prefix}/"*|\
14708 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14709 '${prefix}'|'${prefix}/'*|\
14710 '${exec_prefix}'|'${exec_prefix}/'*)
14711 target_sysroot_reloc=1
14717 TARGET_SYSTEM_ROOT=
14718 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14722 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14728 # Check whether --with-system-gdbinit was given.
14729 if test "${with_system_gdbinit+set}" = set; then :
14730 withval=$with_system_gdbinit;
14731 SYSTEM_GDBINIT=$withval
14737 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14738 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14739 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14740 ac_define_dir=`eval echo $ac_define_dir`
14742 cat >>confdefs.h <<_ACEOF
14743 #define SYSTEM_GDBINIT "$ac_define_dir"
14749 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14750 if test "x$prefix" = xNONE; then
14751 test_prefix=/usr/local
14753 test_prefix=$prefix
14756 test_prefix=$exec_prefix
14759 case ${ac_define_dir} in
14760 "${test_prefix}"|"${test_prefix}/"*|\
14761 '${exec_prefix}'|'${exec_prefix}/'*)
14766 cat >>confdefs.h <<_ACEOF
14767 #define SYSTEM_GDBINIT_RELOCATABLE $value
14773 # Check whether --enable-werror was given.
14774 if test "${enable_werror+set}" = set; then :
14775 enableval=$enable_werror; case "${enableval}" in
14776 yes | y) ERROR_ON_WARNING="yes" ;;
14777 no | n) ERROR_ON_WARNING="no" ;;
14778 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14783 # Enable -Werror by default when using gcc
14784 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14785 ERROR_ON_WARNING=yes
14789 if test "${ERROR_ON_WARNING}" = yes ; then
14790 WERROR_CFLAGS="-Werror"
14793 # The entries after -Wno-pointer-sign are disabled warnings which may
14794 # be enabled in the future, which can not currently be used to build
14796 # NOTE: If you change this list, remember to update
14797 # gdb/doc/gdbint.texinfo.
14798 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14799 -Wformat-nonliteral -Wno-pointer-sign \
14800 -Wno-unused -Wunused-value -Wunused-function \
14801 -Wno-switch -Wno-char-subscripts"
14803 # Enable -Wno-format by default when using gcc on mingw since many
14804 # GCC versions complain about %I64.
14806 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14809 # Check whether --enable-build-warnings was given.
14810 if test "${enable_build_warnings+set}" = set; then :
14811 enableval=$enable_build_warnings; case "${enableval}" in
14813 no) build_warnings="-w";;
14814 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14815 build_warnings="${build_warnings} ${t}";;
14816 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14817 build_warnings="${t} ${build_warnings}";;
14818 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14820 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14821 echo "Setting compiler warning flags = $build_warnings" 6>&1
14824 # Check whether --enable-gdb-build-warnings was given.
14825 if test "${enable_gdb_build_warnings+set}" = set; then :
14826 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14828 no) build_warnings="-w";;
14829 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14830 build_warnings="${build_warnings} ${t}";;
14831 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14832 build_warnings="${t} ${build_warnings}";;
14833 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14835 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14836 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14840 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14843 $as_echo_n "checking compiler warning flags... " >&6; }
14844 # Separate out the -Werror flag as some files just cannot be
14845 # compiled with it enabled.
14846 for w in ${build_warnings}; do
14848 -Werr*) WERROR_CFLAGS=-Werror ;;
14849 *) # Check that GCC accepts it
14850 saved_CFLAGS="$CFLAGS"
14851 CFLAGS="$CFLAGS $w"
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14863 if ac_fn_c_try_compile "$LINENO"; then :
14864 WARN_CFLAGS="${WARN_CFLAGS} $w"
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 CFLAGS="$saved_CFLAGS"
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14871 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14876 # In the Cygwin environment, we need some additional flags.
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14878 $as_echo_n "checking for cygwin... " >&6; }
14879 if test "${gdb_cv_os_cygwin+set}" = set; then :
14880 $as_echo_n "(cached) " >&6
14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h. */
14885 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14890 $EGREP "lose" >/dev/null 2>&1; then :
14891 gdb_cv_os_cygwin=yes
14893 gdb_cv_os_cygwin=no
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14899 $as_echo "$gdb_cv_os_cygwin" >&6; }
14902 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14904 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14905 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14906 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14910 # libreadline needs libuser32.a in a cygwin environment
14912 if test x$gdb_cv_os_cygwin = xyes; then
14913 WIN32LIBS="-luser32"
14914 case "${target}" in
14915 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14920 # The ser-tcp.c module requires sockets.
14924 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14926 WIN32LIBS="$WIN32LIBS -lws2_32"
14931 # Add ELF support to GDB, but only if BFD includes ELF support.
14933 OLD_LDFLAGS=$LDFLAGS
14935 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14936 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14937 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14938 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14939 if test "$plugins" = "yes"; then
14942 LIBS="-lbfd -liberty $intl $LIBS"
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14944 $as_echo_n "checking for ELF support in BFD... " >&6; }
14945 if test "${gdb_cv_var_elf+set}" = set; then :
14946 $as_echo_n "(cached) " >&6
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14950 #include <stdlib.h>
14952 #include "elf-bfd.h"
14957 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14962 if ac_fn_c_try_link "$LINENO"; then :
14967 rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext conftest.$ac_ext
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14971 $as_echo "$gdb_cv_var_elf" >&6; }
14972 if test $gdb_cv_var_elf = yes; then
14973 CONFIG_OBS="$CONFIG_OBS elfread.o"
14975 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14977 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14978 if test "$plugins" = "yes"; then
14979 OLD_LIBS="-ldl $OLD_LIBS"
14983 LDFLAGS=$OLD_LDFLAGS
14986 # Add any host-specific objects to GDB.
14987 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14989 LIBGUI="../libgui/src/libgui.a"
14990 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14999 *-*-cygwin* | *-*-mingw* )
15008 if test "${enable_gdbtk}" = "yes"; then
15010 # Gdbtk must have an absolute path to srcdir in order to run
15011 # properly when not installed.
15014 GDBTK_SRC_DIR=`pwd`
15019 # Ok, lets find the tcl configuration
15020 # First, look for one uninstalled.
15021 # the alternative search directory is invoked by --with-tcl
15024 if test x"${no_tcl}" = x ; then
15025 # we reset no_tcl in case something fails here
15028 # Check whether --with-tcl was given.
15029 if test "${with_tcl+set}" = set; then :
15030 withval=$with_tcl; with_tclconfig=${withval}
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15034 $as_echo_n "checking for Tcl configuration... " >&6; }
15035 if test "${ac_cv_c_tclconfig+set}" = set; then :
15036 $as_echo_n "(cached) " >&6
15040 # First check to see if --with-tcl was specified.
15042 *-*-cygwin*) platDir="win" ;;
15043 *) platDir="unix" ;;
15045 if test x"${with_tclconfig}" != x ; then
15046 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15047 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15049 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15053 # then check for a private Tcl installation
15054 if test x"${ac_cv_c_tclconfig}" = x ; then
15057 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15058 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15059 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15061 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15062 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15063 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15065 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15066 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15067 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15068 if test -f "$i/$platDir/tclConfig.sh" ; then
15069 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15075 # on Darwin, check in Framework installation locations
15076 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15077 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15078 `ls -d /Library/Frameworks 2>/dev/null` \
15079 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15080 `ls -d /System/Library/Frameworks 2>/dev/null` \
15082 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15083 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15089 # check in a few common install locations
15090 if test x"${ac_cv_c_tclconfig}" = x ; then
15091 for i in `ls -d ${libdir} 2>/dev/null` \
15092 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15093 `ls -d ${prefix}/lib 2>/dev/null` \
15094 `ls -d /usr/local/lib 2>/dev/null` \
15095 `ls -d /usr/contrib/lib 2>/dev/null` \
15096 `ls -d /usr/lib 2>/dev/null` \
15098 if test -f "$i/tclConfig.sh" ; then
15099 ac_cv_c_tclconfig=`(cd $i; pwd)`
15105 # check in a few other private locations
15106 if test x"${ac_cv_c_tclconfig}" = x ; then
15109 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15110 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15111 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15112 if test -f "$i/$platDir/tclConfig.sh" ; then
15113 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15122 if test x"${ac_cv_c_tclconfig}" = x ; then
15123 TCL_BIN_DIR="# no Tcl configs found"
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15125 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15128 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15130 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15135 # If $no_tk is nonempty, then we can't do Tk, and there is no
15136 # point to doing Tcl.
15139 # Ok, lets find the tk configuration
15140 # First, look for one uninstalled.
15141 # the alternative search directory is invoked by --with-tk
15144 if test x"${no_tk}" = x ; then
15145 # we reset no_tk in case something fails here
15148 # Check whether --with-tk was given.
15149 if test "${with_tk+set}" = set; then :
15150 withval=$with_tk; with_tkconfig=${withval}
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15154 $as_echo_n "checking for Tk configuration... " >&6; }
15155 if test "${ac_cv_c_tkconfig+set}" = set; then :
15156 $as_echo_n "(cached) " >&6
15160 # First check to see if --with-tkconfig was specified.
15161 if test x"${with_tkconfig}" != x ; then
15162 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15163 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15165 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15169 # then check for a private Tk library
15171 *-*-cygwin*) platDir="win" ;;
15172 *) platDir="unix" ;;
15174 if test x"${ac_cv_c_tkconfig}" = x ; then
15177 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15178 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15179 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15181 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15182 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15183 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15185 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15186 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15187 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15188 if test -f "$i/$platDir/tkConfig.sh" ; then
15189 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15195 # on Darwin, check in Framework installation locations
15196 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15197 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15198 `ls -d /Library/Frameworks 2>/dev/null` \
15199 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15200 `ls -d /System/Library/Frameworks 2>/dev/null` \
15202 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15203 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15209 # check in a few common install locations
15210 if test x"${ac_cv_c_tkconfig}" = x ; then
15211 for i in `ls -d ${libdir} 2>/dev/null` \
15212 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15213 `ls -d ${prefix}/lib 2>/dev/null` \
15214 `ls -d /usr/local/lib 2>/dev/null` \
15215 `ls -d /usr/contrib/lib 2>/dev/null` \
15216 `ls -d /usr/lib 2>/dev/null` \
15218 if test -f "$i/tkConfig.sh" ; then
15219 ac_cv_c_tkconfig=`(cd $i; pwd)`
15224 # check in a few other private locations
15225 if test x"${ac_cv_c_tkconfig}" = x ; then
15228 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15229 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15230 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15231 if test -f "$i/$platDir/tkConfig.sh" ; then
15232 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15241 if test x"${ac_cv_c_tkconfig}" = x ; then
15242 TK_BIN_DIR="# no Tk configs found"
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15244 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15247 TK_BIN_DIR=${ac_cv_c_tkconfig}
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15249 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15254 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15257 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15259 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15261 $as_echo "loading" >&6; }
15262 . ${TCL_BIN_DIR}/tclConfig.sh
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15265 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15268 # eval is required to do the TCL_DBGX substitution
15269 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15270 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15272 # If the TCL_BIN_DIR is the build directory (not the install directory),
15273 # then set the common variable name to the value of the build variables.
15274 # For example, the variable TCL_LIB_SPEC will be set to the value
15275 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15276 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15277 # installed and uninstalled version of Tcl.
15278 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15279 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15280 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15281 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15282 elif test "`uname -s`" = "Darwin"; then
15283 # If Tcl was built as a framework, attempt to use the libraries
15284 # from the framework at the given location so that linking works
15285 # against Tcl.framework installed in an arbitary location.
15286 case ${TCL_DEFS} in
15288 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15289 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15290 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15291 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15292 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15297 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15298 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15299 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15305 # eval is required to do the TCL_DBGX substitution
15306 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15307 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15308 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15309 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15325 # Check for in-tree tcl
15332 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15336 # Find Tcl private headers
15337 if test x"${intree}" = xno; then
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15340 $as_echo_n "checking for Tcl private headers... " >&6; }
15342 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15343 if test -f ${dir}/tclInt.h ; then
15347 if test x"${private_dir}" = x; then
15348 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15350 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15352 $as_echo "${private_dir}" >&6; }
15355 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15356 TCL_LIBRARY="${TCL_LIB_SPEC}"
15359 # If building tcl in the same src tree, private headers
15360 # are not needed, but we need to be sure to use the right
15362 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15363 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15364 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15372 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15374 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15376 $as_echo "loading" >&6; }
15377 . ${TK_BIN_DIR}/tkConfig.sh
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15380 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15383 # eval is required to do the TK_DBGX substitution
15384 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15385 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15387 # If the TK_BIN_DIR is the build directory (not the install directory),
15388 # then set the common variable name to the value of the build variables.
15389 # For example, the variable TK_LIB_SPEC will be set to the value
15390 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15391 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15392 # installed and uninstalled version of Tcl.
15393 if test -f "${TK_BIN_DIR}/Makefile" ; then
15394 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15395 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15396 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15397 elif test "`uname -s`" = "Darwin"; then
15398 # If Tk was built as a framework, attempt to use the libraries
15399 # from the framework at the given location so that linking works
15400 # against Tk.framework installed in an arbitary location.
15403 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15404 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15405 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15406 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15407 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15412 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15413 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15414 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15420 # eval is required to do the TK_DBGX substitution
15421 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15422 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15423 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15424 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15439 # Check for in-tree Tk
15441 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15445 # Find Tk private headers
15446 if test x"${intree}" = xno; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15449 $as_echo_n "checking for Tk private headers... " >&6; }
15451 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15452 if test -f ${dir}/tkInt.h; then
15456 if test x"${private_dir}" = x; then
15457 as_fn_error "could not find Tk private headers" "$LINENO" 5
15459 TK_PRIVATE_INCLUDE="-I${private_dir}"
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15461 $as_echo "${private_dir}" >&6; }
15464 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15465 TK_LIBRARY=${TK_LIB_SPEC}
15468 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15469 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15470 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15477 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15479 # Include some libraries that Tcl and Tk want.
15480 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15481 # Yes, the ordering seems wrong here. But it isn't.
15482 # TK_LIBS is the list of libraries that need to be linked
15483 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15484 # were in LIBS then any link tests after this point would
15485 # try to include things like `$(LIBGUI)', which wouldn't work.
15486 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15488 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15489 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15490 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15491 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15492 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15493 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15494 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15496 if test x$gdb_cv_os_cygwin = xyes; then
15497 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15498 WIN32LDAPP="-Wl,--subsystem,console"
15499 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15502 subdirs="$subdirs gdbtk"
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15515 $as_echo_n "checking for X... " >&6; }
15518 # Check whether --with-x was given.
15519 if test "${with_x+set}" = set; then :
15523 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15524 if test "x$with_x" = xno; then
15525 # The user explicitly disabled X.
15528 case $x_includes,$x_libraries in #(
15529 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15530 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15531 $as_echo_n "(cached) " >&6
15533 # One or both of the vars are not set, and there is no cached value.
15534 ac_x_includes=no ac_x_libraries=no
15535 rm -f -r conftest.dir
15536 if mkdir conftest.dir; then
15538 cat >Imakefile <<'_ACEOF'
15540 @echo incroot='${INCROOT}'
15542 @echo usrlibdir='${USRLIBDIR}'
15544 @echo libdir='${LIBDIR}'
15546 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15547 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15548 for ac_var in incroot usrlibdir libdir; do
15549 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15551 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15552 for ac_extension in a so sl dylib la dll; do
15553 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15554 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15555 ac_im_usrlibdir=$ac_im_libdir; break
15558 # Screen out bogus values from the imake configuration. They are
15559 # bogus both because they are the default anyway, and because
15560 # using them would break gcc on systems where it needs fixed includes.
15561 case $ac_im_incroot in
15562 /usr/include) ac_x_includes= ;;
15563 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15565 case $ac_im_usrlibdir in
15566 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15567 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15571 rm -f -r conftest.dir
15574 # Standard set of common directories for X headers.
15575 # Check X11 before X11Rn because it is often a symlink to the current release.
15589 /usr/local/X11/include
15590 /usr/local/X11R7/include
15591 /usr/local/X11R6/include
15592 /usr/local/X11R5/include
15593 /usr/local/X11R4/include
15595 /usr/local/include/X11
15596 /usr/local/include/X11R7
15597 /usr/local/include/X11R6
15598 /usr/local/include/X11R5
15599 /usr/local/include/X11R4
15603 /usr/XFree86/include/X11
15607 /usr/unsupported/include
15608 /usr/athena/include
15609 /usr/local/x11r5/include
15610 /usr/lpp/Xamples/include
15612 /usr/openwin/include
15613 /usr/openwin/share/include'
15615 if test "$ac_x_includes" = no; then
15616 # Guess where to find include files, by looking for Xlib.h.
15617 # First, try using that file with no special directory specified.
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15620 #include <X11/Xlib.h>
15622 if ac_fn_c_try_cpp "$LINENO"; then :
15623 # We can compile using X headers with no special include directory.
15626 for ac_dir in $ac_x_header_dirs; do
15627 if test -r "$ac_dir/X11/Xlib.h"; then
15628 ac_x_includes=$ac_dir
15633 rm -f conftest.err conftest.$ac_ext
15634 fi # $ac_x_includes = no
15636 if test "$ac_x_libraries" = no; then
15637 # Check for the libraries.
15638 # See if we find them without any special options.
15639 # Don't add to $LIBS permanently.
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 #include <X11/Xlib.h>
15653 if ac_fn_c_try_link "$LINENO"; then :
15655 # We can link X programs with no special library path.
15659 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15661 # Don't even attempt the hair of trying to link an X program!
15662 for ac_extension in a so sl dylib la dll; do
15663 if test -r "$ac_dir/libX11.$ac_extension"; then
15664 ac_x_libraries=$ac_dir
15670 rm -f core conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15672 fi # $ac_x_libraries = no
15674 case $ac_x_includes,$ac_x_libraries in #(
15675 no,* | *,no | *\'*)
15676 # Didn't find X, or a directory has "'" in its name.
15677 ac_cv_have_x="have_x=no";; #(
15679 # Record where we found X for the cache.
15680 ac_cv_have_x="have_x=yes\
15681 ac_x_includes='$ac_x_includes'\
15682 ac_x_libraries='$ac_x_libraries'"
15688 eval "$ac_cv_have_x"
15691 if test "$have_x" != yes; then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15693 $as_echo "$have_x" >&6; }
15696 # If each of the values was on the command line, it overrides each guess.
15697 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15698 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15699 # Update the cache value to reflect the command line values.
15700 ac_cv_have_x="have_x=yes\
15701 ac_x_includes='$x_includes'\
15702 ac_x_libraries='$x_libraries'"
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15704 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15708 # Unlike the sim directory, whether a simulator is linked is controlled by
15709 # presence of a gdb_sim definition in the target configure.tgt entry.
15710 # This code just checks for a few cases where we'd like to ignore those
15711 # definitions, even when they're present in the '.mt' file. These cases
15712 # are when --disable-sim is specified, or if the simulator directory is
15713 # not part of the source tree.
15715 # Check whether --enable-sim was given.
15716 if test "${enable_sim+set}" = set; then :
15717 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15718 echo "enableval = ${enableval}";
15719 case "${enableval}" in
15720 yes) ignore_sim=false ;;
15721 no) ignore_sim=true ;;
15722 *) ignore_sim=false ;;
15729 if test ! -d "${srcdir}/../sim"; then
15735 if test "${ignore_sim}" = "false"; then
15736 if test x"${gdb_sim}" != x ; then
15738 SIM_OBS="remote-sim.o"
15740 $as_echo "#define WITH_SIM 1" >>confdefs.h
15758 # List of host floatformats.
15760 cat >>confdefs.h <<_ACEOF
15761 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15765 cat >>confdefs.h <<_ACEOF
15766 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15770 cat >>confdefs.h <<_ACEOF
15771 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15775 # target_subdir is used by the testsuite to find the target libraries.
15777 if test "${host}" != "${target}"; then
15778 target_subdir="${target_alias}/"
15783 if test "${gdb_native}" = "yes"; then
15784 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15785 if test ! -f ${host_makefile_frag}; then
15786 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15788 frags="$frags $host_makefile_frag"
15790 host_makefile_frag=/dev/null
15796 if test "${gdb_native}" = "yes"; then
15797 # We pick this up from the host configuration file (.mh) because we
15798 # do not have a native configuration Makefile fragment.
15799 nativefile=`sed -n '
15800 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15801 ' ${host_makefile_frag}`
15805 if test x"${gdb_osabi}" != x ; then
15807 cat >>confdefs.h <<_ACEOF
15808 #define GDB_OSABI_DEFAULT $gdb_osabi
15813 # Enable multi-ice-gdb-server.
15814 # Check whether --enable-multi-ice was given.
15815 if test "${enable_multi_ice+set}" = set; then :
15816 enableval=$enable_multi_ice; case $enableval in
15819 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15823 if test "x$enable_multi_ice" = xyes; then
15824 subdirs="$subdirs multi-ice"
15828 # Check whether --enable-gdbserver was given.
15829 if test "${enable_gdbserver+set}" = set; then :
15830 enableval=$enable_gdbserver; case "${enableval}" in
15832 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15835 enable_gdbserver=auto
15839 # We only build gdbserver automatically in a native configuration, and
15840 # only if the user did not explicitly disable its build.
15841 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15843 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15844 if test "x$build_gdbserver" = xyes; then
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15846 $as_echo "yes" >&6; }
15847 subdirs="$subdirs gdbserver"
15849 gdbserver_build_enabled=yes
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852 $as_echo "no" >&6; }
15856 # If the user explicitly request the gdbserver to be built, verify that
15857 # we were in fact able to enable it.
15858 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15859 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15862 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15863 # to an empty version.
15869 if test "${nativefile}" != ""; then
15870 case "${nativefile}" in
15871 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15872 * ) GDB_NM_FILE="${nativefile}"
15874 files="${files} ${GDB_NM_FILE}"
15875 links="${links} nm.h"
15877 cat >>confdefs.h <<_ACEOF
15878 #define GDB_NM_FILE "${GDB_NM_FILE}"
15884 ac_sources="$files"
15886 while test -n "$ac_sources"; do
15887 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15888 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15889 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15891 ac_config_links="$ac_config_links $ac_config_links_1"
15897 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15900 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
15902 ac_config_commands="$ac_config_commands default"
15904 cat >confcache <<\_ACEOF
15905 # This file is a shell script that caches the results of configure
15906 # tests run on this system so they can be shared between configure
15907 # scripts and configure runs, see configure's option --config-cache.
15908 # It is not useful on other systems. If it contains results you don't
15909 # want to keep, you may remove or edit it.
15911 # config.status only pays attention to the cache file if you give it
15912 # the --recheck option to rerun configure.
15914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15916 # following values.
15920 # The following way of writing the cache mishandles newlines in values,
15921 # but we know of no workaround that is simple, portable, and efficient.
15922 # So, we kill variables containing newlines.
15923 # Ultrix sh set writes to stderr and can't be redirected directly,
15924 # and sets the high bit in the cache file unless we assign to the vars.
15926 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15927 eval ac_val=\$$ac_var
15931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15935 _ | IFS | as_nl) ;; #(
15936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15937 *) { eval $ac_var=; unset $ac_var;} ;;
15943 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15944 *${as_nl}ac_space=\ *)
15945 # `set' does not quote correctly, so add quotes: double-quote
15946 # substitution turns \\\\ into \\, and sed turns \\ into \.
15949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15952 # `set' quotes correctly as required by POSIX, so do not add quotes.
15953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15964 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15966 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15967 if test -w "$cache_file"; then
15968 test "x$cache_file" != "x/dev/null" &&
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15970 $as_echo "$as_me: updating cache $cache_file" >&6;}
15971 cat confcache >$cache_file
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15974 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15979 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15980 # Let make expand exec_prefix.
15981 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15983 DEFS=-DHAVE_CONFIG_H
15987 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15988 # 1. Remove the extension, and $U if already installed.
15989 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15990 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15991 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15992 # will be set to the directory where LIBOBJS objects are built.
15993 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15994 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15996 LIBOBJS=$ac_libobjs
15998 LTLIBOBJS=$ac_ltlibobjs
16001 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16002 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16005 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16006 as_fn_error "conditional \"GMAKE\" was never defined.
16007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16009 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16010 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16016 if test -n "$gl_LIBOBJS"; then
16017 # Remove the extension.
16018 sed_drop_objext='s/\.o$//;s/\.obj$//'
16019 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16020 gl_libobjs="$gl_libobjs $i.$ac_objext"
16021 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16024 gl_LIBOBJS=$gl_libobjs
16026 gl_LTLIBOBJS=$gl_ltlibobjs
16032 if test -n "$gltests_LIBOBJS"; then
16033 # Remove the extension.
16034 sed_drop_objext='s/\.o$//;s/\.obj$//'
16035 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16036 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16037 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16040 gltests_LIBOBJS=$gltests_libobjs
16042 gltests_LTLIBOBJS=$gltests_ltlibobjs
16045 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16046 as_fn_error "conditional \"AMDEP\" was never defined.
16047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16049 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16050 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16053 if test -n "$EXEEXT"; then
16055 am__EXEEXT_FALSE='#'
16057 am__EXEEXT_TRUE='#'
16063 : ${CONFIG_STATUS=./config.status}
16065 ac_clean_files_save=$ac_clean_files
16066 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16068 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16070 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16072 # Generated by $as_me.
16073 # Run this file to recreate the current configuration.
16074 # Compiler output produced by configure, useful for debugging
16075 # configure, is in config.log if it exists.
16078 ac_cs_recheck=false
16081 SHELL=\${CONFIG_SHELL-$SHELL}
16084 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16085 ## -------------------- ##
16086 ## M4sh Initialization. ##
16087 ## -------------------- ##
16089 # Be more Bourne compatible
16090 DUALCASE=1; export DUALCASE # for MKS sh
16091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16094 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16095 # is contrary to our usage. Disable this feature.
16096 alias -g '${1+"$@"}'='"$@"'
16097 setopt NO_GLOB_SUBST
16099 case `(set -o) 2>/dev/null` in #(
16111 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16112 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16115 # Prefer a ksh shell builtin over an external printf program on Solaris,
16116 # but without wasting forks for bash or zsh.
16117 if test -z "$BASH_VERSION$ZSH_VERSION" \
16118 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16119 as_echo='print -r --'
16120 as_echo_n='print -rn --'
16121 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16122 as_echo='printf %s\n'
16123 as_echo_n='printf %s'
16125 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16126 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16127 as_echo_n='/usr/ucb/echo -n'
16129 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16130 as_echo_n_body='eval
16134 expr "X$arg" : "X\\(.*\\)$as_nl";
16135 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16137 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16139 export as_echo_n_body
16140 as_echo_n='sh -c $as_echo_n_body as_echo'
16142 export as_echo_body
16143 as_echo='sh -c $as_echo_body as_echo'
16146 # The user is always right.
16147 if test "${PATH_SEPARATOR+set}" != set; then
16149 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16150 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16157 # We need space, tab and new line, in precisely that order. Quoting is
16158 # there to prevent editors from complaining about space-tab.
16159 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16160 # splitting by setting IFS to empty value.)
16163 # Find who we are. Look in the path if we contain no directory separator.
16165 *[\\/]* ) as_myself=$0 ;;
16166 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16167 for as_dir in $PATH
16170 test -z "$as_dir" && as_dir=.
16171 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16177 # We did not find ourselves, most probably we were run as `sh COMMAND'
16178 # in which case we are not to be found in the path.
16179 if test "x$as_myself" = x; then
16182 if test ! -f "$as_myself"; then
16183 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16187 # Unset variables that we do not need and which cause bugs (e.g. in
16188 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16189 # suppresses any "Segmentation fault" message there. '((' could
16190 # trigger a bug in pdksh 5.2.14.
16191 for as_var in BASH_ENV ENV MAIL MAILPATH
16192 do eval test x\${$as_var+set} = xset \
16193 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16206 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16209 # as_fn_error ERROR [LINENO LOG_FD]
16210 # ---------------------------------
16211 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16212 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16213 # script with status $?, using 1 if that was 0.
16216 as_status=$?; test $as_status -eq 0 && as_status=1
16218 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16219 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16221 $as_echo "$as_me: error: $1" >&2
16222 as_fn_exit $as_status
16226 # as_fn_set_status STATUS
16227 # -----------------------
16228 # Set $? to STATUS, without forking.
16229 as_fn_set_status ()
16232 } # as_fn_set_status
16234 # as_fn_exit STATUS
16235 # -----------------
16236 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16240 as_fn_set_status $1
16246 # Portably unset VAR.
16249 { eval $1=; unset $1;}
16251 as_unset=as_fn_unset
16252 # as_fn_append VAR VALUE
16253 # ----------------------
16254 # Append the text in VALUE to the end of the definition contained in VAR. Take
16255 # advantage of any shell optimizations that allow amortized linear growth over
16256 # repeated appends, instead of the typical quadratic growth present in naive
16258 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16259 eval 'as_fn_append ()
16270 # as_fn_arith ARG...
16271 # ------------------
16272 # Perform arithmetic evaluation on the ARGs, and store the result in the
16273 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16274 # must be portable across $(()) and expr.
16275 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16276 eval 'as_fn_arith ()
16283 as_val=`expr "$@" || test $? -eq 1`
16288 if expr a : '\(a\)' >/dev/null 2>&1 &&
16289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16295 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16296 as_basename=basename
16301 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16307 as_me=`$as_basename -- "$0" ||
16308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16309 X"$0" : 'X\(//\)$' \| \
16310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16312 sed '/^.*\/\([^/][^/]*\)\/*$/{
16326 # Avoid depending upon Character Ranges.
16327 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16328 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16329 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16330 as_cr_digits='0123456789'
16331 as_cr_alnum=$as_cr_Letters$as_cr_digits
16333 ECHO_C= ECHO_N= ECHO_T=
16334 case `echo -n x` in #(((((
16336 case `echo 'xy\c'` in
16337 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16339 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16346 rm -f conf$$ conf$$.exe conf$$.file
16347 if test -d conf$$.dir; then
16348 rm -f conf$$.dir/conf$$.file
16351 mkdir conf$$.dir 2>/dev/null
16353 if (echo >conf$$.file) 2>/dev/null; then
16354 if ln -s conf$$.file conf$$ 2>/dev/null; then
16356 # ... but there are two gotchas:
16357 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16358 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16359 # In both cases, we have to default to `cp -p'.
16360 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16362 elif ln conf$$.file conf$$ 2>/dev/null; then
16370 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16371 rmdir conf$$.dir 2>/dev/null
16376 # Create "$as_dir" as a directory, including parents if necessary.
16381 -*) as_dir=./$as_dir;;
16383 test -d "$as_dir" || eval $as_mkdir_p || {
16387 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16388 *) as_qdir=$as_dir;;
16390 as_dirs="'$as_qdir' $as_dirs"
16391 as_dir=`$as_dirname -- "$as_dir" ||
16392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16393 X"$as_dir" : 'X\(//\)[^/]' \| \
16394 X"$as_dir" : 'X\(//\)$' \| \
16395 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16396 $as_echo X"$as_dir" |
16397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16401 /^X\(\/\/\)[^/].*/{
16414 test -d "$as_dir" && break
16416 test -z "$as_dirs" || eval "mkdir $as_dirs"
16417 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16421 if mkdir -p . 2>/dev/null; then
16422 as_mkdir_p='mkdir -p "$as_dir"'
16424 test -d ./-p && rmdir ./-p
16428 if test -x / >/dev/null 2>&1; then
16429 as_test_x='test -x'
16431 if ls -dL / >/dev/null 2>&1; then
16438 if test -d "$1"; then
16444 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16445 ???[sx]*):;;*)false;;esac;fi
16449 as_executable_p=$as_test_x
16451 # Sed expression to map a string onto a valid CPP name.
16452 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16454 # Sed expression to map a string onto a valid variable name.
16455 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16459 ## ----------------------------------- ##
16460 ## Main body of $CONFIG_STATUS script. ##
16461 ## ----------------------------------- ##
16463 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16466 # Save the log message, to keep $0 and so on meaningful, and to
16467 # report actual input values of CONFIG_FILES etc. instead of their
16468 # values after options handling.
16470 This file was extended by $as_me, which was
16471 generated by GNU Autoconf 2.64. Invocation command line was
16473 CONFIG_FILES = $CONFIG_FILES
16474 CONFIG_HEADERS = $CONFIG_HEADERS
16475 CONFIG_LINKS = $CONFIG_LINKS
16476 CONFIG_COMMANDS = $CONFIG_COMMANDS
16479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16484 case $ac_config_files in *"
16485 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16488 case $ac_config_headers in *"
16489 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16494 # Files that config.status was made for.
16495 config_files="$ac_config_files"
16496 config_headers="$ac_config_headers"
16497 config_links="$ac_config_links"
16498 config_commands="$ac_config_commands"
16502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 \`$as_me' instantiates files and other configuration actions
16505 from templates according to the current configuration. Unless the files
16506 and actions are specified as TAGs, all are instantiated by default.
16508 Usage: $0 [OPTION]... [TAG]...
16510 -h, --help print this help, then exit
16511 -V, --version print version number and configuration settings, then exit
16512 -q, --quiet, --silent
16513 do not print progress messages
16514 -d, --debug don't remove temporary files
16515 --recheck update $as_me by reconfiguring in the same conditions
16516 --file=FILE[:TEMPLATE]
16517 instantiate the configuration file FILE
16518 --header=FILE[:TEMPLATE]
16519 instantiate the configuration header FILE
16521 Configuration files:
16524 Configuration headers:
16527 Configuration links:
16530 Configuration commands:
16533 Report bugs to the package provider."
16536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16539 configured by $0, generated by GNU Autoconf 2.64,
16540 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16542 Copyright (C) 2009 Free Software Foundation, Inc.
16543 This config.status script is free software; the Free Software Foundation
16544 gives unlimited permission to copy, distribute and modify it."
16551 test -n "\$AWK" || AWK=awk
16554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16555 # The default lists apply if the user does not specify any file.
16561 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16562 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16573 # Handling of the options.
16574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16576 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16577 $as_echo "$ac_cs_version"; exit ;;
16578 --debug | --debu | --deb | --de | --d | -d )
16580 --file | --fil | --fi | --f )
16583 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16585 as_fn_append CONFIG_FILES " '$ac_optarg'"
16586 ac_need_defaults=false;;
16587 --header | --heade | --head | --hea )
16590 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16592 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16593 ac_need_defaults=false;;
16595 # Conflict between --help and --header
16596 as_fn_error "ambiguous option: \`$1'
16597 Try \`$0 --help' for more information.";;
16598 --help | --hel | -h )
16599 $as_echo "$ac_cs_usage"; exit ;;
16600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16601 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16604 # This is an error.
16605 -*) as_fn_error "unrecognized option: \`$1'
16606 Try \`$0 --help' for more information." ;;
16608 *) as_fn_append ac_config_targets " $1"
16609 ac_need_defaults=false ;;
16615 ac_configure_extra_args=
16617 if $ac_cs_silent; then
16619 ac_configure_extra_args="$ac_configure_extra_args --silent"
16623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16624 if \$ac_cs_recheck; then
16625 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16627 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16628 CONFIG_SHELL='$SHELL'
16629 export CONFIG_SHELL
16634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16638 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16639 ## Running $as_me. ##
16645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16649 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16650 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16656 # Handling of arguments.
16657 for ac_config_target in $ac_config_targets
16659 case $ac_config_target in
16660 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16661 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16662 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16663 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16665 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16666 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16667 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16668 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16669 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16671 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16676 # If the user did not use the arguments to specify the items to instantiate,
16677 # then the envvar interface is used. Set only those that are not.
16678 # We use the long form for the default assignment because of an extremely
16679 # bizarre bug on SunOS 4.1.3.
16680 if $ac_need_defaults; then
16681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16683 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16687 # Have a temporary directory for convenience. Make it in the build tree
16688 # simply because there is no reason against having it here, and in addition,
16689 # creating and moving files from /tmp can sometimes cause problems.
16690 # Hook for its removal unless debugging.
16691 # Note that there is a small window in which the directory will not be cleaned:
16692 # after its creation but before its name has been assigned to `$tmp'.
16696 trap 'exit_status=$?
16697 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16699 trap 'as_fn_exit 1' 1 2 13 15
16701 # Create a (secure) tmp directory for tmp files.
16704 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16705 test -n "$tmp" && test -d "$tmp"
16708 tmp=./conf$$-$RANDOM
16709 (umask 077 && mkdir "$tmp")
16710 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16712 # Set up the scripts for CONFIG_FILES section.
16713 # No need to generate them if there are no CONFIG_FILES.
16714 # This happens for instance with `./config.status config.h'.
16715 if test -n "$CONFIG_FILES"; then
16717 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16718 ac_cs_awk_getline=:
16719 ac_cs_awk_pipe_init=
16720 ac_cs_awk_read_file='
16721 while ((getline aline < (F[key])) > 0)
16724 ac_cs_awk_pipe_fini=
16726 ac_cs_awk_getline=false
16727 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16728 ac_cs_awk_read_file='
16730 print "cat " F[key] " &&"
16731 '$ac_cs_awk_pipe_init
16732 # The final `:' finishes the AND list.
16733 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16735 ac_cr=`echo X | tr X '\015'`
16736 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16737 # But we know of no other shell where ac_cr would be empty at this
16738 # point, so we can use a bashism as a fallback.
16739 if test "x$ac_cr" = x; then
16740 eval ac_cr=\$\'\\r\'
16742 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16743 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16746 ac_cs_awk_cr=$ac_cr
16749 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16752 # Create commands to substitute file output variables.
16754 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16755 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16756 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16759 } >conf$$files.sh &&
16760 . ./conf$$files.sh ||
16761 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16762 rm -f conf$$files.sh
16765 echo "cat >conf$$subs.awk <<_ACEOF" &&
16766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16768 } >conf$$subs.sh ||
16769 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16770 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16772 for ac_last_try in false false false false false :; do
16773 . ./conf$$subs.sh ||
16774 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16776 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16777 if test $ac_delim_n = $ac_delim_num; then
16779 elif $ac_last_try; then
16780 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16785 rm -f conf$$subs.sh
16787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16788 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16792 s/^/S["/; s/!.*/"]=/
16802 s/\(.\{148\}\).*/\1/
16804 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16816 s/\(.\{148\}\).*/\1/
16818 s/["\\]/\\&/g; s/^/"/; s/$/"/
16822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16827 ' <conf$$subs.awk | sed '
16832 ' >>$CONFIG_STATUS || ac_write_fail=1
16833 rm -f conf$$subs.awk
16834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16837 for (key in S) S_is_set[key] = 1
16839 \$ac_cs_awk_pipe_init
16843 nfields = split(line, field, "@")
16845 len = length(field[1])
16846 for (i = 2; i < nfields; i++) {
16848 keylen = length(key)
16849 if (S_is_set[key]) {
16851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16852 len += length(value) + length(field[++i])
16857 if (nfields == 3 && !substed) {
16859 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16860 \$ac_cs_awk_read_file
16866 \$ac_cs_awk_pipe_fini
16869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16870 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16871 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16874 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16875 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16878 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16879 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16880 # trailing colons and then remove the whole line if VPATH becomes empty
16881 # (actually we leave an empty line to preserve line numbers).
16882 if test "x$srcdir" = x.; then
16883 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16884 s/:*\$(srcdir):*/:/
16885 s/:*\${srcdir}:*/:/
16887 s/^\([^=]*=[ ]*\):*/\1/
16893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16894 fi # test -n "$CONFIG_FILES"
16896 # Set up the scripts for CONFIG_HEADERS section.
16897 # No need to generate them if there are no CONFIG_HEADERS.
16898 # This happens for instance with `./config.status Makefile'.
16899 if test -n "$CONFIG_HEADERS"; then
16900 cat >"$tmp/defines.awk" <<\_ACAWK ||
16904 # Transform confdefs.h into an awk script `defines.awk', embedded as
16905 # here-document in config.status, that substitutes the proper values into
16906 # config.h.in to produce config.h.
16908 # Create a delimiter string that does not exist in confdefs.h, to ease
16909 # handling of long lines.
16911 for ac_last_try in false false :; do
16912 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16913 if test -z "$ac_t"; then
16915 elif $ac_last_try; then
16916 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16922 # For the awk script, D is an array of macro values keyed by name,
16923 # likewise P contains macro parameters if any. Preserve backslash
16924 # newline sequences.
16926 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16928 s/.\{148\}/&'"$ac_delim"'/g
16931 s/^[ ]*#[ ]*define[ ][ ]*/ /
16938 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16940 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16944 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16945 D["\1"]=" \3\\\\\\n"\\/p
16947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16952 s/.\{148\}/&'"$ac_delim"'/g
16957 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16960 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16962 ' <confdefs.h | sed '
16963 s/'"$ac_delim"'/"\\\
16964 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16967 for (key in D) D_is_set[key] = 1
16970 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16972 split(line, arg, " ")
16973 if (arg[1] == "#") {
16977 defundef = substr(arg[1], 2)
16980 split(mac1, mac2, "(") #)
16982 prefix = substr(line, 1, index(line, defundef) - 1)
16983 if (D_is_set[macro]) {
16984 # Preserve the white space surrounding the "#".
16985 print prefix "define", macro P[macro] D[macro]
16988 # Replace #undef with comments. This is necessary, for example,
16989 # in the case of _POSIX_SOURCE, which is predefined and required
16990 # on some systems where configure will not decide to define it.
16991 if (defundef == "undef") {
16992 print "/*", prefix defundef, macro, "*/"
17000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17001 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17002 fi # test -n "$CONFIG_HEADERS"
17005 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17010 :[FHLC]) ac_mode=$ac_tag; continue;;
17012 case $ac_mode$ac_tag in
17014 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17015 :[FH]-) ac_tag=-:-;;
17016 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17033 -) ac_f="$tmp/stdin";;
17034 *) # Look for the file first in the build tree, then in the source tree
17035 # (if the path is not absolute). The absolute path cannot be DOS-style,
17036 # because $ac_f cannot contain `:'.
17040 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17042 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17044 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17045 as_fn_append ac_file_inputs " '$ac_f'"
17048 # Let's still pretend it is `configure' which instantiates (i.e., don't
17049 # use $as_me), people would be surprised to read:
17050 # /* config.h. Generated by config.status. */
17051 configure_input='Generated from '`
17052 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17054 if test x"$ac_file" != x-; then
17055 configure_input="$ac_file. $configure_input"
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17057 $as_echo "$as_me: creating $ac_file" >&6;}
17059 # Neutralize special characters interpreted by sed in replacement strings.
17060 case $configure_input in #(
17061 *\&* | *\|* | *\\* )
17062 ac_sed_conf_input=`$as_echo "$configure_input" |
17063 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17064 *) ac_sed_conf_input=$configure_input;;
17068 *:-:* | *:-) cat >"$tmp/stdin" \
17069 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17074 ac_dir=`$as_dirname -- "$ac_file" ||
17075 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17076 X"$ac_file" : 'X\(//\)[^/]' \| \
17077 X"$ac_file" : 'X\(//\)$' \| \
17078 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17079 $as_echo X"$ac_file" |
17080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17084 /^X\(\/\/\)[^/].*/{
17097 as_dir="$ac_dir"; as_fn_mkdir_p
17101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17104 # A ".." for each directory in $ac_dir_suffix.
17105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17106 case $ac_top_builddir_sub in
17107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17111 ac_abs_top_builddir=$ac_pwd
17112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17113 # for backward compatibility:
17114 ac_top_builddir=$ac_top_build_prefix
17117 .) # We are building in place.
17119 ac_top_srcdir=$ac_top_builddir_sub
17120 ac_abs_top_srcdir=$ac_pwd ;;
17121 [\\/]* | ?:[\\/]* ) # Absolute name.
17122 ac_srcdir=$srcdir$ac_dir_suffix;
17123 ac_top_srcdir=$srcdir
17124 ac_abs_top_srcdir=$srcdir ;;
17125 *) # Relative name.
17126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17127 ac_top_srcdir=$ac_top_build_prefix$srcdir
17128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17143 ac_MKDIR_P=$MKDIR_P
17145 [\\/$]* | ?:[\\/]* ) ;;
17146 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17151 # If the template does not know about datarootdir, expand it.
17152 # FIXME: This hack should be removed a few years after 2.60.
17153 ac_datarootdir_hack=; ac_datarootdir_seen=
17164 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17165 *datarootdir*) ac_datarootdir_seen=yes;;
17166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17168 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17171 ac_datarootdir_hack='
17172 s&@datadir@&$datadir&g
17173 s&@docdir@&$docdir&g
17174 s&@infodir@&$infodir&g
17175 s&@localedir@&$localedir&g
17176 s&@mandir@&$mandir&g
17177 s&\\\${datarootdir}&$datarootdir&g' ;;
17181 # Neutralize VPATH when `$srcdir' = `.'.
17182 # Shell code in configure.ac might set extrasub.
17183 # FIXME: do we really want to maintain this feature?
17184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17185 ac_sed_extra="$ac_vpsub
17188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17191 s|@configure_input@|$ac_sed_conf_input|;t t
17192 s&@top_builddir@&$ac_top_builddir_sub&;t t
17193 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17194 s&@srcdir@&$ac_srcdir&;t t
17195 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17196 s&@top_srcdir@&$ac_top_srcdir&;t t
17197 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17198 s&@builddir@&$ac_builddir&;t t
17199 s&@abs_builddir@&$ac_abs_builddir&;t t
17200 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17201 s&@INSTALL@&$ac_INSTALL&;t t
17202 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17203 $ac_datarootdir_hack
17205 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17206 if $ac_cs_awk_getline; then
17207 $AWK -f "$tmp/subs.awk"
17209 $AWK -f "$tmp/subs.awk" | $SHELL
17211 || as_fn_error "could not create $ac_file" "$LINENO" 5
17213 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17214 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17215 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17217 which seems to be undefined. Please make sure it is defined." >&5
17218 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17219 which seems to be undefined. Please make sure it is defined." >&2;}
17223 -) cat "$tmp/out" && rm -f "$tmp/out";;
17224 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17226 || as_fn_error "could not create $ac_file" "$LINENO" 5
17232 if test x"$ac_file" != x-; then
17234 $as_echo "/* $configure_input */" \
17235 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17236 } >"$tmp/config.h" \
17237 || as_fn_error "could not create $ac_file" "$LINENO" 5
17238 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17240 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17243 mv "$tmp/config.h" "$ac_file" \
17244 || as_fn_error "could not create $ac_file" "$LINENO" 5
17247 $as_echo "/* $configure_input */" \
17248 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17249 || as_fn_error "could not create -" "$LINENO" 5
17251 # Compute "$ac_file"'s index in $config_headers.
17254 for _am_header in $config_headers :; do
17255 case $_am_header in
17256 $_am_arg | $_am_arg:* )
17259 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17262 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17263 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17264 X"$_am_arg" : 'X\(//\)[^/]' \| \
17265 X"$_am_arg" : 'X\(//\)$' \| \
17266 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17267 $as_echo X"$_am_arg" |
17268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17272 /^X\(\/\/\)[^/].*/{
17284 s/.*/./; q'`/stamp-h$_am_stamp_count
17291 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17294 # Prefer the file from the source tree if names are identical.
17295 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17296 ac_source=$srcdir/$ac_source
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17300 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17302 if test ! -r "$ac_source"; then
17303 as_fn_error "$ac_source: file not found" "$LINENO" 5
17307 # Try a relative symlink, then a hard link, then a copy.
17309 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17310 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17312 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17313 ln "$ac_source" "$ac_file" 2>/dev/null ||
17314 cp -p "$ac_source" "$ac_file" ||
17315 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17318 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17319 $as_echo "$as_me: executing $ac_file commands" >&6;}
17324 case $ac_file$ac_mode in
17325 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17326 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17327 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17328 # are listed without --file. Let's play safe and only enable the eval
17329 # if we detect the quoting.
17330 case $CONFIG_FILES in
17331 *\'*) eval set x "$CONFIG_FILES" ;;
17332 *) set x $CONFIG_FILES ;;
17337 # Strip MF so we end up with the name of the file.
17338 mf=`echo "$mf" | sed -e 's/:.*$//'`
17339 # Check whether this is an Automake generated Makefile or not.
17340 # We used to match only the files named `Makefile.in', but
17341 # some people rename them; so instead we look at the file content.
17342 # Grep'ing the first line is not enough: some people post-process
17343 # each Makefile.in and add a new line on top of each file to say so.
17344 # Grep'ing the whole file is not good either: AIX grep has a line
17345 # limit of 2048, but all sed's we know have understand at least 4000.
17346 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17347 dirpart=`$as_dirname -- "$mf" ||
17348 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17349 X"$mf" : 'X\(//\)[^/]' \| \
17350 X"$mf" : 'X\(//\)$' \| \
17351 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17357 /^X\(\/\/\)[^/].*/{
17373 # Extract the definition of DEPDIR, am__include, and am__quote
17374 # from the Makefile without running `make'.
17375 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17376 test -z "$DEPDIR" && continue
17377 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17378 test -z "am__include" && continue
17379 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17380 # When using ansi2knr, U may be empty or an underscore; expand it
17381 U=`sed -n 's/^U = //p' < "$mf"`
17382 # Find all dependency output files, they are included files with
17383 # $(DEPDIR) in their names. We invoke sed twice because it is the
17384 # simplest approach to changing $(DEPDIR) to its actual value in the
17386 for file in `sed -n "
17387 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17388 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17389 # Make sure the directory exists.
17390 test -f "$dirpart/$file" && continue
17391 fdir=`$as_dirname -- "$file" ||
17392 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17393 X"$file" : 'X\(//\)[^/]' \| \
17394 X"$file" : 'X\(//\)$' \| \
17395 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17396 $as_echo X"$file" |
17397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17401 /^X\(\/\/\)[^/].*/{
17414 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17415 # echo "creating $dirpart/$file"
17416 echo '# dummy' > "$dirpart/$file"
17422 case x$CONFIG_HEADERS in
17423 xconfig.h:config.in)
17434 ac_clean_files=$ac_clean_files_save
17436 test $ac_write_fail = 0 ||
17437 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17440 # configure is writing to config.log, and then calls config.status.
17441 # config.status does its own redirection, appending to config.log.
17442 # Unfortunately, on DOS this fails, as config.log is still kept open
17443 # by configure, so config.status won't be able to write to it; its
17444 # output is simply discarded. So we exec the FD to /dev/null,
17445 # effectively closing config.log, so it can be properly (re)opened and
17446 # appended to by config.status. When coming back to configure, we
17447 # need to make the FD available again.
17448 if test "$no_create" != yes; then
17450 ac_config_status_args=
17451 test "$silent" = yes &&
17452 ac_config_status_args="$ac_config_status_args --quiet"
17454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17457 # would make configure fail if this is the last instruction.
17458 $ac_cs_success || as_fn_exit $?
17462 # CONFIG_SUBDIRS section.
17464 if test "$no_recursion" != yes; then
17466 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17467 # so they do not pile up.
17468 ac_sub_configure_args=
17470 eval "set x $ac_configure_args"
17474 if test -n "$ac_prev"; then
17479 -cache-file | --cache-file | --cache-fil | --cache-fi \
17480 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17481 ac_prev=cache_file ;;
17482 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17483 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17486 --config-cache | -C)
17488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17492 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17494 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17496 --disable-option-checking)
17500 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17502 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17506 # Always prepend --prefix to ensure using the same prefix
17507 # in subdir configurations.
17508 ac_arg="--prefix=$prefix"
17510 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17512 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17515 if test "$silent" = yes; then
17516 ac_sub_configure_args="--silent $ac_sub_configure_args"
17519 # Always prepend --disable-option-checking to silence warnings, since
17520 # different subdirs can have different --enable and --with options.
17521 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17524 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17526 # Do not complain, so a configure script can configure whichever
17527 # parts of a large source tree are present.
17528 test -d "$srcdir/$ac_dir" || continue
17530 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17531 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17532 $as_echo "$ac_msg" >&6
17533 as_dir="$ac_dir"; as_fn_mkdir_p
17537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17540 # A ".." for each directory in $ac_dir_suffix.
17541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17542 case $ac_top_builddir_sub in
17543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17547 ac_abs_top_builddir=$ac_pwd
17548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17549 # for backward compatibility:
17550 ac_top_builddir=$ac_top_build_prefix
17553 .) # We are building in place.
17555 ac_top_srcdir=$ac_top_builddir_sub
17556 ac_abs_top_srcdir=$ac_pwd ;;
17557 [\\/]* | ?:[\\/]* ) # Absolute name.
17558 ac_srcdir=$srcdir$ac_dir_suffix;
17559 ac_top_srcdir=$srcdir
17560 ac_abs_top_srcdir=$srcdir ;;
17561 *) # Relative name.
17562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17563 ac_top_srcdir=$ac_top_build_prefix$srcdir
17564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17571 # Check for guested configure; otherwise get Cygnus style configure.
17572 if test -f "$ac_srcdir/configure.gnu"; then
17573 ac_sub_configure=$ac_srcdir/configure.gnu
17574 elif test -f "$ac_srcdir/configure"; then
17575 ac_sub_configure=$ac_srcdir/configure
17576 elif test -f "$ac_srcdir/configure.in"; then
17577 # This should be Cygnus configure.
17578 ac_sub_configure=$ac_aux_dir/configure
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17585 # The recursion is here.
17586 if test -n "$ac_sub_configure"; then
17587 # Make the cache file name correct relative to the subdirectory.
17588 case $cache_file in
17589 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17590 *) # Relative name.
17591 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17594 { $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
17595 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17596 # The eval makes quoting arguments work.
17597 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17598 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17599 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17605 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17607 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}