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
695 INSTALL_STRIP_PROGRAM
716 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
752 NEXT_AS_FIRST_DIRECTIVE_STRING_H
762 HAVE_SIGNED_SIG_ATOMIC_T
765 BITSIZEOF_SIG_ATOMIC_T
771 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
775 HAVE_UNSIGNED_LONG_LONG_INT
777 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
780 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
785 APPLE_UNIVERSAL_BUILD
851 GL_COND_LIBTOOL_FALSE
896 MAINTAINER_MODE_FALSE
925 program_transform_name
936 ac_subst_files='host_makefile_frag'
938 enable_option_checking
939 enable_maintainer_mode
942 enable_dependency_tracking
943 with_separate_debug_dir
945 with_relocated_sources
969 enable_build_warnings
970 enable_gdb_build_warnings
977 ac_precious_vars='build_alias
989 ac_subdirs_all='doc testsuite
994 # Initialize some variables set by options.
996 ac_init_version=false
997 ac_unrecognized_opts=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1008 program_transform_name=s,x,x,
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE}'
1033 infodir='${datarootdir}/info'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\$ac_option
1054 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1064 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067 bindir=$ac_optarg ;;
1069 -build | --build | --buil | --bui | --bu)
1070 ac_prev=build_alias ;;
1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072 build_alias=$ac_optarg ;;
1074 -cache-file | --cache-file | --cache-fil | --cache-fi \
1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076 ac_prev=cache_file ;;
1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079 cache_file=$ac_optarg ;;
1081 --config-cache | -C)
1082 cache_file=config.cache ;;
1084 -datadir | --datadir | --datadi | --datad)
1086 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087 datadir=$ac_optarg ;;
1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090 | --dataroo | --dataro | --datar)
1091 ac_prev=datarootdir ;;
1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094 datarootdir=$ac_optarg ;;
1096 -disable-* | --disable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error "invalid feature name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_$ac_useropt"
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1110 eval enable_$ac_useropt=no ;;
1112 -docdir | --docdir | --docdi | --doc | --do)
1114 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115 docdir=$ac_optarg ;;
1117 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1119 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120 dvidir=$ac_optarg ;;
1122 -enable-* | --enable-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid feature name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_$ac_useropt"
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval enable_$ac_useropt=\$ac_optarg ;;
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1167 htmldir=$ac_optarg ;;
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1181 -libdir | --libdir | --libdi | --libd)
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1272 -psdir | --psdir | --psdi | --psd | --ps)
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1281 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285 sbindir=$ac_optarg ;;
1287 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289 | --sharedst | --shareds | --shared | --share | --shar \
1291 ac_prev=sharedstatedir ;;
1292 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296 sharedstatedir=$ac_optarg ;;
1298 -site | --site | --sit)
1300 -site=* | --site=* | --sit=*)
1303 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306 srcdir=$ac_optarg ;;
1308 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309 | --syscon | --sysco | --sysc | --sys | --sy)
1310 ac_prev=sysconfdir ;;
1311 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313 sysconfdir=$ac_optarg ;;
1315 -target | --target | --targe | --targ | --tar | --ta | --t)
1316 ac_prev=target_alias ;;
1317 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318 target_alias=$ac_optarg ;;
1320 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323 -version | --version | --versio | --versi | --vers | -V)
1324 ac_init_version=: ;;
1327 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error "invalid package name: $ac_useropt"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1340 eval with_$ac_useropt=\$ac_optarg ;;
1342 -without-* | --without-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 as_fn_error "invalid package name: $ac_useropt"
1347 ac_useropt_orig=$ac_useropt
1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354 ac_unrecognized_sep=', ';;
1356 eval with_$ac_useropt=no ;;
1359 # Obsolete; use --with-x.
1362 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1363 | --x-incl | --x-inc | --x-in | --x-i)
1364 ac_prev=x_includes ;;
1365 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1366 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1367 x_includes=$ac_optarg ;;
1369 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1370 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1371 ac_prev=x_libraries ;;
1372 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1373 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1374 x_libraries=$ac_optarg ;;
1376 -*) as_fn_error "unrecognized option: \`$ac_option'
1377 Try \`$0 --help' for more information."
1381 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1382 # Reject names that are not valid shell variable names.
1383 case $ac_envvar in #(
1384 '' | [0-9]* | *[!_$as_cr_alnum]* )
1385 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1387 eval $ac_envvar=\$ac_optarg
1388 export $ac_envvar ;;
1391 # FIXME: should be removed in autoconf 3.0.
1392 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1394 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1401 if test -n "$ac_prev"; then
1402 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1403 as_fn_error "missing argument to $ac_option"
1406 if test -n "$ac_unrecognized_opts"; then
1407 case $enable_option_checking in
1409 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1414 # Check all directory arguments for consistency.
1415 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418 libdir localedir mandir
1420 eval ac_val=\$$ac_var
1421 # Remove trailing slashes.
1424 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\$ac_val;;
1427 # Be sure to have absolute directory names.
1429 [\\/$]* | ?:[\\/]* ) continue;;
1430 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1435 # There might be people who depend on the old broken behavior: `$host'
1436 # used to hold the argument of --host etc.
1437 # FIXME: To remove some day.
1440 target=$target_alias
1442 # FIXME: To remove some day.
1443 if test "x$host_alias" != x; then
1444 if test "x$build_alias" = x; then
1445 cross_compiling=maybe
1446 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1447 If a cross compiler is detected then cross compile mode will be used." >&2
1448 elif test "x$build_alias" != "x$host_alias"; then
1454 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1456 test "$silent" = yes && exec 6>/dev/null
1459 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1460 ac_ls_di=`ls -di .` &&
1461 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1462 as_fn_error "working directory cannot be determined"
1463 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1464 as_fn_error "pwd does not report name of working directory"
1467 # Find the source files, if location was not specified.
1468 if test -z "$srcdir"; then
1469 ac_srcdir_defaulted=yes
1470 # Try the directory containing this script, then the parent directory.
1471 ac_confdir=`$as_dirname -- "$as_myself" ||
1472 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1473 X"$as_myself" : 'X\(//\)[^/]' \| \
1474 X"$as_myself" : 'X\(//\)$' \| \
1475 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1476 $as_echo X"$as_myself" |
1477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1499 ac_srcdir_defaulted=no
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1502 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1503 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1505 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1507 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1509 # When building in place, set srcdir=.
1510 if test "$ac_abs_confdir" = "$ac_pwd"; then
1513 # Remove unnecessary trailing slashes from srcdir.
1514 # Double slashes in file names in object file debugging info
1515 # mess up M-x gdb in Emacs.
1517 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1519 for ac_var in $ac_precious_vars; do
1520 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1521 eval ac_env_${ac_var}_value=\$${ac_var}
1522 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1523 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1527 # Report the --help message.
1529 if test "$ac_init_help" = "long"; then
1530 # Omit some internal or obsolete options to make the list less imposing.
1531 # This message is too long to be a string in the A/UX 3.1 sh.
1533 \`configure' configures this package to adapt to many kinds of systems.
1535 Usage: $0 [OPTION]... [VAR=VALUE]...
1537 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1538 VAR=VALUE. See below for descriptions of some of the useful variables.
1540 Defaults for the options are specified in brackets.
1543 -h, --help display this help and exit
1544 --help=short display options specific to this package
1545 --help=recursive display the short help of all the included packages
1546 -V, --version display version information and exit
1547 -q, --quiet, --silent do not print \`checking...' messages
1548 --cache-file=FILE cache test results in FILE [disabled]
1549 -C, --config-cache alias for \`--cache-file=config.cache'
1550 -n, --no-create do not create output files
1551 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1553 Installation directories:
1554 --prefix=PREFIX install architecture-independent files in PREFIX
1555 [$ac_default_prefix]
1556 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1559 By default, \`make install' will install all the files in
1560 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1561 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1562 for instance \`--prefix=\$HOME'.
1564 For better control, use the options below.
1566 Fine tuning of the installation directories:
1567 --bindir=DIR user executables [EPREFIX/bin]
1568 --sbindir=DIR system admin executables [EPREFIX/sbin]
1569 --libexecdir=DIR program executables [EPREFIX/libexec]
1570 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1571 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1572 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1573 --libdir=DIR object code libraries [EPREFIX/lib]
1574 --includedir=DIR C header files [PREFIX/include]
1575 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1578 --infodir=DIR info documentation [DATAROOTDIR/info]
1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1580 --mandir=DIR man documentation [DATAROOTDIR/man]
1581 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1582 --htmldir=DIR html documentation [DOCDIR]
1583 --dvidir=DIR dvi documentation [DOCDIR]
1584 --pdfdir=DIR pdf documentation [DOCDIR]
1585 --psdir=DIR ps documentation [DOCDIR]
1591 --program-prefix=PREFIX prepend PREFIX to installed program names
1592 --program-suffix=SUFFIX append SUFFIX to installed program names
1593 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1596 --x-includes=DIR X include files are in DIR
1597 --x-libraries=DIR X library files are in DIR
1600 --build=BUILD configure for building on BUILD [guessed]
1601 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1602 --target=TARGET configure for building compilers for TARGET [HOST]
1606 if test -n "$ac_init_help"; then
1611 --disable-option-checking ignore unrecognized --enable/--with options
1612 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1613 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1614 --enable-maintainer-mode enable make rules and dependencies not useful
1615 (and sometimes confusing) to the casual installer
1616 --enable-plugins Enable support for plugins (defaults no)
1617 --disable-largefile omit support for large files
1618 --disable-dependency-tracking speeds up one-time build
1619 --enable-dependency-tracking do not reject slow dependency extractors
1620 --enable-targets=TARGETS
1621 alternative target configurations
1622 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1623 --disable-gdbcli disable command-line interface (CLI)
1624 --disable-gdbmi disable machine-interface (MI)
1625 --enable-tui enable full-screen terminal user interface (TUI)
1626 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1627 --enable-profiling enable profiling of GDB
1628 --disable-rpath do not hardcode runtime library paths
1629 --enable-werror treat compile warnings as errors
1630 --enable-build-warnings enable build-time compiler warnings if gcc is used
1631 --enable-gdb-build-warnings
1632 enable GDB specific build-time compiler warnings if
1634 --enable-sim link gdb with simulator
1635 --enable-multi-ice build the multi-ice-gdb-server
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-separate-debug-dir=PATH
1641 look for global separate debug info in this path
1643 --with-gdb-datadir=PATH look for global separate data files in this path
1645 --with-relocated-sources=PATH
1646 automatically relocate this path for source files
1647 --with-libunwind use libunwind frame unwinding support
1648 --with-curses use the curses library instead of the termcap
1650 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1651 --with-bugurl=URL Direct users to URL to report a bug
1652 --with-zlib include zlib support (auto/yes/no) default=auto
1653 --with-libiconv-prefix=DIR
1654 search for libiconv in DIR/include and DIR/lib
1655 --with-system-readline use installed readline library
1656 --with-expat include expat support (auto/yes/no)
1657 --with-gnu-ld assume the C compiler uses GNU ld default=no
1658 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1659 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1660 --with-python include python support (auto/yes/no/<path>)
1661 --without-included-regex
1662 don't use included regex; this is the default on
1663 systems with version 2 of the GNU C library (use
1664 with caution on other system)
1665 --with-sysroot[=DIR] search for usr/lib et al within DIR
1666 --with-system-gdbinit=PATH
1667 automatically load a system-wide gdbinit file
1668 --with-tcl directory containing tcl configuration (tclConfig.sh)
1669 --with-tk directory containing tk configuration (tkConfig.sh)
1670 --with-x use the X Window System
1672 Some influential environment variables:
1673 CC C compiler command
1674 CFLAGS C compiler flags
1675 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1676 nonstandard directory <lib dir>
1677 LIBS libraries to pass to the linker, e.g. -l<library>
1678 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1679 you have headers in a nonstandard directory <include dir>
1681 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1682 the first program found out of: `bison -y', `byacc', `yacc'.
1683 YFLAGS The list of arguments that will be passed by default to $YACC.
1684 This script will default YFLAGS to the empty string to avoid a
1685 default value of `-d' given by some make applications.
1686 XMKMF Path to xmkmf, Makefile generator for X Window System
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1691 Report bugs to the package provider.
1696 if test "$ac_init_help" = "recursive"; then
1697 # If there are subdirs, report their specific --help.
1698 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699 test -d "$ac_dir" ||
1700 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708 # A ".." for each directory in $ac_dir_suffix.
1709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710 case $ac_top_builddir_sub in
1711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1721 .) # We are building in place.
1723 ac_top_srcdir=$ac_top_builddir_sub
1724 ac_abs_top_srcdir=$ac_pwd ;;
1725 [\\/]* | ?:[\\/]* ) # Absolute name.
1726 ac_srcdir=$srcdir$ac_dir_suffix;
1727 ac_top_srcdir=$srcdir
1728 ac_abs_top_srcdir=$srcdir ;;
1730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731 ac_top_srcdir=$ac_top_build_prefix$srcdir
1732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736 cd "$ac_dir" || { ac_status=$?; continue; }
1737 # Check for guested configure.
1738 if test -f "$ac_srcdir/configure.gnu"; then
1740 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741 elif test -f "$ac_srcdir/configure"; then
1743 $SHELL "$ac_srcdir/configure" --help=recursive
1745 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 cd "$ac_pwd" || { ac_status=$?; break; }
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1755 generated by GNU Autoconf 2.64
1757 Copyright (C) 2009 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext
1775 if { { ac_try="$ac_compile"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_compile") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest.$ac_objext; then :
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 } # ac_fn_c_try_compile
1806 # ac_fn_c_try_cpp LINENO
1807 # ----------------------
1808 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } >/dev/null && {
1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846 # the include files in INCLUDES and setting the cache variable VAR
1848 ac_fn_c_check_header_mongrel ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855 $as_echo_n "(cached) " >&6
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1861 # Is the header compilable?
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863 $as_echo_n "checking $2 usability... " >&6; }
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 ac_header_compiler=yes
1872 ac_header_compiler=no
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876 $as_echo "$ac_header_compiler" >&6; }
1878 # Is the header present?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880 $as_echo_n "checking $2 presence... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1885 if ac_fn_c_try_cpp "$LINENO"; then :
1886 ac_header_preproc=yes
1888 ac_header_preproc=no
1890 rm -f conftest.err conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892 $as_echo "$ac_header_preproc" >&6; }
1894 # So? What about this header?
1895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1906 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1910 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1920 eval "$3=\$ac_header_compiler"
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 } # ac_fn_c_check_header_mongrel
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_link"
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>&5
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948 { { case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_try") 2>&5
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; }; }; then :
1960 $as_echo "$as_me: program exited with status $ac_status" >&5
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=$ac_status
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1973 # -------------------------------------------------------
1974 # Tests whether HEADER exists and can be compiled using the include files in
1975 # INCLUDES, setting the cache variable VAR accordingly.
1976 ac_fn_c_check_header_compile ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982 $as_echo_n "(cached) " >&6
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1989 if ac_fn_c_try_compile "$LINENO"; then :
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001 } # ac_fn_c_check_header_compile
2003 # ac_fn_c_try_link LINENO
2004 # -----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded.
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 rm -f conftest.$ac_objext conftest$ac_exeext
2010 if { { ac_try="$ac_link"
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>conftest.err
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && {
2026 test -z "$ac_c_werror_flag" ||
2027 test ! -s conftest.err
2028 } && test -s conftest$ac_exeext && {
2029 test "$cross_compiling" = yes ||
2030 $as_test_x conftest$ac_exeext
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2039 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041 # interfere with the next link command; also delete a directory that is
2042 # left behind by Apple's compiler. We do this before executing the actions.
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047 } # ac_fn_c_try_link
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2072 # include <limits.h>
2074 # include <assert.h>
2079 /* Override any GCC internal prototype to avoid an error.
2080 Use char because int might match the return type of a GCC
2081 builtin and then its argument prototype would still apply. */
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined __stub_$2 || defined __stub___$2
2101 if ac_fn_c_try_link "$LINENO"; then :
2106 rm -f core conftest.err conftest.$ac_objext \
2107 conftest$ac_exeext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 } # ac_fn_c_check_func
2116 # ac_fn_c_check_decl LINENO SYMBOL VAR
2117 # ------------------------------------
2118 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2119 ac_fn_c_check_decl ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2123 $as_echo_n "checking whether $2 is declared... " >&6; }
2124 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2125 $as_echo_n "(cached) " >&6
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2141 if ac_fn_c_try_compile "$LINENO"; then :
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153 } # ac_fn_c_check_decl
2155 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2156 # --------------------------------------------
2157 # Tries to find the compile-time value of EXPR in a program that includes
2158 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2160 ac_fn_c_compute_int ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 if test "$cross_compiling" = yes; then
2164 # Depending upon the size, compute the lo and hi bounds.
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) >= 0)];
2178 if ac_fn_c_try_compile "$LINENO"; then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_hi=$ac_mid; break
2197 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2198 if test $ac_lo -le $ac_mid; then
2202 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2213 static int test_array [1 - 2 * !(($2) < 0)];
2220 if ac_fn_c_try_compile "$LINENO"; then :
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2229 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237 ac_lo=$ac_mid; break
2239 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2240 if test $ac_mid -le $ac_hi; then
2244 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 # Binary search between lo and hi bounds.
2255 while test "x$ac_lo" != "x$ac_hi"; do
2256 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2263 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2270 if ac_fn_c_try_compile "$LINENO"; then :
2273 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2285 static long int longval () { return $2; }
2286 static unsigned long int ulongval () { return $2; }
2293 FILE *f = fopen ("conftest.val", "w");
2298 long int i = longval ();
2301 fprintf (f, "%ld", i);
2305 unsigned long int i = ulongval ();
2308 fprintf (f, "%lu", i);
2310 /* Do not output a trailing newline, as this causes \r\n confusion
2311 on some platforms. */
2312 return ferror (f) || fclose (f) != 0;
2318 if ac_fn_c_try_run "$LINENO"; then :
2319 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2324 conftest.$ac_objext conftest.beam conftest.$ac_ext
2328 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331 } # ac_fn_c_compute_int
2333 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2334 # ----------------------------------------------------
2335 # Tries to find if the field MEMBER exists in type AGGR, after including
2336 # INCLUDES, setting cache variable VAR accordingly.
2337 ac_fn_c_check_member ()
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2341 $as_echo_n "checking for $2.$3... " >&6; }
2342 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2343 $as_echo_n "(cached) " >&6
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2358 if ac_fn_c_try_compile "$LINENO"; then :
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2368 if (sizeof ac_aggr.$3)
2374 if ac_fn_c_try_compile "$LINENO"; then :
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 } # ac_fn_c_check_member
2390 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2391 # -------------------------------------------
2392 # Tests whether TYPE exists after having included INCLUDES, setting cache
2393 # variable VAR accordingly.
2394 ac_fn_c_check_type ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398 $as_echo_n "checking for $2... " >&6; }
2399 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2400 $as_echo_n "(cached) " >&6
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2428 if ac_fn_c_try_compile "$LINENO"; then :
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 } # ac_fn_c_check_type
2443 cat >config.log <<_ACEOF
2444 This file contains any messages produced by compilers while
2445 running configure, to aid debugging if configure makes a mistake.
2447 It was created by $as_me, which was
2448 generated by GNU Autoconf 2.64. Invocation command line was
2460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2467 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2469 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2470 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2472 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2473 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2474 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2475 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 $as_echo "PATH: $as_dir"
2500 # Keep a trace of the command line.
2501 # Strip out --no-create and --no-recursion so they do not pile up.
2502 # Strip out --silent because we don't want to record it for future runs.
2503 # Also quote any args containing shell meta-characters.
2504 # Make two passes to allow for proper duplicate-argument suppression.
2508 ac_must_keep_next=false
2514 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2516 | -silent | --silent | --silen | --sile | --sil)
2519 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2522 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2524 as_fn_append ac_configure_args1 " '$ac_arg'"
2525 if test $ac_must_keep_next = true; then
2526 ac_must_keep_next=false # Got value, back to normal.
2529 *=* | --config-cache | -C | -disable-* | --disable-* \
2530 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2531 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2532 | -with-* | --with-* | -without-* | --without-* | --x)
2533 case "$ac_configure_args0 " in
2534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2537 -* ) ac_must_keep_next=true ;;
2540 as_fn_append ac_configure_args " '$ac_arg'"
2545 { ac_configure_args0=; unset ac_configure_args0;}
2546 { ac_configure_args1=; unset ac_configure_args1;}
2548 # When interrupted or exit'd, cleanup temporary files, and complete
2549 # config.log. We remove comments because anyway the quotes in there
2550 # would cause problems or look ugly.
2551 # WARNING: Use '\'' to represent an apostrophe within the trap.
2552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2553 trap 'exit_status=$?
2554 # Save into config.log some information that might help in debugging.
2559 ## ---------------- ##
2560 ## Cache variables. ##
2561 ## ---------------- ##
2564 # The following way of writing the cache mishandles newlines in values,
2566 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2567 eval ac_val=\$$ac_var
2571 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2572 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2575 _ | IFS | as_nl) ;; #(
2576 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2577 *) { eval $ac_var=; unset $ac_var;} ;;
2582 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2583 *${as_nl}ac_space=\ *)
2585 "s/'\''/'\''\\\\'\'''\''/g;
2586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2597 ## ----------------- ##
2598 ## Output variables. ##
2599 ## ----------------- ##
2602 for ac_var in $ac_subst_vars
2604 eval ac_val=\$$ac_var
2606 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2608 $as_echo "$ac_var='\''$ac_val'\''"
2612 if test -n "$ac_subst_files"; then
2614 ## ------------------- ##
2615 ## File substitutions. ##
2616 ## ------------------- ##
2619 for ac_var in $ac_subst_files
2621 eval ac_val=\$$ac_var
2623 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2625 $as_echo "$ac_var='\''$ac_val'\''"
2630 if test -s confdefs.h; then
2640 test "$ac_signal" != 0 &&
2641 $as_echo "$as_me: caught signal $ac_signal"
2642 $as_echo "$as_me: exit $exit_status"
2644 rm -f core *.core core.conftest.* &&
2645 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2648 for ac_signal in 1 2 13 15; do
2649 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2653 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2654 rm -f -r conftest* confdefs.h
2656 $as_echo "/* confdefs.h */" > confdefs.h
2658 # Predefined preprocessor variables.
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_NAME "$PACKAGE_NAME"
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE_STRING "$PACKAGE_STRING"
2676 cat >>confdefs.h <<_ACEOF
2677 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2680 cat >>confdefs.h <<_ACEOF
2681 #define PACKAGE_URL "$PACKAGE_URL"
2685 # Let the site file select an alternate cache file if it wants to.
2686 # Prefer an explicitly selected file to automatically selected ones.
2689 if test -n "$CONFIG_SITE"; then
2690 ac_site_file1=$CONFIG_SITE
2691 elif test "x$prefix" != xNONE; then
2692 ac_site_file1=$prefix/share/config.site
2693 ac_site_file2=$prefix/etc/config.site
2695 ac_site_file1=$ac_default_prefix/share/config.site
2696 ac_site_file2=$ac_default_prefix/etc/config.site
2698 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2700 test "x$ac_site_file" = xNONE && continue
2701 if test -r "$ac_site_file"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2703 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2704 sed 's/^/| /' "$ac_site_file" >&5
2709 if test -r "$cache_file"; then
2710 # Some versions of bash will fail to source /dev/null (special
2711 # files actually), so we avoid doing that.
2712 if test -f "$cache_file"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2714 $as_echo "$as_me: loading cache $cache_file" >&6;}
2716 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2717 *) . "./$cache_file";;
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2722 $as_echo "$as_me: creating cache $cache_file" >&6;}
2726 gl_header_list="$gl_header_list sys/mman.h"
2727 gl_func_list="$gl_func_list mprotect"
2728 gl_func_list="$gl_func_list memchr"
2729 gl_header_list="$gl_header_list stddef.h"
2730 gl_header_list="$gl_header_list stdint.h"
2731 gl_header_list="$gl_header_list wchar.h"
2732 gl_header_list="$gl_header_list string.h"
2733 # Check that the precious variables saved in the cache have kept the same
2735 ac_cache_corrupted=false
2736 for ac_var in $ac_precious_vars; do
2737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2738 eval ac_new_set=\$ac_env_${ac_var}_set
2739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2740 eval ac_new_val=\$ac_env_${ac_var}_value
2741 case $ac_old_set,$ac_new_set in
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2744 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2745 ac_cache_corrupted=: ;;
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2748 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2749 ac_cache_corrupted=: ;;
2752 if test "x$ac_old_val" != "x$ac_new_val"; then
2753 # differences in whitespace do not lead to failure.
2754 ac_old_val_w=`echo x $ac_old_val`
2755 ac_new_val_w=`echo x $ac_new_val`
2756 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2758 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2759 ac_cache_corrupted=:
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2762 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2763 eval $ac_var=\$ac_old_val
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2766 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2768 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2771 # Pass precious variables to config.status.
2772 if test "$ac_new_set" = set; then
2774 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2775 *) ac_arg=$ac_var=$ac_new_val ;;
2777 case " $ac_configure_args " in
2778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2779 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2783 if $ac_cache_corrupted; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2787 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2788 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2790 ## -------------------- ##
2791 ## Main body of script. ##
2792 ## -------------------- ##
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 ac_config_headers="$ac_config_headers config.h:config.in"
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2808 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2809 # Check whether --enable-maintainer-mode was given.
2810 if test "${enable_maintainer_mode+set}" = set; then :
2811 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2813 USE_MAINTAINER_MODE=no
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2817 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2818 if test $USE_MAINTAINER_MODE = yes; then
2819 MAINTAINER_MODE_TRUE=
2820 MAINTAINER_MODE_FALSE='#'
2822 MAINTAINER_MODE_TRUE='#'
2823 MAINTAINER_MODE_FALSE=
2826 MAINT=$MAINTAINER_MODE_TRUE
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2874 if test -z "$ac_cv_prog_CC"; then
2876 # Extract the first word of "gcc", so it can be a program name with args.
2877 set dummy gcc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
2883 if test -n "$ac_ct_CC"; then
2884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_ac_ct_CC="gcc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904 if test -n "$ac_ct_CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2906 $as_echo "$ac_ct_CC" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2912 if test "x$ac_ct_CC" = x; then
2915 case $cross_compiling:$ac_tool_warned in
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2927 if test -z "$CC"; then
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}cc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_CC="${ac_tool_prefix}cc"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2968 if test -z "$CC"; then
2969 # Extract the first word of "cc", so it can be a program name with args.
2970 set dummy cc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_CC+set}" = set; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2988 ac_prog_rejected=yes
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 if test $ac_prog_rejected = yes; then
3000 # We found a bogon in the path, so make sure we never use it.
3001 set dummy $ac_cv_prog_CC
3003 if test $# != 0; then
3004 # We chose a different compiler from the bogus one.
3005 # However, it has the same basename, so the bogon will be chosen
3006 # first if we set CC to just the basename; use the full file name.
3008 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3024 if test -z "$CC"; then
3025 if test -n "$ac_tool_prefix"; then
3026 for ac_prog in cl.exe
3028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_CC+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 if test -n "$CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3065 test -n "$CC" && break
3068 if test -z "$CC"; then
3070 for ac_prog in cl.exe
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$ac_ct_CC"; then
3080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_ac_ct_CC="$ac_prog"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100 if test -n "$ac_ct_CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3102 $as_echo "$ac_ct_CC" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3109 test -n "$ac_ct_CC" && break
3112 if test "x$ac_ct_CC" = x; then
3115 case $cross_compiling:$ac_tool_warned in
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119 ac_tool_warned=yes ;;
3128 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error "no acceptable C compiler found in \$PATH
3131 See \`config.log' for more details." "$LINENO" 5; }
3133 # Provide some information about the compiler.
3134 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3137 for ac_option in --version -v -V -qversion; do
3138 { { ac_try="$ac_compiler $ac_option >&5"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3147 if test -s conftest.err; then
3149 ... rest of stderr output deleted ...
3150 10q' conftest.err >conftest.er1
3151 cat conftest.er1 >&5
3152 rm -f conftest.er1 conftest.err
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3175 $as_echo_n "checking for C compiler default output file name... " >&6; }
3176 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178 # The possible output files:
3179 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3182 for ac_file in $ac_files
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3186 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3191 if { { ac_try="$ac_link_default"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link_default") 2>&5
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then :
3202 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3204 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3205 # so that the user can short-circuit this test for compilers unknown to
3207 for ac_file in $ac_files ''
3209 test -f "$ac_file" || continue
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3214 # We found the default executable, but exeext='' is most
3218 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3220 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 # We set ac_cv_exeext here because the later test for it is not
3223 # safe: cross compilers may not add the suffix if given an `-o'
3224 # argument, so we may need to know it at that point already.
3225 # Even if this section looks crufty: it has the advantage of
3232 test "$ac_cv_exeext" = no && ac_cv_exeext=
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3238 $as_echo "$ac_file" >&6; }
3239 if test -z "$ac_file"; then :
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 { as_fn_set_status 77
3246 as_fn_error "C compiler cannot create executables
3247 See \`config.log' for more details." "$LINENO" 5; }; }
3249 ac_exeext=$ac_cv_exeext
3251 # Check that the compiler produces executables we can run. If not, either
3252 # the compiler is broken, or we cross compile.
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3254 $as_echo_n "checking whether the C compiler works... " >&6; }
3255 # If not cross compiling, check that we can run a simple program.
3256 if test "$cross_compiling" != yes; then
3257 if { ac_try='./$ac_file'
3258 { { case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_try") 2>&5
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; }; then
3270 if test "$cross_compiling" = maybe; then
3273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error "cannot run C compiled programs.
3276 If you meant to cross compile, use \`--host'.
3277 See \`config.log' for more details." "$LINENO" 5; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3284 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3285 ac_clean_files=$ac_clean_files_save
3286 # Check that the compiler produces executables we can run. If not, either
3287 # the compiler is broken, or we cross compile.
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3289 $as_echo_n "checking whether we are cross compiling... " >&6; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3291 $as_echo "$cross_compiling" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3294 $as_echo_n "checking for suffix of executables... " >&6; }
3295 if { { ac_try="$ac_link"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_link") 2>&5
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3307 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3308 # work properly (i.e., refer to `conftest.exe'), while it won't with
3310 for ac_file in conftest.exe conftest conftest.*; do
3311 test -f "$ac_file" || continue
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error "cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details." "$LINENO" 5; }
3325 rm -f conftest$ac_cv_exeext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3327 $as_echo "$ac_cv_exeext" >&6; }
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3333 $as_echo_n "checking for suffix of object files... " >&6; }
3334 if test "${ac_cv_objext+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3348 rm -f conftest.o conftest.obj
3349 if { { ac_try="$ac_compile"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_compile") 2>&5
3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359 test $ac_status = 0; }; then :
3360 for ac_file in conftest.o conftest.obj conftest.*; do
3361 test -f "$ac_file" || continue;
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3364 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3369 $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error "cannot compute suffix of object files: cannot compile
3375 See \`config.log' for more details." "$LINENO" 5; }
3377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3380 $as_echo "$ac_cv_objext" >&6; }
3381 OBJEXT=$ac_cv_objext
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3384 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3385 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3402 if ac_fn_c_try_compile "$LINENO"; then :
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3412 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3413 if test $ac_compiler_gnu = yes; then
3418 ac_test_CFLAGS=${CFLAGS+set}
3419 ac_save_CFLAGS=$CFLAGS
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3421 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3422 if test "${ac_cv_prog_cc_g+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3425 ac_save_c_werror_flag=$ac_c_werror_flag
3426 ac_c_werror_flag=yes
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3440 if ac_fn_c_try_compile "$LINENO"; then :
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3455 if ac_fn_c_try_compile "$LINENO"; then :
3458 ac_c_werror_flag=$ac_save_c_werror_flag
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 if ac_fn_c_try_compile "$LINENO"; then :
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_c_werror_flag=$ac_save_c_werror_flag
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3482 $as_echo "$ac_cv_prog_cc_g" >&6; }
3483 if test "$ac_test_CFLAGS" = set; then
3484 CFLAGS=$ac_save_CFLAGS
3485 elif test $ac_cv_prog_cc_g = yes; then
3486 if test "$GCC" = yes; then
3492 if test "$GCC" = yes; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3499 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3500 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 ac_cv_prog_cc_c89=no
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3509 #include <sys/types.h>
3510 #include <sys/stat.h>
3511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3512 struct buf { int x; };
3513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3514 static char *e (p, i)
3520 static char *f (char * (*g) (char **, int), char **p, ...)
3525 s = g (p, va_arg (v,int));
3530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3531 function prototypes and stuff, but not '\xHH' hex character constants.
3532 These don't provoke an error unfortunately, instead are silently treated
3533 as 'x'. The following induces an error, until -std is added to get
3534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3535 array size at least. It's necessary to write '\x00'==0 to get something
3536 that's true only with -std. */
3537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3540 inside strings and character constants. */
3542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3544 int test (int i, double x);
3545 struct s1 {int (*f) (int a);};
3546 struct s2 {int (*f) (double a);};
3547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3553 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3558 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3559 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3561 CC="$ac_save_CC $ac_arg"
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_cv_prog_cc_c89=$ac_arg
3565 rm -f core conftest.err conftest.$ac_objext
3566 test "x$ac_cv_prog_cc_c89" != "xno" && break
3568 rm -f conftest.$ac_ext
3573 case "x$ac_cv_prog_cc_c89" in
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3576 $as_echo "none needed" >&6; } ;;
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3579 $as_echo "unsupported" >&6; } ;;
3581 CC="$CC $ac_cv_prog_cc_c89"
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3583 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3585 if test "x$ac_cv_prog_cc_c89" != xno; then :
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3597 for ac_t in install-sh install.sh shtool; do
3598 if test -f "$ac_dir/$ac_t"; then
3600 ac_install_sh="$ac_aux_dir/$ac_t -c"
3605 if test -z "$ac_aux_dir"; then
3606 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3609 # These three variables are undocumented and unsupported,
3610 # and are intended to be withdrawn in a future Autoconf release.
3611 # They can cause serious problems if a builder's source tree is in a directory
3612 # whose full name contains unusual characters.
3613 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3614 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3615 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3618 # Make sure we can run config.sub.
3619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3620 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3623 $as_echo_n "checking build system type... " >&6; }
3624 if test "${ac_cv_build+set}" = set; then :
3625 $as_echo_n "(cached) " >&6
3627 ac_build_alias=$build_alias
3628 test "x$ac_build_alias" = x &&
3629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3630 test "x$ac_build_alias" = x &&
3631 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3633 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3637 $as_echo "$ac_cv_build" >&6; }
3638 case $ac_cv_build in
3640 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3643 ac_save_IFS=$IFS; IFS='-'
3649 # Remember, the first character of IFS is used to create $*,
3650 # except with old shells:
3653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3657 $as_echo_n "checking host system type... " >&6; }
3658 if test "${ac_cv_host+set}" = set; then :
3659 $as_echo_n "(cached) " >&6
3661 if test "x$host_alias" = x; then
3662 ac_cv_host=$ac_cv_build
3664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3665 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3670 $as_echo "$ac_cv_host" >&6; }
3673 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3676 ac_save_IFS=$IFS; IFS='-'
3682 # Remember, the first character of IFS is used to create $*,
3683 # except with old shells:
3686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3696 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3697 # On Suns, sometimes $CPP names a directory.
3698 if test -n "$CPP" && test -d "$CPP"; then
3701 if test -z "$CPP"; then
3702 if test "${ac_cv_prog_CPP+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3705 # Double quotes because CPP needs to be expanded
3706 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3709 for ac_c_preproc_warn_flag in '' yes
3711 # Use a header file that comes with gcc, so configuring glibc
3712 # with a fresh cross-compiler works.
3713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714 # <limits.h> exists even on freestanding compilers.
3715 # On the NeXT, cc -E runs the code through the compiler's parser,
3716 # not just through cpp. "Syntax error" is here to catch this case.
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3720 # include <limits.h>
3722 # include <assert.h>
3726 if ac_fn_c_try_cpp "$LINENO"; then :
3729 # Broken: fails on valid input.
3732 rm -f conftest.err conftest.$ac_ext
3734 # OK, works on sane cases. Now check whether nonexistent headers
3735 # can be detected and how.
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #include <ac_nonexistent.h>
3740 if ac_fn_c_try_cpp "$LINENO"; then :
3741 # Broken: success on invalid input.
3744 # Passes both tests.
3748 rm -f conftest.err conftest.$ac_ext
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.err conftest.$ac_ext
3753 if $ac_preproc_ok; then :
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3766 $as_echo "$CPP" >&6; }
3768 for ac_c_preproc_warn_flag in '' yes
3770 # Use a header file that comes with gcc, so configuring glibc
3771 # with a fresh cross-compiler works.
3772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3773 # <limits.h> exists even on freestanding compilers.
3774 # On the NeXT, cc -E runs the code through the compiler's parser,
3775 # not just through cpp. "Syntax error" is here to catch this case.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3779 # include <limits.h>
3781 # include <assert.h>
3785 if ac_fn_c_try_cpp "$LINENO"; then :
3788 # Broken: fails on valid input.
3791 rm -f conftest.err conftest.$ac_ext
3793 # OK, works on sane cases. Now check whether nonexistent headers
3794 # can be detected and how.
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 #include <ac_nonexistent.h>
3799 if ac_fn_c_try_cpp "$LINENO"; then :
3800 # Broken: success on invalid input.
3803 # Passes both tests.
3807 rm -f conftest.err conftest.$ac_ext
3810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3811 rm -f conftest.err conftest.$ac_ext
3812 if $ac_preproc_ok; then :
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3818 See \`config.log' for more details." "$LINENO" 5; }
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3829 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3830 if test "${ac_cv_path_GREP+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3833 if test -z "$GREP"; then
3834 ac_path_GREP_found=false
3835 # Loop through the user's path and test for each of PROGNAME-LIST
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3840 test -z "$as_dir" && as_dir=.
3841 for ac_prog in grep ggrep; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3844 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3845 # Check for GNU ac_path_GREP and select it if it is found.
3846 # Check for GNU $ac_path_GREP
3847 case `"$ac_path_GREP" --version 2>&1` in
3849 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3852 $as_echo_n 0123456789 >"conftest.in"
3855 cat "conftest.in" "conftest.in" >"conftest.tmp"
3856 mv "conftest.tmp" "conftest.in"
3857 cp "conftest.in" "conftest.nl"
3858 $as_echo 'GREP' >> "conftest.nl"
3859 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3861 as_fn_arith $ac_count + 1 && ac_count=$as_val
3862 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3863 # Best one so far, save it but keep looking for a better one
3864 ac_cv_path_GREP="$ac_path_GREP"
3865 ac_path_GREP_max=$ac_count
3867 # 10*(2^10) chars as input seems more than enough
3868 test $ac_count -gt 10 && break
3870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3873 $ac_path_GREP_found && break 3
3878 if test -z "$ac_cv_path_GREP"; then
3879 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3882 ac_cv_path_GREP=$GREP
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3887 $as_echo "$ac_cv_path_GREP" >&6; }
3888 GREP="$ac_cv_path_GREP"
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3892 $as_echo_n "checking for egrep... " >&6; }
3893 if test "${ac_cv_path_EGREP+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
3896 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3897 then ac_cv_path_EGREP="$GREP -E"
3899 if test -z "$EGREP"; then
3900 ac_path_EGREP_found=false
3901 # Loop through the user's path and test for each of PROGNAME-LIST
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in egrep; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3910 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3911 # Check for GNU ac_path_EGREP and select it if it is found.
3912 # Check for GNU $ac_path_EGREP
3913 case `"$ac_path_EGREP" --version 2>&1` in
3915 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3918 $as_echo_n 0123456789 >"conftest.in"
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 $as_echo 'EGREP' >> "conftest.nl"
3925 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927 as_fn_arith $ac_count + 1 && ac_count=$as_val
3928 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_EGREP="$ac_path_EGREP"
3931 ac_path_EGREP_max=$ac_count
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939 $ac_path_EGREP_found && break 3
3944 if test -z "$ac_cv_path_EGREP"; then
3945 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3948 ac_cv_path_EGREP=$EGREP
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3954 $as_echo "$ac_cv_path_EGREP" >&6; }
3955 EGREP="$ac_cv_path_EGREP"
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3959 $as_echo_n "checking for ANSI C header files... " >&6; }
3960 if test "${ac_cv_header_stdc+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979 ac_cv_header_stdc=yes
3981 ac_cv_header_stdc=no
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 if test $ac_cv_header_stdc = yes; then
3986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 $EGREP "memchr" >/dev/null 2>&1; then :
3996 ac_cv_header_stdc=no
4002 if test $ac_cv_header_stdc = yes; then
4003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 $EGREP "free" >/dev/null 2>&1; then :
4013 ac_cv_header_stdc=no
4019 if test $ac_cv_header_stdc = yes; then
4020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4021 if test "$cross_compiling" = yes; then :
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4028 #if ((' ' & 0x0FF) == 0x020)
4029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4032 # define ISLOWER(c) \
4033 (('a' <= (c) && (c) <= 'i') \
4034 || ('j' <= (c) && (c) <= 'r') \
4035 || ('s' <= (c) && (c) <= 'z'))
4036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4044 for (i = 0; i < 256; i++)
4045 if (XOR (islower (i), ISLOWER (i))
4046 || toupper (i) != TOUPPER (i))
4051 if ac_fn_c_try_run "$LINENO"; then :
4054 ac_cv_header_stdc=no
4056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4057 conftest.$ac_objext conftest.beam conftest.$ac_ext
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4063 $as_echo "$ac_cv_header_stdc" >&6; }
4064 if test $ac_cv_header_stdc = yes; then
4066 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4072 inttypes.h stdint.h unistd.h
4074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4077 eval as_val=\$$as_ac_Header
4078 if test "x$as_val" = x""yes; then :
4079 cat >>confdefs.h <<_ACEOF
4080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4092 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4099 if test "$MINIX" = yes; then
4101 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4104 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4107 $as_echo "#define _MINIX 1" >>confdefs.h
4114 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4121 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4122 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4128 # define __EXTENSIONS__ 1
4129 $ac_includes_default
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_safe_to_define___extensions__=yes
4141 ac_cv_safe_to_define___extensions__=no
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4146 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4147 test $ac_cv_safe_to_define___extensions__ = yes &&
4148 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4150 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4152 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4154 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4156 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4159 if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4167 if test -n "$RANLIB"; then
4168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 RANLIB=$ac_cv_prog_RANLIB
4188 if test -n "$RANLIB"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4190 $as_echo "$RANLIB" >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4198 if test -z "$ac_cv_prog_RANLIB"; then
4199 ac_ct_RANLIB=$RANLIB
4200 # Extract the first word of "ranlib", so it can be a program name with args.
4201 set dummy ranlib; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4207 if test -n "$ac_ct_RANLIB"; then
4208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_ac_ct_RANLIB="ranlib"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4228 if test -n "$ac_ct_RANLIB"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4230 $as_echo "$ac_ct_RANLIB" >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4236 if test "x$ac_ct_RANLIB" = x; then
4239 case $cross_compiling:$ac_tool_warned in
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4245 RANLIB=$ac_ct_RANLIB
4248 RANLIB="$ac_cv_prog_RANLIB"
4259 # Code from module arg-nonnull:
4260 # Code from module c++defs:
4261 # Code from module extensions:
4263 # Code from module include_next:
4264 # Code from module memchr:
4265 # Code from module memmem:
4266 # Code from module memmem-simple:
4267 # Code from module multiarch:
4268 # Code from module stddef:
4269 # Code from module stdint:
4270 # Code from module string:
4271 # Code from module warn-on-use:
4272 # Code from module wchar:
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4275 $as_echo_n "checking target system type... " >&6; }
4276 if test "${ac_cv_target+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4279 if test "x$target_alias" = x; then
4280 ac_cv_target=$ac_cv_host
4282 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4283 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4288 $as_echo "$ac_cv_target" >&6; }
4289 case $ac_cv_target in
4291 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4293 target=$ac_cv_target
4294 ac_save_IFS=$IFS; IFS='-'
4300 # Remember, the first character of IFS is used to create $*,
4301 # except with old shells:
4304 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4307 # The aliases save the names the user supplied, while $host etc.
4308 # will get canonicalized.
4309 test -n "$target_alias" &&
4310 test "$program_prefix$program_suffix$program_transform_name" = \
4312 program_prefix=${target_alias}-
4314 # The tests for host and target for $enable_largefile require
4319 # As the $enable_largefile decision depends on --enable-plugins we must set it
4320 # even in directories otherwise not depending on the $plugins option.
4323 # Check whether --enable-plugins was given.
4324 if test "${enable_plugins+set}" = set; then :
4325 enableval=$enable_plugins; case "${enableval}" in
4326 yes | "") plugins=yes ;;
4337 sparc-*-solaris*|i[3-7]86-*-solaris*)
4338 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4339 # are mutually exclusive; and without procfs support, the bfd/ elf module
4340 # cannot provide certain routines such as elfcore_write_prpsinfo
4341 # or elfcore_write_prstatus. So unless the user explicitly requested
4342 # large-file support through the --enable-largefile switch, disable
4343 # large-file support in favor of procfs support.
4344 test "${target}" = "${host}" -a "x$plugins" = xno \
4345 && : ${enable_largefile="no"}
4349 # Check whether --enable-largefile was given.
4350 if test "${enable_largefile+set}" = set; then :
4351 enableval=$enable_largefile;
4354 if test "$enable_largefile" != no; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4357 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4358 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4361 ac_cv_sys_largefile_CC=no
4362 if test "$GCC" != yes; then
4365 # IRIX 6.2 and later do not support large files by default,
4366 # so use the C compiler's -n32 option if that helps.
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 /* Check that off_t can represent 2**63 - 1 correctly.
4371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4372 since some C++ compilers masquerading as C compilers
4373 incorrectly reject 9223372036854775807. */
4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4376 && LARGE_OFF_T % 2147483647 == 1)
4386 if ac_fn_c_try_compile "$LINENO"; then :
4389 rm -f core conftest.err conftest.$ac_objext
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392 ac_cv_sys_largefile_CC=' -n32'; break
4394 rm -f core conftest.err conftest.$ac_objext
4398 rm -f conftest.$ac_ext
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4402 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4403 if test "$ac_cv_sys_largefile_CC" != no; then
4404 CC=$CC$ac_cv_sys_largefile_CC
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4408 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4409 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <sys/types.h>
4416 /* Check that off_t can represent 2**63 - 1 correctly.
4417 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4418 since some C++ compilers masquerading as C compilers
4419 incorrectly reject 9223372036854775807. */
4420 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4421 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4422 && LARGE_OFF_T % 2147483647 == 1)
4432 if ac_fn_c_try_compile "$LINENO"; then :
4433 ac_cv_sys_file_offset_bits=no; break
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #define _FILE_OFFSET_BITS 64
4439 #include <sys/types.h>
4440 /* Check that off_t can represent 2**63 - 1 correctly.
4441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442 since some C++ compilers masquerading as C compilers
4443 incorrectly reject 9223372036854775807. */
4444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446 && LARGE_OFF_T % 2147483647 == 1)
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457 ac_cv_sys_file_offset_bits=64; break
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 ac_cv_sys_file_offset_bits=unknown
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4465 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4466 case $ac_cv_sys_file_offset_bits in #(
4469 cat >>confdefs.h <<_ACEOF
4470 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4475 if test $ac_cv_sys_file_offset_bits = unknown; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4477 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4478 if test "${ac_cv_sys_large_files+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484 #include <sys/types.h>
4485 /* Check that off_t can represent 2**63 - 1 correctly.
4486 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4487 since some C++ compilers masquerading as C compilers
4488 incorrectly reject 9223372036854775807. */
4489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4491 && LARGE_OFF_T % 2147483647 == 1)
4501 if ac_fn_c_try_compile "$LINENO"; then :
4502 ac_cv_sys_large_files=no; break
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #define _LARGE_FILES 1
4508 #include <sys/types.h>
4509 /* Check that off_t can represent 2**63 - 1 correctly.
4510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511 since some C++ compilers masquerading as C compilers
4512 incorrectly reject 9223372036854775807. */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515 && LARGE_OFF_T % 2147483647 == 1)
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526 ac_cv_sys_large_files=1; break
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 ac_cv_sys_large_files=unknown
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4534 $as_echo "$ac_cv_sys_large_files" >&6; }
4535 case $ac_cv_sys_large_files in #(
4538 cat >>confdefs.h <<_ACEOF
4539 #define _LARGE_FILES $ac_cv_sys_large_files
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4552 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4553 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4556 am_cv_prog_cc_stdc=no
4558 # Don't try gcc -ansi; that turns off useful extensions and
4559 # breaks some systems' header files.
4560 # AIX -qlanglvl=ansi
4561 # Ultrix and OSF/1 -std1
4562 # HP-UX 10.20 and later -Ae
4563 # HP-UX older versions -Aa -D_HPUX_SOURCE
4564 # SVR4 -Xc -D__EXTENSIONS__
4565 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4567 CC="$ac_save_CC $ac_arg"
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4572 #include <sys/types.h>
4573 #include <sys/stat.h>
4574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4575 struct buf { int x; };
4576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4577 static char *e (p, i)
4583 static char *f (char * (*g) (char **, int), char **p, ...)
4588 s = g (p, va_arg (v,int));
4592 int test (int i, double x);
4593 struct s1 {int (*f) (int a);};
4594 struct s2 {int (*f) (double a);};
4595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4603 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 am_cv_prog_cc_stdc="$ac_arg"; break
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 if test -z "$am_cv_prog_cc_stdc"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4620 $as_echo "none needed" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4623 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4625 case "x$am_cv_prog_cc_stdc" in
4627 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4632 for ac_dir in .. "$srcdir"/..; do
4633 for ac_t in install-sh install.sh shtool; do
4634 if test -f "$ac_dir/$ac_t"; then
4636 ac_install_sh="$ac_aux_dir/$ac_t -c"
4641 if test -z "$ac_aux_dir"; then
4642 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4645 # These three variables are undocumented and unsupported,
4646 # and are intended to be withdrawn in a future Autoconf release.
4647 # They can cause serious problems if a builder's source tree is in a directory
4648 # whose full name contains unusual characters.
4649 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4650 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4651 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4656 # Dependency checking.
4657 rm -rf .tst 2>/dev/null
4658 mkdir .tst 2>/dev/null
4659 if test -d .tst; then
4664 rmdir .tst 2>/dev/null
4666 DEPDIR="${am__leading_dot}deps"
4668 ac_config_commands="$ac_config_commands depdir"
4671 depcc="$CC" am_compiler_list=
4673 am_depcomp=$ac_aux_dir/depcomp
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4675 $as_echo_n "checking dependency style of $depcc... " >&6; }
4676 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4679 if test -f "$am_depcomp"; then
4680 # We make a subdir and do the tests there. Otherwise we can end up
4681 # making bogus files that we don't know about and never remove. For
4682 # instance it was reported that on HP-UX the gcc test will end up
4683 # making a dummy file named `D' -- because `-MD' means `put the output
4686 # Copy depcomp to subdir because otherwise we won't find it if we're
4687 # using a relative directory.
4688 cp "$am_depcomp" conftest.dir
4690 # We will build objects and dependencies in a subdirectory because
4691 # it helps to detect inapplicable dependency modes. For instance
4692 # both Tru64's cc and ICC support -MD to output dependencies as a
4693 # side effect of compilation, but ICC will put the dependencies in
4694 # the current directory while Tru64 will put them in the object
4698 am_cv_CC_dependencies_compiler_type=none
4699 if test "$am_compiler_list" = ""; then
4700 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4702 for depmode in $am_compiler_list; do
4703 if test $depmode = none; then break; fi
4705 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4706 # Setup a source with many dependencies, because some compilers
4707 # like to wrap large dependency lists on column 80 (with \), and
4708 # we should not choose a depcomp mode which is confused by this.
4710 # We need to recreate these files for each test, as the compiler may
4711 # overwrite some of them when testing with obscure command lines.
4712 # This happens at least with the AIX C compiler.
4714 for i in 1 2 3 4 5 6; do
4715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4716 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4717 # Solaris 8's {/usr,}/bin/sh.
4718 touch sub/conftst$i.h
4720 echo "include sub/conftest.Po" > confmf
4722 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4723 # mode. It turns out that the SunPro C++ compiler does not properly
4724 # handle `-M -o', and we need to detect this.
4725 depcmd="depmode=$depmode \
4726 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4728 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4729 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4730 if env $depcmd > conftest.err 2>&1 &&
4731 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4732 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4733 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4734 # icc doesn't choke on unknown options, it will just issue warnings
4735 # or remarks (even with -Werror). So we grep stderr for any message
4736 # that says an option was ignored or not supported.
4737 # When given -MP, icc 7.0 and 7.1 complain thusly:
4738 # icc: Command line warning: ignoring option '-M'; no argument required
4739 # The diagnosis changed in icc 8.0:
4740 # icc: Command line remark: option '-MP' not supported
4741 if (grep 'ignoring option' conftest.err ||
4742 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4743 am_cv_CC_dependencies_compiler_type=$depmode
4744 $as_echo "$as_me:$LINENO: success" >&5
4748 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4749 sed -e 's/^/| /' < conftest.err >&5
4755 am_cv_CC_dependencies_compiler_type=none
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4760 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4761 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4762 then as_fn_error "no usable dependency style found" "$LINENO" 5
4763 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4768 # Check for the 'make' the user wants to use.
4771 # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_MAKE+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4778 if test -n "$MAKE"; then
4779 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_MAKE="$ac_prog"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 MAKE=$ac_cv_prog_MAKE
4799 if test -n "$MAKE"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4801 $as_echo "$MAKE" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4808 test -n "$MAKE" && break
4812 case "`$MAKE --version 2>&1 | sed 1q`" in
4817 if test "$MAKE_IS_GNU" = yes; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4826 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4828 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4829 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4830 $as_echo_n "(cached) " >&6
4832 cat >conftest.make <<\_ACEOF
4835 @echo '@@@%%%=$(MAKE)=@@@%%%'
4837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4838 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4840 eval ac_cv_prog_make_${ac_make}_set=yes;;
4842 eval ac_cv_prog_make_${ac_make}_set=no;;
4846 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4848 $as_echo "yes" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 SET_MAKE="MAKE=${MAKE-make}"
4868 # If we haven't got the data from the intl directory,
4869 # assume NLS is disabled.
4878 if test -f ../intl/config.intl; then
4879 . ../intl/config.intl
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4882 $as_echo_n "checking whether NLS is requested... " >&6; }
4883 if test x"$USE_NLS" != xyes; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
4890 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4894 $as_echo_n "checking for catalogs to be installed... " >&6; }
4895 # Look for .po and .gmo files in the source directory.
4898 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4899 # If there aren't any .gmo files the shell will give us the
4900 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4902 case "$cat" in *\**)
4905 # The quadruple backslash is collapsed to a double backslash
4906 # by the backticks, then collapsed again by the double quotes,
4907 # leaving us with one backslash in the sed expression (right
4908 # before the dot that mustn't act as a wildcard).
4909 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4910 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4911 # The user is allowed to set LINGUAS to a list of languages to
4912 # install catalogs for. If it's empty that means "all of them."
4913 if test "x$LINGUAS" = x; then
4914 CATALOGS="$CATALOGS $cat"
4915 XLINGUAS="$XLINGUAS $lang"
4917 case "$LINGUAS" in *$lang*)
4918 CATALOGS="$CATALOGS $cat"
4919 XLINGUAS="$XLINGUAS $lang"
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4926 $as_echo "$LINGUAS" >&6; }
4939 localedir='${datadir}/locale'
4942 if test x"$USE_NLS" = xyes; then
4943 CONFIG_ALL="$CONFIG_ALL all-po"
4944 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4945 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4946 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4953 LIBC_FATAL_STDERR_=1
4954 export LIBC_FATAL_STDERR_
4960 for ac_header in $gl_header_list
4962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4964 eval as_val=\$$as_ac_Header
4965 if test "x$as_val" = x""yes; then :
4966 cat >>confdefs.h <<_ACEOF
4967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4982 for ac_func in $gl_func_list
4984 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4985 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4986 eval as_val=\$$as_ac_var
4987 if test "x$as_val" = x""yes; then :
4988 cat >>confdefs.h <<_ACEOF
4989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5015 GNULIB_STRCASESTR=0;
5022 GNULIB_MBSCASECMP=0;
5023 GNULIB_MBSNCASECMP=0;
5024 GNULIB_MBSPCASECMP=0;
5025 GNULIB_MBSCASESTR=0;
5033 GNULIB_STRVERSCMP=0;
5038 HAVE_DECL_MEMRCHR=1;
5044 HAVE_DECL_STRNDUP=1;
5045 HAVE_DECL_STRNLEN=1;
5049 HAVE_DECL_STRTOK_R=1;
5050 HAVE_DECL_STRSIGNAL=1;
5057 REPLACE_STRCASESTR=0;
5062 REPLACE_STRSIGNAL=0;
5064 UNDEFINE_STRTOK_R=0;
5078 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5079 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5080 # irrelevant for anonymous mappings.
5081 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5082 if test "x$ac_cv_func_mmap" = x""yes; then :
5089 # Try to allow MAP_ANONYMOUS.
5090 gl_have_mmap_anonymous=no
5091 if test $gl_have_mmap = yes; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5093 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5097 #include <sys/mman.h>
5098 #ifdef MAP_ANONYMOUS
5099 I cant identify this map.
5103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5104 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5105 gl_have_mmap_anonymous=yes
5109 if test $gl_have_mmap_anonymous != yes; then
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5113 #include <sys/mman.h>
5115 I cant identify this map.
5119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5120 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5122 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5124 gl_have_mmap_anonymous=yes
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5130 $as_echo "$gl_have_mmap_anonymous" >&6; }
5131 if test $gl_have_mmap_anonymous = yes; then
5133 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5161 if test $ac_cv_func_memchr = yes; then
5162 # Detect platform-specific bugs in some versions of glibc:
5163 # memchr should not dereference anything with length 0
5164 # http://bugzilla.redhat.com/499689
5165 # memchr should not dereference overestimated length after a match
5166 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5167 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5168 # Assume that memchr works on platforms that lack mprotect.
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5170 $as_echo_n "checking whether memchr works... " >&6; }
5171 if test "${gl_cv_func_memchr_works+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5174 if test "$cross_compiling" = yes; then :
5175 gl_cv_func_memchr_works="guessing no"
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5183 # include <unistd.h>
5184 # include <sys/types.h>
5185 # include <sys/mman.h>
5196 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5197 # if HAVE_MAP_ANONYMOUS
5198 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5200 # else /* !HAVE_MAP_ANONYMOUS */
5201 const int flags = MAP_FILE | MAP_PRIVATE;
5202 int fd = open ("/dev/zero", O_RDONLY, 0666);
5206 int pagesize = getpagesize ();
5208 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5210 if (two_pages != (char *)(-1)
5211 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5212 fence = two_pages + pagesize;
5217 if (memchr (fence, 0, 0))
5219 strcpy (fence - 9, "12345678");
5220 if (memchr (fence - 9, 0, 79) != fence - 1)
5229 if ac_fn_c_try_run "$LINENO"; then :
5230 gl_cv_func_memchr_works=yes
5232 gl_cv_func_memchr_works=no
5234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5235 conftest.$ac_objext conftest.beam conftest.$ac_ext
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5240 $as_echo "$gl_cv_func_memchr_works" >&6; }
5241 if test "$gl_cv_func_memchr_works" != yes; then
5247 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5256 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5259 for ac_header in bp-sym.h
5261 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5262 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5263 cat >>confdefs.h <<_ACEOF
5264 #define HAVE_BP_SYM_H 1
5275 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5276 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5282 cat >>confdefs.h <<_ACEOF
5283 #define HAVE_DECL_MEMMEM $ac_have_decl
5299 for ac_func in memmem
5301 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5302 if test "x$ac_cv_func_memmem" = x""yes; then :
5303 cat >>confdefs.h <<_ACEOF
5304 #define HAVE_MEMMEM 1
5309 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5322 if test $ac_cv_have_decl_memmem = no; then
5328 gl_cv_c_multiarch=no
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 #ifndef __APPLE_CC__
5332 not a universal capable compiler
5337 if ac_fn_c_try_compile "$LINENO"; then :
5341 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5342 if test -n "$prev"; then
5344 i?86 | x86_64 | ppc | ppc64)
5345 if test -z "$arch" || test "$arch" = "$word"; then
5348 gl_cv_c_multiarch=yes
5354 if test "x$word" = "x-arch"; then
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 if test $gl_cv_c_multiarch = yes; then
5364 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5366 APPLE_UNIVERSAL_BUILD=1
5368 APPLE_UNIVERSAL_BUILD=0
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5379 $as_echo_n "checking for wchar_t... " >&6; }
5380 if test "${gt_cv_c_wchar_t+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5386 wchar_t foo = (wchar_t)'\0';
5395 if ac_fn_c_try_compile "$LINENO"; then :
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5403 $as_echo "$gt_cv_c_wchar_t" >&6; }
5404 if test $gt_cv_c_wchar_t = yes; then
5406 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5413 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5414 if test "${gl_cv_have_include_next+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5417 rm -rf conftestd1a conftestd1b conftestd2
5418 mkdir conftestd1a conftestd1b conftestd2
5419 cat <<EOF > conftestd1a/conftest.h
5420 #define DEFINED_IN_CONFTESTD1
5421 #include_next <conftest.h>
5422 #ifdef DEFINED_IN_CONFTESTD2
5425 #error "include_next doesn't work"
5428 cat <<EOF > conftestd1b/conftest.h
5429 #define DEFINED_IN_CONFTESTD1
5431 #include_next <conftest.h>
5432 #ifdef DEFINED_IN_CONFTESTD2
5435 #error "include_next doesn't work"
5438 cat <<EOF > conftestd2/conftest.h
5439 #ifndef DEFINED_IN_CONFTESTD1
5440 #error "include_next test doesn't work"
5442 #define DEFINED_IN_CONFTESTD2
5444 gl_save_CPPFLAGS="$CPPFLAGS"
5445 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #include <conftest.h>
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 gl_cv_have_include_next=yes
5453 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 #include <conftest.h>
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459 gl_cv_have_include_next=buggy
5461 gl_cv_have_include_next=no
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 CPPFLAGS="$gl_save_CPPFLAGS"
5468 rm -rf conftestd1a conftestd1b conftestd2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5472 $as_echo "$gl_cv_have_include_next" >&6; }
5473 PRAGMA_SYSTEM_HEADER=
5474 if test $gl_cv_have_include_next = yes; then
5475 INCLUDE_NEXT=include_next
5476 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5477 if test -n "$GCC"; then
5478 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5481 if test $gl_cv_have_include_next = buggy; then
5482 INCLUDE_NEXT=include
5483 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5485 INCLUDE_NEXT=include
5486 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5500 $as_echo_n "checking for long long int... " >&6; }
5501 if test "${ac_cv_type_long_long_int+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5507 /* For now, do not test the preprocessor; as of 2007 there are too many
5508 implementations with broken preprocessors. Perhaps this can
5509 be revisited in 2012. In the meantime, code should not expect
5510 #if to work with literals wider than 32 bits. */
5511 /* Test literals. */
5512 long long int ll = 9223372036854775807ll;
5513 long long int nll = -9223372036854775807LL;
5514 unsigned long long int ull = 18446744073709551615ULL;
5515 /* Test constant expressions. */
5516 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5518 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5524 /* Test availability of runtime routines for shift and division. */
5525 long long int llmax = 9223372036854775807ll;
5526 unsigned long long int ullmax = 18446744073709551615ull;
5527 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5528 | (llmax / ll) | (llmax % ll)
5529 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5530 | (ullmax / ull) | (ullmax % ull));
5536 if ac_fn_c_try_link "$LINENO"; then :
5537 if test "$cross_compiling" = yes; then :
5538 ac_cv_type_long_long_int=yes
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5545 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5546 # define LLONG_MAX (HALF - 1 + HALF)
5551 long long int n = 1;
5555 long long int m = n << i;
5558 if (LLONG_MAX / 2 < m)
5566 if ac_fn_c_try_run "$LINENO"; then :
5567 ac_cv_type_long_long_int=yes
5569 ac_cv_type_long_long_int=no
5571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5572 conftest.$ac_objext conftest.beam conftest.$ac_ext
5576 ac_cv_type_long_long_int=no
5578 rm -f core conftest.err conftest.$ac_objext \
5579 conftest$ac_exeext conftest.$ac_ext
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5582 $as_echo "$ac_cv_type_long_long_int" >&6; }
5583 if test $ac_cv_type_long_long_int = yes; then
5585 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5591 $as_echo_n "checking for unsigned long long int... " >&6; }
5592 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5593 $as_echo_n "(cached) " >&6
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5598 /* For now, do not test the preprocessor; as of 2007 there are too many
5599 implementations with broken preprocessors. Perhaps this can
5600 be revisited in 2012. In the meantime, code should not expect
5601 #if to work with literals wider than 32 bits. */
5602 /* Test literals. */
5603 long long int ll = 9223372036854775807ll;
5604 long long int nll = -9223372036854775807LL;
5605 unsigned long long int ull = 18446744073709551615ULL;
5606 /* Test constant expressions. */
5607 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5609 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5615 /* Test availability of runtime routines for shift and division. */
5616 long long int llmax = 9223372036854775807ll;
5617 unsigned long long int ullmax = 18446744073709551615ull;
5618 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5619 | (llmax / ll) | (llmax % ll)
5620 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5621 | (ullmax / ull) | (ullmax % ull));
5627 if ac_fn_c_try_link "$LINENO"; then :
5628 ac_cv_type_unsigned_long_long_int=yes
5630 ac_cv_type_unsigned_long_long_int=no
5632 rm -f core conftest.err conftest.$ac_objext \
5633 conftest$ac_exeext conftest.$ac_ext
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5636 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5637 if test $ac_cv_type_unsigned_long_long_int = yes; then
5639 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5654 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5655 if test "${ac_cv_c_restrict+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5659 # The order here caters to the fact that C++ does not require restrict.
5660 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 typedef int * int_ptr;
5664 int foo (int_ptr $ac_kw ip) {
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679 ac_cv_c_restrict=$ac_kw
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 test "$ac_cv_c_restrict" != no && break
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5687 $as_echo "$ac_cv_c_restrict" >&6; }
5689 case $ac_cv_c_restrict in
5691 no) $as_echo "#define restrict /**/" >>confdefs.h
5693 *) cat >>confdefs.h <<_ACEOF
5694 #define restrict $ac_cv_c_restrict
5719 if test $gl_cv_have_include_next = yes; then
5720 gl_cv_next_string_h='<'string.h'>'
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5723 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5724 if test "${gl_cv_next_string_h+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5728 if test $ac_cv_header_string_h = yes; then
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5735 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5736 *) gl_absname_cpp="$ac_cpp" ;;
5738 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5739 sed -n '\#/string.h#{
5740 s#.*"\(.*/string.h\)".*#\1#
5746 gl_cv_next_string_h='<'string.h'>'
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5751 $as_echo "$gl_cv_next_string_h" >&6; }
5753 NEXT_STRING_H=$gl_cv_next_string_h
5755 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5756 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5757 gl_next_as_first_directive='<'string.h'>'
5759 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5760 gl_next_as_first_directive=$gl_cv_next_string_h
5762 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5768 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5769 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5771 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5772 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5773 $as_echo_n "(cached) " >&6
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5788 if ac_fn_c_try_compile "$LINENO"; then :
5789 eval "$as_gl_Symbol=yes"
5791 eval "$as_gl_Symbol=no"
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 eval ac_res=\$$as_gl_Symbol
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5797 $as_echo "$ac_res" >&6; }
5798 eval as_val=\$$as_gl_Symbol
5799 if test "x$as_val" = x""yes; then :
5800 cat >>confdefs.h <<_ACEOF
5801 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5804 eval ac_cv_have_decl_$gl_func=yes
5816 GNULIB_MBSNRTOWCS=0;
5819 GNULIB_WCSNRTOMBS=0;
5831 HAVE_DECL_WCWIDTH=1;
5832 REPLACE_MBSTATE_T=0;
5838 REPLACE_MBSRTOWCS=0;
5839 REPLACE_MBSNRTOWCS=0;
5841 REPLACE_WCSRTOMBS=0;
5842 REPLACE_WCSNRTOMBS=0;
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5847 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5848 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5851 gl_cv_header_wchar_h_correct_inline=yes
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5855 #define wcstod renamed_wcstod
5857 extern int zero (void);
5858 int main () { return zero(); }
5861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5862 (eval $ac_compile) 2>&5
5864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865 test $ac_status = 0; }; then
5866 mv conftest.$ac_objext conftest1.$ac_objext
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5870 #define wcstod renamed_wcstod
5872 int zero (void) { return 0; }
5875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5876 (eval $ac_compile) 2>&5
5878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879 test $ac_status = 0; }; then
5880 mv conftest.$ac_objext conftest2.$ac_objext
5881 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5884 gl_cv_header_wchar_h_correct_inline=no
5888 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5892 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5893 if test $gl_cv_header_wchar_h_correct_inline = no; then
5894 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5895 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5896 C99 mode. You have four options:
5897 - Add the flag -fgnu89-inline to CC and reconfigure, or
5898 - Fix your include files, using parts of
5899 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5900 - Use a gcc version older than 4.3, or
5901 - Don't use the flags -std=c99 or -std=gnu99.
5902 Configuration aborted." "$LINENO" 5
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5907 $as_echo_n "checking for wint_t... " >&6; }
5908 if test "${gt_cv_c_wint_t+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5914 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5916 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5917 before <wchar.h>. */
5922 wint_t foo = (wchar_t)'\0';
5931 if ac_fn_c_try_compile "$LINENO"; then :
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5939 $as_echo "$gt_cv_c_wint_t" >&6; }
5940 if test $gt_cv_c_wint_t = yes; then
5942 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5948 GL_COND_LIBTOOL_TRUE=
5949 GL_COND_LIBTOOL_FALSE='#'
5951 GL_COND_LIBTOOL_TRUE='#'
5952 GL_COND_LIBTOOL_FALSE=
5955 gl_cond_libtool=false
5958 gl_m4_base='gnulib/m4'
5968 gl_source_base='gnulib'
5969 # Code from module arg-nonnull:
5970 # Code from module c++defs:
5971 # Code from module extensions:
5972 # Code from module include_next:
5973 # Code from module memchr:
5982 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5986 # Code from module memmem:
5989 if test $ac_cv_have_decl_memmem = yes; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5991 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5992 if test "${gl_cv_func_memmem_works+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 if test "$cross_compiling" = yes; then :
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5999 #include <features.h>
6000 #ifdef __GNU_LIBRARY__
6001 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6006 #include <cygwin/version.h>
6007 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014 $EGREP "Lucky user" >/dev/null 2>&1; then :
6015 gl_cv_func_memmem_works=yes
6017 gl_cv_func_memmem_works="guessing no"
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6026 #include <signal.h> /* for signal */
6027 #include <string.h> /* for memmem */
6028 #include <stdlib.h> /* for malloc */
6029 #include <unistd.h> /* for alarm */
6035 char *haystack = (char *) malloc (2 * m + 1);
6036 char *needle = (char *) malloc (m + 1);
6038 /* Failure to compile this test due to missing alarm is okay,
6039 since all such platforms (mingw) also lack memmem. */
6040 signal (SIGALRM, SIG_DFL);
6042 /* Check for quadratic performance. */
6043 if (haystack && needle)
6045 memset (haystack, 'A', 2 * m);
6046 haystack[2 * m] = 'B';
6047 memset (needle, 'A', m);
6049 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6051 /* Check for empty needle behavior. */
6052 return !result || !memmem ("a", 1, 0, 0);
6057 if ac_fn_c_try_run "$LINENO"; then :
6058 gl_cv_func_memmem_works=yes
6060 gl_cv_func_memmem_works=no
6062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6063 conftest.$ac_objext conftest.beam conftest.$ac_ext
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6069 $as_echo "$gl_cv_func_memmem_works" >&6; }
6070 if test "$gl_cv_func_memmem_works" != yes; then
6080 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6085 # Code from module memmem-simple:
6098 for ac_func in memmem
6100 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6101 if test "x$ac_cv_func_memmem" = x""yes; then :
6102 cat >>confdefs.h <<_ACEOF
6103 #define HAVE_MEMMEM 1
6108 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6121 if test $ac_cv_have_decl_memmem = no; then
6133 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6137 # Code from module multiarch:
6139 # Code from module stddef:
6143 if test $gt_cv_c_wchar_t = no; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6148 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6149 if test "${gl_cv_decl_null_works+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6155 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6165 if ac_fn_c_try_compile "$LINENO"; then :
6166 gl_cv_decl_null_works=yes
6168 gl_cv_decl_null_works=no
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6173 $as_echo "$gl_cv_decl_null_works" >&6; }
6174 if test $gl_cv_decl_null_works = no; then
6178 if test -n "$STDDEF_H"; then
6191 if test $gl_cv_have_include_next = yes; then
6192 gl_cv_next_stddef_h='<'stddef.h'>'
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6195 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6196 if test "${gl_cv_next_stddef_h+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6200 if test $ac_cv_header_stddef_h = yes; then
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6207 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6208 *) gl_absname_cpp="$ac_cpp" ;;
6210 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6211 sed -n '\#/stddef.h#{
6212 s#.*"\(.*/stddef.h\)".*#\1#
6218 gl_cv_next_stddef_h='<'stddef.h'>'
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6223 $as_echo "$gl_cv_next_stddef_h" >&6; }
6225 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6227 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6228 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6229 gl_next_as_first_directive='<'stddef.h'>'
6231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6232 gl_next_as_first_directive=$gl_cv_next_stddef_h
6234 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6240 # Code from module stdint:
6244 if test $ac_cv_type_long_long_int = yes; then
6245 HAVE_LONG_LONG_INT=1
6247 HAVE_LONG_LONG_INT=0
6251 if test $ac_cv_type_unsigned_long_long_int = yes; then
6252 HAVE_UNSIGNED_LONG_LONG_INT=1
6254 HAVE_UNSIGNED_LONG_LONG_INT=0
6258 if test $ac_cv_header_inttypes_h = yes; then
6265 if test $ac_cv_header_sys_types_h = yes; then
6284 if test $gl_cv_have_include_next = yes; then
6285 gl_cv_next_stdint_h='<'stdint.h'>'
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6288 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6289 if test "${gl_cv_next_stdint_h+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6293 if test $ac_cv_header_stdint_h = yes; then
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6300 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6301 *) gl_absname_cpp="$ac_cpp" ;;
6303 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6304 sed -n '\#/stdint.h#{
6305 s#.*"\(.*/stdint.h\)".*#\1#
6311 gl_cv_next_stdint_h='<'stdint.h'>'
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6316 $as_echo "$gl_cv_next_stdint_h" >&6; }
6318 NEXT_STDINT_H=$gl_cv_next_stdint_h
6320 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6321 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6322 gl_next_as_first_directive='<'stdint.h'>'
6324 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6325 gl_next_as_first_directive=$gl_cv_next_stdint_h
6327 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6331 if test $ac_cv_header_stdint_h = yes; then
6338 if test $ac_cv_header_stdint_h = yes; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6340 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6341 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6344 gl_cv_header_working_stdint_h=no
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6349 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6350 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6351 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6353 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6354 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6355 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6359 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6360 included before <wchar.h>. */
6371 int8_t a1 = INT8_MAX;
6372 int8_t a1min = INT8_MIN;
6375 int16_t a2 = INT16_MAX;
6376 int16_t a2min = INT16_MIN;
6379 int32_t a3 = INT32_MAX;
6380 int32_t a3min = INT32_MIN;
6383 int64_t a4 = INT64_MAX;
6384 int64_t a4min = INT64_MIN;
6387 uint8_t b1 = UINT8_MAX;
6389 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6392 uint16_t b2 = UINT16_MAX;
6395 uint32_t b3 = UINT32_MAX;
6398 uint64_t b4 = UINT64_MAX;
6400 int_least8_t c1 = INT8_C (0x7f);
6401 int_least8_t c1max = INT_LEAST8_MAX;
6402 int_least8_t c1min = INT_LEAST8_MIN;
6403 int_least16_t c2 = INT16_C (0x7fff);
6404 int_least16_t c2max = INT_LEAST16_MAX;
6405 int_least16_t c2min = INT_LEAST16_MIN;
6406 int_least32_t c3 = INT32_C (0x7fffffff);
6407 int_least32_t c3max = INT_LEAST32_MAX;
6408 int_least32_t c3min = INT_LEAST32_MIN;
6409 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6410 int_least64_t c4max = INT_LEAST64_MAX;
6411 int_least64_t c4min = INT_LEAST64_MIN;
6412 uint_least8_t d1 = UINT8_C (0xff);
6413 uint_least8_t d1max = UINT_LEAST8_MAX;
6414 uint_least16_t d2 = UINT16_C (0xffff);
6415 uint_least16_t d2max = UINT_LEAST16_MAX;
6416 uint_least32_t d3 = UINT32_C (0xffffffff);
6417 uint_least32_t d3max = UINT_LEAST32_MAX;
6418 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6419 uint_least64_t d4max = UINT_LEAST64_MAX;
6420 int_fast8_t e1 = INT_FAST8_MAX;
6421 int_fast8_t e1min = INT_FAST8_MIN;
6422 int_fast16_t e2 = INT_FAST16_MAX;
6423 int_fast16_t e2min = INT_FAST16_MIN;
6424 int_fast32_t e3 = INT_FAST32_MAX;
6425 int_fast32_t e3min = INT_FAST32_MIN;
6426 int_fast64_t e4 = INT_FAST64_MAX;
6427 int_fast64_t e4min = INT_FAST64_MIN;
6428 uint_fast8_t f1 = UINT_FAST8_MAX;
6429 uint_fast16_t f2 = UINT_FAST16_MAX;
6430 uint_fast32_t f3 = UINT_FAST32_MAX;
6431 uint_fast64_t f4 = UINT_FAST64_MAX;
6433 intptr_t g = INTPTR_MAX;
6434 intptr_t gmin = INTPTR_MIN;
6437 uintptr_t h = UINTPTR_MAX;
6439 intmax_t i = INTMAX_MAX;
6440 uintmax_t j = UINTMAX_MAX;
6442 #include <limits.h> /* for CHAR_BIT */
6443 #define TYPE_MINIMUM(t) \
6444 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6445 #define TYPE_MAXIMUM(t) \
6446 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6449 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6450 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6452 /* Detect bug in FreeBSD 6.0 / ia64. */
6453 int check_SIG_ATOMIC:
6454 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6455 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6457 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6459 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6460 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6462 /* Detect bug in mingw. */
6464 WINT_MIN == TYPE_MINIMUM (wint_t)
6465 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6468 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6470 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6472 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6474 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6476 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6479 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6482 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6485 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6487 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6488 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6489 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6490 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6491 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6492 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6493 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6494 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6495 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6496 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6497 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6508 if ac_fn_c_try_compile "$LINENO"; then :
6509 if test "$cross_compiling" = yes; then :
6510 gl_cv_header_working_stdint_h=yes
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6517 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6518 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6519 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6523 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6524 included before <wchar.h>. */
6536 #define MVAL(macro) MVAL1(macro)
6537 #define MVAL1(expression) #expression
6538 static const char *macro_values[] =
6572 for (mv = macro_values; *mv != NULL; mv++)
6574 const char *value = *mv;
6575 /* Test whether it looks like a cast expression. */
6576 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6577 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6578 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6579 || strncmp (value, "((int)"/*)*/, 6) == 0
6580 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6581 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6590 if ac_fn_c_try_run "$LINENO"; then :
6591 gl_cv_header_working_stdint_h=yes
6593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6594 conftest.$ac_objext conftest.beam conftest.$ac_ext
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6603 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6605 if test "$gl_cv_header_working_stdint_h" = yes; then
6608 for ac_header in sys/inttypes.h sys/bitypes.h
6610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6612 eval as_val=\$$as_ac_Header
6613 if test "x$as_val" = x""yes; then :
6614 cat >>confdefs.h <<_ACEOF
6615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6622 if test $ac_cv_header_sys_inttypes_h = yes; then
6623 HAVE_SYS_INTTYPES_H=1
6625 HAVE_SYS_INTTYPES_H=0
6628 if test $ac_cv_header_sys_bitypes_h = yes; then
6629 HAVE_SYS_BITYPES_H=1
6631 HAVE_SYS_BITYPES_H=0
6645 if test $APPLE_UNIVERSAL_BUILD = 0; then
6648 for gltype in ptrdiff_t size_t ; do
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6650 $as_echo_n "checking for bit size of $gltype... " >&6; }
6651 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6652 $as_echo_n "(cached) " >&6
6654 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6655 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6656 included before <wchar.h>. */
6665 #include <limits.h>"; then :
6671 eval gl_cv_bitsizeof_${gltype}=\$result
6674 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6676 $as_echo "$ac_res" >&6; }
6677 eval result=\$gl_cv_bitsizeof_${gltype}
6678 if test $result = unknown; then
6681 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6682 cat >>confdefs.h <<_ACEOF
6683 #define BITSIZEOF_${GLTYPE} $result
6686 eval BITSIZEOF_${GLTYPE}=\$result
6693 for gltype in sig_atomic_t wchar_t wint_t ; do
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6695 $as_echo_n "checking for bit size of $gltype... " >&6; }
6696 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6697 $as_echo_n "(cached) " >&6
6699 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6700 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6701 included before <wchar.h>. */
6710 #include <limits.h>"; then :
6716 eval gl_cv_bitsizeof_${gltype}=\$result
6719 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6721 $as_echo "$ac_res" >&6; }
6722 eval result=\$gl_cv_bitsizeof_${gltype}
6723 if test $result = unknown; then
6726 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6727 cat >>confdefs.h <<_ACEOF
6728 #define BITSIZEOF_${GLTYPE} $result
6731 eval BITSIZEOF_${GLTYPE}=\$result
6737 for gltype in sig_atomic_t wchar_t wint_t ; do
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6739 $as_echo_n "checking whether $gltype is signed... " >&6; }
6740 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6741 $as_echo_n "(cached) " >&6
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6746 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6747 included before <wchar.h>. */
6756 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6765 if ac_fn_c_try_compile "$LINENO"; then :
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 eval gl_cv_type_${gltype}_signed=\$result
6774 eval ac_res=\$gl_cv_type_${gltype}_signed
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6776 $as_echo "$ac_res" >&6; }
6777 eval result=\$gl_cv_type_${gltype}_signed
6778 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6779 if test "$result" = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781 #define HAVE_SIGNED_${GLTYPE} 1
6784 eval HAVE_SIGNED_${GLTYPE}=1
6786 eval HAVE_SIGNED_${GLTYPE}=0
6791 gl_cv_type_ptrdiff_t_signed=yes
6792 gl_cv_type_size_t_signed=no
6793 if test $APPLE_UNIVERSAL_BUILD = 0; then
6796 for gltype in ptrdiff_t size_t ; do
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6798 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6799 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6800 $as_echo_n "(cached) " >&6
6802 eval gl_cv_type_${gltype}_suffix=no
6803 eval result=\$gl_cv_type_${gltype}_signed
6804 if test "$result" = yes; then
6809 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6812 l) gltype1='long int';;
6813 ll) gltype1='long long int';;
6814 i64) gltype1='__int64';;
6815 u) gltype1='unsigned int';;
6816 ul) gltype1='unsigned long int';;
6817 ull) gltype1='unsigned long long int';;
6818 ui64)gltype1='unsigned __int64';;
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6823 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6824 included before <wchar.h>. */
6834 extern $gltype1 foo;
6843 if ac_fn_c_try_compile "$LINENO"; then :
6844 eval gl_cv_type_${gltype}_suffix=\$glsuf
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 eval result=\$gl_cv_type_${gltype}_suffix
6848 test "$result" != no && break
6851 eval ac_res=\$gl_cv_type_${gltype}_suffix
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6853 $as_echo "$ac_res" >&6; }
6854 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6855 eval result=\$gl_cv_type_${gltype}_suffix
6856 test "$result" = no && result=
6857 eval ${GLTYPE}_SUFFIX=\$result
6858 cat >>confdefs.h <<_ACEOF
6859 #define ${GLTYPE}_SUFFIX $result
6868 for gltype in sig_atomic_t wchar_t wint_t ; do
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6870 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6871 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6872 $as_echo_n "(cached) " >&6
6874 eval gl_cv_type_${gltype}_suffix=no
6875 eval result=\$gl_cv_type_${gltype}_signed
6876 if test "$result" = yes; then
6881 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6884 l) gltype1='long int';;
6885 ll) gltype1='long long int';;
6886 i64) gltype1='__int64';;
6887 u) gltype1='unsigned int';;
6888 ul) gltype1='unsigned long int';;
6889 ull) gltype1='unsigned long long int';;
6890 ui64)gltype1='unsigned __int64';;
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6895 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6896 included before <wchar.h>. */
6906 extern $gltype1 foo;
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 eval gl_cv_type_${gltype}_suffix=\$glsuf
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 eval result=\$gl_cv_type_${gltype}_suffix
6920 test "$result" != no && break
6923 eval ac_res=\$gl_cv_type_${gltype}_suffix
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6925 $as_echo "$ac_res" >&6; }
6926 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6927 eval result=\$gl_cv_type_${gltype}_suffix
6928 test "$result" = no && result=
6929 eval ${GLTYPE}_SUFFIX=\$result
6930 cat >>confdefs.h <<_ACEOF
6931 #define ${GLTYPE}_SUFFIX $result
6942 # Code from module string:
6946 # Code from module warn-on-use:
6947 # Code from module wchar:
6970 if test $gl_cv_have_include_next = yes; then
6971 gl_cv_next_wchar_h='<'wchar.h'>'
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6974 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6975 if test "${gl_cv_next_wchar_h+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6979 if test $ac_cv_header_wchar_h = yes; then
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6986 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6987 *) gl_absname_cpp="$ac_cpp" ;;
6989 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6990 sed -n '\#/wchar.h#{
6991 s#.*"\(.*/wchar.h\)".*#\1#
6997 gl_cv_next_wchar_h='<'wchar.h'>'
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7002 $as_echo "$gl_cv_next_wchar_h" >&6; }
7004 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7006 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7007 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7008 gl_next_as_first_directive='<'wchar.h'>'
7010 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7011 gl_next_as_first_directive=$gl_cv_next_wchar_h
7013 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7017 if test $ac_cv_header_wchar_h = yes; then
7025 if test $gt_cv_c_wint_t = yes; then
7033 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7034 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7036 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7037 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7038 $as_echo_n "(cached) " >&6
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7043 /* Some systems require additional headers. */
7045 # include <stddef.h>
7060 if ac_fn_c_try_compile "$LINENO"; then :
7061 eval "$as_gl_Symbol=yes"
7063 eval "$as_gl_Symbol=no"
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 eval ac_res=\$$as_gl_Symbol
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7069 $as_echo "$ac_res" >&6; }
7070 eval as_val=\$$as_gl_Symbol
7071 if test "x$as_val" = x""yes; then :
7072 cat >>confdefs.h <<_ACEOF
7073 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7076 eval ac_cv_have_decl_$gl_func=yes
7081 # Code from module dummy:
7082 # End of code from modules
7103 gl_source_base='tests'
7104 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
7106 gl_module_indicator_condition=$gltests_WITNESS
7116 LIBGNU_LIBDEPS="$gl_libdeps"
7118 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7122 # For Makefile dependencies.
7124 if test x"$STDINT_H" != x; then
7125 GNULIB_STDINT_H=gnulib/$STDINT_H
7131 cat >>confdefs.h <<_ACEOF
7132 #define PACKAGE "$PACKAGE"
7137 # GDB does not use automake, but gnulib does. This line lets us
7138 # generate its Makefile.in.
7139 am__api_version='1.11'
7141 # Find a good install program. We prefer a C program (faster),
7142 # so one script is as good as another. But avoid the broken or
7143 # incompatible versions:
7144 # SysV /etc/install, /usr/sbin/install
7145 # SunOS /usr/etc/install
7146 # IRIX /sbin/install
7148 # AmigaOS /C/install, which installs bootblocks on floppy discs
7149 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7150 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7151 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7152 # OS/2's system install, which has a completely different semantic
7153 # ./install, which can be erroneously created by make from ./install.sh.
7154 # Reject install programs that cannot install multiple files.
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7156 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7157 if test -z "$INSTALL"; then
7158 if test "${ac_cv_path_install+set}" = set; then :
7159 $as_echo_n "(cached) " >&6
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 # Account for people who put trailing slashes in PATH elements.
7167 case $as_dir/ in #((
7168 ./ | .// | /[cC]/* | \
7169 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7170 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7173 # OSF1 and SCO ODT 3.0 have their own names for install.
7174 # Don't use installbsd from OSF since it installs stuff as root
7176 for ac_prog in ginstall scoinst install; do
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7179 if test $ac_prog = install &&
7180 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7181 # AIX install. It has an incompatible calling convention.
7183 elif test $ac_prog = install &&
7184 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7185 # program-specific install script used by HP pwplus--don't use.
7188 rm -rf conftest.one conftest.two conftest.dir
7189 echo one > conftest.one
7190 echo two > conftest.two
7192 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7193 test -s conftest.one && test -s conftest.two &&
7194 test -s conftest.dir/conftest.one &&
7195 test -s conftest.dir/conftest.two
7197 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7210 rm -rf conftest.one conftest.two conftest.dir
7213 if test "${ac_cv_path_install+set}" = set; then
7214 INSTALL=$ac_cv_path_install
7216 # As a last resort, use the slow shell script. Don't cache a
7217 # value for INSTALL within a source directory, because that will
7218 # break other packages using the cache if that directory is
7219 # removed, or if the value is a relative name.
7220 INSTALL=$ac_install_sh
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7224 $as_echo "$INSTALL" >&6; }
7226 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7227 # It thinks the first close brace ends the variable substitution.
7228 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7230 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7232 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7235 $as_echo_n "checking whether build environment is sane... " >&6; }
7238 echo timestamp > conftest.file
7239 # Reject unsafe characters in $srcdir or the absolute working directory
7240 # name. Accept space and tab only in the latter.
7244 *[\\\"\#\$\&\'\`$am_lf]*)
7245 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7248 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7249 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7252 # Do `set' in a subshell so we don't clobber the current shell's
7253 # arguments. Must try -L first in case configure is actually a
7254 # symlink; some systems play weird games with the mod time of symlinks
7255 # (eg FreeBSD returns the mod time of the symlink's containing
7258 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7259 if test "$*" = "X"; then
7261 set X `ls -t "$srcdir/configure" conftest.file`
7264 if test "$*" != "X $srcdir/configure conftest.file" \
7265 && test "$*" != "X conftest.file $srcdir/configure"; then
7267 # If neither matched, then we have a broken ls. This can happen
7268 # if, for instance, CONFIG_SHELL is bash and it inherits a
7269 # broken ls alias from the environment. This has actually
7270 # happened. Such a system could not be considered "sane".
7271 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7272 alias in your environment" "$LINENO" 5
7275 test "$2" = conftest.file
7281 as_fn_error "newly created file is older than distributed files!
7282 Check your system clock" "$LINENO" 5
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7285 $as_echo "yes" >&6; }
7286 test "$program_prefix" != NONE &&
7287 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7288 # Use a double $ so make ignores it.
7289 test "$program_suffix" != NONE &&
7290 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7291 # Double any \ or $.
7292 # By default was `s,x,x', remove it if useless.
7293 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7294 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7296 # expand $ac_aux_dir to an absolute path
7297 am_aux_dir=`cd $ac_aux_dir && pwd`
7299 if test x"${MISSING+set}" != xset; then
7302 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7304 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7307 # Use eval to expand $SHELL
7308 if eval "$MISSING --run true"; then
7309 am_missing_run="$MISSING --run "
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7313 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7316 if test x"${install_sh}" != xset; then
7319 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7321 install_sh="\${SHELL} $am_aux_dir/install-sh"
7325 # Installed binaries are usually stripped using `strip' when the user
7326 # run `make install-strip'. However `strip' might not be the right
7327 # tool to use in cross-compilation environments, therefore Automake
7328 # will honor the `STRIP' environment variable to overrule this program.
7329 if test "$cross_compiling" != no; then
7330 if test -n "$ac_tool_prefix"; then
7331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7332 set dummy ${ac_tool_prefix}strip; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if test "${ac_cv_prog_STRIP+set}" = set; then :
7336 $as_echo_n "(cached) " >&6
7338 if test -n "$STRIP"; then
7339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 STRIP=$ac_cv_prog_STRIP
7359 if test -n "$STRIP"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7361 $as_echo "$STRIP" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7369 if test -z "$ac_cv_prog_STRIP"; then
7371 # Extract the first word of "strip", so it can be a program name with args.
7372 set dummy strip; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7378 if test -n "$ac_ct_STRIP"; then
7379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_prog_ac_ct_STRIP="strip"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7399 if test -n "$ac_ct_STRIP"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7401 $as_echo "$ac_ct_STRIP" >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7407 if test "x$ac_ct_STRIP" = x; then
7410 case $cross_compiling:$ac_tool_warned in
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414 ac_tool_warned=yes ;;
7419 STRIP="$ac_cv_prog_STRIP"
7423 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7426 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7427 if test -z "$MKDIR_P"; then
7428 if test "${ac_cv_path_mkdir+set}" = set; then :
7429 $as_echo_n "(cached) " >&6
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7435 test -z "$as_dir" && as_dir=.
7436 for ac_prog in mkdir gmkdir; do
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7439 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7440 'mkdir (GNU coreutils) '* | \
7441 'mkdir (coreutils) '* | \
7442 'mkdir (fileutils) '4.1*)
7443 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7453 if test "${ac_cv_path_mkdir+set}" = set; then
7454 MKDIR_P="$ac_cv_path_mkdir -p"
7456 # As a last resort, use the slow shell script. Don't cache a
7457 # value for MKDIR_P within a source directory, because that will
7458 # break other packages using the cache if that directory is
7459 # removed, or if the value is a relative name.
7460 test -d ./--version && rmdir ./--version
7461 MKDIR_P="$ac_install_sh -d"
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7465 $as_echo "$MKDIR_P" >&6; }
7470 [\\/$]* | ?:[\\/]*) ;;
7471 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7474 for ac_prog in gawk mawk nawk awk
7476 # Extract the first word of "$ac_prog", so it can be a program name with args.
7477 set dummy $ac_prog; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if test "${ac_cv_prog_AWK+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7483 if test -n "$AWK"; then
7484 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_prog_AWK="$ac_prog"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 if test -n "$AWK"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7506 $as_echo "$AWK" >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7513 test -n "$AWK" && break
7516 ac_config_commands="$ac_config_commands depfiles"
7519 am_make=${MAKE-make}
7520 cat > confinc << 'END'
7522 @echo this is the am__doit target
7525 # If we don't find an include directive, just comment out the code.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7527 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7531 # First try GNU make style include.
7532 echo "include confinc" > confmf
7533 # Ignore all kinds of additional output from `make'.
7534 case `$am_make -s -f confmf 2> /dev/null` in #(
7535 *the\ am__doit\ target*)
7541 # Now try BSD make style include.
7542 if test "$am__include" = "#"; then
7543 echo '.include "confinc"' > confmf
7544 case `$am_make -s -f confmf 2> /dev/null` in #(
7545 *the\ am__doit\ target*)
7546 am__include=.include
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7555 $as_echo "$_am_result" >&6; }
7556 rm -f confinc confmf
7558 # Check whether --enable-dependency-tracking was given.
7559 if test "${enable_dependency_tracking+set}" = set; then :
7560 enableval=$enable_dependency_tracking;
7563 if test "x$enable_dependency_tracking" != xno; then
7564 am_depcomp="$ac_aux_dir/depcomp"
7567 if test "x$enable_dependency_tracking" != xno; then
7576 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7577 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7578 # is not polluted with repeated "-I."
7579 am__isrc=' -I$(srcdir)'
7580 # test to see if srcdir already configured
7581 if test -f $srcdir/config.status; then
7582 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7586 # test whether we have cygpath
7587 if test -z "$CYGPATH_W"; then
7588 if (cygpath --version) >/dev/null 2>/dev/null; then
7589 CYGPATH_W='cygpath -w'
7596 # Define the identity of the package.
7598 VERSION=UNUSED-VERSION
7601 # Some tools Automake needs.
7603 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7606 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7609 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7612 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7615 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7617 # We need awk for the "check" target. The system "awk" is bad on
7619 # Always define AMTAR for backward compatibility.
7621 AMTAR=${AMTAR-"${am_missing_run}tar"}
7623 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7628 depcc="$CC" am_compiler_list=
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7631 $as_echo_n "checking dependency style of $depcc... " >&6; }
7632 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7633 $as_echo_n "(cached) " >&6
7635 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7636 # We make a subdir and do the tests there. Otherwise we can end up
7637 # making bogus files that we don't know about and never remove. For
7638 # instance it was reported that on HP-UX the gcc test will end up
7639 # making a dummy file named `D' -- because `-MD' means `put the output
7642 # Copy depcomp to subdir because otherwise we won't find it if we're
7643 # using a relative directory.
7644 cp "$am_depcomp" conftest.dir
7646 # We will build objects and dependencies in a subdirectory because
7647 # it helps to detect inapplicable dependency modes. For instance
7648 # both Tru64's cc and ICC support -MD to output dependencies as a
7649 # side effect of compilation, but ICC will put the dependencies in
7650 # the current directory while Tru64 will put them in the object
7654 am_cv_CC_dependencies_compiler_type=none
7655 if test "$am_compiler_list" = ""; then
7656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7659 case " $depcc " in #(
7660 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7663 for depmode in $am_compiler_list; do
7664 # Setup a source with many dependencies, because some compilers
7665 # like to wrap large dependency lists on column 80 (with \), and
7666 # we should not choose a depcomp mode which is confused by this.
7668 # We need to recreate these files for each test, as the compiler may
7669 # overwrite some of them when testing with obscure command lines.
7670 # This happens at least with the AIX C compiler.
7672 for i in 1 2 3 4 5 6; do
7673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7674 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7675 # Solaris 8's {/usr,}/bin/sh.
7676 touch sub/conftst$i.h
7678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7680 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7681 # mode. It turns out that the SunPro C++ compiler does not properly
7682 # handle `-M -o', and we need to detect this. Also, some Intel
7683 # versions had trouble with output in subdirs
7684 am__obj=sub/conftest.${OBJEXT-o}
7685 am__minus_obj="-o $am__obj"
7688 # This depmode causes a compiler race in universal mode.
7689 test "$am__universal" = false || continue
7692 # after this tag, mechanisms are not by side-effect, so they'll
7693 # only be used when explicitly requested
7694 if test "x$enable_dependency_tracking" = xyes; then
7700 msvisualcpp | msvcmsys)
7701 # This compiler won't grok `-c -o', but also, the minuso test has
7702 # not run yet. These depmodes are late enough in the game, and
7703 # so weak that their functioning should not be impacted.
7704 am__obj=conftest.${OBJEXT-o}
7709 if depmode=$depmode \
7710 source=sub/conftest.c object=$am__obj \
7711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7712 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7713 >/dev/null 2>conftest.err &&
7714 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7716 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7718 # icc doesn't choke on unknown options, it will just issue warnings
7719 # or remarks (even with -Werror). So we grep stderr for any message
7720 # that says an option was ignored or not supported.
7721 # When given -MP, icc 7.0 and 7.1 complain thusly:
7722 # icc: Command line warning: ignoring option '-M'; no argument required
7723 # The diagnosis changed in icc 8.0:
7724 # icc: Command line remark: option '-MP' not supported
7725 if (grep 'ignoring option' conftest.err ||
7726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7727 am_cv_CC_dependencies_compiler_type=$depmode
7736 am_cv_CC_dependencies_compiler_type=none
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7741 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7745 test "x$enable_dependency_tracking" != xno \
7746 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7748 am__fastdepCC_FALSE='#'
7750 am__fastdepCC_TRUE='#'
7751 am__fastdepCC_FALSE=
7759 # Check whether --with-separate-debug-dir was given.
7760 if test "${with_separate_debug_dir+set}" = set; then :
7761 withval=$with_separate_debug_dir;
7764 DEBUGDIR=${libdir}/debug
7768 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7770 ac_define_dir=`eval echo $DEBUGDIR`
7771 ac_define_dir=`eval echo $ac_define_dir`
7773 cat >>confdefs.h <<_ACEOF
7774 #define DEBUGDIR "$ac_define_dir"
7779 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7780 if test "x$prefix" = xNONE; then
7781 test_prefix=/usr/local
7786 test_prefix=$exec_prefix
7789 case ${ac_define_dir} in
7790 "${test_prefix}"|"${test_prefix}/"*|\
7791 '${exec_prefix}'|'${exec_prefix}/'*)
7796 cat >>confdefs.h <<_ACEOF
7797 #define DEBUGDIR_RELOCATABLE $value
7802 # GDB's datadir relocation
7806 # Check whether --with-gdb-datadir was given.
7807 if test "${with_gdb_datadir+set}" = set; then :
7808 withval=$with_gdb_datadir;
7809 GDB_DATADIR=$withval
7811 GDB_DATADIR=${datadir}/gdb
7815 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7817 ac_define_dir=`eval echo $GDB_DATADIR`
7818 ac_define_dir=`eval echo $ac_define_dir`
7820 cat >>confdefs.h <<_ACEOF
7821 #define GDB_DATADIR "$ac_define_dir"
7826 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7827 if test "x$prefix" = xNONE; then
7828 test_prefix=/usr/local
7833 test_prefix=$exec_prefix
7836 case ${ac_define_dir} in
7837 "${test_prefix}"|"${test_prefix}/"*|\
7838 '${exec_prefix}'|'${exec_prefix}/'*)
7843 cat >>confdefs.h <<_ACEOF
7844 #define GDB_DATADIR_RELOCATABLE $value
7850 # Check whether --with-relocated-sources was given.
7851 if test "${with_relocated_sources+set}" = set; then :
7852 withval=$with_relocated_sources; reloc_srcdir="${withval}"
7854 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7855 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7856 ac_define_dir=`eval echo $reloc_srcdir`
7857 ac_define_dir=`eval echo $ac_define_dir`
7859 cat >>confdefs.h <<_ACEOF
7860 #define RELOC_SRCDIR "$ac_define_dir"
7870 subdirs="$subdirs doc testsuite"
7873 # Check whether to support alternative target configurations
7874 # Check whether --enable-targets was given.
7875 if test "${enable_targets+set}" = set; then :
7876 enableval=$enable_targets; case "${enableval}" in
7877 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7879 no) enable_targets= ;;
7880 *) enable_targets=$enableval ;;
7885 # Check whether to enable 64-bit support on 32-bit hosts
7886 # Check whether --enable-64-bit-bfd was given.
7887 if test "${enable_64_bit_bfd+set}" = set; then :
7888 enableval=$enable_64_bit_bfd; case "${enableval}" in
7891 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7897 # Provide defaults for some variables set by the per-host and per-target
7899 gdb_host_obs=posix-hdep.o
7901 if test "${target}" = "${host}"; then
7907 . $srcdir/configure.host
7909 # Accumulate some settings from configure.tgt over all enabled targets
7914 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7916 if test "$targ_alias" = "all"; then
7919 # Canonicalize the secondary target names.
7920 result=`$ac_config_sub $targ_alias 2>/dev/null`
7921 if test -n "$result"; then
7927 . ${srcdir}/configure.tgt
7929 if test -z "${gdb_target_obs}"; then :
7930 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7933 # Target-specific object files
7934 for i in ${gdb_target_obs}; do
7935 case " $TARGET_OBS " in
7938 TARGET_OBS="$TARGET_OBS ${i}"
7943 # Check whether this target needs 64-bit CORE_ADDR
7944 if test x${want64} = xfalse; then
7945 . ${srcdir}/../bfd/config.bfd
7950 if test x${all_targets} = xtrue; then
7952 # We want all 64-bit targets if we either:
7953 # - run on a 64-bit host or
7954 # - already require 64-bit support for some other target or
7955 # - the --enable-64-bit-bfd option was supplied
7956 # Otherwise we only support all 32-bit targets.
7958 # NOTE: This test must be in sync with the corresponding
7961 if test x${want64} = xfalse; then
7962 # The cast to long int works around a bug in the HP C Compiler
7963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7965 # This bug is HP SR number 8606223364.
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7967 $as_echo_n "checking size of long... " >&6; }
7968 if test "${ac_cv_sizeof_long+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7971 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7974 if test "$ac_cv_type_long" = yes; then
7975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7977 { as_fn_set_status 77
7978 as_fn_error "cannot compute sizeof (long)
7979 See \`config.log' for more details." "$LINENO" 5; }; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7987 $as_echo "$ac_cv_sizeof_long" >&6; }
7991 cat >>confdefs.h <<_ACEOF
7992 #define SIZEOF_LONG $ac_cv_sizeof_long
7996 if test "x${ac_cv_sizeof_long}" = "x8"; then
8000 if test x${want64} = xtrue; then
8001 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8003 TARGET_OBS='$(ALL_TARGET_OBS)'
8009 # For other settings, only the main target counts.
8013 targ=$target; . ${srcdir}/configure.tgt
8015 # Fetch the default architecture and default target vector from BFD.
8016 targ=$target; . $srcdir/../bfd/config.bfd
8018 # We only want the first architecture, so strip off the others if
8019 # there is more than one.
8020 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8022 if test "x$targ_archs" != x; then
8024 cat >>confdefs.h <<_ACEOF
8025 #define DEFAULT_BFD_ARCH $targ_archs
8029 if test "x$targ_defvec" != x; then
8031 cat >>confdefs.h <<_ACEOF
8032 #define DEFAULT_BFD_VEC $targ_defvec
8037 # The CLI cannot be disabled yet, but may be in the future.
8040 # Check whether --enable-gdbcli was given.
8041 if test "${enable_gdbcli+set}" = set; then :
8042 enableval=$enable_gdbcli; case $enableval in
8046 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8048 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8054 if test x"$enable_gdbcli" = xyes; then
8055 if test -d $srcdir/cli; then
8056 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8057 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8058 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8059 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8064 # Check whether --enable-gdbmi was given.
8065 if test "${enable_gdbmi+set}" = set; then :
8066 enableval=$enable_gdbmi; case $enableval in
8070 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8076 if test x"$enable_gdbmi" = xyes; then
8077 if test -d $srcdir/mi; then
8078 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8079 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8080 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8081 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8086 # Check whether --enable-tui was given.
8087 if test "${enable_tui+set}" = set; then :
8088 enableval=$enable_tui; case $enableval in
8092 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8100 # Check whether --enable-gdbtk was given.
8101 if test "${enable_gdbtk+set}" = set; then :
8102 enableval=$enable_gdbtk; case $enableval in
8106 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8109 if test -d $srcdir/gdbtk; then
8116 # We unconditionally disable gdbtk tests on selected platforms.
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8120 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8124 # Libunwind support.
8126 # Check whether --with-libunwind was given.
8127 if test "${with_libunwind+set}" = set; then :
8128 withval=$with_libunwind; case "${withval}" in
8129 yes) enable_libunwind=yes ;;
8130 no) enable_libunwind=no ;;
8131 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8135 for ac_header in libunwind.h libunwind-ia64.h
8137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8138 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8139 eval as_val=\$$as_ac_Header
8140 if test "x$as_val" = x""yes; then :
8141 cat >>confdefs.h <<_ACEOF
8142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8149 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8150 enable_libunwind=yes;
8156 if test x"$enable_libunwind" = xyes; then
8157 for ac_header in libunwind.h libunwind-ia64.h
8159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8160 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8161 eval as_val=\$$as_ac_Header
8162 if test "x$as_val" = x""yes; then :
8163 cat >>confdefs.h <<_ACEOF
8164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8172 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8174 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8175 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8176 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8181 # Check whether --with-curses was given.
8182 if test "${with_curses+set}" = set; then :
8183 withval=$with_curses; opt_curses=$withval
8188 if test "$opt_curses" = "yes"; then
8192 # Profiling support.
8193 # Check whether --enable-profiling was given.
8194 if test "${enable_profiling+set}" = set; then :
8195 enableval=$enable_profiling; case $enableval in
8199 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8206 for ac_func in monstartup _mcleanup
8208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8209 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8210 eval as_val=\$$as_ac_var
8211 if test "x$as_val" = x""yes; then :
8212 cat >>confdefs.h <<_ACEOF
8213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8220 $as_echo_n "checking for _etext... " >&6; }
8221 if test "${ac_cv_var__etext+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8237 if ac_fn_c_try_link "$LINENO"; then :
8238 ac_cv_var__etext=yes
8242 rm -f core conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8246 $as_echo "$ac_cv_var__etext" >&6; }
8247 if test $ac_cv_var__etext = yes; then
8249 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8253 $as_echo_n "checking for etext... " >&6; }
8254 if test "${ac_cv_var_etext+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8270 if ac_fn_c_try_link "$LINENO"; then :
8275 rm -f core conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8279 $as_echo "$ac_cv_var_etext" >&6; }
8280 if test $ac_cv_var_etext = yes; then
8282 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8285 if test "$enable_profiling" = yes ; then
8286 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8287 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8290 OLD_CFLAGS="$CFLAGS"
8291 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8294 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8295 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8309 if ac_fn_c_try_compile "$LINENO"; then :
8310 ac_cv_cc_supports_pg=yes
8312 ac_cv_cc_supports_pg=no
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8317 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8319 if test $ac_cv_cc_supports_pg = no; then
8320 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8323 CFLAGS="$OLD_CFLAGS"
8328 # Check whether --with-pkgversion was given.
8329 if test "${with_pkgversion+set}" = set; then :
8330 withval=$with_pkgversion; case "$withval" in
8331 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8333 *) PKGVERSION="($withval) " ;;
8344 # Check whether --with-bugurl was given.
8345 if test "${with_bugurl+set}" = set; then :
8346 withval=$with_bugurl; case "$withval" in
8347 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8350 *) BUGURL="$withval"
8354 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8364 REPORT_BUGS_TO="<$BUGURL>"
8365 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8372 cat >>confdefs.h <<_ACEOF
8373 #define PKGVERSION "$PKGVERSION"
8377 cat >>confdefs.h <<_ACEOF
8378 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8382 # --------------------- #
8383 # Checks for programs. #
8384 # --------------------- #
8386 for ac_prog in gawk mawk nawk awk
8388 # Extract the first word of "$ac_prog", so it can be a program name with args.
8389 set dummy $ac_prog; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if test "${ac_cv_prog_AWK+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8395 if test -n "$AWK"; then
8396 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_AWK="$ac_prog"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 if test -n "$AWK"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8418 $as_echo "$AWK" >&6; }
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8425 test -n "$AWK" && break
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8430 $as_echo_n "checking whether ln -s works... " >&6; }
8432 if test "$LN_S" = "ln -s"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8434 $as_echo "yes" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8437 $as_echo "no, using $LN_S" >&6; }
8440 if test -n "$ac_tool_prefix"; then
8441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 $as_echo_n "checking for $ac_word... " >&6; }
8445 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
8448 if test -n "$RANLIB"; then
8449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 test -z "$as_dir" && as_dir=.
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 RANLIB=$ac_cv_prog_RANLIB
8469 if test -n "$RANLIB"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8471 $as_echo "$RANLIB" >&6; }
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8479 if test -z "$ac_cv_prog_RANLIB"; then
8480 ac_ct_RANLIB=$RANLIB
8481 # Extract the first word of "ranlib", so it can be a program name with args.
8482 set dummy ranlib; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8488 if test -n "$ac_ct_RANLIB"; then
8489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_prog_ac_ct_RANLIB="ranlib"
8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8509 if test -n "$ac_ct_RANLIB"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8511 $as_echo "$ac_ct_RANLIB" >&6; }
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8517 if test "x$ac_ct_RANLIB" = x; then
8520 case $cross_compiling:$ac_tool_warned in
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8524 ac_tool_warned=yes ;;
8526 RANLIB=$ac_ct_RANLIB
8529 RANLIB="$ac_cv_prog_RANLIB"
8532 for ac_prog in 'bison -y' byacc
8534 # Extract the first word of "$ac_prog", so it can be a program name with args.
8535 set dummy $ac_prog; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if test "${ac_cv_prog_YACC+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
8541 if test -n "$YACC"; then
8542 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_prog_YACC="$ac_prog"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 YACC=$ac_cv_prog_YACC
8562 if test -n "$YACC"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8564 $as_echo "$YACC" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8571 test -n "$YACC" && break
8573 test -n "$YACC" || YACC="yacc"
8576 if test -n "$ac_tool_prefix"; then
8577 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8578 set dummy ${ac_tool_prefix}ar; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if test "${ac_cv_prog_AR+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8584 if test -n "$AR"; then
8585 ac_cv_prog_AR="$AR" # Let the user override the test.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8594 ac_cv_prog_AR="${ac_tool_prefix}ar"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 if test -n "$AR"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8607 $as_echo "$AR" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8615 if test -z "$ac_cv_prog_AR"; then
8617 # Extract the first word of "ar", so it can be a program name with args.
8618 set dummy ar; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8622 $as_echo_n "(cached) " >&6
8624 if test -n "$ac_ct_AR"; then
8625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8634 ac_cv_prog_ac_ct_AR="ar"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8645 if test -n "$ac_ct_AR"; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8647 $as_echo "$ac_ct_AR" >&6; }
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8653 if test "x$ac_ct_AR" = x; then
8656 case $cross_compiling:$ac_tool_warned in
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8660 ac_tool_warned=yes ;;
8668 if test -n "$ac_tool_prefix"; then
8669 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8670 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8674 $as_echo_n "(cached) " >&6
8676 if test -n "$DLLTOOL"; then
8677 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8686 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 DLLTOOL=$ac_cv_prog_DLLTOOL
8697 if test -n "$DLLTOOL"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8699 $as_echo "$DLLTOOL" >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8707 if test -z "$ac_cv_prog_DLLTOOL"; then
8708 ac_ct_DLLTOOL=$DLLTOOL
8709 # Extract the first word of "dlltool", so it can be a program name with args.
8710 set dummy dlltool; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8716 if test -n "$ac_ct_DLLTOOL"; then
8717 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8737 if test -n "$ac_ct_DLLTOOL"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8739 $as_echo "$ac_ct_DLLTOOL" >&6; }
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8745 if test "x$ac_ct_DLLTOOL" = x; then
8748 case $cross_compiling:$ac_tool_warned in
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8752 ac_tool_warned=yes ;;
8754 DLLTOOL=$ac_ct_DLLTOOL
8757 DLLTOOL="$ac_cv_prog_DLLTOOL"
8760 if test -n "$ac_tool_prefix"; then
8761 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8762 set dummy ${ac_tool_prefix}windres; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8766 $as_echo_n "(cached) " >&6
8768 if test -n "$WINDRES"; then
8769 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 WINDRES=$ac_cv_prog_WINDRES
8789 if test -n "$WINDRES"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8791 $as_echo "$WINDRES" >&6; }
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8799 if test -z "$ac_cv_prog_WINDRES"; then
8800 ac_ct_WINDRES=$WINDRES
8801 # Extract the first word of "windres", so it can be a program name with args.
8802 set dummy windres; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8806 $as_echo_n "(cached) " >&6
8808 if test -n "$ac_ct_WINDRES"; then
8809 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8818 ac_cv_prog_ac_ct_WINDRES="windres"
8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8829 if test -n "$ac_ct_WINDRES"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8831 $as_echo "$ac_ct_WINDRES" >&6; }
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8837 if test "x$ac_ct_WINDRES" = x; then
8840 case $cross_compiling:$ac_tool_warned in
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8844 ac_tool_warned=yes ;;
8846 WINDRES=$ac_ct_WINDRES
8849 WINDRES="$ac_cv_prog_WINDRES"
8853 # Needed for GNU/Hurd.
8854 if test -n "$ac_tool_prefix"; then
8855 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8856 set dummy ${ac_tool_prefix}mig; ac_word=$2
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858 $as_echo_n "checking for $ac_word... " >&6; }
8859 if test "${ac_cv_prog_MIG+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
8862 if test -n "$MIG"; then
8863 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8872 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883 if test -n "$MIG"; then
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8885 $as_echo "$MIG" >&6; }
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8893 if test -z "$ac_cv_prog_MIG"; then
8895 # Extract the first word of "mig", so it can be a program name with args.
8896 set dummy mig; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8902 if test -n "$ac_ct_MIG"; then
8903 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 test -z "$as_dir" && as_dir=.
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8912 ac_cv_prog_ac_ct_MIG="mig"
8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8923 if test -n "$ac_ct_MIG"; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8925 $as_echo "$ac_ct_MIG" >&6; }
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8931 if test "x$ac_ct_MIG" = x; then
8934 case $cross_compiling:$ac_tool_warned in
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8938 ac_tool_warned=yes ;;
8943 MIG="$ac_cv_prog_MIG"
8947 # ---------------------- #
8948 # Checks for libraries. #
8949 # ---------------------- #
8951 # We might need to link with -lm; most simulators need it.
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8953 $as_echo_n "checking for main in -lm... " >&6; }
8954 if test "${ac_cv_lib_m_main+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
8957 ac_check_lib_save_LIBS=$LIBS
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8971 if ac_fn_c_try_link "$LINENO"; then :
8972 ac_cv_lib_m_main=yes
8976 rm -f core conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8981 $as_echo "$ac_cv_lib_m_main" >&6; }
8982 if test "x$ac_cv_lib_m_main" = x""yes; then :
8983 cat >>confdefs.h <<_ACEOF
8992 # We need to link with -lw to get `wctype' on Solaris before Solaris
8993 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
8994 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
8995 # is known to have this problem). Therefore we avoid libw if we can.
8996 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
8997 if test "x$ac_cv_func_wctype" = x""yes; then :
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9001 $as_echo_n "checking for wctype in -lw... " >&6; }
9002 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9005 ac_check_lib_save_LIBS=$LIBS
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9010 /* Override any GCC internal prototype to avoid an error.
9011 Use char because int might match the return type of a GCC
9012 builtin and then its argument prototype would still apply. */
9025 if ac_fn_c_try_link "$LINENO"; then :
9026 ac_cv_lib_w_wctype=yes
9028 ac_cv_lib_w_wctype=no
9030 rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9032 LIBS=$ac_check_lib_save_LIBS
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9035 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9036 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9037 cat >>confdefs.h <<_ACEOF
9048 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9050 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9051 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9054 ac_func_search_save_LIBS=$LIBS
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9058 /* Override any GCC internal prototype to avoid an error.
9059 Use char because int might match the return type of a GCC
9060 builtin and then its argument prototype would still apply. */
9064 char gethostbyname ();
9068 return gethostbyname ();
9073 for ac_lib in '' nsl; do
9074 if test -z "$ac_lib"; then
9075 ac_res="none required"
9078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9080 if ac_fn_c_try_link "$LINENO"; then :
9081 ac_cv_search_gethostbyname=$ac_res
9083 rm -f core conftest.err conftest.$ac_objext \
9085 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9089 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9092 ac_cv_search_gethostbyname=no
9095 LIBS=$ac_func_search_save_LIBS
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9098 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9099 ac_res=$ac_cv_search_gethostbyname
9100 if test "$ac_res" != no; then :
9101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9106 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9108 $as_echo_n "checking for library containing socketpair... " >&6; }
9109 if test "${ac_cv_search_socketpair+set}" = set; then :
9110 $as_echo_n "(cached) " >&6
9112 ac_func_search_save_LIBS=$LIBS
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9116 /* Override any GCC internal prototype to avoid an error.
9117 Use char because int might match the return type of a GCC
9118 builtin and then its argument prototype would still apply. */
9126 return socketpair ();
9131 for ac_lib in '' socket; do
9132 if test -z "$ac_lib"; then
9133 ac_res="none required"
9136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9138 if ac_fn_c_try_link "$LINENO"; then :
9139 ac_cv_search_socketpair=$ac_res
9141 rm -f core conftest.err conftest.$ac_objext \
9143 if test "${ac_cv_search_socketpair+set}" = set; then :
9147 if test "${ac_cv_search_socketpair+set}" = set; then :
9150 ac_cv_search_socketpair=no
9153 LIBS=$ac_func_search_save_LIBS
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9156 $as_echo "$ac_cv_search_socketpair" >&6; }
9157 ac_res=$ac_cv_search_socketpair
9158 if test "$ac_res" != no; then :
9159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9164 # Link in zlib if we can. This allows us to read compressed debug sections.
9166 # See if the user specified whether he wants zlib support or not.
9168 # Check whether --with-zlib was given.
9169 if test "${with_zlib+set}" = set; then :
9176 if test "$with_zlib" != "no"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9178 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9179 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9182 ac_func_search_save_LIBS=$LIBS
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9186 /* Override any GCC internal prototype to avoid an error.
9187 Use char because int might match the return type of a GCC
9188 builtin and then its argument prototype would still apply. */
9192 char zlibVersion ();
9196 return zlibVersion ();
9201 for ac_lib in '' z; do
9202 if test -z "$ac_lib"; then
9203 ac_res="none required"
9206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9208 if ac_fn_c_try_link "$LINENO"; then :
9209 ac_cv_search_zlibVersion=$ac_res
9211 rm -f core conftest.err conftest.$ac_objext \
9213 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9217 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9220 ac_cv_search_zlibVersion=no
9223 LIBS=$ac_func_search_save_LIBS
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9226 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9227 ac_res=$ac_cv_search_zlibVersion
9228 if test "$ac_res" != no; then :
9229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9230 for ac_header in zlib.h
9232 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9233 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9234 cat >>confdefs.h <<_ACEOF
9235 #define HAVE_ZLIB_H 1
9244 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9245 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9250 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9252 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9253 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9256 ac_func_search_save_LIBS=$LIBS
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9260 /* Override any GCC internal prototype to avoid an error.
9261 Use char because int might match the return type of a GCC
9262 builtin and then its argument prototype would still apply. */
9266 char dlgetmodinfo ();
9270 return dlgetmodinfo ();
9275 for ac_lib in '' dl xpdl; do
9276 if test -z "$ac_lib"; then
9277 ac_res="none required"
9280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9282 if ac_fn_c_try_link "$LINENO"; then :
9283 ac_cv_search_dlgetmodinfo=$ac_res
9285 rm -f core conftest.err conftest.$ac_objext \
9287 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9291 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9294 ac_cv_search_dlgetmodinfo=no
9297 LIBS=$ac_func_search_save_LIBS
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9300 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9301 ac_res=$ac_cv_search_dlgetmodinfo
9302 if test "$ac_res" != no; then :
9303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9311 # Check whether --with-libiconv-prefix was given.
9312 if test "${with_libiconv_prefix+set}" = set; then :
9313 withval=$with_libiconv_prefix;
9314 for dir in `echo "$withval" | tr : ' '`; do
9315 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9316 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9322 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9323 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9326 $as_echo_n "checking for iconv... " >&6; }
9327 if test "${am_cv_func_iconv+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
9331 am_cv_func_iconv="no, consider installing GNU libiconv"
9333 am_cv_use_build_libiconv=no
9334 am_cv_build_libiconv_path=
9336 # If libiconv is part of the build tree, then try using it over
9338 if test -d ../libiconv; then
9339 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9340 am_save_LIBS="$LIBS"
9341 am_save_CPPFLAGS="$CPPFLAGS"
9342 LIBS="$LIBS $lib_dir/libiconv.a"
9343 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9351 iconv_t cd = iconv_open("","");
9352 iconv(cd,NULL,NULL,NULL,NULL);
9358 if ac_fn_c_try_link "$LINENO"; then :
9359 am_cv_use_build_libiconv=yes
9360 am_cv_build_libiconv_path=$lib_dir/libiconv.a
9362 am_cv_func_iconv=yes
9364 rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366 LIBS="$am_save_LIBS"
9367 CPPFLAGS="$am_save_CPPFLAGS"
9368 if test "$am_cv_use_build_libiconv" = "yes"; then
9374 # Next, try to find iconv in libc.
9375 if test "$am_cv_func_iconv" != yes; then
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9383 iconv_t cd = iconv_open("","");
9384 iconv(cd,NULL,NULL,NULL,NULL);
9390 if ac_fn_c_try_link "$LINENO"; then :
9391 am_cv_func_iconv=yes
9393 rm -f core conftest.err conftest.$ac_objext \
9394 conftest$ac_exeext conftest.$ac_ext
9397 # If iconv was not in libc, try -liconv. In this case, arrange to
9398 # look in the libiconv prefix, if it was specified by the user.
9399 if test "$am_cv_func_iconv" != yes; then
9400 am_save_CPPFLAGS="$CPPFLAGS"
9401 am_save_LIBS="$LIBS"
9402 if test -n "$LIBICONV_INCLUDE"; then
9403 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9404 LIBS="$LIBS $LIBICONV_LIBDIR"
9406 LIBS="$LIBS -liconv"
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9414 iconv_t cd = iconv_open("","");
9415 iconv(cd,NULL,NULL,NULL,NULL);
9421 if ac_fn_c_try_link "$LINENO"; then :
9423 am_cv_func_iconv=yes
9425 rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
9427 LIBS="$am_save_LIBS"
9428 CPPFLAGS="$am_save_CPPFLAGS"
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9433 $as_echo "$am_cv_func_iconv" >&6; }
9435 # Set the various flags based on the cache variables. We can't rely
9436 # on the flags to remain set from the above code, due to caching.
9438 if test "$am_cv_lib_iconv" = yes; then
9444 if test "$am_cv_use_build_libiconv" = yes; then
9445 LIBICONV="$am_cv_build_libiconv_path"
9447 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9449 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9450 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9452 if test "$am_cv_func_iconv" = yes; then
9454 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9457 $as_echo_n "checking for iconv declaration... " >&6; }
9458 if test "${am_cv_proto_iconv+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9471 #if defined(__STDC__) || defined(__cplusplus)
9472 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9485 if ac_fn_c_try_compile "$LINENO"; then :
9486 am_cv_proto_iconv_arg1=""
9488 am_cv_proto_iconv_arg1="const"
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 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);"
9494 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9496 }$am_cv_proto_iconv" >&5
9498 }$am_cv_proto_iconv" >&6; }
9500 cat >>confdefs.h <<_ACEOF
9501 #define ICONV_CONST $am_cv_proto_iconv_arg1
9507 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9508 # There is a very specific comment in /usr/include/curses.h explaining that
9509 # termcap routines built into libcurses must not be used.
9511 # The symptoms we observed so far is GDB unexpectedly changing
9512 # the terminal settings when tgetent is called - this is particularly
9513 # visible as the output is missing carriage returns, and so rapidly
9514 # becomes very hard to read.
9516 # The readline configure script has already decided that libtermcap
9517 # was enough for its purposes, and so decided to build readline using
9518 # libtermcap. Since the TUI mode requires curses, building GDB with
9519 # TUI enabled results in both libraries to be used at the same time,
9520 # which is not allowed. This basically means that GDB with TUI is
9521 # broken on alpha-osf.
9525 if test x"$enable_tui" = xyes; then
9526 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9528 if test x"$enable_tui" = xauto; then
9534 # For the TUI, we need enhanced curses functionality.
9535 if test x"$enable_tui" != xno; then
9540 if test x"$prefer_curses" = xyes; then
9541 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9542 # curses library because the latter might not provide all the
9543 # functionality we need. However, this leads to problems on systems
9544 # where the linker searches /usr/local/lib, but the compiler doesn't
9545 # search /usr/local/include, if ncurses is installed in /usr/local. A
9546 # default installation of ncurses on alpha*-dec-osf* will lead to such
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9549 $as_echo_n "checking for library containing waddstr... " >&6; }
9550 if test "${ac_cv_search_waddstr+set}" = set; then :
9551 $as_echo_n "(cached) " >&6
9553 ac_func_search_save_LIBS=$LIBS
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9572 for ac_lib in '' ncurses cursesX curses; do
9573 if test -z "$ac_lib"; then
9574 ac_res="none required"
9577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9579 if ac_fn_c_try_link "$LINENO"; then :
9580 ac_cv_search_waddstr=$ac_res
9582 rm -f core conftest.err conftest.$ac_objext \
9584 if test "${ac_cv_search_waddstr+set}" = set; then :
9588 if test "${ac_cv_search_waddstr+set}" = set; then :
9591 ac_cv_search_waddstr=no
9594 LIBS=$ac_func_search_save_LIBS
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9597 $as_echo "$ac_cv_search_waddstr" >&6; }
9598 ac_res=$ac_cv_search_waddstr
9599 if test "$ac_res" != no; then :
9600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9605 if test "$ac_cv_search_waddstr" != no; then
9610 # Check whether we should enable the TUI, but only do so if we really
9612 if test x"$enable_tui" != xno; then
9613 if test -d $srcdir/tui; then
9614 if test "$curses_found" != no; then
9615 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9616 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9617 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9618 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9619 CONFIG_ALL="${CONFIG_ALL} all-tui"
9620 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9621 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9622 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9624 if test x"$enable_tui" = xyes; then
9625 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9628 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9634 # Since GDB uses Readline, we need termcap functionality. In many
9635 # cases this will be provided by the curses library, but some systems
9636 # have a seperate termcap library, or no curses library at all.
9640 if test -d $srcdir/libtermcap; then
9641 LIBS="../libtermcap/libtermcap.a $LIBS"
9642 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9645 ac_cv_search_tgetent="none required"
9648 ac_cv_search_tgetent="none required"
9649 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9653 # These are the libraries checked by Readline.
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9655 $as_echo_n "checking for library containing tgetent... " >&6; }
9656 if test "${ac_cv_search_tgetent+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9659 ac_func_search_save_LIBS=$LIBS
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9678 for ac_lib in '' termcap tinfo curses ncurses; do
9679 if test -z "$ac_lib"; then
9680 ac_res="none required"
9683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 ac_cv_search_tgetent=$ac_res
9688 rm -f core conftest.err conftest.$ac_objext \
9690 if test "${ac_cv_search_tgetent+set}" = set; then :
9694 if test "${ac_cv_search_tgetent+set}" = set; then :
9697 ac_cv_search_tgetent=no
9700 LIBS=$ac_func_search_save_LIBS
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9703 $as_echo "$ac_cv_search_tgetent" >&6; }
9704 ac_res=$ac_cv_search_tgetent
9705 if test "$ac_res" != no; then :
9706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9711 if test "$ac_cv_search_tgetent" = no; then
9712 as_fn_error "no termcap library found" "$LINENO" 5
9716 # Check whether --with-system-readline was given.
9717 if test "${with_system_readline+set}" = set; then :
9718 withval=$with_system_readline;
9722 if test "$with_system_readline" = yes; then
9727 # readline-6.0 started to use the name `_rl_echoing_p'.
9728 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9731 $as_echo_n "checking for readline_echoing_p... " >&6; }
9733 LIBS="$LIBS $READLINE"
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9740 extern int readline_echoing_p;
9741 return readline_echoing_p;
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 READLINE_ECHOING_P=yes
9749 READLINE_ECHOING_P=no
9751 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9754 rm -f core conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9758 $as_echo "$READLINE_ECHOING_P" >&6; }
9760 READLINE='$(READLINE_DIR)/libreadline.a'
9761 READLINE_DEPS='$(READLINE)'
9762 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9769 # Check whether --with-expat was given.
9770 if test "${with_expat+set}" = set; then :
9771 withval=$with_expat;
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9777 $as_echo_n "checking whether to use expat... " >&6; }
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9779 $as_echo "$with_expat" >&6; }
9781 if test "${with_expat}" = no; then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9783 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9787 if test "X$prefix" = "XNONE"; then
9788 acl_final_prefix="$ac_default_prefix"
9790 acl_final_prefix="$prefix"
9792 if test "X$exec_prefix" = "XNONE"; then
9793 acl_final_exec_prefix='${prefix}'
9795 acl_final_exec_prefix="$exec_prefix"
9797 acl_save_prefix="$prefix"
9798 prefix="$acl_final_prefix"
9799 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9800 prefix="$acl_save_prefix"
9803 # Check whether --with-gnu-ld was given.
9804 if test "${with_gnu_ld+set}" = set; then :
9805 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9810 # Prepare PATH_SEPARATOR.
9811 # The user is always right.
9812 if test "${PATH_SEPARATOR+set}" != set; then
9813 echo "#! /bin/sh" >conf$$.sh
9814 echo "exit 0" >>conf$$.sh
9816 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9824 if test "$GCC" = yes; then
9825 # Check if gcc -print-prog-name=ld gives a path.
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9827 $as_echo_n "checking for ld used by GCC... " >&6; }
9830 # gcc leaves a trailing carriage return which upsets mingw
9831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9836 # Accept absolute paths.
9837 [\\/]* | [A-Za-z]:[\\/]*)
9838 re_direlt='/[^/][^/]*/\.\./'
9839 # Canonicalize the path of ld
9840 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9841 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9842 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9844 test -z "$LD" && LD="$ac_prog"
9847 # If it fails, then pretend we aren't using GCC.
9851 # If it is relative, then search for the first ld in PATH.
9855 elif test "$with_gnu_ld" = yes; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9857 $as_echo_n "checking for GNU ld... " >&6; }
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9860 $as_echo_n "checking for non-GNU ld... " >&6; }
9862 if test "${acl_cv_path_LD+set}" = set; then :
9863 $as_echo_n "(cached) " >&6
9865 if test -z "$LD"; then
9866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9867 for ac_dir in $PATH; do
9868 test -z "$ac_dir" && ac_dir=.
9869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9870 acl_cv_path_LD="$ac_dir/$ac_prog"
9871 # Check to see if the program is GNU ld. I'd rather use --version,
9872 # but apparently some GNU ld's only accept -v.
9873 # Break only if it was the GNU/non-GNU ld that we prefer.
9874 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9875 test "$with_gnu_ld" != no && break
9877 test "$with_gnu_ld" != yes && break
9883 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9887 LD="$acl_cv_path_LD"
9888 if test -n "$LD"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9890 $as_echo "$LD" >&6; }
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9895 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9897 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9898 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
9901 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9902 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9903 acl_cv_prog_gnu_ld=yes
9905 acl_cv_prog_gnu_ld=no
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9909 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9910 with_gnu_ld=$acl_cv_prog_gnu_ld
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9915 $as_echo_n "checking for shared library run path origin... " >&6; }
9916 if test "${acl_cv_rpath+set}" = set; then :
9917 $as_echo_n "(cached) " >&6
9920 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9921 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9928 $as_echo "$acl_cv_rpath" >&6; }
9930 libext="$acl_cv_libext"
9931 shlibext="$acl_cv_shlibext"
9932 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9933 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9934 hardcode_direct="$acl_cv_hardcode_direct"
9935 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9936 # Check whether --enable-rpath was given.
9937 if test "${enable_rpath+set}" = set; then :
9938 enableval=$enable_rpath; :
9954 acl_save_prefix="$prefix"
9955 prefix="$acl_final_prefix"
9956 acl_save_exec_prefix="$exec_prefix"
9957 exec_prefix="$acl_final_exec_prefix"
9959 eval additional_includedir=\"$includedir\"
9960 eval additional_libdir=\"$libdir\"
9962 exec_prefix="$acl_save_exec_prefix"
9963 prefix="$acl_save_prefix"
9966 # Check whether --with-libexpat-prefix was given.
9967 if test "${with_libexpat_prefix+set}" = set; then :
9968 withval=$with_libexpat_prefix;
9969 if test "X$withval" = "Xno"; then
9972 if test "X$withval" = "X"; then
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 additional_includedir="$withval/include"
9987 additional_libdir="$withval/lib"
9998 names_already_handled=
9999 names_next_round='expat '
10000 while test -n "$names_next_round"; do
10001 names_this_round="$names_next_round"
10003 for name in $names_this_round; do
10005 for n in $names_already_handled; do
10006 if test "$n" = "$name"; then
10007 already_handled=yes
10011 if test -z "$already_handled"; then
10012 names_already_handled="$names_already_handled $name"
10013 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10014 eval value=\"\$HAVE_LIB$uppername\"
10015 if test -n "$value"; then
10016 if test "$value" = yes; then
10017 eval value=\"\$LIB$uppername\"
10018 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10019 eval value=\"\$LTLIB$uppername\"
10020 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10029 if test $use_additional = yes; then
10030 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10031 found_dir="$additional_libdir"
10032 found_so="$additional_libdir/lib$name.$shlibext"
10033 if test -f "$additional_libdir/lib$name.la"; then
10034 found_la="$additional_libdir/lib$name.la"
10037 if test -f "$additional_libdir/lib$name.$libext"; then
10038 found_dir="$additional_libdir"
10039 found_a="$additional_libdir/lib$name.$libext"
10040 if test -f "$additional_libdir/lib$name.la"; then
10041 found_la="$additional_libdir/lib$name.la"
10046 if test "X$found_dir" = "X"; then
10047 for x in $LDFLAGS $LTLIBEXPAT; do
10049 acl_save_prefix="$prefix"
10050 prefix="$acl_final_prefix"
10051 acl_save_exec_prefix="$exec_prefix"
10052 exec_prefix="$acl_final_exec_prefix"
10054 exec_prefix="$acl_save_exec_prefix"
10055 prefix="$acl_save_prefix"
10059 dir=`echo "X$x" | sed -e 's/^X-L//'`
10060 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10062 found_so="$dir/lib$name.$shlibext"
10063 if test -f "$dir/lib$name.la"; then
10064 found_la="$dir/lib$name.la"
10067 if test -f "$dir/lib$name.$libext"; then
10069 found_a="$dir/lib$name.$libext"
10070 if test -f "$dir/lib$name.la"; then
10071 found_la="$dir/lib$name.la"
10077 if test "X$found_dir" != "X"; then
10082 if test "X$found_dir" != "X"; then
10083 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10084 if test "X$found_so" != "X"; then
10085 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10086 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10089 for x in $ltrpathdirs; do
10090 if test "X$x" = "X$found_dir"; then
10095 if test -z "$haveit"; then
10096 ltrpathdirs="$ltrpathdirs $found_dir"
10098 if test "$hardcode_direct" = yes; then
10099 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10101 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10102 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10104 for x in $rpathdirs; do
10105 if test "X$x" = "X$found_dir"; then
10110 if test -z "$haveit"; then
10111 rpathdirs="$rpathdirs $found_dir"
10115 for x in $LDFLAGS $LIBEXPAT; do
10117 acl_save_prefix="$prefix"
10118 prefix="$acl_final_prefix"
10119 acl_save_exec_prefix="$exec_prefix"
10120 exec_prefix="$acl_final_exec_prefix"
10122 exec_prefix="$acl_save_exec_prefix"
10123 prefix="$acl_save_prefix"
10125 if test "X$x" = "X-L$found_dir"; then
10130 if test -z "$haveit"; then
10131 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10133 if test "$hardcode_minus_L" != no; then
10134 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10136 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10142 if test "X$found_a" != "X"; then
10143 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10145 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10148 additional_includedir=
10149 case "$found_dir" in
10151 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10152 additional_includedir="$basedir/include"
10155 if test "X$additional_includedir" != "X"; then
10156 if test "X$additional_includedir" != "X/usr/include"; then
10158 if test "X$additional_includedir" = "X/usr/local/include"; then
10159 if test -n "$GCC"; then
10161 linux*) haveit=yes;;
10165 if test -z "$haveit"; then
10166 for x in $CPPFLAGS $INCEXPAT; do
10168 acl_save_prefix="$prefix"
10169 prefix="$acl_final_prefix"
10170 acl_save_exec_prefix="$exec_prefix"
10171 exec_prefix="$acl_final_exec_prefix"
10173 exec_prefix="$acl_save_exec_prefix"
10174 prefix="$acl_save_prefix"
10176 if test "X$x" = "X-I$additional_includedir"; then
10181 if test -z "$haveit"; then
10182 if test -d "$additional_includedir"; then
10183 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10189 if test -n "$found_la"; then
10190 save_libdir="$libdir"
10191 case "$found_la" in
10192 */* | *\\*) . "$found_la" ;;
10193 *) . "./$found_la" ;;
10195 libdir="$save_libdir"
10196 for dep in $dependency_libs; do
10199 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10200 if test "X$additional_libdir" != "X/usr/lib"; then
10202 if test "X$additional_libdir" = "X/usr/local/lib"; then
10203 if test -n "$GCC"; then
10205 linux*) haveit=yes;;
10209 if test -z "$haveit"; then
10211 for x in $LDFLAGS $LIBEXPAT; do
10213 acl_save_prefix="$prefix"
10214 prefix="$acl_final_prefix"
10215 acl_save_exec_prefix="$exec_prefix"
10216 exec_prefix="$acl_final_exec_prefix"
10218 exec_prefix="$acl_save_exec_prefix"
10219 prefix="$acl_save_prefix"
10221 if test "X$x" = "X-L$additional_libdir"; then
10226 if test -z "$haveit"; then
10227 if test -d "$additional_libdir"; then
10228 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10232 for x in $LDFLAGS $LTLIBEXPAT; do
10234 acl_save_prefix="$prefix"
10235 prefix="$acl_final_prefix"
10236 acl_save_exec_prefix="$exec_prefix"
10237 exec_prefix="$acl_final_exec_prefix"
10239 exec_prefix="$acl_save_exec_prefix"
10240 prefix="$acl_save_prefix"
10242 if test "X$x" = "X-L$additional_libdir"; then
10247 if test -z "$haveit"; then
10248 if test -d "$additional_libdir"; then
10249 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10256 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10257 if test "$enable_rpath" != no; then
10259 for x in $rpathdirs; do
10260 if test "X$x" = "X$dir"; then
10265 if test -z "$haveit"; then
10266 rpathdirs="$rpathdirs $dir"
10269 for x in $ltrpathdirs; do
10270 if test "X$x" = "X$dir"; then
10275 if test -z "$haveit"; then
10276 ltrpathdirs="$ltrpathdirs $dir"
10281 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10284 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10287 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10288 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10294 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10295 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10301 if test "X$rpathdirs" != "X"; then
10302 if test -n "$hardcode_libdir_separator"; then
10304 for found_dir in $rpathdirs; do
10305 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10307 acl_save_libdir="$libdir"
10309 eval flag=\"$hardcode_libdir_flag_spec\"
10310 libdir="$acl_save_libdir"
10311 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10313 for found_dir in $rpathdirs; do
10314 acl_save_libdir="$libdir"
10315 libdir="$found_dir"
10316 eval flag=\"$hardcode_libdir_flag_spec\"
10317 libdir="$acl_save_libdir"
10318 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10322 if test "X$ltrpathdirs" != "X"; then
10323 for found_dir in $ltrpathdirs; do
10324 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10329 ac_save_CPPFLAGS="$CPPFLAGS"
10331 for element in $INCEXPAT; do
10333 for x in $CPPFLAGS; do
10335 acl_save_prefix="$prefix"
10336 prefix="$acl_final_prefix"
10337 acl_save_exec_prefix="$exec_prefix"
10338 exec_prefix="$acl_final_exec_prefix"
10340 exec_prefix="$acl_save_exec_prefix"
10341 prefix="$acl_save_prefix"
10343 if test "X$x" = "X$element"; then
10348 if test -z "$haveit"; then
10349 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10355 $as_echo_n "checking for libexpat... " >&6; }
10356 if test "${ac_cv_libexpat+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10360 ac_save_LIBS="$LIBS"
10361 LIBS="$LIBS $LIBEXPAT"
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10368 XML_Parser p = XML_ParserCreate (0);
10373 if ac_fn_c_try_link "$LINENO"; then :
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 LIBS="$ac_save_LIBS"
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10384 $as_echo "$ac_cv_libexpat" >&6; }
10385 if test "$ac_cv_libexpat" = yes; then
10388 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10391 $as_echo_n "checking how to link with libexpat... " >&6; }
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10393 $as_echo "$LIBEXPAT" >&6; }
10396 CPPFLAGS="$ac_save_CPPFLAGS"
10406 if test "$HAVE_LIBEXPAT" != yes; then
10407 if test "$with_expat" = yes; then
10408 as_fn_error "expat is missing or unusable" "$LINENO" 5
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10411 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10415 LIBS="$LIBS $LIBEXPAT"
10416 for ac_func in XML_StopParser
10418 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10419 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10420 cat >>confdefs.h <<_ACEOF
10421 #define HAVE_XML_STOPPARSER 1
10434 # Check whether --with-python was given.
10435 if test "${with_python+set}" = set; then :
10436 withval=$with_python;
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10442 $as_echo_n "checking whether to use python... " >&6; }
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10444 $as_echo "$with_python" >&6; }
10446 if test "${with_python}" = no; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10448 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10451 case "${with_python}" in
10453 # Leave as empty, use defaults.
10458 python_includes="-I${with_python}/include"
10459 python_libs="-L${with_python}/lib"
10462 as_fn_error "invalid value for --with-python" "$LINENO" 5
10466 save_CPPFLAGS=$CPPFLAGS
10467 CPPFLAGS="$CPPFLAGS ${python_includes}"
10469 LIBS="$LIBS ${python_libs}"
10471 if test "${have_libpython}" = no; then
10476 HAVE_LIBPYTHON2_6=no
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10478 $as_echo_n "checking for ${version}... " >&6; }
10480 LIBS="$LIBS -l${version}"
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 #include "${version}/Python.h"
10492 if ac_fn_c_try_link "$LINENO"; then :
10493 HAVE_LIBPYTHON2_6=yes
10498 rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext conftest.$ac_ext
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
10501 $as_echo "$HAVE_LIBPYTHON2_6" >&6; }
10503 if test "${HAVE_LIBPYTHON2_6}" = yes; then
10505 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10509 if test ${have_libpython} = no; then
10514 HAVE_LIBPYTHON2_5=no
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10516 $as_echo_n "checking for ${version}... " >&6; }
10518 LIBS="$LIBS -l${version}"
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include "${version}/Python.h"
10530 if ac_fn_c_try_link "$LINENO"; then :
10531 HAVE_LIBPYTHON2_5=yes
10536 rm -f core conftest.err conftest.$ac_objext \
10537 conftest$ac_exeext conftest.$ac_ext
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
10539 $as_echo "$HAVE_LIBPYTHON2_5" >&6; }
10541 if test "${HAVE_LIBPYTHON2_5}" = yes; then
10543 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10547 if test ${have_libpython} = no; then
10552 HAVE_LIBPYTHON2_4=no
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10554 $as_echo_n "checking for ${version}... " >&6; }
10556 LIBS="$LIBS -l${version}"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10559 #include "${version}/Python.h"
10568 if ac_fn_c_try_link "$LINENO"; then :
10569 HAVE_LIBPYTHON2_4=yes
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
10577 $as_echo "$HAVE_LIBPYTHON2_4" >&6; }
10579 if test "${HAVE_LIBPYTHON2_4}" = yes; then
10581 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10585 if test ${have_libpython} = no; then
10586 case "${with_python}" in
10588 as_fn_error "python is missing or unusable" "$LINENO" 5
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10592 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10595 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10598 CPPFLAGS=$save_CPPFLAGS
10603 if test "${have_libpython}" = yes; then
10605 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10607 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10608 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10609 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10610 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10612 # Flags needed to compile Python code (taken from python-config --cflags).
10613 # We cannot call python-config directly because it will output whatever was
10614 # used when compiling the Python interpreter itself, including flags which
10615 # would make the python-related objects be compiled differently from the
10616 # rest of GDB (e.g., -O2 and -fPIC).
10617 if test "${GCC}" = yes; then
10618 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10621 if test "x${tentative_python_cflags}" != x; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10623 $as_echo_n "checking compiler flags for python code... " >&6; }
10624 for flag in ${tentative_python_cflags}; do
10625 # Check that the compiler accepts it
10626 saved_CFLAGS="$CFLAGS"
10627 CFLAGS="$CFLAGS $flag"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 CFLAGS="$saved_CFLAGS"
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10646 $as_echo "${PYTHON_CFLAGS}" >&6; }
10649 # Even if Python support is not compiled in, we need to have these files
10651 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10652 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10653 python/py-prettyprint.c python/py-auto-load.c"
10657 # ------------------------- #
10658 # Checks for header files. #
10659 # ------------------------- #
10661 ac_header_dirent=no
10662 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10663 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10665 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10667 $as_echo_n "(cached) " >&6
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <sys/types.h>
10683 if ac_fn_c_try_compile "$LINENO"; then :
10684 eval "$as_ac_Header=yes"
10686 eval "$as_ac_Header=no"
10688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10690 eval ac_res=\$$as_ac_Header
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10692 $as_echo "$ac_res" >&6; }
10693 eval as_val=\$$as_ac_Header
10694 if test "x$as_val" = x""yes; then :
10695 cat >>confdefs.h <<_ACEOF
10696 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10699 ac_header_dirent=$ac_hdr; break
10703 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10704 if test $ac_header_dirent = dirent.h; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10706 $as_echo_n "checking for library containing opendir... " >&6; }
10707 if test "${ac_cv_search_opendir+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10710 ac_func_search_save_LIBS=$LIBS
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10714 /* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10729 for ac_lib in '' dir; do
10730 if test -z "$ac_lib"; then
10731 ac_res="none required"
10734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_search_opendir=$ac_res
10739 rm -f core conftest.err conftest.$ac_objext \
10741 if test "${ac_cv_search_opendir+set}" = set; then :
10745 if test "${ac_cv_search_opendir+set}" = set; then :
10748 ac_cv_search_opendir=no
10750 rm conftest.$ac_ext
10751 LIBS=$ac_func_search_save_LIBS
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10754 $as_echo "$ac_cv_search_opendir" >&6; }
10755 ac_res=$ac_cv_search_opendir
10756 if test "$ac_res" != no; then :
10757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10763 $as_echo_n "checking for library containing opendir... " >&6; }
10764 if test "${ac_cv_search_opendir+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10767 ac_func_search_save_LIBS=$LIBS
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10771 /* Override any GCC internal prototype to avoid an error.
10772 Use char because int might match the return type of a GCC
10773 builtin and then its argument prototype would still apply. */
10786 for ac_lib in '' x; do
10787 if test -z "$ac_lib"; then
10788 ac_res="none required"
10791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 ac_cv_search_opendir=$ac_res
10796 rm -f core conftest.err conftest.$ac_objext \
10798 if test "${ac_cv_search_opendir+set}" = set; then :
10802 if test "${ac_cv_search_opendir+set}" = set; then :
10805 ac_cv_search_opendir=no
10807 rm conftest.$ac_ext
10808 LIBS=$ac_func_search_save_LIBS
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10811 $as_echo "$ac_cv_search_opendir" >&6; }
10812 ac_res=$ac_cv_search_opendir
10813 if test "$ac_res" != no; then :
10814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10821 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10822 if test "${ac_cv_header_stat_broken+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827 #include <sys/types.h>
10828 #include <sys/stat.h>
10830 #if defined S_ISBLK && defined S_IFDIR
10831 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10834 #if defined S_ISBLK && defined S_IFCHR
10835 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10838 #if defined S_ISLNK && defined S_IFREG
10839 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10842 #if defined S_ISSOCK && defined S_IFREG
10843 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10847 if ac_fn_c_try_compile "$LINENO"; then :
10848 ac_cv_header_stat_broken=no
10850 ac_cv_header_stat_broken=yes
10852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10855 $as_echo "$ac_cv_header_stat_broken" >&6; }
10856 if test $ac_cv_header_stat_broken = yes; then
10858 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10863 $as_echo_n "checking for ANSI C header files... " >&6; }
10864 if test "${ac_cv_header_stdc+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10869 #include <stdlib.h>
10870 #include <stdarg.h>
10871 #include <string.h>
10882 if ac_fn_c_try_compile "$LINENO"; then :
10883 ac_cv_header_stdc=yes
10885 ac_cv_header_stdc=no
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 if test $ac_cv_header_stdc = yes; then
10890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 #include <string.h>
10896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10897 $EGREP "memchr" >/dev/null 2>&1; then :
10900 ac_cv_header_stdc=no
10906 if test $ac_cv_header_stdc = yes; then
10907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10910 #include <stdlib.h>
10913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10914 $EGREP "free" >/dev/null 2>&1; then :
10917 ac_cv_header_stdc=no
10923 if test $ac_cv_header_stdc = yes; then
10924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10925 if test "$cross_compiling" = yes; then :
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10931 #include <stdlib.h>
10932 #if ((' ' & 0x0FF) == 0x020)
10933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10936 # define ISLOWER(c) \
10937 (('a' <= (c) && (c) <= 'i') \
10938 || ('j' <= (c) && (c) <= 'r') \
10939 || ('s' <= (c) && (c) <= 'z'))
10940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10948 for (i = 0; i < 256; i++)
10949 if (XOR (islower (i), ISLOWER (i))
10950 || toupper (i) != TOUPPER (i))
10955 if ac_fn_c_try_run "$LINENO"; then :
10958 ac_cv_header_stdc=no
10960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10961 conftest.$ac_objext conftest.beam conftest.$ac_ext
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10967 $as_echo "$ac_cv_header_stdc" >&6; }
10968 if test $ac_cv_header_stdc = yes; then
10970 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10974 # elf_hp.h is for HP/UX 64-bit shared library support.
10975 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
10976 # unconditionally, so what's the point in checking these?
10977 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
10978 thread_db.h gnu/libc-version.h signal.h stddef.h \
10979 stdlib.h string.h memory.h strings.h sys/fault.h \
10980 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
10981 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
10982 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
10983 sys/types.h sys/wait.h wait.h termios.h termio.h \
10984 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
10986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10988 eval as_val=\$$as_ac_Header
10989 if test "x$as_val" = x""yes; then :
10990 cat >>confdefs.h <<_ACEOF
10991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10998 for ac_header in link.h
11000 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11001 # include <sys/types.h>
11004 # include <nlist.h>
11008 if test "x$ac_cv_header_link_h" = x""yes; then :
11009 cat >>confdefs.h <<_ACEOF
11010 #define HAVE_LINK_H 1
11017 for ac_header in sys/proc.h
11019 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11020 # include <sys/param.h>
11024 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11025 cat >>confdefs.h <<_ACEOF
11026 #define HAVE_SYS_PROC_H 1
11033 for ac_header in sys/user.h
11035 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11036 # include <sys/param.h>
11040 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11041 cat >>confdefs.h <<_ACEOF
11042 #define HAVE_SYS_USER_H 1
11050 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11051 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11052 # think that we don't have <curses.h> if we're using GCC.
11055 if test "$GCC" = yes; then
11057 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11061 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11065 eval as_val=\$$as_ac_Header
11066 if test "x$as_val" = x""yes; then :
11067 cat >>confdefs.h <<_ACEOF
11068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11075 for ac_header in term.h
11077 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11078 # include <curses.h>
11082 if test "x$ac_cv_header_term_h" = x""yes; then :
11083 cat >>confdefs.h <<_ACEOF
11084 #define HAVE_TERM_H 1
11092 # ------------------------- #
11093 # Checks for declarations. #
11094 # ------------------------- #
11096 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11097 if test "x$ac_cv_have_decl_free" = x""yes; then :
11103 cat >>confdefs.h <<_ACEOF
11104 #define HAVE_DECL_FREE $ac_have_decl
11106 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11107 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11113 cat >>confdefs.h <<_ACEOF
11114 #define HAVE_DECL_MALLOC $ac_have_decl
11116 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11117 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11123 cat >>confdefs.h <<_ACEOF
11124 #define HAVE_DECL_REALLOC $ac_have_decl
11126 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11127 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11133 cat >>confdefs.h <<_ACEOF
11134 #define HAVE_DECL_STRERROR $ac_have_decl
11136 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11137 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11143 cat >>confdefs.h <<_ACEOF
11144 #define HAVE_DECL_STRSTR $ac_have_decl
11146 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11147 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11153 cat >>confdefs.h <<_ACEOF
11154 #define HAVE_DECL_GETOPT $ac_have_decl
11156 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11157 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11163 cat >>confdefs.h <<_ACEOF
11164 #define HAVE_DECL_SNPRINTF $ac_have_decl
11166 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11167 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11173 cat >>confdefs.h <<_ACEOF
11174 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11179 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11180 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11181 $as_echo_n "(cached) " >&6
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11185 #include <locale.h>
11194 if ac_fn_c_try_link "$LINENO"; then :
11195 am_cv_val_LC_MESSAGES=yes
11197 am_cv_val_LC_MESSAGES=no
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11203 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11204 if test $am_cv_val_LC_MESSAGES = yes; then
11206 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11211 # ----------------------- #
11212 # Checks for structures. #
11213 # ----------------------- #
11215 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11216 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11218 cat >>confdefs.h <<_ACEOF
11219 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11224 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11225 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11227 cat >>confdefs.h <<_ACEOF
11228 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11235 # ------------------ #
11236 # Checks for types. #
11237 # ------------------ #
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11240 $as_echo_n "checking return type of signal handlers... " >&6; }
11241 if test "${ac_cv_type_signal+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246 #include <sys/types.h>
11247 #include <signal.h>
11252 return *(signal (0, 0)) (0) == 1;
11257 if ac_fn_c_try_compile "$LINENO"; then :
11258 ac_cv_type_signal=int
11260 ac_cv_type_signal=void
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11265 $as_echo "$ac_cv_type_signal" >&6; }
11267 cat >>confdefs.h <<_ACEOF
11268 #define RETSIGTYPE $ac_cv_type_signal
11272 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11273 #include <sys/socket.h>
11276 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11278 cat >>confdefs.h <<_ACEOF
11279 #define HAVE_SOCKLEN_T 1
11286 # ------------------------------------- #
11287 # Checks for compiler characteristics. #
11288 # ------------------------------------- #
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11291 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11292 if test "${ac_cv_c_const+set}" = set; then :
11293 $as_echo_n "(cached) " >&6
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11301 /* FIXME: Include the comments suggested by Paul. */
11302 #ifndef __cplusplus
11303 /* Ultrix mips cc rejects this. */
11304 typedef int charset[2];
11306 /* SunOS 4.1.1 cc rejects this. */
11307 char const *const *pcpcc;
11309 /* NEC SVR4.0.2 mips cc rejects this. */
11310 struct point {int x, y;};
11311 static struct point const zero = {0,0};
11312 /* AIX XL C 1.02.0.0 rejects this.
11313 It does not let you subtract one const X* pointer from another in
11314 an arm of an if-expression whose if-part is not a constant
11316 const char *g = "string";
11317 pcpcc = &g + (g ? g-g : 0);
11318 /* HPUX 7.0 cc rejects these. */
11320 ppc = (char**) pcpcc;
11321 pcpcc = (char const *const *) ppc;
11322 { /* SCO 3.2v4 cc rejects this. */
11324 char const *s = 0 ? (char *) 0 : (char const *) 0;
11329 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11330 int x[] = {25, 17};
11331 const int *foo = &x[0];
11334 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11335 typedef const int *iptr;
11339 { /* AIX XL C 1.02.0.0 rejects this saying
11340 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11341 struct s { int j; const int *ap[3]; };
11342 struct s *b; b->j = 5;
11344 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11345 const int foo = 10;
11346 if (!foo) return 0;
11348 return !cs[0] && !zero.x;
11355 if ac_fn_c_try_compile "$LINENO"; then :
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11363 $as_echo "$ac_cv_c_const" >&6; }
11364 if test $ac_cv_c_const = no; then
11366 $as_echo "#define const /**/" >>confdefs.h
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11371 $as_echo_n "checking for inline... " >&6; }
11372 if test "${ac_cv_c_inline+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
11376 for ac_kw in inline __inline__ __inline; do
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11379 #ifndef __cplusplus
11381 static $ac_kw foo_t static_foo () {return 0; }
11382 $ac_kw foo_t foo () {return 0; }
11386 if ac_fn_c_try_compile "$LINENO"; then :
11387 ac_cv_c_inline=$ac_kw
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 test "$ac_cv_c_inline" != no && break
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11395 $as_echo "$ac_cv_c_inline" >&6; }
11397 case $ac_cv_c_inline in
11400 case $ac_cv_c_inline in
11402 *) ac_val=$ac_cv_c_inline;;
11404 cat >>confdefs.h <<_ACEOF
11405 #ifndef __cplusplus
11406 #define inline $ac_val
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11413 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11414 if test "${ac_cv_c_bigendian+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11417 ac_cv_c_bigendian=unknown
11418 # See if we're dealing with a universal compiler.
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11421 #ifndef __APPLE_CC__
11422 not a universal capable compiler
11427 if ac_fn_c_try_compile "$LINENO"; then :
11429 # Check for potential -arch flags. It is not universal unless
11430 # there are at least two -arch flags with different values.
11433 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11434 if test -n "$ac_prev"; then
11436 i?86 | x86_64 | ppc | ppc64)
11437 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11440 ac_cv_c_bigendian=universal
11446 elif test "x$ac_word" = "x-arch"; then
11451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 if test $ac_cv_c_bigendian = unknown; then
11453 # See if sys/param.h defines the BYTE_ORDER macro.
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11456 #include <sys/types.h>
11457 #include <sys/param.h>
11462 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11463 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11465 bogus endian macros
11472 if ac_fn_c_try_compile "$LINENO"; then :
11473 # It does; now see whether it defined to BIG_ENDIAN or not.
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476 #include <sys/types.h>
11477 #include <sys/param.h>
11482 #if BYTE_ORDER != BIG_ENDIAN
11490 if ac_fn_c_try_compile "$LINENO"; then :
11491 ac_cv_c_bigendian=yes
11493 ac_cv_c_bigendian=no
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 if test $ac_cv_c_bigendian = unknown; then
11500 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503 #include <limits.h>
11508 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11509 bogus endian macros
11516 if ac_fn_c_try_compile "$LINENO"; then :
11517 # It does; now see whether it defined to _BIG_ENDIAN or not.
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 #include <limits.h>
11525 #ifndef _BIG_ENDIAN
11533 if ac_fn_c_try_compile "$LINENO"; then :
11534 ac_cv_c_bigendian=yes
11536 ac_cv_c_bigendian=no
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 if test $ac_cv_c_bigendian = unknown; then
11543 # Compile a test program.
11544 if test "$cross_compiling" = yes; then :
11545 # Try to guess by grepping values from an object file.
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548 short int ascii_mm[] =
11549 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11550 short int ascii_ii[] =
11551 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11552 int use_ascii (int i) {
11553 return ascii_mm[i] + ascii_ii[i];
11555 short int ebcdic_ii[] =
11556 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11557 short int ebcdic_mm[] =
11558 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11559 int use_ebcdic (int i) {
11560 return ebcdic_mm[i] + ebcdic_ii[i];
11567 return use_ascii (foo) == use_ebcdic (foo);
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11574 ac_cv_c_bigendian=yes
11576 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11577 if test "$ac_cv_c_bigendian" = unknown; then
11578 ac_cv_c_bigendian=no
11580 # finding both strings is unlikely to happen, but who knows?
11581 ac_cv_c_bigendian=unknown
11585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589 $ac_includes_default
11594 /* Are we little or big endian? From Harbison&Steele. */
11598 char c[sizeof (long int)];
11601 return u.c[sizeof (long int) - 1] == 1;
11607 if ac_fn_c_try_run "$LINENO"; then :
11608 ac_cv_c_bigendian=no
11610 ac_cv_c_bigendian=yes
11612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11613 conftest.$ac_objext conftest.beam conftest.$ac_ext
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11619 $as_echo "$ac_cv_c_bigendian" >&6; }
11620 case $ac_cv_c_bigendian in #(
11622 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11628 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11632 as_fn_error "unknown endianness
11633 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11637 # ------------------------------ #
11638 # Checks for library functions. #
11639 # ------------------------------ #
11641 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11642 # for constant arguments. Useless!
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11644 $as_echo_n "checking for working alloca.h... " >&6; }
11645 if test "${ac_cv_working_alloca_h+set}" = set; then :
11646 $as_echo_n "(cached) " >&6
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11650 #include <alloca.h>
11654 char *p = (char *) alloca (2 * sizeof (int));
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_working_alloca_h=yes
11663 ac_cv_working_alloca_h=no
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11669 $as_echo "$ac_cv_working_alloca_h" >&6; }
11670 if test $ac_cv_working_alloca_h = yes; then
11672 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11677 $as_echo_n "checking for alloca... " >&6; }
11678 if test "${ac_cv_func_alloca_works+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11684 # define alloca __builtin_alloca
11687 # include <malloc.h>
11688 # define alloca _alloca
11690 # ifdef HAVE_ALLOCA_H
11691 # include <alloca.h>
11696 # ifndef alloca /* predefined by HP cc +Olibcalls */
11707 char *p = (char *) alloca (1);
11713 if ac_fn_c_try_link "$LINENO"; then :
11714 ac_cv_func_alloca_works=yes
11716 ac_cv_func_alloca_works=no
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11722 $as_echo "$ac_cv_func_alloca_works" >&6; }
11724 if test $ac_cv_func_alloca_works = yes; then
11726 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11729 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11730 # that cause trouble. Some versions do not even contain alloca or
11731 # contain a buggy version. If you still want to use their alloca,
11732 # use ar to extract alloca.o from them instead of compiling alloca.c.
11734 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11736 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11740 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11741 if test "${ac_cv_os_cray+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746 #if defined CRAY && ! defined CRAY2
11753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11754 $EGREP "webecray" >/dev/null 2>&1; then :
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11763 $as_echo "$ac_cv_os_cray" >&6; }
11764 if test $ac_cv_os_cray = yes; then
11765 for ac_func in _getb67 GETB67 getb67; do
11766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11768 eval as_val=\$$as_ac_var
11769 if test "x$as_val" = x""yes; then :
11771 cat >>confdefs.h <<_ACEOF
11772 #define CRAY_STACKSEG_END $ac_func
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11782 $as_echo_n "checking stack direction for C alloca... " >&6; }
11783 if test "${ac_cv_c_stack_direction+set}" = set; then :
11784 $as_echo_n "(cached) " >&6
11786 if test "$cross_compiling" = yes; then :
11787 ac_cv_c_stack_direction=0
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791 $ac_includes_default
11793 find_stack_direction ()
11795 static char *addr = 0;
11800 return find_stack_direction ();
11803 return (&dummy > addr) ? 1 : -1;
11809 return find_stack_direction () < 0;
11812 if ac_fn_c_try_run "$LINENO"; then :
11813 ac_cv_c_stack_direction=1
11815 ac_cv_c_stack_direction=-1
11817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11818 conftest.$ac_objext conftest.beam conftest.$ac_ext
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11823 $as_echo "$ac_cv_c_stack_direction" >&6; }
11824 cat >>confdefs.h <<_ACEOF
11825 #define STACK_DIRECTION $ac_cv_c_stack_direction
11831 for ac_header in stdlib.h unistd.h
11833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11834 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11835 eval as_val=\$$as_ac_Header
11836 if test "x$as_val" = x""yes; then :
11837 cat >>confdefs.h <<_ACEOF
11838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11845 for ac_func in getpagesize
11847 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11848 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11849 cat >>confdefs.h <<_ACEOF
11850 #define HAVE_GETPAGESIZE 1
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11857 $as_echo_n "checking for working mmap... " >&6; }
11858 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11861 if test "$cross_compiling" = yes; then :
11862 ac_cv_func_mmap_fixed_mapped=no
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 $ac_includes_default
11867 /* malloc might have been renamed as rpl_malloc. */
11870 /* Thanks to Mike Haertel and Jim Avera for this test.
11871 Here is a matrix of mmap possibilities:
11872 mmap private not fixed
11873 mmap private fixed at somewhere currently unmapped
11874 mmap private fixed at somewhere already mapped
11875 mmap shared not fixed
11876 mmap shared fixed at somewhere currently unmapped
11877 mmap shared fixed at somewhere already mapped
11878 For private mappings, we should verify that changes cannot be read()
11879 back from the file, nor mmap's back from the file at a different
11880 address. (There have been systems where private was not correctly
11881 implemented like the infamous i386 svr4.0, and systems where the
11882 VM page cache was not coherent with the file system buffer cache
11883 like early versions of FreeBSD and possibly contemporary NetBSD.)
11884 For shared mappings, we should conversely verify that changes get
11885 propagated back to all the places they're supposed to be.
11887 Grep wants private fixed already mapped.
11888 The main things grep needs to know about mmap are:
11889 * does it exist and is it safe to write into the mmap'd area
11890 * how to use it (BSD variants) */
11893 #include <sys/mman.h>
11895 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11899 /* This mess was copied from the GNU getpagesize.h. */
11900 #ifndef HAVE_GETPAGESIZE
11901 /* Assume that all systems that can run configure have sys/param.h. */
11902 # ifndef HAVE_SYS_PARAM_H
11903 # define HAVE_SYS_PARAM_H 1
11906 # ifdef _SC_PAGESIZE
11907 # define getpagesize() sysconf(_SC_PAGESIZE)
11908 # else /* no _SC_PAGESIZE */
11909 # ifdef HAVE_SYS_PARAM_H
11910 # include <sys/param.h>
11911 # ifdef EXEC_PAGESIZE
11912 # define getpagesize() EXEC_PAGESIZE
11913 # else /* no EXEC_PAGESIZE */
11915 # define getpagesize() NBPG * CLSIZE
11918 # endif /* no CLSIZE */
11919 # else /* no NBPG */
11921 # define getpagesize() NBPC
11922 # else /* no NBPC */
11924 # define getpagesize() PAGESIZE
11925 # endif /* PAGESIZE */
11926 # endif /* no NBPC */
11927 # endif /* no NBPG */
11928 # endif /* no EXEC_PAGESIZE */
11929 # else /* no HAVE_SYS_PARAM_H */
11930 # define getpagesize() 8192 /* punt totally */
11931 # endif /* no HAVE_SYS_PARAM_H */
11932 # endif /* no _SC_PAGESIZE */
11934 #endif /* no HAVE_GETPAGESIZE */
11939 char *data, *data2, *data3;
11943 pagesize = getpagesize ();
11945 /* First, make a file with some known garbage in it. */
11946 data = (char *) malloc (pagesize);
11949 for (i = 0; i < pagesize; ++i)
11950 *(data + i) = rand ();
11952 fd = creat ("conftest.mmap", 0600);
11955 if (write (fd, data, pagesize) != pagesize)
11959 /* Next, try to mmap the file at a fixed address which already has
11960 something else allocated at it. If we can, also make sure that
11961 we see the same garbage. */
11962 fd = open ("conftest.mmap", O_RDWR);
11965 data2 = (char *) malloc (2 * pagesize);
11968 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11969 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11970 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11972 for (i = 0; i < pagesize; ++i)
11973 if (*(data + i) != *(data2 + i))
11976 /* Finally, make sure that changes to the mapped area do not
11977 percolate back to the file as seen by read(). (This is a bug on
11978 some variants of i386 svr4.0.) */
11979 for (i = 0; i < pagesize; ++i)
11980 *(data2 + i) = *(data2 + i) + 1;
11981 data3 = (char *) malloc (pagesize);
11984 if (read (fd, data3, pagesize) != pagesize)
11986 for (i = 0; i < pagesize; ++i)
11987 if (*(data + i) != *(data3 + i))
11993 if ac_fn_c_try_run "$LINENO"; then :
11994 ac_cv_func_mmap_fixed_mapped=yes
11996 ac_cv_func_mmap_fixed_mapped=no
11998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11999 conftest.$ac_objext conftest.beam conftest.$ac_ext
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12004 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12005 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12007 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12010 rm -f conftest.mmap
12012 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12013 if test "x$ac_cv_type_pid_t" = x""yes; then :
12017 cat >>confdefs.h <<_ACEOF
12023 for ac_header in vfork.h
12025 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12026 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12027 cat >>confdefs.h <<_ACEOF
12028 #define HAVE_VFORK_H 1
12035 for ac_func in fork vfork
12037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12039 eval as_val=\$$as_ac_var
12040 if test "x$as_val" = x""yes; then :
12041 cat >>confdefs.h <<_ACEOF
12042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12048 if test "x$ac_cv_func_fork" = xyes; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12050 $as_echo_n "checking for working fork... " >&6; }
12051 if test "${ac_cv_func_fork_works+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
12054 if test "$cross_compiling" = yes; then :
12055 ac_cv_func_fork_works=cross
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 $ac_includes_default
12064 /* By Ruediger Kuhlmann. */
12065 return fork () < 0;
12071 if ac_fn_c_try_run "$LINENO"; then :
12072 ac_cv_func_fork_works=yes
12074 ac_cv_func_fork_works=no
12076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12077 conftest.$ac_objext conftest.beam conftest.$ac_ext
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12082 $as_echo "$ac_cv_func_fork_works" >&6; }
12085 ac_cv_func_fork_works=$ac_cv_func_fork
12087 if test "x$ac_cv_func_fork_works" = xcross; then
12089 *-*-amigaos* | *-*-msdosdjgpp*)
12090 # Override, as these systems have only a dummy fork() stub
12091 ac_cv_func_fork_works=no
12094 ac_cv_func_fork_works=yes
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12098 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12100 ac_cv_func_vfork_works=$ac_cv_func_vfork
12101 if test "x$ac_cv_func_vfork" = xyes; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12103 $as_echo_n "checking for working vfork... " >&6; }
12104 if test "${ac_cv_func_vfork_works+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12107 if test "$cross_compiling" = yes; then :
12108 ac_cv_func_vfork_works=cross
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12112 /* Thanks to Paul Eggert for this test. */
12113 $ac_includes_default
12114 #include <sys/wait.h>
12115 #ifdef HAVE_VFORK_H
12116 # include <vfork.h>
12118 /* On some sparc systems, changes by the child to local and incoming
12119 argument registers are propagated back to the parent. The compiler
12120 is told about this with #include <vfork.h>, but some compilers
12121 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12122 static variable whose address is put into a register that is
12123 clobbered by the vfork. */
12126 sparc_address_test (int arg)
12128 sparc_address_test (arg) int arg;
12131 static pid_t child;
12149 pid_t parent = getpid ();
12152 sparc_address_test (0);
12157 /* Here is another test for sparc vfork register problems. This
12158 test uses lots of local variables, at least as many local
12159 variables as main has allocated so far including compiler
12160 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12161 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12162 reuse the register of parent for one of the local variables,
12163 since it will think that parent can't possibly be used any more
12164 in this routine. Assigning to the local variable will thus
12165 munge parent in the parent process. */
12167 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12168 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12169 /* Convince the compiler that p..p7 are live; otherwise, it might
12170 use the same hardware register for all 8 local variables. */
12171 if (p != p1 || p != p2 || p != p3 || p != p4
12172 || p != p5 || p != p6 || p != p7)
12175 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12176 from child file descriptors. If the child closes a descriptor
12177 before it execs or exits, this munges the parent's descriptor
12178 as well. Test for this by closing stdout in the child. */
12179 _exit(close(fileno(stdout)) != 0);
12184 while (wait(&status) != child)
12187 /* Was there some problem with vforking? */
12190 /* Did the child fail? (This shouldn't happen.) */
12193 /* Did the vfork/compiler bug occur? */
12194 || parent != getpid()
12196 /* Did the file descriptor bug occur? */
12197 || fstat(fileno(stdout), &st) != 0
12202 if ac_fn_c_try_run "$LINENO"; then :
12203 ac_cv_func_vfork_works=yes
12205 ac_cv_func_vfork_works=no
12207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12208 conftest.$ac_objext conftest.beam conftest.$ac_ext
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12213 $as_echo "$ac_cv_func_vfork_works" >&6; }
12216 if test "x$ac_cv_func_fork_works" = xcross; then
12217 ac_cv_func_vfork_works=$ac_cv_func_vfork
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12219 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12222 if test "x$ac_cv_func_vfork_works" = xyes; then
12224 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12228 $as_echo "#define vfork fork" >>confdefs.h
12231 if test "x$ac_cv_func_fork_works" = xyes; then
12233 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12237 for ac_func in canonicalize_file_name realpath getrusage getuid \
12238 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
12239 sigaction sigprocmask sigsetmask socketpair syscall \
12240 ttrace wborder setlocale iconvlist libiconvlist btowc \
12241 setrlimit getrlimit posix_madvise
12243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12245 eval as_val=\$$as_ac_var
12246 if test "x$as_val" = x""yes; then :
12247 cat >>confdefs.h <<_ACEOF
12248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12256 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12257 if test "${am_cv_langinfo_codeset+set}" = set; then :
12258 $as_echo_n "(cached) " >&6
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12262 #include <langinfo.h>
12266 char* cs = nl_langinfo(CODESET);
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 am_cv_langinfo_codeset=yes
12274 am_cv_langinfo_codeset=no
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12281 $as_echo "$am_cv_langinfo_codeset" >&6; }
12282 if test $am_cv_langinfo_codeset = yes; then
12284 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12289 # Check the return and argument types of ptrace. No canned test for
12290 # this, so roll our own.
12291 gdb_ptrace_headers='
12292 #if HAVE_SYS_TYPES_H
12293 # include <sys/types.h>
12295 #if HAVE_SYS_PTRACE_H
12296 # include <sys/ptrace.h>
12299 # include <unistd.h>
12302 # There is no point in checking if we don't have a prototype.
12303 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12305 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_DECL_PTRACE $ac_have_decl
12314 if test $ac_have_decl = 1; then :
12318 : ${gdb_cv_func_ptrace_ret='int'}
12319 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12323 # Check return type. Varargs (used on GNU/Linux) conflict with the
12324 # empty argument list, so check for that explicitly.
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12326 $as_echo_n "checking return type of ptrace... " >&6; }
12327 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 $gdb_ptrace_headers
12336 extern long ptrace (enum __ptrace_request, ...);
12341 if ac_fn_c_try_compile "$LINENO"; then :
12342 gdb_cv_func_ptrace_ret='long'
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12346 $gdb_ptrace_headers
12350 extern int ptrace ();
12355 if ac_fn_c_try_compile "$LINENO"; then :
12356 gdb_cv_func_ptrace_ret='int'
12358 gdb_cv_func_ptrace_ret='long'
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12365 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12367 cat >>confdefs.h <<_ACEOF
12368 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12371 # Check argument types.
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12373 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12374 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 $gdb_ptrace_headers
12384 extern long ptrace (enum __ptrace_request, ...);
12389 if ac_fn_c_try_compile "$LINENO"; then :
12390 gdb_cv_func_ptrace_args='int,int,long,long'
12393 for gdb_arg1 in 'int' 'long'; do
12394 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12395 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12396 for gdb_arg4 in 'int' 'long'; do
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399 $gdb_ptrace_headers
12404 extern $gdb_cv_func_ptrace_ret
12405 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12411 if ac_fn_c_try_compile "$LINENO"; then :
12412 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 for gdb_arg5 in 'int *' 'int' 'long'; do
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 $gdb_ptrace_headers
12424 extern $gdb_cv_func_ptrace_ret
12425 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12431 if ac_fn_c_try_compile "$LINENO"; then :
12433 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12442 # Provide a safe default value.
12443 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12449 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12450 ac_save_IFS=$IFS; IFS=','
12451 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12455 cat >>confdefs.h <<_ACEOF
12456 #define PTRACE_TYPE_ARG3 $3
12459 if test -n "$5"; then
12461 cat >>confdefs.h <<_ACEOF
12462 #define PTRACE_TYPE_ARG5 $5
12467 if test "$cross_compiling" = no; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12469 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12470 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12473 if test "$cross_compiling" = yes; then :
12474 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 $ac_includes_default
12482 /* If this system has a BSD-style setpgrp which takes arguments,
12483 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12484 exit successfully. */
12485 return setpgrp (1,1) != -1;
12490 if ac_fn_c_try_run "$LINENO"; then :
12491 ac_cv_func_setpgrp_void=no
12493 ac_cv_func_setpgrp_void=yes
12495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12496 conftest.$ac_objext conftest.beam conftest.$ac_ext
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12501 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12502 if test $ac_cv_func_setpgrp_void = yes; then
12504 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12510 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12511 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12517 #include <unistd.h>
12523 if (setpgrp(1,1) == -1)
12532 if ac_fn_c_try_compile "$LINENO"; then :
12533 ac_cv_func_setpgrp_void=no
12535 ac_cv_func_setpgrp_void=yes
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12540 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12541 if test $ac_cv_func_setpgrp_void = yes; then
12542 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12547 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12548 # since sigsetjmp might only be defined as a macro.
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12550 $as_echo_n "checking for sigsetjmp... " >&6; }
12551 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12552 $as_echo_n "(cached) " >&6
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12557 #include <setjmp.h>
12562 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12567 if ac_fn_c_try_compile "$LINENO"; then :
12568 gdb_cv_func_sigsetjmp=yes
12570 gdb_cv_func_sigsetjmp=no
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12575 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12576 if test $gdb_cv_func_sigsetjmp = yes; then
12578 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12582 # Assume we'll default to using the included libiberty regex.
12583 gdb_use_included_regex=yes
12585 # However, if the system regex is GNU regex, then default to *not*
12586 # using the included regex.
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12588 $as_echo_n "checking for GNU regex... " >&6; }
12589 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12590 $as_echo_n "(cached) " >&6
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12594 #include <gnu-versions.h>
12598 #define REGEX_INTERFACE_VERSION 1
12599 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12600 # error "Version mismatch"
12606 if ac_fn_c_try_compile "$LINENO"; then :
12607 gdb_cv_have_gnu_regex=yes
12609 gdb_cv_have_gnu_regex=no
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12614 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12615 if test $gdb_cv_have_gnu_regex = yes; then
12616 gdb_use_included_regex=no
12620 # Check whether --with-included-regex was given.
12621 if test "${with_included_regex+set}" = set; then :
12622 withval=$with_included_regex; gdb_with_regex=$withval
12624 gdb_with_regex=$gdb_use_included_regex
12627 if test "$gdb_with_regex" = yes; then
12629 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12633 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12634 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12635 #include <sys/proc.h>
12638 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12640 cat >>confdefs.h <<_ACEOF
12641 #define HAVE_STRUCT_THREAD_TD_PCB 1
12648 # See if <sys/lwp.h> defines `struct lwp`.
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12650 $as_echo_n "checking for struct lwp... " >&6; }
12651 if test "${gdb_cv_struct_lwp+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12656 #include <sys/param.h>
12657 #include <sys/lwp.h>
12666 if ac_fn_c_try_compile "$LINENO"; then :
12667 gdb_cv_struct_lwp=yes
12669 gdb_cv_struct_lwp=no
12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12674 $as_echo "$gdb_cv_struct_lwp" >&6; }
12675 if test $gdb_cv_struct_lwp = yes; then
12677 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12681 # See if <machine/reg.h> degines `struct reg'.
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12683 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12684 if test "${gdb_cv_struct_reg+set}" = set; then :
12685 $as_echo_n "(cached) " >&6
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12689 #include <sys/types.h>
12690 #include <machine/reg.h>
12699 if ac_fn_c_try_compile "$LINENO"; then :
12700 gdb_cv_struct_reg=yes
12702 gdb_cv_struct_reg=no
12704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12707 $as_echo "$gdb_cv_struct_reg" >&6; }
12708 if test $gdb_cv_struct_reg = yes; then
12710 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12714 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12715 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12716 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12718 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12720 cat >>confdefs.h <<_ACEOF
12721 #define HAVE_STRUCT_REG_R_FS 1
12726 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12728 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12730 cat >>confdefs.h <<_ACEOF
12731 #define HAVE_STRUCT_REG_R_GS 1
12738 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12740 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12741 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12746 #include <sys/ptrace.h>
12755 if ac_fn_c_try_compile "$LINENO"; then :
12756 gdb_cv_have_ptrace_getregs=yes
12758 gdb_cv_have_ptrace_getregs=no
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12764 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12765 if test $gdb_cv_have_ptrace_getregs = yes; then
12767 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12771 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12773 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12774 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779 #include <sys/ptrace.h>
12788 if ac_fn_c_try_compile "$LINENO"; then :
12789 gdb_cv_have_ptrace_getfpxregs=yes
12791 gdb_cv_have_ptrace_getfpxregs=no
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12797 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12798 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12800 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12804 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12806 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12807 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12812 #include <sys/types.h>
12813 #include <sys/ptrace.h>
12822 if ac_fn_c_try_compile "$LINENO"; then :
12823 gdb_cv_have_pt_getdbregs=yes
12825 gdb_cv_have_pt_getdbregs=no
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12831 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12832 if test $gdb_cv_have_pt_getdbregs = yes; then
12834 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12838 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12840 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12841 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12842 $as_echo_n "(cached) " >&6
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #include <sys/types.h>
12847 #include <sys/ptrace.h>
12856 if ac_fn_c_try_compile "$LINENO"; then :
12857 gdb_cv_have_pt_getxmmregs=yes
12859 gdb_cv_have_pt_getxmmregs=no
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12865 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12866 if test $gdb_cv_have_pt_getxmmregs = yes; then
12868 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12872 # Detect which type of /proc is in use, such as for Unixware or Solaris.
12874 if test "${target}" = "${host}"; then
12876 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
12878 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12881 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
12883 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12887 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12889 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12895 if test "$ac_cv_header_sys_procfs_h" = yes; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
12897 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
12898 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12905 /* Needed for new procfs interface on sparc-solaris. */
12906 #define _STRUCTURED_PROC 1
12907 #include <sys/procfs.h>
12916 if ac_fn_c_try_compile "$LINENO"; then :
12917 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12919 bfd_cv_have_sys_procfs_type_pstatus_t=no
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12927 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12931 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
12934 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
12935 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
12936 $as_echo_n "(cached) " >&6
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12942 /* Needed for new procfs interface on sparc-solaris. */
12943 #define _STRUCTURED_PROC 1
12944 #include <sys/procfs.h>
12953 if ac_fn_c_try_compile "$LINENO"; then :
12954 bfd_cv_have_sys_procfs_type_prrun_t=yes
12956 bfd_cv_have_sys_procfs_type_prrun_t=no
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12962 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
12964 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
12968 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12971 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12972 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12979 /* Needed for new procfs interface on sparc-solaris. */
12980 #define _STRUCTURED_PROC 1
12981 #include <sys/procfs.h>
12990 if ac_fn_c_try_compile "$LINENO"; then :
12991 bfd_cv_have_sys_procfs_type_gregset_t=yes
12993 bfd_cv_have_sys_procfs_type_gregset_t=no
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13001 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13005 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13008 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13009 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13016 /* Needed for new procfs interface on sparc-solaris. */
13017 #define _STRUCTURED_PROC 1
13018 #include <sys/procfs.h>
13027 if ac_fn_c_try_compile "$LINENO"; then :
13028 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13030 bfd_cv_have_sys_procfs_type_fpregset_t=no
13033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13038 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13042 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13045 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13046 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13053 /* Needed for new procfs interface on sparc-solaris. */
13054 #define _STRUCTURED_PROC 1
13055 #include <sys/procfs.h>
13064 if ac_fn_c_try_compile "$LINENO"; then :
13065 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13067 bfd_cv_have_sys_procfs_type_prgregset_t=no
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13075 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13079 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13082 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13083 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13090 /* Needed for new procfs interface on sparc-solaris. */
13091 #define _STRUCTURED_PROC 1
13092 #include <sys/procfs.h>
13101 if ac_fn_c_try_compile "$LINENO"; then :
13102 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13104 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13110 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13112 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13116 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13119 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13120 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13127 /* Needed for new procfs interface on sparc-solaris. */
13128 #define _STRUCTURED_PROC 1
13129 #include <sys/procfs.h>
13138 if ac_fn_c_try_compile "$LINENO"; then :
13139 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13141 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13147 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13149 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13153 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13156 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13157 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13164 /* Needed for new procfs interface on sparc-solaris. */
13165 #define _STRUCTURED_PROC 1
13166 #include <sys/procfs.h>
13170 prfpregset32_t avar
13175 if ac_fn_c_try_compile "$LINENO"; then :
13176 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13178 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13186 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13190 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13193 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13194 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13201 /* Needed for new procfs interface on sparc-solaris. */
13202 #define _STRUCTURED_PROC 1
13203 #include <sys/procfs.h>
13212 if ac_fn_c_try_compile "$LINENO"; then :
13213 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13215 bfd_cv_have_sys_procfs_type_lwpid_t=no
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13223 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13227 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13230 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13231 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13238 /* Needed for new procfs interface on sparc-solaris. */
13239 #define _STRUCTURED_PROC 1
13240 #include <sys/procfs.h>
13249 if ac_fn_c_try_compile "$LINENO"; then :
13250 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13252 bfd_cv_have_sys_procfs_type_psaddr_t=no
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13260 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13264 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13267 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13268 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13275 /* Needed for new procfs interface on sparc-solaris. */
13276 #define _STRUCTURED_PROC 1
13277 #include <sys/procfs.h>
13286 if ac_fn_c_try_compile "$LINENO"; then :
13287 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13289 bfd_cv_have_sys_procfs_type_prsysent_t=no
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13297 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13301 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13304 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13305 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13312 /* Needed for new procfs interface on sparc-solaris. */
13313 #define _STRUCTURED_PROC 1
13314 #include <sys/procfs.h>
13323 if ac_fn_c_try_compile "$LINENO"; then :
13324 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13326 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13334 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13338 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13341 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13342 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13343 $as_echo_n "(cached) " >&6
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13349 /* Needed for new procfs interface on sparc-solaris. */
13350 #define _STRUCTURED_PROC 1
13351 #include <sys/procfs.h>
13355 pr_sigaction64_t avar
13360 if ac_fn_c_try_compile "$LINENO"; then :
13361 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13363 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13371 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13375 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13378 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13379 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13386 /* Needed for new procfs interface on sparc-solaris. */
13387 #define _STRUCTURED_PROC 1
13388 #include <sys/procfs.h>
13392 pr_siginfo64_t avar
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13400 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13408 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13412 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13418 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13420 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13421 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13424 if test "$cross_compiling" = yes; then :
13425 gdb_cv_prfpregset_t_broken=yes
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 #include <sys/procfs.h>
13432 if (sizeof (prfpregset_t) == sizeof (void *))
13437 if ac_fn_c_try_run "$LINENO"; then :
13438 gdb_cv_prfpregset_t_broken=no
13440 gdb_cv_prfpregset_t_broken=yes
13442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13443 conftest.$ac_objext conftest.beam conftest.$ac_ext
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13449 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13450 if test $gdb_cv_prfpregset_t_broken = yes; then
13452 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13459 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13460 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13461 $as_echo_n "(cached) " >&6
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #include <unistd.h>
13466 #include <sys/types.h>
13467 #include <sys/procfs.h>
13474 dummy = ioctl(0, PIOCSET, &dummy);
13480 if ac_fn_c_try_compile "$LINENO"; then :
13481 gdb_cv_have_procfs_piocset=yes
13483 gdb_cv_have_procfs_piocset=no
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13489 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13490 if test $gdb_cv_have_procfs_piocset = yes; then
13492 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13497 if test ${host} = ${target} ; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13500 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13501 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13510 struct link_map lm; (void) lm.l_addr;
13515 if ac_fn_c_try_compile "$LINENO"; then :
13516 gdb_cv_have_struct_link_map_with_l_members=yes
13518 gdb_cv_have_struct_link_map_with_l_members=no
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13524 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13525 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13527 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13533 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13534 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539 #include <sys/types.h>
13544 struct link_map lm; (void) lm.lm_addr;
13549 if ac_fn_c_try_compile "$LINENO"; then :
13550 gdb_cv_have_struct_link_map_with_lm_members=yes
13552 gdb_cv_have_struct_link_map_with_lm_members=no
13554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13558 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13559 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13561 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13567 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13568 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13569 $as_echo_n "(cached) " >&6
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h. */
13573 #include <sys/types.h>
13574 #ifdef HAVE_NLIST_H
13581 struct so_map lm; (void) lm.som_addr;
13586 if ac_fn_c_try_compile "$LINENO"; then :
13587 gdb_cv_have_struct_so_map_with_som_members=yes
13589 gdb_cv_have_struct_so_map_with_som_members=no
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13595 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13596 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13598 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13604 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13605 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13606 $as_echo_n "(cached) " >&6
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13611 #include <sys/link.h>
13615 struct link_map32 l;
13620 if ac_fn_c_try_compile "$LINENO"; then :
13621 gdb_cv_have_struct_link_map32=yes
13623 gdb_cv_have_struct_link_map32=no
13625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13629 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13630 if test $gdb_cv_have_struct_link_map32 = yes; then
13632 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13635 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13640 # Check if the compiler supports the `long long' type.
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13643 $as_echo_n "checking for long long support in compiler... " >&6; }
13644 if test "${gdb_cv_c_long_long+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 extern long long foo;
13653 switch (foo & 2) { case 0: return 1; }
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659 gdb_cv_c_long_long=yes
13661 gdb_cv_c_long_long=no
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13666 $as_echo "$gdb_cv_c_long_long" >&6; }
13667 if test $gdb_cv_c_long_long = yes; then
13669 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13673 # Check if the compiler and runtime support printing long longs.
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13676 $as_echo_n "checking for long long support in printf... " >&6; }
13677 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13678 $as_echo_n "(cached) " >&6
13680 if test "$cross_compiling" = yes; then :
13681 gdb_cv_printf_has_long_long=no
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 $ac_includes_default
13691 l = (l << 16) + 0x0123;
13692 l = (l << 16) + 0x4567;
13693 l = (l << 16) + 0x89ab;
13694 l = (l << 16) + 0xcdef;
13695 sprintf (buf, "0x%016llx", l);
13696 return (strcmp ("0x0123456789abcdef", buf));
13701 if ac_fn_c_try_run "$LINENO"; then :
13702 gdb_cv_printf_has_long_long=yes
13704 gdb_cv_printf_has_long_long=no
13706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13707 conftest.$ac_objext conftest.beam conftest.$ac_ext
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13712 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13713 if test $gdb_cv_printf_has_long_long = yes; then
13715 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13719 # Check if the compiler and runtime support printing decfloats.
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13722 $as_echo_n "checking for decfloat support in printf... " >&6; }
13723 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13724 $as_echo_n "(cached) " >&6
13726 if test "$cross_compiling" = yes; then :
13727 gdb_cv_printf_has_decfloat=no
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731 $ac_includes_default
13736 _Decimal32 d32 = 1.2345df;
13737 _Decimal64 d64 = 1.2345dd;
13738 _Decimal128 d128 = 1.2345dl;
13739 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13740 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13745 if ac_fn_c_try_run "$LINENO"; then :
13746 gdb_cv_printf_has_decfloat=yes
13748 gdb_cv_printf_has_decfloat=no
13750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13751 conftest.$ac_objext conftest.beam conftest.$ac_ext
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13756 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13757 if test $gdb_cv_printf_has_decfloat = yes; then
13759 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13763 # Check if the compiler supports the `long double' type. We can't use
13764 # AC_C_LONG_DOUBLE because that one does additional checks on the
13765 # constants defined in <float.h> that fail on some systems,
13766 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13769 $as_echo_n "checking for long double support in compiler... " >&6; }
13770 if test "${gdb_cv_c_long_double+set}" = set; then :
13771 $as_echo_n "(cached) " >&6
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13777 if ac_fn_c_try_compile "$LINENO"; then :
13778 gdb_cv_c_long_double=yes
13780 gdb_cv_c_long_double=no
13782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13785 $as_echo "$gdb_cv_c_long_double" >&6; }
13786 if test $gdb_cv_c_long_double = yes; then
13788 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13792 # Check if the compiler and runtime support printing long doubles.
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13795 $as_echo_n "checking for long double support in printf... " >&6; }
13796 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13799 if test "$cross_compiling" = yes; then :
13800 gdb_cv_printf_has_long_double=no
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 $ac_includes_default
13809 long double f = 3.141592653;
13810 sprintf (buf, "%Lg", f);
13811 return (strncmp ("3.14159", buf, 7));
13816 if ac_fn_c_try_run "$LINENO"; then :
13817 gdb_cv_printf_has_long_double=yes
13819 gdb_cv_printf_has_long_double=no
13821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13822 conftest.$ac_objext conftest.beam conftest.$ac_ext
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13827 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13828 if test $gdb_cv_printf_has_long_double = yes; then
13830 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13834 # Check if the compiler and runtime support scanning long doubles.
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13837 $as_echo_n "checking for long double support in scanf... " >&6; }
13838 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13839 $as_echo_n "(cached) " >&6
13841 if test "$cross_compiling" = yes; then :
13842 gdb_cv_scanf_has_long_double=no
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13850 char *buf = "3.141592653";
13852 sscanf (buf, "%Lg", &f);
13853 return !(f > 3.14159 && f < 3.14160);
13858 if ac_fn_c_try_run "$LINENO"; then :
13859 gdb_cv_scanf_has_long_double=yes
13861 gdb_cv_scanf_has_long_double=no
13863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13864 conftest.$ac_objext conftest.beam conftest.$ac_ext
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13869 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13870 if test $gdb_cv_scanf_has_long_double = yes; then
13872 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13879 $as_echo_n "checking for -bbigtoc option... " >&6; }
13880 if test "${gdb_cv_bigtoc+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13884 SAVE_LDFLAGS=$LDFLAGS
13887 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
13888 *) gdb_cv_bigtoc=-bbigtoc ;;
13891 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13903 if ac_fn_c_try_link "$LINENO"; then :
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 LDFLAGS="${SAVE_LDFLAGS}"
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13914 $as_echo "$gdb_cv_bigtoc" >&6; }
13915 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13921 if test ${build} = ${host} -a ${host} = ${target} ; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
13925 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
13926 if test -f /usr/include/dce/cma_config.h ; then
13927 if test "$GCC" = "yes" ; then
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13929 $as_echo "yes" >&6; }
13931 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
13933 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
13934 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
13937 $as_echo "no (suppressed because you are not using GCC)" >&6; }
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13941 $as_echo "no" >&6; }
13945 # See if thread_db library is around for Solaris thread debugging.
13946 # Note that we must explicitly test for version 1 of the library
13947 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13950 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13951 if test -f /usr/lib/libthread_db.so.1 ; then
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13953 $as_echo "yes" >&6; }
13955 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13957 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
13958 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13960 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13961 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13962 $as_echo_n "(cached) " >&6
13964 ac_check_lib_save_LIBS=$LIBS
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13969 /* Override any GCC internal prototype to avoid an error.
13970 Use char because int might match the return type of a GCC
13971 builtin and then its argument prototype would still apply. */
13984 if ac_fn_c_try_link "$LINENO"; then :
13985 ac_cv_lib_dl_dlopen=yes
13987 ac_cv_lib_dl_dlopen=no
13989 rm -f core conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13991 LIBS=$ac_check_lib_save_LIBS
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13994 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13995 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13996 cat >>confdefs.h <<_ACEOF
13997 #define HAVE_LIBDL 1
14004 if test "$GCC" = "yes" ; then
14005 # The GNU linker requires the -export-dynamic option to make
14006 # all symbols visible in the dynamic symbol table.
14007 hold_ldflags=$LDFLAGS
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
14009 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
14010 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14022 if ac_fn_c_try_link "$LINENO"; then :
14027 rm -f core conftest.err conftest.$ac_objext \
14028 conftest$ac_exeext conftest.$ac_ext
14029 LDFLAGS=$hold_ldflags
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14031 $as_echo "$found" >&6; }
14032 if test $found = yes; then
14033 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
14036 # Sun randomly tweaked the prototypes in <proc_service.h>
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14039 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14040 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14041 $as_echo_n "(cached) " >&6
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14047 #include <proc_service.h>
14048 ps_err_e ps_pdwrite
14049 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14059 if ac_fn_c_try_compile "$LINENO"; then :
14060 gdb_cv_proc_service_is_old=no
14062 gdb_cv_proc_service_is_old=yes
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14069 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14070 if test $gdb_cv_proc_service_is_old = yes; then
14072 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077 $as_echo "no" >&6; }
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14082 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14083 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14084 $as_echo_n "(cached) " >&6
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14088 #include <sys/pthdebug.h>
14092 #ifndef PTHDB_VERSION_3
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100 gdb_cv_have_aix_thread_debug=yes
14102 gdb_cv_have_aix_thread_debug=no
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14108 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14109 if test $gdb_cv_have_aix_thread_debug = yes; then
14110 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14111 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14112 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14119 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14121 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14122 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14123 $as_echo_n "(cached) " >&6
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 #include <thread_db.h>
14131 int i = TD_NOTALLOC;
14136 if ac_fn_c_try_compile "$LINENO"; then :
14137 gdb_cv_thread_db_h_has_td_notalloc=yes
14139 gdb_cv_thread_db_h_has_td_notalloc=no
14142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14146 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14148 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14149 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 #include <thread_db.h>
14158 int i = TD_VERSION;
14163 if ac_fn_c_try_compile "$LINENO"; then :
14164 gdb_cv_thread_db_h_has_td_version=yes
14166 gdb_cv_thread_db_h_has_td_version=no
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14173 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14175 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14176 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14177 $as_echo_n "(cached) " >&6
14179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h. */
14181 #include <thread_db.h>
14190 if ac_fn_c_try_compile "$LINENO"; then :
14191 gdb_cv_thread_db_h_has_td_notls=yes
14193 gdb_cv_thread_db_h_has_td_notls=no
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14200 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14202 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14204 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14207 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14209 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14212 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14214 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14218 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14220 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14221 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 #include <sys/syscall.h>
14230 int i = __NR_tkill;
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 gdb_cv_sys_syscall_h_has_tkill=yes
14238 gdb_cv_sys_syscall_h_has_tkill=no
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14245 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14247 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14249 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14253 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14255 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14261 cat >>confdefs.h <<_ACEOF
14262 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14266 if test "$cross_compiling" = yes; then :
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269 #include <sys/personality.h>
14274 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14275 # define ADDR_NO_RANDOMIZE 0x0040000
14277 /* Test the flag could be set and stays set. */
14278 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14279 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14285 if ac_fn_c_try_link "$LINENO"; then :
14286 have_personality=true
14288 have_personality=false
14290 rm -f core conftest.err conftest.$ac_objext \
14291 conftest$ac_exeext conftest.$ac_ext
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295 #include <sys/personality.h>
14300 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14301 # define ADDR_NO_RANDOMIZE 0x0040000
14303 /* Test the flag could be set and stays set. */
14304 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14305 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14311 if ac_fn_c_try_run "$LINENO"; then :
14312 have_personality=true
14314 have_personality=false
14316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14317 conftest.$ac_objext conftest.beam conftest.$ac_ext
14320 if $have_personality
14323 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14328 target_sysroot_reloc=0
14330 # Check whether --with-sysroot was given.
14331 if test "${with_sysroot+set}" = set; then :
14332 withval=$with_sysroot;
14333 case ${with_sysroot} in
14334 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14335 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14338 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14340 if test "x$prefix" = xNONE; then
14341 test_prefix=/usr/local
14343 test_prefix=$prefix
14345 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14346 test_exec_prefix=$test_prefix
14348 test_exec_prefix=$exec_prefix
14350 case ${TARGET_SYSTEM_ROOT} in
14351 "${test_prefix}"|"${test_prefix}/"*|\
14352 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14353 '${prefix}'|'${prefix}/'*|\
14354 '${exec_prefix}'|'${exec_prefix}/'*)
14355 target_sysroot_reloc=1
14361 TARGET_SYSTEM_ROOT=
14362 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14366 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14372 # Check whether --with-system-gdbinit was given.
14373 if test "${with_system_gdbinit+set}" = set; then :
14374 withval=$with_system_gdbinit;
14375 SYSTEM_GDBINIT=$withval
14381 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14383 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14384 ac_define_dir=`eval echo $ac_define_dir`
14386 cat >>confdefs.h <<_ACEOF
14387 #define SYSTEM_GDBINIT "$ac_define_dir"
14392 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14393 if test "x$prefix" = xNONE; then
14394 test_prefix=/usr/local
14396 test_prefix=$prefix
14399 test_prefix=$exec_prefix
14402 case ${ac_define_dir} in
14403 "${test_prefix}"|"${test_prefix}/"*|\
14404 '${exec_prefix}'|'${exec_prefix}/'*)
14409 cat >>confdefs.h <<_ACEOF
14410 #define SYSTEM_GDBINIT_RELOCATABLE $value
14415 # Check whether --enable-werror was given.
14416 if test "${enable_werror+set}" = set; then :
14417 enableval=$enable_werror; case "${enableval}" in
14418 yes | y) ERROR_ON_WARNING="yes" ;;
14419 no | n) ERROR_ON_WARNING="no" ;;
14420 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14425 # Enable -Werror by default when using gcc
14426 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14427 ERROR_ON_WARNING=yes
14431 if test "${ERROR_ON_WARNING}" = yes ; then
14432 WERROR_CFLAGS="-Werror"
14435 # The entries after -Wno-pointer-sign are disabled warnings which may
14436 # be enabled in the future, which can not currently be used to build
14438 # NOTE: If you change this list, remember to update
14439 # gdb/doc/gdbint.texinfo.
14440 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14441 -Wformat-nonliteral -Wno-pointer-sign \
14442 -Wno-unused -Wunused-value -Wunused-function \
14443 -Wno-switch -Wno-char-subscripts"
14445 # Enable -Wno-format by default when using gcc on mingw since many
14446 # GCC versions complain about %I64.
14448 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14451 # Check whether --enable-build-warnings was given.
14452 if test "${enable_build_warnings+set}" = set; then :
14453 enableval=$enable_build_warnings; case "${enableval}" in
14455 no) build_warnings="-w";;
14456 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14457 build_warnings="${build_warnings} ${t}";;
14458 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14459 build_warnings="${t} ${build_warnings}";;
14460 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14462 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14463 echo "Setting compiler warning flags = $build_warnings" 6>&1
14466 # Check whether --enable-gdb-build-warnings was given.
14467 if test "${enable_gdb_build_warnings+set}" = set; then :
14468 enableval=$enable_gdb_build_warnings; case "${enableval}" in
14470 no) build_warnings="-w";;
14471 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14472 build_warnings="${build_warnings} ${t}";;
14473 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14474 build_warnings="${t} ${build_warnings}";;
14475 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14477 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14478 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14482 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14485 $as_echo_n "checking compiler warning flags... " >&6; }
14486 # Separate out the -Werror flag as some files just cannot be
14487 # compiled with it enabled.
14488 for w in ${build_warnings}; do
14490 -Werr*) WERROR_CFLAGS=-Werror ;;
14491 *) # Check that GCC accepts it
14492 saved_CFLAGS="$CFLAGS"
14493 CFLAGS="$CFLAGS $w"
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14505 if ac_fn_c_try_compile "$LINENO"; then :
14506 WARN_CFLAGS="${WARN_CFLAGS} $w"
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 CFLAGS="$saved_CFLAGS"
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14513 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14518 # In the Cygwin environment, we need some additional flags.
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14520 $as_echo_n "checking for cygwin... " >&6; }
14521 if test "${gdb_cv_os_cygwin+set}" = set; then :
14522 $as_echo_n "(cached) " >&6
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14527 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14532 $EGREP "lose" >/dev/null 2>&1; then :
14533 gdb_cv_os_cygwin=yes
14535 gdb_cv_os_cygwin=no
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14541 $as_echo "$gdb_cv_os_cygwin" >&6; }
14544 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14546 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14547 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14548 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14552 # libreadline needs libuser32.a in a cygwin environment
14554 if test x$gdb_cv_os_cygwin = xyes; then
14555 WIN32LIBS="-luser32"
14556 case "${target}" in
14557 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14562 # The ser-tcp.c module requires sockets.
14566 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14568 WIN32LIBS="$WIN32LIBS -lws2_32"
14573 # Add ELF support to GDB, but only if BFD includes ELF support.
14575 OLD_LDFLAGS=$LDFLAGS
14577 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14578 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14579 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14580 LIBS="-lbfd -liberty $intl $LIBS"
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14582 $as_echo_n "checking for ELF support in BFD... " >&6; }
14583 if test "${gdb_cv_var_elf+set}" = set; then :
14584 $as_echo_n "(cached) " >&6
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14588 #include <stdlib.h>
14590 #include "elf-bfd.h"
14595 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14600 if ac_fn_c_try_link "$LINENO"; then :
14605 rm -f core conftest.err conftest.$ac_objext \
14606 conftest$ac_exeext conftest.$ac_ext
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14609 $as_echo "$gdb_cv_var_elf" >&6; }
14610 if test $gdb_cv_var_elf = yes; then
14611 CONFIG_OBS="$CONFIG_OBS elfread.o"
14613 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14617 LDFLAGS=$OLD_LDFLAGS
14620 # Add any host-specific objects to GDB.
14621 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14623 LIBGUI="../libgui/src/libgui.a"
14624 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14633 *-*-cygwin* | *-*-mingw* )
14642 if test "${enable_gdbtk}" = "yes"; then
14644 # Gdbtk must have an absolute path to srcdir in order to run
14645 # properly when not installed.
14648 GDBTK_SRC_DIR=`pwd`
14653 # Ok, lets find the tcl configuration
14654 # First, look for one uninstalled.
14655 # the alternative search directory is invoked by --with-tcl
14658 if test x"${no_tcl}" = x ; then
14659 # we reset no_tcl in case something fails here
14662 # Check whether --with-tcl was given.
14663 if test "${with_tcl+set}" = set; then :
14664 withval=$with_tcl; with_tclconfig=${withval}
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14668 $as_echo_n "checking for Tcl configuration... " >&6; }
14669 if test "${ac_cv_c_tclconfig+set}" = set; then :
14670 $as_echo_n "(cached) " >&6
14674 # First check to see if --with-tcl was specified.
14676 *-*-cygwin*) platDir="win" ;;
14677 *) platDir="unix" ;;
14679 if test x"${with_tclconfig}" != x ; then
14680 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14681 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
14683 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14687 # then check for a private Tcl installation
14688 if test x"${ac_cv_c_tclconfig}" = x ; then
14691 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14692 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14693 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14695 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14696 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14697 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14699 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14700 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14701 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14702 if test -f "$i/$platDir/tclConfig.sh" ; then
14703 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14709 # on Darwin, check in Framework installation locations
14710 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
14711 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14712 `ls -d /Library/Frameworks 2>/dev/null` \
14713 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14714 `ls -d /System/Library/Frameworks 2>/dev/null` \
14716 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14717 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
14723 # check in a few common install locations
14724 if test x"${ac_cv_c_tclconfig}" = x ; then
14725 for i in `ls -d ${libdir} 2>/dev/null` \
14726 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14727 `ls -d ${prefix}/lib 2>/dev/null` \
14728 `ls -d /usr/local/lib 2>/dev/null` \
14729 `ls -d /usr/contrib/lib 2>/dev/null` \
14730 `ls -d /usr/lib 2>/dev/null` \
14732 if test -f "$i/tclConfig.sh" ; then
14733 ac_cv_c_tclconfig=`(cd $i; pwd)`
14739 # check in a few other private locations
14740 if test x"${ac_cv_c_tclconfig}" = x ; then
14743 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14744 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14745 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14746 if test -f "$i/$platDir/tclConfig.sh" ; then
14747 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14756 if test x"${ac_cv_c_tclconfig}" = x ; then
14757 TCL_BIN_DIR="# no Tcl configs found"
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14759 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14762 TCL_BIN_DIR=${ac_cv_c_tclconfig}
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14764 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14769 # If $no_tk is nonempty, then we can't do Tk, and there is no
14770 # point to doing Tcl.
14773 # Ok, lets find the tk configuration
14774 # First, look for one uninstalled.
14775 # the alternative search directory is invoked by --with-tk
14778 if test x"${no_tk}" = x ; then
14779 # we reset no_tk in case something fails here
14782 # Check whether --with-tk was given.
14783 if test "${with_tk+set}" = set; then :
14784 withval=$with_tk; with_tkconfig=${withval}
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14788 $as_echo_n "checking for Tk configuration... " >&6; }
14789 if test "${ac_cv_c_tkconfig+set}" = set; then :
14790 $as_echo_n "(cached) " >&6
14794 # First check to see if --with-tkconfig was specified.
14795 if test x"${with_tkconfig}" != x ; then
14796 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14797 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
14799 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14803 # then check for a private Tk library
14805 *-*-cygwin*) platDir="win" ;;
14806 *) platDir="unix" ;;
14808 if test x"${ac_cv_c_tkconfig}" = x ; then
14811 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14812 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14813 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14815 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14816 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14817 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14819 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14820 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14821 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14822 if test -f "$i/$platDir/tkConfig.sh" ; then
14823 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14829 # on Darwin, check in Framework installation locations
14830 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
14831 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14832 `ls -d /Library/Frameworks 2>/dev/null` \
14833 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14834 `ls -d /System/Library/Frameworks 2>/dev/null` \
14836 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14837 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
14843 # check in a few common install locations
14844 if test x"${ac_cv_c_tkconfig}" = x ; then
14845 for i in `ls -d ${libdir} 2>/dev/null` \
14846 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14847 `ls -d ${prefix}/lib 2>/dev/null` \
14848 `ls -d /usr/local/lib 2>/dev/null` \
14849 `ls -d /usr/contrib/lib 2>/dev/null` \
14850 `ls -d /usr/lib 2>/dev/null` \
14852 if test -f "$i/tkConfig.sh" ; then
14853 ac_cv_c_tkconfig=`(cd $i; pwd)`
14858 # check in a few other private locations
14859 if test x"${ac_cv_c_tkconfig}" = x ; then
14862 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14863 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14864 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14865 if test -f "$i/$platDir/tkConfig.sh" ; then
14866 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14875 if test x"${ac_cv_c_tkconfig}" = x ; then
14876 TK_BIN_DIR="# no Tk configs found"
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14878 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14881 TK_BIN_DIR=${ac_cv_c_tkconfig}
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14883 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14888 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14891 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14893 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14895 $as_echo "loading" >&6; }
14896 . ${TCL_BIN_DIR}/tclConfig.sh
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14899 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14902 # eval is required to do the TCL_DBGX substitution
14903 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14904 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14906 # If the TCL_BIN_DIR is the build directory (not the install directory),
14907 # then set the common variable name to the value of the build variables.
14908 # For example, the variable TCL_LIB_SPEC will be set to the value
14909 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14910 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14911 # installed and uninstalled version of Tcl.
14912 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14913 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
14914 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
14915 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
14916 elif test "`uname -s`" = "Darwin"; then
14917 # If Tcl was built as a framework, attempt to use the libraries
14918 # from the framework at the given location so that linking works
14919 # against Tcl.framework installed in an arbitary location.
14920 case ${TCL_DEFS} in
14922 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14923 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
14924 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14925 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14926 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14931 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14932 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14933 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14939 # eval is required to do the TCL_DBGX substitution
14940 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14941 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14942 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14943 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14959 # Check for in-tree tcl
14966 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14970 # Find Tcl private headers
14971 if test x"${intree}" = xno; then
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14974 $as_echo_n "checking for Tcl private headers... " >&6; }
14976 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14977 if test -f ${dir}/tclInt.h ; then
14981 if test x"${private_dir}" = x; then
14982 as_fn_error "could not find private Tcl headers" "$LINENO" 5
14984 TCL_PRIVATE_INCLUDE="-I${private_dir}"
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14986 $as_echo "${private_dir}" >&6; }
14989 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14990 TCL_LIBRARY="${TCL_LIB_SPEC}"
14993 # If building tcl in the same src tree, private headers
14994 # are not needed, but we need to be sure to use the right
14996 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
14997 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
14998 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15006 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15008 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15010 $as_echo "loading" >&6; }
15011 . ${TK_BIN_DIR}/tkConfig.sh
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15014 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15017 # eval is required to do the TK_DBGX substitution
15018 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15019 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15021 # If the TK_BIN_DIR is the build directory (not the install directory),
15022 # then set the common variable name to the value of the build variables.
15023 # For example, the variable TK_LIB_SPEC will be set to the value
15024 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15025 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15026 # installed and uninstalled version of Tcl.
15027 if test -f "${TK_BIN_DIR}/Makefile" ; then
15028 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15029 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15030 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15031 elif test "`uname -s`" = "Darwin"; then
15032 # If Tk was built as a framework, attempt to use the libraries
15033 # from the framework at the given location so that linking works
15034 # against Tk.framework installed in an arbitary location.
15037 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15038 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15039 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15040 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15041 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15046 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15047 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15048 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15054 # eval is required to do the TK_DBGX substitution
15055 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15056 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15057 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15058 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15073 # Check for in-tree Tk
15075 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15079 # Find Tk private headers
15080 if test x"${intree}" = xno; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15083 $as_echo_n "checking for Tk private headers... " >&6; }
15085 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15086 if test -f ${dir}/tkInt.h; then
15090 if test x"${private_dir}" = x; then
15091 as_fn_error "could not find Tk private headers" "$LINENO" 5
15093 TK_PRIVATE_INCLUDE="-I${private_dir}"
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15095 $as_echo "${private_dir}" >&6; }
15098 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15099 TK_LIBRARY=${TK_LIB_SPEC}
15102 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15103 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15104 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15111 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15113 # Include some libraries that Tcl and Tk want.
15114 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15115 # Yes, the ordering seems wrong here. But it isn't.
15116 # TK_LIBS is the list of libraries that need to be linked
15117 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15118 # were in LIBS then any link tests after this point would
15119 # try to include things like `$(LIBGUI)', which wouldn't work.
15120 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15122 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15123 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15124 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15125 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15126 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15127 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15128 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15130 if test x$gdb_cv_os_cygwin = xyes; then
15131 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15132 WIN32LDAPP="-Wl,--subsystem,console"
15133 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15136 subdirs="$subdirs gdbtk"
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15149 $as_echo_n "checking for X... " >&6; }
15152 # Check whether --with-x was given.
15153 if test "${with_x+set}" = set; then :
15157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15158 if test "x$with_x" = xno; then
15159 # The user explicitly disabled X.
15162 case $x_includes,$x_libraries in #(
15163 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15164 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15165 $as_echo_n "(cached) " >&6
15167 # One or both of the vars are not set, and there is no cached value.
15168 ac_x_includes=no ac_x_libraries=no
15169 rm -f -r conftest.dir
15170 if mkdir conftest.dir; then
15172 cat >Imakefile <<'_ACEOF'
15174 @echo incroot='${INCROOT}'
15176 @echo usrlibdir='${USRLIBDIR}'
15178 @echo libdir='${LIBDIR}'
15180 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15181 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15182 for ac_var in incroot usrlibdir libdir; do
15183 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15185 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15186 for ac_extension in a so sl dylib la dll; do
15187 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15188 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15189 ac_im_usrlibdir=$ac_im_libdir; break
15192 # Screen out bogus values from the imake configuration. They are
15193 # bogus both because they are the default anyway, and because
15194 # using them would break gcc on systems where it needs fixed includes.
15195 case $ac_im_incroot in
15196 /usr/include) ac_x_includes= ;;
15197 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15199 case $ac_im_usrlibdir in
15200 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15201 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15205 rm -f -r conftest.dir
15208 # Standard set of common directories for X headers.
15209 # Check X11 before X11Rn because it is often a symlink to the current release.
15223 /usr/local/X11/include
15224 /usr/local/X11R7/include
15225 /usr/local/X11R6/include
15226 /usr/local/X11R5/include
15227 /usr/local/X11R4/include
15229 /usr/local/include/X11
15230 /usr/local/include/X11R7
15231 /usr/local/include/X11R6
15232 /usr/local/include/X11R5
15233 /usr/local/include/X11R4
15237 /usr/XFree86/include/X11
15241 /usr/unsupported/include
15242 /usr/athena/include
15243 /usr/local/x11r5/include
15244 /usr/lpp/Xamples/include
15246 /usr/openwin/include
15247 /usr/openwin/share/include'
15249 if test "$ac_x_includes" = no; then
15250 # Guess where to find include files, by looking for Xlib.h.
15251 # First, try using that file with no special directory specified.
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254 #include <X11/Xlib.h>
15256 if ac_fn_c_try_cpp "$LINENO"; then :
15257 # We can compile using X headers with no special include directory.
15260 for ac_dir in $ac_x_header_dirs; do
15261 if test -r "$ac_dir/X11/Xlib.h"; then
15262 ac_x_includes=$ac_dir
15267 rm -f conftest.err conftest.$ac_ext
15268 fi # $ac_x_includes = no
15270 if test "$ac_x_libraries" = no; then
15271 # Check for the libraries.
15272 # See if we find them without any special options.
15273 # Don't add to $LIBS permanently.
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15278 #include <X11/Xlib.h>
15287 if ac_fn_c_try_link "$LINENO"; then :
15289 # We can link X programs with no special library path.
15293 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15295 # Don't even attempt the hair of trying to link an X program!
15296 for ac_extension in a so sl dylib la dll; do
15297 if test -r "$ac_dir/libX11.$ac_extension"; then
15298 ac_x_libraries=$ac_dir
15304 rm -f core conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15306 fi # $ac_x_libraries = no
15308 case $ac_x_includes,$ac_x_libraries in #(
15309 no,* | *,no | *\'*)
15310 # Didn't find X, or a directory has "'" in its name.
15311 ac_cv_have_x="have_x=no";; #(
15313 # Record where we found X for the cache.
15314 ac_cv_have_x="have_x=yes\
15315 ac_x_includes='$ac_x_includes'\
15316 ac_x_libraries='$ac_x_libraries'"
15322 eval "$ac_cv_have_x"
15325 if test "$have_x" != yes; then
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15327 $as_echo "$have_x" >&6; }
15330 # If each of the values was on the command line, it overrides each guess.
15331 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15332 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15333 # Update the cache value to reflect the command line values.
15334 ac_cv_have_x="have_x=yes\
15335 ac_x_includes='$x_includes'\
15336 ac_x_libraries='$x_libraries'"
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15338 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15342 # Unlike the sim directory, whether a simulator is linked is controlled by
15343 # presence of a gdb_sim definition in the target configure.tgt entry.
15344 # This code just checks for a few cases where we'd like to ignore those
15345 # definitions, even when they're present in the '.mt' file. These cases
15346 # are when --disable-sim is specified, or if the simulator directory is
15347 # not part of the source tree.
15349 # Check whether --enable-sim was given.
15350 if test "${enable_sim+set}" = set; then :
15351 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15352 echo "enableval = ${enableval}";
15353 case "${enableval}" in
15354 yes) ignore_sim=false ;;
15355 no) ignore_sim=true ;;
15356 *) ignore_sim=false ;;
15363 if test ! -d "${srcdir}/../sim"; then
15369 if test "${ignore_sim}" = "false"; then
15370 if test x"${gdb_sim}" != x ; then
15372 SIM_OBS="remote-sim.o"
15374 $as_echo "#define WITH_SIM 1" >>confdefs.h
15392 # List of host floatformats.
15394 cat >>confdefs.h <<_ACEOF
15395 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15399 cat >>confdefs.h <<_ACEOF
15400 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15404 cat >>confdefs.h <<_ACEOF
15405 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15409 # target_subdir is used by the testsuite to find the target libraries.
15411 if test "${host}" != "${target}"; then
15412 target_subdir="${target_alias}/"
15417 if test "${gdb_native}" = "yes"; then
15418 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15419 if test ! -f ${host_makefile_frag}; then
15420 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15422 frags="$frags $host_makefile_frag"
15424 host_makefile_frag=/dev/null
15430 if test "${gdb_native}" = "yes"; then
15431 # We pick this up from the host configuration file (.mh) because we
15432 # do not have a native configuration Makefile fragment.
15433 nativefile=`sed -n '
15434 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15435 ' ${host_makefile_frag}`
15439 if test x"${gdb_osabi}" != x ; then
15441 cat >>confdefs.h <<_ACEOF
15442 #define GDB_OSABI_DEFAULT $gdb_osabi
15447 # Enable multi-ice-gdb-server.
15448 # Check whether --enable-multi-ice was given.
15449 if test "${enable_multi_ice+set}" = set; then :
15450 enableval=$enable_multi_ice; case $enableval in
15453 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15457 if test "x$enable_multi_ice" = xyes; then
15458 subdirs="$subdirs multi-ice"
15462 # We only build gdbserver automatically in a native configuration.
15463 if test "$gdb_native" = "yes"; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15465 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15466 if test "x$build_gdbserver" = xyes; then
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15468 $as_echo "yes" >&6; }
15469 subdirs="$subdirs gdbserver"
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473 $as_echo "no" >&6; }
15477 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15478 # to an empty version.
15484 if test "${nativefile}" != ""; then
15485 case "${nativefile}" in
15486 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15487 * ) GDB_NM_FILE="${nativefile}"
15489 files="${files} ${GDB_NM_FILE}"
15490 links="${links} nm.h"
15492 cat >>confdefs.h <<_ACEOF
15493 #define GDB_NM_FILE "${GDB_NM_FILE}"
15499 ac_sources="$files"
15501 while test -n "$ac_sources"; do
15502 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15503 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15504 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15506 ac_config_links="$ac_config_links $ac_config_links_1"
15512 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15515 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
15517 ac_config_commands="$ac_config_commands default"
15519 cat >confcache <<\_ACEOF
15520 # This file is a shell script that caches the results of configure
15521 # tests run on this system so they can be shared between configure
15522 # scripts and configure runs, see configure's option --config-cache.
15523 # It is not useful on other systems. If it contains results you don't
15524 # want to keep, you may remove or edit it.
15526 # config.status only pays attention to the cache file if you give it
15527 # the --recheck option to rerun configure.
15529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15531 # following values.
15535 # The following way of writing the cache mishandles newlines in values,
15536 # but we know of no workaround that is simple, portable, and efficient.
15537 # So, we kill variables containing newlines.
15538 # Ultrix sh set writes to stderr and can't be redirected directly,
15539 # and sets the high bit in the cache file unless we assign to the vars.
15541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15542 eval ac_val=\$$ac_var
15546 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15550 _ | IFS | as_nl) ;; #(
15551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15552 *) { eval $ac_var=; unset $ac_var;} ;;
15558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15559 *${as_nl}ac_space=\ *)
15560 # `set' does not quote correctly, so add quotes: double-quote
15561 # substitution turns \\\\ into \\, and sed turns \\ into \.
15564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15567 # `set' quotes correctly as required by POSIX, so do not add quotes.
15568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15582 if test -w "$cache_file"; then
15583 test "x$cache_file" != "x/dev/null" &&
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15585 $as_echo "$as_me: updating cache $cache_file" >&6;}
15586 cat confcache >$cache_file
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15589 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15595 # Let make expand exec_prefix.
15596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15598 DEFS=-DHAVE_CONFIG_H
15602 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15603 # 1. Remove the extension, and $U if already installed.
15604 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15605 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15606 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15607 # will be set to the directory where LIBOBJS objects are built.
15608 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15609 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15611 LIBOBJS=$ac_libobjs
15613 LTLIBOBJS=$ac_ltlibobjs
15616 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15617 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15620 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15621 as_fn_error "conditional \"GMAKE\" was never defined.
15622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15624 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15625 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15631 if test -n "$gl_LIBOBJS"; then
15632 # Remove the extension.
15633 sed_drop_objext='s/\.o$//;s/\.obj$//'
15634 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15635 gl_libobjs="$gl_libobjs $i.$ac_objext"
15636 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15639 gl_LIBOBJS=$gl_libobjs
15641 gl_LTLIBOBJS=$gl_ltlibobjs
15647 if test -n "$gltests_LIBOBJS"; then
15648 # Remove the extension.
15649 sed_drop_objext='s/\.o$//;s/\.obj$//'
15650 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15651 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15652 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15655 gltests_LIBOBJS=$gltests_libobjs
15657 gltests_LTLIBOBJS=$gltests_ltlibobjs
15660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15661 as_fn_error "conditional \"AMDEP\" was never defined.
15662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15665 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15668 if test -n "$EXEEXT"; then
15670 am__EXEEXT_FALSE='#'
15672 am__EXEEXT_TRUE='#'
15678 : ${CONFIG_STATUS=./config.status}
15680 ac_clean_files_save=$ac_clean_files
15681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15683 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15685 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15687 # Generated by $as_me.
15688 # Run this file to recreate the current configuration.
15689 # Compiler output produced by configure, useful for debugging
15690 # configure, is in config.log if it exists.
15693 ac_cs_recheck=false
15696 SHELL=\${CONFIG_SHELL-$SHELL}
15699 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15700 ## -------------------- ##
15701 ## M4sh Initialization. ##
15702 ## -------------------- ##
15704 # Be more Bourne compatible
15705 DUALCASE=1; export DUALCASE # for MKS sh
15706 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15709 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15710 # is contrary to our usage. Disable this feature.
15711 alias -g '${1+"$@"}'='"$@"'
15712 setopt NO_GLOB_SUBST
15714 case `(set -o) 2>/dev/null` in #(
15726 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15727 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15730 # Prefer a ksh shell builtin over an external printf program on Solaris,
15731 # but without wasting forks for bash or zsh.
15732 if test -z "$BASH_VERSION$ZSH_VERSION" \
15733 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15734 as_echo='print -r --'
15735 as_echo_n='print -rn --'
15736 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15737 as_echo='printf %s\n'
15738 as_echo_n='printf %s'
15740 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15741 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15742 as_echo_n='/usr/ucb/echo -n'
15744 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15745 as_echo_n_body='eval
15749 expr "X$arg" : "X\\(.*\\)$as_nl";
15750 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15752 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15754 export as_echo_n_body
15755 as_echo_n='sh -c $as_echo_n_body as_echo'
15757 export as_echo_body
15758 as_echo='sh -c $as_echo_body as_echo'
15761 # The user is always right.
15762 if test "${PATH_SEPARATOR+set}" != set; then
15764 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15765 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15772 # We need space, tab and new line, in precisely that order. Quoting is
15773 # there to prevent editors from complaining about space-tab.
15774 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15775 # splitting by setting IFS to empty value.)
15778 # Find who we are. Look in the path if we contain no directory separator.
15780 *[\\/]* ) as_myself=$0 ;;
15781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15782 for as_dir in $PATH
15785 test -z "$as_dir" && as_dir=.
15786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15792 # We did not find ourselves, most probably we were run as `sh COMMAND'
15793 # in which case we are not to be found in the path.
15794 if test "x$as_myself" = x; then
15797 if test ! -f "$as_myself"; then
15798 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15802 # Unset variables that we do not need and which cause bugs (e.g. in
15803 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15804 # suppresses any "Segmentation fault" message there. '((' could
15805 # trigger a bug in pdksh 5.2.14.
15806 for as_var in BASH_ENV ENV MAIL MAILPATH
15807 do eval test x\${$as_var+set} = xset \
15808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15824 # as_fn_error ERROR [LINENO LOG_FD]
15825 # ---------------------------------
15826 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15827 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15828 # script with status $?, using 1 if that was 0.
15831 as_status=$?; test $as_status -eq 0 && as_status=1
15833 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15834 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15836 $as_echo "$as_me: error: $1" >&2
15837 as_fn_exit $as_status
15841 # as_fn_set_status STATUS
15842 # -----------------------
15843 # Set $? to STATUS, without forking.
15844 as_fn_set_status ()
15847 } # as_fn_set_status
15849 # as_fn_exit STATUS
15850 # -----------------
15851 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15855 as_fn_set_status $1
15861 # Portably unset VAR.
15864 { eval $1=; unset $1;}
15866 as_unset=as_fn_unset
15867 # as_fn_append VAR VALUE
15868 # ----------------------
15869 # Append the text in VALUE to the end of the definition contained in VAR. Take
15870 # advantage of any shell optimizations that allow amortized linear growth over
15871 # repeated appends, instead of the typical quadratic growth present in naive
15873 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15874 eval 'as_fn_append ()
15885 # as_fn_arith ARG...
15886 # ------------------
15887 # Perform arithmetic evaluation on the ARGs, and store the result in the
15888 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15889 # must be portable across $(()) and expr.
15890 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15891 eval 'as_fn_arith ()
15898 as_val=`expr "$@" || test $? -eq 1`
15903 if expr a : '\(a\)' >/dev/null 2>&1 &&
15904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15910 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15911 as_basename=basename
15916 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15922 as_me=`$as_basename -- "$0" ||
15923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15924 X"$0" : 'X\(//\)$' \| \
15925 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15927 sed '/^.*\/\([^/][^/]*\)\/*$/{
15941 # Avoid depending upon Character Ranges.
15942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15945 as_cr_digits='0123456789'
15946 as_cr_alnum=$as_cr_Letters$as_cr_digits
15948 ECHO_C= ECHO_N= ECHO_T=
15949 case `echo -n x` in #(((((
15951 case `echo 'xy\c'` in
15952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15954 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15961 rm -f conf$$ conf$$.exe conf$$.file
15962 if test -d conf$$.dir; then
15963 rm -f conf$$.dir/conf$$.file
15966 mkdir conf$$.dir 2>/dev/null
15968 if (echo >conf$$.file) 2>/dev/null; then
15969 if ln -s conf$$.file conf$$ 2>/dev/null; then
15971 # ... but there are two gotchas:
15972 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15973 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15974 # In both cases, we have to default to `cp -p'.
15975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15977 elif ln conf$$.file conf$$ 2>/dev/null; then
15985 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15986 rmdir conf$$.dir 2>/dev/null
15991 # Create "$as_dir" as a directory, including parents if necessary.
15996 -*) as_dir=./$as_dir;;
15998 test -d "$as_dir" || eval $as_mkdir_p || {
16002 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16003 *) as_qdir=$as_dir;;
16005 as_dirs="'$as_qdir' $as_dirs"
16006 as_dir=`$as_dirname -- "$as_dir" ||
16007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16008 X"$as_dir" : 'X\(//\)[^/]' \| \
16009 X"$as_dir" : 'X\(//\)$' \| \
16010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16011 $as_echo X"$as_dir" |
16012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16016 /^X\(\/\/\)[^/].*/{
16029 test -d "$as_dir" && break
16031 test -z "$as_dirs" || eval "mkdir $as_dirs"
16032 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16036 if mkdir -p . 2>/dev/null; then
16037 as_mkdir_p='mkdir -p "$as_dir"'
16039 test -d ./-p && rmdir ./-p
16043 if test -x / >/dev/null 2>&1; then
16044 as_test_x='test -x'
16046 if ls -dL / >/dev/null 2>&1; then
16053 if test -d "$1"; then
16059 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16060 ???[sx]*):;;*)false;;esac;fi
16064 as_executable_p=$as_test_x
16066 # Sed expression to map a string onto a valid CPP name.
16067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16069 # Sed expression to map a string onto a valid variable name.
16070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16074 ## ----------------------------------- ##
16075 ## Main body of $CONFIG_STATUS script. ##
16076 ## ----------------------------------- ##
16078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 # Save the log message, to keep $0 and so on meaningful, and to
16082 # report actual input values of CONFIG_FILES etc. instead of their
16083 # values after options handling.
16085 This file was extended by $as_me, which was
16086 generated by GNU Autoconf 2.64. Invocation command line was
16088 CONFIG_FILES = $CONFIG_FILES
16089 CONFIG_HEADERS = $CONFIG_HEADERS
16090 CONFIG_LINKS = $CONFIG_LINKS
16091 CONFIG_COMMANDS = $CONFIG_COMMANDS
16094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16099 case $ac_config_files in *"
16100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16103 case $ac_config_headers in *"
16104 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16109 # Files that config.status was made for.
16110 config_files="$ac_config_files"
16111 config_headers="$ac_config_headers"
16112 config_links="$ac_config_links"
16113 config_commands="$ac_config_commands"
16117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16119 \`$as_me' instantiates files and other configuration actions
16120 from templates according to the current configuration. Unless the files
16121 and actions are specified as TAGs, all are instantiated by default.
16123 Usage: $0 [OPTION]... [TAG]...
16125 -h, --help print this help, then exit
16126 -V, --version print version number and configuration settings, then exit
16127 -q, --quiet, --silent
16128 do not print progress messages
16129 -d, --debug don't remove temporary files
16130 --recheck update $as_me by reconfiguring in the same conditions
16131 --file=FILE[:TEMPLATE]
16132 instantiate the configuration file FILE
16133 --header=FILE[:TEMPLATE]
16134 instantiate the configuration header FILE
16136 Configuration files:
16139 Configuration headers:
16142 Configuration links:
16145 Configuration commands:
16148 Report bugs to the package provider."
16151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16154 configured by $0, generated by GNU Autoconf 2.64,
16155 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16157 Copyright (C) 2009 Free Software Foundation, Inc.
16158 This config.status script is free software; the Free Software Foundation
16159 gives unlimited permission to copy, distribute and modify it."
16166 test -n "\$AWK" || AWK=awk
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16170 # The default lists apply if the user does not specify any file.
16176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16177 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16188 # Handling of the options.
16189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16192 $as_echo "$ac_cs_version"; exit ;;
16193 --debug | --debu | --deb | --de | --d | -d )
16195 --file | --fil | --fi | --f )
16198 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16200 as_fn_append CONFIG_FILES " '$ac_optarg'"
16201 ac_need_defaults=false;;
16202 --header | --heade | --head | --hea )
16205 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16207 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16208 ac_need_defaults=false;;
16210 # Conflict between --help and --header
16211 as_fn_error "ambiguous option: \`$1'
16212 Try \`$0 --help' for more information.";;
16213 --help | --hel | -h )
16214 $as_echo "$ac_cs_usage"; exit ;;
16215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16216 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16219 # This is an error.
16220 -*) as_fn_error "unrecognized option: \`$1'
16221 Try \`$0 --help' for more information." ;;
16223 *) as_fn_append ac_config_targets " $1"
16224 ac_need_defaults=false ;;
16230 ac_configure_extra_args=
16232 if $ac_cs_silent; then
16234 ac_configure_extra_args="$ac_configure_extra_args --silent"
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 if \$ac_cs_recheck; then
16240 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16242 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16243 CONFIG_SHELL='$SHELL'
16244 export CONFIG_SHELL
16249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16254 ## Running $as_me. ##
16260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16264 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16265 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16271 # Handling of arguments.
16272 for ac_config_target in $ac_config_targets
16274 case $ac_config_target in
16275 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16276 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16277 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16278 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16280 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16281 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16282 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16284 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16289 # If the user did not use the arguments to specify the items to instantiate,
16290 # then the envvar interface is used. Set only those that are not.
16291 # We use the long form for the default assignment because of an extremely
16292 # bizarre bug on SunOS 4.1.3.
16293 if $ac_need_defaults; then
16294 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16295 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16296 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16297 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16300 # Have a temporary directory for convenience. Make it in the build tree
16301 # simply because there is no reason against having it here, and in addition,
16302 # creating and moving files from /tmp can sometimes cause problems.
16303 # Hook for its removal unless debugging.
16304 # Note that there is a small window in which the directory will not be cleaned:
16305 # after its creation but before its name has been assigned to `$tmp'.
16309 trap 'exit_status=$?
16310 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16312 trap 'as_fn_exit 1' 1 2 13 15
16314 # Create a (secure) tmp directory for tmp files.
16317 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16318 test -n "$tmp" && test -d "$tmp"
16321 tmp=./conf$$-$RANDOM
16322 (umask 077 && mkdir "$tmp")
16323 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16325 # Set up the scripts for CONFIG_FILES section.
16326 # No need to generate them if there are no CONFIG_FILES.
16327 # This happens for instance with `./config.status config.h'.
16328 if test -n "$CONFIG_FILES"; then
16330 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16331 ac_cs_awk_getline=:
16332 ac_cs_awk_pipe_init=
16333 ac_cs_awk_read_file='
16334 while ((getline aline < (F[key])) > 0)
16337 ac_cs_awk_pipe_fini=
16339 ac_cs_awk_getline=false
16340 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16341 ac_cs_awk_read_file='
16343 print "cat " F[key] " &&"
16344 '$ac_cs_awk_pipe_init
16345 # The final `:' finishes the AND list.
16346 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16348 ac_cr=`echo X | tr X '\015'`
16349 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16350 # But we know of no other shell where ac_cr would be empty at this
16351 # point, so we can use a bashism as a fallback.
16352 if test "x$ac_cr" = x; then
16353 eval ac_cr=\$\'\\r\'
16355 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16356 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16359 ac_cs_awk_cr=$ac_cr
16362 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16365 # Create commands to substitute file output variables.
16367 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16368 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16369 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16372 } >conf$$files.sh &&
16373 . ./conf$$files.sh ||
16374 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16375 rm -f conf$$files.sh
16378 echo "cat >conf$$subs.awk <<_ACEOF" &&
16379 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16381 } >conf$$subs.sh ||
16382 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16383 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16385 for ac_last_try in false false false false false :; do
16386 . ./conf$$subs.sh ||
16387 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16389 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16390 if test $ac_delim_n = $ac_delim_num; then
16392 elif $ac_last_try; then
16393 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16395 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16398 rm -f conf$$subs.sh
16400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16401 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16405 s/^/S["/; s/!.*/"]=/
16415 s/\(.\{148\}\).*/\1/
16417 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16422 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16429 s/\(.\{148\}\).*/\1/
16431 s/["\\]/\\&/g; s/^/"/; s/$/"/
16435 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16440 ' <conf$$subs.awk | sed '
16445 ' >>$CONFIG_STATUS || ac_write_fail=1
16446 rm -f conf$$subs.awk
16447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16449 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16450 for (key in S) S_is_set[key] = 1
16452 \$ac_cs_awk_pipe_init
16456 nfields = split(line, field, "@")
16458 len = length(field[1])
16459 for (i = 2; i < nfields; i++) {
16461 keylen = length(key)
16462 if (S_is_set[key]) {
16464 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16465 len += length(value) + length(field[++i])
16470 if (nfields == 3 && !substed) {
16472 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16473 \$ac_cs_awk_read_file
16479 \$ac_cs_awk_pipe_fini
16482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16487 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16488 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16493 # trailing colons and then remove the whole line if VPATH becomes empty
16494 # (actually we leave an empty line to preserve line numbers).
16495 if test "x$srcdir" = x.; then
16496 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16497 s/:*\$(srcdir):*/:/
16498 s/:*\${srcdir}:*/:/
16500 s/^\([^=]*=[ ]*\):*/\1/
16506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16507 fi # test -n "$CONFIG_FILES"
16509 # Set up the scripts for CONFIG_HEADERS section.
16510 # No need to generate them if there are no CONFIG_HEADERS.
16511 # This happens for instance with `./config.status Makefile'.
16512 if test -n "$CONFIG_HEADERS"; then
16513 cat >"$tmp/defines.awk" <<\_ACAWK ||
16517 # Transform confdefs.h into an awk script `defines.awk', embedded as
16518 # here-document in config.status, that substitutes the proper values into
16519 # config.h.in to produce config.h.
16521 # Create a delimiter string that does not exist in confdefs.h, to ease
16522 # handling of long lines.
16524 for ac_last_try in false false :; do
16525 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16526 if test -z "$ac_t"; then
16528 elif $ac_last_try; then
16529 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16535 # For the awk script, D is an array of macro values keyed by name,
16536 # likewise P contains macro parameters if any. Preserve backslash
16537 # newline sequences.
16539 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16541 s/.\{148\}/&'"$ac_delim"'/g
16544 s/^[ ]*#[ ]*define[ ][ ]*/ /
16551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16553 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16557 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16558 D["\1"]=" \3\\\\\\n"\\/p
16560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16565 s/.\{148\}/&'"$ac_delim"'/g
16570 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16573 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16575 ' <confdefs.h | sed '
16576 s/'"$ac_delim"'/"\\\
16577 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16580 for (key in D) D_is_set[key] = 1
16583 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16585 split(line, arg, " ")
16586 if (arg[1] == "#") {
16590 defundef = substr(arg[1], 2)
16593 split(mac1, mac2, "(") #)
16595 prefix = substr(line, 1, index(line, defundef) - 1)
16596 if (D_is_set[macro]) {
16597 # Preserve the white space surrounding the "#".
16598 print prefix "define", macro P[macro] D[macro]
16601 # Replace #undef with comments. This is necessary, for example,
16602 # in the case of _POSIX_SOURCE, which is predefined and required
16603 # on some systems where configure will not decide to define it.
16604 if (defundef == "undef") {
16605 print "/*", prefix defundef, macro, "*/"
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16614 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16615 fi # test -n "$CONFIG_HEADERS"
16618 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16623 :[FHLC]) ac_mode=$ac_tag; continue;;
16625 case $ac_mode$ac_tag in
16627 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16628 :[FH]-) ac_tag=-:-;;
16629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16646 -) ac_f="$tmp/stdin";;
16647 *) # Look for the file first in the build tree, then in the source tree
16648 # (if the path is not absolute). The absolute path cannot be DOS-style,
16649 # because $ac_f cannot contain `:'.
16653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16655 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16657 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16658 as_fn_append ac_file_inputs " '$ac_f'"
16661 # Let's still pretend it is `configure' which instantiates (i.e., don't
16662 # use $as_me), people would be surprised to read:
16663 # /* config.h. Generated by config.status. */
16664 configure_input='Generated from '`
16665 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16667 if test x"$ac_file" != x-; then
16668 configure_input="$ac_file. $configure_input"
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16670 $as_echo "$as_me: creating $ac_file" >&6;}
16672 # Neutralize special characters interpreted by sed in replacement strings.
16673 case $configure_input in #(
16674 *\&* | *\|* | *\\* )
16675 ac_sed_conf_input=`$as_echo "$configure_input" |
16676 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16677 *) ac_sed_conf_input=$configure_input;;
16681 *:-:* | *:-) cat >"$tmp/stdin" \
16682 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16687 ac_dir=`$as_dirname -- "$ac_file" ||
16688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16689 X"$ac_file" : 'X\(//\)[^/]' \| \
16690 X"$ac_file" : 'X\(//\)$' \| \
16691 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16692 $as_echo X"$ac_file" |
16693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16697 /^X\(\/\/\)[^/].*/{
16710 as_dir="$ac_dir"; as_fn_mkdir_p
16714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16717 # A ".." for each directory in $ac_dir_suffix.
16718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16719 case $ac_top_builddir_sub in
16720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16724 ac_abs_top_builddir=$ac_pwd
16725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16726 # for backward compatibility:
16727 ac_top_builddir=$ac_top_build_prefix
16730 .) # We are building in place.
16732 ac_top_srcdir=$ac_top_builddir_sub
16733 ac_abs_top_srcdir=$ac_pwd ;;
16734 [\\/]* | ?:[\\/]* ) # Absolute name.
16735 ac_srcdir=$srcdir$ac_dir_suffix;
16736 ac_top_srcdir=$srcdir
16737 ac_abs_top_srcdir=$srcdir ;;
16738 *) # Relative name.
16739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16740 ac_top_srcdir=$ac_top_build_prefix$srcdir
16741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16753 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16754 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16756 ac_MKDIR_P=$MKDIR_P
16758 [\\/$]* | ?:[\\/]* ) ;;
16759 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764 # If the template does not know about datarootdir, expand it.
16765 # FIXME: This hack should be removed a few years after 2.60.
16766 ac_datarootdir_hack=; ac_datarootdir_seen=
16777 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16778 *datarootdir*) ac_datarootdir_seen=yes;;
16779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16781 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16784 ac_datarootdir_hack='
16785 s&@datadir@&$datadir&g
16786 s&@docdir@&$docdir&g
16787 s&@infodir@&$infodir&g
16788 s&@localedir@&$localedir&g
16789 s&@mandir@&$mandir&g
16790 s&\\\${datarootdir}&$datarootdir&g' ;;
16794 # Neutralize VPATH when `$srcdir' = `.'.
16795 # Shell code in configure.ac might set extrasub.
16796 # FIXME: do we really want to maintain this feature?
16797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16798 ac_sed_extra="$ac_vpsub
16801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16804 s|@configure_input@|$ac_sed_conf_input|;t t
16805 s&@top_builddir@&$ac_top_builddir_sub&;t t
16806 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16807 s&@srcdir@&$ac_srcdir&;t t
16808 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16809 s&@top_srcdir@&$ac_top_srcdir&;t t
16810 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16811 s&@builddir@&$ac_builddir&;t t
16812 s&@abs_builddir@&$ac_abs_builddir&;t t
16813 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16814 s&@INSTALL@&$ac_INSTALL&;t t
16815 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16816 $ac_datarootdir_hack
16818 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16819 if $ac_cs_awk_getline; then
16820 $AWK -f "$tmp/subs.awk"
16822 $AWK -f "$tmp/subs.awk" | $SHELL
16824 || as_fn_error "could not create $ac_file" "$LINENO" 5
16826 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16827 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16828 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16830 which seems to be undefined. Please make sure it is defined." >&5
16831 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16832 which seems to be undefined. Please make sure it is defined." >&2;}
16836 -) cat "$tmp/out" && rm -f "$tmp/out";;
16837 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16839 || as_fn_error "could not create $ac_file" "$LINENO" 5
16845 if test x"$ac_file" != x-; then
16847 $as_echo "/* $configure_input */" \
16848 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16849 } >"$tmp/config.h" \
16850 || as_fn_error "could not create $ac_file" "$LINENO" 5
16851 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16853 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16856 mv "$tmp/config.h" "$ac_file" \
16857 || as_fn_error "could not create $ac_file" "$LINENO" 5
16860 $as_echo "/* $configure_input */" \
16861 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16862 || as_fn_error "could not create -" "$LINENO" 5
16864 # Compute "$ac_file"'s index in $config_headers.
16867 for _am_header in $config_headers :; do
16868 case $_am_header in
16869 $_am_arg | $_am_arg:* )
16872 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16875 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16876 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16877 X"$_am_arg" : 'X\(//\)[^/]' \| \
16878 X"$_am_arg" : 'X\(//\)$' \| \
16879 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16880 $as_echo X"$_am_arg" |
16881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16885 /^X\(\/\/\)[^/].*/{
16897 s/.*/./; q'`/stamp-h$_am_stamp_count
16904 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16907 # Prefer the file from the source tree if names are identical.
16908 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16909 ac_source=$srcdir/$ac_source
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16913 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16915 if test ! -r "$ac_source"; then
16916 as_fn_error "$ac_source: file not found" "$LINENO" 5
16920 # Try a relative symlink, then a hard link, then a copy.
16922 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16923 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16925 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16926 ln "$ac_source" "$ac_file" 2>/dev/null ||
16927 cp -p "$ac_source" "$ac_file" ||
16928 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16931 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16932 $as_echo "$as_me: executing $ac_file commands" >&6;}
16937 case $ac_file$ac_mode in
16938 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16939 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16940 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16941 # are listed without --file. Let's play safe and only enable the eval
16942 # if we detect the quoting.
16943 case $CONFIG_FILES in
16944 *\'*) eval set x "$CONFIG_FILES" ;;
16945 *) set x $CONFIG_FILES ;;
16950 # Strip MF so we end up with the name of the file.
16951 mf=`echo "$mf" | sed -e 's/:.*$//'`
16952 # Check whether this is an Automake generated Makefile or not.
16953 # We used to match only the files named `Makefile.in', but
16954 # some people rename them; so instead we look at the file content.
16955 # Grep'ing the first line is not enough: some people post-process
16956 # each Makefile.in and add a new line on top of each file to say so.
16957 # Grep'ing the whole file is not good either: AIX grep has a line
16958 # limit of 2048, but all sed's we know have understand at least 4000.
16959 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16960 dirpart=`$as_dirname -- "$mf" ||
16961 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16962 X"$mf" : 'X\(//\)[^/]' \| \
16963 X"$mf" : 'X\(//\)$' \| \
16964 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16970 /^X\(\/\/\)[^/].*/{
16986 # Extract the definition of DEPDIR, am__include, and am__quote
16987 # from the Makefile without running `make'.
16988 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16989 test -z "$DEPDIR" && continue
16990 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16991 test -z "am__include" && continue
16992 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16993 # When using ansi2knr, U may be empty or an underscore; expand it
16994 U=`sed -n 's/^U = //p' < "$mf"`
16995 # Find all dependency output files, they are included files with
16996 # $(DEPDIR) in their names. We invoke sed twice because it is the
16997 # simplest approach to changing $(DEPDIR) to its actual value in the
16999 for file in `sed -n "
17000 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17001 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17002 # Make sure the directory exists.
17003 test -f "$dirpart/$file" && continue
17004 fdir=`$as_dirname -- "$file" ||
17005 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17006 X"$file" : 'X\(//\)[^/]' \| \
17007 X"$file" : 'X\(//\)$' \| \
17008 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17009 $as_echo X"$file" |
17010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17014 /^X\(\/\/\)[^/].*/{
17027 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17028 # echo "creating $dirpart/$file"
17029 echo '# dummy' > "$dirpart/$file"
17035 case x$CONFIG_HEADERS in
17036 xconfig.h:config.in)
17047 ac_clean_files=$ac_clean_files_save
17049 test $ac_write_fail = 0 ||
17050 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17053 # configure is writing to config.log, and then calls config.status.
17054 # config.status does its own redirection, appending to config.log.
17055 # Unfortunately, on DOS this fails, as config.log is still kept open
17056 # by configure, so config.status won't be able to write to it; its
17057 # output is simply discarded. So we exec the FD to /dev/null,
17058 # effectively closing config.log, so it can be properly (re)opened and
17059 # appended to by config.status. When coming back to configure, we
17060 # need to make the FD available again.
17061 if test "$no_create" != yes; then
17063 ac_config_status_args=
17064 test "$silent" = yes &&
17065 ac_config_status_args="$ac_config_status_args --quiet"
17067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17070 # would make configure fail if this is the last instruction.
17071 $ac_cs_success || as_fn_exit $?
17075 # CONFIG_SUBDIRS section.
17077 if test "$no_recursion" != yes; then
17079 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17080 # so they do not pile up.
17081 ac_sub_configure_args=
17083 eval "set x $ac_configure_args"
17087 if test -n "$ac_prev"; then
17092 -cache-file | --cache-file | --cache-fil | --cache-fi \
17093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17094 ac_prev=cache_file ;;
17095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17099 --config-cache | -C)
17101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17109 --disable-option-checking)
17113 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17115 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17119 # Always prepend --prefix to ensure using the same prefix
17120 # in subdir configurations.
17121 ac_arg="--prefix=$prefix"
17123 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17125 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17128 if test "$silent" = yes; then
17129 ac_sub_configure_args="--silent $ac_sub_configure_args"
17132 # Always prepend --disable-option-checking to silence warnings, since
17133 # different subdirs can have different --enable and --with options.
17134 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17137 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17139 # Do not complain, so a configure script can configure whichever
17140 # parts of a large source tree are present.
17141 test -d "$srcdir/$ac_dir" || continue
17143 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17144 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17145 $as_echo "$ac_msg" >&6
17146 as_dir="$ac_dir"; as_fn_mkdir_p
17150 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17152 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17153 # A ".." for each directory in $ac_dir_suffix.
17154 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17155 case $ac_top_builddir_sub in
17156 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17157 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17160 ac_abs_top_builddir=$ac_pwd
17161 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17162 # for backward compatibility:
17163 ac_top_builddir=$ac_top_build_prefix
17166 .) # We are building in place.
17168 ac_top_srcdir=$ac_top_builddir_sub
17169 ac_abs_top_srcdir=$ac_pwd ;;
17170 [\\/]* | ?:[\\/]* ) # Absolute name.
17171 ac_srcdir=$srcdir$ac_dir_suffix;
17172 ac_top_srcdir=$srcdir
17173 ac_abs_top_srcdir=$srcdir ;;
17174 *) # Relative name.
17175 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17176 ac_top_srcdir=$ac_top_build_prefix$srcdir
17177 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17179 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17184 # Check for guested configure; otherwise get Cygnus style configure.
17185 if test -f "$ac_srcdir/configure.gnu"; then
17186 ac_sub_configure=$ac_srcdir/configure.gnu
17187 elif test -f "$ac_srcdir/configure"; then
17188 ac_sub_configure=$ac_srcdir/configure
17189 elif test -f "$ac_srcdir/configure.in"; then
17190 # This should be Cygnus configure.
17191 ac_sub_configure=$ac_aux_dir/configure
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17194 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17198 # The recursion is here.
17199 if test -n "$ac_sub_configure"; then
17200 # Make the cache file name correct relative to the subdirectory.
17201 case $cache_file in
17202 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17203 *) # Relative name.
17204 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17207 { $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
17208 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17209 # The eval makes quoting arguments work.
17210 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17211 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17212 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17220 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}