2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subdirs_all="$ac_subdirs_all doc testsuite"
313 ac_subdirs_all="$ac_subdirs_all gdbtk"
314 ac_subdirs_all="$ac_subdirs_all multi-ice"
315 ac_subdirs_all="$ac_subdirs_all gdbserver"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
317 ac_subst_files='host_makefile_frag target_makefile_frag'
319 # Initialize some variables set by options.
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
331 program_transform_name=s,x,x,
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369 # Accept the important Cygnus configure options, so we can diagnose typos.
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
391 cache_file=config.cache ;;
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 datadir=$ac_optarg ;;
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 eval "enable_$ac_feature='$ac_optarg'" ;;
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
434 -help | --help | --hel | --he | -h)
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
458 -libdir | --libdir | --libdi | --libd)
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485 # Obsolete; use --without-fp.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 sbindir=$ac_optarg ;;
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 sharedstatedir=$ac_optarg ;;
562 -site | --site | --sit)
564 -site=* | --site=* | --sit=*)
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 -version | --version | --versio | --versi | --vers | -V)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 eval "with_$ac_package='$ac_optarg'" ;;
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
613 # Obsolete; use --with-x.
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
665 eval ac_val=$`echo $ac_var`
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
677 eval ac_val=$`echo $ac_var`
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706 test "$silent" = yes && exec 6>/dev/null
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
726 if test ! -r $srcdir/$ac_unique_file; then
730 ac_srcdir_defaulted=no
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
779 # Report the --help message.
781 if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
785 \`configure' configures this package to adapt to many kinds of systems.
787 Usage: $0 [OPTION]... [VAR=VALUE]...
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE. See below for descriptions of some of the useful variables.
792 Defaults for the options are specified in brackets.
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808 Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
819 For better control, use the options below.
821 Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --disable-nls do not use Native Language Support
864 --disable-gdbcli disable command-line interface (CLI)
865 --disable-gdbmi disable machine-interface (MI)
866 --enable-tui enable full-screen terminal user interface (TUI)
867 --enable-gdbtk enable gdbtk graphical user interface (GUI)
868 --enable-profiling enable profiling of GDB
869 --enable-werror treat compile warnings as errors
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-included-gettext use the GNU gettext library included here
879 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
880 --with-libunwind Use libunwind frame unwinding support
881 --without-included-regex don't use included regex; this is the default
882 on systems with version 2 of the GNU C library
883 (use with caution on other system)
884 --with-sysroot=DIR Search for usr/lib et al within DIR.
885 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
886 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
887 --with-tclinclude=DIR Directory where tcl private headers are
888 --with-tkinclude=DIR Directory where tk private headers are
889 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
890 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 ac_dir_suffix= ac_top_builddir=
925 .) # No --srcdir option. We are building in place.
927 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
943 .) ac_abs_builddir="$ac_dir";;
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_must_keep_next=false
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 -* ) ac_must_keep_next=true ;;
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1131 # The following way of writing the cache mishandles newlines in values,
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1154 for ac_var in $ac_subst_vars
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -n "$ac_subst_files"; then
1168 for ac_var in $ac_subst_files
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1176 if test -s confdefs.h; then
1183 sed "/^$/d" confdefs.h | sort
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1266 # Check that the precious variables saved in the cache have kept the same
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers config.h:config.in"
1343 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1344 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1345 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1346 if test "${enable_maintainer_mode+set}" = set; then
1347 enableval="$enable_maintainer_mode"
1348 USE_MAINTAINER_MODE=$enableval
1350 USE_MAINTAINER_MODE=no
1352 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1353 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1356 if test $USE_MAINTAINER_MODE = yes; then
1357 MAINTAINER_MODE_TRUE=
1358 MAINTAINER_MODE_FALSE='#'
1360 MAINTAINER_MODE_TRUE='#'
1361 MAINTAINER_MODE_FALSE=
1364 MAINT=$MAINTAINER_MODE_TRUE
1369 ac_cpp='$CPP $CPPFLAGS'
1370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 if test -n "$CC"; then
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1410 if test -z "$ac_cv_prog_CC"; then
1412 # Extract the first word of "gcc", so it can be a program name with args.
1413 set dummy gcc; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 test -z "$as_dir" && as_dir=.
1427 for ac_exec_ext in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_ac_ct_CC="gcc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1452 if test -z "$CC"; then
1453 if test -n "$ac_tool_prefix"; then
1454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1455 set dummy ${ac_tool_prefix}cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_CC="${ac_tool_prefix}cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 if test -n "$CC"; then
1482 echo "$as_me:$LINENO: result: $CC" >&5
1483 echo "${ECHO_T}$CC" >&6
1485 echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1490 if test -z "$ac_cv_prog_CC"; then
1492 # Extract the first word of "cc", so it can be a program name with args.
1493 set dummy cc; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$ac_ct_CC"; then
1500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_ac_ct_CC="cc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519 if test -n "$ac_ct_CC"; then
1520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1521 echo "${ECHO_T}$ac_ct_CC" >&6
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1533 if test -z "$CC"; then
1534 # Extract the first word of "cc", so it can be a program name with args.
1535 set dummy cc; ac_word=$2
1536 echo "$as_me:$LINENO: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1553 ac_prog_rejected=yes
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 if test $ac_prog_rejected = yes; then
1564 # We found a bogon in the path, so make sure we never use it.
1565 set dummy $ac_cv_prog_CC
1567 if test $# != 0; then
1568 # We chose a different compiler from the bogus one.
1569 # However, it has the same basename, so the bogon will be chosen
1570 # first if we set CC to just the basename; use the full file name.
1572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$CC"; then
1588 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1626 test -n "$CC" && break
1629 if test -z "$CC"; then
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy $ac_prog; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC="$ac_prog"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660 if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662 echo "${ECHO_T}$ac_ct_CC" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1668 test -n "$ac_ct_CC" && break
1677 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1678 See \`config.log' for more details." >&5
1679 echo "$as_me: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&2;}
1681 { (exit 1); exit 1; }; }
1683 # Provide some information about the compiler.
1684 echo "$as_me:$LINENO:" \
1685 "checking for C compiler version" >&5
1686 ac_compiler=`set X $ac_compile; echo $2`
1687 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1688 (eval $ac_compiler --version </dev/null >&5) 2>&5
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }
1692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1693 (eval $ac_compiler -v </dev/null >&5) 2>&5
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1698 (eval $ac_compiler -V </dev/null >&5) 2>&5
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1703 cat >conftest.$ac_ext <<_ACEOF
1706 cat confdefs.h >>conftest.$ac_ext
1707 cat >>conftest.$ac_ext <<_ACEOF
1708 /* end confdefs.h. */
1718 ac_clean_files_save=$ac_clean_files
1719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1720 # Try to create an executable without -o first, disregard a.out.
1721 # It will help us diagnose broken compilers, and finding out an intuition
1723 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1727 (eval $ac_link_default) 2>&5
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }; then
1731 # Find the output, starting from the most likely. This scheme is
1732 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1735 # Be careful to initialize this variable, since it used to be cached.
1736 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1738 # b.out is created by i960 compilers.
1739 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1741 test -f "$ac_file" || continue
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1746 # This is the source file.
1749 # We found the default executable, but exeext='' is most
1753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 # FIXME: I believe we export ac_cv_exeext for Libtool,
1755 # but it would be cool to find out if it's true. Does anybody
1756 # maintain Libtool? --akim.
1764 echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: C compiler cannot create executables
1770 See \`config.log' for more details." >&2;}
1771 { (exit 77); exit 77; }; }
1774 ac_exeext=$ac_cv_exeext
1775 echo "$as_me:$LINENO: result: $ac_file" >&5
1776 echo "${ECHO_T}$ac_file" >&6
1778 # Check the compiler produces executables we can run. If not, either
1779 # the compiler is broken, or we cross compile.
1780 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783 # If not cross compiling, check that we can run a simple program.
1784 if test "$cross_compiling" != yes; then
1785 if { ac_try='./$ac_file'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1793 if test "$cross_compiling" = maybe; then
1796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'.
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'.
1801 See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1809 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1810 ac_clean_files=$ac_clean_files_save
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1814 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1816 echo "${ECHO_T}$cross_compiling" >&6
1818 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1819 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1821 (eval $ac_link) 2>&5
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827 # work properly (i.e., refer to `conftest.exe'), while it won't with
1829 for ac_file in conftest.exe conftest conftest.*; do
1830 test -f "$ac_file" || continue
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1847 rm -f conftest$ac_cv_exeext
1848 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1849 echo "${ECHO_T}$ac_cv_exeext" >&6
1851 rm -f conftest.$ac_ext
1852 EXEEXT=$ac_cv_exeext
1854 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1855 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1856 if test "${ac_cv_objext+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 cat >conftest.$ac_ext <<_ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h. */
1874 rm -f conftest.o conftest.obj
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
1880 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1883 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1888 echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1894 See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1898 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1900 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1901 echo "${ECHO_T}$ac_cv_objext" >&6
1902 OBJEXT=$ac_cv_objext
1904 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1905 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1906 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 cat >conftest.$ac_ext <<_ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h. */
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1931 grep -v '^ *+' conftest.er1 >conftest.err
1933 cat conftest.err >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; } &&
1942 { ac_try='test -s conftest.$ac_objext'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1959 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1960 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1961 GCC=`test $ac_compiler_gnu = yes && echo yes`
1962 ac_test_CFLAGS=${CFLAGS+set}
1963 ac_save_CFLAGS=$CFLAGS
1965 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1966 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1967 if test "${ac_cv_prog_cc_g+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 cat >conftest.$ac_ext <<_ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1985 rm -f conftest.$ac_objext
1986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>conftest.er1
1989 grep -v '^ *+' conftest.er1 >conftest.err
1991 cat conftest.err >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); } &&
1994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2008 echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2017 if test "$ac_test_CFLAGS" = set; then
2018 CFLAGS=$ac_save_CFLAGS
2019 elif test $ac_cv_prog_cc_g = yes; then
2020 if test "$GCC" = yes; then
2026 if test "$GCC" = yes; then
2032 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2033 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2034 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 ac_cv_prog_cc_stdc=no
2039 cat >conftest.$ac_ext <<_ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2047 #include <sys/types.h>
2048 #include <sys/stat.h>
2049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2050 struct buf { int x; };
2051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2052 static char *e (p, i)
2058 static char *f (char * (*g) (char **, int), char **p, ...)
2063 s = g (p, va_arg (v,int));
2068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2069 function prototypes and stuff, but not '\xHH' hex character constants.
2070 These don't provoke an error unfortunately, instead are silently treated
2071 as 'x'. The following induces an error, until -std1 is added to get
2072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2073 array size at least. It's necessary to write '\x00'==0 to get something
2074 that's true only with -std1. */
2075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2077 int test (int i, double x);
2078 struct s1 {int (*f) (int a);};
2079 struct s2 {int (*f) (double a);};
2080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2086 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2091 # Don't try gcc -ansi; that turns off useful extensions and
2092 # breaks some systems' header files.
2093 # AIX -qlanglvl=ansi
2094 # Ultrix and OSF/1 -std1
2095 # HP-UX 10.20 and later -Ae
2096 # HP-UX older versions -Aa -D_HPUX_SOURCE
2097 # SVR4 -Xc -D__EXTENSIONS__
2098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2100 CC="$ac_save_CC $ac_arg"
2101 rm -f conftest.$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>conftest.er1
2105 grep -v '^ *+' conftest.er1 >conftest.err
2107 cat conftest.err >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 ac_cv_prog_cc_stdc=$ac_arg
2125 echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2129 rm -f conftest.err conftest.$ac_objext
2131 rm -f conftest.$ac_ext conftest.$ac_objext
2136 case "x$ac_cv_prog_cc_stdc" in
2138 echo "$as_me:$LINENO: result: none needed" >&5
2139 echo "${ECHO_T}none needed" >&6 ;;
2141 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2142 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2143 CC="$CC $ac_cv_prog_cc_stdc" ;;
2146 # Some people use a C++ compiler to compile C. Since we use `exit',
2147 # in C++ we need to declare it. In case someone uses the same compiler
2148 # for both compiling C and C++ we need to have the C++ compiler decide
2149 # the declaration of exit, since it's the most demanding environment.
2150 cat >conftest.$ac_ext <<_ACEOF
2155 rm -f conftest.$ac_objext
2156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2157 (eval $ac_compile) 2>conftest.er1
2159 grep -v '^ *+' conftest.er1 >conftest.err
2161 cat conftest.err >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); } &&
2164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; } &&
2170 { ac_try='test -s conftest.$ac_objext'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2176 for ac_declaration in \
2178 'extern "C" void std::exit (int) throw (); using std::exit;' \
2179 'extern "C" void std::exit (int); using std::exit;' \
2180 'extern "C" void exit (int) throw ();' \
2181 'extern "C" void exit (int);' \
2184 cat >conftest.$ac_ext <<_ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h. */
2200 rm -f conftest.$ac_objext
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2204 grep -v '^ *+' conftest.er1 >conftest.err
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229 cat >conftest.$ac_ext <<_ACEOF
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h. */
2244 rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>conftest.er1
2248 grep -v '^ *+' conftest.er1 >conftest.err
2250 cat conftest.err >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } &&
2253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2274 if test -n "$ac_declaration"; then
2275 echo '#ifdef __cplusplus' >>confdefs.h
2276 echo $ac_declaration >>confdefs.h
2277 echo '#endif' >>confdefs.h
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293 cat >>confdefs.h <<\_ACEOF
2294 #define _GNU_SOURCE 1
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2305 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2306 # On Suns, sometimes $CPP names a directory.
2307 if test -n "$CPP" && test -d "$CPP"; then
2310 if test -z "$CPP"; then
2311 if test "${ac_cv_prog_CPP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 # Double quotes because CPP needs to be expanded
2315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2318 for ac_c_preproc_warn_flag in '' yes
2320 # Use a header file that comes with gcc, so configuring glibc
2321 # with a fresh cross-compiler works.
2322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323 # <limits.h> exists even on freestanding compilers.
2324 # On the NeXT, cc -E runs the code through the compiler's parser,
2325 # not just through cpp. "Syntax error" is here to catch this case.
2326 cat >conftest.$ac_ext <<_ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2333 # include <limits.h>
2335 # include <assert.h>
2339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2342 grep -v '^ *+' conftest.er1 >conftest.err
2344 cat conftest.err >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } >/dev/null; then
2347 if test -s conftest.err; then
2348 ac_cpp_err=$ac_c_preproc_warn_flag
2349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 if test -z "$ac_cpp_err"; then
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 # Broken: fails on valid input.
2365 rm -f conftest.err conftest.$ac_ext
2367 # OK, works on sane cases. Now check whether non-existent headers
2368 # can be detected and how.
2369 cat >conftest.$ac_ext <<_ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2375 #include <ac_nonexistent.h>
2377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } >/dev/null; then
2385 if test -s conftest.err; then
2386 ac_cpp_err=$ac_c_preproc_warn_flag
2387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 if test -z "$ac_cpp_err"; then
2395 # Broken: success on invalid input.
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2401 # Passes both tests.
2405 rm -f conftest.err conftest.$ac_ext
2408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2409 rm -f conftest.err conftest.$ac_ext
2410 if $ac_preproc_ok; then
2422 echo "$as_me:$LINENO: result: $CPP" >&5
2423 echo "${ECHO_T}$CPP" >&6
2425 for ac_c_preproc_warn_flag in '' yes
2427 # Use a header file that comes with gcc, so configuring glibc
2428 # with a fresh cross-compiler works.
2429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2430 # <limits.h> exists even on freestanding compilers.
2431 # On the NeXT, cc -E runs the code through the compiler's parser,
2432 # not just through cpp. "Syntax error" is here to catch this case.
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2440 # include <limits.h>
2442 # include <assert.h>
2446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1 >conftest.err
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } >/dev/null; then
2454 if test -s conftest.err; then
2455 ac_cpp_err=$ac_c_preproc_warn_flag
2456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463 if test -z "$ac_cpp_err"; then
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 # Broken: fails on valid input.
2472 rm -f conftest.err conftest.$ac_ext
2474 # OK, works on sane cases. Now check whether non-existent headers
2475 # can be detected and how.
2476 cat >conftest.$ac_ext <<_ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2482 #include <ac_nonexistent.h>
2484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487 grep -v '^ *+' conftest.er1 >conftest.err
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } >/dev/null; then
2492 if test -s conftest.err; then
2493 ac_cpp_err=$ac_c_preproc_warn_flag
2494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501 if test -z "$ac_cpp_err"; then
2502 # Broken: success on invalid input.
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 # Passes both tests.
2512 rm -f conftest.err conftest.$ac_ext
2515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2516 rm -f conftest.err conftest.$ac_ext
2517 if $ac_preproc_ok; then
2520 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2523 See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534 echo "$as_me:$LINENO: checking for egrep" >&5
2535 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2536 if test "${ac_cv_prog_egrep+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2540 then ac_cv_prog_egrep='grep -E'
2541 else ac_cv_prog_egrep='egrep'
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2545 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2546 EGREP=$ac_cv_prog_egrep
2550 echo "$as_me:$LINENO: checking for AIX" >&5
2551 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2552 cat >conftest.$ac_ext <<_ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564 $EGREP "yes" >/dev/null 2>&1; then
2565 echo "$as_me:$LINENO: result: yes" >&5
2566 echo "${ECHO_T}yes" >&6
2567 cat >>confdefs.h <<\_ACEOF
2568 #define _ALL_SOURCE 1
2572 echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6
2578 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2579 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2580 if test "${ac_cv_search_strerror+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 ac_func_search_save_LIBS=$LIBS
2584 ac_cv_search_strerror=no
2585 cat >conftest.$ac_ext <<_ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2592 /* Override any gcc2 internal prototype to avoid an error. */
2596 /* We use char because int might match the return type of a gcc2
2597 builtin and then its argument prototype would still apply. */
2607 rm -f conftest.$ac_objext conftest$ac_exeext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609 (eval $ac_link) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1 >conftest.err
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest$ac_exeext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_cv_search_strerror="none required"
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2634 rm -f conftest.err conftest.$ac_objext \
2635 conftest$ac_exeext conftest.$ac_ext
2636 if test "$ac_cv_search_strerror" = no; then
2637 for ac_lib in cposix; do
2638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2646 /* Override any gcc2 internal prototype to avoid an error. */
2650 /* We use char because int might match the return type of a gcc2
2651 builtin and then its argument prototype would still apply. */
2661 rm -f conftest.$ac_objext conftest$ac_exeext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2663 (eval $ac_link) 2>conftest.er1
2665 grep -v '^ *+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try='test -s conftest$ac_exeext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 ac_cv_search_strerror="-l$ac_lib"
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.err conftest.$ac_objext \
2690 conftest$ac_exeext conftest.$ac_ext
2693 LIBS=$ac_func_search_save_LIBS
2695 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2696 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2697 if test "$ac_cv_search_strerror" != no; then
2698 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2705 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2706 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2707 if test "${am_cv_prog_cc_stdc+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 am_cv_prog_cc_stdc=no
2712 # Don't try gcc -ansi; that turns off useful extensions and
2713 # breaks some systems' header files.
2714 # AIX -qlanglvl=ansi
2715 # Ultrix and OSF/1 -std1
2716 # HP-UX 10.20 and later -Ae
2717 # HP-UX older versions -Aa -D_HPUX_SOURCE
2718 # SVR4 -Xc -D__EXTENSIONS__
2719 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2721 CC="$ac_save_CC $ac_arg"
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2730 #include <sys/types.h>
2731 #include <sys/stat.h>
2732 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2733 struct buf { int x; };
2734 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2735 static char *e (p, i)
2741 static char *f (char * (*g) (char **, int), char **p, ...)
2746 s = g (p, va_arg (v,int));
2750 int test (int i, double x);
2751 struct s1 {int (*f) (int a);};
2752 struct s2 {int (*f) (double a);};
2753 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769 (eval $ac_compile) 2>conftest.er1
2771 grep -v '^ *+' conftest.er1 >conftest.err
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 am_cv_prog_cc_stdc="$ac_arg"; break
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800 if test -z "$am_cv_prog_cc_stdc"; then
2801 echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6
2804 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2805 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2807 case "x$am_cv_prog_cc_stdc" in
2809 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2814 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2815 if test -f $ac_dir/install-sh; then
2817 ac_install_sh="$ac_aux_dir/install-sh -c"
2819 elif test -f $ac_dir/install.sh; then
2821 ac_install_sh="$ac_aux_dir/install.sh -c"
2823 elif test -f $ac_dir/shtool; then
2825 ac_install_sh="$ac_aux_dir/shtool install -c"
2829 if test -z "$ac_aux_dir"; then
2830 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2831 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2832 { (exit 1); exit 1; }; }
2834 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2835 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2836 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2838 # Make sure we can run config.sub.
2839 $ac_config_sub sun4 >/dev/null 2>&1 ||
2840 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2841 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2842 { (exit 1); exit 1; }; }
2844 echo "$as_me:$LINENO: checking build system type" >&5
2845 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2846 if test "${ac_cv_build+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 ac_cv_build_alias=$build_alias
2850 test -z "$ac_cv_build_alias" &&
2851 ac_cv_build_alias=`$ac_config_guess`
2852 test -z "$ac_cv_build_alias" &&
2853 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2854 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2855 { (exit 1); exit 1; }; }
2856 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2857 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2858 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2859 { (exit 1); exit 1; }; }
2862 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2863 echo "${ECHO_T}$ac_cv_build" >&6
2865 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2866 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2867 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2870 echo "$as_me:$LINENO: checking host system type" >&5
2871 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2872 if test "${ac_cv_host+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 ac_cv_host_alias=$host_alias
2876 test -z "$ac_cv_host_alias" &&
2877 ac_cv_host_alias=$ac_cv_build_alias
2878 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2879 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2880 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2881 { (exit 1); exit 1; }; }
2884 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2885 echo "${ECHO_T}$ac_cv_host" >&6
2887 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2888 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2889 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2892 echo "$as_me:$LINENO: checking target system type" >&5
2893 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2894 if test "${ac_cv_target+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 ac_cv_target_alias=$target_alias
2898 test "x$ac_cv_target_alias" = "x" &&
2899 ac_cv_target_alias=$ac_cv_host_alias
2900 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2901 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2902 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2903 { (exit 1); exit 1; }; }
2906 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2907 echo "${ECHO_T}$ac_cv_target" >&6
2908 target=$ac_cv_target
2909 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2910 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2911 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2914 # The aliases save the names the user supplied, while $host etc.
2915 # will get canonicalized.
2916 test -n "$target_alias" &&
2917 test "$program_prefix$program_suffix$program_transform_name" = \
2919 program_prefix=${target_alias}-
2933 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2934 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2935 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2936 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 cat >conftest.make <<\_ACEOF
2941 @echo 'ac_maketemp="$(MAKE)"'
2943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2944 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2945 if test -n "$ac_maketemp"; then
2946 eval ac_cv_prog_make_${ac_make}_set=yes
2948 eval ac_cv_prog_make_${ac_make}_set=no
2952 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2953 echo "$as_me:$LINENO: result: yes" >&5
2954 echo "${ECHO_T}yes" >&6
2957 echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6
2959 SET_MAKE="MAKE=${MAKE-make}"
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2965 echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967 if test "${ac_cv_prog_RANLIB+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 if test -n "$RANLIB"; then
2971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 RANLIB=$ac_cv_prog_RANLIB
2990 if test -n "$RANLIB"; then
2991 echo "$as_me:$LINENO: result: $RANLIB" >&5
2992 echo "${ECHO_T}$RANLIB" >&6
2994 echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6
2999 if test -z "$ac_cv_prog_RANLIB"; then
3000 ac_ct_RANLIB=$RANLIB
3001 # Extract the first word of "ranlib", so it can be a program name with args.
3002 set dummy ranlib; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 if test -n "$ac_ct_RANLIB"; then
3009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_RANLIB="ranlib"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3028 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3029 if test -n "$ac_ct_RANLIB"; then
3030 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3031 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3033 echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6
3037 RANLIB=$ac_ct_RANLIB
3039 RANLIB="$ac_cv_prog_RANLIB"
3042 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3044 if test "${ac_cv_header_stdc+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_cv_header_stdc=yes
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 ac_cv_header_stdc=no
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096 if test $ac_cv_header_stdc = yes; then
3097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 $EGREP "memchr" >/dev/null 2>&1; then
3111 ac_cv_header_stdc=no
3117 if test $ac_cv_header_stdc = yes; then
3118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3129 $EGREP "free" >/dev/null 2>&1; then
3132 ac_cv_header_stdc=no
3138 if test $ac_cv_header_stdc = yes; then
3139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3140 if test "$cross_compiling" = yes; then
3143 cat >conftest.$ac_ext <<_ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3150 #if ((' ' & 0x0FF) == 0x020)
3151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3154 # define ISLOWER(c) \
3155 (('a' <= (c) && (c) <= 'i') \
3156 || ('j' <= (c) && (c) <= 'r') \
3157 || ('s' <= (c) && (c) <= 'z'))
3158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3166 for (i = 0; i < 256; i++)
3167 if (XOR (islower (i), ISLOWER (i))
3168 || toupper (i) != TOUPPER (i))
3173 rm -f conftest$ac_exeext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175 (eval $ac_link) 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3186 echo "$as_me: program exited with status $ac_status" >&5
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3191 ac_cv_header_stdc=no
3193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3199 if test $ac_cv_header_stdc = yes; then
3201 cat >>confdefs.h <<\_ACEOF
3202 #define STDC_HEADERS 1
3207 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3208 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3209 if test "${ac_cv_c_const+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 cat >conftest.$ac_ext <<_ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3222 /* FIXME: Include the comments suggested by Paul. */
3224 /* Ultrix mips cc rejects this. */
3225 typedef int charset[2];
3227 /* SunOS 4.1.1 cc rejects this. */
3228 char const *const *ccp;
3230 /* NEC SVR4.0.2 mips cc rejects this. */
3231 struct point {int x, y;};
3232 static struct point const zero = {0,0};
3233 /* AIX XL C 1.02.0.0 rejects this.
3234 It does not let you subtract one const X* pointer from another in
3235 an arm of an if-expression whose if-part is not a constant
3237 const char *g = "string";
3238 ccp = &g + (g ? g-g : 0);
3239 /* HPUX 7.0 cc rejects these. */
3242 ccp = (char const *const *) p;
3243 { /* SCO 3.2v4 cc rejects this. */
3245 char const *s = 0 ? (char *) 0 : (char const *) 0;
3249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3251 const int *foo = &x[0];
3254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3255 typedef const int *iptr;
3259 { /* AIX XL C 1.02.0.0 rejects this saying
3260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3261 struct s { int j; const int *ap[3]; };
3262 struct s *b; b->j = 5;
3264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3304 echo "${ECHO_T}$ac_cv_c_const" >&6
3305 if test $ac_cv_c_const = no; then
3307 cat >>confdefs.h <<\_ACEOF
3313 echo "$as_me:$LINENO: checking for inline" >&5
3314 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3315 if test "${ac_cv_c_inline+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 for ac_kw in inline __inline__ __inline; do
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3328 static $ac_kw foo_t static_foo () {return 0; }
3329 $ac_kw foo_t foo () {return 0; }
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_cv_c_inline=$ac_kw; break
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3365 echo "${ECHO_T}$ac_cv_c_inline" >&6
3368 case $ac_cv_c_inline in
3371 case $ac_cv_c_inline in
3373 *) ac_val=$ac_cv_c_inline;;
3375 cat >>confdefs.h <<_ACEOF
3377 #define inline $ac_val
3383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3394 inttypes.h stdint.h unistd.h
3396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3397 echo "$as_me:$LINENO: checking for $ac_header" >&5
3398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 $ac_includes_default
3410 #include <$ac_header>
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; } &&
3427 { ac_try='test -s conftest.$ac_objext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 eval "$as_ac_Header=yes"
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 eval "$as_ac_Header=no"
3440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3445 cat >>confdefs.h <<_ACEOF
3446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3454 echo "$as_me:$LINENO: checking for off_t" >&5
3455 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3456 if test "${ac_cv_type_off_t+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 $ac_includes_default
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
3486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_type_off_t=yes
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3508 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3509 if test $ac_cv_type_off_t = yes; then
3513 cat >>confdefs.h <<_ACEOF
3519 echo "$as_me:$LINENO: checking for size_t" >&5
3520 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3521 if test "${ac_cv_type_size_t+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 $ac_includes_default
3536 if (sizeof (size_t))
3542 rm -f conftest.$ac_objext
3543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest.$ac_objext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_cv_type_size_t=yes
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 ac_cv_type_size_t=no
3570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3573 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3574 if test $ac_cv_type_size_t = yes; then
3578 cat >>confdefs.h <<_ACEOF
3579 #define size_t unsigned
3584 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3585 # for constant arguments. Useless!
3586 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3587 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3588 if test "${ac_cv_working_alloca_h+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3601 char *p = (char *) alloca (2 * sizeof (int));
3606 rm -f conftest.$ac_objext conftest$ac_exeext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3608 (eval $ac_link) 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
3615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try='test -s conftest$ac_exeext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_working_alloca_h=yes
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 ac_cv_working_alloca_h=no
3634 rm -f conftest.err conftest.$ac_objext \
3635 conftest$ac_exeext conftest.$ac_ext
3637 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3638 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3639 if test $ac_cv_working_alloca_h = yes; then
3641 cat >>confdefs.h <<\_ACEOF
3642 #define HAVE_ALLOCA_H 1
3647 echo "$as_me:$LINENO: checking for alloca" >&5
3648 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3649 if test "${ac_cv_func_alloca_works+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 cat >conftest.$ac_ext <<_ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3659 # define alloca __builtin_alloca
3662 # include <malloc.h>
3663 # define alloca _alloca
3666 # include <alloca.h>
3671 # ifndef alloca /* predefined by HP cc +Olibcalls */
3682 char *p = (char *) alloca (1);
3687 rm -f conftest.$ac_objext conftest$ac_exeext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>conftest.er1
3691 grep -v '^ *+' conftest.er1 >conftest.err
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest$ac_exeext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_func_alloca_works=yes
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 ac_cv_func_alloca_works=no
3715 rm -f conftest.err conftest.$ac_objext \
3716 conftest$ac_exeext conftest.$ac_ext
3718 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3719 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3721 if test $ac_cv_func_alloca_works = yes; then
3723 cat >>confdefs.h <<\_ACEOF
3724 #define HAVE_ALLOCA 1
3728 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3729 # that cause trouble. Some versions do not even contain alloca or
3730 # contain a buggy version. If you still want to use their alloca,
3731 # use ar to extract alloca.o from them instead of compiling alloca.c.
3733 ALLOCA=alloca.$ac_objext
3735 cat >>confdefs.h <<\_ACEOF
3740 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3741 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3742 if test "${ac_cv_os_cray+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 cat >conftest.$ac_ext <<_ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751 #if defined(CRAY) && ! defined(CRAY2)
3758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3759 $EGREP "webecray" >/dev/null 2>&1; then
3767 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3768 echo "${ECHO_T}$ac_cv_os_cray" >&6
3769 if test $ac_cv_os_cray = yes; then
3770 for ac_func in _getb67 GETB67 getb67; do
3771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3772 echo "$as_me:$LINENO: checking for $ac_func" >&5
3773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3774 if eval "test \"\${$as_ac_var+set}\" = set"; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3785 #define $ac_func innocuous_$ac_func
3787 /* System header to define __stub macros and hopefully few prototypes,
3788 which can conflict with char $ac_func (); below.
3789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 <limits.h> exists even on freestanding compilers. */
3793 # include <limits.h>
3795 # include <assert.h>
3800 /* Override any gcc2 internal prototype to avoid an error. */
3805 /* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3808 /* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3814 char (*f) () = $ac_func;
3823 return f != $ac_func;
3828 rm -f conftest.$ac_objext conftest$ac_exeext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830 (eval $ac_link) 2>conftest.er1
3832 grep -v '^ *+' conftest.er1 >conftest.err
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest$ac_exeext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 eval "$as_ac_var=yes"
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 eval "$as_ac_var=no"
3856 rm -f conftest.err conftest.$ac_objext \
3857 conftest$ac_exeext conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3861 if test `eval echo '${'$as_ac_var'}'` = yes; then
3863 cat >>confdefs.h <<_ACEOF
3864 #define CRAY_STACKSEG_END $ac_func
3873 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3874 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3875 if test "${ac_cv_c_stack_direction+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 if test "$cross_compiling" = yes; then
3879 ac_cv_c_stack_direction=0
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3888 find_stack_direction ()
3890 static char *addr = 0;
3895 return find_stack_direction ();
3898 return (&dummy > addr) ? 1 : -1;
3904 exit (find_stack_direction () < 0);
3907 rm -f conftest$ac_exeext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 ac_cv_c_stack_direction=1
3920 echo "$as_me: program exited with status $ac_status" >&5
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3925 ac_cv_c_stack_direction=-1
3927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3930 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3931 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3933 cat >>confdefs.h <<_ACEOF
3934 #define STACK_DIRECTION $ac_cv_c_stack_direction
3942 for ac_header in stdlib.h unistd.h
3944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3946 echo "$as_me:$LINENO: checking for $ac_header" >&5
3947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3954 # Is the header compilable?
3955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 $ac_includes_default
3964 #include <$ac_header>
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 ac_header_compiler=yes
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 ac_header_compiler=no
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3996 echo "${ECHO_T}$ac_header_compiler" >&6
3998 # Is the header present?
3999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 #include <$ac_header>
4009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4012 grep -v '^ *+' conftest.er1 >conftest.err
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } >/dev/null; then
4017 if test -s conftest.err; then
4018 ac_cpp_err=$ac_c_preproc_warn_flag
4019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4026 if test -z "$ac_cpp_err"; then
4027 ac_header_preproc=yes
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 ac_header_preproc=no
4034 rm -f conftest.err conftest.$ac_ext
4035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4036 echo "${ECHO_T}$ac_header_preproc" >&6
4038 # So? What about this header?
4039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4045 ac_header_preproc=yes
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4062 ## ------------------------------------------ ##
4063 ## Report this to the AC_PACKAGE_NAME lists. ##
4064 ## ------------------------------------------ ##
4067 sed "s/^/$as_me: WARNING: /" >&2
4070 echo "$as_me:$LINENO: checking for $ac_header" >&5
4071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 eval "$as_ac_Header=\$ac_header_preproc"
4077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091 for ac_func in getpagesize
4093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4094 echo "$as_me:$LINENO: checking for $ac_func" >&5
4095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4096 if eval "test \"\${$as_ac_var+set}\" = set"; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4107 #define $ac_func innocuous_$ac_func
4109 /* System header to define __stub macros and hopefully few prototypes,
4110 which can conflict with char $ac_func (); below.
4111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112 <limits.h> exists even on freestanding compilers. */
4115 # include <limits.h>
4117 # include <assert.h>
4122 /* Override any gcc2 internal prototype to avoid an error. */
4127 /* We use char because int might match the return type of a gcc2
4128 builtin and then its argument prototype would still apply. */
4130 /* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4136 char (*f) () = $ac_func;
4145 return f != $ac_func;
4150 rm -f conftest.$ac_objext conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest$ac_exeext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 eval "$as_ac_var=yes"
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 eval "$as_ac_var=no"
4178 rm -f conftest.err conftest.$ac_objext \
4179 conftest$ac_exeext conftest.$ac_ext
4181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4183 if test `eval echo '${'$as_ac_var'}'` = yes; then
4184 cat >>confdefs.h <<_ACEOF
4185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4191 echo "$as_me:$LINENO: checking for working mmap" >&5
4192 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4193 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 if test "$cross_compiling" = yes; then
4197 ac_cv_func_mmap_fixed_mapped=no
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4205 $ac_includes_default
4206 /* malloc might have been renamed as rpl_malloc. */
4209 /* Thanks to Mike Haertel and Jim Avera for this test.
4210 Here is a matrix of mmap possibilities:
4211 mmap private not fixed
4212 mmap private fixed at somewhere currently unmapped
4213 mmap private fixed at somewhere already mapped
4214 mmap shared not fixed
4215 mmap shared fixed at somewhere currently unmapped
4216 mmap shared fixed at somewhere already mapped
4217 For private mappings, we should verify that changes cannot be read()
4218 back from the file, nor mmap's back from the file at a different
4219 address. (There have been systems where private was not correctly
4220 implemented like the infamous i386 svr4.0, and systems where the
4221 VM page cache was not coherent with the file system buffer cache
4222 like early versions of FreeBSD and possibly contemporary NetBSD.)
4223 For shared mappings, we should conversely verify that changes get
4224 propagated back to all the places they're supposed to be.
4226 Grep wants private fixed already mapped.
4227 The main things grep needs to know about mmap are:
4228 * does it exist and is it safe to write into the mmap'd area
4229 * how to use it (BSD variants) */
4232 #include <sys/mman.h>
4234 #if !STDC_HEADERS && !HAVE_STDLIB_H
4238 /* This mess was copied from the GNU getpagesize.h. */
4239 #if !HAVE_GETPAGESIZE
4240 /* Assume that all systems that can run configure have sys/param.h. */
4241 # if !HAVE_SYS_PARAM_H
4242 # define HAVE_SYS_PARAM_H 1
4245 # ifdef _SC_PAGESIZE
4246 # define getpagesize() sysconf(_SC_PAGESIZE)
4247 # else /* no _SC_PAGESIZE */
4248 # if HAVE_SYS_PARAM_H
4249 # include <sys/param.h>
4250 # ifdef EXEC_PAGESIZE
4251 # define getpagesize() EXEC_PAGESIZE
4252 # else /* no EXEC_PAGESIZE */
4254 # define getpagesize() NBPG * CLSIZE
4257 # endif /* no CLSIZE */
4258 # else /* no NBPG */
4260 # define getpagesize() NBPC
4261 # else /* no NBPC */
4263 # define getpagesize() PAGESIZE
4264 # endif /* PAGESIZE */
4265 # endif /* no NBPC */
4266 # endif /* no NBPG */
4267 # endif /* no EXEC_PAGESIZE */
4268 # else /* no HAVE_SYS_PARAM_H */
4269 # define getpagesize() 8192 /* punt totally */
4270 # endif /* no HAVE_SYS_PARAM_H */
4271 # endif /* no _SC_PAGESIZE */
4273 #endif /* no HAVE_GETPAGESIZE */
4278 char *data, *data2, *data3;
4282 pagesize = getpagesize ();
4284 /* First, make a file with some known garbage in it. */
4285 data = (char *) malloc (pagesize);
4288 for (i = 0; i < pagesize; ++i)
4289 *(data + i) = rand ();
4291 fd = creat ("conftest.mmap", 0600);
4294 if (write (fd, data, pagesize) != pagesize)
4298 /* Next, try to mmap the file at a fixed address which already has
4299 something else allocated at it. If we can, also make sure that
4300 we see the same garbage. */
4301 fd = open ("conftest.mmap", O_RDWR);
4304 data2 = (char *) malloc (2 * pagesize);
4307 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4308 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4309 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4311 for (i = 0; i < pagesize; ++i)
4312 if (*(data + i) != *(data2 + i))
4315 /* Finally, make sure that changes to the mapped area do not
4316 percolate back to the file as seen by read(). (This is a bug on
4317 some variants of i386 svr4.0.) */
4318 for (i = 0; i < pagesize; ++i)
4319 *(data2 + i) = *(data2 + i) + 1;
4320 data3 = (char *) malloc (pagesize);
4323 if (read (fd, data3, pagesize) != pagesize)
4325 for (i = 0; i < pagesize; ++i)
4326 if (*(data + i) != *(data3 + i))
4332 rm -f conftest$ac_exeext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4334 (eval $ac_link) 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_cv_func_mmap_fixed_mapped=yes
4345 echo "$as_me: program exited with status $ac_status" >&5
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4350 ac_cv_func_mmap_fixed_mapped=no
4352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4356 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4357 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4359 cat >>confdefs.h <<\_ACEOF
4376 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4377 unistd.h values.h sys/param.h
4379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4381 echo "$as_me:$LINENO: checking for $ac_header" >&5
4382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4389 # Is the header compilable?
4390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4399 #include <$ac_header>
4401 rm -f conftest.$ac_objext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403 (eval $ac_compile) 2>conftest.er1
4405 grep -v '^ *+' conftest.er1 >conftest.err
4407 cat conftest.err >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } &&
4410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_header_compiler=yes
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 ac_header_compiler=no
4429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4431 echo "${ECHO_T}$ac_header_compiler" >&6
4433 # Is the header present?
4434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4436 cat >conftest.$ac_ext <<_ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 #include <$ac_header>
4444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4447 grep -v '^ *+' conftest.er1 >conftest.err
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null; then
4452 if test -s conftest.err; then
4453 ac_cpp_err=$ac_c_preproc_warn_flag
4454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4461 if test -z "$ac_cpp_err"; then
4462 ac_header_preproc=yes
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_header_preproc=no
4469 rm -f conftest.err conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4471 echo "${ECHO_T}$ac_header_preproc" >&6
4473 # So? What about this header?
4474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4480 ac_header_preproc=yes
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4497 ## ------------------------------------------ ##
4498 ## Report this to the AC_PACKAGE_NAME lists. ##
4499 ## ------------------------------------------ ##
4502 sed "s/^/$as_me: WARNING: /" >&2
4505 echo "$as_me:$LINENO: checking for $ac_header" >&5
4506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 eval "$as_ac_Header=\$ac_header_preproc"
4512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4517 cat >>confdefs.h <<_ACEOF
4518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4535 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4536 __argz_count __argz_stringify __argz_next
4538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4539 echo "$as_me:$LINENO: checking for $ac_func" >&5
4540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4541 if eval "test \"\${$as_ac_var+set}\" = set"; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4552 #define $ac_func innocuous_$ac_func
4554 /* System header to define __stub macros and hopefully few prototypes,
4555 which can conflict with char $ac_func (); below.
4556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557 <limits.h> exists even on freestanding compilers. */
4560 # include <limits.h>
4562 # include <assert.h>
4567 /* Override any gcc2 internal prototype to avoid an error. */
4572 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4575 /* The GNU C library defines this for functions which it implements
4576 to always fail with ENOSYS. Some functions are actually named
4577 something starting with __ and the normal name is an alias. */
4578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4581 char (*f) () = $ac_func;
4590 return f != $ac_func;
4595 rm -f conftest.$ac_objext conftest$ac_exeext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4597 (eval $ac_link) 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest$ac_exeext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 eval "$as_ac_var=yes"
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 eval "$as_ac_var=no"
4623 rm -f conftest.err conftest.$ac_objext \
4624 conftest$ac_exeext conftest.$ac_ext
4626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4628 if test `eval echo '${'$as_ac_var'}'` = yes; then
4629 cat >>confdefs.h <<_ACEOF
4630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4637 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4639 for ac_func in stpcpy
4641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4642 echo "$as_me:$LINENO: checking for $ac_func" >&5
4643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_var+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4655 #define $ac_func innocuous_$ac_func
4657 /* System header to define __stub macros and hopefully few prototypes,
4658 which can conflict with char $ac_func (); below.
4659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 <limits.h> exists even on freestanding compilers. */
4663 # include <limits.h>
4665 # include <assert.h>
4670 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4678 /* The GNU C library defines this for functions which it implements
4679 to always fail with ENOSYS. Some functions are actually named
4680 something starting with __ and the normal name is an alias. */
4681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4684 char (*f) () = $ac_func;
4693 return f != $ac_func;
4698 rm -f conftest.$ac_objext conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1 >conftest.err
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try='test -s conftest$ac_exeext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 eval "$as_ac_var=yes"
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4724 eval "$as_ac_var=no"
4726 rm -f conftest.err conftest.$ac_objext \
4727 conftest$ac_exeext conftest.$ac_ext
4729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4731 if test `eval echo '${'$as_ac_var'}'` = yes; then
4732 cat >>confdefs.h <<_ACEOF
4733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4740 if test "${ac_cv_func_stpcpy}" = "yes"; then
4742 cat >>confdefs.h <<\_ACEOF
4743 #define HAVE_STPCPY 1
4748 if test $ac_cv_header_locale_h = yes; then
4749 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4750 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4751 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4769 rm -f conftest.$ac_objext conftest$ac_exeext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 am_cv_val_LC_MESSAGES=yes
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 am_cv_val_LC_MESSAGES=no
4797 rm -f conftest.err conftest.$ac_objext \
4798 conftest$ac_exeext conftest.$ac_ext
4800 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4801 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4802 if test $am_cv_val_LC_MESSAGES = yes; then
4804 cat >>confdefs.h <<\_ACEOF
4805 #define HAVE_LC_MESSAGES 1
4810 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4811 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4812 # Check whether --enable-nls or --disable-nls was given.
4813 if test "${enable_nls+set}" = set; then
4814 enableval="$enable_nls"
4819 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4820 echo "${ECHO_T}$USE_NLS" >&6
4823 USE_INCLUDED_LIBINTL=no
4825 if test "$USE_NLS" = "yes"; then
4826 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4827 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4829 # Check whether --with-included-gettext or --without-included-gettext was given.
4830 if test "${with_included_gettext+set}" = set; then
4831 withval="$with_included_gettext"
4832 nls_cv_force_use_gnu_gettext=$withval
4834 nls_cv_force_use_gnu_gettext=no
4836 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4837 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4839 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4840 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4842 nls_cv_header_libgt=
4845 if test "${ac_cv_header_libintl_h+set}" = set; then
4846 echo "$as_me:$LINENO: checking for libintl.h" >&5
4847 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4848 if test "${ac_cv_header_libintl_h+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4852 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4854 # Is the header compilable?
4855 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4856 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 $ac_includes_default
4864 #include <libintl.h>
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_header_compiler=yes
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 ac_header_compiler=no
4894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4896 echo "${ECHO_T}$ac_header_compiler" >&6
4898 # Is the header present?
4899 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4900 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 #include <libintl.h>
4909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4912 grep -v '^ *+' conftest.er1 >conftest.err
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } >/dev/null; then
4917 if test -s conftest.err; then
4918 ac_cpp_err=$ac_c_preproc_warn_flag
4919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4926 if test -z "$ac_cpp_err"; then
4927 ac_header_preproc=yes
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 ac_header_preproc=no
4934 rm -f conftest.err conftest.$ac_ext
4935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4936 echo "${ECHO_T}$ac_header_preproc" >&6
4938 # So? What about this header?
4939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4941 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4942 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4944 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4945 ac_header_preproc=yes
4948 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4949 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4950 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4951 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4952 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4953 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4954 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4955 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4956 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4957 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4959 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4962 ## ------------------------------------------ ##
4963 ## Report this to the AC_PACKAGE_NAME lists. ##
4964 ## ------------------------------------------ ##
4967 sed "s/^/$as_me: WARNING: /" >&2
4970 echo "$as_me:$LINENO: checking for libintl.h" >&5
4971 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4972 if test "${ac_cv_header_libintl_h+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 ac_cv_header_libintl_h=$ac_header_preproc
4977 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4978 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4981 if test $ac_cv_header_libintl_h = yes; then
4982 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4983 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4984 if test "${gt_cv_func_gettext_libc+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 cat >conftest.$ac_ext <<_ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 #include <libintl.h>
4997 return (int) gettext ("")
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1 >conftest.err
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try='test -s conftest$ac_exeext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 gt_cv_func_gettext_libc=yes
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5028 gt_cv_func_gettext_libc=no
5030 rm -f conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5033 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5034 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5036 if test "$gt_cv_func_gettext_libc" != "yes"; then
5037 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5038 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5039 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 ac_check_lib_save_LIBS=$LIBS
5044 cat >conftest.$ac_ext <<_ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5051 /* Override any gcc2 internal prototype to avoid an error. */
5055 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5057 char bindtextdomain ();
5066 rm -f conftest.$ac_objext conftest$ac_exeext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5068 (eval $ac_link) 2>conftest.er1
5070 grep -v '^ *+' conftest.er1 >conftest.err
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest$ac_exeext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_cv_lib_intl_bindtextdomain=yes
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_cv_lib_intl_bindtextdomain=no
5094 rm -f conftest.err conftest.$ac_objext \
5095 conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5098 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5099 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5100 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5101 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5102 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5103 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5116 return (int) gettext ("")
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>conftest.er1
5125 grep -v '^ *+' conftest.er1 >conftest.err
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try='test -s conftest$ac_exeext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 gt_cv_func_gettext_libintl=yes
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 gt_cv_func_gettext_libintl=no
5149 rm -f conftest.err conftest.$ac_objext \
5150 conftest$ac_exeext conftest.$ac_ext
5152 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5153 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5158 if test "$gt_cv_func_gettext_libc" = "yes" \
5159 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5161 cat >>confdefs.h <<\_ACEOF
5162 #define HAVE_GETTEXT 1
5165 # Extract the first word of "msgfmt", so it can be a program name with args.
5166 set dummy msgfmt; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_path_MSGFMT+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5178 for ac_dir in $PATH; do
5179 test -z "$ac_dir" && ac_dir=.
5180 if test -f $ac_dir/$ac_word; then
5181 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5182 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5188 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5192 MSGFMT="$ac_cv_path_MSGFMT"
5193 if test -n "$MSGFMT"; then
5194 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5195 echo "${ECHO_T}$MSGFMT" >&6
5197 echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5200 if test "$MSGFMT" != "no"; then
5202 for ac_func in dcgettext
5204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5205 echo "$as_me:$LINENO: checking for $ac_func" >&5
5206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5207 if eval "test \"\${$as_ac_var+set}\" = set"; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 cat >conftest.$ac_ext <<_ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5218 #define $ac_func innocuous_$ac_func
5220 /* System header to define __stub macros and hopefully few prototypes,
5221 which can conflict with char $ac_func (); below.
5222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223 <limits.h> exists even on freestanding compilers. */
5226 # include <limits.h>
5228 # include <assert.h>
5233 /* Override any gcc2 internal prototype to avoid an error. */
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5241 /* The GNU C library defines this for functions which it implements
5242 to always fail with ENOSYS. Some functions are actually named
5243 something starting with __ and the normal name is an alias. */
5244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5247 char (*f) () = $ac_func;
5256 return f != $ac_func;
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try='test -s conftest$ac_exeext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 eval "$as_ac_var=yes"
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 eval "$as_ac_var=no"
5289 rm -f conftest.err conftest.$ac_objext \
5290 conftest$ac_exeext conftest.$ac_ext
5292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5294 if test `eval echo '${'$as_ac_var'}'` = yes; then
5295 cat >>confdefs.h <<_ACEOF
5296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5302 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5303 set dummy gmsgfmt; ac_word=$2
5304 echo "$as_me:$LINENO: checking for $ac_word" >&5
5305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5306 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5332 GMSGFMT=$ac_cv_path_GMSGFMT
5334 if test -n "$GMSGFMT"; then
5335 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5336 echo "${ECHO_T}$GMSGFMT" >&6
5338 echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5342 # Extract the first word of "xgettext", so it can be a program name with args.
5343 set dummy xgettext; ac_word=$2
5344 echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5355 for ac_dir in $PATH; do
5356 test -z "$ac_dir" && ac_dir=.
5357 if test -f $ac_dir/$ac_word; then
5358 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5359 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5365 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5369 XGETTEXT="$ac_cv_path_XGETTEXT"
5370 if test -n "$XGETTEXT"; then
5371 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5372 echo "${ECHO_T}$XGETTEXT" >&6
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5388 extern int _nl_msg_cat_cntr;
5389 return _nl_msg_cat_cntr
5394 rm -f conftest.$ac_objext conftest$ac_exeext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5396 (eval $ac_link) 2>conftest.er1
5398 grep -v '^ *+' conftest.er1 >conftest.err
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; } &&
5409 { ac_try='test -s conftest$ac_exeext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5424 rm -f conftest.err conftest.$ac_objext \
5425 conftest$ac_exeext conftest.$ac_ext
5435 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5436 # Neither gettext nor catgets in included in the C library.
5437 # Fall back on GNU gettext library (assuming it is present).
5438 nls_cv_use_gnu_gettext=yes
5442 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5443 INTLOBJS="\$(GETTOBJS)"
5444 # Extract the first word of "msgfmt", so it can be a program name with args.
5445 set dummy msgfmt; ac_word=$2
5446 echo "$as_me:$LINENO: checking for $ac_word" >&5
5447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5448 if test "${ac_cv_path_MSGFMT+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5457 for ac_dir in $PATH; do
5458 test -z "$ac_dir" && ac_dir=.
5459 if test -f $ac_dir/$ac_word; then
5460 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5461 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5467 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5471 MSGFMT="$ac_cv_path_MSGFMT"
5472 if test -n "$MSGFMT"; then
5473 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5474 echo "${ECHO_T}$MSGFMT" >&6
5476 echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5480 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5481 set dummy gmsgfmt; ac_word=$2
5482 echo "$as_me:$LINENO: checking for $ac_word" >&5
5483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5484 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5510 GMSGFMT=$ac_cv_path_GMSGFMT
5512 if test -n "$GMSGFMT"; then
5513 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5514 echo "${ECHO_T}$GMSGFMT" >&6
5516 echo "$as_me:$LINENO: result: no" >&5
5517 echo "${ECHO_T}no" >&6
5520 # Extract the first word of "xgettext", so it can be a program name with args.
5521 set dummy xgettext; ac_word=$2
5522 echo "$as_me:$LINENO: checking for $ac_word" >&5
5523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5524 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5533 for ac_dir in $PATH; do
5534 test -z "$ac_dir" && ac_dir=.
5535 if test -f $ac_dir/$ac_word; then
5536 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5537 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5543 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5547 XGETTEXT="$ac_cv_path_XGETTEXT"
5548 if test -n "$XGETTEXT"; then
5549 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5550 echo "${ECHO_T}$XGETTEXT" >&6
5552 echo "$as_me:$LINENO: result: no" >&5
5553 echo "${ECHO_T}no" >&6
5557 USE_INCLUDED_LIBINTL=yes
5561 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5563 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5564 nls_cv_header_intl=libintl.h
5565 nls_cv_header_libgt=libgettext.h
5568 if test "$XGETTEXT" != ":"; then
5569 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5572 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5573 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5578 # We need to process the po/ directory.
5582 nls_cv_header_intl=libintl.h
5583 nls_cv_header_libgt=libgettext.h
5586 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5587 # because some of the sources are only built for this goal.
5588 if test "$PACKAGE" = gettext; then
5590 USE_INCLUDED_LIBINTL=yes
5593 for lang in $ALL_LINGUAS; do
5594 GMOFILES="$GMOFILES $lang.gmo"
5595 POFILES="$POFILES $lang.po"
5609 if test "x$CATOBJEXT" != "x"; then
5611 cat >>confdefs.h <<\_ACEOF
5612 #define ENABLE_NLS 1
5618 if test "x$CATOBJEXT" != "x"; then
5619 if test "x$ALL_LINGUAS" = "x"; then
5622 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5623 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5625 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5626 case "$ALL_LINGUAS" in
5627 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5630 LINGUAS=$NEW_LINGUAS
5631 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5632 echo "${ECHO_T}$LINGUAS" >&6
5635 if test -n "$LINGUAS"; then
5636 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5640 if test $ac_cv_header_locale_h = yes; then
5641 INCLUDE_LOCALE_H="#include <locale.h>"
5644 /* The system does not provide the header <locale.h>. Take care yourself. */"
5648 if test -f $srcdir/po2tbl.sed.in; then
5649 if test "$CATOBJEXT" = ".cat"; then
5650 if test "${ac_cv_header_linux_version_h+set}" = set; then
5651 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5652 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5653 if test "${ac_cv_header_linux_version_h+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5657 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5659 # Is the header compilable?
5660 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5661 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5662 cat >conftest.$ac_ext <<_ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 $ac_includes_default
5669 #include <linux/version.h>
5671 rm -f conftest.$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>conftest.er1
5675 grep -v '^ *+' conftest.er1 >conftest.err
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_header_compiler=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_header_compiler=no
5699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5701 echo "${ECHO_T}$ac_header_compiler" >&6
5703 # Is the header present?
5704 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5705 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5706 cat >conftest.$ac_ext <<_ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #include <linux/version.h>
5714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5717 grep -v '^ *+' conftest.er1 >conftest.err
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } >/dev/null; then
5722 if test -s conftest.err; then
5723 ac_cpp_err=$ac_c_preproc_warn_flag
5724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5731 if test -z "$ac_cpp_err"; then
5732 ac_header_preproc=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_header_preproc=no
5739 rm -f conftest.err conftest.$ac_ext
5740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5741 echo "${ECHO_T}$ac_header_preproc" >&6
5743 # So? What about this header?
5744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5746 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5747 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5748 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5749 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5750 ac_header_preproc=yes
5753 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5754 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5756 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5757 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5758 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5759 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5760 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5762 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5764 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5767 ## ------------------------------------------ ##
5768 ## Report this to the AC_PACKAGE_NAME lists. ##
5769 ## ------------------------------------------ ##
5772 sed "s/^/$as_me: WARNING: /" >&2
5775 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5776 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5777 if test "${ac_cv_header_linux_version_h+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_cv_header_linux_version_h=$ac_header_preproc
5782 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5783 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5786 if test $ac_cv_header_linux_version_h = yes; then
5794 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5796 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5797 $srcdir/po2tbl.sed.in > po2tbl.sed
5800 if test "$PACKAGE" = "gettext"; then
5810 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5816 if test -f $srcdir/po/POTFILES.in; then
5817 test -d po || mkdir po
5818 if test "x$srcdir" != "x."; then
5819 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5820 posrcprefix="$srcdir/"
5822 posrcprefix="../$srcdir/"
5828 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5829 < $srcdir/po/POTFILES.in > po/POTFILES
5833 localedir='${datadir}/locale'
5836 if test "x$POSUB" != x; then
5838 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5839 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5840 # Look for .po and .gmo files in the source directory.
5843 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5844 # If there aren't any .gmo files the shell will give us the
5845 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5847 case "$cat" in *\**)
5850 # The quadruple backslash is collapsed to a double backslash
5851 # by the backticks, then collapsed again by the double quotes,
5852 # leaving us with one backslash in the sed expression (right
5853 # before the dot that mustn't act as a wildcard).
5854 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5855 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5856 # The user is allowed to set LINGUAS to a list of languages to
5857 # install catalogs for. If it's empty that means "all of them."
5858 if test "x$LINGUAS" = x; then
5859 CATALOGS="$CATALOGS $cat"
5860 XLINGUAS="$XLINGUAS $lang"
5862 case "$LINGUAS" in *$lang*)
5863 CATALOGS="$CATALOGS $cat"
5864 XLINGUAS="$XLINGUAS $lang"
5870 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5871 echo "${ECHO_T}$LINGUAS" >&6
5873 CONFIG_ALL="$CONFIG_ALL all-po"
5874 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5875 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5876 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5881 cat >>confdefs.h <<_ACEOF
5882 #define PACKAGE "$PACKAGE"
5887 debugdir=${libdir}/debug
5890 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5891 if test "${with_separate_debug_dir+set}" = set; then
5892 withval="$with_separate_debug_dir"
5893 debugdir="${withval}"
5897 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5899 ac_define_dir=`eval echo $debugdir`
5900 ac_define_dir=`eval echo $ac_define_dir`
5902 cat >>confdefs.h <<_ACEOF
5903 #define DEBUGDIR "$ac_define_dir"
5907 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5911 subdirs="$subdirs doc testsuite"
5914 # Provide defaults for some variables set by the per-host and per-target
5916 gdb_host_obs=posix-hdep.o
5918 . $srcdir/configure.host
5920 . $srcdir/configure.tgt
5922 # Fetch the default architecture and default target vector from BFD.
5923 targ=$target; . $srcdir/../bfd/config.bfd
5925 # We only want the first architecture, so strip off the others if
5926 # there is more than one.
5927 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5929 if test "x$targ_archs" != x; then
5931 cat >>confdefs.h <<_ACEOF
5932 #define DEFAULT_BFD_ARCH $targ_archs
5936 if test "x$targ_defvec" != x; then
5938 cat >>confdefs.h <<_ACEOF
5939 #define DEFAULT_BFD_VEC $targ_defvec
5944 test "$program_prefix" != NONE &&
5945 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5946 # Use a double $ so make ignores it.
5947 test "$program_suffix" != NONE &&
5948 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5949 # Double any \ or $. echo might interpret backslashes.
5950 # By default was `s,x,x', remove it if useless.
5951 cat <<\_ACEOF >conftest.sed
5952 s/[\\$]/&&/g;s/;s,x,x,$//
5954 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5958 # The CLI cannot be disabled yet, but may be in the future.
5961 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5962 if test "${enable_gdbcli+set}" = set; then
5963 enableval="$enable_gdbcli"
5968 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5969 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5970 { (exit 1); exit 1; }; } ;;
5972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
5973 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
5974 { (exit 1); exit 1; }; } ;;
5979 if test x"$enable_gdbcli" = xyes; then
5980 if test -d $srcdir/cli; then
5981 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5982 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5983 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5984 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5989 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5990 if test "${enable_gdbmi+set}" = set; then
5991 enableval="$enable_gdbmi"
5996 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
5997 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
5998 { (exit 1); exit 1; }; } ;;
6003 if test x"$enable_gdbmi" = xyes; then
6004 if test -d $srcdir/mi; then
6005 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6006 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6007 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6008 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6013 # Check whether --enable-tui or --disable-tui was given.
6014 if test "${enable_tui+set}" = set; then
6015 enableval="$enable_tui"
6020 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6021 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6022 { (exit 1); exit 1; }; } ;;
6029 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6030 if test "${enable_gdbtk+set}" = set; then
6031 enableval="$enable_gdbtk"
6036 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6037 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6038 { (exit 1); exit 1; }; } ;;
6041 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
6047 # We unconditionally disable gdbtk tests on selected platforms.
6050 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6051 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6055 # Libunwind support.
6057 # Check whether --with-libunwind or --without-libunwind was given.
6058 if test "${with_libunwind+set}" = set; then
6059 withval="$with_libunwind"
6060 case "${withval}" in
6061 yes) enable_libunwind=yes ;;
6062 no) enable_libunwind=no ;;
6063 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6064 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6065 { (exit 1); exit 1; }; } ;;
6070 for ac_header in libunwind.h
6072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo "$as_me:$LINENO: checking for $ac_header" >&5
6075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6082 # Is the header compilable?
6083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 $ac_includes_default
6092 #include <$ac_header>
6094 rm -f conftest.$ac_objext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096 (eval $ac_compile) 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; } &&
6109 { ac_try='test -s conftest.$ac_objext'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
6115 ac_header_compiler=yes
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6120 ac_header_compiler=no
6122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6124 echo "${ECHO_T}$ac_header_compiler" >&6
6126 # Is the header present?
6127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 #include <$ac_header>
6137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } >/dev/null; then
6145 if test -s conftest.err; then
6146 ac_cpp_err=$ac_c_preproc_warn_flag
6147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6154 if test -z "$ac_cpp_err"; then
6155 ac_header_preproc=yes
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6160 ac_header_preproc=no
6162 rm -f conftest.err conftest.$ac_ext
6163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6164 echo "${ECHO_T}$ac_header_preproc" >&6
6166 # So? What about this header?
6167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6173 ac_header_preproc=yes
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6190 ## ------------------------------------------ ##
6191 ## Report this to the AC_PACKAGE_NAME lists. ##
6192 ## ------------------------------------------ ##
6195 sed "s/^/$as_me: WARNING: /" >&2
6198 echo "$as_me:$LINENO: checking for $ac_header" >&5
6199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 eval "$as_ac_Header=\$ac_header_preproc"
6205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219 for ac_header in libunwind-ia64.h
6221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6223 echo "$as_me:$LINENO: checking for $ac_header" >&5
6224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6231 # Is the header compilable?
6232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6241 #include <$ac_header>
6243 rm -f conftest.$ac_objext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245 (eval $ac_compile) 2>conftest.er1
6247 grep -v '^ *+' conftest.er1 >conftest.err
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_header_compiler=yes
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 ac_header_compiler=no
6271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6273 echo "${ECHO_T}$ac_header_compiler" >&6
6275 # Is the header present?
6276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 #include <$ac_header>
6286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6289 grep -v '^ *+' conftest.er1 >conftest.err
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null; then
6294 if test -s conftest.err; then
6295 ac_cpp_err=$ac_c_preproc_warn_flag
6296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6303 if test -z "$ac_cpp_err"; then
6304 ac_header_preproc=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 ac_header_preproc=no
6311 rm -f conftest.err conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6313 echo "${ECHO_T}$ac_header_preproc" >&6
6315 # So? What about this header?
6316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6322 ac_header_preproc=yes
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6339 ## ------------------------------------------ ##
6340 ## Report this to the AC_PACKAGE_NAME lists. ##
6341 ## ------------------------------------------ ##
6344 sed "s/^/$as_me: WARNING: /" >&2
6347 echo "$as_me:$LINENO: checking for $ac_header" >&5
6348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 eval "$as_ac_Header=\$ac_header_preproc"
6354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6359 cat >>confdefs.h <<_ACEOF
6360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6367 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6368 enable_libunwind=yes;
6373 if test x"$enable_libunwind" = xyes; then
6375 for ac_header in libunwind.h
6377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387 # Is the header compilable?
6388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6399 rm -f conftest.$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_header_compiler=yes
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_header_compiler=no
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6429 echo "${ECHO_T}$ac_header_compiler" >&6
6431 # Is the header present?
6432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6434 cat >conftest.$ac_ext <<_ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <$ac_header>
6442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } >/dev/null; then
6450 if test -s conftest.err; then
6451 ac_cpp_err=$ac_c_preproc_warn_flag
6452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6459 if test -z "$ac_cpp_err"; then
6460 ac_header_preproc=yes
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 ac_header_preproc=no
6467 rm -f conftest.err conftest.$ac_ext
6468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6469 echo "${ECHO_T}$ac_header_preproc" >&6
6471 # So? What about this header?
6472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6478 ac_header_preproc=yes
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6495 ## ------------------------------------------ ##
6496 ## Report this to the AC_PACKAGE_NAME lists. ##
6497 ## ------------------------------------------ ##
6500 sed "s/^/$as_me: WARNING: /" >&2
6503 echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 eval "$as_ac_Header=\$ac_header_preproc"
6510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515 cat >>confdefs.h <<_ACEOF
6516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6524 for ac_header in libunwind-ia64.h
6526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528 echo "$as_me:$LINENO: checking for $ac_header" >&5
6529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536 # Is the header compilable?
6537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6539 cat >conftest.$ac_ext <<_ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 $ac_includes_default
6546 #include <$ac_header>
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1 >conftest.err
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_header_compiler=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_header_compiler=no
6576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6578 echo "${ECHO_T}$ac_header_compiler" >&6
6580 # Is the header present?
6581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6583 cat >conftest.$ac_ext <<_ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 #include <$ac_header>
6591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6594 grep -v '^ *+' conftest.er1 >conftest.err
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } >/dev/null; then
6599 if test -s conftest.err; then
6600 ac_cpp_err=$ac_c_preproc_warn_flag
6601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6608 if test -z "$ac_cpp_err"; then
6609 ac_header_preproc=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_header_preproc=no
6616 rm -f conftest.err conftest.$ac_ext
6617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6618 echo "${ECHO_T}$ac_header_preproc" >&6
6620 # So? What about this header?
6621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6627 ac_header_preproc=yes
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6644 ## ------------------------------------------ ##
6645 ## Report this to the AC_PACKAGE_NAME lists. ##
6646 ## ------------------------------------------ ##
6649 sed "s/^/$as_me: WARNING: /" >&2
6652 echo "$as_me:$LINENO: checking for $ac_header" >&5
6653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 eval "$as_ac_Header=\$ac_header_preproc"
6659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6664 cat >>confdefs.h <<_ACEOF
6665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6673 cat >>confdefs.h <<\_ACEOF
6674 #define HAVE_LIBUNWIND 1
6677 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6678 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6679 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6682 # Profiling support.
6683 # Check whether --enable-profiling or --disable-profiling was given.
6684 if test "${enable_profiling+set}" = set; then
6685 enableval="$enable_profiling"
6690 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6691 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6692 { (exit 1); exit 1; }; } ;;
6700 for ac_func in monstartup _mcleanup
6702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703 echo "$as_me:$LINENO: checking for $ac_func" >&5
6704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6705 if eval "test \"\${$as_ac_var+set}\" = set"; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6716 #define $ac_func innocuous_$ac_func
6718 /* System header to define __stub macros and hopefully few prototypes,
6719 which can conflict with char $ac_func (); below.
6720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721 <limits.h> exists even on freestanding compilers. */
6724 # include <limits.h>
6726 # include <assert.h>
6731 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6739 /* The GNU C library defines this for functions which it implements
6740 to always fail with ENOSYS. Some functions are actually named
6741 something starting with __ and the normal name is an alias. */
6742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6745 char (*f) () = $ac_func;
6754 return f != $ac_func;
6759 rm -f conftest.$ac_objext conftest$ac_exeext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761 (eval $ac_link) 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 eval "$as_ac_var=yes"
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 eval "$as_ac_var=no"
6787 rm -f conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6792 if test `eval echo '${'$as_ac_var'}'` = yes; then
6793 cat >>confdefs.h <<_ACEOF
6794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6800 echo "$as_me:$LINENO: checking for _etext" >&5
6801 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6802 if test "${ac_cv_var__etext+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6822 rm -f conftest.$ac_objext conftest$ac_exeext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest$ac_exeext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_cv_var__etext=yes
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6850 rm -f conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6853 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6854 echo "${ECHO_T}$ac_cv_var__etext" >&6
6855 if test $ac_cv_var__etext = yes; then
6857 cat >>confdefs.h <<\_ACEOF
6858 #define HAVE__ETEXT 1
6862 if test "$enable_profiling" = yes ; then
6863 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6864 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6865 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6866 { (exit 1); exit 1; }; }
6869 OLD_CFLAGS="$CFLAGS"
6870 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6872 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6873 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6874 if test "${ac_cv_cc_supports_pg+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 cat >conftest.$ac_ext <<_ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6892 rm -f conftest.$ac_objext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>conftest.er1
6896 grep -v '^ *+' conftest.er1 >conftest.err
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest.$ac_objext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 ac_cv_cc_supports_pg=yes
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 ac_cv_cc_supports_pg=no
6920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6923 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6925 if test $ac_cv_cc_supports_pg = no; then
6926 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6927 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6928 { (exit 1); exit 1; }; }
6931 CFLAGS="$OLD_CFLAGS"
6934 # --------------------- #
6935 # Checks for programs. #
6936 # --------------------- #
6938 for ac_prog in gawk mawk nawk awk
6940 # Extract the first word of "$ac_prog", so it can be a program name with args.
6941 set dummy $ac_prog; ac_word=$2
6942 echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6944 if test "${ac_cv_prog_AWK+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 if test -n "$AWK"; then
6948 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_AWK="$ac_prog"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 if test -n "$AWK"; then
6968 echo "$as_me:$LINENO: result: $AWK" >&5
6969 echo "${ECHO_T}$AWK" >&6
6971 echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6
6975 test -n "$AWK" && break
6978 # Find a good install program. We prefer a C program (faster),
6979 # so one script is as good as another. But avoid the broken or
6980 # incompatible versions:
6981 # SysV /etc/install, /usr/sbin/install
6982 # SunOS /usr/etc/install
6983 # IRIX /sbin/install
6985 # AmigaOS /C/install, which installs bootblocks on floppy discs
6986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6989 # OS/2's system install, which has a completely different semantic
6990 # ./install, which can be erroneously created by make from ./install.sh.
6991 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6992 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6993 if test -z "$INSTALL"; then
6994 if test "${ac_cv_path_install+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 # Account for people who put trailing slashes in PATH elements.
7004 ./ | .// | /cC/* | \
7005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7006 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7009 # OSF1 and SCO ODT 3.0 have their own names for install.
7010 # Don't use installbsd from OSF since it installs stuff as root
7012 for ac_prog in ginstall scoinst install; do
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7015 if test $ac_prog = install &&
7016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7017 # AIX install. It has an incompatible calling convention.
7019 elif test $ac_prog = install &&
7020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7021 # program-specific install script used by HP pwplus--don't use.
7024 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7036 if test "${ac_cv_path_install+set}" = set; then
7037 INSTALL=$ac_cv_path_install
7039 # As a last resort, use the slow shell script. We don't cache a
7040 # path for INSTALL within a source directory, because that will
7041 # break other packages using the cache if that directory is
7042 # removed, or if the path is relative.
7043 INSTALL=$ac_install_sh
7046 echo "$as_me:$LINENO: result: $INSTALL" >&5
7047 echo "${ECHO_T}$INSTALL" >&6
7049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7050 # It thinks the first close brace ends the variable substitution.
7051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7057 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7058 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7060 if test "$LN_S" = "ln -s"; then
7061 echo "$as_me:$LINENO: result: yes" >&5
7062 echo "${ECHO_T}yes" >&6
7064 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7065 echo "${ECHO_T}no, using $LN_S" >&6
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7071 echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7073 if test "${ac_cv_prog_RANLIB+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 if test -n "$RANLIB"; then
7077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 RANLIB=$ac_cv_prog_RANLIB
7096 if test -n "$RANLIB"; then
7097 echo "$as_me:$LINENO: result: $RANLIB" >&5
7098 echo "${ECHO_T}$RANLIB" >&6
7100 echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6
7105 if test -z "$ac_cv_prog_RANLIB"; then
7106 ac_ct_RANLIB=$RANLIB
7107 # Extract the first word of "ranlib", so it can be a program name with args.
7108 set dummy ranlib; ac_word=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test -n "$ac_ct_RANLIB"; then
7115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_ac_ct_RANLIB="ranlib"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7135 if test -n "$ac_ct_RANLIB"; then
7136 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7137 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7139 echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6
7143 RANLIB=$ac_ct_RANLIB
7145 RANLIB="$ac_cv_prog_RANLIB"
7148 for ac_prog in 'bison -y' byacc
7150 # Extract the first word of "$ac_prog", so it can be a program name with args.
7151 set dummy $ac_prog; ac_word=$2
7152 echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7154 if test "${ac_cv_prog_YACC+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 if test -n "$YACC"; then
7158 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_YACC="$ac_prog"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 YACC=$ac_cv_prog_YACC
7177 if test -n "$YACC"; then
7178 echo "$as_me:$LINENO: result: $YACC" >&5
7179 echo "${ECHO_T}$YACC" >&6
7181 echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6
7185 test -n "$YACC" && break
7187 test -n "$YACC" || YACC="yacc"
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}ar; ac_word=$2
7193 echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7195 if test "${ac_cv_prog_AR+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 if test -n "$AR"; then
7199 ac_cv_prog_AR="$AR" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_AR="${ac_tool_prefix}ar"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 if test -n "$AR"; then
7219 echo "$as_me:$LINENO: result: $AR" >&5
7220 echo "${ECHO_T}$AR" >&6
7222 echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6
7227 if test -z "$ac_cv_prog_AR"; then
7229 # Extract the first word of "ar", so it can be a program name with args.
7230 set dummy ar; ac_word=$2
7231 echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 if test -n "$ac_ct_AR"; then
7237 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_AR="ar"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7256 if test -n "$ac_ct_AR"; then
7257 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7258 echo "${ECHO_T}$ac_ct_AR" >&6
7260 echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7269 if test -n "$ac_tool_prefix"; then
7270 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7271 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7272 echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7274 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 if test -n "$DLLTOOL"; then
7278 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 DLLTOOL=$ac_cv_prog_DLLTOOL
7297 if test -n "$DLLTOOL"; then
7298 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7299 echo "${ECHO_T}$DLLTOOL" >&6
7301 echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6
7306 if test -z "$ac_cv_prog_DLLTOOL"; then
7307 ac_ct_DLLTOOL=$DLLTOOL
7308 # Extract the first word of "dlltool", so it can be a program name with args.
7309 set dummy dlltool; ac_word=$2
7310 echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7312 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 if test -n "$ac_ct_DLLTOOL"; then
7316 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7335 if test -n "$ac_ct_DLLTOOL"; then
7336 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7337 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7343 DLLTOOL=$ac_ct_DLLTOOL
7345 DLLTOOL="$ac_cv_prog_DLLTOOL"
7348 if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}windres; ac_word=$2
7351 echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353 if test "${ac_cv_prog_WINDRES+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 if test -n "$WINDRES"; then
7357 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 WINDRES=$ac_cv_prog_WINDRES
7376 if test -n "$WINDRES"; then
7377 echo "$as_me:$LINENO: result: $WINDRES" >&5
7378 echo "${ECHO_T}$WINDRES" >&6
7380 echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7385 if test -z "$ac_cv_prog_WINDRES"; then
7386 ac_ct_WINDRES=$WINDRES
7387 # Extract the first word of "windres", so it can be a program name with args.
7388 set dummy windres; ac_word=$2
7389 echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7391 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 if test -n "$ac_ct_WINDRES"; then
7395 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_WINDRES="windres"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7414 if test -n "$ac_ct_WINDRES"; then
7415 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7416 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7418 echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7422 WINDRES=$ac_ct_WINDRES
7424 WINDRES="$ac_cv_prog_WINDRES"
7428 # Needed for GNU/Hurd.
7429 if test -n "$ac_tool_prefix"; then
7430 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7431 set dummy ${ac_tool_prefix}mig; ac_word=$2
7432 echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434 if test "${ac_cv_prog_MIG+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 if test -n "$MIG"; then
7438 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 if test -n "$MIG"; then
7458 echo "$as_me:$LINENO: result: $MIG" >&5
7459 echo "${ECHO_T}$MIG" >&6
7461 echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7466 if test -z "$ac_cv_prog_MIG"; then
7468 # Extract the first word of "mig", so it can be a program name with args.
7469 set dummy mig; ac_word=$2
7470 echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7472 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 if test -n "$ac_ct_MIG"; then
7476 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_ac_ct_MIG="mig"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7495 if test -n "$ac_ct_MIG"; then
7496 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7497 echo "${ECHO_T}$ac_ct_MIG" >&6
7499 echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6
7505 MIG="$ac_cv_prog_MIG"
7509 # ---------------------- #
7510 # Checks for libraries. #
7511 # ---------------------- #
7513 # We might need to link with -lm; most simulators need it.
7515 echo "$as_me:$LINENO: checking for main in -lm" >&5
7516 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7517 if test "${ac_cv_lib_m_main+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 ac_check_lib_save_LIBS=$LIBS
7522 cat >conftest.$ac_ext <<_ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7538 rm -f conftest.$ac_objext conftest$ac_exeext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7540 (eval $ac_link) 2>conftest.er1
7542 grep -v '^ *+' conftest.er1 >conftest.err
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_lib_m_main=yes
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7566 rm -f conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7568 LIBS=$ac_check_lib_save_LIBS
7570 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7571 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7572 if test $ac_cv_lib_m_main = yes; then
7573 cat >>confdefs.h <<_ACEOF
7582 # We need to link with -lw to get `wctype' on Solaris before Solaris
7583 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7584 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7585 # is known to have this problem). Therefore we avoid libw if we can.
7586 echo "$as_me:$LINENO: checking for wctype" >&5
7587 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7588 if test "${ac_cv_func_wctype+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 cat >conftest.$ac_ext <<_ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7597 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7599 #define wctype innocuous_wctype
7601 /* System header to define __stub macros and hopefully few prototypes,
7602 which can conflict with char wctype (); below.
7603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7604 <limits.h> exists even on freestanding compilers. */
7607 # include <limits.h>
7609 # include <assert.h>
7614 /* Override any gcc2 internal prototype to avoid an error. */
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7622 /* The GNU C library defines this for functions which it implements
7623 to always fail with ENOSYS. Some functions are actually named
7624 something starting with __ and the normal name is an alias. */
7625 #if defined (__stub_wctype) || defined (__stub___wctype)
7628 char (*f) () = wctype;
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644 (eval $ac_link) 2>conftest.er1
7646 grep -v '^ *+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; } &&
7657 { ac_try='test -s conftest$ac_exeext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663 ac_cv_func_wctype=yes
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_cv_func_wctype=no
7670 rm -f conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
7673 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7674 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7675 if test $ac_cv_func_wctype = yes; then
7679 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7680 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7681 if test "${ac_cv_lib_w_wctype+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 ac_check_lib_save_LIBS=$LIBS
7686 cat >conftest.$ac_ext <<_ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7693 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7708 rm -f conftest.$ac_objext conftest$ac_exeext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7710 (eval $ac_link) 2>conftest.er1
7712 grep -v '^ *+' conftest.er1 >conftest.err
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest$ac_exeext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_lib_w_wctype=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 ac_cv_lib_w_wctype=no
7736 rm -f conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7738 LIBS=$ac_check_lib_save_LIBS
7740 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7741 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7742 if test $ac_cv_lib_w_wctype = yes; then
7743 cat >>confdefs.h <<_ACEOF
7754 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7755 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7756 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7757 if test "${ac_cv_search_gethostbyname+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 ac_func_search_save_LIBS=$LIBS
7761 ac_cv_search_gethostbyname=no
7762 cat >conftest.$ac_ext <<_ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7769 /* Override any gcc2 internal prototype to avoid an error. */
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7775 char gethostbyname ();
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7786 (eval $ac_link) 2>conftest.er1
7788 grep -v '^ *+' conftest.er1 >conftest.err
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } &&
7793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_cv_search_gethostbyname="none required"
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7811 rm -f conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7813 if test "$ac_cv_search_gethostbyname" = no; then
7814 for ac_lib in nsl; do
7815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7816 cat >conftest.$ac_ext <<_ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7823 /* Override any gcc2 internal prototype to avoid an error. */
7827 /* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7829 char gethostbyname ();
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>conftest.er1
7842 grep -v '^ *+' conftest.er1 >conftest.err
7844 cat conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } &&
7847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_search_gethostbyname="-l$ac_lib"
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7866 rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7870 LIBS=$ac_func_search_save_LIBS
7872 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7873 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7874 if test "$ac_cv_search_gethostbyname" != no; then
7875 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7880 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7881 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7882 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7883 if test "${ac_cv_search_socketpair+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 ac_func_search_save_LIBS=$LIBS
7887 ac_cv_search_socketpair=no
7888 cat >conftest.$ac_ext <<_ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7895 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912 (eval $ac_link) 2>conftest.er1
7914 grep -v '^ *+' conftest.er1 >conftest.err
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_search_socketpair="none required"
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7937 rm -f conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939 if test "$ac_cv_search_socketpair" = no; then
7940 for ac_lib in socket; do
7941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7949 /* Override any gcc2 internal prototype to avoid an error. */
7953 /* We use char because int might match the return type of a gcc2
7954 builtin and then its argument prototype would still apply. */
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>conftest.er1
7968 grep -v '^ *+' conftest.er1 >conftest.err
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_search_socketpair="-l$ac_lib"
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7992 rm -f conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7996 LIBS=$ac_func_search_save_LIBS
7998 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
7999 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8000 if test "$ac_cv_search_socketpair" != no; then
8001 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8006 # For the TUI, we need enhanced curses functionality.
8008 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8009 # curses library because the latter might not provide all the
8010 # functionality we need. However, this leads to problems on systems
8011 # where the linker searches /usr/local/lib, but the compiler doesn't
8012 # search /usr/local/include, if ncurses is installed in /usr/local. A
8013 # default installation of ncurses on alpha*-dec-osf* will lead to such
8015 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8016 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8017 if test "${ac_cv_search_waddstr+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 ac_func_search_save_LIBS=$LIBS
8021 ac_cv_search_waddstr=no
8022 cat >conftest.$ac_ext <<_ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8029 /* Override any gcc2 internal prototype to avoid an error. */
8033 /* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_search_waddstr="none required"
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8071 rm -f conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8073 if test "$ac_cv_search_waddstr" = no; then
8074 for ac_lib in ncurses cursesX curses; do
8075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8076 cat >conftest.$ac_ext <<_ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8083 /* Override any gcc2 internal prototype to avoid an error. */
8087 /* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>conftest.er1
8102 grep -v '^ *+' conftest.er1 >conftest.err
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest$ac_exeext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_cv_search_waddstr="-l$ac_lib"
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8126 rm -f conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8130 LIBS=$ac_func_search_save_LIBS
8132 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8133 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8134 if test "$ac_cv_search_waddstr" != no; then
8135 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8140 # Since GDB uses Readline, we need termcap functionality. In many
8141 # cases this will be provided by the curses library, but some systems
8142 # have a seperate termcap library, or no curses library at all.
8146 if test -d $srcdir/libtermcap; then
8147 LIBS="../libtermcap/libtermcap.a $LIBS"
8148 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8151 ac_cv_search_tgetent="none required"
8154 ac_cv_search_tgetent="none required"
8155 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8159 # These are the libraries checked by Readline.
8160 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8161 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8162 if test "${ac_cv_search_tgetent+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 ac_func_search_save_LIBS=$LIBS
8166 ac_cv_search_tgetent=no
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8174 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191 (eval $ac_link) 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest$ac_exeext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_search_tgetent="none required"
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8216 rm -f conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8218 if test "$ac_cv_search_tgetent" = no; then
8219 for ac_lib in termcap tinfo curses ncurses; do
8220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8228 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8243 rm -f conftest.$ac_objext conftest$ac_exeext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>conftest.er1
8247 grep -v '^ *+' conftest.er1 >conftest.err
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_search_tgetent="-l$ac_lib"
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8271 rm -f conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
8275 LIBS=$ac_func_search_save_LIBS
8277 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8278 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8279 if test "$ac_cv_search_tgetent" != no; then
8280 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8285 if test "$ac_cv_search_tgetent" = no; then
8286 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8287 echo "$as_me: error: no termcap library found" >&2;}
8288 { (exit 1); exit 1; }; }
8291 # ------------------------- #
8292 # Checks for header files. #
8293 # ------------------------- #
8301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8302 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8303 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8304 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #include <sys/types.h>
8326 rm -f conftest.$ac_objext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328 (eval $ac_compile) 2>conftest.er1
8330 grep -v '^ *+' conftest.er1 >conftest.err
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } &&
8335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest.$ac_objext'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 eval "$as_ac_Header=yes"
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 eval "$as_ac_Header=no"
8354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8359 cat >>confdefs.h <<_ACEOF
8360 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8363 ac_header_dirent=$ac_hdr; break
8367 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8368 if test $ac_header_dirent = dirent.h; then
8369 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8370 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8371 if test "${ac_cv_search_opendir+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 ac_func_search_save_LIBS=$LIBS
8375 ac_cv_search_opendir=no
8376 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8383 /* Override any gcc2 internal prototype to avoid an error. */
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>conftest.er1
8402 grep -v '^ *+' conftest.er1 >conftest.err
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_search_opendir="none required"
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8425 rm -f conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
8427 if test "$ac_cv_search_opendir" = no; then
8428 for ac_lib in dir; do
8429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8430 cat >conftest.$ac_ext <<_ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8437 /* Override any gcc2 internal prototype to avoid an error. */
8441 /* We use char because int might match the return type of a gcc2
8442 builtin and then its argument prototype would still apply. */
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_cv_search_opendir="-l$ac_lib"
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8480 rm -f conftest.err conftest.$ac_objext \
8481 conftest$ac_exeext conftest.$ac_ext
8484 LIBS=$ac_func_search_save_LIBS
8486 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8487 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8488 if test "$ac_cv_search_opendir" != no; then
8489 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8494 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8495 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8496 if test "${ac_cv_search_opendir+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 ac_func_search_save_LIBS=$LIBS
8500 ac_cv_search_opendir=no
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8508 /* Override any gcc2 internal prototype to avoid an error. */
8512 /* We use char because int might match the return type of a gcc2
8513 builtin and then its argument prototype would still apply. */
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525 (eval $ac_link) 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_cv_search_opendir="none required"
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8550 rm -f conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 if test "$ac_cv_search_opendir" = no; then
8554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8562 /* Override any gcc2 internal prototype to avoid an error. */
8566 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579 (eval $ac_link) 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest$ac_exeext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_cv_search_opendir="-l$ac_lib"
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8605 rm -f conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8609 LIBS=$ac_func_search_save_LIBS
8611 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8612 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8613 if test "$ac_cv_search_opendir" != no; then
8614 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8620 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8621 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8622 if test "${ac_cv_header_stat_broken+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 #include <sys/types.h>
8632 #include <sys/stat.h>
8634 #if defined(S_ISBLK) && defined(S_IFDIR)
8635 # if S_ISBLK (S_IFDIR)
8640 #if defined(S_ISBLK) && defined(S_IFCHR)
8641 # if S_ISBLK (S_IFCHR)
8646 #if defined(S_ISLNK) && defined(S_IFREG)
8647 # if S_ISLNK (S_IFREG)
8652 #if defined(S_ISSOCK) && defined(S_IFREG)
8653 # if S_ISSOCK (S_IFREG)
8659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660 $EGREP "You lose" >/dev/null 2>&1; then
8661 ac_cv_header_stat_broken=yes
8663 ac_cv_header_stat_broken=no
8668 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8669 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8670 if test $ac_cv_header_stat_broken = yes; then
8672 cat >>confdefs.h <<\_ACEOF
8673 #define STAT_MACROS_BROKEN 1
8678 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8679 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8680 if test "${ac_cv_header_stdc+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>conftest.er1
8706 grep -v '^ *+' conftest.er1 >conftest.err
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_header_stdc=yes
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_cv_header_stdc=no
8730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8732 if test $ac_cv_header_stdc = yes; then
8733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8744 $EGREP "memchr" >/dev/null 2>&1; then
8747 ac_cv_header_stdc=no
8753 if test $ac_cv_header_stdc = yes; then
8754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8755 cat >conftest.$ac_ext <<_ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8765 $EGREP "free" >/dev/null 2>&1; then
8768 ac_cv_header_stdc=no
8774 if test $ac_cv_header_stdc = yes; then
8775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8776 if test "$cross_compiling" = yes; then
8779 cat >conftest.$ac_ext <<_ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8786 #if ((' ' & 0x0FF) == 0x020)
8787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8790 # define ISLOWER(c) \
8791 (('a' <= (c) && (c) <= 'i') \
8792 || ('j' <= (c) && (c) <= 'r') \
8793 || ('s' <= (c) && (c) <= 'z'))
8794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8802 for (i = 0; i < 256; i++)
8803 if (XOR (islower (i), ISLOWER (i))
8804 || toupper (i) != TOUPPER (i))
8809 rm -f conftest$ac_exeext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811 (eval $ac_link) 2>&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8822 echo "$as_me: program exited with status $ac_status" >&5
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_cv_header_stdc=no
8829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8833 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8834 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8835 if test $ac_cv_header_stdc = yes; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define STDC_HEADERS 1
8844 for ac_header in nlist.h
8846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8848 echo "$as_me:$LINENO: checking for $ac_header" >&5
8849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8856 # Is the header compilable?
8857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8859 cat >conftest.$ac_ext <<_ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 #include <$ac_header>
8868 rm -f conftest.$ac_objext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>conftest.er1
8872 grep -v '^ *+' conftest.er1 >conftest.err
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest.$ac_objext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_header_compiler=yes
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 ac_header_compiler=no
8896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8898 echo "${ECHO_T}$ac_header_compiler" >&6
8900 # Is the header present?
8901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 #include <$ac_header>
8911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8914 grep -v '^ *+' conftest.er1 >conftest.err
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } >/dev/null; then
8919 if test -s conftest.err; then
8920 ac_cpp_err=$ac_c_preproc_warn_flag
8921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8928 if test -z "$ac_cpp_err"; then
8929 ac_header_preproc=yes
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_header_preproc=no
8936 rm -f conftest.err conftest.$ac_ext
8937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8938 echo "${ECHO_T}$ac_header_preproc" >&6
8940 # So? What about this header?
8941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8947 ac_header_preproc=yes
8950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8964 ## ------------------------------------------ ##
8965 ## Report this to the AC_PACKAGE_NAME lists. ##
8966 ## ------------------------------------------ ##
8969 sed "s/^/$as_me: WARNING: /" >&2
8972 echo "$as_me:$LINENO: checking for $ac_header" >&5
8973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 eval "$as_ac_Header=\$ac_header_preproc"
8979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8984 cat >>confdefs.h <<_ACEOF
8985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8993 for ac_header in link.h
8995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8996 echo "$as_me:$LINENO: checking for $ac_header" >&5
8997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 cat >conftest.$ac_ext <<_ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9007 #if HAVE_SYS_TYPES_H
9008 # include <sys/types.h>
9015 #include <$ac_header>
9017 rm -f conftest.$ac_objext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019 (eval $ac_compile) 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 eval "$as_ac_Header=yes"
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9043 eval "$as_ac_Header=no"
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9050 cat >>confdefs.h <<_ACEOF
9051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9059 for ac_header in machine/reg.h
9061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9063 echo "$as_me:$LINENO: checking for $ac_header" >&5
9064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9071 # Is the header compilable?
9072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080 $ac_includes_default
9081 #include <$ac_header>
9083 rm -f conftest.$ac_objext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085 (eval $ac_compile) 2>conftest.er1
9087 grep -v '^ *+' conftest.er1 >conftest.err
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 ac_header_compiler=yes
9106 echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9109 ac_header_compiler=no
9111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9113 echo "${ECHO_T}$ac_header_compiler" >&6
9115 # Is the header present?
9116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9118 cat >conftest.$ac_ext <<_ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 #include <$ac_header>
9126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9129 grep -v '^ *+' conftest.er1 >conftest.err
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } >/dev/null; then
9134 if test -s conftest.err; then
9135 ac_cpp_err=$ac_c_preproc_warn_flag
9136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9143 if test -z "$ac_cpp_err"; then
9144 ac_header_preproc=yes
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ac_header_preproc=no
9151 rm -f conftest.err conftest.$ac_ext
9152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9153 echo "${ECHO_T}$ac_header_preproc" >&6
9155 # So? What about this header?
9156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9162 ac_header_preproc=yes
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9179 ## ------------------------------------------ ##
9180 ## Report this to the AC_PACKAGE_NAME lists. ##
9181 ## ------------------------------------------ ##
9184 sed "s/^/$as_me: WARNING: /" >&2
9187 echo "$as_me:$LINENO: checking for $ac_header" >&5
9188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 eval "$as_ac_Header=\$ac_header_preproc"
9194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199 cat >>confdefs.h <<_ACEOF
9200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209 for ac_header in poll.h sys/poll.h
9211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213 echo "$as_me:$LINENO: checking for $ac_header" >&5
9214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9221 # Is the header compilable?
9222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 $ac_includes_default
9231 #include <$ac_header>
9233 rm -f conftest.$ac_objext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235 (eval $ac_compile) 2>conftest.er1
9237 grep -v '^ *+' conftest.er1 >conftest.err
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_header_compiler=yes
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_header_compiler=no
9261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9263 echo "${ECHO_T}$ac_header_compiler" >&6
9265 # Is the header present?
9266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9268 cat >conftest.$ac_ext <<_ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 #include <$ac_header>
9276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } >/dev/null; then
9284 if test -s conftest.err; then
9285 ac_cpp_err=$ac_c_preproc_warn_flag
9286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9293 if test -z "$ac_cpp_err"; then
9294 ac_header_preproc=yes
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 ac_header_preproc=no
9301 rm -f conftest.err conftest.$ac_ext
9302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9303 echo "${ECHO_T}$ac_header_preproc" >&6
9305 # So? What about this header?
9306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9312 ac_header_preproc=yes
9315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9329 ## ------------------------------------------ ##
9330 ## Report this to the AC_PACKAGE_NAME lists. ##
9331 ## ------------------------------------------ ##
9334 sed "s/^/$as_me: WARNING: /" >&2
9337 echo "$as_me:$LINENO: checking for $ac_header" >&5
9338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 eval "$as_ac_Header=\$ac_header_preproc"
9344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9349 cat >>confdefs.h <<_ACEOF
9350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9360 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9364 echo "$as_me:$LINENO: checking for $ac_header" >&5
9365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9372 # Is the header compilable?
9373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 $ac_includes_default
9382 #include <$ac_header>
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest.$ac_objext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_header_compiler=yes
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 ac_header_compiler=no
9412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9414 echo "${ECHO_T}$ac_header_compiler" >&6
9416 # Is the header present?
9417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9419 cat >conftest.$ac_ext <<_ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 #include <$ac_header>
9427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9430 grep -v '^ *+' conftest.er1 >conftest.err
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } >/dev/null; then
9435 if test -s conftest.err; then
9436 ac_cpp_err=$ac_c_preproc_warn_flag
9437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9444 if test -z "$ac_cpp_err"; then
9445 ac_header_preproc=yes
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_header_preproc=no
9452 rm -f conftest.err conftest.$ac_ext
9453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9454 echo "${ECHO_T}$ac_header_preproc" >&6
9456 # So? What about this header?
9457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9463 ac_header_preproc=yes
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9480 ## ------------------------------------------ ##
9481 ## Report this to the AC_PACKAGE_NAME lists. ##
9482 ## ------------------------------------------ ##
9485 sed "s/^/$as_me: WARNING: /" >&2
9488 echo "$as_me:$LINENO: checking for $ac_header" >&5
9489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 eval "$as_ac_Header=\$ac_header_preproc"
9495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9500 cat >>confdefs.h <<_ACEOF
9501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9509 for ac_header in stddef.h
9511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9513 echo "$as_me:$LINENO: checking for $ac_header" >&5
9514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9521 # Is the header compilable?
9522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9524 cat >conftest.$ac_ext <<_ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 $ac_includes_default
9531 #include <$ac_header>
9533 rm -f conftest.$ac_objext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535 (eval $ac_compile) 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest.$ac_objext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_header_compiler=yes
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 ac_header_compiler=no
9561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9563 echo "${ECHO_T}$ac_header_compiler" >&6
9565 # Is the header present?
9566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 #include <$ac_header>
9576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } >/dev/null; then
9584 if test -s conftest.err; then
9585 ac_cpp_err=$ac_c_preproc_warn_flag
9586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9593 if test -z "$ac_cpp_err"; then
9594 ac_header_preproc=yes
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_header_preproc=no
9601 rm -f conftest.err conftest.$ac_ext
9602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9603 echo "${ECHO_T}$ac_header_preproc" >&6
9605 # So? What about this header?
9606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9612 ac_header_preproc=yes
9615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9629 ## ------------------------------------------ ##
9630 ## Report this to the AC_PACKAGE_NAME lists. ##
9631 ## ------------------------------------------ ##
9634 sed "s/^/$as_me: WARNING: /" >&2
9637 echo "$as_me:$LINENO: checking for $ac_header" >&5
9638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 eval "$as_ac_Header=\$ac_header_preproc"
9644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9658 for ac_header in stdlib.h
9660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9662 echo "$as_me:$LINENO: checking for $ac_header" >&5
9663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9670 # Is the header compilable?
9671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9673 cat >conftest.$ac_ext <<_ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 $ac_includes_default
9680 #include <$ac_header>
9682 rm -f conftest.$ac_objext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684 (eval $ac_compile) 2>conftest.er1
9686 grep -v '^ *+' conftest.er1 >conftest.err
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try='test -s conftest.$ac_objext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 ac_header_compiler=yes
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 ac_header_compiler=no
9710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9712 echo "${ECHO_T}$ac_header_compiler" >&6
9714 # Is the header present?
9715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9717 cat >conftest.$ac_ext <<_ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9723 #include <$ac_header>
9725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } >/dev/null; then
9733 if test -s conftest.err; then
9734 ac_cpp_err=$ac_c_preproc_warn_flag
9735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9742 if test -z "$ac_cpp_err"; then
9743 ac_header_preproc=yes
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9748 ac_header_preproc=no
9750 rm -f conftest.err conftest.$ac_ext
9751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9752 echo "${ECHO_T}$ac_header_preproc" >&6
9754 # So? What about this header?
9755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9761 ac_header_preproc=yes
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9778 ## ------------------------------------------ ##
9779 ## Report this to the AC_PACKAGE_NAME lists. ##
9780 ## ------------------------------------------ ##
9783 sed "s/^/$as_me: WARNING: /" >&2
9786 echo "$as_me:$LINENO: checking for $ac_header" >&5
9787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 eval "$as_ac_Header=\$ac_header_preproc"
9793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9798 cat >>confdefs.h <<_ACEOF
9799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9807 for ac_header in stdint.h
9809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811 echo "$as_me:$LINENO: checking for $ac_header" >&5
9812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9819 # Is the header compilable?
9820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 $ac_includes_default
9829 #include <$ac_header>
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1 >conftest.err
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest.$ac_objext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_header_compiler=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_header_compiler=no
9859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9861 echo "${ECHO_T}$ac_header_compiler" >&6
9863 # Is the header present?
9864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 #include <$ac_header>
9874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } >/dev/null; then
9882 if test -s conftest.err; then
9883 ac_cpp_err=$ac_c_preproc_warn_flag
9884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9891 if test -z "$ac_cpp_err"; then
9892 ac_header_preproc=yes
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_header_preproc=no
9899 rm -f conftest.err conftest.$ac_ext
9900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9901 echo "${ECHO_T}$ac_header_preproc" >&6
9903 # So? What about this header?
9904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9910 ac_header_preproc=yes
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9927 ## ------------------------------------------ ##
9928 ## Report this to the AC_PACKAGE_NAME lists. ##
9929 ## ------------------------------------------ ##
9932 sed "s/^/$as_me: WARNING: /" >&2
9935 echo "$as_me:$LINENO: checking for $ac_header" >&5
9936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 eval "$as_ac_Header=\$ac_header_preproc"
9942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9947 cat >>confdefs.h <<_ACEOF
9948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9958 for ac_header in string.h memory.h strings.h
9960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo "$as_me:$LINENO: checking for $ac_header" >&5
9963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9970 # Is the header compilable?
9971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9973 cat >conftest.$ac_ext <<_ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 $ac_includes_default
9980 #include <$ac_header>
9982 rm -f conftest.$ac_objext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 (eval $ac_compile) 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest.$ac_objext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_header_compiler=yes
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_header_compiler=no
10010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10012 echo "${ECHO_T}$ac_header_compiler" >&6
10014 # Is the header present?
10015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <$ac_header>
10025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev/null; then
10033 if test -s conftest.err; then
10034 ac_cpp_err=$ac_c_preproc_warn_flag
10035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10042 if test -z "$ac_cpp_err"; then
10043 ac_header_preproc=yes
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_header_preproc=no
10050 rm -f conftest.err conftest.$ac_ext
10051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052 echo "${ECHO_T}$ac_header_preproc" >&6
10054 # So? What about this header?
10055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10061 ac_header_preproc=yes
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10078 ## ------------------------------------------ ##
10079 ## Report this to the AC_PACKAGE_NAME lists. ##
10080 ## ------------------------------------------ ##
10083 sed "s/^/$as_me: WARNING: /" >&2
10086 echo "$as_me:$LINENO: checking for $ac_header" >&5
10087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 eval "$as_ac_Header=\$ac_header_preproc"
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10098 cat >>confdefs.h <<_ACEOF
10099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10107 for ac_header in sys/fault.h
10109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10111 echo "$as_me:$LINENO: checking for $ac_header" >&5
10112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10119 # Is the header compilable?
10120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10129 #include <$ac_header>
10131 rm -f conftest.$ac_objext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10133 (eval $ac_compile) 2>conftest.er1
10135 grep -v '^ *+' conftest.er1 >conftest.err
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest.$ac_objext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 ac_header_compiler=yes
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ac_header_compiler=no
10159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10161 echo "${ECHO_T}$ac_header_compiler" >&6
10163 # Is the header present?
10164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 #include <$ac_header>
10174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } >/dev/null; then
10182 if test -s conftest.err; then
10183 ac_cpp_err=$ac_c_preproc_warn_flag
10184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10191 if test -z "$ac_cpp_err"; then
10192 ac_header_preproc=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_header_preproc=no
10199 rm -f conftest.err conftest.$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10201 echo "${ECHO_T}$ac_header_preproc" >&6
10203 # So? What about this header?
10204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10210 ac_header_preproc=yes
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10227 ## ------------------------------------------ ##
10228 ## Report this to the AC_PACKAGE_NAME lists. ##
10229 ## ------------------------------------------ ##
10232 sed "s/^/$as_me: WARNING: /" >&2
10235 echo "$as_me:$LINENO: checking for $ac_header" >&5
10236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 eval "$as_ac_Header=\$ac_header_preproc"
10242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10247 cat >>confdefs.h <<_ACEOF
10248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10256 for ac_header in sys/file.h
10258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10260 echo "$as_me:$LINENO: checking for $ac_header" >&5
10261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10268 # Is the header compilable?
10269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10271 cat >conftest.$ac_ext <<_ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 $ac_includes_default
10278 #include <$ac_header>
10280 rm -f conftest.$ac_objext
10281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10282 (eval $ac_compile) 2>conftest.er1
10284 grep -v '^ *+' conftest.er1 >conftest.err
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
10289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest.$ac_objext'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_header_compiler=yes
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_header_compiler=no
10308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10310 echo "${ECHO_T}$ac_header_compiler" >&6
10312 # Is the header present?
10313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10315 cat >conftest.$ac_ext <<_ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321 #include <$ac_header>
10323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10326 grep -v '^ *+' conftest.er1 >conftest.err
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } >/dev/null; then
10331 if test -s conftest.err; then
10332 ac_cpp_err=$ac_c_preproc_warn_flag
10333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10340 if test -z "$ac_cpp_err"; then
10341 ac_header_preproc=yes
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ac_header_preproc=no
10348 rm -f conftest.err conftest.$ac_ext
10349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10350 echo "${ECHO_T}$ac_header_preproc" >&6
10352 # So? What about this header?
10353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10359 ac_header_preproc=yes
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10376 ## ------------------------------------------ ##
10377 ## Report this to the AC_PACKAGE_NAME lists. ##
10378 ## ------------------------------------------ ##
10381 sed "s/^/$as_me: WARNING: /" >&2
10384 echo "$as_me:$LINENO: checking for $ac_header" >&5
10385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 eval "$as_ac_Header=\$ac_header_preproc"
10391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10396 cat >>confdefs.h <<_ACEOF
10397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10405 for ac_header in sys/filio.h
10407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10409 echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10417 # Is the header compilable?
10418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10420 cat >conftest.$ac_ext <<_ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10427 #include <$ac_header>
10429 rm -f conftest.$ac_objext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>conftest.er1
10433 grep -v '^ *+' conftest.er1 >conftest.err
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_header_compiler=yes
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 ac_header_compiler=no
10457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10459 echo "${ECHO_T}$ac_header_compiler" >&6
10461 # Is the header present?
10462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10464 cat >conftest.$ac_ext <<_ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10470 #include <$ac_header>
10472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10475 grep -v '^ *+' conftest.er1 >conftest.err
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } >/dev/null; then
10480 if test -s conftest.err; then
10481 ac_cpp_err=$ac_c_preproc_warn_flag
10482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10489 if test -z "$ac_cpp_err"; then
10490 ac_header_preproc=yes
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 ac_header_preproc=no
10497 rm -f conftest.err conftest.$ac_ext
10498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499 echo "${ECHO_T}$ac_header_preproc" >&6
10501 # So? What about this header?
10502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10508 ac_header_preproc=yes
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10525 ## ------------------------------------------ ##
10526 ## Report this to the AC_PACKAGE_NAME lists. ##
10527 ## ------------------------------------------ ##
10530 sed "s/^/$as_me: WARNING: /" >&2
10533 echo "$as_me:$LINENO: checking for $ac_header" >&5
10534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 eval "$as_ac_Header=\$ac_header_preproc"
10540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10545 cat >>confdefs.h <<_ACEOF
10546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10554 for ac_header in sys/ioctl.h
10556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10558 echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10566 # Is the header compilable?
10567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10569 cat >conftest.$ac_ext <<_ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 $ac_includes_default
10576 #include <$ac_header>
10578 rm -f conftest.$ac_objext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 ac_header_compiler=yes
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_header_compiler=no
10606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608 echo "${ECHO_T}$ac_header_compiler" >&6
10610 # Is the header present?
10611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 #include <$ac_header>
10621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10624 grep -v '^ *+' conftest.er1 >conftest.err
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } >/dev/null; then
10629 if test -s conftest.err; then
10630 ac_cpp_err=$ac_c_preproc_warn_flag
10631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10638 if test -z "$ac_cpp_err"; then
10639 ac_header_preproc=yes
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 ac_header_preproc=no
10646 rm -f conftest.err conftest.$ac_ext
10647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10648 echo "${ECHO_T}$ac_header_preproc" >&6
10650 # So? What about this header?
10651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10657 ac_header_preproc=yes
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10674 ## ------------------------------------------ ##
10675 ## Report this to the AC_PACKAGE_NAME lists. ##
10676 ## ------------------------------------------ ##
10679 sed "s/^/$as_me: WARNING: /" >&2
10682 echo "$as_me:$LINENO: checking for $ac_header" >&5
10683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 eval "$as_ac_Header=\$ac_header_preproc"
10689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10694 cat >>confdefs.h <<_ACEOF
10695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10703 for ac_header in sys/param.h
10705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10707 echo "$as_me:$LINENO: checking for $ac_header" >&5
10708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10715 # Is the header compilable?
10716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10718 cat >conftest.$ac_ext <<_ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 $ac_includes_default
10725 #include <$ac_header>
10727 rm -f conftest.$ac_objext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10729 (eval $ac_compile) 2>conftest.er1
10731 grep -v '^ *+' conftest.er1 >conftest.err
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_header_compiler=yes
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 ac_header_compiler=no
10755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10757 echo "${ECHO_T}$ac_header_compiler" >&6
10759 # Is the header present?
10760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 #include <$ac_header>
10770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } >/dev/null; then
10778 if test -s conftest.err; then
10779 ac_cpp_err=$ac_c_preproc_warn_flag
10780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10787 if test -z "$ac_cpp_err"; then
10788 ac_header_preproc=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_header_preproc=no
10795 rm -f conftest.err conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10797 echo "${ECHO_T}$ac_header_preproc" >&6
10799 # So? What about this header?
10800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10806 ac_header_preproc=yes
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10823 ## ------------------------------------------ ##
10824 ## Report this to the AC_PACKAGE_NAME lists. ##
10825 ## ------------------------------------------ ##
10828 sed "s/^/$as_me: WARNING: /" >&2
10831 echo "$as_me:$LINENO: checking for $ac_header" >&5
10832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 eval "$as_ac_Header=\$ac_header_preproc"
10838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843 cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10852 for ac_header in sys/proc.h
10854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10855 echo "$as_me:$LINENO: checking for $ac_header" >&5
10856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 #if HAVE_SYS_PARAM_H
10867 # include <sys/param.h>
10871 #include <$ac_header>
10873 rm -f conftest.$ac_objext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875 (eval $ac_compile) 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 eval "$as_ac_Header=yes"
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 eval "$as_ac_Header=no"
10901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10906 cat >>confdefs.h <<_ACEOF
10907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10915 for ac_header in sys/procfs.h
10917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10919 echo "$as_me:$LINENO: checking for $ac_header" >&5
10920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10927 # Is the header compilable?
10928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10930 cat >conftest.$ac_ext <<_ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 $ac_includes_default
10937 #include <$ac_header>
10939 rm -f conftest.$ac_objext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941 (eval $ac_compile) 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest.$ac_objext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 ac_header_compiler=yes
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_header_compiler=no
10967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10969 echo "${ECHO_T}$ac_header_compiler" >&6
10971 # Is the header present?
10972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10974 cat >conftest.$ac_ext <<_ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980 #include <$ac_header>
10982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } >/dev/null; then
10990 if test -s conftest.err; then
10991 ac_cpp_err=$ac_c_preproc_warn_flag
10992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10999 if test -z "$ac_cpp_err"; then
11000 ac_header_preproc=yes
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 ac_header_preproc=no
11007 rm -f conftest.err conftest.$ac_ext
11008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11009 echo "${ECHO_T}$ac_header_preproc" >&6
11011 # So? What about this header?
11012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11018 ac_header_preproc=yes
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11035 ## ------------------------------------------ ##
11036 ## Report this to the AC_PACKAGE_NAME lists. ##
11037 ## ------------------------------------------ ##
11040 sed "s/^/$as_me: WARNING: /" >&2
11043 echo "$as_me:$LINENO: checking for $ac_header" >&5
11044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 eval "$as_ac_Header=\$ac_header_preproc"
11050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11065 for ac_header in sys/ptrace.h ptrace.h
11067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11069 echo "$as_me:$LINENO: checking for $ac_header" >&5
11070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11077 # Is the header compilable?
11078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11080 cat >conftest.$ac_ext <<_ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 $ac_includes_default
11087 #include <$ac_header>
11089 rm -f conftest.$ac_objext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 ac_header_compiler=yes
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 ac_header_compiler=no
11117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11119 echo "${ECHO_T}$ac_header_compiler" >&6
11121 # Is the header present?
11122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11124 cat >conftest.$ac_ext <<_ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 #include <$ac_header>
11132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11135 grep -v '^ *+' conftest.er1 >conftest.err
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } >/dev/null; then
11140 if test -s conftest.err; then
11141 ac_cpp_err=$ac_c_preproc_warn_flag
11142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11149 if test -z "$ac_cpp_err"; then
11150 ac_header_preproc=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_header_preproc=no
11157 rm -f conftest.err conftest.$ac_ext
11158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11159 echo "${ECHO_T}$ac_header_preproc" >&6
11161 # So? What about this header?
11162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11168 ac_header_preproc=yes
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11185 ## ------------------------------------------ ##
11186 ## Report this to the AC_PACKAGE_NAME lists. ##
11187 ## ------------------------------------------ ##
11190 sed "s/^/$as_me: WARNING: /" >&2
11193 echo "$as_me:$LINENO: checking for $ac_header" >&5
11194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 eval "$as_ac_Header=\$ac_header_preproc"
11200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11215 for ac_header in sys/reg.h sys/debugreg.h
11217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11219 echo "$as_me:$LINENO: checking for $ac_header" >&5
11220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11227 # Is the header compilable?
11228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 $ac_includes_default
11237 #include <$ac_header>
11239 rm -f conftest.$ac_objext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>conftest.er1
11243 grep -v '^ *+' conftest.er1 >conftest.err
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_header_compiler=yes
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_header_compiler=no
11267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11269 echo "${ECHO_T}$ac_header_compiler" >&6
11271 # Is the header present?
11272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11274 cat >conftest.$ac_ext <<_ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11280 #include <$ac_header>
11282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } >/dev/null; then
11290 if test -s conftest.err; then
11291 ac_cpp_err=$ac_c_preproc_warn_flag
11292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11299 if test -z "$ac_cpp_err"; then
11300 ac_header_preproc=yes
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_header_preproc=no
11307 rm -f conftest.err conftest.$ac_ext
11308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309 echo "${ECHO_T}$ac_header_preproc" >&6
11311 # So? What about this header?
11312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11318 ac_header_preproc=yes
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11335 ## ------------------------------------------ ##
11336 ## Report this to the AC_PACKAGE_NAME lists. ##
11337 ## ------------------------------------------ ##
11340 sed "s/^/$as_me: WARNING: /" >&2
11343 echo "$as_me:$LINENO: checking for $ac_header" >&5
11344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 eval "$as_ac_Header=\$ac_header_preproc"
11350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11355 cat >>confdefs.h <<_ACEOF
11356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11364 for ac_header in sys/select.h
11366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368 echo "$as_me:$LINENO: checking for $ac_header" >&5
11369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11376 # Is the header compilable?
11377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11379 cat >conftest.$ac_ext <<_ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 $ac_includes_default
11386 #include <$ac_header>
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest.$ac_objext'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_header_compiler=yes
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_header_compiler=no
11416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11418 echo "${ECHO_T}$ac_header_compiler" >&6
11420 # Is the header present?
11421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <$ac_header>
11431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11434 grep -v '^ *+' conftest.er1 >conftest.err
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } >/dev/null; then
11439 if test -s conftest.err; then
11440 ac_cpp_err=$ac_c_preproc_warn_flag
11441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11448 if test -z "$ac_cpp_err"; then
11449 ac_header_preproc=yes
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_header_preproc=no
11456 rm -f conftest.err conftest.$ac_ext
11457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 echo "${ECHO_T}$ac_header_preproc" >&6
11460 # So? What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484 ## ------------------------------------------ ##
11485 ## Report this to the AC_PACKAGE_NAME lists. ##
11486 ## ------------------------------------------ ##
11489 sed "s/^/$as_me: WARNING: /" >&2
11492 echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 eval "$as_ac_Header=\$ac_header_preproc"
11499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11504 cat >>confdefs.h <<_ACEOF
11505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513 for ac_header in sys/syscall.h
11515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11517 echo "$as_me:$LINENO: checking for $ac_header" >&5
11518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11525 # Is the header compilable?
11526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11528 cat >conftest.$ac_ext <<_ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11535 #include <$ac_header>
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>conftest.er1
11541 grep -v '^ *+' conftest.er1 >conftest.err
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_header_compiler=yes
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11563 ac_header_compiler=no
11565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11567 echo "${ECHO_T}$ac_header_compiler" >&6
11569 # Is the header present?
11570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11572 cat >conftest.$ac_ext <<_ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11578 #include <$ac_header>
11580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11583 grep -v '^ *+' conftest.er1 >conftest.err
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } >/dev/null; then
11588 if test -s conftest.err; then
11589 ac_cpp_err=$ac_c_preproc_warn_flag
11590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11597 if test -z "$ac_cpp_err"; then
11598 ac_header_preproc=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_header_preproc=no
11605 rm -f conftest.err conftest.$ac_ext
11606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11607 echo "${ECHO_T}$ac_header_preproc" >&6
11609 # So? What about this header?
11610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11616 ac_header_preproc=yes
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11633 ## ------------------------------------------ ##
11634 ## Report this to the AC_PACKAGE_NAME lists. ##
11635 ## ------------------------------------------ ##
11638 sed "s/^/$as_me: WARNING: /" >&2
11641 echo "$as_me:$LINENO: checking for $ac_header" >&5
11642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 eval "$as_ac_Header=\$ac_header_preproc"
11648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653 cat >>confdefs.h <<_ACEOF
11654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11662 for ac_header in sys/types.h
11664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11666 echo "$as_me:$LINENO: checking for $ac_header" >&5
11667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11674 # Is the header compilable?
11675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11677 cat >conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 $ac_includes_default
11684 #include <$ac_header>
11686 rm -f conftest.$ac_objext
11687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>conftest.er1
11690 grep -v '^ *+' conftest.er1 >conftest.err
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_header_compiler=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_header_compiler=no
11714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11716 echo "${ECHO_T}$ac_header_compiler" >&6
11718 # Is the header present?
11719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 #include <$ac_header>
11729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } >/dev/null; then
11737 if test -s conftest.err; then
11738 ac_cpp_err=$ac_c_preproc_warn_flag
11739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11746 if test -z "$ac_cpp_err"; then
11747 ac_header_preproc=yes
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_header_preproc=no
11754 rm -f conftest.err conftest.$ac_ext
11755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11756 echo "${ECHO_T}$ac_header_preproc" >&6
11758 # So? What about this header?
11759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11765 ac_header_preproc=yes
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11782 ## ------------------------------------------ ##
11783 ## Report this to the AC_PACKAGE_NAME lists. ##
11784 ## ------------------------------------------ ##
11787 sed "s/^/$as_me: WARNING: /" >&2
11790 echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 eval "$as_ac_Header=\$ac_header_preproc"
11797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802 cat >>confdefs.h <<_ACEOF
11803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11811 for ac_header in sys/user.h
11813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 echo "$as_me:$LINENO: checking for $ac_header" >&5
11815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 #if HAVE_SYS_PARAM_H
11826 # include <sys/param.h>
11830 #include <$ac_header>
11832 rm -f conftest.$ac_objext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } &&
11841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 eval "$as_ac_Header=yes"
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 eval "$as_ac_Header=no"
11860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11865 cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11875 for ac_header in sys/wait.h wait.h
11877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11879 echo "$as_me:$LINENO: checking for $ac_header" >&5
11880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11887 # Is the header compilable?
11888 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11897 #include <$ac_header>
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11903 grep -v '^ *+' conftest.er1 >conftest.err
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 ac_header_compiler=yes
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 ac_header_compiler=no
11927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11929 echo "${ECHO_T}$ac_header_compiler" >&6
11931 # Is the header present?
11932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 #include <$ac_header>
11942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11945 grep -v '^ *+' conftest.er1 >conftest.err
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } >/dev/null; then
11950 if test -s conftest.err; then
11951 ac_cpp_err=$ac_c_preproc_warn_flag
11952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11959 if test -z "$ac_cpp_err"; then
11960 ac_header_preproc=yes
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ac_header_preproc=no
11967 rm -f conftest.err conftest.$ac_ext
11968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11969 echo "${ECHO_T}$ac_header_preproc" >&6
11971 # So? What about this header?
11972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11978 ac_header_preproc=yes
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11995 ## ------------------------------------------ ##
11996 ## Report this to the AC_PACKAGE_NAME lists. ##
11997 ## ------------------------------------------ ##
12000 sed "s/^/$as_me: WARNING: /" >&2
12003 echo "$as_me:$LINENO: checking for $ac_header" >&5
12004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 eval "$as_ac_Header=\$ac_header_preproc"
12010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12015 cat >>confdefs.h <<_ACEOF
12016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12026 for ac_header in termios.h termio.h sgtty.h
12028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030 echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12038 # Is the header compilable?
12039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 $ac_includes_default
12048 #include <$ac_header>
12050 rm -f conftest.$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052 (eval $ac_compile) 2>conftest.er1
12054 grep -v '^ *+' conftest.er1 >conftest.err
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } &&
12059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 (eval $ac_try) 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; } &&
12065 { ac_try='test -s conftest.$ac_objext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_header_compiler=yes
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 ac_header_compiler=no
12078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12080 echo "${ECHO_T}$ac_header_compiler" >&6
12082 # Is the header present?
12083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12085 cat >conftest.$ac_ext <<_ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12091 #include <$ac_header>
12093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12096 grep -v '^ *+' conftest.er1 >conftest.err
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } >/dev/null; then
12101 if test -s conftest.err; then
12102 ac_cpp_err=$ac_c_preproc_warn_flag
12103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12110 if test -z "$ac_cpp_err"; then
12111 ac_header_preproc=yes
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12116 ac_header_preproc=no
12118 rm -f conftest.err conftest.$ac_ext
12119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12120 echo "${ECHO_T}$ac_header_preproc" >&6
12122 # So? What about this header?
12123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12129 ac_header_preproc=yes
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12146 ## ------------------------------------------ ##
12147 ## Report this to the AC_PACKAGE_NAME lists. ##
12148 ## ------------------------------------------ ##
12151 sed "s/^/$as_me: WARNING: /" >&2
12154 echo "$as_me:$LINENO: checking for $ac_header" >&5
12155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 eval "$as_ac_Header=\$ac_header_preproc"
12161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12166 cat >>confdefs.h <<_ACEOF
12167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12175 for ac_header in unistd.h
12177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12179 echo "$as_me:$LINENO: checking for $ac_header" >&5
12180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12187 # Is the header compilable?
12188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 $ac_includes_default
12197 #include <$ac_header>
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201 (eval $ac_compile) 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_header_compiler=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ac_header_compiler=no
12227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229 echo "${ECHO_T}$ac_header_compiler" >&6
12231 # Is the header present?
12232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 #include <$ac_header>
12242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } >/dev/null; then
12250 if test -s conftest.err; then
12251 ac_cpp_err=$ac_c_preproc_warn_flag
12252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12259 if test -z "$ac_cpp_err"; then
12260 ac_header_preproc=yes
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_header_preproc=no
12267 rm -f conftest.err conftest.$ac_ext
12268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12269 echo "${ECHO_T}$ac_header_preproc" >&6
12271 # So? What about this header?
12272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12278 ac_header_preproc=yes
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12295 ## ------------------------------------------ ##
12296 ## Report this to the AC_PACKAGE_NAME lists. ##
12297 ## ------------------------------------------ ##
12300 sed "s/^/$as_me: WARNING: /" >&2
12303 echo "$as_me:$LINENO: checking for $ac_header" >&5
12304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 eval "$as_ac_Header=\$ac_header_preproc"
12310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12315 cat >>confdefs.h <<_ACEOF
12316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12324 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12325 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12326 # think that we don't have <curses.h> if we're using GCC.
12329 if test "$GCC" = yes; then
12331 cat >>confdefs.h <<\_ACEOF
12332 #define _MSE_INT_H 1
12341 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12345 echo "$as_me:$LINENO: checking for $ac_header" >&5
12346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12353 # Is the header compilable?
12354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12356 cat >conftest.$ac_ext <<_ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 $ac_includes_default
12363 #include <$ac_header>
12365 rm -f conftest.$ac_objext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12367 (eval $ac_compile) 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest.$ac_objext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_header_compiler=yes
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_header_compiler=no
12393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12395 echo "${ECHO_T}$ac_header_compiler" >&6
12397 # Is the header present?
12398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12400 cat >conftest.$ac_ext <<_ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 #include <$ac_header>
12408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12411 grep -v '^ *+' conftest.er1 >conftest.err
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } >/dev/null; then
12416 if test -s conftest.err; then
12417 ac_cpp_err=$ac_c_preproc_warn_flag
12418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12425 if test -z "$ac_cpp_err"; then
12426 ac_header_preproc=yes
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 ac_header_preproc=no
12433 rm -f conftest.err conftest.$ac_ext
12434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12435 echo "${ECHO_T}$ac_header_preproc" >&6
12437 # So? What about this header?
12438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12444 ac_header_preproc=yes
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12461 ## ------------------------------------------ ##
12462 ## Report this to the AC_PACKAGE_NAME lists. ##
12463 ## ------------------------------------------ ##
12466 sed "s/^/$as_me: WARNING: /" >&2
12469 echo "$as_me:$LINENO: checking for $ac_header" >&5
12470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 eval "$as_ac_Header=\$ac_header_preproc"
12476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12481 cat >>confdefs.h <<_ACEOF
12482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12490 for ac_header in ncurses/term.h
12492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12494 echo "$as_me:$LINENO: checking for $ac_header" >&5
12495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12502 # Is the header compilable?
12503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12505 cat >conftest.$ac_ext <<_ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 $ac_includes_default
12512 #include <$ac_header>
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>conftest.er1
12518 grep -v '^ *+' conftest.er1 >conftest.err
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; } &&
12529 { ac_try='test -s conftest.$ac_objext'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
12535 ac_header_compiler=yes
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12540 ac_header_compiler=no
12542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12544 echo "${ECHO_T}$ac_header_compiler" >&6
12546 # Is the header present?
12547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12549 cat >conftest.$ac_ext <<_ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 #include <$ac_header>
12557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12560 grep -v '^ *+' conftest.er1 >conftest.err
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } >/dev/null; then
12565 if test -s conftest.err; then
12566 ac_cpp_err=$ac_c_preproc_warn_flag
12567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12574 if test -z "$ac_cpp_err"; then
12575 ac_header_preproc=yes
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12580 ac_header_preproc=no
12582 rm -f conftest.err conftest.$ac_ext
12583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12584 echo "${ECHO_T}$ac_header_preproc" >&6
12586 # So? What about this header?
12587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12593 ac_header_preproc=yes
12596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12610 ## ------------------------------------------ ##
12611 ## Report this to the AC_PACKAGE_NAME lists. ##
12612 ## ------------------------------------------ ##
12615 sed "s/^/$as_me: WARNING: /" >&2
12618 echo "$as_me:$LINENO: checking for $ac_header" >&5
12619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 eval "$as_ac_Header=\$ac_header_preproc"
12625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12630 cat >>confdefs.h <<_ACEOF
12631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12639 for ac_header in term.h
12641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642 echo "$as_me:$LINENO: checking for $ac_header" >&5
12643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 cat >conftest.$ac_ext <<_ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12654 # include <curses.h>
12658 #include <$ac_header>
12660 rm -f conftest.$ac_objext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12662 (eval $ac_compile) 2>conftest.er1
12664 grep -v '^ *+' conftest.er1 >conftest.err
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest.$ac_objext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 eval "$as_ac_Header=yes"
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12686 eval "$as_ac_Header=no"
12688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12693 cat >>confdefs.h <<_ACEOF
12694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12702 # FIXME: kettenis/20030102: In most cases we include these
12703 # unconditionally, so what's the point in checking these?
12706 for ac_header in ctype.h time.h
12708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12710 echo "$as_me:$LINENO: checking for $ac_header" >&5
12711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12718 # Is the header compilable?
12719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12721 cat >conftest.$ac_ext <<_ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 $ac_includes_default
12728 #include <$ac_header>
12730 rm -f conftest.$ac_objext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_header_compiler=yes
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12756 ac_header_compiler=no
12758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760 echo "${ECHO_T}$ac_header_compiler" >&6
12762 # Is the header present?
12763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12765 cat >conftest.$ac_ext <<_ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 #include <$ac_header>
12773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12776 grep -v '^ *+' conftest.er1 >conftest.err
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } >/dev/null; then
12781 if test -s conftest.err; then
12782 ac_cpp_err=$ac_c_preproc_warn_flag
12783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12790 if test -z "$ac_cpp_err"; then
12791 ac_header_preproc=yes
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 ac_header_preproc=no
12798 rm -f conftest.err conftest.$ac_ext
12799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12800 echo "${ECHO_T}$ac_header_preproc" >&6
12802 # So? What about this header?
12803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12809 ac_header_preproc=yes
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12826 ## ------------------------------------------ ##
12827 ## Report this to the AC_PACKAGE_NAME lists. ##
12828 ## ------------------------------------------ ##
12831 sed "s/^/$as_me: WARNING: /" >&2
12834 echo "$as_me:$LINENO: checking for $ac_header" >&5
12835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 eval "$as_ac_Header=\$ac_header_preproc"
12841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12846 cat >>confdefs.h <<_ACEOF
12847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12855 # ------------------------- #
12856 # Checks for declarations. #
12857 # ------------------------- #
12859 echo "$as_me:$LINENO: checking whether free is declared" >&5
12860 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12861 if test "${ac_cv_have_decl_free+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 cat >conftest.$ac_ext <<_ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 $ac_includes_default
12875 char *p = (char *) free;
12882 rm -f conftest.$ac_objext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12884 (eval $ac_compile) 2>conftest.er1
12886 grep -v '^ *+' conftest.er1 >conftest.err
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; } &&
12897 { ac_try='test -s conftest.$ac_objext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 ac_cv_have_decl_free=yes
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 ac_cv_have_decl_free=no
12910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12912 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12913 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12914 if test $ac_cv_have_decl_free = yes; then
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_DECL_FREE 1
12922 cat >>confdefs.h <<_ACEOF
12923 #define HAVE_DECL_FREE 0
12928 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12929 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12930 if test "${ac_cv_have_decl_malloc+set}" = set; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939 $ac_includes_default
12944 char *p = (char *) malloc;
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>conftest.er1
12955 grep -v '^ *+' conftest.er1 >conftest.err
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest.$ac_objext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 ac_cv_have_decl_malloc=yes
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12977 ac_cv_have_decl_malloc=no
12979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12981 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12982 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12983 if test $ac_cv_have_decl_malloc = yes; then
12985 cat >>confdefs.h <<_ACEOF
12986 #define HAVE_DECL_MALLOC 1
12991 cat >>confdefs.h <<_ACEOF
12992 #define HAVE_DECL_MALLOC 0
12997 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12998 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12999 if test "${ac_cv_have_decl_realloc+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 cat >conftest.$ac_ext <<_ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 $ac_includes_default
13013 char *p = (char *) realloc;
13020 rm -f conftest.$ac_objext
13021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022 (eval $ac_compile) 2>conftest.er1
13024 grep -v '^ *+' conftest.er1 >conftest.err
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest.$ac_objext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 ac_cv_have_decl_realloc=yes
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13046 ac_cv_have_decl_realloc=no
13048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13050 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13051 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13052 if test $ac_cv_have_decl_realloc = yes; then
13054 cat >>confdefs.h <<_ACEOF
13055 #define HAVE_DECL_REALLOC 1
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_DECL_REALLOC 0
13068 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13069 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13070 if test "${ac_cv_have_decl_strerror+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 cat >conftest.$ac_ext <<_ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 $ac_includes_default
13084 char *p = (char *) strerror;
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; } &&
13106 { ac_try='test -s conftest.$ac_objext'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
13112 ac_cv_have_decl_strerror=yes
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13117 ac_cv_have_decl_strerror=no
13119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13121 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13122 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13123 if test $ac_cv_have_decl_strerror = yes; then
13125 cat >>confdefs.h <<_ACEOF
13126 #define HAVE_DECL_STRERROR 1
13131 cat >>confdefs.h <<_ACEOF
13132 #define HAVE_DECL_STRERROR 0
13137 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13138 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13139 if test "${ac_cv_have_decl_strstr+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 cat >conftest.$ac_ext <<_ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 $ac_includes_default
13153 char *p = (char *) strstr;
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>conftest.er1
13164 grep -v '^ *+' conftest.er1 >conftest.err
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
13169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; } &&
13175 { ac_try='test -s conftest.$ac_objext'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13181 ac_cv_have_decl_strstr=yes
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13186 ac_cv_have_decl_strstr=no
13188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13190 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13191 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13192 if test $ac_cv_have_decl_strstr = yes; then
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_DECL_STRSTR 1
13200 cat >>confdefs.h <<_ACEOF
13201 #define HAVE_DECL_STRSTR 0
13208 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13209 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13210 if test "${ac_cv_have_decl_getopt+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 cat >conftest.$ac_ext <<_ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 $ac_includes_default
13224 char *p = (char *) getopt;
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>conftest.er1
13235 grep -v '^ *+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; } &&
13246 { ac_try='test -s conftest.$ac_objext'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13252 ac_cv_have_decl_getopt=yes
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 ac_cv_have_decl_getopt=no
13259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13261 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13262 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13263 if test $ac_cv_have_decl_getopt = yes; then
13265 cat >>confdefs.h <<_ACEOF
13266 #define HAVE_DECL_GETOPT 1
13271 cat >>confdefs.h <<_ACEOF
13272 #define HAVE_DECL_GETOPT 0
13277 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13278 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13279 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 cat >conftest.$ac_ext <<_ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13288 $ac_includes_default
13293 char *p = (char *) snprintf;
13300 rm -f conftest.$ac_objext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>conftest.er1
13304 grep -v '^ *+' conftest.er1 >conftest.err
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 ac_cv_have_decl_snprintf=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ac_cv_have_decl_snprintf=no
13328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13331 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13332 if test $ac_cv_have_decl_snprintf = yes; then
13334 cat >>confdefs.h <<_ACEOF
13335 #define HAVE_DECL_SNPRINTF 1
13340 cat >>confdefs.h <<_ACEOF
13341 #define HAVE_DECL_SNPRINTF 0
13346 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13347 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13348 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13362 char *p = (char *) vsnprintf;
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>conftest.er1
13373 grep -v '^ *+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; } &&
13384 { ac_try='test -s conftest.$ac_objext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_have_decl_vsnprintf=yes
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ac_cv_have_decl_vsnprintf=no
13397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13400 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13401 if test $ac_cv_have_decl_vsnprintf = yes; then
13403 cat >>confdefs.h <<_ACEOF
13404 #define HAVE_DECL_VSNPRINTF 1
13409 cat >>confdefs.h <<_ACEOF
13410 #define HAVE_DECL_VSNPRINTF 0
13418 # ----------------------- #
13419 # Checks for structures. #
13420 # ----------------------- #
13422 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13423 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13424 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 cat >conftest.$ac_ext <<_ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 $ac_includes_default
13437 static struct stat ac_aggr;
13438 if (ac_aggr.st_blocks)
13444 rm -f conftest.$ac_objext
13445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13446 (eval $ac_compile) 2>conftest.er1
13448 grep -v '^ *+' conftest.er1 >conftest.err
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try='test -s conftest.$ac_objext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 ac_cv_member_struct_stat_st_blocks=yes
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13470 cat >conftest.$ac_ext <<_ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 $ac_includes_default
13480 static struct stat ac_aggr;
13481 if (sizeof ac_aggr.st_blocks)
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489 (eval $ac_compile) 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest.$ac_objext'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13508 ac_cv_member_struct_stat_st_blocks=yes
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_cv_member_struct_stat_st_blocks=no
13515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13519 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13520 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13521 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13523 cat >>confdefs.h <<_ACEOF
13524 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13530 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13531 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13532 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 cat >conftest.$ac_ext <<_ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13545 static struct stat ac_aggr;
13546 if (ac_aggr.st_blksize)
13552 rm -f conftest.$ac_objext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>conftest.er1
13556 grep -v '^ *+' conftest.er1 >conftest.err
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest.$ac_objext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_member_struct_stat_st_blksize=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 cat >conftest.$ac_ext <<_ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584 $ac_includes_default
13588 static struct stat ac_aggr;
13589 if (sizeof ac_aggr.st_blksize)
13595 rm -f conftest.$ac_objext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597 (eval $ac_compile) 2>conftest.er1
13599 grep -v '^ *+' conftest.er1 >conftest.err
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_member_struct_stat_st_blksize=yes
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_cv_member_struct_stat_st_blksize=no
13623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13627 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13628 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13629 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13639 # ------------------ #
13640 # Checks for types. #
13641 # ------------------ #
13643 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13644 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13645 if test "${ac_cv_type_signal+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 cat >conftest.$ac_ext <<_ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654 #include <sys/types.h>
13655 #include <signal.h>
13660 extern "C" void (*signal (int, void (*)(int)))(int);
13662 void (*signal ()) ();
13673 rm -f conftest.$ac_objext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>conftest.er1
13677 grep -v '^ *+' conftest.er1 >conftest.err
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest.$ac_objext'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 ac_cv_type_signal=void
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ac_cv_type_signal=int
13701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13703 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13704 echo "${ECHO_T}$ac_cv_type_signal" >&6
13706 cat >>confdefs.h <<_ACEOF
13707 #define RETSIGTYPE $ac_cv_type_signal
13711 echo "$as_me:$LINENO: checking for socklen_t" >&5
13712 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13713 if test "${ac_cv_type_socklen_t+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 #include <sys/types.h>
13723 #include <sys/socket.h>
13729 if ((socklen_t *) 0)
13731 if (sizeof (socklen_t))
13737 rm -f conftest.$ac_objext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739 (eval $ac_compile) 2>conftest.er1
13741 grep -v '^ *+' conftest.er1 >conftest.err
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_cv_type_socklen_t=yes
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_cv_type_socklen_t=no
13765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13768 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13769 if test $ac_cv_type_socklen_t = yes; then
13771 cat >>confdefs.h <<_ACEOF
13772 #define HAVE_SOCKLEN_T 1
13778 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13779 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13780 if test "${ac_cv_type_uintptr_t+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 cat >conftest.$ac_ext <<_ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 #include <stdint.h>
13794 if ((uintptr_t *) 0)
13796 if (sizeof (uintptr_t))
13802 rm -f conftest.$ac_objext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804 (eval $ac_compile) 2>conftest.er1
13806 grep -v '^ *+' conftest.er1 >conftest.err
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_type_uintptr_t=yes
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ac_cv_type_uintptr_t=no
13830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13832 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13833 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13834 if test $ac_cv_type_uintptr_t = yes; then
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_UINTPTR_T 1
13844 # ------------------------------------- #
13845 # Checks for compiler characteristics. #
13846 # ------------------------------------- #
13848 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13849 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13850 if test "${ac_cv_c_const+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 cat >conftest.$ac_ext <<_ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13863 /* FIXME: Include the comments suggested by Paul. */
13864 #ifndef __cplusplus
13865 /* Ultrix mips cc rejects this. */
13866 typedef int charset[2];
13868 /* SunOS 4.1.1 cc rejects this. */
13869 char const *const *ccp;
13871 /* NEC SVR4.0.2 mips cc rejects this. */
13872 struct point {int x, y;};
13873 static struct point const zero = {0,0};
13874 /* AIX XL C 1.02.0.0 rejects this.
13875 It does not let you subtract one const X* pointer from another in
13876 an arm of an if-expression whose if-part is not a constant
13878 const char *g = "string";
13879 ccp = &g + (g ? g-g : 0);
13880 /* HPUX 7.0 cc rejects these. */
13883 ccp = (char const *const *) p;
13884 { /* SCO 3.2v4 cc rejects this. */
13886 char const *s = 0 ? (char *) 0 : (char const *) 0;
13890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13891 int x[] = {25, 17};
13892 const int *foo = &x[0];
13895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13896 typedef const int *iptr;
13900 { /* AIX XL C 1.02.0.0 rejects this saying
13901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13902 struct s { int j; const int *ap[3]; };
13903 struct s *b; b->j = 5;
13905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13906 const int foo = 10;
13914 rm -f conftest.$ac_objext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916 (eval $ac_compile) 2>conftest.er1
13918 grep -v '^ *+' conftest.er1 >conftest.err
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest.$ac_objext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13944 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13945 echo "${ECHO_T}$ac_cv_c_const" >&6
13946 if test $ac_cv_c_const = no; then
13948 cat >>confdefs.h <<\_ACEOF
13954 echo "$as_me:$LINENO: checking for inline" >&5
13955 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13956 if test "${ac_cv_c_inline+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 for ac_kw in inline __inline__ __inline; do
13961 cat >conftest.$ac_ext <<_ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #ifndef __cplusplus
13969 static $ac_kw foo_t static_foo () {return 0; }
13970 $ac_kw foo_t foo () {return 0; }
13974 rm -f conftest.$ac_objext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976 (eval $ac_compile) 2>conftest.er1
13978 grep -v '^ *+' conftest.er1 >conftest.err
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest.$ac_objext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_cv_c_inline=$ac_kw; break
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14005 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14006 echo "${ECHO_T}$ac_cv_c_inline" >&6
14009 case $ac_cv_c_inline in
14012 case $ac_cv_c_inline in
14014 *) ac_val=$ac_cv_c_inline;;
14016 cat >>confdefs.h <<_ACEOF
14017 #ifndef __cplusplus
14018 #define inline $ac_val
14025 # ------------------------------ #
14026 # Checks for library functions. #
14027 # ------------------------------ #
14029 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14030 # for constant arguments. Useless!
14031 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14032 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14033 if test "${ac_cv_working_alloca_h+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 cat >conftest.$ac_ext <<_ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 #include <alloca.h>
14046 char *p = (char *) alloca (2 * sizeof (int));
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053 (eval $ac_link) 2>conftest.er1
14055 grep -v '^ *+' conftest.er1 >conftest.err
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest$ac_exeext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 ac_cv_working_alloca_h=yes
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_cv_working_alloca_h=no
14079 rm -f conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
14082 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14083 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14084 if test $ac_cv_working_alloca_h = yes; then
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_ALLOCA_H 1
14092 echo "$as_me:$LINENO: checking for alloca" >&5
14093 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14094 if test "${ac_cv_func_alloca_works+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 cat >conftest.$ac_ext <<_ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14104 # define alloca __builtin_alloca
14107 # include <malloc.h>
14108 # define alloca _alloca
14111 # include <alloca.h>
14116 # ifndef alloca /* predefined by HP cc +Olibcalls */
14127 char *p = (char *) alloca (1);
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134 (eval $ac_link) 2>conftest.er1
14136 grep -v '^ *+' conftest.er1 >conftest.err
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 ac_cv_func_alloca_works=yes
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 ac_cv_func_alloca_works=no
14160 rm -f conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14163 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14164 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14166 if test $ac_cv_func_alloca_works = yes; then
14168 cat >>confdefs.h <<\_ACEOF
14169 #define HAVE_ALLOCA 1
14173 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14174 # that cause trouble. Some versions do not even contain alloca or
14175 # contain a buggy version. If you still want to use their alloca,
14176 # use ar to extract alloca.o from them instead of compiling alloca.c.
14178 ALLOCA=alloca.$ac_objext
14180 cat >>confdefs.h <<\_ACEOF
14185 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14186 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14187 if test "${ac_cv_os_cray+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #if defined(CRAY) && ! defined(CRAY2)
14203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14204 $EGREP "webecray" >/dev/null 2>&1; then
14212 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14213 echo "${ECHO_T}$ac_cv_os_cray" >&6
14214 if test $ac_cv_os_cray = yes; then
14215 for ac_func in _getb67 GETB67 getb67; do
14216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14217 echo "$as_me:$LINENO: checking for $ac_func" >&5
14218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14219 if eval "test \"\${$as_ac_var+set}\" = set"; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 cat >conftest.$ac_ext <<_ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14230 #define $ac_func innocuous_$ac_func
14232 /* System header to define __stub macros and hopefully few prototypes,
14233 which can conflict with char $ac_func (); below.
14234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14235 <limits.h> exists even on freestanding compilers. */
14238 # include <limits.h>
14240 # include <assert.h>
14245 /* Override any gcc2 internal prototype to avoid an error. */
14250 /* We use char because int might match the return type of a gcc2
14251 builtin and then its argument prototype would still apply. */
14253 /* The GNU C library defines this for functions which it implements
14254 to always fail with ENOSYS. Some functions are actually named
14255 something starting with __ and the normal name is an alias. */
14256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14259 char (*f) () = $ac_func;
14268 return f != $ac_func;
14273 rm -f conftest.$ac_objext conftest$ac_exeext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275 (eval $ac_link) 2>conftest.er1
14277 grep -v '^ *+' conftest.er1 >conftest.err
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest$ac_exeext'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 eval "$as_ac_var=yes"
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 eval "$as_ac_var=no"
14301 rm -f conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
14304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14306 if test `eval echo '${'$as_ac_var'}'` = yes; then
14308 cat >>confdefs.h <<_ACEOF
14309 #define CRAY_STACKSEG_END $ac_func
14318 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14319 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14320 if test "${ac_cv_c_stack_direction+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 if test "$cross_compiling" = yes; then
14324 ac_cv_c_stack_direction=0
14326 cat >conftest.$ac_ext <<_ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14333 find_stack_direction ()
14335 static char *addr = 0;
14340 return find_stack_direction ();
14343 return (&dummy > addr) ? 1 : -1;
14349 exit (find_stack_direction () < 0);
14352 rm -f conftest$ac_exeext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14354 (eval $ac_link) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 ac_cv_c_stack_direction=1
14365 echo "$as_me: program exited with status $ac_status" >&5
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14369 ( exit $ac_status )
14370 ac_cv_c_stack_direction=-1
14372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14375 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14376 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14378 cat >>confdefs.h <<_ACEOF
14379 #define STACK_DIRECTION $ac_cv_c_stack_direction
14387 for ac_header in stdlib.h unistd.h
14389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14391 echo "$as_me:$LINENO: checking for $ac_header" >&5
14392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14399 # Is the header compilable?
14400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14402 cat >conftest.$ac_ext <<_ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408 $ac_includes_default
14409 #include <$ac_header>
14411 rm -f conftest.$ac_objext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest.$ac_objext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_header_compiler=yes
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14437 ac_header_compiler=no
14439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14441 echo "${ECHO_T}$ac_header_compiler" >&6
14443 # Is the header present?
14444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14446 cat >conftest.$ac_ext <<_ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 #include <$ac_header>
14454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14457 grep -v '^ *+' conftest.er1 >conftest.err
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } >/dev/null; then
14462 if test -s conftest.err; then
14463 ac_cpp_err=$ac_c_preproc_warn_flag
14464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14471 if test -z "$ac_cpp_err"; then
14472 ac_header_preproc=yes
14474 echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14477 ac_header_preproc=no
14479 rm -f conftest.err conftest.$ac_ext
14480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14481 echo "${ECHO_T}$ac_header_preproc" >&6
14483 # So? What about this header?
14484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14490 ac_header_preproc=yes
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14507 ## ------------------------------------------ ##
14508 ## Report this to the AC_PACKAGE_NAME lists. ##
14509 ## ------------------------------------------ ##
14512 sed "s/^/$as_me: WARNING: /" >&2
14515 echo "$as_me:$LINENO: checking for $ac_header" >&5
14516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 eval "$as_ac_Header=\$ac_header_preproc"
14522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14527 cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14536 for ac_func in getpagesize
14538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14539 echo "$as_me:$LINENO: checking for $ac_func" >&5
14540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14541 if eval "test \"\${$as_ac_var+set}\" = set"; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14544 cat >conftest.$ac_ext <<_ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14552 #define $ac_func innocuous_$ac_func
14554 /* System header to define __stub macros and hopefully few prototypes,
14555 which can conflict with char $ac_func (); below.
14556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14557 <limits.h> exists even on freestanding compilers. */
14560 # include <limits.h>
14562 # include <assert.h>
14567 /* Override any gcc2 internal prototype to avoid an error. */
14572 /* We use char because int might match the return type of a gcc2
14573 builtin and then its argument prototype would still apply. */
14575 /* The GNU C library defines this for functions which it implements
14576 to always fail with ENOSYS. Some functions are actually named
14577 something starting with __ and the normal name is an alias. */
14578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14581 char (*f) () = $ac_func;
14590 return f != $ac_func;
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597 (eval $ac_link) 2>conftest.er1
14599 grep -v '^ *+' conftest.er1 >conftest.err
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest$ac_exeext'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 eval "$as_ac_var=yes"
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14621 eval "$as_ac_var=no"
14623 rm -f conftest.err conftest.$ac_objext \
14624 conftest$ac_exeext conftest.$ac_ext
14626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14628 if test `eval echo '${'$as_ac_var'}'` = yes; then
14629 cat >>confdefs.h <<_ACEOF
14630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14636 echo "$as_me:$LINENO: checking for working mmap" >&5
14637 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14638 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 if test "$cross_compiling" = yes; then
14642 ac_cv_func_mmap_fixed_mapped=no
14644 cat >conftest.$ac_ext <<_ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 $ac_includes_default
14651 /* malloc might have been renamed as rpl_malloc. */
14654 /* Thanks to Mike Haertel and Jim Avera for this test.
14655 Here is a matrix of mmap possibilities:
14656 mmap private not fixed
14657 mmap private fixed at somewhere currently unmapped
14658 mmap private fixed at somewhere already mapped
14659 mmap shared not fixed
14660 mmap shared fixed at somewhere currently unmapped
14661 mmap shared fixed at somewhere already mapped
14662 For private mappings, we should verify that changes cannot be read()
14663 back from the file, nor mmap's back from the file at a different
14664 address. (There have been systems where private was not correctly
14665 implemented like the infamous i386 svr4.0, and systems where the
14666 VM page cache was not coherent with the file system buffer cache
14667 like early versions of FreeBSD and possibly contemporary NetBSD.)
14668 For shared mappings, we should conversely verify that changes get
14669 propagated back to all the places they're supposed to be.
14671 Grep wants private fixed already mapped.
14672 The main things grep needs to know about mmap are:
14673 * does it exist and is it safe to write into the mmap'd area
14674 * how to use it (BSD variants) */
14677 #include <sys/mman.h>
14679 #if !STDC_HEADERS && !HAVE_STDLIB_H
14683 /* This mess was copied from the GNU getpagesize.h. */
14684 #if !HAVE_GETPAGESIZE
14685 /* Assume that all systems that can run configure have sys/param.h. */
14686 # if !HAVE_SYS_PARAM_H
14687 # define HAVE_SYS_PARAM_H 1
14690 # ifdef _SC_PAGESIZE
14691 # define getpagesize() sysconf(_SC_PAGESIZE)
14692 # else /* no _SC_PAGESIZE */
14693 # if HAVE_SYS_PARAM_H
14694 # include <sys/param.h>
14695 # ifdef EXEC_PAGESIZE
14696 # define getpagesize() EXEC_PAGESIZE
14697 # else /* no EXEC_PAGESIZE */
14699 # define getpagesize() NBPG * CLSIZE
14702 # endif /* no CLSIZE */
14703 # else /* no NBPG */
14705 # define getpagesize() NBPC
14706 # else /* no NBPC */
14708 # define getpagesize() PAGESIZE
14709 # endif /* PAGESIZE */
14710 # endif /* no NBPC */
14711 # endif /* no NBPG */
14712 # endif /* no EXEC_PAGESIZE */
14713 # else /* no HAVE_SYS_PARAM_H */
14714 # define getpagesize() 8192 /* punt totally */
14715 # endif /* no HAVE_SYS_PARAM_H */
14716 # endif /* no _SC_PAGESIZE */
14718 #endif /* no HAVE_GETPAGESIZE */
14723 char *data, *data2, *data3;
14727 pagesize = getpagesize ();
14729 /* First, make a file with some known garbage in it. */
14730 data = (char *) malloc (pagesize);
14733 for (i = 0; i < pagesize; ++i)
14734 *(data + i) = rand ();
14736 fd = creat ("conftest.mmap", 0600);
14739 if (write (fd, data, pagesize) != pagesize)
14743 /* Next, try to mmap the file at a fixed address which already has
14744 something else allocated at it. If we can, also make sure that
14745 we see the same garbage. */
14746 fd = open ("conftest.mmap", O_RDWR);
14749 data2 = (char *) malloc (2 * pagesize);
14752 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14753 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14754 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14756 for (i = 0; i < pagesize; ++i)
14757 if (*(data + i) != *(data2 + i))
14760 /* Finally, make sure that changes to the mapped area do not
14761 percolate back to the file as seen by read(). (This is a bug on
14762 some variants of i386 svr4.0.) */
14763 for (i = 0; i < pagesize; ++i)
14764 *(data2 + i) = *(data2 + i) + 1;
14765 data3 = (char *) malloc (pagesize);
14768 if (read (fd, data3, pagesize) != pagesize)
14770 for (i = 0; i < pagesize; ++i)
14771 if (*(data + i) != *(data3 + i))
14777 rm -f conftest$ac_exeext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779 (eval $ac_link) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_func_mmap_fixed_mapped=yes
14790 echo "$as_me: program exited with status $ac_status" >&5
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ( exit $ac_status )
14795 ac_cv_func_mmap_fixed_mapped=no
14797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14800 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14801 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14802 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14804 cat >>confdefs.h <<\_ACEOF
14805 #define HAVE_MMAP 1
14809 rm -f conftest.mmap
14811 echo "$as_me:$LINENO: checking for pid_t" >&5
14812 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14813 if test "${ac_cv_type_pid_t+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 cat >conftest.$ac_ext <<_ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 $ac_includes_default
14828 if (sizeof (pid_t))
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836 (eval $ac_compile) 2>conftest.er1
14838 grep -v '^ *+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; } &&
14849 { ac_try='test -s conftest.$ac_objext'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_cv_type_pid_t=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_cv_type_pid_t=no
14862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14865 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14866 if test $ac_cv_type_pid_t = yes; then
14870 cat >>confdefs.h <<_ACEOF
14878 for ac_header in unistd.h vfork.h
14880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14882 echo "$as_me:$LINENO: checking for $ac_header" >&5
14883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14890 # Is the header compilable?
14891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14893 cat >conftest.$ac_ext <<_ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 $ac_includes_default
14900 #include <$ac_header>
14902 rm -f conftest.$ac_objext
14903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904 (eval $ac_compile) 2>conftest.er1
14906 grep -v '^ *+' conftest.er1 >conftest.err
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest.$ac_objext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_header_compiler=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_header_compiler=no
14930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932 echo "${ECHO_T}$ac_header_compiler" >&6
14934 # Is the header present?
14935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14937 cat >conftest.$ac_ext <<_ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 #include <$ac_header>
14945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14948 grep -v '^ *+' conftest.er1 >conftest.err
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } >/dev/null; then
14953 if test -s conftest.err; then
14954 ac_cpp_err=$ac_c_preproc_warn_flag
14955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14962 if test -z "$ac_cpp_err"; then
14963 ac_header_preproc=yes
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ac_header_preproc=no
14970 rm -f conftest.err conftest.$ac_ext
14971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14972 echo "${ECHO_T}$ac_header_preproc" >&6
14974 # So? What about this header?
14975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14981 ac_header_preproc=yes
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14998 ## ------------------------------------------ ##
14999 ## Report this to the AC_PACKAGE_NAME lists. ##
15000 ## ------------------------------------------ ##
15003 sed "s/^/$as_me: WARNING: /" >&2
15006 echo "$as_me:$LINENO: checking for $ac_header" >&5
15007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 eval "$as_ac_Header=\$ac_header_preproc"
15013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15018 cat >>confdefs.h <<_ACEOF
15019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15028 for ac_func in fork vfork
15030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15031 echo "$as_me:$LINENO: checking for $ac_func" >&5
15032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15033 if eval "test \"\${$as_ac_var+set}\" = set"; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15044 #define $ac_func innocuous_$ac_func
15046 /* System header to define __stub macros and hopefully few prototypes,
15047 which can conflict with char $ac_func (); below.
15048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15049 <limits.h> exists even on freestanding compilers. */
15052 # include <limits.h>
15054 # include <assert.h>
15059 /* Override any gcc2 internal prototype to avoid an error. */
15064 /* We use char because int might match the return type of a gcc2
15065 builtin and then its argument prototype would still apply. */
15067 /* The GNU C library defines this for functions which it implements
15068 to always fail with ENOSYS. Some functions are actually named
15069 something starting with __ and the normal name is an alias. */
15070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15073 char (*f) () = $ac_func;
15082 return f != $ac_func;
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15089 (eval $ac_link) 2>conftest.er1
15091 grep -v '^ *+' conftest.er1 >conftest.err
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest$ac_exeext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 eval "$as_ac_var=yes"
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 eval "$as_ac_var=no"
15115 rm -f conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15120 if test `eval echo '${'$as_ac_var'}'` = yes; then
15121 cat >>confdefs.h <<_ACEOF
15122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15128 if test "x$ac_cv_func_fork" = xyes; then
15129 echo "$as_me:$LINENO: checking for working fork" >&5
15130 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15131 if test "${ac_cv_func_fork_works+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 if test "$cross_compiling" = yes; then
15135 ac_cv_func_fork_works=cross
15137 cat >conftest.$ac_ext <<_ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 $ac_includes_default
15148 /* By Ruediger Kuhlmann. */
15157 rm -f conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_cv_func_fork_works=yes
15170 echo "$as_me: program exited with status $ac_status" >&5
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ( exit $ac_status )
15175 ac_cv_func_fork_works=no
15177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15180 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15181 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15184 ac_cv_func_fork_works=$ac_cv_func_fork
15186 if test "x$ac_cv_func_fork_works" = xcross; then
15188 *-*-amigaos* | *-*-msdosdjgpp*)
15189 # Override, as these systems have only a dummy fork() stub
15190 ac_cv_func_fork_works=no
15193 ac_cv_func_fork_works=yes
15196 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15197 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15199 ac_cv_func_vfork_works=$ac_cv_func_vfork
15200 if test "x$ac_cv_func_vfork" = xyes; then
15201 echo "$as_me:$LINENO: checking for working vfork" >&5
15202 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15203 if test "${ac_cv_func_vfork_works+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 if test "$cross_compiling" = yes; then
15207 ac_cv_func_vfork_works=cross
15209 cat >conftest.$ac_ext <<_ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 /* Thanks to Paul Eggert for this test. */
15217 #include <stdlib.h>
15218 #include <sys/types.h>
15219 #include <sys/stat.h>
15220 #include <sys/wait.h>
15222 # include <unistd.h>
15225 # include <vfork.h>
15227 /* On some sparc systems, changes by the child to local and incoming
15228 argument registers are propagated back to the parent. The compiler
15229 is told about this with #include <vfork.h>, but some compilers
15230 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15231 static variable whose address is put into a register that is
15232 clobbered by the vfork. */
15235 sparc_address_test (int arg)
15237 sparc_address_test (arg) int arg;
15240 static pid_t child;
15258 pid_t parent = getpid ();
15261 sparc_address_test (0);
15266 /* Here is another test for sparc vfork register problems. This
15267 test uses lots of local variables, at least as many local
15268 variables as main has allocated so far including compiler
15269 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15270 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15271 reuse the register of parent for one of the local variables,
15272 since it will think that parent can't possibly be used any more
15273 in this routine. Assigning to the local variable will thus
15274 munge parent in the parent process. */
15276 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15277 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15278 /* Convince the compiler that p..p7 are live; otherwise, it might
15279 use the same hardware register for all 8 local variables. */
15280 if (p != p1 || p != p2 || p != p3 || p != p4
15281 || p != p5 || p != p6 || p != p7)
15284 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15285 from child file descriptors. If the child closes a descriptor
15286 before it execs or exits, this munges the parent's descriptor
15287 as well. Test for this by closing stdout in the child. */
15288 _exit(close(fileno(stdout)) != 0);
15293 while (wait(&status) != child)
15296 /* Was there some problem with vforking? */
15299 /* Did the child fail? (This shouldn't happen.) */
15302 /* Did the vfork/compiler bug occur? */
15303 || parent != getpid()
15305 /* Did the file descriptor bug occur? */
15306 || fstat(fileno(stdout), &st) != 0
15311 rm -f conftest$ac_exeext
15312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15313 (eval $ac_link) 2>&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
15322 ac_cv_func_vfork_works=yes
15324 echo "$as_me: program exited with status $ac_status" >&5
15325 echo "$as_me: failed program was:" >&5
15326 sed 's/^/| /' conftest.$ac_ext >&5
15328 ( exit $ac_status )
15329 ac_cv_func_vfork_works=no
15331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15334 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15335 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15338 if test "x$ac_cv_func_fork_works" = xcross; then
15339 ac_cv_func_vfork_works=$ac_cv_func_vfork
15340 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15341 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15344 if test "x$ac_cv_func_vfork_works" = xyes; then
15346 cat >>confdefs.h <<\_ACEOF
15347 #define HAVE_WORKING_VFORK 1
15352 cat >>confdefs.h <<\_ACEOF
15357 if test "x$ac_cv_func_fork_works" = xyes; then
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_WORKING_FORK 1
15367 for ac_func in canonicalize_file_name realpath
15369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15370 echo "$as_me:$LINENO: checking for $ac_func" >&5
15371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15372 if eval "test \"\${$as_ac_var+set}\" = set"; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15383 #define $ac_func innocuous_$ac_func
15385 /* System header to define __stub macros and hopefully few prototypes,
15386 which can conflict with char $ac_func (); below.
15387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15388 <limits.h> exists even on freestanding compilers. */
15391 # include <limits.h>
15393 # include <assert.h>
15398 /* Override any gcc2 internal prototype to avoid an error. */
15403 /* We use char because int might match the return type of a gcc2
15404 builtin and then its argument prototype would still apply. */
15406 /* The GNU C library defines this for functions which it implements
15407 to always fail with ENOSYS. Some functions are actually named
15408 something starting with __ and the normal name is an alias. */
15409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15412 char (*f) () = $ac_func;
15421 return f != $ac_func;
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>conftest.er1
15430 grep -v '^ *+' conftest.er1 >conftest.err
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 eval "$as_ac_var=yes"
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 eval "$as_ac_var=no"
15454 rm -f conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15459 if test `eval echo '${'$as_ac_var'}'` = yes; then
15460 cat >>confdefs.h <<_ACEOF
15461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15469 for ac_func in getuid getgid
15471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15472 echo "$as_me:$LINENO: checking for $ac_func" >&5
15473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15474 if eval "test \"\${$as_ac_var+set}\" = set"; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 cat >conftest.$ac_ext <<_ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15485 #define $ac_func innocuous_$ac_func
15487 /* System header to define __stub macros and hopefully few prototypes,
15488 which can conflict with char $ac_func (); below.
15489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15490 <limits.h> exists even on freestanding compilers. */
15493 # include <limits.h>
15495 # include <assert.h>
15500 /* Override any gcc2 internal prototype to avoid an error. */
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15508 /* The GNU C library defines this for functions which it implements
15509 to always fail with ENOSYS. Some functions are actually named
15510 something starting with __ and the normal name is an alias. */
15511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15514 char (*f) () = $ac_func;
15523 return f != $ac_func;
15528 rm -f conftest.$ac_objext conftest$ac_exeext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>conftest.er1
15532 grep -v '^ *+' conftest.er1 >conftest.err
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest$ac_exeext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 eval "$as_ac_var=yes"
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 eval "$as_ac_var=no"
15556 rm -f conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
15559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15561 if test `eval echo '${'$as_ac_var'}'` = yes; then
15562 cat >>confdefs.h <<_ACEOF
15563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15570 for ac_func in poll
15572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15573 echo "$as_me:$LINENO: checking for $ac_func" >&5
15574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15575 if eval "test \"\${$as_ac_var+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 cat >conftest.$ac_ext <<_ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15586 #define $ac_func innocuous_$ac_func
15588 /* System header to define __stub macros and hopefully few prototypes,
15589 which can conflict with char $ac_func (); below.
15590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15591 <limits.h> exists even on freestanding compilers. */
15594 # include <limits.h>
15596 # include <assert.h>
15601 /* Override any gcc2 internal prototype to avoid an error. */
15606 /* We use char because int might match the return type of a gcc2
15607 builtin and then its argument prototype would still apply. */
15609 /* The GNU C library defines this for functions which it implements
15610 to always fail with ENOSYS. Some functions are actually named
15611 something starting with __ and the normal name is an alias. */
15612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15615 char (*f) () = $ac_func;
15624 return f != $ac_func;
15629 rm -f conftest.$ac_objext conftest$ac_exeext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631 (eval $ac_link) 2>conftest.er1
15633 grep -v '^ *+' conftest.er1 >conftest.err
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
15638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest$ac_exeext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 eval "$as_ac_var=yes"
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 eval "$as_ac_var=no"
15657 rm -f conftest.err conftest.$ac_objext \
15658 conftest$ac_exeext conftest.$ac_ext
15660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15662 if test `eval echo '${'$as_ac_var'}'` = yes; then
15663 cat >>confdefs.h <<_ACEOF
15664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15671 for ac_func in pread64
15673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15674 echo "$as_me:$LINENO: checking for $ac_func" >&5
15675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15676 if eval "test \"\${$as_ac_var+set}\" = set"; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 cat >conftest.$ac_ext <<_ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15687 #define $ac_func innocuous_$ac_func
15689 /* System header to define __stub macros and hopefully few prototypes,
15690 which can conflict with char $ac_func (); below.
15691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15692 <limits.h> exists even on freestanding compilers. */
15695 # include <limits.h>
15697 # include <assert.h>
15702 /* Override any gcc2 internal prototype to avoid an error. */
15707 /* We use char because int might match the return type of a gcc2
15708 builtin and then its argument prototype would still apply. */
15710 /* The GNU C library defines this for functions which it implements
15711 to always fail with ENOSYS. Some functions are actually named
15712 something starting with __ and the normal name is an alias. */
15713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15716 char (*f) () = $ac_func;
15725 return f != $ac_func;
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732 (eval $ac_link) 2>conftest.er1
15734 grep -v '^ *+' conftest.er1 >conftest.err
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; } &&
15745 { ac_try='test -s conftest$ac_exeext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 eval "$as_ac_var=yes"
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 eval "$as_ac_var=no"
15758 rm -f conftest.err conftest.$ac_objext \
15759 conftest$ac_exeext conftest.$ac_ext
15761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15763 if test `eval echo '${'$as_ac_var'}'` = yes; then
15764 cat >>confdefs.h <<_ACEOF
15765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15772 for ac_func in sbrk
15774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15775 echo "$as_me:$LINENO: checking for $ac_func" >&5
15776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15777 if eval "test \"\${$as_ac_var+set}\" = set"; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15788 #define $ac_func innocuous_$ac_func
15790 /* System header to define __stub macros and hopefully few prototypes,
15791 which can conflict with char $ac_func (); below.
15792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15793 <limits.h> exists even on freestanding compilers. */
15796 # include <limits.h>
15798 # include <assert.h>
15803 /* Override any gcc2 internal prototype to avoid an error. */
15808 /* We use char because int might match the return type of a gcc2
15809 builtin and then its argument prototype would still apply. */
15811 /* The GNU C library defines this for functions which it implements
15812 to always fail with ENOSYS. Some functions are actually named
15813 something starting with __ and the normal name is an alias. */
15814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15817 char (*f) () = $ac_func;
15826 return f != $ac_func;
15831 rm -f conftest.$ac_objext conftest$ac_exeext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15833 (eval $ac_link) 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
15840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest$ac_exeext'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 eval "$as_ac_var=yes"
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15857 eval "$as_ac_var=no"
15859 rm -f conftest.err conftest.$ac_objext \
15860 conftest$ac_exeext conftest.$ac_ext
15862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15864 if test `eval echo '${'$as_ac_var'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15874 for ac_func in setpgid setpgrp
15876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15877 echo "$as_me:$LINENO: checking for $ac_func" >&5
15878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15879 if eval "test \"\${$as_ac_var+set}\" = set"; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 cat >conftest.$ac_ext <<_ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15890 #define $ac_func innocuous_$ac_func
15892 /* System header to define __stub macros and hopefully few prototypes,
15893 which can conflict with char $ac_func (); below.
15894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15895 <limits.h> exists even on freestanding compilers. */
15898 # include <limits.h>
15900 # include <assert.h>
15905 /* Override any gcc2 internal prototype to avoid an error. */
15910 /* We use char because int might match the return type of a gcc2
15911 builtin and then its argument prototype would still apply. */
15913 /* The GNU C library defines this for functions which it implements
15914 to always fail with ENOSYS. Some functions are actually named
15915 something starting with __ and the normal name is an alias. */
15916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15919 char (*f) () = $ac_func;
15928 return f != $ac_func;
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935 (eval $ac_link) 2>conftest.er1
15937 grep -v '^ *+' conftest.er1 >conftest.err
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 eval "$as_ac_var=yes"
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 eval "$as_ac_var=no"
15961 rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966 if test `eval echo '${'$as_ac_var'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15977 for ac_func in sigaction sigprocmask sigsetmask
15979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15980 echo "$as_me:$LINENO: checking for $ac_func" >&5
15981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15982 if eval "test \"\${$as_ac_var+set}\" = set"; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15993 #define $ac_func innocuous_$ac_func
15995 /* System header to define __stub macros and hopefully few prototypes,
15996 which can conflict with char $ac_func (); below.
15997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15998 <limits.h> exists even on freestanding compilers. */
16001 # include <limits.h>
16003 # include <assert.h>
16008 /* Override any gcc2 internal prototype to avoid an error. */
16013 /* We use char because int might match the return type of a gcc2
16014 builtin and then its argument prototype would still apply. */
16016 /* The GNU C library defines this for functions which it implements
16017 to always fail with ENOSYS. Some functions are actually named
16018 something starting with __ and the normal name is an alias. */
16019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16022 char (*f) () = $ac_func;
16031 return f != $ac_func;
16036 rm -f conftest.$ac_objext conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038 (eval $ac_link) 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; } &&
16051 { ac_try='test -s conftest$ac_exeext'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 eval "$as_ac_var=yes"
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 eval "$as_ac_var=no"
16064 rm -f conftest.err conftest.$ac_objext \
16065 conftest$ac_exeext conftest.$ac_ext
16067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16069 if test `eval echo '${'$as_ac_var'}'` = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16078 for ac_func in socketpair
16080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16081 echo "$as_me:$LINENO: checking for $ac_func" >&5
16082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16083 if eval "test \"\${$as_ac_var+set}\" = set"; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16094 #define $ac_func innocuous_$ac_func
16096 /* System header to define __stub macros and hopefully few prototypes,
16097 which can conflict with char $ac_func (); below.
16098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16099 <limits.h> exists even on freestanding compilers. */
16102 # include <limits.h>
16104 # include <assert.h>
16109 /* Override any gcc2 internal prototype to avoid an error. */
16114 /* We use char because int might match the return type of a gcc2
16115 builtin and then its argument prototype would still apply. */
16117 /* The GNU C library defines this for functions which it implements
16118 to always fail with ENOSYS. Some functions are actually named
16119 something starting with __ and the normal name is an alias. */
16120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16123 char (*f) () = $ac_func;
16132 return f != $ac_func;
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16139 (eval $ac_link) 2>conftest.er1
16141 grep -v '^ *+' conftest.er1 >conftest.err
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest$ac_exeext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 eval "$as_ac_var=yes"
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 eval "$as_ac_var=no"
16165 rm -f conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16170 if test `eval echo '${'$as_ac_var'}'` = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16179 for ac_func in syscall
16181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16182 echo "$as_me:$LINENO: checking for $ac_func" >&5
16183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16184 if eval "test \"\${$as_ac_var+set}\" = set"; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 cat >conftest.$ac_ext <<_ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16195 #define $ac_func innocuous_$ac_func
16197 /* System header to define __stub macros and hopefully few prototypes,
16198 which can conflict with char $ac_func (); below.
16199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16200 <limits.h> exists even on freestanding compilers. */
16203 # include <limits.h>
16205 # include <assert.h>
16210 /* Override any gcc2 internal prototype to avoid an error. */
16215 /* We use char because int might match the return type of a gcc2
16216 builtin and then its argument prototype would still apply. */
16218 /* The GNU C library defines this for functions which it implements
16219 to always fail with ENOSYS. Some functions are actually named
16220 something starting with __ and the normal name is an alias. */
16221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16224 char (*f) () = $ac_func;
16233 return f != $ac_func;
16238 rm -f conftest.$ac_objext conftest$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240 (eval $ac_link) 2>conftest.er1
16242 grep -v '^ *+' conftest.er1 >conftest.err
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest$ac_exeext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 eval "$as_ac_var=yes"
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 eval "$as_ac_var=no"
16266 rm -f conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16271 if test `eval echo '${'$as_ac_var'}'` = yes; then
16272 cat >>confdefs.h <<_ACEOF
16273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16280 for ac_func in ttrace
16282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16283 echo "$as_me:$LINENO: checking for $ac_func" >&5
16284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16285 if eval "test \"\${$as_ac_var+set}\" = set"; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16296 #define $ac_func innocuous_$ac_func
16298 /* System header to define __stub macros and hopefully few prototypes,
16299 which can conflict with char $ac_func (); below.
16300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16301 <limits.h> exists even on freestanding compilers. */
16304 # include <limits.h>
16306 # include <assert.h>
16311 /* Override any gcc2 internal prototype to avoid an error. */
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16319 /* The GNU C library defines this for functions which it implements
16320 to always fail with ENOSYS. Some functions are actually named
16321 something starting with __ and the normal name is an alias. */
16322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16325 char (*f) () = $ac_func;
16334 return f != $ac_func;
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>conftest.er1
16343 grep -v '^ *+' conftest.er1 >conftest.err
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest$ac_exeext'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 eval "$as_ac_var=yes"
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16365 eval "$as_ac_var=no"
16367 rm -f conftest.err conftest.$ac_objext \
16368 conftest$ac_exeext conftest.$ac_ext
16370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16372 if test `eval echo '${'$as_ac_var'}'` = yes; then
16373 cat >>confdefs.h <<_ACEOF
16374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16381 for ac_func in wborder
16383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16384 echo "$as_me:$LINENO: checking for $ac_func" >&5
16385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16386 if eval "test \"\${$as_ac_var+set}\" = set"; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 cat >conftest.$ac_ext <<_ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16397 #define $ac_func innocuous_$ac_func
16399 /* System header to define __stub macros and hopefully few prototypes,
16400 which can conflict with char $ac_func (); below.
16401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16402 <limits.h> exists even on freestanding compilers. */
16405 # include <limits.h>
16407 # include <assert.h>
16412 /* Override any gcc2 internal prototype to avoid an error. */
16417 /* We use char because int might match the return type of a gcc2
16418 builtin and then its argument prototype would still apply. */
16420 /* The GNU C library defines this for functions which it implements
16421 to always fail with ENOSYS. Some functions are actually named
16422 something starting with __ and the normal name is an alias. */
16423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16426 char (*f) () = $ac_func;
16435 return f != $ac_func;
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442 (eval $ac_link) 2>conftest.er1
16444 grep -v '^ *+' conftest.er1 >conftest.err
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
16449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest$ac_exeext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 eval "$as_ac_var=yes"
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 eval "$as_ac_var=no"
16468 rm -f conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16473 if test `eval echo '${'$as_ac_var'}'` = yes; then
16474 cat >>confdefs.h <<_ACEOF
16475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16482 # Check the return and argument types of ptrace. No canned test for
16483 # this, so roll our own.
16484 gdb_ptrace_headers='
16485 #if HAVE_SYS_TYPES_H
16486 # include <sys/types.h>
16488 #if HAVE_SYS_PTRACE_H
16489 # include <sys/ptrace.h>
16492 # include <unistd.h>
16495 # There is no point in checking if we don't have a prototype.
16496 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16497 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16498 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 cat >conftest.$ac_ext <<_ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16507 $gdb_ptrace_headers
16513 char *p = (char *) ptrace;
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522 (eval $ac_compile) 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_cv_have_decl_ptrace=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_cv_have_decl_ptrace=no
16548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16550 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16551 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16552 if test $ac_cv_have_decl_ptrace = yes; then
16554 cat >>confdefs.h <<_ACEOF
16555 #define HAVE_DECL_PTRACE 1
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_DECL_PTRACE 0
16565 : ${gdb_cv_func_ptrace_ret='int'}
16566 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16571 # Check return type.
16572 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16573 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16574 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 cat >conftest.$ac_ext <<_ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16583 $gdb_ptrace_headers
16587 extern int ptrace ();
16592 rm -f conftest.$ac_objext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16594 (eval $ac_compile) 2>conftest.er1
16596 grep -v '^ *+' conftest.er1 >conftest.err
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
16601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 gdb_cv_func_ptrace_ret='int'
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 gdb_cv_func_ptrace_ret='long'
16620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16622 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16623 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16625 cat >>confdefs.h <<_ACEOF
16626 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16629 # Check argument types.
16630 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16631 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16632 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 for gdb_arg1 in 'int' 'long'; do
16637 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16638 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16639 for gdb_arg4 in 'int' 'long'; do
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 $gdb_ptrace_headers
16651 extern $gdb_cv_func_ptrace_ret
16652 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660 (eval $ac_compile) 2>conftest.er1
16662 grep -v '^ *+' conftest.er1 >conftest.err
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
16667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16687 for gdb_arg5 in 'int *' 'int' 'long'; do
16688 cat >conftest.$ac_ext <<_ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 $gdb_ptrace_headers
16699 extern $gdb_cv_func_ptrace_ret
16700 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16706 rm -f conftest.$ac_objext
16707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16708 (eval $ac_compile) 2>conftest.er1
16710 grep -v '^ *+' conftest.er1 >conftest.err
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16728 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16741 # Provide a safe default value.
16742 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16745 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16746 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16747 ac_save_IFS=$IFS; IFS=','
16748 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16752 cat >>confdefs.h <<_ACEOF
16753 #define PTRACE_TYPE_ARG3 $3
16756 if test -n "$5"; then
16758 cat >>confdefs.h <<_ACEOF
16759 #define PTRACE_TYPE_ARG5 $5
16764 if test "$cross_compiling" = no; then
16765 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16766 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16767 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 if test "$cross_compiling" = yes; then
16771 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16772 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16773 { (exit 1); exit 1; }; }
16775 cat >conftest.$ac_ext <<_ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16782 # include <unistd.h>
16788 /* If this system has a BSD-style setpgrp which takes arguments,
16789 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16790 exit successfully. */
16791 exit (setpgrp (1,1) == -1 ? 0 : 1);
16796 rm -f conftest$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_func_setpgrp_void=no
16809 echo "$as_me: program exited with status $ac_status" >&5
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 ( exit $ac_status )
16814 ac_cv_func_setpgrp_void=yes
16816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16819 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16820 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16821 if test $ac_cv_func_setpgrp_void = yes; then
16823 cat >>confdefs.h <<\_ACEOF
16824 #define SETPGRP_VOID 1
16830 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16831 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16832 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16842 #include <unistd.h>
16848 if (setpgrp(1,1) == -1)
16857 rm -f conftest.$ac_objext
16858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859 (eval $ac_compile) 2>conftest.er1
16861 grep -v '^ *+' conftest.er1 >conftest.err
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_cv_func_setpgrp_void=no
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 ac_cv_func_setpgrp_void=yes
16885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16887 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16888 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16889 if test $ac_cv_func_setpgrp_void = yes; then
16890 cat >>confdefs.h <<\_ACEOF
16891 #define SETPGRP_VOID 1
16897 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16898 # since sigsetjmp might only be defined as a macro.
16899 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16900 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16901 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 cat >conftest.$ac_ext <<_ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16911 #include <setjmp.h>
16916 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16921 rm -f conftest.$ac_objext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923 (eval $ac_compile) 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; } &&
16936 { ac_try='test -s conftest.$ac_objext'
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
16942 gdb_cv_func_sigsetjmp=yes
16944 echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16947 gdb_cv_func_sigsetjmp=no
16949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16952 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16953 if test $gdb_cv_func_sigsetjmp = yes; then
16955 cat >>confdefs.h <<\_ACEOF
16956 #define HAVE_SIGSETJMP 1
16961 # Assume we'll default to using the included libiberty regex.
16962 gdb_use_included_regex=yes
16964 # However, if the system regex is GNU regex, then default to *not*
16965 # using the included regex.
16966 echo "$as_me:$LINENO: checking for GNU regex" >&5
16967 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16968 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 #include <gnu-versions.h>
16981 #define REGEX_INTERFACE_VERSION 1
16982 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16983 # error "Version mismatch"
16989 rm -f conftest.$ac_objext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16991 (eval $ac_compile) 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
16998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 gdb_cv_have_gnu_regex=yes
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17015 gdb_cv_have_gnu_regex=no
17017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17019 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17020 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17021 if test $gdb_cv_have_gnu_regex = yes; then
17022 gdb_use_included_regex=no
17026 # Check whether --with-included-regex or --without-included-regex was given.
17027 if test "${with_included_regex+set}" = set; then
17028 withval="$with_included_regex"
17029 gdb_with_regex=$withval
17031 gdb_with_regex=$gdb_use_included_regex
17033 if test "$gdb_with_regex" = yes; then
17035 cat >>confdefs.h <<\_ACEOF
17036 #define USE_INCLUDED_REGEX 1
17041 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17042 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17043 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17044 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 cat >conftest.$ac_ext <<_ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 #include <sys/param.h>
17054 #include <sys/proc.h>
17060 static struct thread ac_aggr;
17061 if (ac_aggr.td_pcb)
17067 rm -f conftest.$ac_objext
17068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17069 (eval $ac_compile) 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 ac_cv_member_struct_thread_td_pcb=yes
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17093 cat >conftest.$ac_ext <<_ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 #include <sys/param.h>
17100 #include <sys/proc.h>
17106 static struct thread ac_aggr;
17107 if (sizeof ac_aggr.td_pcb)
17113 rm -f conftest.$ac_objext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115 (eval $ac_compile) 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; } &&
17128 { ac_try='test -s conftest.$ac_objext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_cv_member_struct_thread_td_pcb=yes
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ac_cv_member_struct_thread_td_pcb=no
17141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17145 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17146 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17147 if test $ac_cv_member_struct_thread_td_pcb = yes; then
17149 cat >>confdefs.h <<_ACEOF
17150 #define HAVE_STRUCT_THREAD_TD_PCB 1
17157 # See if <sys/lwp.h> defines `struct lwp`.
17158 echo "$as_me:$LINENO: checking for struct lwp" >&5
17159 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17160 if test "${gdb_cv_struct_lwp+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 #include <sys/param.h>
17170 #include <sys/lwp.h>
17179 rm -f conftest.$ac_objext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17181 (eval $ac_compile) 2>conftest.er1
17183 grep -v '^ *+' conftest.er1 >conftest.err
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest.$ac_objext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 gdb_cv_struct_lwp=yes
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 gdb_cv_struct_lwp=no
17207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17209 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17210 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17211 if test $gdb_cv_struct_lwp = yes; then
17213 cat >>confdefs.h <<\_ACEOF
17214 #define HAVE_STRUCT_LWP 1
17219 # See if <machine/reg.h> degines `struct reg'.
17220 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17221 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17222 if test "${gdb_cv_struct_reg+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 #include <sys/types.h>
17232 #include <machine/reg.h>
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17245 grep -v '^ *+' conftest.er1 >conftest.err
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest.$ac_objext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 gdb_cv_struct_reg=yes
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 gdb_cv_struct_reg=no
17269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17271 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17272 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17273 if test $gdb_cv_struct_reg = yes; then
17275 cat >>confdefs.h <<\_ACEOF
17276 #define HAVE_STRUCT_REG 1
17281 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17282 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
17283 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17284 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17285 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 cat >conftest.$ac_ext <<_ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 #include <machine/reg.h>
17299 static struct reg ac_aggr;
17306 rm -f conftest.$ac_objext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308 (eval $ac_compile) 2>conftest.er1
17310 grep -v '^ *+' conftest.er1 >conftest.err
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; } &&
17321 { ac_try='test -s conftest.$ac_objext'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_member_struct_reg_r_fs=yes
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 cat >conftest.$ac_ext <<_ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 #include <machine/reg.h>
17343 static struct reg ac_aggr;
17344 if (sizeof ac_aggr.r_fs)
17350 rm -f conftest.$ac_objext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17352 (eval $ac_compile) 2>conftest.er1
17354 grep -v '^ *+' conftest.er1 >conftest.err
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } &&
17359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest.$ac_objext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ac_cv_member_struct_reg_r_fs=yes
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ac_cv_member_struct_reg_r_fs=no
17378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17383 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17384 if test $ac_cv_member_struct_reg_r_fs = yes; then
17386 cat >>confdefs.h <<_ACEOF
17387 #define HAVE_STRUCT_REG_R_FS 1
17392 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17393 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17394 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17395 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 #include <machine/reg.h>
17408 static struct reg ac_aggr;
17415 rm -f conftest.$ac_objext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417 (eval $ac_compile) 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try='test -s conftest.$ac_objext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_member_struct_reg_r_gs=yes
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 cat >conftest.$ac_ext <<_ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447 #include <machine/reg.h>
17452 static struct reg ac_aggr;
17453 if (sizeof ac_aggr.r_gs)
17459 rm -f conftest.$ac_objext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461 (eval $ac_compile) 2>conftest.er1
17463 grep -v '^ *+' conftest.er1 >conftest.err
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest.$ac_objext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_member_struct_reg_r_gs=yes
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 ac_cv_member_struct_reg_r_gs=no
17487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17491 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17492 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17493 if test $ac_cv_member_struct_reg_r_gs = yes; then
17495 cat >>confdefs.h <<_ACEOF
17496 #define HAVE_STRUCT_REG_R_GS 1
17503 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17504 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17505 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17506 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 #include <sys/ptrace.h>
17524 rm -f conftest.$ac_objext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17526 (eval $ac_compile) 2>conftest.er1
17528 grep -v '^ *+' conftest.er1 >conftest.err
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 gdb_cv_have_ptrace_getregs=yes
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 gdb_cv_have_ptrace_getregs=no
17552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17555 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17556 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17557 if test $gdb_cv_have_ptrace_getregs = yes; then
17559 cat >>confdefs.h <<\_ACEOF
17560 #define HAVE_PTRACE_GETREGS 1
17565 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17566 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17567 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17568 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 cat >conftest.$ac_ext <<_ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17577 #include <sys/ptrace.h>
17586 rm -f conftest.$ac_objext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest.$ac_objext'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 gdb_cv_have_ptrace_getfpxregs=yes
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17612 gdb_cv_have_ptrace_getfpxregs=no
17614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17617 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17618 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17619 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17621 cat >>confdefs.h <<\_ACEOF
17622 #define HAVE_PTRACE_GETFPXREGS 1
17627 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17628 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17629 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17630 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 cat >conftest.$ac_ext <<_ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 #include <sys/types.h>
17640 #include <sys/ptrace.h>
17649 rm -f conftest.$ac_objext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17651 (eval $ac_compile) 2>conftest.er1
17653 grep -v '^ *+' conftest.er1 >conftest.err
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 gdb_cv_have_pt_getdbregs=yes
17672 echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17675 gdb_cv_have_pt_getdbregs=no
17677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17680 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17681 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17682 if test $gdb_cv_have_pt_getdbregs = yes; then
17684 cat >>confdefs.h <<\_ACEOF
17685 #define HAVE_PT_GETDBREGS 1
17690 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17691 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17692 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17693 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 cat >conftest.$ac_ext <<_ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 #include <sys/types.h>
17703 #include <sys/ptrace.h>
17712 rm -f conftest.$ac_objext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714 (eval $ac_compile) 2>conftest.er1
17716 grep -v '^ *+' conftest.er1 >conftest.err
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; } &&
17727 { ac_try='test -s conftest.$ac_objext'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 gdb_cv_have_pt_getxmmregs=yes
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17738 gdb_cv_have_pt_getxmmregs=no
17740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17743 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17744 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17745 if test $gdb_cv_have_pt_getxmmregs = yes; then
17747 cat >>confdefs.h <<\_ACEOF
17748 #define HAVE_PT_GETXMMREGS 1
17753 # If we are configured native on GNU/Linux, work around problems with
17755 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17757 if test "${target}" = "${host}"; then
17759 i[3456]86-*-linux*)
17761 cat >>confdefs.h <<\_ACEOF
17762 #define START_INFERIOR_TRAPS_EXPECTED 2
17766 cat >>confdefs.h <<\_ACEOF
17767 #define sys_quotactl 1
17771 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17773 cat >>confdefs.h <<\_ACEOF
17774 #define NEW_PROC_API 1
17778 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17780 cat >>confdefs.h <<\_ACEOF
17781 #define NEW_PROC_API 1
17786 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17788 cat >>confdefs.h <<\_ACEOF
17789 #define _KMEMUSER 1
17796 if test "$ac_cv_header_sys_procfs_h" = yes; then
17797 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17798 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17799 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 cat >conftest.$ac_ext <<_ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17810 #include <sys/procfs.h>
17819 rm -f conftest.$ac_objext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821 (eval $ac_compile) 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest.$ac_objext'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 bfd_cv_have_sys_procfs_type_pstatus_t=no
17848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17851 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_PSTATUS_T 1
17858 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17859 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17861 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17862 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17863 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17874 #include <sys/procfs.h>
17883 rm -f conftest.$ac_objext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17885 (eval $ac_compile) 2>conftest.er1
17887 grep -v '^ *+' conftest.er1 >conftest.err
17889 cat conftest.err >&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest.$ac_objext'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 bfd_cv_have_sys_procfs_type_prrun_t=yes
17906 echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17909 bfd_cv_have_sys_procfs_type_prrun_t=no
17912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17915 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17917 cat >>confdefs.h <<\_ACEOF
17918 #define HAVE_PRRUN_T 1
17922 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17923 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17925 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17926 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17927 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 cat >conftest.$ac_ext <<_ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17938 #include <sys/procfs.h>
17947 rm -f conftest.$ac_objext
17948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17949 (eval $ac_compile) 2>conftest.er1
17951 grep -v '^ *+' conftest.er1 >conftest.err
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 bfd_cv_have_sys_procfs_type_gregset_t=yes
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 bfd_cv_have_sys_procfs_type_gregset_t=no
17976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17979 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17981 cat >>confdefs.h <<\_ACEOF
17982 #define HAVE_GREGSET_T 1
17986 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17987 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17989 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17990 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17991 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 cat >conftest.$ac_ext <<_ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18002 #include <sys/procfs.h>
18011 rm -f conftest.$ac_objext
18012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18013 (eval $ac_compile) 2>conftest.er1
18015 grep -v '^ *+' conftest.er1 >conftest.err
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest.$ac_objext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18032 bfd_cv_have_sys_procfs_type_fpregset_t=yes
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 bfd_cv_have_sys_procfs_type_fpregset_t=no
18040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18043 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
18045 cat >>confdefs.h <<\_ACEOF
18046 #define HAVE_FPREGSET_T 1
18050 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18051 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
18053 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18054 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18055 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 cat >conftest.$ac_ext <<_ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18066 #include <sys/procfs.h>
18075 rm -f conftest.$ac_objext
18076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18077 (eval $ac_compile) 2>conftest.er1
18079 grep -v '^ *+' conftest.er1 >conftest.err
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
18084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest.$ac_objext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 bfd_cv_have_sys_procfs_type_prgregset_t=yes
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101 bfd_cv_have_sys_procfs_type_prgregset_t=no
18104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18107 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
18109 cat >>confdefs.h <<\_ACEOF
18110 #define HAVE_PRGREGSET_T 1
18114 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18115 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
18117 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18118 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18119 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 cat >conftest.$ac_ext <<_ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18130 #include <sys/procfs.h>
18139 rm -f conftest.$ac_objext
18140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18141 (eval $ac_compile) 2>conftest.er1
18143 grep -v '^ *+' conftest.er1 >conftest.err
18145 cat conftest.err >&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
18148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 bfd_cv_have_sys_procfs_type_prfpregset_t=no
18168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18171 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18173 cat >>confdefs.h <<\_ACEOF
18174 #define HAVE_PRFPREGSET_T 1
18178 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18179 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
18181 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18182 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18183 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 cat >conftest.$ac_ext <<_ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18194 #include <sys/procfs.h>
18203 rm -f conftest.$ac_objext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205 (eval $ac_compile) 2>conftest.er1
18207 grep -v '^ *+' conftest.er1 >conftest.err
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest.$ac_objext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 bfd_cv_have_sys_procfs_type_prgregset32_t=no
18232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18235 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18237 cat >>confdefs.h <<\_ACEOF
18238 #define HAVE_PRGREGSET32_T 1
18242 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18243 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18245 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18246 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18247 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18258 #include <sys/procfs.h>
18262 prfpregset32_t avar
18267 rm -f conftest.$ac_objext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>conftest.er1
18271 grep -v '^ *+' conftest.er1 >conftest.err
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest.$ac_objext'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18288 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18293 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18299 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_PRFPREGSET32_T 1
18306 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18307 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18309 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18310 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18311 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18312 echo $ECHO_N "(cached) $ECHO_C" >&6
18314 cat >conftest.$ac_ext <<_ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18322 #include <sys/procfs.h>
18331 rm -f conftest.$ac_objext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333 (eval $ac_compile) 2>conftest.er1
18335 grep -v '^ *+' conftest.er1 >conftest.err
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest.$ac_objext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 bfd_cv_have_sys_procfs_type_lwpid_t=no
18360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18363 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18365 cat >>confdefs.h <<\_ACEOF
18366 #define HAVE_LWPID_T 1
18370 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18371 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18373 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18374 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18375 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18386 #include <sys/procfs.h>
18395 rm -f conftest.$ac_objext
18396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18397 (eval $ac_compile) 2>conftest.er1
18399 grep -v '^ *+' conftest.er1 >conftest.err
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } &&
18404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest.$ac_objext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18421 bfd_cv_have_sys_procfs_type_psaddr_t=no
18424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18427 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18429 cat >>confdefs.h <<\_ACEOF
18430 #define HAVE_PSADDR_T 1
18434 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18435 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18437 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18438 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18439 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 cat >conftest.$ac_ext <<_ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h. */
18450 #include <sys/procfs.h>
18459 rm -f conftest.$ac_objext
18460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18461 (eval $ac_compile) 2>conftest.er1
18463 grep -v '^ *+' conftest.er1 >conftest.err
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest.$ac_objext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 bfd_cv_have_sys_procfs_type_prsysent_t=no
18488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18491 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18493 cat >>confdefs.h <<\_ACEOF
18494 #define HAVE_PRSYSENT_T 1
18498 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18499 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18501 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18502 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18503 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18514 #include <sys/procfs.h>
18523 rm -f conftest.$ac_objext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18525 (eval $ac_compile) 2>conftest.er1
18527 grep -v '^ *+' conftest.er1 >conftest.err
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; } &&
18538 { ac_try='test -s conftest.$ac_objext'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18549 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18555 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_PR_SIGSET_T 1
18562 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18563 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18565 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18566 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18567 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18578 #include <sys/procfs.h>
18582 pr_sigaction64_t avar
18587 rm -f conftest.$ac_objext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589 (eval $ac_compile) 2>conftest.er1
18591 grep -v '^ *+' conftest.er1 >conftest.err
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest.$ac_objext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18610 echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18619 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE_PR_SIGACTION64_T 1
18626 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18627 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18629 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18630 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18631 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 cat >conftest.$ac_ext <<_ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18642 #include <sys/procfs.h>
18646 pr_siginfo64_t avar
18651 rm -f conftest.$ac_objext
18652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18653 (eval $ac_compile) 2>conftest.er1
18655 grep -v '^ *+' conftest.er1 >conftest.err
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } &&
18660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest.$ac_objext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18674 echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18677 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18683 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18685 cat >>confdefs.h <<\_ACEOF
18686 #define HAVE_PR_SIGINFO64_T 1
18690 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18691 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18697 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18698 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18699 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18700 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 if test "$cross_compiling" = yes; then
18704 gdb_cv_prfpregset_t_broken=yes
18706 cat >conftest.$ac_ext <<_ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h. */
18712 #include <sys/procfs.h>
18715 if (sizeof (prfpregset_t) == sizeof (void *))
18720 rm -f conftest$ac_exeext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722 (eval $ac_link) 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 gdb_cv_prfpregset_t_broken=no
18733 echo "$as_me: program exited with status $ac_status" >&5
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18737 ( exit $ac_status )
18738 gdb_cv_prfpregset_t_broken=yes
18740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18744 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18745 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18746 if test $gdb_cv_prfpregset_t_broken = yes; then
18748 cat >>confdefs.h <<\_ACEOF
18749 #define PRFPREGSET_T_BROKEN 1
18756 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18757 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18758 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 cat >conftest.$ac_ext <<_ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18767 #include <unistd.h>
18768 #include <sys/types.h>
18769 #include <sys/procfs.h>
18776 dummy = ioctl(0, PIOCSET, &dummy);
18782 rm -f conftest.$ac_objext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18784 (eval $ac_compile) 2>conftest.er1
18786 grep -v '^ *+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
18791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; } &&
18797 { ac_try='test -s conftest.$ac_objext'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
18803 gdb_cv_have_procfs_piocset=yes
18805 echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18808 gdb_cv_have_procfs_piocset=no
18810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18813 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18814 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18815 if test $gdb_cv_have_procfs_piocset = yes; then
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_PROCFS_PIOCSET 1
18824 if test ${host} = ${target} ; then
18826 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18827 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18828 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18841 struct link_map lm; (void) lm.l_addr;
18846 rm -f conftest.$ac_objext
18847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18848 (eval $ac_compile) 2>conftest.er1
18850 grep -v '^ *+' conftest.er1 >conftest.err
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
18855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; } &&
18861 { ac_try='test -s conftest.$ac_objext'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18867 gdb_cv_have_struct_link_map_with_l_members=yes
18869 echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18872 gdb_cv_have_struct_link_map_with_l_members=no
18874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18877 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18878 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18879 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18888 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18889 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18890 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 #include <sys/types.h>
18904 struct link_map lm; (void) lm.lm_addr;
18909 rm -f conftest.$ac_objext
18910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911 (eval $ac_compile) 2>conftest.er1
18913 grep -v '^ *+' conftest.er1 >conftest.err
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } &&
18918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest.$ac_objext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 gdb_cv_have_struct_link_map_with_lm_members=yes
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 gdb_cv_have_struct_link_map_with_lm_members=no
18937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18940 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18941 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18942 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18944 cat >>confdefs.h <<\_ACEOF
18945 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18951 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18952 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18953 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962 #include <sys/types.h>
18963 #ifdef HAVE_NLIST_H
18970 struct so_map lm; (void) lm.som_addr;
18975 rm -f conftest.$ac_objext
18976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18977 (eval $ac_compile) 2>conftest.er1
18979 grep -v '^ *+' conftest.er1 >conftest.err
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; } &&
18990 { ac_try='test -s conftest.$ac_objext'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
18996 gdb_cv_have_struct_so_map_with_som_members=yes
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 gdb_cv_have_struct_so_map_with_som_members=no
19003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19006 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19007 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
19008 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
19017 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19018 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19019 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 cat >conftest.$ac_ext <<_ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19029 #include <sys/link.h>
19033 struct link_map32 l;
19038 rm -f conftest.$ac_objext
19039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19040 (eval $ac_compile) 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; } &&
19053 { ac_try='test -s conftest.$ac_objext'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
19059 gdb_cv_have_struct_link_map32=yes
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 gdb_cv_have_struct_link_map32=no
19066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19069 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19070 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
19071 if test $gdb_cv_have_struct_link_map32 = yes; then
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE_STRUCT_LINK_MAP32 1
19078 cat >>confdefs.h <<\_ACEOF
19079 #define _SYSCALL32 1
19085 # Check if the compiler supports the `long long' type.
19087 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19088 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19089 if test "${gdb_cv_c_long_long+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 cat >conftest.$ac_ext <<_ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19098 extern long long foo;
19102 switch (foo & 2) { case 0: return 1; }
19107 rm -f conftest.$ac_objext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109 (eval $ac_compile) 2>conftest.er1
19111 grep -v '^ *+' conftest.er1 >conftest.err
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
19116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; } &&
19122 { ac_try='test -s conftest.$ac_objext'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 gdb_cv_c_long_long=yes
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 gdb_cv_c_long_long=no
19135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19137 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19138 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
19139 if test $gdb_cv_c_long_long = yes; then
19141 cat >>confdefs.h <<\_ACEOF
19142 #define CC_HAS_LONG_LONG 1
19147 # Check if the compiler and runtime support printing long longs.
19149 echo "$as_me:$LINENO: checking for long long support in printf" >&5
19150 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19151 if test "${gdb_cv_printf_has_long_long+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 if test "$cross_compiling" = yes; then
19155 gdb_cv_printf_has_long_long=no
19157 cat >conftest.$ac_ext <<_ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19163 $ac_includes_default
19169 l = (l << 16) + 0x0123;
19170 l = (l << 16) + 0x4567;
19171 l = (l << 16) + 0x89ab;
19172 l = (l << 16) + 0xcdef;
19173 sprintf (buf, "0x%016llx", l);
19174 return (strcmp ("0x0123456789abcdef", buf));
19179 rm -f conftest$ac_exeext
19180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 gdb_cv_printf_has_long_long=yes
19192 echo "$as_me: program exited with status $ac_status" >&5
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ( exit $ac_status )
19197 gdb_cv_printf_has_long_long=no
19199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19202 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19203 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
19204 if test $gdb_cv_printf_has_long_long = yes; then
19206 cat >>confdefs.h <<\_ACEOF
19207 #define PRINTF_HAS_LONG_LONG 1
19212 # Check if the compiler supports the `long double' type. We can't use
19213 # AC_C_LONG_DOUBLE because that one does additional checks on the
19214 # constants defined in <float.h> that fail on some systems,
19215 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
19217 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19218 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19219 if test "${gdb_cv_c_long_double+set}" = set; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 cat >conftest.$ac_ext <<_ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19230 rm -f conftest.$ac_objext
19231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232 (eval $ac_compile) 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 gdb_cv_c_long_double=yes
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 gdb_cv_c_long_double=no
19258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19260 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19261 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19262 if test $gdb_cv_c_long_double = yes; then
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_LONG_DOUBLE 1
19270 # Check if the compiler and runtime support printing long doubles.
19272 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19273 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19274 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 if test "$cross_compiling" = yes; then
19278 gdb_cv_printf_has_long_double=no
19280 cat >conftest.$ac_ext <<_ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h. */
19286 $ac_includes_default
19291 long double f = 3.141592653;
19292 sprintf (buf, "%Lg", f);
19293 return (strncmp ("3.14159", buf, 7));
19298 rm -f conftest$ac_exeext
19299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300 (eval $ac_link) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 gdb_cv_printf_has_long_double=yes
19311 echo "$as_me: program exited with status $ac_status" >&5
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ( exit $ac_status )
19316 gdb_cv_printf_has_long_double=no
19318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19321 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19322 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19323 if test $gdb_cv_printf_has_long_double = yes; then
19325 cat >>confdefs.h <<\_ACEOF
19326 #define PRINTF_HAS_LONG_DOUBLE 1
19331 # Check if the compiler and runtime support scanning long doubles.
19333 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19334 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19335 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 if test "$cross_compiling" = yes; then
19339 gdb_cv_scanf_has_long_double=no
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19351 char *buf = "3.141592653";
19353 sscanf (buf, "%Lg", &f);
19354 return !(f > 3.14159 && f < 3.14160);
19359 rm -f conftest$ac_exeext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19361 (eval $ac_link) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 gdb_cv_scanf_has_long_double=yes
19372 echo "$as_me: program exited with status $ac_status" >&5
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19376 ( exit $ac_status )
19377 gdb_cv_scanf_has_long_double=no
19379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19382 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19383 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19384 if test $gdb_cv_scanf_has_long_double = yes; then
19386 cat >>confdefs.h <<\_ACEOF
19387 #define SCANF_HAS_LONG_DOUBLE 1
19394 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19395 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19396 if test "${gdb_cv_bigtoc+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 SAVE_LDFLAGS=$LDFLAGS
19403 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19404 *) gdb_cv_bigtoc=-bbigtoc ;;
19407 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19425 (eval $ac_link) 2>conftest.er1
19427 grep -v '^ *+' conftest.er1 >conftest.err
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest$ac_exeext'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19451 rm -f conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19453 LDFLAGS="${SAVE_LDFLAGS}"
19456 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19457 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19458 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19464 if test ${build} = ${host} -a ${host} = ${target} ; then
19467 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19468 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19469 if test -f /usr/include/dce/cma_config.h ; then
19470 if test "$GCC" = "yes" ; then
19471 echo "$as_me:$LINENO: result: yes" >&5
19472 echo "${ECHO_T}yes" >&6
19474 cat >>confdefs.h <<\_ACEOF
19475 #define HAVE_HPUX_THREAD_SUPPORT 1
19478 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19479 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19481 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19482 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19485 echo "$as_me:$LINENO: result: no" >&5
19486 echo "${ECHO_T}no" >&6
19490 # See if thread_db library is around for Solaris thread debugging.
19491 # Note that we must explicitly test for version 1 of the library
19492 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19494 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19495 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19496 if test -f /usr/lib/libthread_db.so.1 ; then
19497 echo "$as_me:$LINENO: result: yes" >&5
19498 echo "${ECHO_T}yes" >&6
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE_THREAD_DB_LIB 1
19504 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19505 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19507 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19508 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19509 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 ac_check_lib_save_LIBS=$LIBS
19514 cat >conftest.$ac_ext <<_ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19521 /* Override any gcc2 internal prototype to avoid an error. */
19525 /* We use char because int might match the return type of a gcc2
19526 builtin and then its argument prototype would still apply. */
19536 rm -f conftest.$ac_objext conftest$ac_exeext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19538 (eval $ac_link) 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; } &&
19551 { ac_try='test -s conftest$ac_exeext'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 ac_cv_lib_dl_dlopen=yes
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 ac_cv_lib_dl_dlopen=no
19564 rm -f conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
19566 LIBS=$ac_check_lib_save_LIBS
19568 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19569 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19570 if test $ac_cv_lib_dl_dlopen = yes; then
19571 cat >>confdefs.h <<_ACEOF
19572 #define HAVE_LIBDL 1
19579 if test "$GCC" = "yes" ; then
19580 # The GNU linker requires the -export-dynamic option to make
19581 # all symbols visible in the dynamic symbol table.
19582 hold_ldflags=$LDFLAGS
19583 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19584 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19585 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19601 rm -f conftest.$ac_objext conftest$ac_exeext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19603 (eval $ac_link) 2>conftest.er1
19605 grep -v '^ *+' conftest.er1 >conftest.err
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } &&
19616 { ac_try='test -s conftest$ac_exeext'
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19629 rm -f conftest.err conftest.$ac_objext \
19630 conftest$ac_exeext conftest.$ac_ext
19631 LDFLAGS=$hold_ldflags
19632 echo "$as_me:$LINENO: result: $found" >&5
19633 echo "${ECHO_T}$found" >&6
19634 if test $found = yes; then
19635 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19638 # Sun randomly tweaked the prototypes in <proc_service.h>
19640 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19641 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19642 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19653 #include <proc_service.h>
19654 ps_err_e ps_pdwrite
19655 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>conftest.er1
19669 grep -v '^ *+' conftest.er1 >conftest.err
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; } &&
19680 { ac_try='test -s conftest.$ac_objext'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; }; then
19686 gdb_cv_proc_service_is_old=no
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 gdb_cv_proc_service_is_old=yes
19693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19697 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19698 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19699 if test $gdb_cv_proc_service_is_old = yes; then
19701 cat >>confdefs.h <<\_ACEOF
19702 #define PROC_SERVICE_IS_OLD 1
19707 echo "$as_me:$LINENO: result: no" >&5
19708 echo "${ECHO_T}no" >&6
19712 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19713 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19714 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 #include <sys/pthdebug.h>
19727 #ifndef PTHDB_VERSION_3
19734 rm -f conftest.$ac_objext
19735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19736 (eval $ac_compile) 2>conftest.er1
19738 grep -v '^ *+' conftest.er1 >conftest.err
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
19743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 gdb_cv_have_aix_thread_debug=yes
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 gdb_cv_have_aix_thread_debug=no
19762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19765 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19766 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19767 if test $gdb_cv_have_aix_thread_debug = yes; then
19768 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19769 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19770 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19777 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19778 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19779 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19780 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 cat >conftest.$ac_ext <<_ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 #include <thread_db.h>
19793 int i = TD_NOTALLOC;
19798 rm -f conftest.$ac_objext
19799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19800 (eval $ac_compile) 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest.$ac_objext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 gdb_cv_thread_db_h_has_td_notalloc=yes
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 gdb_cv_thread_db_h_has_td_notalloc=no
19827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19830 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19831 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19833 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19835 cat >>confdefs.h <<\_ACEOF
19836 #define THREAD_DB_HAS_TD_NOTALLOC 1
19841 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19842 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19843 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19844 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 #include <sys/syscall.h>
19857 int i = __NR_tkill;
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 gdb_cv_sys_syscall_h_has_tkill=yes
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 gdb_cv_sys_syscall_h_has_tkill=no
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19894 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19895 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19897 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_TKILL_SYSCALL 1
19907 # Check whether --with-sysroot or --without-sysroot was given.
19908 if test "${with_sysroot+set}" = set; then
19909 withval="$with_sysroot"
19911 case ${with_sysroot} in
19912 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19913 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19916 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19918 if test "x$exec_prefix" = xNONE; then
19919 if test "x$prefix" = xNONE; then
19920 test_prefix=/usr/local
19922 test_prefix=$prefix
19925 test_prefix=$exec_prefix
19927 case ${TARGET_SYSTEM_ROOT} in
19928 "${test_prefix}"|"${test_prefix}/"*|\
19929 '${exec_prefix}'|'${exec_prefix}/'*)
19930 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19931 TARGET_SYSTEM_ROOT_DEFINE="$t"
19937 TARGET_SYSTEM_ROOT=
19938 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19944 # Check whether --enable-werror or --disable-werror was given.
19945 if test "${enable_werror+set}" = set; then
19946 enableval="$enable_werror"
19947 case "${enableval}" in
19948 yes | y) ERROR_ON_WARNING="yes" ;;
19949 no | n) ERROR_ON_WARNING="no" ;;
19950 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19951 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19952 { (exit 1); exit 1; }; } ;;
19956 # Enable -Werror by default when using gcc
19957 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19958 ERROR_ON_WARNING=yes
19962 if test "${ERROR_ON_WARNING}" = yes ; then
19963 WERROR_CFLAGS="-Werror"
19966 # NOTE: Don't add -Wall or -Wunused, they both include
19967 # -Wunused-parameter which reports bogus warnings.
19968 # NOTE: If you add to this list, remember to update
19969 # gdb/doc/gdbint.texinfo.
19970 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19971 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
19972 -Wunused-label -Wunused-function -Wno-pointer-sign"
19974 # GCC supports -Wuninitialized only with -O or -On, n != 0.
19975 if test x${CFLAGS+set} = xset; then
19976 case "${CFLAGS}" in
19979 build_warnings="${build_warnings} -Wuninitialized"
19983 build_warnings="${build_warnings} -Wuninitialized"
19986 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19987 # -Wunused-function -Wunused-variable -Wunused-value
19988 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19989 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19990 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19991 # -Woverloaded-virtual -Winline -Werror"
19992 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19993 if test "${enable_build_warnings+set}" = set; then
19994 enableval="$enable_build_warnings"
19995 case "${enableval}" in
19997 no) build_warnings="-w";;
19998 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19999 build_warnings="${build_warnings} ${t}";;
20000 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20001 build_warnings="${t} ${build_warnings}";;
20002 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20004 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20005 echo "Setting compiler warning flags = $build_warnings" 6>&1
20007 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20008 if test "${enable_gdb_build_warnings+set}" = set; then
20009 enableval="$enable_gdb_build_warnings"
20010 case "${enableval}" in
20012 no) build_warnings="-w";;
20013 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20014 build_warnings="${build_warnings} ${t}";;
20015 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20016 build_warnings="${t} ${build_warnings}";;
20017 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20019 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20020 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20023 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20025 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20026 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20027 # Separate out the -Werror flag as some files just cannot be
20028 # compiled with it enabled.
20029 for w in ${build_warnings}; do
20031 -Werr*) WERROR_CFLAGS=-Werror ;;
20032 *) # Check that GCC accepts it
20033 saved_CFLAGS="$CFLAGS"
20034 CFLAGS="$CFLAGS $w"
20035 cat >conftest.$ac_ext <<_ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20050 rm -f conftest.$ac_objext
20051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20052 (eval $ac_compile) 2>conftest.er1
20054 grep -v '^ *+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } &&
20059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } &&
20065 { ac_try='test -s conftest.$ac_objext'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; }; then
20071 WARN_CFLAGS="${WARN_CFLAGS} $w"
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078 CFLAGS="$saved_CFLAGS"
20081 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20082 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
20087 # In the Cygwin environment, we need some additional flags.
20088 echo "$as_me:$LINENO: checking for cygwin" >&5
20089 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20090 if test "${gdb_cv_os_cygwin+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 cat >conftest.$ac_ext <<_ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20100 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20105 $EGREP "lose" >/dev/null 2>&1; then
20106 gdb_cv_os_cygwin=yes
20108 gdb_cv_os_cygwin=no
20113 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20114 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20117 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20119 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20120 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20121 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20125 # libreadline needs libuser32.a in a cygwin environment
20127 if test x$gdb_cv_os_cygwin = xyes; then
20128 WIN32LIBS="-luser32"
20129 case "${target}" in
20130 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20135 # The ser-tcp.c module requires sockets.
20139 cat >>confdefs.h <<\_ACEOF
20140 #define USE_WIN32API 1
20143 WIN32LIBS="$WIN32LIBS -lws2_32"
20148 # Add any host-specific objects to GDB.
20149 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20151 LIBGUI="../libgui/src/libgui.a"
20152 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20170 if test "${enable_gdbtk}" = "yes"; then
20172 # Gdbtk must have an absolute path to srcdir in order to run
20173 # properly when not installed.
20176 GDBTK_SRC_DIR=`pwd`
20181 # Ok, lets find the tcl configuration
20182 # First, look for one uninstalled.
20183 # the alternative search directory is invoked by --with-tclconfig
20186 if test x"${no_tcl}" = x ; then
20187 # we reset no_tcl in case something fails here
20190 # Check whether --with-tclconfig or --without-tclconfig was given.
20191 if test "${with_tclconfig+set}" = set; then
20192 withval="$with_tclconfig"
20193 with_tclconfig=${withval}
20195 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20196 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20197 if test "${ac_cv_c_tclconfig+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 # First check to see if --with-tclconfig was specified.
20203 if test x"${with_tclconfig}" != x ; then
20204 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20205 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20207 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20208 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20209 { (exit 1); exit 1; }; }
20213 # then check for a private Tcl installation
20214 if test x"${ac_cv_c_tclconfig}" = x ; then
20217 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20219 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20221 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20222 if test -f "$i/${configdir}/tclConfig.sh" ; then
20223 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20228 # check in a few common install locations
20229 if test x"${ac_cv_c_tclconfig}" = x ; then
20230 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20231 if test -f "$i/tclConfig.sh" ; then
20232 ac_cv_c_tclconfig=`(cd $i; pwd)`
20237 # check in a few other private locations
20238 if test x"${ac_cv_c_tclconfig}" = x ; then
20241 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20242 if test -f "$i/${configdir}/tclConfig.sh" ; then
20243 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20251 if test x"${ac_cv_c_tclconfig}" = x ; then
20252 TCLCONFIG="# no Tcl configs found"
20253 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20254 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20257 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20258 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20259 echo "${ECHO_T}found $TCLCONFIG" >&6
20263 if test -z "${no_tcl}"; then
20294 # Ok, lets find the tk configuration
20295 # First, look for one uninstalled.
20296 # the alternative search directory is invoked by --with-tkconfig
20299 if test x"${no_tk}" = x ; then
20300 # we reset no_tk in case something fails here
20303 # Check whether --with-tkconfig or --without-tkconfig was given.
20304 if test "${with_tkconfig+set}" = set; then
20305 withval="$with_tkconfig"
20306 with_tkconfig=${withval}
20308 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20309 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20310 if test "${ac_cv_c_tkconfig+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 # First check to see if --with-tkconfig was specified.
20316 if test x"${with_tkconfig}" != x ; then
20317 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20318 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20320 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20321 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20322 { (exit 1); exit 1; }; }
20326 # then check for a private Tk library
20327 if test x"${ac_cv_c_tkconfig}" = x ; then
20330 `ls -dr ../tk[4-9]* 2>/dev/null` \
20332 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20334 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20335 if test -f "$i/${configdir}/tkConfig.sh" ; then
20336 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20341 # check in a few common install locations
20342 if test x"${ac_cv_c_tkconfig}" = x ; then
20343 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20344 if test -f "$i/tkConfig.sh" ; then
20345 ac_cv_c_tkconfig=`(cd $i; pwd)`
20350 # check in a few other private locations
20351 if test x"${ac_cv_c_tkconfig}" = x ; then
20354 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20355 if test -f "$i/${configdir}/tkConfig.sh" ; then
20356 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20364 if test x"${ac_cv_c_tkconfig}" = x ; then
20365 TKCONFIG="# no Tk configs found"
20366 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20367 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20370 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20371 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20372 echo "${ECHO_T}found $TKCONFIG" >&6
20378 # now look for Tcl library stuff
20380 tcldir="../tcl/${configdir}/"
20382 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20384 # If $no_tk is nonempty, then we can't do Tk, and there is no
20385 # point to doing Tcl.
20386 if test -z "${no_tk}"; then
20388 if test -f "$TKCONFIG" ; then
20406 # Ok, lets find the tcl source trees so we can use the headers
20407 # Warning: transition of version 9 to 10 will break this algorithm
20408 # because 10 sorts before 9. We also look for just tcl. We have to
20409 # be careful that we don't match stuff like tclX by accident.
20410 # the alternative search directory is involked by --with-tclinclude
20414 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20415 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20417 # Check whether --with-tclinclude or --without-tclinclude was given.
20418 if test "${with_tclinclude+set}" = set; then
20419 withval="$with_tclinclude"
20420 with_tclinclude=${withval}
20422 if test "${ac_cv_c_tclh+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 # first check to see if --with-tclinclude was specified
20427 if test x"${with_tclinclude}" != x ; then
20428 if test -f ${with_tclinclude}/tclInt.h ; then
20429 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20430 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20431 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20433 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20434 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20435 { (exit 1); exit 1; }; }
20439 # next check if it came with Tcl configuration file
20440 if test x"${ac_cv_c_tclconfig}" = x ; then
20441 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20442 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20446 # next check in private source directory
20448 # since ls returns lowest version numbers first, reverse its output
20449 if test x"${ac_cv_c_tclh}" = x ; then
20452 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20453 ${srcdir}/../../tcl \
20454 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20455 ${srcdir}/../../../tcl \
20456 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20457 if test -f $i/generic/tclInt.h ; then
20458 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20463 # finally check in a few common install locations
20465 # since ls returns lowest version numbers first, reverse its output
20466 if test x"${ac_cv_c_tclh}" = x ; then
20468 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20469 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20470 /usr/local/src/tcl \
20471 /usr/local/lib/tcl \
20472 ${prefix}/include ; do
20473 if test -f $i/generic/tclInt.h ; then
20474 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20479 # see if one is installed
20480 if test x"${ac_cv_c_tclh}" = x ; then
20481 if test "${ac_cv_header_tclInt_h+set}" = set; then
20482 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20483 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20484 if test "${ac_cv_header_tclInt_h+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20488 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20490 # Is the header compilable?
20491 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20492 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20493 cat >conftest.$ac_ext <<_ACEOF
20496 cat confdefs.h >>conftest.$ac_ext
20497 cat >>conftest.$ac_ext <<_ACEOF
20498 /* end confdefs.h. */
20499 $ac_includes_default
20500 #include <tclInt.h>
20502 rm -f conftest.$ac_objext
20503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20504 (eval $ac_compile) 2>conftest.er1
20506 grep -v '^ *+' conftest.er1 >conftest.err
20508 cat conftest.err >&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } &&
20511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; } &&
20517 { ac_try='test -s conftest.$ac_objext'
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 ac_header_compiler=yes
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_header_compiler=no
20530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20532 echo "${ECHO_T}$ac_header_compiler" >&6
20534 # Is the header present?
20535 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20536 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 #include <tclInt.h>
20545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20548 grep -v '^ *+' conftest.er1 >conftest.err
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } >/dev/null; then
20553 if test -s conftest.err; then
20554 ac_cpp_err=$ac_c_preproc_warn_flag
20555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20562 if test -z "$ac_cpp_err"; then
20563 ac_header_preproc=yes
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20568 ac_header_preproc=no
20570 rm -f conftest.err conftest.$ac_ext
20571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20572 echo "${ECHO_T}$ac_header_preproc" >&6
20574 # So? What about this header?
20575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20577 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20578 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20580 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20581 ac_header_preproc=yes
20584 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20585 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20587 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20589 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20591 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20593 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20595 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20598 ## ------------------------------------------ ##
20599 ## Report this to the AC_PACKAGE_NAME lists. ##
20600 ## ------------------------------------------ ##
20603 sed "s/^/$as_me: WARNING: /" >&2
20606 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20607 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20608 if test "${ac_cv_header_tclInt_h+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 ac_cv_header_tclInt_h=$ac_header_preproc
20613 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20614 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20617 if test $ac_cv_header_tclInt_h = yes; then
20618 ac_cv_c_tclh=installed
20628 if test x"${ac_cv_c_tclh}" = x ; then
20629 TCLHDIR="# no Tcl private headers found"
20630 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20631 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20632 { (exit 1); exit 1; }; }
20634 if test x"${ac_cv_c_tclh}" != x ; then
20636 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20637 echo "$as_me:$LINENO: result: is installed" >&5
20638 echo "${ECHO_T}is installed" >&6
20641 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20642 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20643 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20644 TCLHDIR="-I${ac_cv_c_tclh}"
20652 # Ok, lets find the tk source trees so we can use the headers
20653 # If the directory (presumably symlink) named "tk" exists, use that one
20654 # in preference to any others. Same logic is used when choosing library
20655 # and again with Tcl. The search order is the best place to look first, then in
20656 # decreasing significance. The loop breaks if the trigger file is found.
20657 # Note the gross little conversion here of srcdir by cd'ing to the found
20658 # directory. This converts the path from a relative to an absolute, so
20659 # recursive cache variables for the path will work right. We check all
20660 # the possible paths in one loop rather than many seperate loops to speed
20662 # the alternative search directory is involked by --with-tkinclude
20665 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20666 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20668 # Check whether --with-tkinclude or --without-tkinclude was given.
20669 if test "${with_tkinclude+set}" = set; then
20670 withval="$with_tkinclude"
20671 with_tkinclude=${withval}
20673 if test "${ac_cv_c_tkh+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 # first check to see if --with-tkinclude was specified
20678 if test x"${with_tkinclude}" != x ; then
20679 if test -f ${with_tkinclude}/tk.h ; then
20680 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20681 elif test -f ${with_tkinclude}/generic/tk.h ; then
20682 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20684 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20685 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20686 { (exit 1); exit 1; }; }
20690 # next check if it came with Tk configuration file
20691 if test x"${ac_cv_c_tkconfig}" = x ; then
20692 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20693 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20697 # next check in private source directory
20699 # since ls returns lowest version numbers first, reverse its output
20700 if test x"${ac_cv_c_tkh}" = x ; then
20703 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20704 ${srcdir}/../../tk \
20705 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20706 ${srcdir}/../../../tk \
20707 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20708 if test -f $i/generic/tk.h ; then
20709 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20714 # finally check in a few common install locations
20716 # since ls returns lowest version numbers first, reverse its output
20717 if test x"${ac_cv_c_tkh}" = x ; then
20719 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20720 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20721 /usr/local/src/tk \
20722 /usr/local/lib/tk \
20723 ${prefix}/include ; do
20724 if test -f $i/generic/tk.h ; then
20725 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20730 # see if one is installed
20731 if test x"${ac_cv_c_tkh}" = x ; then
20732 if test "${ac_cv_header_tk_h+set}" = set; then
20733 echo "$as_me:$LINENO: checking for tk.h" >&5
20734 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20735 if test "${ac_cv_header_tk_h+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20739 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20741 # Is the header compilable?
20742 echo "$as_me:$LINENO: checking tk.h usability" >&5
20743 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 $ac_includes_default
20753 rm -f conftest.$ac_objext
20754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20755 (eval $ac_compile) 2>conftest.er1
20757 grep -v '^ *+' conftest.er1 >conftest.err
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } &&
20762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; } &&
20768 { ac_try='test -s conftest.$ac_objext'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20774 ac_header_compiler=yes
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779 ac_header_compiler=no
20781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20783 echo "${ECHO_T}$ac_header_compiler" >&6
20785 # Is the header present?
20786 echo "$as_me:$LINENO: checking tk.h presence" >&5
20787 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20788 cat >conftest.$ac_ext <<_ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h. */
20796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20799 grep -v '^ *+' conftest.er1 >conftest.err
20801 cat conftest.err >&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } >/dev/null; then
20804 if test -s conftest.err; then
20805 ac_cpp_err=$ac_c_preproc_warn_flag
20806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20813 if test -z "$ac_cpp_err"; then
20814 ac_header_preproc=yes
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 ac_header_preproc=no
20821 rm -f conftest.err conftest.$ac_ext
20822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20823 echo "${ECHO_T}$ac_header_preproc" >&6
20825 # So? What about this header?
20826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20828 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20829 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20831 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20832 ac_header_preproc=yes
20835 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20836 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20838 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20840 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20841 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20842 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20843 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20844 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20845 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20846 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20849 ## ------------------------------------------ ##
20850 ## Report this to the AC_PACKAGE_NAME lists. ##
20851 ## ------------------------------------------ ##
20854 sed "s/^/$as_me: WARNING: /" >&2
20857 echo "$as_me:$LINENO: checking for tk.h" >&5
20858 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20859 if test "${ac_cv_header_tk_h+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 ac_cv_header_tk_h=$ac_header_preproc
20864 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20865 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20868 if test $ac_cv_header_tk_h = yes; then
20869 ac_cv_c_tkh=installed
20879 if test x"${ac_cv_c_tkh}" != x ; then
20881 if test x"${ac_cv_c_tkh}" = x"installed" ; then
20882 echo "$as_me:$LINENO: result: is installed" >&5
20883 echo "${ECHO_T}is installed" >&6
20886 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20887 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20888 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20889 TKHDIR="-I${ac_cv_c_tkh}"
20892 TKHDIR="# no Tk directory found"
20893 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20894 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20901 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20902 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20903 if test x"${ac_cv_c_itclh}" = x ; then
20904 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20905 if test -f $i/generic/itcl.h ; then
20906 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20911 if test x"${ac_cv_c_itclh}" = x ; then
20912 ITCLHDIR="# no Itcl private headers found"
20913 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20914 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20915 { (exit 1); exit 1; }; }
20917 if test x"${ac_cv_c_itclh}" != x ; then
20918 ITCLHDIR="-I${ac_cv_c_itclh}"
20920 # should always be here
20921 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
20926 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20927 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20928 if test x"${ac_cv_c_itkh}" = x ; then
20929 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20930 if test -f $i/generic/itk.h ; then
20931 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20936 if test x"${ac_cv_c_itkh}" = x ; then
20937 ITKHDIR="# no Itk private headers found"
20938 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20939 echo "$as_me: error: Can't find Itk private headers" >&2;}
20940 { (exit 1); exit 1; }; }
20942 if test x"${ac_cv_c_itkh}" != x ; then
20943 ITKHDIR="-I${ac_cv_c_itkh}"
20945 # should always be here
20946 # ITKLIB="../itcl/itk/unix/libitk.a"
20952 # now look for Tk library stuff
20954 tkdir="../tk/${configdir}/"
20956 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20958 # now look for Itcl library stuff
20962 # Ok, lets find the itcl configuration
20963 # First, look for one uninstalled.
20964 # the alternative search directory is invoked by --with-itclconfig
20967 if test x"${no_itcl}" = x ; then
20968 # we reset no_itcl in case something fails here
20971 # Check whether --with-itclconfig or --without-itclconfig was given.
20972 if test "${with_itclconfig+set}" = set; then
20973 withval="$with_itclconfig"
20974 with_itclconfig=${withval}
20976 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20977 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20978 if test "${ac_cv_c_itclconfig+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 # First check to see if --with-itclconfig was specified.
20984 if test x"${with_itclconfig}" != x ; then
20985 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20986 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20988 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20989 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20990 { (exit 1); exit 1; }; }
20994 # then check for a private Itcl library
20995 if test x"${ac_cv_c_itclconfig}" = x ; then
20998 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21000 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21002 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21003 if test -f "$i/itclConfig.sh" ; then
21004 ac_cv_c_itclconfig=`(cd $i; pwd)`
21009 # check in a few common install locations
21010 if test x"${ac_cv_c_itclconfig}" = x ; then
21011 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21012 if test -f "$i/itclConfig.sh" ; then
21013 ac_cv_c_itclconfig=`(cd $i; pwd)`
21018 # check in a few other private locations
21019 if test x"${ac_cv_c_itclconfig}" = x ; then
21021 ${srcdir}/../itcl/itcl \
21022 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21023 if test -f "$i/itclConfig.sh" ; then
21024 ac_cv_c_itclconfig=`(cd $i; pwd)`
21032 if test x"${ac_cv_c_itclconfig}" = x ; then
21033 ITCLCONFIG="# no Itcl configs found"
21034 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21035 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
21038 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
21039 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21040 echo "${ECHO_T}found $ITCLCONFIG" >&6
21044 if test -z "${no_itcl}"; then
21046 if test -f "$ITCLCONFIG" ; then
21061 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
21062 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
21066 # now look for Itk library stuff
21069 # Ok, lets find the itk configuration
21070 # First, look for one uninstalled.
21071 # the alternative search directory is invoked by --with-itkconfig
21074 if test x"${no_itk}" = x ; then
21075 # we reset no_itk in case something fails here
21078 # Check whether --with-itkconfig or --without-itkconfig was given.
21079 if test "${with_itkconfig+set}" = set; then
21080 withval="$with_itkconfig"
21081 with_itkconfig=${withval}
21083 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21084 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21085 if test "${ac_cv_c_itkconfig+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21090 # First check to see if --with-itkconfig was specified.
21091 if test x"${with_itkconfig}" != x ; then
21092 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21093 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21095 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21096 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21097 { (exit 1); exit 1; }; }
21101 # then check for a private Itk library
21102 if test x"${ac_cv_c_itkconfig}" = x ; then
21105 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21107 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21109 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21110 if test -f "$i/itkConfig.sh" ; then
21111 ac_cv_c_itkconfig=`(cd $i; pwd)`
21116 # check in a few common install locations
21117 if test x"${ac_cv_c_itkconfig}" = x ; then
21118 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21119 if test -f "$i/itkConfig.sh" ; then
21120 ac_cv_c_itkconfig=`(cd $i; pwd)`
21125 # check in a few other private locations
21126 if test x"${ac_cv_c_itkconfig}" = x ; then
21128 ${srcdir}/../itcl/itk \
21129 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21130 if test -f "$i/itkConfig.sh" ; then
21131 ac_cv_c_itkconfig=`(cd $i; pwd)`
21139 if test x"${ac_cv_c_itkconfig}" = x ; then
21140 ITKCONFIG="# no Itk configs found"
21141 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21142 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
21145 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
21146 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21147 echo "${ECHO_T}found $ITKCONFIG" >&6
21152 if test -z "${no_itcl}"; then
21154 if test -f "$ITKCONFIG" ; then
21169 ITKLIB="${ITK_BUILD_LIB_SPEC}"
21170 ITK_DEPS="${ITK_LIB_FULL_PATH}"
21173 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
21175 # Include some libraries that Tcl and Tk want.
21176 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
21177 # Yes, the ordering seems wrong here. But it isn't.
21178 # TK_LIBS is the list of libraries that need to be linked
21179 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21180 # were in LIBS then any link tests after this point would
21181 # try to include things like `$(LIBGUI)', which wouldn't work.
21182 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
21184 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21185 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21186 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
21187 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21188 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21189 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21190 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
21192 if test x$gdb_cv_os_cygwin = xyes; then
21193 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21194 WIN32LDAPP="-Wl,--subsystem,console"
21195 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21202 subdirs="$subdirs gdbtk"
21219 echo "$as_me:$LINENO: checking for X" >&5
21220 echo $ECHO_N "checking for X... $ECHO_C" >&6
21222 ac_path_x_has_been_run=yes
21224 # Check whether --with-x or --without-x was given.
21225 if test "${with_x+set}" = set; then
21229 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21230 if test "x$with_x" = xno; then
21231 # The user explicitly disabled X.
21234 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21235 # Both variables are already set.
21238 if test "${ac_cv_have_x+set}" = set; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
21241 # One or both of the vars are not set, and there is no cached value.
21242 ac_x_includes=no ac_x_libraries=no
21243 rm -fr conftest.dir
21244 if mkdir conftest.dir; then
21246 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21247 cat >Imakefile <<'_ACEOF'
21249 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21251 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21252 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21253 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21254 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21255 for ac_extension in a so sl; do
21256 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21257 test -f $ac_im_libdir/libX11.$ac_extension; then
21258 ac_im_usrlibdir=$ac_im_libdir; break
21261 # Screen out bogus values from the imake configuration. They are
21262 # bogus both because they are the default anyway, and because
21263 # using them would break gcc on systems where it needs fixed includes.
21264 case $ac_im_incroot in
21266 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21268 case $ac_im_usrlibdir in
21269 /usr/lib | /lib) ;;
21270 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21274 rm -fr conftest.dir
21277 # Standard set of common directories for X headers.
21278 # Check X11 before X11Rn because it is often a symlink to the current release.
21290 /usr/local/X11/include
21291 /usr/local/X11R6/include
21292 /usr/local/X11R5/include
21293 /usr/local/X11R4/include
21295 /usr/local/include/X11
21296 /usr/local/include/X11R6
21297 /usr/local/include/X11R5
21298 /usr/local/include/X11R4
21302 /usr/XFree86/include/X11
21306 /usr/unsupported/include
21307 /usr/athena/include
21308 /usr/local/x11r5/include
21309 /usr/lpp/Xamples/include
21311 /usr/openwin/include
21312 /usr/openwin/share/include'
21314 if test "$ac_x_includes" = no; then
21315 # Guess where to find include files, by looking for a specified header file.
21316 # First, try using that file with no special directory specified.
21317 cat >conftest.$ac_ext <<_ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 #include <X11/Xlib.h>
21325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21328 grep -v '^ *+' conftest.er1 >conftest.err
21330 cat conftest.err >&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } >/dev/null; then
21333 if test -s conftest.err; then
21334 ac_cpp_err=$ac_c_preproc_warn_flag
21335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21342 if test -z "$ac_cpp_err"; then
21343 # We can compile using X headers with no special include directory.
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 for ac_dir in $ac_x_header_dirs; do
21350 if test -r "$ac_dir/X11/Xlib.h"; then
21351 ac_x_includes=$ac_dir
21356 rm -f conftest.err conftest.$ac_ext
21357 fi # $ac_x_includes = no
21359 if test "$ac_x_libraries" = no; then
21360 # Check for the libraries.
21361 # See if we find them without any special options.
21362 # Don't add to $LIBS permanently.
21365 cat >conftest.$ac_ext <<_ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21371 #include <X11/Xlib.h>
21380 rm -f conftest.$ac_objext conftest$ac_exeext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } &&
21389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; } &&
21395 { ac_try='test -s conftest$ac_exeext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21402 # We can link X programs with no special library path.
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21409 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21411 # Don't even attempt the hair of trying to link an X program!
21412 for ac_extension in a so sl; do
21413 if test -r $ac_dir/libX11.$ac_extension; then
21414 ac_x_libraries=$ac_dir
21420 rm -f conftest.err conftest.$ac_objext \
21421 conftest$ac_exeext conftest.$ac_ext
21422 fi # $ac_x_libraries = no
21424 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21425 # Didn't find X anywhere. Cache the known absence of X.
21426 ac_cv_have_x="have_x=no"
21428 # Record where we found X for the cache.
21429 ac_cv_have_x="have_x=yes \
21430 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21435 eval "$ac_cv_have_x"
21438 if test "$have_x" != yes; then
21439 echo "$as_me:$LINENO: result: $have_x" >&5
21440 echo "${ECHO_T}$have_x" >&6
21443 # If each of the values was on the command line, it overrides each guess.
21444 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21445 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21446 # Update the cache value to reflect the command line values.
21447 ac_cv_have_x="have_x=yes \
21448 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21449 # It might be that x_includes is empty (headers are found in the
21450 # standard search path. Then output the corresponding message
21451 ac_out_x_includes=$x_includes
21452 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
21453 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
21454 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
21458 # Check whether we should enable the TUI, but only do so if we really
21460 if test x"$enable_tui" = xyes; then
21461 if test -d $srcdir/tui; then
21462 if test "$ac_cv_search_waddstr" != no; then
21463 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21464 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21465 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21466 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21467 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21468 CONFIG_ALL="${CONFIG_ALL} all-tui"
21469 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21470 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21471 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21473 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21474 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21479 # Unlike the sim directory, whether a simulator is linked is controlled by
21480 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21481 # This code just checks for a few cases where we'd like to ignore those
21482 # definitions, even when they're present in the '.mt' file. These cases
21483 # are when --disable-sim is specified, or if the simulator directory is
21484 # not part of the source tree.
21486 # Check whether --enable-sim or --disable-sim was given.
21487 if test "${enable_sim+set}" = set; then
21488 enableval="$enable_sim"
21489 echo "enable_sim = $enable_sim";
21490 echo "enableval = ${enableval}";
21491 case "${enableval}" in
21492 yes) ignore_sim=false ;;
21493 no) ignore_sim=true ;;
21494 *) ignore_sim=false ;;
21500 if test ! -d "${srcdir}/../sim"; then
21504 if test "${ignore_sim}" = "true"; then
21506 IGNORE_SIM_OBS="SIM_OBS="
21511 cat >>confdefs.h <<\_ACEOF
21530 # List of host floatformats.
21532 cat >>confdefs.h <<_ACEOF
21533 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21537 cat >>confdefs.h <<_ACEOF
21538 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21542 cat >>confdefs.h <<_ACEOF
21543 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21547 # target_subdir is used by the testsuite to find the target libraries.
21549 if test "${host}" != "${target}"; then
21550 target_subdir="${target_alias}/"
21555 if test "${target}" = "${host}"; then
21556 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21557 if test ! -f ${host_makefile_frag}; then
21558 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21559 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21560 { (exit 1); exit 1; }; }
21562 frags="$frags $host_makefile_frag"
21564 host_makefile_frag=/dev/null
21567 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21568 if test ! -f ${target_makefile_frag}; then
21569 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21570 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21571 { (exit 1); exit 1; }; }
21573 frags="$frags $target_makefile_frag"
21580 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21581 ' ${host_makefile_frag}`
21583 targetfile=`sed -n '
21584 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21585 ' ${target_makefile_frag}`
21587 if test "${target}" = "${host}"; then
21588 # We pick this up from the host configuration file (.mh) because we
21589 # do not have a native configuration Makefile fragment.
21590 nativefile=`sed -n '
21591 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21592 ' ${host_makefile_frag}`
21596 if test x"${gdb_osabi}" != x ; then
21598 cat >>confdefs.h <<_ACEOF
21599 #define GDB_OSABI_DEFAULT $gdb_osabi
21604 # Enable multi-ice-gdb-server.
21605 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21606 if test "${enable_multi_ice+set}" = set; then
21607 enableval="$enable_multi_ice"
21611 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21612 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21613 { (exit 1); exit 1; }; } ;;
21616 if test "x$enable_multi_ice" = xyes; then
21619 subdirs="$subdirs multi-ice"
21623 # We only build gdbserver automatically if host and target are the same.
21624 if test "x$target" = "x$host"; then
21625 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21626 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21627 if test "x$build_gdbserver" = xyes; then
21628 echo "$as_me:$LINENO: result: yes" >&5
21629 echo "${ECHO_T}yes" >&6
21632 subdirs="$subdirs gdbserver"
21635 echo "$as_me:$LINENO: result: no" >&5
21636 echo "${ECHO_T}no" >&6
21640 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21641 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21642 # to an empty version.
21649 if test "${hostfile}" != ""; then
21651 case "${hostfile}" in
21652 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21653 * ) GDB_XM_FILE="${hostfile}"
21655 files="${files} ${GDB_XM_FILE}"
21656 links="${links} xm.h"
21658 cat >>confdefs.h <<_ACEOF
21659 #define GDB_XM_FILE "${GDB_XM_FILE}"
21667 if test "${targetfile}" != ""; then
21669 case "${targetfile}" in
21670 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21671 * ) GDB_TM_FILE="${targetfile}"
21673 files="${files} ${GDB_TM_FILE}"
21674 links="${links} tm.h"
21676 cat >>confdefs.h <<_ACEOF
21677 #define GDB_TM_FILE "${GDB_TM_FILE}"
21685 if test "${nativefile}" != ""; then
21687 case "${nativefile}" in
21688 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21689 * ) GDB_NM_FILE="${nativefile}"
21691 files="${files} ${GDB_NM_FILE}"
21692 links="${links} nm.h"
21694 cat >>confdefs.h <<_ACEOF
21695 #define GDB_NM_FILE "${GDB_NM_FILE}"
21701 ac_sources="$files"
21703 while test -n "$ac_sources"; do
21704 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21705 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21706 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21708 ac_config_links="$ac_config_links $ac_config_links_1"
21715 cat >>confdefs.h <<\_ACEOF
21716 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21723 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21724 if test "${with_libiconv_prefix+set}" = set; then
21725 withval="$with_libiconv_prefix"
21727 for dir in `echo "$withval" | tr : ' '`; do
21728 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21729 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21734 echo "$as_me:$LINENO: checking for iconv" >&5
21735 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21736 if test "${am_cv_func_iconv+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 am_cv_func_iconv="no, consider installing GNU libiconv"
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 #include <stdlib.h>
21753 iconv_t cd = iconv_open("","");
21754 iconv(cd,NULL,NULL,NULL,NULL);
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21762 (eval $ac_link) 2>conftest.er1
21764 grep -v '^ *+' conftest.er1 >conftest.err
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
21769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 (eval $ac_try) 2>&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); }; } &&
21775 { ac_try='test -s conftest$ac_exeext'
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; }; then
21781 am_cv_func_iconv=yes
21783 echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21787 rm -f conftest.err conftest.$ac_objext \
21788 conftest$ac_exeext conftest.$ac_ext
21789 if test "$am_cv_func_iconv" != yes; then
21790 am_save_LIBS="$LIBS"
21791 LIBS="$LIBS -liconv"
21792 cat >conftest.$ac_ext <<_ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 #include <stdlib.h>
21803 iconv_t cd = iconv_open("","");
21804 iconv(cd,NULL,NULL,NULL,NULL);
21810 rm -f conftest.$ac_objext conftest$ac_exeext
21811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21812 (eval $ac_link) 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
21819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; } &&
21825 { ac_try='test -s conftest$ac_exeext'
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 am_cv_lib_iconv=yes
21832 am_cv_func_iconv=yes
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21838 rm -f conftest.err conftest.$ac_objext \
21839 conftest$ac_exeext conftest.$ac_ext
21840 LIBS="$am_save_LIBS"
21844 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21845 echo "${ECHO_T}$am_cv_func_iconv" >&6
21846 if test "$am_cv_func_iconv" = yes; then
21848 cat >>confdefs.h <<\_ACEOF
21849 #define HAVE_ICONV 1
21852 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21853 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21854 if test "${am_cv_proto_iconv+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21865 #include <stdlib.h>
21871 #if defined(__STDC__) || defined(__cplusplus)
21872 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21885 rm -f conftest.$ac_objext
21886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21887 (eval $ac_compile) 2>conftest.er1
21889 grep -v '^ *+' conftest.er1 >conftest.err
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } &&
21894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; } &&
21900 { ac_try='test -s conftest.$ac_objext'
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; }; then
21906 am_cv_proto_iconv_arg1=""
21908 echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21911 am_cv_proto_iconv_arg1="const"
21913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21914 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);"
21917 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21918 echo "$as_me:$LINENO: result: ${ac_t:-
21919 }$am_cv_proto_iconv" >&5
21920 echo "${ECHO_T}${ac_t:-
21921 }$am_cv_proto_iconv" >&6
21923 cat >>confdefs.h <<_ACEOF
21924 #define ICONV_CONST $am_cv_proto_iconv_arg1
21929 if test "$am_cv_lib_iconv" = yes; then
21935 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21936 ac_config_commands="$ac_config_commands default"
21937 cat >confcache <<\_ACEOF
21938 # This file is a shell script that caches the results of configure
21939 # tests run on this system so they can be shared between configure
21940 # scripts and configure runs, see configure's option --config-cache.
21941 # It is not useful on other systems. If it contains results you don't
21942 # want to keep, you may remove or edit it.
21944 # config.status only pays attention to the cache file if you give it
21945 # the --recheck option to rerun configure.
21947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21949 # following values.
21953 # The following way of writing the cache mishandles newlines in values,
21954 # but we know of no workaround that is simple, portable, and efficient.
21955 # So, don't put newlines in cache variables' values.
21956 # Ultrix sh set writes to stderr and can't be redirected directly,
21957 # and sets the high bit in the cache file unless we assign to the vars.
21960 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21962 # `set' does not quote correctly, so add quotes (double-quote
21963 # substitution turns \\\\ into \\, and sed turns \\ into \).
21966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21969 # `set' quotes correctly as required by POSIX, so do not add quotes.
21971 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21978 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21980 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21982 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21983 if test -w $cache_file; then
21984 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21985 cat confcache >$cache_file
21987 echo "not updating unwritable cache $cache_file"
21992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21993 # Let make expand exec_prefix.
21994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21996 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21997 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21998 # trailing colons and then remove the whole line if VPATH becomes empty
21999 # (actually we leave an empty line to preserve line numbers).
22000 if test "x$srcdir" = x.; then
22001 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22002 s/:*\$(srcdir):*/:/;
22003 s/:*\${srcdir}:*/:/;
22005 s/^\([^=]*=[ ]*\):*/\1/;
22011 DEFS=-DHAVE_CONFIG_H
22015 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22016 # 1. Remove the extension, and $U if already installed.
22017 ac_i=`echo "$ac_i" |
22018 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22020 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22021 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22023 LIBOBJS=$ac_libobjs
22025 LTLIBOBJS=$ac_ltlibobjs
22028 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22029 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22030 Usually this means the macro was only invoked conditionally." >&5
22031 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22032 Usually this means the macro was only invoked conditionally." >&2;}
22033 { (exit 1); exit 1; }; }
22036 : ${CONFIG_STATUS=./config.status}
22037 ac_clean_files_save=$ac_clean_files
22038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22039 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22040 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22041 cat >$CONFIG_STATUS <<_ACEOF
22043 # Generated by $as_me.
22044 # Run this file to recreate the current configuration.
22045 # Compiler output produced by configure, useful for debugging
22046 # configure, is in config.log if it exists.
22049 ac_cs_recheck=false
22051 SHELL=\${CONFIG_SHELL-$SHELL}
22054 cat >>$CONFIG_STATUS <<\_ACEOF
22055 ## --------------------- ##
22056 ## M4sh Initialization. ##
22057 ## --------------------- ##
22059 # Be Bourne compatible
22060 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22063 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22064 # is contrary to our usage. Disable this feature.
22065 alias -g '${1+"$@"}'='"$@"'
22066 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22069 DUALCASE=1; export DUALCASE # for MKS sh
22071 # Support unset when possible.
22072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22079 # Work around bugs in pre-3.0 UWIN ksh.
22080 $as_unset ENV MAIL MAILPATH
22087 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22088 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22089 LC_TELEPHONE LC_TIME
22091 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22092 eval $as_var=C; export $as_var
22098 # Required to use basename.
22099 if expr a : '\(a\)' >/dev/null 2>&1; then
22105 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22106 as_basename=basename
22112 # Name of the executable.
22113 as_me=`$as_basename "$0" ||
22114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22115 X"$0" : 'X\(//\)$' \| \
22116 X"$0" : 'X\(/\)$' \| \
22117 . : '\(.\)' 2>/dev/null ||
22119 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22120 /^X\/\(\/\/\)$/{ s//\1/; q; }
22121 /^X\/\(\/\).*/{ s//\1/; q; }
22125 # PATH needs CR, and LINENO needs CR and PATH.
22126 # Avoid depending upon Character Ranges.
22127 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22128 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22129 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22130 as_cr_digits='0123456789'
22131 as_cr_alnum=$as_cr_Letters$as_cr_digits
22133 # The user is always right.
22134 if test "${PATH_SEPARATOR+set}" != set; then
22135 echo "#! /bin/sh" >conf$$.sh
22136 echo "exit 0" >>conf$$.sh
22138 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22147 as_lineno_1=$LINENO
22148 as_lineno_2=$LINENO
22149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22150 test "x$as_lineno_1" != "x$as_lineno_2" &&
22151 test "x$as_lineno_3" = "x$as_lineno_2" || {
22152 # Find who we are. Look in the path if we contain no path at all
22155 *[\\/]* ) as_myself=$0 ;;
22156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22157 for as_dir in $PATH
22160 test -z "$as_dir" && as_dir=.
22161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22166 # We did not find ourselves, most probably we were run as `sh COMMAND'
22167 # in which case we are not to be found in the path.
22168 if test "x$as_myself" = x; then
22171 if test ! -f "$as_myself"; then
22172 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22173 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22174 { (exit 1); exit 1; }; }
22176 case $CONFIG_SHELL in
22178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22179 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22182 test -z "$as_dir" && as_dir=.
22183 for as_base in sh bash ksh sh5; do
22186 if ("$as_dir/$as_base" -c '
22187 as_lineno_1=$LINENO
22188 as_lineno_2=$LINENO
22189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22190 test "x$as_lineno_1" != "x$as_lineno_2" &&
22191 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22192 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22193 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22194 CONFIG_SHELL=$as_dir/$as_base
22195 export CONFIG_SHELL
22196 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22204 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22205 # uniformly replaced by the line number. The first 'sed' inserts a
22206 # line-number line before each line; the second 'sed' does the real
22207 # work. The second script uses 'N' to pair each line-number line
22208 # with the numbered line, and appends trailing '-' during
22209 # substitution so that $LINENO is not a special case at line end.
22210 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22211 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22212 sed '=' <$as_myself |
22217 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22220 s,^['$as_cr_digits']*\n,,
22221 ' >$as_me.lineno &&
22222 chmod +x $as_me.lineno ||
22223 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22224 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22225 { (exit 1); exit 1; }; }
22227 # Don't try to exec as it changes $[0], causing all sort of problems
22228 # (the dirname of $[0] is not the place where we might find the
22229 # original and so on. Autoconf is especially sensible to this).
22231 # Exit status is that of the last command.
22236 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22237 *c*,-n*) ECHO_N= ECHO_C='
22239 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22240 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22243 if expr a : '\(a\)' >/dev/null 2>&1; then
22249 rm -f conf$$ conf$$.exe conf$$.file
22251 if ln -s conf$$.file conf$$ 2>/dev/null; then
22252 # We could just check for DJGPP; but this test a) works b) is more generic
22253 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22254 if test -f conf$$.exe; then
22255 # Don't use ln at all; we don't have any links
22260 elif ln conf$$.file conf$$ 2>/dev/null; then
22265 rm -f conf$$ conf$$.exe conf$$.file
22267 if mkdir -p . 2>/dev/null; then
22270 test -d ./-p && rmdir ./-p
22274 as_executable_p="test -f"
22276 # Sed expression to map a string onto a valid CPP name.
22277 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22279 # Sed expression to map a string onto a valid variable name.
22280 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22284 # We need space, tab and new line, in precisely that order.
22294 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22295 # report actual input values of CONFIG_FILES etc. instead of their
22296 # values after options handling. Logging --version etc. is OK.
22300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22301 ## Running $as_me. ##
22306 This file was extended by $as_me, which was
22307 generated by GNU Autoconf 2.59. Invocation command line was
22309 CONFIG_FILES = $CONFIG_FILES
22310 CONFIG_HEADERS = $CONFIG_HEADERS
22311 CONFIG_LINKS = $CONFIG_LINKS
22312 CONFIG_COMMANDS = $CONFIG_COMMANDS
22316 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22320 # Files that config.status was made for.
22321 if test -n "$ac_config_files"; then
22322 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22325 if test -n "$ac_config_headers"; then
22326 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22329 if test -n "$ac_config_links"; then
22330 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22333 if test -n "$ac_config_commands"; then
22334 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22337 cat >>$CONFIG_STATUS <<\_ACEOF
22340 \`$as_me' instantiates files from templates according to the
22341 current configuration.
22343 Usage: $0 [OPTIONS] [FILE]...
22345 -h, --help print this help, then exit
22346 -V, --version print version number, then exit
22347 -q, --quiet do not print progress messages
22348 -d, --debug don't remove temporary files
22349 --recheck update $as_me by reconfiguring in the same conditions
22350 --file=FILE[:TEMPLATE]
22351 instantiate the configuration file FILE
22352 --header=FILE[:TEMPLATE]
22353 instantiate the configuration header FILE
22355 Configuration files:
22358 Configuration headers:
22361 Configuration links:
22364 Configuration commands:
22370 cat >>$CONFIG_STATUS <<_ACEOF
22373 configured by $0, generated by GNU Autoconf 2.59,
22374 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22376 Copyright (C) 2003 Free Software Foundation, Inc.
22377 This config.status script is free software; the Free Software Foundation
22378 gives unlimited permission to copy, distribute and modify it."
22383 cat >>$CONFIG_STATUS <<\_ACEOF
22384 # If no file are specified by the user, then we need to provide default
22385 # value. By we need to know if files were specified by the user.
22391 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22392 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22400 *) # This is not an option, so the user has probably given explicit
22403 ac_need_defaults=false;;
22407 # Handling of the options.
22409 cat >>$CONFIG_STATUS <<\_ACEOF
22410 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22412 --version | --vers* | -V )
22413 echo "$ac_cs_version"; exit 0 ;;
22415 # Conflict between --help and --header
22416 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22417 Try \`$0 --help' for more information." >&5
22418 echo "$as_me: error: ambiguous option: $1
22419 Try \`$0 --help' for more information." >&2;}
22420 { (exit 1); exit 1; }; };;
22421 --help | --hel | -h )
22422 echo "$ac_cs_usage"; exit 0 ;;
22423 --debug | --d* | -d )
22425 --file | --fil | --fi | --f )
22427 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22428 ac_need_defaults=false;;
22429 --header | --heade | --head | --hea )
22431 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22432 ac_need_defaults=false;;
22433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22434 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22437 # This is an error.
22438 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22439 Try \`$0 --help' for more information." >&5
22440 echo "$as_me: error: unrecognized option: $1
22441 Try \`$0 --help' for more information." >&2;}
22442 { (exit 1); exit 1; }; } ;;
22444 *) ac_config_targets="$ac_config_targets $1" ;;
22450 ac_configure_extra_args=
22452 if $ac_cs_silent; then
22454 ac_configure_extra_args="$ac_configure_extra_args --silent"
22458 cat >>$CONFIG_STATUS <<_ACEOF
22459 if \$ac_cs_recheck; then
22460 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22461 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22466 cat >>$CONFIG_STATUS <<_ACEOF
22468 # INIT-COMMANDS section.
22472 gdb_host_cpu=$gdb_host_cpu
22473 gdb_target_cpu=$gdb_target_cpu
22474 nativefile=$nativefile
22481 cat >>$CONFIG_STATUS <<\_ACEOF
22482 for ac_config_target in $ac_config_targets
22484 case "$ac_config_target" in
22485 # Handling of arguments.
22486 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22487 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22488 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22489 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22490 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22493 { (exit 1); exit 1; }; };;
22497 # If the user did not use the arguments to specify the items to instantiate,
22498 # then the envvar interface is used. Set only those that are not.
22499 # We use the long form for the default assignment because of an extremely
22500 # bizarre bug on SunOS 4.1.3.
22501 if $ac_need_defaults; then
22502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22504 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22508 # Have a temporary directory for convenience. Make it in the build tree
22509 # simply because there is no reason to put it here, and in addition,
22510 # creating and moving files from /tmp can sometimes cause problems.
22511 # Create a temporary directory, and hook for its removal unless debugging.
22514 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22515 trap '{ (exit 1); exit 1; }' 1 2 13 15
22518 # Create a (secure) tmp directory for tmp files.
22521 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22522 test -n "$tmp" && test -d "$tmp"
22525 tmp=./confstat$$-$RANDOM
22526 (umask 077 && mkdir $tmp)
22529 echo "$me: cannot create a temporary directory in ." >&2
22530 { (exit 1); exit 1; }
22535 cat >>$CONFIG_STATUS <<_ACEOF
22538 # CONFIG_FILES section.
22541 # No need to generate the scripts if there are no CONFIG_FILES.
22542 # This happens for instance when ./config.status config.h
22543 if test -n "\$CONFIG_FILES"; then
22544 # Protect against being on the right side of a sed subst in config.status.
22545 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22546 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22547 s,@SHELL@,$SHELL,;t t
22548 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22549 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22550 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22551 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22552 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22553 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22554 s,@exec_prefix@,$exec_prefix,;t t
22555 s,@prefix@,$prefix,;t t
22556 s,@program_transform_name@,$program_transform_name,;t t
22557 s,@bindir@,$bindir,;t t
22558 s,@sbindir@,$sbindir,;t t
22559 s,@libexecdir@,$libexecdir,;t t
22560 s,@datadir@,$datadir,;t t
22561 s,@sysconfdir@,$sysconfdir,;t t
22562 s,@sharedstatedir@,$sharedstatedir,;t t
22563 s,@localstatedir@,$localstatedir,;t t
22564 s,@libdir@,$libdir,;t t
22565 s,@includedir@,$includedir,;t t
22566 s,@oldincludedir@,$oldincludedir,;t t
22567 s,@infodir@,$infodir,;t t
22568 s,@mandir@,$mandir,;t t
22569 s,@build_alias@,$build_alias,;t t
22570 s,@host_alias@,$host_alias,;t t
22571 s,@target_alias@,$target_alias,;t t
22572 s,@DEFS@,$DEFS,;t t
22573 s,@ECHO_C@,$ECHO_C,;t t
22574 s,@ECHO_N@,$ECHO_N,;t t
22575 s,@ECHO_T@,$ECHO_T,;t t
22576 s,@LIBS@,$LIBS,;t t
22577 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22578 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22579 s,@MAINT@,$MAINT,;t t
22581 s,@CFLAGS@,$CFLAGS,;t t
22582 s,@LDFLAGS@,$LDFLAGS,;t t
22583 s,@CPPFLAGS@,$CPPFLAGS,;t t
22584 s,@ac_ct_CC@,$ac_ct_CC,;t t
22585 s,@EXEEXT@,$EXEEXT,;t t
22586 s,@OBJEXT@,$OBJEXT,;t t
22588 s,@EGREP@,$EGREP,;t t
22589 s,@build@,$build,;t t
22590 s,@build_cpu@,$build_cpu,;t t
22591 s,@build_vendor@,$build_vendor,;t t
22592 s,@build_os@,$build_os,;t t
22593 s,@host@,$host,;t t
22594 s,@host_cpu@,$host_cpu,;t t
22595 s,@host_vendor@,$host_vendor,;t t
22596 s,@host_os@,$host_os,;t t
22597 s,@target@,$target,;t t
22598 s,@target_cpu@,$target_cpu,;t t
22599 s,@target_vendor@,$target_vendor,;t t
22600 s,@target_os@,$target_os,;t t
22601 s,@SET_MAKE@,$SET_MAKE,;t t
22602 s,@RANLIB@,$RANLIB,;t t
22603 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22604 s,@ALLOCA@,$ALLOCA,;t t
22605 s,@USE_NLS@,$USE_NLS,;t t
22606 s,@MSGFMT@,$MSGFMT,;t t
22607 s,@GMSGFMT@,$GMSGFMT,;t t
22608 s,@XGETTEXT@,$XGETTEXT,;t t
22609 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22610 s,@CATALOGS@,$CATALOGS,;t t
22611 s,@CATOBJEXT@,$CATOBJEXT,;t t
22612 s,@DATADIRNAME@,$DATADIRNAME,;t t
22613 s,@GMOFILES@,$GMOFILES,;t t
22614 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22615 s,@INTLDEPS@,$INTLDEPS,;t t
22616 s,@INTLLIBS@,$INTLLIBS,;t t
22617 s,@INTLOBJS@,$INTLOBJS,;t t
22618 s,@POFILES@,$POFILES,;t t
22619 s,@POSUB@,$POSUB,;t t
22620 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22621 s,@GT_NO@,$GT_NO,;t t
22622 s,@GT_YES@,$GT_YES,;t t
22623 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22625 s,@localedir@,$localedir,;t t
22626 s,@PACKAGE@,$PACKAGE,;t t
22627 s,@subdirs@,$subdirs,;t t
22629 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22630 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22631 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22632 s,@LN_S@,$LN_S,;t t
22633 s,@YACC@,$YACC,;t t
22635 s,@ac_ct_AR@,$ac_ct_AR,;t t
22636 s,@DLLTOOL@,$DLLTOOL,;t t
22637 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22638 s,@WINDRES@,$WINDRES,;t t
22639 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22641 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22642 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22643 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22644 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22645 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22646 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22647 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22648 s,@WIN32LIBS@,$WIN32LIBS,;t t
22649 s,@LIBGUI@,$LIBGUI,;t t
22650 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22651 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22652 s,@TCL_VERSION@,$TCL_VERSION,;t t
22653 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22654 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22655 s,@TCL_CC@,$TCL_CC,;t t
22656 s,@TCL_DEFS@,$TCL_DEFS,;t t
22657 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22658 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22659 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22660 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22661 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22662 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22663 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22664 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22665 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22666 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22667 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22668 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22669 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22670 s,@TK_VERSION@,$TK_VERSION,;t t
22671 s,@TK_DEFS@,$TK_DEFS,;t t
22672 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22673 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22674 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22675 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22676 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22677 s,@TCLHDIR@,$TCLHDIR,;t t
22678 s,@TKHDIR@,$TKHDIR,;t t
22679 s,@ITCLHDIR@,$ITCLHDIR,;t t
22680 s,@ITKHDIR@,$ITKHDIR,;t t
22681 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22682 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22683 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22684 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22685 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22686 s,@ITK_VERSION@,$ITK_VERSION,;t t
22687 s,@ITK_DEFS@,$ITK_DEFS,;t t
22688 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22689 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22690 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22691 s,@X_CFLAGS@,$X_CFLAGS,;t t
22692 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22693 s,@X_LIBS@,$X_LIBS,;t t
22694 s,@TCL_DEPS@,$TCL_DEPS,;t t
22695 s,@TK_DEPS@,$TK_DEPS,;t t
22696 s,@ITCLLIB@,$ITCLLIB,;t t
22697 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22698 s,@ITKLIB@,$ITKLIB,;t t
22699 s,@ITK_DEPS@,$ITK_DEPS,;t t
22700 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22701 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22702 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22703 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22704 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22705 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22706 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22707 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22708 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22709 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22710 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22711 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22712 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22713 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22714 s,@target_subdir@,$target_subdir,;t t
22715 s,@frags@,$frags,;t t
22716 s,@xm_h@,$xm_h,;t t
22717 s,@tm_h@,$tm_h,;t t
22718 s,@nm_h@,$nm_h,;t t
22719 s,@LIBICONV@,$LIBICONV,;t t
22720 s,@LIBOBJS@,$LIBOBJS,;t t
22721 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22722 /@host_makefile_frag@/r $host_makefile_frag
22723 s,@host_makefile_frag@,,;t t
22724 /@target_makefile_frag@/r $target_makefile_frag
22725 s,@target_makefile_frag@,,;t t
22730 cat >>$CONFIG_STATUS <<\_ACEOF
22731 # Split the substitutions into bite-sized pieces for seds with
22732 # small command number limits, like on Digital OSF/1 and HP-UX.
22733 ac_max_sed_lines=48
22734 ac_sed_frag=1 # Number of current file.
22735 ac_beg=1 # First line for current file.
22736 ac_end=$ac_max_sed_lines # Line after last line for current file.
22739 while $ac_more_lines; do
22740 if test $ac_beg -gt 1; then
22741 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22743 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22745 if test ! -s $tmp/subs.frag; then
22746 ac_more_lines=false
22748 # The purpose of the label and of the branching condition is to
22749 # speed up the sed processing (if there are no `@' at all, there
22750 # is no need to browse any of the substitutions).
22751 # These are the two extra sed commands mentioned above.
22753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22754 if test -z "$ac_sed_cmds"; then
22755 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22757 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22759 ac_sed_frag=`expr $ac_sed_frag + 1`
22761 ac_end=`expr $ac_end + $ac_max_sed_lines`
22764 if test -z "$ac_sed_cmds"; then
22767 fi # test -n "$CONFIG_FILES"
22770 cat >>$CONFIG_STATUS <<\_ACEOF
22771 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22772 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22774 - | *:- | *:-:* ) # input from stdin
22776 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22778 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22779 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22780 * ) ac_file_in=$ac_file.in ;;
22783 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22784 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22785 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22786 X"$ac_file" : 'X\(//\)[^/]' \| \
22787 X"$ac_file" : 'X\(//\)$' \| \
22788 X"$ac_file" : 'X\(/\)' \| \
22789 . : '\(.\)' 2>/dev/null ||
22791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22793 /^X\(\/\/\)$/{ s//\1/; q; }
22794 /^X\(\/\).*/{ s//\1/; q; }
22796 { if $as_mkdir_p; then
22801 while test ! -d "$as_dir"; do
22802 as_dirs="$as_dir $as_dirs"
22803 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22805 X"$as_dir" : 'X\(//\)[^/]' \| \
22806 X"$as_dir" : 'X\(//\)$' \| \
22807 X"$as_dir" : 'X\(/\)' \| \
22808 . : '\(.\)' 2>/dev/null ||
22810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22812 /^X\(\/\/\)$/{ s//\1/; q; }
22813 /^X\(\/\).*/{ s//\1/; q; }
22816 test ! -n "$as_dirs" || mkdir $as_dirs
22817 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22818 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22819 { (exit 1); exit 1; }; }; }
22823 if test "$ac_dir" != .; then
22824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22825 # A "../" for each directory in $ac_dir_suffix.
22826 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22828 ac_dir_suffix= ac_top_builddir=
22832 .) # No --srcdir option. We are building in place.
22834 if test -z "$ac_top_builddir"; then
22837 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22839 [\\/]* | ?:[\\/]* ) # Absolute path.
22840 ac_srcdir=$srcdir$ac_dir_suffix;
22841 ac_top_srcdir=$srcdir ;;
22842 *) # Relative path.
22843 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22844 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22847 # Do not use `cd foo && pwd` to compute absolute paths, because
22848 # the directories may not exist.
22850 .) ac_abs_builddir="$ac_dir";;
22853 .) ac_abs_builddir=`pwd`;;
22854 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22855 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22858 case $ac_abs_builddir in
22859 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22861 case ${ac_top_builddir}. in
22862 .) ac_abs_top_builddir=$ac_abs_builddir;;
22863 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22864 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22867 case $ac_abs_builddir in
22868 .) ac_abs_srcdir=$ac_srcdir;;
22871 .) ac_abs_srcdir=$ac_abs_builddir;;
22872 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22873 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22876 case $ac_abs_builddir in
22877 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22879 case $ac_top_srcdir in
22880 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22881 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22882 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22889 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22892 # Let's still pretend it is `configure' which instantiates (i.e., don't
22893 # use $as_me), people would be surprised to read:
22894 # /* config.h. Generated by config.status. */
22895 if test x"$ac_file" = x-; then
22898 configure_input="$ac_file. "
22900 configure_input=$configure_input"Generated from `echo $ac_file_in |
22901 sed 's,.*/,,'` by configure."
22903 # First look for the input files in the build tree, otherwise in the
22905 ac_file_inputs=`IFS=:
22906 for f in $ac_file_in; do
22908 -) echo $tmp/stdin ;;
22910 # Absolute (can't be DOS-style, as IFS=:)
22911 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22912 echo "$as_me: error: cannot find input file: $f" >&2;}
22913 { (exit 1); exit 1; }; }
22916 if test -f "$f"; then
22919 elif test -f "$srcdir/$f"; then
22924 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22925 echo "$as_me: error: cannot find input file: $f" >&2;}
22926 { (exit 1); exit 1; }; }
22929 done` || { (exit 1); exit 1; }
22931 if test x"$ac_file" != x-; then
22932 { echo "$as_me:$LINENO: creating $ac_file" >&5
22933 echo "$as_me: creating $ac_file" >&6;}
22937 cat >>$CONFIG_STATUS <<_ACEOF
22941 cat >>$CONFIG_STATUS <<\_ACEOF
22943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22944 s,@configure_input@,$configure_input,;t t
22945 s,@srcdir@,$ac_srcdir,;t t
22946 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22947 s,@top_srcdir@,$ac_top_srcdir,;t t
22948 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22949 s,@builddir@,$ac_builddir,;t t
22950 s,@abs_builddir@,$ac_abs_builddir,;t t
22951 s,@top_builddir@,$ac_top_builddir,;t t
22952 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22953 s,@INSTALL@,$ac_INSTALL,;t t
22954 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22956 if test x"$ac_file" != x-; then
22957 mv $tmp/out $ac_file
22965 cat >>$CONFIG_STATUS <<\_ACEOF
22968 # CONFIG_HEADER section.
22971 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22972 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22974 # ac_d sets the value in "#define NAME VALUE" lines.
22975 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22976 ac_dB='[ ].*$,\1#\2'
22979 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22980 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22981 ac_uB='$,\1#\2define\3'
22985 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22988 - | *:- | *:-:* ) # input from stdin
22990 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22992 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22994 * ) ac_file_in=$ac_file.in ;;
22997 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22998 echo "$as_me: creating $ac_file" >&6;}
23000 # First look for the input files in the build tree, otherwise in the
23002 ac_file_inputs=`IFS=:
23003 for f in $ac_file_in; do
23005 -) echo $tmp/stdin ;;
23007 # Absolute (can't be DOS-style, as IFS=:)
23008 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23009 echo "$as_me: error: cannot find input file: $f" >&2;}
23010 { (exit 1); exit 1; }; }
23011 # Do quote $f, to prevent DOS paths from being IFS'd.
23014 if test -f "$f"; then
23017 elif test -f "$srcdir/$f"; then
23022 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23023 echo "$as_me: error: cannot find input file: $f" >&2;}
23024 { (exit 1); exit 1; }; }
23027 done` || { (exit 1); exit 1; }
23028 # Remove the trailing spaces.
23029 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23033 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23034 # `conftest.undefs', that substitutes the proper values into
23035 # config.h.in to produce config.h. The first handles `#define'
23036 # templates, and the second `#undef' templates.
23037 # And first: Protect against being on the right side of a sed subst in
23038 # config.status. Protect against being in an unquoted here document
23039 # in config.status.
23040 rm -f conftest.defines conftest.undefs
23041 # Using a here document instead of a string reduces the quoting nightmare.
23042 # Putting comments in sed scripts is not portable.
23044 # `end' is used to avoid that the second main sed command (meant for
23045 # 0-ary CPP macros) applies to n-ary macro definitions.
23046 # See the Autoconf documentation for `clear'.
23047 cat >confdef2sed.sed <<\_ACEOF
23052 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23054 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23057 # If some macros were called several times there might be several times
23058 # the same #defines, which is useless. Nevertheless, we may not want to
23059 # sort them, since we want the *last* AC-DEFINE to be honored.
23060 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23061 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23062 rm -f confdef2sed.sed
23064 # This sed command replaces #undef with comments. This is necessary, for
23065 # example, in the case of _POSIX_SOURCE, which is predefined and required
23066 # on some systems where configure will not decide to define it.
23067 cat >>conftest.undefs <<\_ACEOF
23068 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23071 # Break up conftest.defines because some shells have a limit on the size
23072 # of here documents, and old seds have small limits too (100 cmds).
23073 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23074 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23075 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23076 echo ' :' >>$CONFIG_STATUS
23077 rm -f conftest.tail
23078 while grep . conftest.defines >/dev/null
23080 # Write a limited-size here document to $tmp/defines.sed.
23081 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23082 # Speed up: don't consider the non `#define' lines.
23083 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23084 # Work around the forget-to-reset-the-flag bug.
23085 echo 't clr' >>$CONFIG_STATUS
23086 echo ': clr' >>$CONFIG_STATUS
23087 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23089 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23091 mv $tmp/out $tmp/in
23093 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23094 rm -f conftest.defines
23095 mv conftest.tail conftest.defines
23097 rm -f conftest.defines
23098 echo ' fi # grep' >>$CONFIG_STATUS
23099 echo >>$CONFIG_STATUS
23101 # Break up conftest.undefs because some shells have a limit on the size
23102 # of here documents, and old seds have small limits too (100 cmds).
23103 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23104 rm -f conftest.tail
23105 while grep . conftest.undefs >/dev/null
23107 # Write a limited-size here document to $tmp/undefs.sed.
23108 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23109 # Speed up: don't consider the non `#undef'
23110 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23111 # Work around the forget-to-reset-the-flag bug.
23112 echo 't clr' >>$CONFIG_STATUS
23113 echo ': clr' >>$CONFIG_STATUS
23114 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23116 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23118 mv $tmp/out $tmp/in
23120 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23121 rm -f conftest.undefs
23122 mv conftest.tail conftest.undefs
23124 rm -f conftest.undefs
23126 cat >>$CONFIG_STATUS <<\_ACEOF
23127 # Let's still pretend it is `configure' which instantiates (i.e., don't
23128 # use $as_me), people would be surprised to read:
23129 # /* config.h. Generated by config.status. */
23130 if test x"$ac_file" = x-; then
23131 echo "/* Generated by configure. */" >$tmp/config.h
23133 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23135 cat $tmp/in >>$tmp/config.h
23137 if test x"$ac_file" != x-; then
23138 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23139 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23140 echo "$as_me: $ac_file is unchanged" >&6;}
23142 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23144 X"$ac_file" : 'X\(//\)[^/]' \| \
23145 X"$ac_file" : 'X\(//\)$' \| \
23146 X"$ac_file" : 'X\(/\)' \| \
23147 . : '\(.\)' 2>/dev/null ||
23149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23151 /^X\(\/\/\)$/{ s//\1/; q; }
23152 /^X\(\/\).*/{ s//\1/; q; }
23154 { if $as_mkdir_p; then
23159 while test ! -d "$as_dir"; do
23160 as_dirs="$as_dir $as_dirs"
23161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23163 X"$as_dir" : 'X\(//\)[^/]' \| \
23164 X"$as_dir" : 'X\(//\)$' \| \
23165 X"$as_dir" : 'X\(/\)' \| \
23166 . : '\(.\)' 2>/dev/null ||
23168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23170 /^X\(\/\/\)$/{ s//\1/; q; }
23171 /^X\(\/\).*/{ s//\1/; q; }
23174 test ! -n "$as_dirs" || mkdir $as_dirs
23175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23177 { (exit 1); exit 1; }; }; }
23180 mv $tmp/config.h $ac_file
23184 rm -f $tmp/config.h
23188 cat >>$CONFIG_STATUS <<\_ACEOF
23191 # CONFIG_LINKS section.
23194 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23195 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23196 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23198 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23199 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23201 if test ! -r $srcdir/$ac_source; then
23202 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23203 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23204 { (exit 1); exit 1; }; }
23208 # Make relative symlinks.
23209 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23210 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23211 X"$ac_dest" : 'X\(//\)[^/]' \| \
23212 X"$ac_dest" : 'X\(//\)$' \| \
23213 X"$ac_dest" : 'X\(/\)' \| \
23214 . : '\(.\)' 2>/dev/null ||
23216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23218 /^X\(\/\/\)$/{ s//\1/; q; }
23219 /^X\(\/\).*/{ s//\1/; q; }
23221 { if $as_mkdir_p; then
23222 mkdir -p "$ac_dest_dir"
23224 as_dir="$ac_dest_dir"
23226 while test ! -d "$as_dir"; do
23227 as_dirs="$as_dir $as_dirs"
23228 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23230 X"$as_dir" : 'X\(//\)[^/]' \| \
23231 X"$as_dir" : 'X\(//\)$' \| \
23232 X"$as_dir" : 'X\(/\)' \| \
23233 . : '\(.\)' 2>/dev/null ||
23235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23237 /^X\(\/\/\)$/{ s//\1/; q; }
23238 /^X\(\/\).*/{ s//\1/; q; }
23241 test ! -n "$as_dirs" || mkdir $as_dirs
23242 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23243 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23244 { (exit 1); exit 1; }; }; }
23248 if test "$ac_dest_dir" != .; then
23249 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23250 # A "../" for each directory in $ac_dir_suffix.
23251 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23253 ac_dir_suffix= ac_top_builddir=
23257 .) # No --srcdir option. We are building in place.
23259 if test -z "$ac_top_builddir"; then
23262 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23264 [\\/]* | ?:[\\/]* ) # Absolute path.
23265 ac_srcdir=$srcdir$ac_dir_suffix;
23266 ac_top_srcdir=$srcdir ;;
23267 *) # Relative path.
23268 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23269 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23272 # Do not use `cd foo && pwd` to compute absolute paths, because
23273 # the directories may not exist.
23275 .) ac_abs_builddir="$ac_dest_dir";;
23277 case "$ac_dest_dir" in
23278 .) ac_abs_builddir=`pwd`;;
23279 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23280 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23283 case $ac_abs_builddir in
23284 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23286 case ${ac_top_builddir}. in
23287 .) ac_abs_top_builddir=$ac_abs_builddir;;
23288 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23289 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23292 case $ac_abs_builddir in
23293 .) ac_abs_srcdir=$ac_srcdir;;
23296 .) ac_abs_srcdir=$ac_abs_builddir;;
23297 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23298 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23301 case $ac_abs_builddir in
23302 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23304 case $ac_top_srcdir in
23305 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23306 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23307 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23313 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23314 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23317 # Try a symlink, then a hard link, then a copy.
23318 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23319 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23320 cp -p $srcdir/$ac_source $ac_dest ||
23321 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23322 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23323 { (exit 1); exit 1; }; }
23326 cat >>$CONFIG_STATUS <<\_ACEOF
23329 # CONFIG_COMMANDS section.
23331 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23332 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23333 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23334 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23335 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23336 X"$ac_dest" : 'X\(//\)[^/]' \| \
23337 X"$ac_dest" : 'X\(//\)$' \| \
23338 X"$ac_dest" : 'X\(/\)' \| \
23339 . : '\(.\)' 2>/dev/null ||
23341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23343 /^X\(\/\/\)$/{ s//\1/; q; }
23344 /^X\(\/\).*/{ s//\1/; q; }
23346 { if $as_mkdir_p; then
23351 while test ! -d "$as_dir"; do
23352 as_dirs="$as_dir $as_dirs"
23353 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23355 X"$as_dir" : 'X\(//\)[^/]' \| \
23356 X"$as_dir" : 'X\(//\)$' \| \
23357 X"$as_dir" : 'X\(/\)' \| \
23358 . : '\(.\)' 2>/dev/null ||
23360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23362 /^X\(\/\/\)$/{ s//\1/; q; }
23363 /^X\(\/\).*/{ s//\1/; q; }
23366 test ! -n "$as_dirs" || mkdir $as_dirs
23367 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23368 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23369 { (exit 1); exit 1; }; }; }
23373 if test "$ac_dir" != .; then
23374 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23375 # A "../" for each directory in $ac_dir_suffix.
23376 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23378 ac_dir_suffix= ac_top_builddir=
23382 .) # No --srcdir option. We are building in place.
23384 if test -z "$ac_top_builddir"; then
23387 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23389 [\\/]* | ?:[\\/]* ) # Absolute path.
23390 ac_srcdir=$srcdir$ac_dir_suffix;
23391 ac_top_srcdir=$srcdir ;;
23392 *) # Relative path.
23393 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23394 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23397 # Do not use `cd foo && pwd` to compute absolute paths, because
23398 # the directories may not exist.
23400 .) ac_abs_builddir="$ac_dir";;
23403 .) ac_abs_builddir=`pwd`;;
23404 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23405 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23408 case $ac_abs_builddir in
23409 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23411 case ${ac_top_builddir}. in
23412 .) ac_abs_top_builddir=$ac_abs_builddir;;
23413 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23414 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23417 case $ac_abs_builddir in
23418 .) ac_abs_srcdir=$ac_srcdir;;
23421 .) ac_abs_srcdir=$ac_abs_builddir;;
23422 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23423 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23426 case $ac_abs_builddir in
23427 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23429 case $ac_top_srcdir in
23430 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23431 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23432 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23437 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23438 echo "$as_me: executing $ac_dest commands" >&6;}
23442 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23443 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23444 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23445 mv -f Makefile.tmp Makefile
23448 case x$CONFIG_HEADERS in
23449 xconfig.h:config.in)
23457 cat >>$CONFIG_STATUS <<\_ACEOF
23459 { (exit 0); exit 0; }
23461 chmod +x $CONFIG_STATUS
23462 ac_clean_files=$ac_clean_files_save
23465 # configure is writing to config.log, and then calls config.status.
23466 # config.status does its own redirection, appending to config.log.
23467 # Unfortunately, on DOS this fails, as config.log is still kept open
23468 # by configure, so config.status won't be able to write to it; its
23469 # output is simply discarded. So we exec the FD to /dev/null,
23470 # effectively closing config.log, so it can be properly (re)opened and
23471 # appended to by config.status. When coming back to configure, we
23472 # need to make the FD available again.
23473 if test "$no_create" != yes; then
23475 ac_config_status_args=
23476 test "$silent" = yes &&
23477 ac_config_status_args="$ac_config_status_args --quiet"
23479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23482 # would make configure fail if this is the last instruction.
23483 $ac_cs_success || { (exit 1); exit 1; }
23487 # CONFIG_SUBDIRS section.
23489 if test "$no_recursion" != yes; then
23491 # Remove --cache-file and --srcdir arguments so they do not pile up.
23492 ac_sub_configure_args=
23494 for ac_arg in $ac_configure_args; do
23495 if test -n "$ac_prev"; then
23500 -cache-file | --cache-file | --cache-fil | --cache-fi \
23501 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23502 ac_prev=cache_file ;;
23503 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23504 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23507 --config-cache | -C)
23509 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23511 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23513 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23515 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23517 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23521 # Always prepend --prefix to ensure using the same prefix
23522 # in subdir configurations.
23523 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23526 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23528 # Do not complain, so a configure script can configure whichever
23529 # parts of a large source tree are present.
23530 test -d $srcdir/$ac_dir || continue
23532 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23533 echo "$as_me: configuring in $ac_dir" >&6;}
23534 { if $as_mkdir_p; then
23539 while test ! -d "$as_dir"; do
23540 as_dirs="$as_dir $as_dirs"
23541 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23543 X"$as_dir" : 'X\(//\)[^/]' \| \
23544 X"$as_dir" : 'X\(//\)$' \| \
23545 X"$as_dir" : 'X\(/\)' \| \
23546 . : '\(.\)' 2>/dev/null ||
23548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23550 /^X\(\/\/\)$/{ s//\1/; q; }
23551 /^X\(\/\).*/{ s//\1/; q; }
23554 test ! -n "$as_dirs" || mkdir $as_dirs
23555 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23556 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23557 { (exit 1); exit 1; }; }; }
23561 if test "$ac_dir" != .; then
23562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23563 # A "../" for each directory in $ac_dir_suffix.
23564 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23566 ac_dir_suffix= ac_top_builddir=
23570 .) # No --srcdir option. We are building in place.
23572 if test -z "$ac_top_builddir"; then
23575 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23577 [\\/]* | ?:[\\/]* ) # Absolute path.
23578 ac_srcdir=$srcdir$ac_dir_suffix;
23579 ac_top_srcdir=$srcdir ;;
23580 *) # Relative path.
23581 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23582 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23585 # Do not use `cd foo && pwd` to compute absolute paths, because
23586 # the directories may not exist.
23588 .) ac_abs_builddir="$ac_dir";;
23591 .) ac_abs_builddir=`pwd`;;
23592 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23593 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23596 case $ac_abs_builddir in
23597 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23599 case ${ac_top_builddir}. in
23600 .) ac_abs_top_builddir=$ac_abs_builddir;;
23601 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23602 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23605 case $ac_abs_builddir in
23606 .) ac_abs_srcdir=$ac_srcdir;;
23609 .) ac_abs_srcdir=$ac_abs_builddir;;
23610 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23611 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23614 case $ac_abs_builddir in
23615 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23617 case $ac_top_srcdir in
23618 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23619 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23620 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23627 # Check for guested configure; otherwise get Cygnus style configure.
23628 if test -f $ac_srcdir/configure.gnu; then
23629 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23630 elif test -f $ac_srcdir/configure; then
23631 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23632 elif test -f $ac_srcdir/configure.in; then
23633 ac_sub_configure=$ac_configure
23635 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23636 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23640 # The recursion is here.
23641 if test -n "$ac_sub_configure"; then
23642 # Make the cache file name correct relative to the subdirectory.
23643 case $cache_file in
23644 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23645 *) # Relative path.
23646 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23649 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23650 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23651 # The eval makes quoting arguments work.
23652 eval $ac_sub_configure $ac_sub_configure_args \
23653 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23654 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23655 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23656 { (exit 1); exit 1; }; }