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 RANLIB ac_ct_RANLIB SET_MAKE 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-build-warnings Enable build-time compiler warnings if gcc is used
870 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
871 --enable-sim Link gdb with simulator
872 --enable-multi-ice build the multi-ice-gdb-server
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-included-gettext use the GNU gettext library included here
878 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
880 --without-included-regex don't use included regex; this is the default
881 on systems with version 2 of the GNU C library
882 (use with caution on other system)
883 --with-sysroot=DIR Search for usr/lib et al within DIR.
884 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
885 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
886 --with-tclinclude=DIR Directory where tcl private headers are
887 --with-tkinclude=DIR Directory where tk private headers are
888 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
889 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
890 --with-x use the X Window System
891 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
893 Some influential environment variables:
894 CC C compiler command
895 CFLAGS C compiler flags
896 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
897 nonstandard directory <lib dir>
898 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
899 headers in a nonstandard directory <include dir>
902 Use these variables to override the choices made by `configure' or to help
903 it to find libraries and programs with nonstandard names/locations.
908 if test "$ac_init_help" = "recursive"; then
909 # If there are subdirs, report their specific --help.
911 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
912 test -d $ac_dir || continue
915 if test "$ac_dir" != .; then
916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
917 # A "../" for each directory in $ac_dir_suffix.
918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 ac_dir_suffix= ac_top_builddir=
924 .) # No --srcdir option. We are building in place.
926 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 [\\/]* | ?:[\\/]* ) # Absolute path.
932 ac_srcdir=$srcdir$ac_dir_suffix;
933 ac_top_srcdir=$srcdir ;;
935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 # Do not use `cd foo && pwd` to compute absolute paths, because
940 # the directories may not exist.
942 .) ac_abs_builddir="$ac_dir";;
945 .) ac_abs_builddir=`pwd`;;
946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
947 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 case $ac_abs_builddir in
951 .) ac_abs_top_builddir=${ac_top_builddir}.;;
953 case ${ac_top_builddir}. in
954 .) ac_abs_top_builddir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 case $ac_abs_builddir in
960 .) ac_abs_srcdir=$ac_srcdir;;
963 .) ac_abs_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 case $ac_abs_builddir in
969 .) ac_abs_top_srcdir=$ac_top_srcdir;;
971 case $ac_top_srcdir in
972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
979 # Check for guested configure; otherwise get Cygnus style configure.
980 if test -f $ac_srcdir/configure.gnu; then
982 $SHELL $ac_srcdir/configure.gnu --help=recursive
983 elif test -f $ac_srcdir/configure; then
985 $SHELL $ac_srcdir/configure --help=recursive
986 elif test -f $ac_srcdir/configure.ac ||
987 test -f $ac_srcdir/configure.in; then
991 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997 test -n "$ac_init_help" && exit 0
998 if $ac_init_version; then
1001 Copyright (C) 2003 Free Software Foundation, Inc.
1002 This configure script is free software; the Free Software Foundation
1003 gives unlimited permission to copy, distribute and modify it.
1009 This file contains any messages produced by compilers while
1010 running configure, to aid debugging if configure makes a mistake.
1012 It was created by $as_me, which was
1013 generated by GNU Autoconf 2.59. Invocation command line was
1024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1031 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1033 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1034 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1036 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1037 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1038 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1039 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1047 test -z "$as_dir" && as_dir=.
1048 echo "PATH: $as_dir"
1063 # Keep a trace of the command line.
1064 # Strip out --no-create and --no-recursion so they do not pile up.
1065 # Strip out --silent because we don't want to record it for future runs.
1066 # Also quote any args containing shell meta-characters.
1067 # Make two passes to allow for proper duplicate-argument suppression.
1072 ac_must_keep_next=false
1078 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1082 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1083 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1089 if test $ac_must_keep_next = true; then
1090 ac_must_keep_next=false # Got value, back to normal.
1093 *=* | --config-cache | -C | -disable-* | --disable-* \
1094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1096 | -with-* | --with-* | -without-* | --without-* | --x)
1097 case "$ac_configure_args0 " in
1098 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 -* ) ac_must_keep_next=true ;;
1104 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1105 # Get rid of the leading space.
1111 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1112 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114 # When interrupted or exit'd, cleanup temporary files, and complete
1115 # config.log. We remove comments because anyway the quotes in there
1116 # would cause problems or look ugly.
1117 # WARNING: Be sure not to use single quotes in there, as some shells,
1118 # such as our DU 5.0 friend, will then `close' the trap.
1119 trap 'exit_status=$?
1120 # Save into config.log some information that might help in debugging.
1125 ## ---------------- ##
1126 ## Cache variables. ##
1127 ## ---------------- ##
1130 # The following way of writing the cache mishandles newlines in values,
1133 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148 ## ----------------- ##
1149 ## Output variables. ##
1150 ## ----------------- ##
1153 for ac_var in $ac_subst_vars
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1160 if test -n "$ac_subst_files"; then
1167 for ac_var in $ac_subst_files
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -s confdefs.h; then
1182 sed "/^$/d" confdefs.h | sort
1185 test "$ac_signal" != 0 &&
1186 echo "$as_me: caught signal $ac_signal"
1187 echo "$as_me: exit $exit_status"
1189 rm -f core *.core &&
1190 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 for ac_signal in 1 2 13 15; do
1194 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1199 rm -rf conftest* confdefs.h
1200 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203 # Predefined preprocessor variables.
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_NAME "$PACKAGE_NAME"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_STRING "$PACKAGE_STRING"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1230 # Let the site file select an alternate cache file if it wants to.
1231 # Prefer explicitly selected file to automatically selected ones.
1232 if test -z "$CONFIG_SITE"; then
1233 if test "x$prefix" != xNONE; then
1234 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239 for ac_site_file in $CONFIG_SITE; do
1240 if test -r "$ac_site_file"; then
1241 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1242 echo "$as_me: loading site script $ac_site_file" >&6;}
1243 sed 's/^/| /' "$ac_site_file" >&5
1248 if test -r "$cache_file"; then
1249 # Some versions of bash will fail to source /dev/null (special
1250 # files actually), so we avoid doing that.
1251 if test -f "$cache_file"; then
1252 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1253 echo "$as_me: loading cache $cache_file" >&6;}
1255 [\\/]* | ?:[\\/]* ) . $cache_file;;
1256 *) . ./$cache_file;;
1260 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1261 echo "$as_me: creating cache $cache_file" >&6;}
1265 # Check that the precious variables saved in the cache have kept the same
1267 ac_cache_corrupted=false
1268 for ac_var in `(set) 2>&1 |
1269 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1271 eval ac_new_set=\$ac_env_${ac_var}_set
1272 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1273 eval ac_new_val="\$ac_env_${ac_var}_value"
1274 case $ac_old_set,$ac_new_set in
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1285 if test "x$ac_old_val" != "x$ac_new_val"; then
1286 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1287 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1288 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1289 echo "$as_me: former value: $ac_old_val" >&2;}
1290 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1291 echo "$as_me: current value: $ac_new_val" >&2;}
1292 ac_cache_corrupted=:
1295 # Pass precious variables to config.status.
1296 if test "$ac_new_set" = set; then
1298 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1299 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1300 *) ac_arg=$ac_var=$ac_new_val ;;
1302 case " $ac_configure_args " in
1303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1304 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1308 if $ac_cache_corrupted; then
1309 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1310 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1311 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1312 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1313 { (exit 1); exit 1; }; }
1317 ac_cpp='$CPP $CPPFLAGS'
1318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_config_headers="$ac_config_headers config.h:config.in"
1342 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1343 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1344 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1345 if test "${enable_maintainer_mode+set}" = set; then
1346 enableval="$enable_maintainer_mode"
1347 USE_MAINTAINER_MODE=$enableval
1349 USE_MAINTAINER_MODE=no
1351 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1352 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1355 if test $USE_MAINTAINER_MODE = yes; then
1356 MAINTAINER_MODE_TRUE=
1357 MAINTAINER_MODE_FALSE='#'
1359 MAINTAINER_MODE_TRUE='#'
1360 MAINTAINER_MODE_FALSE=
1362 MAINT=$MAINTAINER_MODE_TRUE
1367 ac_cpp='$CPP $CPPFLAGS'
1368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371 if test -n "$ac_tool_prefix"; then
1372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1373 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1374 echo "$as_me:$LINENO: checking for $ac_word" >&5
1375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376 if test "${ac_cv_prog_CC+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 if test -n "$CC"; then
1380 ac_cv_prog_CC="$CC" # Let the user override the test.
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 test -z "$as_dir" && as_dir=.
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1399 if test -n "$CC"; then
1400 echo "$as_me:$LINENO: result: $CC" >&5
1401 echo "${ECHO_T}$CC" >&6
1403 echo "$as_me:$LINENO: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1408 if test -z "$ac_cv_prog_CC"; then
1410 # Extract the first word of "gcc", so it can be a program name with args.
1411 set dummy gcc; ac_word=$2
1412 echo "$as_me:$LINENO: checking for $ac_word" >&5
1413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 if test -n "$ac_ct_CC"; then
1418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 test -z "$as_dir" && as_dir=.
1425 for ac_exec_ext in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427 ac_cv_prog_ac_ct_CC="gcc"
1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1437 if test -n "$ac_ct_CC"; then
1438 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1439 echo "${ECHO_T}$ac_ct_CC" >&6
1441 echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1450 if test -z "$CC"; then
1451 if test -n "$ac_tool_prefix"; then
1452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1453 set dummy ${ac_tool_prefix}cc; ac_word=$2
1454 echo "$as_me:$LINENO: checking for $ac_word" >&5
1455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456 if test "${ac_cv_prog_CC+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test.
1462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 test -z "$as_dir" && as_dir=.
1467 for ac_exec_ext in '' $ac_executable_extensions; do
1468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1469 ac_cv_prog_CC="${ac_tool_prefix}cc"
1470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1479 if test -n "$CC"; then
1480 echo "$as_me:$LINENO: result: $CC" >&5
1481 echo "${ECHO_T}$CC" >&6
1483 echo "$as_me:$LINENO: result: no" >&5
1484 echo "${ECHO_T}no" >&6
1488 if test -z "$ac_cv_prog_CC"; then
1490 # Extract the first word of "cc", so it can be a program name with args.
1491 set dummy cc; ac_word=$2
1492 echo "$as_me:$LINENO: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 if test -n "$ac_ct_CC"; then
1498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_prog_ac_ct_CC="cc"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1517 if test -n "$ac_ct_CC"; then
1518 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1519 echo "${ECHO_T}$ac_ct_CC" >&6
1521 echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1531 if test -z "$CC"; then
1532 # Extract the first word of "cc", so it can be a program name with args.
1533 set dummy cc; ac_word=$2
1534 echo "$as_me:$LINENO: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1551 ac_prog_rejected=yes
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 if test $ac_prog_rejected = yes; then
1562 # We found a bogon in the path, so make sure we never use it.
1563 set dummy $ac_cv_prog_CC
1565 if test $# != 0; then
1566 # We chose a different compiler from the bogus one.
1567 # However, it has the same basename, so the bogon will be chosen
1568 # first if we set CC to just the basename; use the full file name.
1570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1576 if test -n "$CC"; then
1577 echo "$as_me:$LINENO: result: $CC" >&5
1578 echo "${ECHO_T}$CC" >&6
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1585 if test -z "$CC"; then
1586 if test -n "$ac_tool_prefix"; then
1589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616 if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618 echo "${ECHO_T}$CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1624 test -n "$CC" && break
1627 if test -z "$CC"; then
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632 set dummy $ac_prog; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658 if test -n "$ac_ct_CC"; then
1659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660 echo "${ECHO_T}$ac_ct_CC" >&6
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1666 test -n "$ac_ct_CC" && break
1675 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1676 See \`config.log' for more details." >&5
1677 echo "$as_me: error: no acceptable C compiler found in \$PATH
1678 See \`config.log' for more details." >&2;}
1679 { (exit 1); exit 1; }; }
1681 # Provide some information about the compiler.
1682 echo "$as_me:$LINENO:" \
1683 "checking for C compiler version" >&5
1684 ac_compiler=`set X $ac_compile; echo $2`
1685 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1686 (eval $ac_compiler --version </dev/null >&5) 2>&5
1688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1689 (exit $ac_status); }
1690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1691 (eval $ac_compiler -v </dev/null >&5) 2>&5
1693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694 (exit $ac_status); }
1695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1696 (eval $ac_compiler -V </dev/null >&5) 2>&5
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1701 cat >conftest.$ac_ext <<_ACEOF
1704 cat confdefs.h >>conftest.$ac_ext
1705 cat >>conftest.$ac_ext <<_ACEOF
1706 /* end confdefs.h. */
1716 ac_clean_files_save=$ac_clean_files
1717 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1718 # Try to create an executable without -o first, disregard a.out.
1719 # It will help us diagnose broken compilers, and finding out an intuition
1721 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1722 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1724 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1725 (eval $ac_link_default) 2>&5
1727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728 (exit $ac_status); }; then
1729 # Find the output, starting from the most likely. This scheme is
1730 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733 # Be careful to initialize this variable, since it used to be cached.
1734 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1736 # b.out is created by i960 compilers.
1737 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1739 test -f "$ac_file" || continue
1741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1744 # This is the source file.
1747 # We found the default executable, but exeext='' is most
1751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1752 # FIXME: I believe we export ac_cv_exeext for Libtool,
1753 # but it would be cool to find out if it's true. Does anybody
1754 # maintain Libtool? --akim.
1762 echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1766 See \`config.log' for more details." >&5
1767 echo "$as_me: error: C compiler cannot create executables
1768 See \`config.log' for more details." >&2;}
1769 { (exit 77); exit 77; }; }
1772 ac_exeext=$ac_cv_exeext
1773 echo "$as_me:$LINENO: result: $ac_file" >&5
1774 echo "${ECHO_T}$ac_file" >&6
1776 # Check the compiler produces executables we can run. If not, either
1777 # the compiler is broken, or we cross compile.
1778 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781 # If not cross compiling, check that we can run a simple program.
1782 if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
1784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1791 if test "$cross_compiling" = maybe; then
1794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'.
1796 See \`config.log' for more details." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'.
1799 See \`config.log' for more details." >&2;}
1800 { (exit 1); exit 1; }; }
1804 echo "$as_me:$LINENO: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1807 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1808 ac_clean_files=$ac_clean_files_save
1809 # Check the compiler produces executables we can run. If not, either
1810 # the compiler is broken, or we cross compile.
1811 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1812 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1813 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1814 echo "${ECHO_T}$cross_compiling" >&6
1816 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1817 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1819 (eval $ac_link) 2>&5
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1824 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1825 # work properly (i.e., refer to `conftest.exe'), while it won't with
1827 for ac_file in conftest.exe conftest conftest.*; do
1828 test -f "$ac_file" || continue
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1839 See \`config.log' for more details." >&5
1840 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1841 See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest$ac_cv_exeext
1846 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1847 echo "${ECHO_T}$ac_cv_exeext" >&6
1849 rm -f conftest.$ac_ext
1850 EXEEXT=$ac_cv_exeext
1852 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1853 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1854 if test "${ac_cv_objext+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 cat >conftest.$ac_ext <<_ACEOF
1860 cat confdefs.h >>conftest.$ac_ext
1861 cat >>conftest.$ac_ext <<_ACEOF
1862 /* end confdefs.h. */
1872 rm -f conftest.o conftest.obj
1873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1881 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1886 echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1892 See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
1896 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1898 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1899 echo "${ECHO_T}$ac_cv_objext" >&6
1900 OBJEXT=$ac_cv_objext
1902 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1903 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1904 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 cat >conftest.$ac_ext <<_ACEOF
1910 cat confdefs.h >>conftest.$ac_ext
1911 cat >>conftest.$ac_ext <<_ACEOF
1912 /* end confdefs.h. */
1925 rm -f conftest.$ac_objext
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>conftest.er1
1929 grep -v '^ *+' conftest.er1 >conftest.err
1931 cat conftest.err >&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); } &&
1934 { ac_try='test -z "$ac_c_werror_flag"
1935 || test ! -s conftest.err'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; } &&
1941 { ac_try='test -s conftest.$ac_objext'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1958 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1960 GCC=`test $ac_compiler_gnu = yes && echo yes`
1961 ac_test_CFLAGS=${CFLAGS+set}
1962 ac_save_CFLAGS=$CFLAGS
1964 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1965 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1966 if test "${ac_cv_prog_cc_g+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 cat >conftest.$ac_ext <<_ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1984 rm -f conftest.$ac_objext
1985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1986 (eval $ac_compile) 2>conftest.er1
1988 grep -v '^ *+' conftest.er1 >conftest.err
1990 cat conftest.err >&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -z "$ac_c_werror_flag"
1994 || 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"
2111 || test ! -s conftest.err'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 ac_cv_prog_cc_stdc=$ac_arg
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2130 rm -f conftest.err conftest.$ac_objext
2132 rm -f conftest.$ac_ext conftest.$ac_objext
2137 case "x$ac_cv_prog_cc_stdc" in
2139 echo "$as_me:$LINENO: result: none needed" >&5
2140 echo "${ECHO_T}none needed" >&6 ;;
2142 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2143 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2144 CC="$CC $ac_cv_prog_cc_stdc" ;;
2147 # Some people use a C++ compiler to compile C. Since we use `exit',
2148 # in C++ we need to declare it. In case someone uses the same compiler
2149 # for both compiling C and C++ we need to have the C++ compiler decide
2150 # the declaration of exit, since it's the most demanding environment.
2151 cat >conftest.$ac_ext <<_ACEOF
2156 rm -f conftest.$ac_objext
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2160 grep -v '^ *+' conftest.er1 >conftest.err
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -z "$ac_c_werror_flag"
2166 || test ! -s conftest.err'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 for ac_declaration in \
2180 'extern "C" void std::exit (int) throw (); using std::exit;' \
2181 'extern "C" void std::exit (int); using std::exit;' \
2182 'extern "C" void exit (int) throw ();' \
2183 'extern "C" void exit (int);' \
2186 cat >conftest.$ac_ext <<_ACEOF
2189 cat confdefs.h >>conftest.$ac_ext
2190 cat >>conftest.$ac_ext <<_ACEOF
2191 /* end confdefs.h. */
2202 rm -f conftest.$ac_objext
2203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>conftest.er1
2206 grep -v '^ *+' conftest.er1 >conftest.err
2208 cat conftest.err >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
2211 { ac_try='test -z "$ac_c_werror_flag"
2212 || test ! -s conftest.err'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232 cat >conftest.$ac_ext <<_ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>conftest.er1
2251 grep -v '^ *+' conftest.er1 >conftest.err
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -z "$ac_c_werror_flag"
2257 || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 if test -n "$ac_declaration"; then
2279 echo '#ifdef __cplusplus' >>confdefs.h
2280 echo $ac_declaration >>confdefs.h
2281 echo '#endif' >>confdefs.h
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291 ac_cpp='$CPP $CPPFLAGS'
2292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296 cat >>confdefs.h <<\_ACEOF
2297 #define _GNU_SOURCE 1
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2308 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2309 # On Suns, sometimes $CPP names a directory.
2310 if test -n "$CPP" && test -d "$CPP"; then
2313 if test -z "$CPP"; then
2314 if test "${ac_cv_prog_CPP+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 # Double quotes because CPP needs to be expanded
2318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2321 for ac_c_preproc_warn_flag in '' yes
2323 # Use a header file that comes with gcc, so configuring glibc
2324 # with a fresh cross-compiler works.
2325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2326 # <limits.h> exists even on freestanding compilers.
2327 # On the NeXT, cc -E runs the code through the compiler's parser,
2328 # not just through cpp. "Syntax error" is here to catch this case.
2329 cat >conftest.$ac_ext <<_ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2336 # include <limits.h>
2338 # include <assert.h>
2342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2345 grep -v '^ *+' conftest.er1 >conftest.err
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } >/dev/null; then
2350 if test -s conftest.err; then
2351 ac_cpp_err=$ac_c_preproc_warn_flag
2352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2359 if test -z "$ac_cpp_err"; then
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2365 # Broken: fails on valid input.
2368 rm -f conftest.err conftest.$ac_ext
2370 # OK, works on sane cases. Now check whether non-existent headers
2371 # can be detected and how.
2372 cat >conftest.$ac_ext <<_ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2378 #include <ac_nonexistent.h>
2380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } >/dev/null; then
2388 if test -s conftest.err; then
2389 ac_cpp_err=$ac_c_preproc_warn_flag
2390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2397 if test -z "$ac_cpp_err"; then
2398 # Broken: success on invalid input.
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2404 # Passes both tests.
2408 rm -f conftest.err conftest.$ac_ext
2411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2412 rm -f conftest.err conftest.$ac_ext
2413 if $ac_preproc_ok; then
2425 echo "$as_me:$LINENO: result: $CPP" >&5
2426 echo "${ECHO_T}$CPP" >&6
2428 for ac_c_preproc_warn_flag in '' yes
2430 # Use a header file that comes with gcc, so configuring glibc
2431 # with a fresh cross-compiler works.
2432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2433 # <limits.h> exists even on freestanding compilers.
2434 # On the NeXT, cc -E runs the code through the compiler's parser,
2435 # not just through cpp. "Syntax error" is here to catch this case.
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2443 # include <limits.h>
2445 # include <assert.h>
2449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2452 grep -v '^ *+' conftest.er1 >conftest.err
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } >/dev/null; then
2457 if test -s conftest.err; then
2458 ac_cpp_err=$ac_c_preproc_warn_flag
2459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2466 if test -z "$ac_cpp_err"; then
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2472 # Broken: fails on valid input.
2475 rm -f conftest.err conftest.$ac_ext
2477 # OK, works on sane cases. Now check whether non-existent headers
2478 # can be detected and how.
2479 cat >conftest.$ac_ext <<_ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2485 #include <ac_nonexistent.h>
2487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2504 if test -z "$ac_cpp_err"; then
2505 # Broken: success on invalid input.
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2511 # Passes both tests.
2515 rm -f conftest.err conftest.$ac_ext
2518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2519 rm -f conftest.err conftest.$ac_ext
2520 if $ac_preproc_ok; then
2523 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537 echo "$as_me:$LINENO: checking for egrep" >&5
2538 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2539 if test "${ac_cv_prog_egrep+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2543 then ac_cv_prog_egrep='grep -E'
2544 else ac_cv_prog_egrep='egrep'
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2548 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2549 EGREP=$ac_cv_prog_egrep
2553 echo "$as_me:$LINENO: checking for AIX" >&5
2554 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2555 cat >conftest.$ac_ext <<_ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h. */
2566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2567 $EGREP "yes" >/dev/null 2>&1; then
2568 echo "$as_me:$LINENO: result: yes" >&5
2569 echo "${ECHO_T}yes" >&6
2570 cat >>confdefs.h <<\_ACEOF
2571 #define _ALL_SOURCE 1
2575 echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2581 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2582 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2583 if test "${ac_cv_search_strerror+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 ac_func_search_save_LIBS=$LIBS
2587 ac_cv_search_strerror=no
2588 cat >conftest.$ac_ext <<_ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2595 /* Override any gcc2 internal prototype to avoid an error. */
2599 /* We use char because int might match the return type of a gcc2
2600 builtin and then its argument prototype would still apply. */
2610 rm -f conftest.$ac_objext conftest$ac_exeext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2612 (eval $ac_link) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1 >conftest.err
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest$ac_exeext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_search_strerror="none required"
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2638 rm -f conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2640 if test "$ac_cv_search_strerror" = no; then
2641 for ac_lib in cposix; do
2642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2650 /* Override any gcc2 internal prototype to avoid an error. */
2654 /* We use char because int might match the return type of a gcc2
2655 builtin and then its argument prototype would still apply. */
2665 rm -f conftest.$ac_objext conftest$ac_exeext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2667 (eval $ac_link) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_c_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest$ac_exeext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 ac_cv_search_strerror="-l$ac_lib"
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f conftest.err conftest.$ac_objext \
2695 conftest$ac_exeext conftest.$ac_ext
2698 LIBS=$ac_func_search_save_LIBS
2700 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2701 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2702 if test "$ac_cv_search_strerror" != no; then
2703 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2710 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2711 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2712 if test "${am_cv_prog_cc_stdc+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 am_cv_prog_cc_stdc=no
2717 # Don't try gcc -ansi; that turns off useful extensions and
2718 # breaks some systems' header files.
2719 # AIX -qlanglvl=ansi
2720 # Ultrix and OSF/1 -std1
2721 # HP-UX 10.20 and later -Ae
2722 # HP-UX older versions -Aa -D_HPUX_SOURCE
2723 # SVR4 -Xc -D__EXTENSIONS__
2724 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 CC="$ac_save_CC $ac_arg"
2727 cat >conftest.$ac_ext <<_ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2735 #include <sys/types.h>
2736 #include <sys/stat.h>
2737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2738 struct buf { int x; };
2739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740 static char *e (p, i)
2746 static char *f (char * (*g) (char **, int), char **p, ...)
2751 s = g (p, va_arg (v,int));
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 am_cv_prog_cc_stdc="$ac_arg"; break
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 if test -z "$am_cv_prog_cc_stdc"; then
2807 echo "$as_me:$LINENO: result: none needed" >&5
2808 echo "${ECHO_T}none needed" >&6
2810 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2811 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2813 case "x$am_cv_prog_cc_stdc" in
2815 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2820 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2821 if test -f $ac_dir/install-sh; then
2823 ac_install_sh="$ac_aux_dir/install-sh -c"
2825 elif test -f $ac_dir/install.sh; then
2827 ac_install_sh="$ac_aux_dir/install.sh -c"
2829 elif test -f $ac_dir/shtool; then
2831 ac_install_sh="$ac_aux_dir/shtool install -c"
2835 if test -z "$ac_aux_dir"; then
2836 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2837 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2838 { (exit 1); exit 1; }; }
2840 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2841 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2842 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2844 # Make sure we can run config.sub.
2845 $ac_config_sub sun4 >/dev/null 2>&1 ||
2846 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2847 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2848 { (exit 1); exit 1; }; }
2850 echo "$as_me:$LINENO: checking build system type" >&5
2851 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2852 if test "${ac_cv_build+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 ac_cv_build_alias=$build_alias
2856 test -z "$ac_cv_build_alias" &&
2857 ac_cv_build_alias=`$ac_config_guess`
2858 test -z "$ac_cv_build_alias" &&
2859 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2860 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2861 { (exit 1); exit 1; }; }
2862 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2863 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2864 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2865 { (exit 1); exit 1; }; }
2868 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2869 echo "${ECHO_T}$ac_cv_build" >&6
2871 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2872 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2873 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2876 echo "$as_me:$LINENO: checking host system type" >&5
2877 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2878 if test "${ac_cv_host+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 ac_cv_host_alias=$host_alias
2882 test -z "$ac_cv_host_alias" &&
2883 ac_cv_host_alias=$ac_cv_build_alias
2884 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2885 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2886 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2887 { (exit 1); exit 1; }; }
2890 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2891 echo "${ECHO_T}$ac_cv_host" >&6
2893 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2894 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2895 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2898 echo "$as_me:$LINENO: checking target system type" >&5
2899 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2900 if test "${ac_cv_target+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 ac_cv_target_alias=$target_alias
2904 test "x$ac_cv_target_alias" = "x" &&
2905 ac_cv_target_alias=$ac_cv_host_alias
2906 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2907 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2908 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2909 { (exit 1); exit 1; }; }
2912 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2913 echo "${ECHO_T}$ac_cv_target" >&6
2914 target=$ac_cv_target
2915 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2916 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2917 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2920 # The aliases save the names the user supplied, while $host etc.
2921 # will get canonicalized.
2922 test -n "$target_alias" &&
2923 test "$program_prefix$program_suffix$program_transform_name" = \
2925 program_prefix=${target_alias}-
2927 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
2928 # doesn't support cross-compilation, but the one from Autoconf 2.5x
2929 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
2930 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
2931 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2936 echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_prog_RANLIB+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 if test -n "$RANLIB"; then
2942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 RANLIB=$ac_cv_prog_RANLIB
2961 if test -n "$RANLIB"; then
2962 echo "$as_me:$LINENO: result: $RANLIB" >&5
2963 echo "${ECHO_T}$RANLIB" >&6
2965 echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2970 if test -z "$ac_cv_prog_RANLIB"; then
2971 ac_ct_RANLIB=$RANLIB
2972 # Extract the first word of "ranlib", so it can be a program name with args.
2973 set dummy ranlib; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$ac_ct_RANLIB"; then
2980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_ac_ct_RANLIB="ranlib"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2999 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3000 if test -n "$ac_ct_RANLIB"; then
3001 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3002 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3004 echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6
3008 RANLIB=$ac_ct_RANLIB
3010 RANLIB="$ac_cv_prog_RANLIB"
3026 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3027 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3028 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3029 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 cat >conftest.make <<\_ACEOF
3034 @echo 'ac_maketemp="$(MAKE)"'
3036 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3037 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3038 if test -n "$ac_maketemp"; then
3039 eval ac_cv_prog_make_${ac_make}_set=yes
3041 eval ac_cv_prog_make_${ac_make}_set=no
3045 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3046 echo "$as_me:$LINENO: result: yes" >&5
3047 echo "${ECHO_T}yes" >&6
3050 echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3052 SET_MAKE="MAKE=${MAKE-make}"
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_prog_RANLIB+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 if test -n "$RANLIB"; then
3064 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 RANLIB=$ac_cv_prog_RANLIB
3083 if test -n "$RANLIB"; then
3084 echo "$as_me:$LINENO: result: $RANLIB" >&5
3085 echo "${ECHO_T}$RANLIB" >&6
3087 echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3092 if test -z "$ac_cv_prog_RANLIB"; then
3093 ac_ct_RANLIB=$RANLIB
3094 # Extract the first word of "ranlib", so it can be a program name with args.
3095 set dummy ranlib; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 if test -n "$ac_ct_RANLIB"; then
3102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_RANLIB="ranlib"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3121 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3122 if test -n "$ac_ct_RANLIB"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3124 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3126 echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3130 RANLIB=$ac_ct_RANLIB
3132 RANLIB="$ac_cv_prog_RANLIB"
3135 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3136 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3137 if test "${ac_cv_header_stdc+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3159 rm -f conftest.$ac_objext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag"
3169 || test ! -s conftest.err'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 ac_cv_header_stdc=yes
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 ac_cv_header_stdc=no
3188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3190 if test $ac_cv_header_stdc = yes; then
3191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202 $EGREP "memchr" >/dev/null 2>&1; then
3205 ac_cv_header_stdc=no
3211 if test $ac_cv_header_stdc = yes; then
3212 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223 $EGREP "free" >/dev/null 2>&1; then
3226 ac_cv_header_stdc=no
3232 if test $ac_cv_header_stdc = yes; then
3233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3234 if test "$cross_compiling" = yes; then
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3244 #if ((' ' & 0x0FF) == 0x020)
3245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3248 # define ISLOWER(c) \
3249 (('a' <= (c) && (c) <= 'i') \
3250 || ('j' <= (c) && (c) <= 'r') \
3251 || ('s' <= (c) && (c) <= 'z'))
3252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3260 for (i = 0; i < 256; i++)
3261 if (XOR (islower (i), ISLOWER (i))
3262 || toupper (i) != TOUPPER (i))
3267 rm -f conftest$ac_exeext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3280 echo "$as_me: program exited with status $ac_status" >&5
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3285 ac_cv_header_stdc=no
3287 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3291 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3292 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3293 if test $ac_cv_header_stdc = yes; then
3295 cat >>confdefs.h <<\_ACEOF
3296 #define STDC_HEADERS 1
3301 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3302 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3303 if test "${ac_cv_c_const+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3316 /* FIXME: Include the comments suggested by Paul. */
3318 /* Ultrix mips cc rejects this. */
3319 typedef int charset[2];
3321 /* SunOS 4.1.1 cc rejects this. */
3322 char const *const *ccp;
3324 /* NEC SVR4.0.2 mips cc rejects this. */
3325 struct point {int x, y;};
3326 static struct point const zero = {0,0};
3327 /* AIX XL C 1.02.0.0 rejects this.
3328 It does not let you subtract one const X* pointer from another in
3329 an arm of an if-expression whose if-part is not a constant
3331 const char *g = "string";
3332 ccp = &g + (g ? g-g : 0);
3333 /* HPUX 7.0 cc rejects these. */
3336 ccp = (char const *const *) p;
3337 { /* SCO 3.2v4 cc rejects this. */
3339 char const *s = 0 ? (char *) 0 : (char const *) 0;
3343 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3345 const int *foo = &x[0];
3348 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3349 typedef const int *iptr;
3353 { /* AIX XL C 1.02.0.0 rejects this saying
3354 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3355 struct s { int j; const int *ap[3]; };
3356 struct s *b; b->j = 5;
3358 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369 (eval $ac_compile) 2>conftest.er1
3371 grep -v '^ *+' conftest.er1 >conftest.err
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag"
3377 || test ! -s conftest.err'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3399 echo "${ECHO_T}$ac_cv_c_const" >&6
3400 if test $ac_cv_c_const = no; then
3402 cat >>confdefs.h <<\_ACEOF
3408 echo "$as_me:$LINENO: checking for inline" >&5
3409 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3410 if test "${ac_cv_c_inline+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 for ac_kw in inline __inline__ __inline; do
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3423 static $ac_kw foo_t static_foo () {return 0; }
3424 $ac_kw foo_t foo () {return 0; }
3428 rm -f conftest.$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_c_werror_flag"
3438 || test ! -s conftest.err'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 ac_cv_c_inline=$ac_kw; break
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3460 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3461 echo "${ECHO_T}$ac_cv_c_inline" >&6
3464 case $ac_cv_c_inline in
3467 case $ac_cv_c_inline in
3469 *) ac_val=$ac_cv_c_inline;;
3471 cat >>confdefs.h <<_ACEOF
3473 #define inline $ac_val
3479 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3490 inttypes.h stdint.h unistd.h
3492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3493 echo "$as_me:$LINENO: checking for $ac_header" >&5
3494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 $ac_includes_default
3506 #include <$ac_header>
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 eval "$as_ac_Header=yes"
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 eval "$as_ac_Header=no"
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3542 cat >>confdefs.h <<_ACEOF
3543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3551 echo "$as_me:$LINENO: checking for off_t" >&5
3552 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3553 if test "${ac_cv_type_off_t+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 $ac_includes_default
3574 rm -f conftest.$ac_objext
3575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -z "$ac_c_werror_flag"
3584 || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } &&
3590 { ac_try='test -s conftest.$ac_objext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_type_off_t=yes
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3605 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3606 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3607 if test $ac_cv_type_off_t = yes; then
3611 cat >>confdefs.h <<_ACEOF
3617 echo "$as_me:$LINENO: checking for size_t" >&5
3618 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3619 if test "${ac_cv_type_size_t+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 cat >conftest.$ac_ext <<_ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3628 $ac_includes_default
3634 if (sizeof (size_t))
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_type_size_t=yes
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 ac_cv_type_size_t=no
3669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3672 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3673 if test $ac_cv_type_size_t = yes; then
3677 cat >>confdefs.h <<_ACEOF
3678 #define size_t unsigned
3683 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3684 # for constant arguments. Useless!
3685 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3686 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3687 if test "${ac_cv_working_alloca_h+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3700 char *p = (char *) alloca (2 * sizeof (int));
3705 rm -f conftest.$ac_objext conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707 (eval $ac_link) 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest$ac_exeext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 ac_cv_working_alloca_h=yes
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3732 ac_cv_working_alloca_h=no
3734 rm -f conftest.err conftest.$ac_objext \
3735 conftest$ac_exeext conftest.$ac_ext
3737 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3738 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3739 if test $ac_cv_working_alloca_h = yes; then
3741 cat >>confdefs.h <<\_ACEOF
3742 #define HAVE_ALLOCA_H 1
3747 echo "$as_me:$LINENO: checking for alloca" >&5
3748 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3749 if test "${ac_cv_func_alloca_works+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3759 # define alloca __builtin_alloca
3762 # include <malloc.h>
3763 # define alloca _alloca
3766 # include <alloca.h>
3771 # ifndef alloca /* predefined by HP cc +Olibcalls */
3782 char *p = (char *) alloca (1);
3787 rm -f conftest.$ac_objext conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>conftest.er1
3791 grep -v '^ *+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -z "$ac_c_werror_flag"
3797 || test ! -s conftest.err'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; } &&
3803 { ac_try='test -s conftest$ac_exeext'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 ac_cv_func_alloca_works=yes
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 ac_cv_func_alloca_works=no
3816 rm -f conftest.err conftest.$ac_objext \
3817 conftest$ac_exeext conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3820 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3822 if test $ac_cv_func_alloca_works = yes; then
3824 cat >>confdefs.h <<\_ACEOF
3825 #define HAVE_ALLOCA 1
3829 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3830 # that cause trouble. Some versions do not even contain alloca or
3831 # contain a buggy version. If you still want to use their alloca,
3832 # use ar to extract alloca.o from them instead of compiling alloca.c.
3834 ALLOCA=alloca.$ac_objext
3836 cat >>confdefs.h <<\_ACEOF
3841 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3842 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3843 if test "${ac_cv_os_cray+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 #if defined(CRAY) && ! defined(CRAY2)
3859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3860 $EGREP "webecray" >/dev/null 2>&1; then
3868 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3869 echo "${ECHO_T}$ac_cv_os_cray" >&6
3870 if test $ac_cv_os_cray = yes; then
3871 for ac_func in _getb67 GETB67 getb67; do
3872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3873 echo "$as_me:$LINENO: checking for $ac_func" >&5
3874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3875 if eval "test \"\${$as_ac_var+set}\" = set"; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3886 #define $ac_func innocuous_$ac_func
3888 /* System header to define __stub macros and hopefully few prototypes,
3889 which can conflict with char $ac_func (); below.
3890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891 <limits.h> exists even on freestanding compilers. */
3894 # include <limits.h>
3896 # include <assert.h>
3901 /* Override any gcc2 internal prototype to avoid an error. */
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3909 /* The GNU C library defines this for functions which it implements
3910 to always fail with ENOSYS. Some functions are actually named
3911 something starting with __ and the normal name is an alias. */
3912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3915 char (*f) () = $ac_func;
3924 return f != $ac_func;
3929 rm -f conftest.$ac_objext conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest$ac_exeext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 eval "$as_ac_var=yes"
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 eval "$as_ac_var=no"
3958 rm -f conftest.err conftest.$ac_objext \
3959 conftest$ac_exeext conftest.$ac_ext
3961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3963 if test `eval echo '${'$as_ac_var'}'` = yes; then
3965 cat >>confdefs.h <<_ACEOF
3966 #define CRAY_STACKSEG_END $ac_func
3975 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3976 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3977 if test "${ac_cv_c_stack_direction+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 if test "$cross_compiling" = yes; then
3981 ac_cv_c_stack_direction=0
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3990 find_stack_direction ()
3992 static char *addr = 0;
3997 return find_stack_direction ();
4000 return (&dummy > addr) ? 1 : -1;
4006 exit (find_stack_direction () < 0);
4009 rm -f conftest$ac_exeext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011 (eval $ac_link) 2>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 ac_cv_c_stack_direction=1
4022 echo "$as_me: program exited with status $ac_status" >&5
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_cv_c_stack_direction=-1
4029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4032 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4033 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4035 cat >>confdefs.h <<_ACEOF
4036 #define STACK_DIRECTION $ac_cv_c_stack_direction
4044 for ac_header in stdlib.h unistd.h
4046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4048 echo "$as_me:$LINENO: checking for $ac_header" >&5
4049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4056 # Is the header compilable?
4057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 $ac_includes_default
4066 #include <$ac_header>
4068 rm -f conftest.$ac_objext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag"
4078 || test ! -s conftest.err'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try='test -s conftest.$ac_objext'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; }; then
4090 ac_header_compiler=yes
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 ac_header_compiler=no
4097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4099 echo "${ECHO_T}$ac_header_compiler" >&6
4101 # Is the header present?
4102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <$ac_header>
4112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4115 grep -v '^ *+' conftest.er1 >conftest.err
4117 cat conftest.err >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } >/dev/null; then
4120 if test -s conftest.err; then
4121 ac_cpp_err=$ac_c_preproc_warn_flag
4122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4129 if test -z "$ac_cpp_err"; then
4130 ac_header_preproc=yes
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_header_preproc=no
4137 rm -f conftest.err conftest.$ac_ext
4138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4139 echo "${ECHO_T}$ac_header_preproc" >&6
4141 # So? What about this header?
4142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4148 ac_header_preproc=yes
4151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4165 ## ------------------------------------------ ##
4166 ## Report this to the AC_PACKAGE_NAME lists. ##
4167 ## ------------------------------------------ ##
4170 sed "s/^/$as_me: WARNING: /" >&2
4173 echo "$as_me:$LINENO: checking for $ac_header" >&5
4174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 eval "$as_ac_Header=\$ac_header_preproc"
4180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4185 cat >>confdefs.h <<_ACEOF
4186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4194 for ac_func in getpagesize
4196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4197 echo "$as_me:$LINENO: checking for $ac_func" >&5
4198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4199 if eval "test \"\${$as_ac_var+set}\" = set"; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4210 #define $ac_func innocuous_$ac_func
4212 /* System header to define __stub macros and hopefully few prototypes,
4213 which can conflict with char $ac_func (); below.
4214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 <limits.h> exists even on freestanding compilers. */
4218 # include <limits.h>
4220 # include <assert.h>
4225 /* Override any gcc2 internal prototype to avoid an error. */
4230 /* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4233 /* The GNU C library defines this for functions which it implements
4234 to always fail with ENOSYS. Some functions are actually named
4235 something starting with __ and the normal name is an alias. */
4236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4239 char (*f) () = $ac_func;
4248 return f != $ac_func;
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255 (eval $ac_link) 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 eval "$as_ac_var=yes"
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 eval "$as_ac_var=no"
4282 rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4287 if test `eval echo '${'$as_ac_var'}'` = yes; then
4288 cat >>confdefs.h <<_ACEOF
4289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4295 echo "$as_me:$LINENO: checking for working mmap" >&5
4296 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4297 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test "$cross_compiling" = yes; then
4301 ac_cv_func_mmap_fixed_mapped=no
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 $ac_includes_default
4310 /* malloc might have been renamed as rpl_malloc. */
4313 /* Thanks to Mike Haertel and Jim Avera for this test.
4314 Here is a matrix of mmap possibilities:
4315 mmap private not fixed
4316 mmap private fixed at somewhere currently unmapped
4317 mmap private fixed at somewhere already mapped
4318 mmap shared not fixed
4319 mmap shared fixed at somewhere currently unmapped
4320 mmap shared fixed at somewhere already mapped
4321 For private mappings, we should verify that changes cannot be read()
4322 back from the file, nor mmap's back from the file at a different
4323 address. (There have been systems where private was not correctly
4324 implemented like the infamous i386 svr4.0, and systems where the
4325 VM page cache was not coherent with the file system buffer cache
4326 like early versions of FreeBSD and possibly contemporary NetBSD.)
4327 For shared mappings, we should conversely verify that changes get
4328 propagated back to all the places they're supposed to be.
4330 Grep wants private fixed already mapped.
4331 The main things grep needs to know about mmap are:
4332 * does it exist and is it safe to write into the mmap'd area
4333 * how to use it (BSD variants) */
4336 #include <sys/mman.h>
4338 #if !STDC_HEADERS && !HAVE_STDLIB_H
4342 /* This mess was copied from the GNU getpagesize.h. */
4343 #if !HAVE_GETPAGESIZE
4344 /* Assume that all systems that can run configure have sys/param.h. */
4345 # if !HAVE_SYS_PARAM_H
4346 # define HAVE_SYS_PARAM_H 1
4349 # ifdef _SC_PAGESIZE
4350 # define getpagesize() sysconf(_SC_PAGESIZE)
4351 # else /* no _SC_PAGESIZE */
4352 # if HAVE_SYS_PARAM_H
4353 # include <sys/param.h>
4354 # ifdef EXEC_PAGESIZE
4355 # define getpagesize() EXEC_PAGESIZE
4356 # else /* no EXEC_PAGESIZE */
4358 # define getpagesize() NBPG * CLSIZE
4361 # endif /* no CLSIZE */
4362 # else /* no NBPG */
4364 # define getpagesize() NBPC
4365 # else /* no NBPC */
4367 # define getpagesize() PAGESIZE
4368 # endif /* PAGESIZE */
4369 # endif /* no NBPC */
4370 # endif /* no NBPG */
4371 # endif /* no EXEC_PAGESIZE */
4372 # else /* no HAVE_SYS_PARAM_H */
4373 # define getpagesize() 8192 /* punt totally */
4374 # endif /* no HAVE_SYS_PARAM_H */
4375 # endif /* no _SC_PAGESIZE */
4377 #endif /* no HAVE_GETPAGESIZE */
4382 char *data, *data2, *data3;
4386 pagesize = getpagesize ();
4388 /* First, make a file with some known garbage in it. */
4389 data = (char *) malloc (pagesize);
4392 for (i = 0; i < pagesize; ++i)
4393 *(data + i) = rand ();
4395 fd = creat ("conftest.mmap", 0600);
4398 if (write (fd, data, pagesize) != pagesize)
4402 /* Next, try to mmap the file at a fixed address which already has
4403 something else allocated at it. If we can, also make sure that
4404 we see the same garbage. */
4405 fd = open ("conftest.mmap", O_RDWR);
4408 data2 = (char *) malloc (2 * pagesize);
4411 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4412 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4413 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4415 for (i = 0; i < pagesize; ++i)
4416 if (*(data + i) != *(data2 + i))
4419 /* Finally, make sure that changes to the mapped area do not
4420 percolate back to the file as seen by read(). (This is a bug on
4421 some variants of i386 svr4.0.) */
4422 for (i = 0; i < pagesize; ++i)
4423 *(data2 + i) = *(data2 + i) + 1;
4424 data3 = (char *) malloc (pagesize);
4427 if (read (fd, data3, pagesize) != pagesize)
4429 for (i = 0; i < pagesize; ++i)
4430 if (*(data + i) != *(data3 + i))
4436 rm -f conftest$ac_exeext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4438 (eval $ac_link) 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_cv_func_mmap_fixed_mapped=yes
4449 echo "$as_me: program exited with status $ac_status" >&5
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4454 ac_cv_func_mmap_fixed_mapped=no
4456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4459 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4460 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4461 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4463 cat >>confdefs.h <<\_ACEOF
4480 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4481 unistd.h values.h sys/param.h
4483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4485 echo "$as_me:$LINENO: checking for $ac_header" >&5
4486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4493 # Is the header compilable?
4494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 $ac_includes_default
4503 #include <$ac_header>
4505 rm -f conftest.$ac_objext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>conftest.er1
4509 grep -v '^ *+' conftest.er1 >conftest.err
4511 cat conftest.err >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -z "$ac_c_werror_flag"
4515 || test ! -s conftest.err'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; } &&
4521 { ac_try='test -s conftest.$ac_objext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 ac_header_compiler=yes
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4532 ac_header_compiler=no
4534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4536 echo "${ECHO_T}$ac_header_compiler" >&6
4538 # Is the header present?
4539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4541 cat >conftest.$ac_ext <<_ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4547 #include <$ac_header>
4549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } >/dev/null; then
4557 if test -s conftest.err; then
4558 ac_cpp_err=$ac_c_preproc_warn_flag
4559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4566 if test -z "$ac_cpp_err"; then
4567 ac_header_preproc=yes
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4572 ac_header_preproc=no
4574 rm -f conftest.err conftest.$ac_ext
4575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4576 echo "${ECHO_T}$ac_header_preproc" >&6
4578 # So? What about this header?
4579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4585 ac_header_preproc=yes
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4602 ## ------------------------------------------ ##
4603 ## Report this to the AC_PACKAGE_NAME lists. ##
4604 ## ------------------------------------------ ##
4607 sed "s/^/$as_me: WARNING: /" >&2
4610 echo "$as_me:$LINENO: checking for $ac_header" >&5
4611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 eval "$as_ac_Header=\$ac_header_preproc"
4617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4622 cat >>confdefs.h <<_ACEOF
4623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4640 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4641 __argz_count __argz_stringify __argz_next
4643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4644 echo "$as_me:$LINENO: checking for $ac_func" >&5
4645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4646 if eval "test \"\${$as_ac_var+set}\" = set"; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4657 #define $ac_func innocuous_$ac_func
4659 /* System header to define __stub macros and hopefully few prototypes,
4660 which can conflict with char $ac_func (); below.
4661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4662 <limits.h> exists even on freestanding compilers. */
4665 # include <limits.h>
4667 # include <assert.h>
4672 /* Override any gcc2 internal prototype to avoid an error. */
4677 /* We use char because int might match the return type of a gcc2
4678 builtin and then its argument prototype would still apply. */
4680 /* The GNU C library defines this for functions which it implements
4681 to always fail with ENOSYS. Some functions are actually named
4682 something starting with __ and the normal name is an alias. */
4683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4686 char (*f) () = $ac_func;
4695 return f != $ac_func;
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 eval "$as_ac_var=yes"
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 eval "$as_ac_var=no"
4729 rm -f conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4734 if test `eval echo '${'$as_ac_var'}'` = yes; then
4735 cat >>confdefs.h <<_ACEOF
4736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4743 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4745 for ac_func in stpcpy
4747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4748 echo "$as_me:$LINENO: checking for $ac_func" >&5
4749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4750 if eval "test \"\${$as_ac_var+set}\" = set"; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4761 #define $ac_func innocuous_$ac_func
4763 /* System header to define __stub macros and hopefully few prototypes,
4764 which can conflict with char $ac_func (); below.
4765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766 <limits.h> exists even on freestanding compilers. */
4769 # include <limits.h>
4771 # include <assert.h>
4776 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4784 /* The GNU C library defines this for functions which it implements
4785 to always fail with ENOSYS. Some functions are actually named
4786 something starting with __ and the normal name is an alias. */
4787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4790 char (*f) () = $ac_func;
4799 return f != $ac_func;
4804 rm -f conftest.$ac_objext conftest$ac_exeext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>conftest.er1
4808 grep -v '^ *+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 eval "$as_ac_var=yes"
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 eval "$as_ac_var=no"
4833 rm -f conftest.err conftest.$ac_objext \
4834 conftest$ac_exeext conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4838 if test `eval echo '${'$as_ac_var'}'` = yes; then
4839 cat >>confdefs.h <<_ACEOF
4840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4847 if test "${ac_cv_func_stpcpy}" = "yes"; then
4849 cat >>confdefs.h <<\_ACEOF
4850 #define HAVE_STPCPY 1
4855 if test $ac_cv_header_locale_h = yes; then
4856 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4857 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4858 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 cat >conftest.$ac_ext <<_ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878 (eval $ac_link) 2>conftest.er1
4880 grep -v '^ *+' conftest.er1 >conftest.err
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -z "$ac_c_werror_flag"
4886 || test ! -s conftest.err'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; } &&
4892 { ac_try='test -s conftest$ac_exeext'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 am_cv_val_LC_MESSAGES=yes
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4903 am_cv_val_LC_MESSAGES=no
4905 rm -f conftest.err conftest.$ac_objext \
4906 conftest$ac_exeext conftest.$ac_ext
4908 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4909 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4910 if test $am_cv_val_LC_MESSAGES = yes; then
4912 cat >>confdefs.h <<\_ACEOF
4913 #define HAVE_LC_MESSAGES 1
4918 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4919 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4920 # Check whether --enable-nls or --disable-nls was given.
4921 if test "${enable_nls+set}" = set; then
4922 enableval="$enable_nls"
4927 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4928 echo "${ECHO_T}$USE_NLS" >&6
4931 USE_INCLUDED_LIBINTL=no
4933 if test "$USE_NLS" = "yes"; then
4935 cat >>confdefs.h <<\_ACEOF
4936 #define ENABLE_NLS 1
4939 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4940 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4942 # Check whether --with-included-gettext or --without-included-gettext was given.
4943 if test "${with_included_gettext+set}" = set; then
4944 withval="$with_included_gettext"
4945 nls_cv_force_use_gnu_gettext=$withval
4947 nls_cv_force_use_gnu_gettext=no
4949 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4950 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4952 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4953 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4955 nls_cv_header_libgt=
4958 if test "${ac_cv_header_libintl_h+set}" = set; then
4959 echo "$as_me:$LINENO: checking for libintl.h" >&5
4960 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4961 if test "${ac_cv_header_libintl_h+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4965 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4967 # Is the header compilable?
4968 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4969 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 $ac_includes_default
4977 #include <libintl.h>
4979 rm -f conftest.$ac_objext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981 (eval $ac_compile) 2>conftest.er1
4983 grep -v '^ *+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -z "$ac_c_werror_flag"
4989 || test ! -s conftest.err'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_header_compiler=yes
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 ac_header_compiler=no
5008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5010 echo "${ECHO_T}$ac_header_compiler" >&6
5012 # Is the header present?
5013 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5014 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 #include <libintl.h>
5023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5026 grep -v '^ *+' conftest.er1 >conftest.err
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } >/dev/null; then
5031 if test -s conftest.err; then
5032 ac_cpp_err=$ac_c_preproc_warn_flag
5033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5040 if test -z "$ac_cpp_err"; then
5041 ac_header_preproc=yes
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 ac_header_preproc=no
5048 rm -f conftest.err conftest.$ac_ext
5049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5050 echo "${ECHO_T}$ac_header_preproc" >&6
5052 # So? What about this header?
5053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5055 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5056 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5057 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5058 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5059 ac_header_preproc=yes
5062 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5063 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5064 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5065 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5066 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5067 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5068 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5069 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5070 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5071 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5072 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5073 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5076 ## ------------------------------------------ ##
5077 ## Report this to the AC_PACKAGE_NAME lists. ##
5078 ## ------------------------------------------ ##
5081 sed "s/^/$as_me: WARNING: /" >&2
5084 echo "$as_me:$LINENO: checking for libintl.h" >&5
5085 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5086 if test "${ac_cv_header_libintl_h+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 ac_cv_header_libintl_h=$ac_header_preproc
5091 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5092 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5095 if test $ac_cv_header_libintl_h = yes; then
5096 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5097 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5098 if test "${gt_cv_func_gettext_libc+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 #include <libintl.h>
5111 return (int) gettext ("")
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118 (eval $ac_link) 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try='test -z "$ac_c_werror_flag"
5126 || test ! -s conftest.err'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; } &&
5132 { ac_try='test -s conftest$ac_exeext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 gt_cv_func_gettext_libc=yes
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 gt_cv_func_gettext_libc=no
5145 rm -f conftest.err conftest.$ac_objext \
5146 conftest$ac_exeext conftest.$ac_ext
5148 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5149 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5151 if test "$gt_cv_func_gettext_libc" != "yes"; then
5152 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5153 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5154 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 ac_check_lib_save_LIBS=$LIBS
5159 cat >conftest.$ac_ext <<_ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5166 /* Override any gcc2 internal prototype to avoid an error. */
5170 /* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */
5172 char bindtextdomain ();
5181 rm -f conftest.$ac_objext conftest$ac_exeext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183 (eval $ac_link) 2>conftest.er1
5185 grep -v '^ *+' conftest.er1 >conftest.err
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -z "$ac_c_werror_flag"
5191 || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_lib_intl_bindtextdomain=yes
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_cv_lib_intl_bindtextdomain=no
5210 rm -f conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212 LIBS=$ac_check_lib_save_LIBS
5214 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5215 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5216 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5217 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5218 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5219 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 cat >conftest.$ac_ext <<_ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5232 return (int) gettext ("")
5237 rm -f conftest.$ac_objext conftest$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>conftest.er1
5241 grep -v '^ *+' conftest.er1 >conftest.err
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5246 { ac_try='test -z "$ac_c_werror_flag"
5247 || test ! -s conftest.err'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try='test -s conftest$ac_exeext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 gt_cv_func_gettext_libintl=yes
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5264 gt_cv_func_gettext_libintl=no
5266 rm -f conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5269 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5270 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5275 if test "$gt_cv_func_gettext_libc" = "yes" \
5276 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5278 cat >>confdefs.h <<\_ACEOF
5279 #define HAVE_GETTEXT 1
5282 # Extract the first word of "msgfmt", so it can be a program name with args.
5283 set dummy msgfmt; ac_word=$2
5284 echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_path_MSGFMT+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5295 for ac_dir in $PATH; do
5296 test -z "$ac_dir" && ac_dir=.
5297 if test -f $ac_dir/$ac_word; then
5298 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5299 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5305 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5309 MSGFMT="$ac_cv_path_MSGFMT"
5310 if test -n "$MSGFMT"; then
5311 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5312 echo "${ECHO_T}$MSGFMT" >&6
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5317 if test "$MSGFMT" != "no"; then
5319 for ac_func in dcgettext
5321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5322 echo "$as_me:$LINENO: checking for $ac_func" >&5
5323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5324 if eval "test \"\${$as_ac_var+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5335 #define $ac_func innocuous_$ac_func
5337 /* System header to define __stub macros and hopefully few prototypes,
5338 which can conflict with char $ac_func (); below.
5339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340 <limits.h> exists even on freestanding compilers. */
5343 # include <limits.h>
5345 # include <assert.h>
5350 /* Override any gcc2 internal prototype to avoid an error. */
5355 /* We use char because int might match the return type of a gcc2
5356 builtin and then its argument prototype would still apply. */
5358 /* The GNU C library defines this for functions which it implements
5359 to always fail with ENOSYS. Some functions are actually named
5360 something starting with __ and the normal name is an alias. */
5361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5364 char (*f) () = $ac_func;
5373 return f != $ac_func;
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380 (eval $ac_link) 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest$ac_exeext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 eval "$as_ac_var=yes"
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 eval "$as_ac_var=no"
5407 rm -f conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5412 if test `eval echo '${'$as_ac_var'}'` = yes; then
5413 cat >>confdefs.h <<_ACEOF
5414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5420 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5421 set dummy gmsgfmt; ac_word=$2
5422 echo "$as_me:$LINENO: checking for $ac_word" >&5
5423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5424 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5450 GMSGFMT=$ac_cv_path_GMSGFMT
5452 if test -n "$GMSGFMT"; then
5453 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5454 echo "${ECHO_T}$GMSGFMT" >&6
5456 echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6
5460 # Extract the first word of "xgettext", so it can be a program name with args.
5461 set dummy xgettext; ac_word=$2
5462 echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5473 for ac_dir in $PATH; do
5474 test -z "$ac_dir" && ac_dir=.
5475 if test -f $ac_dir/$ac_word; then
5476 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5477 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5483 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5487 XGETTEXT="$ac_cv_path_XGETTEXT"
5488 if test -n "$XGETTEXT"; then
5489 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5490 echo "${ECHO_T}$XGETTEXT" >&6
5492 echo "$as_me:$LINENO: result: no" >&5
5493 echo "${ECHO_T}no" >&6
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5506 extern int _nl_msg_cat_cntr;
5507 return _nl_msg_cat_cntr
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>conftest.er1
5516 grep -v '^ *+' conftest.er1 >conftest.err
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5543 rm -f conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5554 if test "$CATOBJEXT" = "NONE"; then
5555 nls_cv_use_gnu_gettext=yes
5559 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5560 INTLOBJS="\$(GETTOBJS)"
5561 # Extract the first word of "msgfmt", so it can be a program name with args.
5562 set dummy msgfmt; ac_word=$2
5563 echo "$as_me:$LINENO: checking for $ac_word" >&5
5564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565 if test "${ac_cv_path_MSGFMT+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5574 for ac_dir in $PATH; do
5575 test -z "$ac_dir" && ac_dir=.
5576 if test -f $ac_dir/$ac_word; then
5577 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5578 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5584 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5588 MSGFMT="$ac_cv_path_MSGFMT"
5589 if test -n "$MSGFMT"; then
5590 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5591 echo "${ECHO_T}$MSGFMT" >&6
5593 echo "$as_me:$LINENO: result: no" >&5
5594 echo "${ECHO_T}no" >&6
5597 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5598 set dummy gmsgfmt; ac_word=$2
5599 echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5627 GMSGFMT=$ac_cv_path_GMSGFMT
5629 if test -n "$GMSGFMT"; then
5630 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5631 echo "${ECHO_T}$GMSGFMT" >&6
5633 echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6
5637 # Extract the first word of "xgettext", so it can be a program name with args.
5638 set dummy xgettext; ac_word=$2
5639 echo "$as_me:$LINENO: checking for $ac_word" >&5
5640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5641 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5650 for ac_dir in $PATH; do
5651 test -z "$ac_dir" && ac_dir=.
5652 if test -f $ac_dir/$ac_word; then
5653 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5654 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5660 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5664 XGETTEXT="$ac_cv_path_XGETTEXT"
5665 if test -n "$XGETTEXT"; then
5666 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5667 echo "${ECHO_T}$XGETTEXT" >&6
5669 echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6
5674 USE_INCLUDED_LIBINTL=yes
5678 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5680 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5681 nls_cv_header_intl=libintl.h
5682 nls_cv_header_libgt=libgettext.h
5685 if test "$XGETTEXT" != ":"; then
5686 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5689 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5690 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5695 # We need to process the po/ directory.
5699 nls_cv_header_intl=libintl.h
5700 nls_cv_header_libgt=libgettext.h
5703 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5704 # because some of the sources are only built for this goal.
5705 if test "$PACKAGE" = gettext; then
5707 USE_INCLUDED_LIBINTL=yes
5710 for lang in $ALL_LINGUAS; do
5711 GMOFILES="$GMOFILES $lang.gmo"
5712 POFILES="$POFILES $lang.po"
5728 if test "x$CATOBJEXT" != "x"; then
5729 if test "x$ALL_LINGUAS" = "x"; then
5732 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5733 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5735 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5736 case "$ALL_LINGUAS" in
5737 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5740 LINGUAS=$NEW_LINGUAS
5741 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5742 echo "${ECHO_T}$LINGUAS" >&6
5745 if test -n "$LINGUAS"; then
5746 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5750 if test $ac_cv_header_locale_h = yes; then
5751 INCLUDE_LOCALE_H="#include <locale.h>"
5754 /* The system does not provide the header <locale.h>. Take care yourself. */"
5758 if test -f $srcdir/po2tbl.sed.in; then
5759 if test "$CATOBJEXT" = ".cat"; then
5760 if test "${ac_cv_header_linux_version_h+set}" = set; then
5761 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5762 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5763 if test "${ac_cv_header_linux_version_h+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5767 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5769 # Is the header compilable?
5770 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5771 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 $ac_includes_default
5779 #include <linux/version.h>
5781 rm -f conftest.$ac_objext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_c_werror_flag"
5791 || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_header_compiler=yes
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 ac_header_compiler=no
5810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5812 echo "${ECHO_T}$ac_header_compiler" >&6
5814 # Is the header present?
5815 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5816 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5817 cat >conftest.$ac_ext <<_ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 #include <linux/version.h>
5825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5828 grep -v '^ *+' conftest.er1 >conftest.err
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } >/dev/null; then
5833 if test -s conftest.err; then
5834 ac_cpp_err=$ac_c_preproc_warn_flag
5835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5842 if test -z "$ac_cpp_err"; then
5843 ac_header_preproc=yes
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 ac_header_preproc=no
5850 rm -f conftest.err conftest.$ac_ext
5851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5852 echo "${ECHO_T}$ac_header_preproc" >&6
5854 # So? What about this header?
5855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5858 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5859 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5860 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5861 ac_header_preproc=yes
5864 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5865 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5867 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5869 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5871 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5873 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5875 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5878 ## ------------------------------------------ ##
5879 ## Report this to the AC_PACKAGE_NAME lists. ##
5880 ## ------------------------------------------ ##
5883 sed "s/^/$as_me: WARNING: /" >&2
5886 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5887 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5888 if test "${ac_cv_header_linux_version_h+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 ac_cv_header_linux_version_h=$ac_header_preproc
5893 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5894 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5897 if test $ac_cv_header_linux_version_h = yes; then
5905 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5907 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5908 $srcdir/po2tbl.sed.in > po2tbl.sed
5911 if test "$PACKAGE" = "gettext"; then
5921 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5927 if test -f $srcdir/po/POTFILES.in; then
5928 test -d po || mkdir po
5929 if test "x$srcdir" != "x."; then
5930 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5931 posrcprefix="$srcdir/"
5933 posrcprefix="../$srcdir/"
5939 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5940 < $srcdir/po/POTFILES.in > po/POTFILES
5944 localedir='${datadir}/locale'
5947 if test "x$POSUB" != x; then
5949 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5950 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5951 # Look for .po and .gmo files in the source directory.
5954 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5955 # If there aren't any .gmo files the shell will give us the
5956 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5958 case "$cat" in *\**)
5961 # The quadruple backslash is collapsed to a double backslash
5962 # by the backticks, then collapsed again by the double quotes,
5963 # leaving us with one backslash in the sed expression (right
5964 # before the dot that mustn't act as a wildcard).
5965 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5966 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5967 # The user is allowed to set LINGUAS to a list of languages to
5968 # install catalogs for. If it's empty that means "all of them."
5969 if test "x$LINGUAS" = x; then
5970 CATALOGS="$CATALOGS $cat"
5971 XLINGUAS="$XLINGUAS $lang"
5973 case "$LINGUAS" in *$lang*)
5974 CATALOGS="$CATALOGS $cat"
5975 XLINGUAS="$XLINGUAS $lang"
5981 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5982 echo "${ECHO_T}$LINGUAS" >&6
5984 CONFIG_ALL="$CONFIG_ALL all-po"
5985 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5986 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5987 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5992 cat >>confdefs.h <<_ACEOF
5993 #define PACKAGE "$PACKAGE"
5998 debugdir=${libdir}/debug
6001 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6002 if test "${with_separate_debug_dir+set}" = set; then
6003 withval="$with_separate_debug_dir"
6004 debugdir="${withval}"
6008 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6010 ac_define_dir=`eval echo $debugdir`
6011 ac_define_dir=`eval echo $ac_define_dir`
6013 cat >>confdefs.h <<_ACEOF
6014 #define DEBUGDIR "$ac_define_dir"
6018 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6022 subdirs="$subdirs doc testsuite"
6025 . $srcdir/configure.host
6027 . $srcdir/configure.tgt
6029 # Fetch the default architecture and default target vector from BFD.
6030 targ=$target; . $srcdir/../bfd/config.bfd
6032 # We only want the first architecture, so strip off the others if
6033 # there is more than one.
6034 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6036 if test "x$targ_archs" != x; then
6038 cat >>confdefs.h <<_ACEOF
6039 #define DEFAULT_BFD_ARCH $targ_archs
6043 if test "x$targ_defvec" != x; then
6045 cat >>confdefs.h <<_ACEOF
6046 #define DEFAULT_BFD_VEC $targ_defvec
6051 test "$program_prefix" != NONE &&
6052 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6053 # Use a double $ so make ignores it.
6054 test "$program_suffix" != NONE &&
6055 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6056 # Double any \ or $. echo might interpret backslashes.
6057 # By default was `s,x,x', remove it if useless.
6058 cat <<\_ACEOF >conftest.sed
6059 s/[\\$]/&&/g;s/;s,x,x,$//
6061 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6065 # The CLI cannot be disabled yet, but may be in the future.
6068 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6069 if test "${enable_gdbcli+set}" = set; then
6070 enableval="$enable_gdbcli"
6075 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6076 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6077 { (exit 1); exit 1; }; } ;;
6079 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6080 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6081 { (exit 1); exit 1; }; } ;;
6086 if test x"$enable_gdbcli" = xyes; then
6087 if test -d $srcdir/cli; then
6088 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6089 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6090 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6091 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6096 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6097 if test "${enable_gdbmi+set}" = set; then
6098 enableval="$enable_gdbmi"
6103 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6104 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6105 { (exit 1); exit 1; }; } ;;
6110 if test x"$enable_gdbmi" = xyes; then
6111 if test -d $srcdir/mi; then
6112 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6113 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6114 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6115 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6120 # Check whether --enable-tui or --disable-tui was given.
6121 if test "${enable_tui+set}" = set; then
6122 enableval="$enable_tui"
6127 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6128 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6129 { (exit 1); exit 1; }; } ;;
6136 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6137 if test "${enable_gdbtk+set}" = set; then
6138 enableval="$enable_gdbtk"
6143 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6144 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6145 { (exit 1); exit 1; }; } ;;
6148 if test -d $srcdir/gdbtk; then
6154 # We unconditionally disable gdbtk tests on selected platforms.
6157 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6158 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6162 # Libunwind support.
6164 # Check whether --with-libunwind or --without-libunwind was given.
6165 if test "${with_libunwind+set}" = set; then
6166 withval="$with_libunwind"
6167 case "${withval}" in
6168 yes) enable_libunwind=yes ;;
6169 no) enable_libunwind=no ;;
6170 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6171 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6172 { (exit 1); exit 1; }; } ;;
6177 for ac_header in libunwind.h
6179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6181 echo "$as_me:$LINENO: checking for $ac_header" >&5
6182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6189 # Is the header compilable?
6190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 $ac_includes_default
6199 #include <$ac_header>
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6205 grep -v '^ *+' conftest.er1 >conftest.err
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 ac_header_compiler=yes
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 ac_header_compiler=no
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6232 echo "${ECHO_T}$ac_header_compiler" >&6
6234 # Is the header present?
6235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6237 cat >conftest.$ac_ext <<_ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6243 #include <$ac_header>
6245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6248 grep -v '^ *+' conftest.er1 >conftest.err
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } >/dev/null; then
6253 if test -s conftest.err; then
6254 ac_cpp_err=$ac_c_preproc_warn_flag
6255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6262 if test -z "$ac_cpp_err"; then
6263 ac_header_preproc=yes
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 ac_header_preproc=no
6270 rm -f conftest.err conftest.$ac_ext
6271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6272 echo "${ECHO_T}$ac_header_preproc" >&6
6274 # So? What about this header?
6275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6281 ac_header_preproc=yes
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6298 ## ------------------------------------------ ##
6299 ## Report this to the AC_PACKAGE_NAME lists. ##
6300 ## ------------------------------------------ ##
6303 sed "s/^/$as_me: WARNING: /" >&2
6306 echo "$as_me:$LINENO: checking for $ac_header" >&5
6307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 eval "$as_ac_Header=\$ac_header_preproc"
6313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6318 cat >>confdefs.h <<_ACEOF
6319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6327 for ac_header in libunwind-ia64.h
6329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6331 echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6339 # Is the header compilable?
6340 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6342 cat >conftest.$ac_ext <<_ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 $ac_includes_default
6349 #include <$ac_header>
6351 rm -f conftest.$ac_objext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -z "$ac_c_werror_flag"
6361 || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_header_compiler=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 ac_header_compiler=no
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6382 echo "${ECHO_T}$ac_header_compiler" >&6
6384 # Is the header present?
6385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 #include <$ac_header>
6395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6398 grep -v '^ *+' conftest.er1 >conftest.err
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } >/dev/null; then
6403 if test -s conftest.err; then
6404 ac_cpp_err=$ac_c_preproc_warn_flag
6405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6412 if test -z "$ac_cpp_err"; then
6413 ac_header_preproc=yes
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 ac_header_preproc=no
6420 rm -f conftest.err conftest.$ac_ext
6421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6422 echo "${ECHO_T}$ac_header_preproc" >&6
6424 # So? What about this header?
6425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6431 ac_header_preproc=yes
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6448 ## ------------------------------------------ ##
6449 ## Report this to the AC_PACKAGE_NAME lists. ##
6450 ## ------------------------------------------ ##
6453 sed "s/^/$as_me: WARNING: /" >&2
6456 echo "$as_me:$LINENO: checking for $ac_header" >&5
6457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 eval "$as_ac_Header=\$ac_header_preproc"
6463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6468 cat >>confdefs.h <<_ACEOF
6469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6476 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6477 enable_libunwind=yes;
6482 if test x"$enable_libunwind" = xyes; then
6484 for ac_header in libunwind.h
6486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6488 echo "$as_me:$LINENO: checking for $ac_header" >&5
6489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496 # Is the header compilable?
6497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 $ac_includes_default
6506 #include <$ac_header>
6508 rm -f conftest.$ac_objext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>conftest.er1
6512 grep -v '^ *+' conftest.er1 >conftest.err
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest.$ac_objext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 ac_header_compiler=yes
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 ac_header_compiler=no
6537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6539 echo "${ECHO_T}$ac_header_compiler" >&6
6541 # Is the header present?
6542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6544 cat >conftest.$ac_ext <<_ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #include <$ac_header>
6552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1 >conftest.err
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } >/dev/null; then
6560 if test -s conftest.err; then
6561 ac_cpp_err=$ac_c_preproc_warn_flag
6562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6569 if test -z "$ac_cpp_err"; then
6570 ac_header_preproc=yes
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 ac_header_preproc=no
6577 rm -f conftest.err conftest.$ac_ext
6578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6579 echo "${ECHO_T}$ac_header_preproc" >&6
6581 # So? What about this header?
6582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6588 ac_header_preproc=yes
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6605 ## ------------------------------------------ ##
6606 ## Report this to the AC_PACKAGE_NAME lists. ##
6607 ## ------------------------------------------ ##
6610 sed "s/^/$as_me: WARNING: /" >&2
6613 echo "$as_me:$LINENO: checking for $ac_header" >&5
6614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 eval "$as_ac_Header=\$ac_header_preproc"
6620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6625 cat >>confdefs.h <<_ACEOF
6626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6634 for ac_header in libunwind-ia64.h
6636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6638 echo "$as_me:$LINENO: checking for $ac_header" >&5
6639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6646 # Is the header compilable?
6647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6649 cat >conftest.$ac_ext <<_ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 $ac_includes_default
6656 #include <$ac_header>
6658 rm -f conftest.$ac_objext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660 (eval $ac_compile) 2>conftest.er1
6662 grep -v '^ *+' conftest.er1 >conftest.err
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -z "$ac_c_werror_flag"
6668 || test ! -s conftest.err'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; } &&
6674 { ac_try='test -s conftest.$ac_objext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 ac_header_compiler=yes
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 ac_header_compiler=no
6687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6689 echo "${ECHO_T}$ac_header_compiler" >&6
6691 # Is the header present?
6692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6694 cat >conftest.$ac_ext <<_ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #include <$ac_header>
6702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6705 grep -v '^ *+' conftest.er1 >conftest.err
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } >/dev/null; then
6710 if test -s conftest.err; then
6711 ac_cpp_err=$ac_c_preproc_warn_flag
6712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6719 if test -z "$ac_cpp_err"; then
6720 ac_header_preproc=yes
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6725 ac_header_preproc=no
6727 rm -f conftest.err conftest.$ac_ext
6728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6729 echo "${ECHO_T}$ac_header_preproc" >&6
6731 # So? What about this header?
6732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6738 ac_header_preproc=yes
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6755 ## ------------------------------------------ ##
6756 ## Report this to the AC_PACKAGE_NAME lists. ##
6757 ## ------------------------------------------ ##
6760 sed "s/^/$as_me: WARNING: /" >&2
6763 echo "$as_me:$LINENO: checking for $ac_header" >&5
6764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 eval "$as_ac_Header=\$ac_header_preproc"
6770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6775 cat >>confdefs.h <<_ACEOF
6776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_LIBUNWIND 1
6787 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6788 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6789 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6792 # Profiling support.
6793 # Check whether --enable-profiling or --disable-profiling was given.
6794 if test "${enable_profiling+set}" = set; then
6795 enableval="$enable_profiling"
6800 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6801 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6802 { (exit 1); exit 1; }; } ;;
6810 for ac_func in monstartup _mcleanup
6812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6813 echo "$as_me:$LINENO: checking for $ac_func" >&5
6814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6815 if eval "test \"\${$as_ac_var+set}\" = set"; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 cat >conftest.$ac_ext <<_ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6826 #define $ac_func innocuous_$ac_func
6828 /* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char $ac_func (); below.
6830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6831 <limits.h> exists even on freestanding compilers. */
6834 # include <limits.h>
6836 # include <assert.h>
6841 /* Override any gcc2 internal prototype to avoid an error. */
6846 /* We use char because int might match the return type of a gcc2
6847 builtin and then its argument prototype would still apply. */
6849 /* The GNU C library defines this for functions which it implements
6850 to always fail with ENOSYS. Some functions are actually named
6851 something starting with __ and the normal name is an alias. */
6852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6855 char (*f) () = $ac_func;
6864 return f != $ac_func;
6869 rm -f conftest.$ac_objext conftest$ac_exeext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6871 (eval $ac_link) 2>conftest.er1
6873 grep -v '^ *+' conftest.er1 >conftest.err
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_c_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest$ac_exeext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 eval "$as_ac_var=yes"
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 eval "$as_ac_var=no"
6898 rm -f conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6903 if test `eval echo '${'$as_ac_var'}'` = yes; then
6904 cat >>confdefs.h <<_ACEOF
6905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6911 echo "$as_me:$LINENO: checking for _etext" >&5
6912 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6913 if test "${ac_cv_var__etext+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 cat >conftest.$ac_ext <<_ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935 (eval $ac_link) 2>conftest.er1
6937 grep -v '^ *+' conftest.er1 >conftest.err
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try='test -z "$ac_c_werror_flag"
6943 || test ! -s conftest.err'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; } &&
6949 { ac_try='test -s conftest$ac_exeext'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6955 ac_cv_var__etext=yes
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6962 rm -f conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6965 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6966 echo "${ECHO_T}$ac_cv_var__etext" >&6
6967 if test $ac_cv_var__etext = yes; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE__ETEXT 1
6974 if test "$enable_profiling" = yes ; then
6975 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6976 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6977 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6978 { (exit 1); exit 1; }; }
6981 OLD_CFLAGS="$CFLAGS"
6982 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6984 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6985 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6986 if test "${ac_cv_cc_supports_pg+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>conftest.er1
7008 grep -v '^ *+' conftest.er1 >conftest.err
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest.$ac_objext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_cv_cc_supports_pg=yes
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 ac_cv_cc_supports_pg=no
7033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7036 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
7038 if test $ac_cv_cc_supports_pg = no; then
7039 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7040 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7041 { (exit 1); exit 1; }; }
7044 CFLAGS="$OLD_CFLAGS"
7047 # --------------------- #
7048 # Checks for programs. #
7049 # --------------------- #
7051 for ac_prog in gawk mawk nawk awk
7053 # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7057 if test "${ac_cv_prog_AWK+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 if test -n "$AWK"; then
7061 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_AWK="$ac_prog"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 if test -n "$AWK"; then
7081 echo "$as_me:$LINENO: result: $AWK" >&5
7082 echo "${ECHO_T}$AWK" >&6
7084 echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6
7088 test -n "$AWK" && break
7091 # Find a good install program. We prefer a C program (faster),
7092 # so one script is as good as another. But avoid the broken or
7093 # incompatible versions:
7094 # SysV /etc/install, /usr/sbin/install
7095 # SunOS /usr/etc/install
7096 # IRIX /sbin/install
7098 # AmigaOS /C/install, which installs bootblocks on floppy discs
7099 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7100 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7101 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7102 # OS/2's system install, which has a completely different semantic
7103 # ./install, which can be erroneously created by make from ./install.sh.
7104 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7105 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7106 if test -z "$INSTALL"; then
7107 if test "${ac_cv_path_install+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 # Account for people who put trailing slashes in PATH elements.
7117 ./ | .// | /cC/* | \
7118 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7119 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7122 # OSF1 and SCO ODT 3.0 have their own names for install.
7123 # Don't use installbsd from OSF since it installs stuff as root
7125 for ac_prog in ginstall scoinst install; do
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7128 if test $ac_prog = install &&
7129 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7130 # AIX install. It has an incompatible calling convention.
7132 elif test $ac_prog = install &&
7133 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7134 # program-specific install script used by HP pwplus--don't use.
7137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7149 if test "${ac_cv_path_install+set}" = set; then
7150 INSTALL=$ac_cv_path_install
7152 # As a last resort, use the slow shell script. We don't cache a
7153 # path for INSTALL within a source directory, because that will
7154 # break other packages using the cache if that directory is
7155 # removed, or if the path is relative.
7156 INSTALL=$ac_install_sh
7159 echo "$as_me:$LINENO: result: $INSTALL" >&5
7160 echo "${ECHO_T}$INSTALL" >&6
7162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7163 # It thinks the first close brace ends the variable substitution.
7164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7170 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7171 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7173 if test "$LN_S" = "ln -s"; then
7174 echo "$as_me:$LINENO: result: yes" >&5
7175 echo "${ECHO_T}yes" >&6
7177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7178 echo "${ECHO_T}no, using $LN_S" >&6
7181 if test -n "$ac_tool_prefix"; then
7182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7184 echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186 if test "${ac_cv_prog_RANLIB+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 if test -n "$RANLIB"; then
7190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 RANLIB=$ac_cv_prog_RANLIB
7209 if test -n "$RANLIB"; then
7210 echo "$as_me:$LINENO: result: $RANLIB" >&5
7211 echo "${ECHO_T}$RANLIB" >&6
7213 echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7218 if test -z "$ac_cv_prog_RANLIB"; then
7219 ac_ct_RANLIB=$RANLIB
7220 # Extract the first word of "ranlib", so it can be a program name with args.
7221 set dummy ranlib; ac_word=$2
7222 echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7224 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 if test -n "$ac_ct_RANLIB"; then
7228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_RANLIB="ranlib"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7248 if test -n "$ac_ct_RANLIB"; then
7249 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7250 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7252 echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6
7256 RANLIB=$ac_ct_RANLIB
7258 RANLIB="$ac_cv_prog_RANLIB"
7261 for ac_prog in 'bison -y' byacc
7263 # Extract the first word of "$ac_prog", so it can be a program name with args.
7264 set dummy $ac_prog; ac_word=$2
7265 echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267 if test "${ac_cv_prog_YACC+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 if test -n "$YACC"; then
7271 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_YACC="$ac_prog"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 YACC=$ac_cv_prog_YACC
7290 if test -n "$YACC"; then
7291 echo "$as_me:$LINENO: result: $YACC" >&5
7292 echo "${ECHO_T}$YACC" >&6
7294 echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6
7298 test -n "$YACC" && break
7300 test -n "$YACC" || YACC="yacc"
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}ar; ac_word=$2
7306 echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_prog_AR+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 if test -n "$AR"; then
7312 ac_cv_prog_AR="$AR" # Let the user override the test.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_AR="${ac_tool_prefix}ar"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 if test -n "$AR"; then
7332 echo "$as_me:$LINENO: result: $AR" >&5
7333 echo "${ECHO_T}$AR" >&6
7335 echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6
7340 if test -z "$ac_cv_prog_AR"; then
7342 # Extract the first word of "ar", so it can be a program name with args.
7343 set dummy ar; ac_word=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 if test -n "$ac_ct_AR"; then
7350 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_ac_ct_AR="ar"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7369 if test -n "$ac_ct_AR"; then
7370 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7371 echo "${ECHO_T}$ac_ct_AR" >&6
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7382 if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7385 echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 if test -n "$DLLTOOL"; then
7391 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 DLLTOOL=$ac_cv_prog_DLLTOOL
7410 if test -n "$DLLTOOL"; then
7411 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7412 echo "${ECHO_T}$DLLTOOL" >&6
7414 echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6
7419 if test -z "$ac_cv_prog_DLLTOOL"; then
7420 ac_ct_DLLTOOL=$DLLTOOL
7421 # Extract the first word of "dlltool", so it can be a program name with args.
7422 set dummy dlltool; ac_word=$2
7423 echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 if test -n "$ac_ct_DLLTOOL"; then
7429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7448 if test -n "$ac_ct_DLLTOOL"; then
7449 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7450 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7452 echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6
7456 DLLTOOL=$ac_ct_DLLTOOL
7458 DLLTOOL="$ac_cv_prog_DLLTOOL"
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}windres; ac_word=$2
7464 echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7466 if test "${ac_cv_prog_WINDRES+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 if test -n "$WINDRES"; then
7470 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 WINDRES=$ac_cv_prog_WINDRES
7489 if test -n "$WINDRES"; then
7490 echo "$as_me:$LINENO: result: $WINDRES" >&5
7491 echo "${ECHO_T}$WINDRES" >&6
7493 echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6
7498 if test -z "$ac_cv_prog_WINDRES"; then
7499 ac_ct_WINDRES=$WINDRES
7500 # Extract the first word of "windres", so it can be a program name with args.
7501 set dummy windres; ac_word=$2
7502 echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 if test -n "$ac_ct_WINDRES"; then
7508 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_ac_ct_WINDRES="windres"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7527 if test -n "$ac_ct_WINDRES"; then
7528 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7529 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7531 echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7535 WINDRES=$ac_ct_WINDRES
7537 WINDRES="$ac_cv_prog_WINDRES"
7541 # Needed for GNU/Hurd.
7542 if test -n "$ac_tool_prefix"; then
7543 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7544 set dummy ${ac_tool_prefix}mig; ac_word=$2
7545 echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547 if test "${ac_cv_prog_MIG+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 if test -n "$MIG"; then
7551 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 if test -n "$MIG"; then
7571 echo "$as_me:$LINENO: result: $MIG" >&5
7572 echo "${ECHO_T}$MIG" >&6
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7579 if test -z "$ac_cv_prog_MIG"; then
7581 # Extract the first word of "mig", so it can be a program name with args.
7582 set dummy mig; ac_word=$2
7583 echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7585 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 if test -n "$ac_ct_MIG"; then
7589 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_ac_ct_MIG="mig"
7599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7608 if test -n "$ac_ct_MIG"; then
7609 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7610 echo "${ECHO_T}$ac_ct_MIG" >&6
7612 echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6
7618 MIG="$ac_cv_prog_MIG"
7622 # ---------------------- #
7623 # Checks for libraries. #
7624 # ---------------------- #
7626 # We might need to link with -lm; most simulators need it.
7628 echo "$as_me:$LINENO: checking for main in -lm" >&5
7629 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7630 if test "${ac_cv_lib_m_main+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_check_lib_save_LIBS=$LIBS
7635 cat >conftest.$ac_ext <<_ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7651 rm -f conftest.$ac_objext conftest$ac_exeext
7652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7653 (eval $ac_link) 2>conftest.er1
7655 grep -v '^ *+' conftest.er1 >conftest.err
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } &&
7660 { ac_try='test -z "$ac_c_werror_flag"
7661 || test ! -s conftest.err'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; } &&
7667 { ac_try='test -s conftest$ac_exeext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_lib_m_main=yes
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7680 rm -f conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext conftest.$ac_ext
7682 LIBS=$ac_check_lib_save_LIBS
7684 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7685 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7686 if test $ac_cv_lib_m_main = yes; then
7687 cat >>confdefs.h <<_ACEOF
7696 # We need to link with -lw to get `wctype' on Solaris before Solaris
7697 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7698 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7699 # is known to have this problem). Therefore we avoid libw if we can.
7700 echo "$as_me:$LINENO: checking for wctype" >&5
7701 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7702 if test "${ac_cv_func_wctype+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 cat >conftest.$ac_ext <<_ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7713 #define wctype innocuous_wctype
7715 /* System header to define __stub macros and hopefully few prototypes,
7716 which can conflict with char wctype (); below.
7717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7718 <limits.h> exists even on freestanding compilers. */
7721 # include <limits.h>
7723 # include <assert.h>
7728 /* Override any gcc2 internal prototype to avoid an error. */
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7736 /* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739 #if defined (__stub_wctype) || defined (__stub___wctype)
7742 char (*f) () = wctype;
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -z "$ac_c_werror_flag"
7766 || test ! -s conftest.err'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 ac_cv_func_wctype=yes
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_cv_func_wctype=no
7785 rm -f conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7788 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7789 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7790 if test $ac_cv_func_wctype = yes; then
7794 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7795 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7796 if test "${ac_cv_lib_w_wctype+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 ac_check_lib_save_LIBS=$LIBS
7801 cat >conftest.$ac_ext <<_ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7808 /* Override any gcc2 internal prototype to avoid an error. */
7812 /* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>conftest.er1
7827 grep -v '^ *+' conftest.er1 >conftest.err
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag"
7833 || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_lib_w_wctype=yes
7847 echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7850 ac_cv_lib_w_wctype=no
7852 rm -f conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS
7856 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7857 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7858 if test $ac_cv_lib_w_wctype = yes; then
7859 cat >>confdefs.h <<_ACEOF
7870 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7871 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7872 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7873 if test "${ac_cv_search_gethostbyname+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 ac_func_search_save_LIBS=$LIBS
7877 ac_cv_search_gethostbyname=no
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7885 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891 char gethostbyname ();
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902 (eval $ac_link) 2>conftest.er1
7904 grep -v '^ *+' conftest.er1 >conftest.err
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_c_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest$ac_exeext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_search_gethostbyname="none required"
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7928 rm -f conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930 if test "$ac_cv_search_gethostbyname" = no; then
7931 for ac_lib in nsl; do
7932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7933 cat >conftest.$ac_ext <<_ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7940 /* Override any gcc2 internal prototype to avoid an error. */
7944 /* We use char because int might match the return type of a gcc2
7945 builtin and then its argument prototype would still apply. */
7946 char gethostbyname ();
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957 (eval $ac_link) 2>conftest.er1
7959 grep -v '^ *+' conftest.er1 >conftest.err
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -z "$ac_c_werror_flag"
7965 || test ! -s conftest.err'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; } &&
7971 { ac_try='test -s conftest$ac_exeext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_cv_search_gethostbyname="-l$ac_lib"
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7984 rm -f conftest.err conftest.$ac_objext \
7985 conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_func_search_save_LIBS
7990 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7991 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7992 if test "$ac_cv_search_gethostbyname" != no; then
7993 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7998 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7999 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8000 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8001 if test "${ac_cv_search_socketpair+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 ac_func_search_save_LIBS=$LIBS
8005 ac_cv_search_socketpair=no
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8013 /* Override any gcc2 internal prototype to avoid an error. */
8017 /* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>conftest.er1
8032 grep -v '^ *+' conftest.er1 >conftest.err
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -z "$ac_c_werror_flag"
8038 || test ! -s conftest.err'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 ac_cv_search_socketpair="none required"
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8056 rm -f conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8058 if test "$ac_cv_search_socketpair" = no; then
8059 for ac_lib in socket; do
8060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8061 cat >conftest.$ac_ext <<_ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8068 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085 (eval $ac_link) 2>conftest.er1
8087 grep -v '^ *+' conftest.er1 >conftest.err
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try='test -z "$ac_c_werror_flag"
8093 || test ! -s conftest.err'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; } &&
8099 { ac_try='test -s conftest$ac_exeext'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_cv_search_socketpair="-l$ac_lib"
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8112 rm -f conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8116 LIBS=$ac_func_search_save_LIBS
8118 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8119 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8120 if test "$ac_cv_search_socketpair" != no; then
8121 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8126 # For the TUI, we need enhanced curses functionality.
8128 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8129 # curses library because the latter might not provide all the
8130 # functionality we need. However, this leads to problems on systems
8131 # where the linker searches /usr/local/lib, but the compiler doesn't
8132 # search /usr/local/include, if ncurses is installed in /usr/local. A
8133 # default installation of ncurses on alpha*-dec-osf* will lead to such
8135 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8136 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8137 if test "${ac_cv_search_waddstr+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 ac_func_search_save_LIBS=$LIBS
8141 ac_cv_search_waddstr=no
8142 cat >conftest.$ac_ext <<_ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8149 /* Override any gcc2 internal prototype to avoid an error. */
8153 /* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166 (eval $ac_link) 2>conftest.er1
8168 grep -v '^ *+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -z "$ac_c_werror_flag"
8174 || test ! -s conftest.err'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest$ac_exeext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_search_waddstr="none required"
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8192 rm -f conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194 if test "$ac_cv_search_waddstr" = no; then
8195 for ac_lib in ncurses cursesX curses; do
8196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8197 cat >conftest.$ac_ext <<_ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8204 /* Override any gcc2 internal prototype to avoid an error. */
8208 /* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */
8219 rm -f conftest.$ac_objext conftest$ac_exeext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221 (eval $ac_link) 2>conftest.er1
8223 grep -v '^ *+' conftest.er1 >conftest.err
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -z "$ac_c_werror_flag"
8229 || test ! -s conftest.err'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest$ac_exeext'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_cv_search_waddstr="-l$ac_lib"
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8248 rm -f conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
8252 LIBS=$ac_func_search_save_LIBS
8254 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8255 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8256 if test "$ac_cv_search_waddstr" != no; then
8257 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8262 # Since GDB uses Readline, we need termcap functionality. In many
8263 # cases this will be provided by the curses library, but some systems
8264 # have a seperate termcap library, or no curses library at all.
8268 if test -d $srcdir/libtermcap; then
8269 LIBS="../libtermcap/libtermcap.a $LIBS"
8270 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8273 ac_cv_search_tgetent="none required"
8277 # These are the libraries checked by Readline.
8278 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8279 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8280 if test "${ac_cv_search_tgetent+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 ac_func_search_save_LIBS=$LIBS
8284 ac_cv_search_tgetent=no
8285 cat >conftest.$ac_ext <<_ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8292 /* Override any gcc2 internal prototype to avoid an error. */
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>conftest.er1
8311 grep -v '^ *+' conftest.er1 >conftest.err
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest$ac_exeext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_cv_search_tgetent="none required"
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8335 rm -f conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8337 if test "$ac_cv_search_tgetent" = no; then
8338 for ac_lib in termcap tinfo curses ncurses; do
8339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8340 cat >conftest.$ac_ext <<_ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8347 /* Override any gcc2 internal prototype to avoid an error. */
8351 /* We use char because int might match the return type of a gcc2
8352 builtin and then its argument prototype would still apply. */
8362 rm -f conftest.$ac_objext conftest$ac_exeext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8364 (eval $ac_link) 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag"
8372 || test ! -s conftest.err'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest$ac_exeext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_cv_search_tgetent="-l$ac_lib"
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -f conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8395 LIBS=$ac_func_search_save_LIBS
8397 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8398 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8399 if test "$ac_cv_search_tgetent" != no; then
8400 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8405 if test "$ac_cv_search_tgetent" = no; then
8406 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8407 echo "$as_me: error: no termcap library found" >&2;}
8408 { (exit 1); exit 1; }; }
8411 # ------------------------- #
8412 # Checks for header files. #
8413 # ------------------------- #
8421 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8422 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8423 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8424 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 #include <sys/types.h>
8446 rm -f conftest.$ac_objext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448 (eval $ac_compile) 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest.$ac_objext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 eval "$as_ac_Header=yes"
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 eval "$as_ac_Header=no"
8475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8480 cat >>confdefs.h <<_ACEOF
8481 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8484 ac_header_dirent=$ac_hdr; break
8488 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8489 if test $ac_header_dirent = dirent.h; then
8490 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8491 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8492 if test "${ac_cv_search_opendir+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 ac_func_search_save_LIBS=$LIBS
8496 ac_cv_search_opendir=no
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8504 /* Override any gcc2 internal prototype to avoid an error. */
8508 /* We use char because int might match the return type of a gcc2
8509 builtin and then its argument prototype would still apply. */
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag"
8529 || test ! -s conftest.err'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_cv_search_opendir="none required"
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8547 rm -f conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 if test "$ac_cv_search_opendir" = no; then
8550 for ac_lib in dir; do
8551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8552 cat >conftest.$ac_ext <<_ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8559 /* Override any gcc2 internal prototype to avoid an error. */
8563 /* We use char because int might match the return type of a gcc2
8564 builtin and then its argument prototype would still apply. */
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576 (eval $ac_link) 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
8583 { ac_try='test -z "$ac_c_werror_flag"
8584 || test ! -s conftest.err'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; } &&
8590 { ac_try='test -s conftest$ac_exeext'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 ac_cv_search_opendir="-l$ac_lib"
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8603 rm -f conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8607 LIBS=$ac_func_search_save_LIBS
8609 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8610 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8611 if test "$ac_cv_search_opendir" != no; then
8612 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8617 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8618 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8619 if test "${ac_cv_search_opendir+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 ac_func_search_save_LIBS=$LIBS
8623 ac_cv_search_opendir=no
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8631 /* Override any gcc2 internal prototype to avoid an error. */
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag"
8656 || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_search_opendir="none required"
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8674 rm -f conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 if test "$ac_cv_search_opendir" = no; then
8678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8679 cat >conftest.$ac_ext <<_ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8686 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8705 grep -v '^ *+' conftest.er1 >conftest.err
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || 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_exeext'
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_search_opendir="-l$ac_lib"
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8730 rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8734 LIBS=$ac_func_search_save_LIBS
8736 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8737 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8738 if test "$ac_cv_search_opendir" != no; then
8739 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8745 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8746 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8747 if test "${ac_cv_header_stat_broken+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 cat >conftest.$ac_ext <<_ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 #include <sys/types.h>
8757 #include <sys/stat.h>
8759 #if defined(S_ISBLK) && defined(S_IFDIR)
8760 # if S_ISBLK (S_IFDIR)
8765 #if defined(S_ISBLK) && defined(S_IFCHR)
8766 # if S_ISBLK (S_IFCHR)
8771 #if defined(S_ISLNK) && defined(S_IFREG)
8772 # if S_ISLNK (S_IFREG)
8777 #if defined(S_ISSOCK) && defined(S_IFREG)
8778 # if S_ISSOCK (S_IFREG)
8784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8785 $EGREP "You lose" >/dev/null 2>&1; then
8786 ac_cv_header_stat_broken=yes
8788 ac_cv_header_stat_broken=no
8793 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8794 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8795 if test $ac_cv_header_stat_broken = yes; then
8797 cat >>confdefs.h <<\_ACEOF
8798 #define STAT_MACROS_BROKEN 1
8803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8805 if test "${ac_cv_header_stdc+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 cat >conftest.$ac_ext <<_ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8827 rm -f conftest.$ac_objext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829 (eval $ac_compile) 2>conftest.er1
8831 grep -v '^ *+' conftest.er1 >conftest.err
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest.$ac_objext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_header_stdc=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_cv_header_stdc=no
8856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8858 if test $ac_cv_header_stdc = yes; then
8859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8860 cat >conftest.$ac_ext <<_ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8870 $EGREP "memchr" >/dev/null 2>&1; then
8873 ac_cv_header_stdc=no
8879 if test $ac_cv_header_stdc = yes; then
8880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8881 cat >conftest.$ac_ext <<_ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8891 $EGREP "free" >/dev/null 2>&1; then
8894 ac_cv_header_stdc=no
8900 if test $ac_cv_header_stdc = yes; then
8901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8902 if test "$cross_compiling" = yes; then
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8912 #if ((' ' & 0x0FF) == 0x020)
8913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8916 # define ISLOWER(c) \
8917 (('a' <= (c) && (c) <= 'i') \
8918 || ('j' <= (c) && (c) <= 'r') \
8919 || ('s' <= (c) && (c) <= 'z'))
8920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8928 for (i = 0; i < 256; i++)
8929 if (XOR (islower (i), ISLOWER (i))
8930 || toupper (i) != TOUPPER (i))
8935 rm -f conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937 (eval $ac_link) 2>&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8948 echo "$as_me: program exited with status $ac_status" >&5
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8953 ac_cv_header_stdc=no
8955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8961 if test $ac_cv_header_stdc = yes; then
8963 cat >>confdefs.h <<\_ACEOF
8964 #define STDC_HEADERS 1
8970 for ac_header in nlist.h
8972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8974 echo "$as_me:$LINENO: checking for $ac_header" >&5
8975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8982 # Is the header compilable?
8983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8985 cat >conftest.$ac_ext <<_ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8991 $ac_includes_default
8992 #include <$ac_header>
8994 rm -f conftest.$ac_objext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8996 (eval $ac_compile) 2>conftest.er1
8998 grep -v '^ *+' conftest.er1 >conftest.err
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -z "$ac_c_werror_flag"
9004 || test ! -s conftest.err'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; } &&
9010 { ac_try='test -s conftest.$ac_objext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 ac_header_compiler=yes
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_header_compiler=no
9023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9025 echo "${ECHO_T}$ac_header_compiler" >&6
9027 # Is the header present?
9028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9030 cat >conftest.$ac_ext <<_ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 #include <$ac_header>
9038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9041 grep -v '^ *+' conftest.er1 >conftest.err
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } >/dev/null; then
9046 if test -s conftest.err; then
9047 ac_cpp_err=$ac_c_preproc_warn_flag
9048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9055 if test -z "$ac_cpp_err"; then
9056 ac_header_preproc=yes
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 ac_header_preproc=no
9063 rm -f conftest.err conftest.$ac_ext
9064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9065 echo "${ECHO_T}$ac_header_preproc" >&6
9067 # So? What about this header?
9068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9074 ac_header_preproc=yes
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9091 ## ------------------------------------------ ##
9092 ## Report this to the AC_PACKAGE_NAME lists. ##
9093 ## ------------------------------------------ ##
9096 sed "s/^/$as_me: WARNING: /" >&2
9099 echo "$as_me:$LINENO: checking for $ac_header" >&5
9100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 eval "$as_ac_Header=\$ac_header_preproc"
9106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9111 cat >>confdefs.h <<_ACEOF
9112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9120 for ac_header in link.h
9122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9123 echo "$as_me:$LINENO: checking for $ac_header" >&5
9124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 #if HAVE_SYS_TYPES_H
9135 # include <sys/types.h>
9142 #include <$ac_header>
9144 rm -f conftest.$ac_objext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9146 (eval $ac_compile) 2>conftest.er1
9148 grep -v '^ *+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag"
9154 || test ! -s conftest.err'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest.$ac_objext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 eval "$as_ac_Header=yes"
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 eval "$as_ac_Header=no"
9173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9178 cat >>confdefs.h <<_ACEOF
9179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9187 for ac_header in machine/reg.h
9189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191 echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9199 # Is the header compilable?
9200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 $ac_includes_default
9209 #include <$ac_header>
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1 >conftest.err
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_header_compiler=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_header_compiler=no
9240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9242 echo "${ECHO_T}$ac_header_compiler" >&6
9244 # Is the header present?
9245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9247 cat >conftest.$ac_ext <<_ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9253 #include <$ac_header>
9255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9258 grep -v '^ *+' conftest.er1 >conftest.err
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } >/dev/null; then
9263 if test -s conftest.err; then
9264 ac_cpp_err=$ac_c_preproc_warn_flag
9265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9272 if test -z "$ac_cpp_err"; then
9273 ac_header_preproc=yes
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9278 ac_header_preproc=no
9280 rm -f conftest.err conftest.$ac_ext
9281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9282 echo "${ECHO_T}$ac_header_preproc" >&6
9284 # So? What about this header?
9285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9291 ac_header_preproc=yes
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9308 ## ------------------------------------------ ##
9309 ## Report this to the AC_PACKAGE_NAME lists. ##
9310 ## ------------------------------------------ ##
9313 sed "s/^/$as_me: WARNING: /" >&2
9316 echo "$as_me:$LINENO: checking for $ac_header" >&5
9317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 eval "$as_ac_Header=\$ac_header_preproc"
9323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9328 cat >>confdefs.h <<_ACEOF
9329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9338 for ac_header in poll.h sys/poll.h
9340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9342 echo "$as_me:$LINENO: checking for $ac_header" >&5
9343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9350 # Is the header compilable?
9351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 $ac_includes_default
9360 #include <$ac_header>
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>conftest.er1
9366 grep -v '^ *+' conftest.er1 >conftest.err
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -z "$ac_c_werror_flag"
9372 || test ! -s conftest.err'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; } &&
9378 { ac_try='test -s conftest.$ac_objext'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 ac_header_compiler=yes
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9389 ac_header_compiler=no
9391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9393 echo "${ECHO_T}$ac_header_compiler" >&6
9395 # Is the header present?
9396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 #include <$ac_header>
9406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9409 grep -v '^ *+' conftest.er1 >conftest.err
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } >/dev/null; then
9414 if test -s conftest.err; then
9415 ac_cpp_err=$ac_c_preproc_warn_flag
9416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9423 if test -z "$ac_cpp_err"; then
9424 ac_header_preproc=yes
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 ac_header_preproc=no
9431 rm -f conftest.err conftest.$ac_ext
9432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9433 echo "${ECHO_T}$ac_header_preproc" >&6
9435 # So? What about this header?
9436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9442 ac_header_preproc=yes
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9459 ## ------------------------------------------ ##
9460 ## Report this to the AC_PACKAGE_NAME lists. ##
9461 ## ------------------------------------------ ##
9464 sed "s/^/$as_me: WARNING: /" >&2
9467 echo "$as_me:$LINENO: checking for $ac_header" >&5
9468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 eval "$as_ac_Header=\$ac_header_preproc"
9474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9479 cat >>confdefs.h <<_ACEOF
9480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9490 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9494 echo "$as_me:$LINENO: checking for $ac_header" >&5
9495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9502 # Is the header compilable?
9503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9505 cat >conftest.$ac_ext <<_ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 $ac_includes_default
9512 #include <$ac_header>
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>conftest.er1
9518 grep -v '^ *+' conftest.er1 >conftest.err
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -z "$ac_c_werror_flag"
9524 || test ! -s conftest.err'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; } &&
9530 { ac_try='test -s conftest.$ac_objext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_header_compiler=yes
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9541 ac_header_compiler=no
9543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9545 echo "${ECHO_T}$ac_header_compiler" >&6
9547 # Is the header present?
9548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 #include <$ac_header>
9558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } >/dev/null; then
9566 if test -s conftest.err; then
9567 ac_cpp_err=$ac_c_preproc_warn_flag
9568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9575 if test -z "$ac_cpp_err"; then
9576 ac_header_preproc=yes
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9581 ac_header_preproc=no
9583 rm -f conftest.err conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9585 echo "${ECHO_T}$ac_header_preproc" >&6
9587 # So? What about this header?
9588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9594 ac_header_preproc=yes
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9611 ## ------------------------------------------ ##
9612 ## Report this to the AC_PACKAGE_NAME lists. ##
9613 ## ------------------------------------------ ##
9616 sed "s/^/$as_me: WARNING: /" >&2
9619 echo "$as_me:$LINENO: checking for $ac_header" >&5
9620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 eval "$as_ac_Header=\$ac_header_preproc"
9626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9631 cat >>confdefs.h <<_ACEOF
9632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9640 for ac_header in stddef.h
9642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9644 echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9652 # Is the header compilable?
9653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9655 cat >conftest.$ac_ext <<_ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9662 #include <$ac_header>
9664 rm -f conftest.$ac_objext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 (eval $ac_compile) 2>conftest.er1
9668 grep -v '^ *+' conftest.er1 >conftest.err
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest.$ac_objext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_header_compiler=yes
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_header_compiler=no
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9695 echo "${ECHO_T}$ac_header_compiler" >&6
9697 # Is the header present?
9698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 #include <$ac_header>
9708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9711 grep -v '^ *+' conftest.er1 >conftest.err
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } >/dev/null; then
9716 if test -s conftest.err; then
9717 ac_cpp_err=$ac_c_preproc_warn_flag
9718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9725 if test -z "$ac_cpp_err"; then
9726 ac_header_preproc=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_preproc=no
9733 rm -f conftest.err conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9735 echo "${ECHO_T}$ac_header_preproc" >&6
9737 # So? What about this header?
9738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9744 ac_header_preproc=yes
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9761 ## ------------------------------------------ ##
9762 ## Report this to the AC_PACKAGE_NAME lists. ##
9763 ## ------------------------------------------ ##
9766 sed "s/^/$as_me: WARNING: /" >&2
9769 echo "$as_me:$LINENO: checking for $ac_header" >&5
9770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 eval "$as_ac_Header=\$ac_header_preproc"
9776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9790 for ac_header in stdlib.h
9792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9794 echo "$as_me:$LINENO: checking for $ac_header" >&5
9795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9802 # Is the header compilable?
9803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9805 cat >conftest.$ac_ext <<_ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 $ac_includes_default
9812 #include <$ac_header>
9814 rm -f conftest.$ac_objext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_header_compiler=yes
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 ac_header_compiler=no
9843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9845 echo "${ECHO_T}$ac_header_compiler" >&6
9847 # Is the header present?
9848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 #include <$ac_header>
9858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9861 grep -v '^ *+' conftest.er1 >conftest.err
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } >/dev/null; then
9866 if test -s conftest.err; then
9867 ac_cpp_err=$ac_c_preproc_warn_flag
9868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9875 if test -z "$ac_cpp_err"; then
9876 ac_header_preproc=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_header_preproc=no
9883 rm -f conftest.err conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9885 echo "${ECHO_T}$ac_header_preproc" >&6
9887 # So? What about this header?
9888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9894 ac_header_preproc=yes
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9911 ## ------------------------------------------ ##
9912 ## Report this to the AC_PACKAGE_NAME lists. ##
9913 ## ------------------------------------------ ##
9916 sed "s/^/$as_me: WARNING: /" >&2
9919 echo "$as_me:$LINENO: checking for $ac_header" >&5
9920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 eval "$as_ac_Header=\$ac_header_preproc"
9926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9931 cat >>confdefs.h <<_ACEOF
9932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9940 for ac_header in stdint.h
9942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9944 echo "$as_me:$LINENO: checking for $ac_header" >&5
9945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9952 # Is the header compilable?
9953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9955 cat >conftest.$ac_ext <<_ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 #include <$ac_header>
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_header_compiler=yes
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_header_compiler=no
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9995 echo "${ECHO_T}$ac_header_compiler" >&6
9997 # Is the header present?
9998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 #include <$ac_header>
10008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } >/dev/null; then
10016 if test -s conftest.err; then
10017 ac_cpp_err=$ac_c_preproc_warn_flag
10018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10025 if test -z "$ac_cpp_err"; then
10026 ac_header_preproc=yes
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_header_preproc=no
10033 rm -f conftest.err conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10035 echo "${ECHO_T}$ac_header_preproc" >&6
10037 # So? What about this header?
10038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10044 ac_header_preproc=yes
10047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10061 ## ------------------------------------------ ##
10062 ## Report this to the AC_PACKAGE_NAME lists. ##
10063 ## ------------------------------------------ ##
10066 sed "s/^/$as_me: WARNING: /" >&2
10069 echo "$as_me:$LINENO: checking for $ac_header" >&5
10070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 eval "$as_ac_Header=\$ac_header_preproc"
10076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10081 cat >>confdefs.h <<_ACEOF
10082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10092 for ac_header in string.h memory.h strings.h
10094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10096 echo "$as_me:$LINENO: checking for $ac_header" >&5
10097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10104 # Is the header compilable?
10105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10107 cat >conftest.$ac_ext <<_ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 $ac_includes_default
10114 #include <$ac_header>
10116 rm -f conftest.$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118 (eval $ac_compile) 2>conftest.er1
10120 grep -v '^ *+' conftest.er1 >conftest.err
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -z "$ac_c_werror_flag"
10126 || test ! -s conftest.err'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest.$ac_objext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 ac_header_compiler=yes
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_header_compiler=no
10145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10147 echo "${ECHO_T}$ac_header_compiler" >&6
10149 # Is the header present?
10150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10152 cat >conftest.$ac_ext <<_ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 #include <$ac_header>
10160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10163 grep -v '^ *+' conftest.er1 >conftest.err
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } >/dev/null; then
10168 if test -s conftest.err; then
10169 ac_cpp_err=$ac_c_preproc_warn_flag
10170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10177 if test -z "$ac_cpp_err"; then
10178 ac_header_preproc=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_header_preproc=no
10185 rm -f conftest.err conftest.$ac_ext
10186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10187 echo "${ECHO_T}$ac_header_preproc" >&6
10189 # So? What about this header?
10190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10196 ac_header_preproc=yes
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10213 ## ------------------------------------------ ##
10214 ## Report this to the AC_PACKAGE_NAME lists. ##
10215 ## ------------------------------------------ ##
10218 sed "s/^/$as_me: WARNING: /" >&2
10221 echo "$as_me:$LINENO: checking for $ac_header" >&5
10222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 eval "$as_ac_Header=\$ac_header_preproc"
10228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10233 cat >>confdefs.h <<_ACEOF
10234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10242 for ac_header in sys/fault.h
10244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10246 echo "$as_me:$LINENO: checking for $ac_header" >&5
10247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10254 # Is the header compilable?
10255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10257 cat >conftest.$ac_ext <<_ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 $ac_includes_default
10264 #include <$ac_header>
10266 rm -f conftest.$ac_objext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10268 (eval $ac_compile) 2>conftest.er1
10270 grep -v '^ *+' conftest.er1 >conftest.err
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
10275 { ac_try='test -z "$ac_c_werror_flag"
10276 || test ! -s conftest.err'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest.$ac_objext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_header_compiler=yes
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_header_compiler=no
10295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10297 echo "${ECHO_T}$ac_header_compiler" >&6
10299 # Is the header present?
10300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 #include <$ac_header>
10310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } >/dev/null; then
10318 if test -s conftest.err; then
10319 ac_cpp_err=$ac_c_preproc_warn_flag
10320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10327 if test -z "$ac_cpp_err"; then
10328 ac_header_preproc=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_header_preproc=no
10335 rm -f conftest.err conftest.$ac_ext
10336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10337 echo "${ECHO_T}$ac_header_preproc" >&6
10339 # So? What about this header?
10340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10346 ac_header_preproc=yes
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10363 ## ------------------------------------------ ##
10364 ## Report this to the AC_PACKAGE_NAME lists. ##
10365 ## ------------------------------------------ ##
10368 sed "s/^/$as_me: WARNING: /" >&2
10371 echo "$as_me:$LINENO: checking for $ac_header" >&5
10372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 eval "$as_ac_Header=\$ac_header_preproc"
10378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10383 cat >>confdefs.h <<_ACEOF
10384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10392 for ac_header in sys/file.h
10394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10396 echo "$as_me:$LINENO: checking for $ac_header" >&5
10397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10404 # Is the header compilable?
10405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10407 cat >conftest.$ac_ext <<_ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 $ac_includes_default
10414 #include <$ac_header>
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418 (eval $ac_compile) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag"
10426 || test ! -s conftest.err'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; } &&
10432 { ac_try='test -s conftest.$ac_objext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_header_compiler=yes
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_header_compiler=no
10445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10447 echo "${ECHO_T}$ac_header_compiler" >&6
10449 # Is the header present?
10450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10452 cat >conftest.$ac_ext <<_ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 #include <$ac_header>
10460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } >/dev/null; then
10468 if test -s conftest.err; then
10469 ac_cpp_err=$ac_c_preproc_warn_flag
10470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10477 if test -z "$ac_cpp_err"; then
10478 ac_header_preproc=yes
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_header_preproc=no
10485 rm -f conftest.err conftest.$ac_ext
10486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10487 echo "${ECHO_T}$ac_header_preproc" >&6
10489 # So? What about this header?
10490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10496 ac_header_preproc=yes
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10513 ## ------------------------------------------ ##
10514 ## Report this to the AC_PACKAGE_NAME lists. ##
10515 ## ------------------------------------------ ##
10518 sed "s/^/$as_me: WARNING: /" >&2
10521 echo "$as_me:$LINENO: checking for $ac_header" >&5
10522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 eval "$as_ac_Header=\$ac_header_preproc"
10528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10533 cat >>confdefs.h <<_ACEOF
10534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10542 for ac_header in sys/filio.h
10544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10546 echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10554 # Is the header compilable?
10555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10557 cat >conftest.$ac_ext <<_ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 $ac_includes_default
10564 #include <$ac_header>
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568 (eval $ac_compile) 2>conftest.er1
10570 grep -v '^ *+' conftest.er1 >conftest.err
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_header_compiler=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_header_compiler=no
10595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10597 echo "${ECHO_T}$ac_header_compiler" >&6
10599 # Is the header present?
10600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10602 cat >conftest.$ac_ext <<_ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 #include <$ac_header>
10610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10613 grep -v '^ *+' conftest.er1 >conftest.err
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } >/dev/null; then
10618 if test -s conftest.err; then
10619 ac_cpp_err=$ac_c_preproc_warn_flag
10620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10627 if test -z "$ac_cpp_err"; then
10628 ac_header_preproc=yes
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_header_preproc=no
10635 rm -f conftest.err conftest.$ac_ext
10636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10637 echo "${ECHO_T}$ac_header_preproc" >&6
10639 # So? What about this header?
10640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10646 ac_header_preproc=yes
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10663 ## ------------------------------------------ ##
10664 ## Report this to the AC_PACKAGE_NAME lists. ##
10665 ## ------------------------------------------ ##
10668 sed "s/^/$as_me: WARNING: /" >&2
10671 echo "$as_me:$LINENO: checking for $ac_header" >&5
10672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 eval "$as_ac_Header=\$ac_header_preproc"
10678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10683 cat >>confdefs.h <<_ACEOF
10684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10692 for ac_header in sys/ioctl.h
10694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10696 echo "$as_me:$LINENO: checking for $ac_header" >&5
10697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10704 # Is the header compilable?
10705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10707 cat >conftest.$ac_ext <<_ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10713 $ac_includes_default
10714 #include <$ac_header>
10716 rm -f conftest.$ac_objext
10717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718 (eval $ac_compile) 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } &&
10725 { ac_try='test -z "$ac_c_werror_flag"
10726 || test ! -s conftest.err'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_header_compiler=yes
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_header_compiler=no
10745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10747 echo "${ECHO_T}$ac_header_compiler" >&6
10749 # Is the header present?
10750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 #include <$ac_header>
10760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10763 grep -v '^ *+' conftest.er1 >conftest.err
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } >/dev/null; then
10768 if test -s conftest.err; then
10769 ac_cpp_err=$ac_c_preproc_warn_flag
10770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10777 if test -z "$ac_cpp_err"; then
10778 ac_header_preproc=yes
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 ac_header_preproc=no
10785 rm -f conftest.err conftest.$ac_ext
10786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10787 echo "${ECHO_T}$ac_header_preproc" >&6
10789 # So? What about this header?
10790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10796 ac_header_preproc=yes
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10813 ## ------------------------------------------ ##
10814 ## Report this to the AC_PACKAGE_NAME lists. ##
10815 ## ------------------------------------------ ##
10818 sed "s/^/$as_me: WARNING: /" >&2
10821 echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 eval "$as_ac_Header=\$ac_header_preproc"
10828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10833 cat >>confdefs.h <<_ACEOF
10834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10842 for ac_header in sys/param.h
10844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10846 echo "$as_me:$LINENO: checking for $ac_header" >&5
10847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10854 # Is the header compilable?
10855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 $ac_includes_default
10864 #include <$ac_header>
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>conftest.er1
10870 grep -v '^ *+' conftest.er1 >conftest.err
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag"
10876 || test ! -s conftest.err'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10888 ac_header_compiler=yes
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_header_compiler=no
10895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10897 echo "${ECHO_T}$ac_header_compiler" >&6
10899 # Is the header present?
10900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10902 cat >conftest.$ac_ext <<_ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 #include <$ac_header>
10910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10913 grep -v '^ *+' conftest.er1 >conftest.err
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } >/dev/null; then
10918 if test -s conftest.err; then
10919 ac_cpp_err=$ac_c_preproc_warn_flag
10920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10927 if test -z "$ac_cpp_err"; then
10928 ac_header_preproc=yes
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 ac_header_preproc=no
10935 rm -f conftest.err conftest.$ac_ext
10936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10937 echo "${ECHO_T}$ac_header_preproc" >&6
10939 # So? What about this header?
10940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10946 ac_header_preproc=yes
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10963 ## ------------------------------------------ ##
10964 ## Report this to the AC_PACKAGE_NAME lists. ##
10965 ## ------------------------------------------ ##
10968 sed "s/^/$as_me: WARNING: /" >&2
10971 echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 eval "$as_ac_Header=\$ac_header_preproc"
10978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10983 cat >>confdefs.h <<_ACEOF
10984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10992 for ac_header in sys/proc.h
10994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10995 echo "$as_me:$LINENO: checking for $ac_header" >&5
10996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 #if HAVE_SYS_PARAM_H
11007 # include <sys/param.h>
11011 #include <$ac_header>
11013 rm -f conftest.$ac_objext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015 (eval $ac_compile) 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest.$ac_objext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 eval "$as_ac_Header=yes"
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 eval "$as_ac_Header=no"
11042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11047 cat >>confdefs.h <<_ACEOF
11048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11056 for ac_header in sys/procfs.h
11058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11060 echo "$as_me:$LINENO: checking for $ac_header" >&5
11061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11068 # Is the header compilable?
11069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 $ac_includes_default
11078 #include <$ac_header>
11080 rm -f conftest.$ac_objext
11081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11082 (eval $ac_compile) 2>conftest.er1
11084 grep -v '^ *+' conftest.er1 >conftest.err
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -z "$ac_c_werror_flag"
11090 || test ! -s conftest.err'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try='test -s conftest.$ac_objext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_header_compiler=yes
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11107 ac_header_compiler=no
11109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11111 echo "${ECHO_T}$ac_header_compiler" >&6
11113 # Is the header present?
11114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11116 cat >conftest.$ac_ext <<_ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 #include <$ac_header>
11124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } >/dev/null; then
11132 if test -s conftest.err; then
11133 ac_cpp_err=$ac_c_preproc_warn_flag
11134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11141 if test -z "$ac_cpp_err"; then
11142 ac_header_preproc=yes
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_header_preproc=no
11149 rm -f conftest.err conftest.$ac_ext
11150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11151 echo "${ECHO_T}$ac_header_preproc" >&6
11153 # So? What about this header?
11154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11160 ac_header_preproc=yes
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11177 ## ------------------------------------------ ##
11178 ## Report this to the AC_PACKAGE_NAME lists. ##
11179 ## ------------------------------------------ ##
11182 sed "s/^/$as_me: WARNING: /" >&2
11185 echo "$as_me:$LINENO: checking for $ac_header" >&5
11186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 eval "$as_ac_Header=\$ac_header_preproc"
11192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11207 for ac_header in sys/ptrace.h ptrace.h
11209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11211 echo "$as_me:$LINENO: checking for $ac_header" >&5
11212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11219 # Is the header compilable?
11220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11222 cat >conftest.$ac_ext <<_ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228 $ac_includes_default
11229 #include <$ac_header>
11231 rm -f conftest.$ac_objext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>conftest.er1
11235 grep -v '^ *+' conftest.er1 >conftest.err
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_c_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest.$ac_objext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_header_compiler=yes
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_header_compiler=no
11260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11262 echo "${ECHO_T}$ac_header_compiler" >&6
11264 # Is the header present?
11265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 #include <$ac_header>
11275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11278 grep -v '^ *+' conftest.er1 >conftest.err
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } >/dev/null; then
11283 if test -s conftest.err; then
11284 ac_cpp_err=$ac_c_preproc_warn_flag
11285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11292 if test -z "$ac_cpp_err"; then
11293 ac_header_preproc=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_header_preproc=no
11300 rm -f conftest.err conftest.$ac_ext
11301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11302 echo "${ECHO_T}$ac_header_preproc" >&6
11304 # So? What about this header?
11305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11311 ac_header_preproc=yes
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11328 ## ------------------------------------------ ##
11329 ## Report this to the AC_PACKAGE_NAME lists. ##
11330 ## ------------------------------------------ ##
11333 sed "s/^/$as_me: WARNING: /" >&2
11336 echo "$as_me:$LINENO: checking for $ac_header" >&5
11337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 eval "$as_ac_Header=\$ac_header_preproc"
11343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11358 for ac_header in sys/reg.h sys/debugreg.h
11360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11362 echo "$as_me:$LINENO: checking for $ac_header" >&5
11363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11370 # Is the header compilable?
11371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11373 cat >conftest.$ac_ext <<_ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 $ac_includes_default
11380 #include <$ac_header>
11382 rm -f conftest.$ac_objext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384 (eval $ac_compile) 2>conftest.er1
11386 grep -v '^ *+' conftest.er1 >conftest.err
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
11391 { ac_try='test -z "$ac_c_werror_flag"
11392 || test ! -s conftest.err'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; } &&
11398 { ac_try='test -s conftest.$ac_objext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_header_compiler=yes
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 ac_header_compiler=no
11411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11413 echo "${ECHO_T}$ac_header_compiler" >&6
11415 # Is the header present?
11416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11418 cat >conftest.$ac_ext <<_ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 #include <$ac_header>
11426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } >/dev/null; then
11434 if test -s conftest.err; then
11435 ac_cpp_err=$ac_c_preproc_warn_flag
11436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11443 if test -z "$ac_cpp_err"; then
11444 ac_header_preproc=yes
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 ac_header_preproc=no
11451 rm -f conftest.err conftest.$ac_ext
11452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11453 echo "${ECHO_T}$ac_header_preproc" >&6
11455 # So? What about this header?
11456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11462 ac_header_preproc=yes
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11479 ## ------------------------------------------ ##
11480 ## Report this to the AC_PACKAGE_NAME lists. ##
11481 ## ------------------------------------------ ##
11484 sed "s/^/$as_me: WARNING: /" >&2
11487 echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 eval "$as_ac_Header=\$ac_header_preproc"
11494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11499 cat >>confdefs.h <<_ACEOF
11500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508 for ac_header in sys/select.h
11510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11512 echo "$as_me:$LINENO: checking for $ac_header" >&5
11513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11520 # Is the header compilable?
11521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #include <$ac_header>
11532 rm -f conftest.$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>conftest.er1
11536 grep -v '^ *+' conftest.er1 >conftest.err
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag"
11542 || test ! -s conftest.err'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_header_compiler=yes
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_header_compiler=no
11561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6
11565 # Is the header present?
11566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null; then
11584 if test -s conftest.err; then
11585 ac_cpp_err=$ac_c_preproc_warn_flag
11586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11593 if test -z "$ac_cpp_err"; then
11594 ac_header_preproc=yes
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 ac_header_preproc=no
11601 rm -f conftest.err conftest.$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11603 echo "${ECHO_T}$ac_header_preproc" >&6
11605 # So? What about this header?
11606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11612 ac_header_preproc=yes
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11629 ## ------------------------------------------ ##
11630 ## Report this to the AC_PACKAGE_NAME lists. ##
11631 ## ------------------------------------------ ##
11634 sed "s/^/$as_me: WARNING: /" >&2
11637 echo "$as_me:$LINENO: checking for $ac_header" >&5
11638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 eval "$as_ac_Header=\$ac_header_preproc"
11644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11649 cat >>confdefs.h <<_ACEOF
11650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11658 for ac_header in sys/syscall.h
11660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11662 echo "$as_me:$LINENO: checking for $ac_header" >&5
11663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11670 # Is the header compilable?
11671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11673 cat >conftest.$ac_ext <<_ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 $ac_includes_default
11680 #include <$ac_header>
11682 rm -f conftest.$ac_objext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684 (eval $ac_compile) 2>conftest.er1
11686 grep -v '^ *+' conftest.er1 >conftest.err
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag"
11692 || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest.$ac_objext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_header_compiler=yes
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_header_compiler=no
11711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11713 echo "${ECHO_T}$ac_header_compiler" >&6
11715 # Is the header present?
11716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 #include <$ac_header>
11726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11729 grep -v '^ *+' conftest.er1 >conftest.err
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } >/dev/null; then
11734 if test -s conftest.err; then
11735 ac_cpp_err=$ac_c_preproc_warn_flag
11736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11743 if test -z "$ac_cpp_err"; then
11744 ac_header_preproc=yes
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 ac_header_preproc=no
11751 rm -f conftest.err conftest.$ac_ext
11752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11753 echo "${ECHO_T}$ac_header_preproc" >&6
11755 # So? What about this header?
11756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11762 ac_header_preproc=yes
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11779 ## ------------------------------------------ ##
11780 ## Report this to the AC_PACKAGE_NAME lists. ##
11781 ## ------------------------------------------ ##
11784 sed "s/^/$as_me: WARNING: /" >&2
11787 echo "$as_me:$LINENO: checking for $ac_header" >&5
11788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 eval "$as_ac_Header=\$ac_header_preproc"
11794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11799 cat >>confdefs.h <<_ACEOF
11800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11808 for ac_header in sys/types.h
11810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11812 echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11820 # Is the header compilable?
11821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 $ac_includes_default
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"
11842 || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_header_compiler=yes
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 ac_header_compiler=no
11861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11863 echo "${ECHO_T}$ac_header_compiler" >&6
11865 # Is the header present?
11866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11868 cat >conftest.$ac_ext <<_ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 #include <$ac_header>
11876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11879 grep -v '^ *+' conftest.er1 >conftest.err
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } >/dev/null; then
11884 if test -s conftest.err; then
11885 ac_cpp_err=$ac_c_preproc_warn_flag
11886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11893 if test -z "$ac_cpp_err"; then
11894 ac_header_preproc=yes
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_header_preproc=no
11901 rm -f conftest.err conftest.$ac_ext
11902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11903 echo "${ECHO_T}$ac_header_preproc" >&6
11905 # So? What about this header?
11906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11912 ac_header_preproc=yes
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11929 ## ------------------------------------------ ##
11930 ## Report this to the AC_PACKAGE_NAME lists. ##
11931 ## ------------------------------------------ ##
11934 sed "s/^/$as_me: WARNING: /" >&2
11937 echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 eval "$as_ac_Header=\$ac_header_preproc"
11944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11949 cat >>confdefs.h <<_ACEOF
11950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11958 for ac_header in sys/user.h
11960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11961 echo "$as_me:$LINENO: checking for $ac_header" >&5
11962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 cat >conftest.$ac_ext <<_ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 #if HAVE_SYS_PARAM_H
11973 # include <sys/param.h>
11977 #include <$ac_header>
11979 rm -f conftest.$ac_objext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981 (eval $ac_compile) 2>conftest.er1
11983 grep -v '^ *+' conftest.er1 >conftest.err
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try='test -z "$ac_c_werror_flag"
11989 || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 eval "$as_ac_Header=yes"
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 eval "$as_ac_Header=no"
12008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12013 cat >>confdefs.h <<_ACEOF
12014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12023 for ac_header in sys/wait.h wait.h
12025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12027 echo "$as_me:$LINENO: checking for $ac_header" >&5
12028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12035 # Is the header compilable?
12036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12038 cat >conftest.$ac_ext <<_ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 $ac_includes_default
12045 #include <$ac_header>
12047 rm -f conftest.$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag"
12057 || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest.$ac_objext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 ac_header_compiler=yes
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 ac_header_compiler=no
12076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12078 echo "${ECHO_T}$ac_header_compiler" >&6
12080 # Is the header present?
12081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12083 cat >conftest.$ac_ext <<_ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 #include <$ac_header>
12091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12094 grep -v '^ *+' conftest.er1 >conftest.err
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } >/dev/null; then
12099 if test -s conftest.err; then
12100 ac_cpp_err=$ac_c_preproc_warn_flag
12101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12108 if test -z "$ac_cpp_err"; then
12109 ac_header_preproc=yes
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_header_preproc=no
12116 rm -f conftest.err conftest.$ac_ext
12117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12118 echo "${ECHO_T}$ac_header_preproc" >&6
12120 # So? What about this header?
12121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12127 ac_header_preproc=yes
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12144 ## ------------------------------------------ ##
12145 ## Report this to the AC_PACKAGE_NAME lists. ##
12146 ## ------------------------------------------ ##
12149 sed "s/^/$as_me: WARNING: /" >&2
12152 echo "$as_me:$LINENO: checking for $ac_header" >&5
12153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 eval "$as_ac_Header=\$ac_header_preproc"
12159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12164 cat >>confdefs.h <<_ACEOF
12165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12175 for ac_header in termios.h termio.h sgtty.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"
12209 || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_header_compiler=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_header_compiler=no
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230 echo "${ECHO_T}$ac_header_compiler" >&6
12232 # Is the header present?
12233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12235 cat >conftest.$ac_ext <<_ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 #include <$ac_header>
12243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } >/dev/null; then
12251 if test -s conftest.err; then
12252 ac_cpp_err=$ac_c_preproc_warn_flag
12253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12260 if test -z "$ac_cpp_err"; then
12261 ac_header_preproc=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_header_preproc=no
12268 rm -f conftest.err conftest.$ac_ext
12269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270 echo "${ECHO_T}$ac_header_preproc" >&6
12272 # So? What about this header?
12273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc=yes
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12296 ## ------------------------------------------ ##
12297 ## Report this to the AC_PACKAGE_NAME lists. ##
12298 ## ------------------------------------------ ##
12301 sed "s/^/$as_me: WARNING: /" >&2
12304 echo "$as_me:$LINENO: checking for $ac_header" >&5
12305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 eval "$as_ac_Header=\$ac_header_preproc"
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12325 for ac_header in unistd.h
12327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12329 echo "$as_me:$LINENO: checking for $ac_header" >&5
12330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12337 # Is the header compilable?
12338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 $ac_includes_default
12347 #include <$ac_header>
12349 rm -f conftest.$ac_objext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12351 (eval $ac_compile) 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag"
12359 || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest.$ac_objext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_header_compiler=yes
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_header_compiler=no
12378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12380 echo "${ECHO_T}$ac_header_compiler" >&6
12382 # Is the header present?
12383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12385 cat >conftest.$ac_ext <<_ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 #include <$ac_header>
12393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } >/dev/null; then
12401 if test -s conftest.err; then
12402 ac_cpp_err=$ac_c_preproc_warn_flag
12403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12410 if test -z "$ac_cpp_err"; then
12411 ac_header_preproc=yes
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_header_preproc=no
12418 rm -f conftest.err conftest.$ac_ext
12419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420 echo "${ECHO_T}$ac_header_preproc" >&6
12422 # So? What about this header?
12423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12429 ac_header_preproc=yes
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12446 ## ------------------------------------------ ##
12447 ## Report this to the AC_PACKAGE_NAME lists. ##
12448 ## ------------------------------------------ ##
12451 sed "s/^/$as_me: WARNING: /" >&2
12454 echo "$as_me:$LINENO: checking for $ac_header" >&5
12455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 eval "$as_ac_Header=\$ac_header_preproc"
12461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12466 cat >>confdefs.h <<_ACEOF
12467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12475 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12476 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12477 # think that we don't have <curses.h> if we're using GCC.
12480 if test "$GCC" = yes; then
12482 cat >>confdefs.h <<\_ACEOF
12483 #define _MSE_INT_H 1
12492 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12496 echo "$as_me:$LINENO: checking for $ac_header" >&5
12497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12504 # Is the header compilable?
12505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 $ac_includes_default
12514 #include <$ac_header>
12516 rm -f conftest.$ac_objext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518 (eval $ac_compile) 2>conftest.er1
12520 grep -v '^ *+' conftest.er1 >conftest.err
12522 cat conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } &&
12525 { ac_try='test -z "$ac_c_werror_flag"
12526 || test ! -s conftest.err'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; } &&
12532 { ac_try='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 ac_header_compiler=yes
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 ac_header_compiler=no
12545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 echo "${ECHO_T}$ac_header_compiler" >&6
12549 # Is the header present?
12550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 #include <$ac_header>
12560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12563 grep -v '^ *+' conftest.er1 >conftest.err
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } >/dev/null; then
12568 if test -s conftest.err; then
12569 ac_cpp_err=$ac_c_preproc_warn_flag
12570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12577 if test -z "$ac_cpp_err"; then
12578 ac_header_preproc=yes
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 ac_header_preproc=no
12585 rm -f conftest.err conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 echo "${ECHO_T}$ac_header_preproc" >&6
12589 # So? What about this header?
12590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12596 ac_header_preproc=yes
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12613 ## ------------------------------------------ ##
12614 ## Report this to the AC_PACKAGE_NAME lists. ##
12615 ## ------------------------------------------ ##
12618 sed "s/^/$as_me: WARNING: /" >&2
12621 echo "$as_me:$LINENO: checking for $ac_header" >&5
12622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 eval "$as_ac_Header=\$ac_header_preproc"
12628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12633 cat >>confdefs.h <<_ACEOF
12634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12643 for ac_header in ncurses/term.h term.h
12645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12647 echo "$as_me:$LINENO: checking for $ac_header" >&5
12648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12655 # Is the header compilable?
12656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 $ac_includes_default
12665 #include <$ac_header>
12667 rm -f conftest.$ac_objext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669 (eval $ac_compile) 2>conftest.er1
12671 grep -v '^ *+' conftest.er1 >conftest.err
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_c_werror_flag"
12677 || test ! -s conftest.err'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; } &&
12683 { ac_try='test -s conftest.$ac_objext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 ac_header_compiler=yes
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12694 ac_header_compiler=no
12696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12698 echo "${ECHO_T}$ac_header_compiler" >&6
12700 # Is the header present?
12701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12703 cat >conftest.$ac_ext <<_ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 #include <$ac_header>
12711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12714 grep -v '^ *+' conftest.er1 >conftest.err
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } >/dev/null; then
12719 if test -s conftest.err; then
12720 ac_cpp_err=$ac_c_preproc_warn_flag
12721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12728 if test -z "$ac_cpp_err"; then
12729 ac_header_preproc=yes
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12734 ac_header_preproc=no
12736 rm -f conftest.err conftest.$ac_ext
12737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12738 echo "${ECHO_T}$ac_header_preproc" >&6
12740 # So? What about this header?
12741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12747 ac_header_preproc=yes
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12764 ## ------------------------------------------ ##
12765 ## Report this to the AC_PACKAGE_NAME lists. ##
12766 ## ------------------------------------------ ##
12769 sed "s/^/$as_me: WARNING: /" >&2
12772 echo "$as_me:$LINENO: checking for $ac_header" >&5
12773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 eval "$as_ac_Header=\$ac_header_preproc"
12779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12784 cat >>confdefs.h <<_ACEOF
12785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12793 # FIXME: kettenis/20030102: In most cases we include these
12794 # unconditionally, so what's the point in checking these?
12797 for ac_header in ctype.h time.h
12799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12801 echo "$as_me:$LINENO: checking for $ac_header" >&5
12802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12809 # Is the header compilable?
12810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12812 cat >conftest.$ac_ext <<_ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12818 $ac_includes_default
12819 #include <$ac_header>
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>conftest.er1
12825 grep -v '^ *+' conftest.er1 >conftest.err
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -z "$ac_c_werror_flag"
12831 || test ! -s conftest.err'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest.$ac_objext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_header_compiler=yes
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ac_header_compiler=no
12850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12852 echo "${ECHO_T}$ac_header_compiler" >&6
12854 # Is the header present?
12855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12857 cat >conftest.$ac_ext <<_ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12863 #include <$ac_header>
12865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12868 grep -v '^ *+' conftest.er1 >conftest.err
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } >/dev/null; then
12873 if test -s conftest.err; then
12874 ac_cpp_err=$ac_c_preproc_warn_flag
12875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12882 if test -z "$ac_cpp_err"; then
12883 ac_header_preproc=yes
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_header_preproc=no
12890 rm -f conftest.err conftest.$ac_ext
12891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12892 echo "${ECHO_T}$ac_header_preproc" >&6
12894 # So? What about this header?
12895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12901 ac_header_preproc=yes
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12918 ## ------------------------------------------ ##
12919 ## Report this to the AC_PACKAGE_NAME lists. ##
12920 ## ------------------------------------------ ##
12923 sed "s/^/$as_me: WARNING: /" >&2
12926 echo "$as_me:$LINENO: checking for $ac_header" >&5
12927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 eval "$as_ac_Header=\$ac_header_preproc"
12933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12938 cat >>confdefs.h <<_ACEOF
12939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12947 echo "$as_me:$LINENO: checking for member st_blocks in struct stat" >&5
12948 echo $ECHO_N "checking for member st_blocks in struct stat... $ECHO_C" >&6
12949 if test "${gdb_cv_have_struct_stat_with_st_blocks_member+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 cat >conftest.$ac_ext <<_ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 #include <sys/types.h>
12959 #include <sys/stat.h>
12963 struct stat st; (void) st.st_blocks;
12968 rm -f conftest.$ac_objext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>conftest.er1
12972 grep -v '^ *+' conftest.er1 >conftest.err
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag"
12978 || test ! -s conftest.err'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest.$ac_objext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 gdb_cv_have_struct_stat_with_st_blocks_member=yes
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 gdb_cv_have_struct_stat_with_st_blocks_member=no
12997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13000 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_stat_with_st_blocks_member" >&5
13001 echo "${ECHO_T}$gdb_cv_have_struct_stat_with_st_blocks_member" >&6
13002 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
13003 cat >>confdefs.h <<\_ACEOF
13004 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13009 # ------------------------- #
13010 # Checks for declarations. #
13011 # ------------------------- #
13013 for ac_func in getopt
13015 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13016 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13017 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
13018 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 cat >conftest.$ac_ext <<_ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13028 #define $ac_tr_decl 1
13035 char *(*pfn) = (char *(*)) $ac_func ;
13041 rm -f conftest.$ac_objext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043 (eval $ac_compile) 2>conftest.er1
13045 grep -v '^ *+' conftest.er1 >conftest.err
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -z "$ac_c_werror_flag"
13051 || test ! -s conftest.err'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 eval "gcc_cv_have_decl_$ac_func=yes"
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 eval "gcc_cv_have_decl_$ac_func=no"
13070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13073 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13074 echo "$as_me:$LINENO: result: yes" >&5
13075 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
13076 #define $ac_tr_decl 1
13080 echo "$as_me:$LINENO: result: no" >&5
13081 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
13082 #define $ac_tr_decl 0
13088 if test x = y ; then
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_DECL_GETOPT 1
13096 # ------------------ #
13097 # Checks for types. #
13098 # ------------------ #
13100 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13101 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13102 if test "${ac_cv_type_signal+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111 #include <sys/types.h>
13112 #include <signal.h>
13117 extern "C" void (*signal (int, void (*)(int)))(int);
13119 void (*signal ()) ();
13130 rm -f conftest.$ac_objext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132 (eval $ac_compile) 2>conftest.er1
13134 grep -v '^ *+' conftest.er1 >conftest.err
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -z "$ac_c_werror_flag"
13140 || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest.$ac_objext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_type_signal=void
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13157 ac_cv_type_signal=int
13159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13161 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13162 echo "${ECHO_T}$ac_cv_type_signal" >&6
13164 cat >>confdefs.h <<_ACEOF
13165 #define RETSIGTYPE $ac_cv_type_signal
13170 # ------------------------------------- #
13171 # Checks for compiler characteristics. #
13172 # ------------------------------------- #
13174 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13175 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13176 if test "${ac_cv_c_const+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 cat >conftest.$ac_ext <<_ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13189 /* FIXME: Include the comments suggested by Paul. */
13190 #ifndef __cplusplus
13191 /* Ultrix mips cc rejects this. */
13192 typedef int charset[2];
13194 /* SunOS 4.1.1 cc rejects this. */
13195 char const *const *ccp;
13197 /* NEC SVR4.0.2 mips cc rejects this. */
13198 struct point {int x, y;};
13199 static struct point const zero = {0,0};
13200 /* AIX XL C 1.02.0.0 rejects this.
13201 It does not let you subtract one const X* pointer from another in
13202 an arm of an if-expression whose if-part is not a constant
13204 const char *g = "string";
13205 ccp = &g + (g ? g-g : 0);
13206 /* HPUX 7.0 cc rejects these. */
13209 ccp = (char const *const *) p;
13210 { /* SCO 3.2v4 cc rejects this. */
13212 char const *s = 0 ? (char *) 0 : (char const *) 0;
13216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13217 int x[] = {25, 17};
13218 const int *foo = &x[0];
13221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13222 typedef const int *iptr;
13226 { /* AIX XL C 1.02.0.0 rejects this saying
13227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13228 struct s { int j; const int *ap[3]; };
13229 struct s *b; b->j = 5;
13231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13232 const int foo = 10;
13240 rm -f conftest.$ac_objext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242 (eval $ac_compile) 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13272 echo "${ECHO_T}$ac_cv_c_const" >&6
13273 if test $ac_cv_c_const = no; then
13275 cat >>confdefs.h <<\_ACEOF
13281 echo "$as_me:$LINENO: checking for inline" >&5
13282 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13283 if test "${ac_cv_c_inline+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 for ac_kw in inline __inline__ __inline; do
13288 cat >conftest.$ac_ext <<_ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 #ifndef __cplusplus
13296 static $ac_kw foo_t static_foo () {return 0; }
13297 $ac_kw foo_t foo () {return 0; }
13301 rm -f conftest.$ac_objext
13302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13303 (eval $ac_compile) 2>conftest.er1
13305 grep -v '^ *+' conftest.er1 >conftest.err
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try='test -z "$ac_c_werror_flag"
13311 || test ! -s conftest.err'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 ac_cv_c_inline=$ac_kw; break
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13333 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13334 echo "${ECHO_T}$ac_cv_c_inline" >&6
13337 case $ac_cv_c_inline in
13340 case $ac_cv_c_inline in
13342 *) ac_val=$ac_cv_c_inline;;
13344 cat >>confdefs.h <<_ACEOF
13345 #ifndef __cplusplus
13346 #define inline $ac_val
13353 # ------------------------------ #
13354 # Checks for library functions. #
13355 # ------------------------------ #
13357 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13358 # for constant arguments. Useless!
13359 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13360 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13361 if test "${ac_cv_working_alloca_h+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 #include <alloca.h>
13374 char *p = (char *) alloca (2 * sizeof (int));
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381 (eval $ac_link) 2>conftest.er1
13383 grep -v '^ *+' conftest.er1 >conftest.err
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag"
13389 || test ! -s conftest.err'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; } &&
13395 { ac_try='test -s conftest$ac_exeext'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_cv_working_alloca_h=yes
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ac_cv_working_alloca_h=no
13408 rm -f conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13411 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13412 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13413 if test $ac_cv_working_alloca_h = yes; then
13415 cat >>confdefs.h <<\_ACEOF
13416 #define HAVE_ALLOCA_H 1
13421 echo "$as_me:$LINENO: checking for alloca" >&5
13422 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13423 if test "${ac_cv_func_alloca_works+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 cat >conftest.$ac_ext <<_ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13433 # define alloca __builtin_alloca
13436 # include <malloc.h>
13437 # define alloca _alloca
13440 # include <alloca.h>
13445 # ifndef alloca /* predefined by HP cc +Olibcalls */
13456 char *p = (char *) alloca (1);
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_c_werror_flag"
13471 || test ! -s conftest.err'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_func_alloca_works=yes
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ac_cv_func_alloca_works=no
13490 rm -f conftest.err conftest.$ac_objext \
13491 conftest$ac_exeext conftest.$ac_ext
13493 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13494 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13496 if test $ac_cv_func_alloca_works = yes; then
13498 cat >>confdefs.h <<\_ACEOF
13499 #define HAVE_ALLOCA 1
13503 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13504 # that cause trouble. Some versions do not even contain alloca or
13505 # contain a buggy version. If you still want to use their alloca,
13506 # use ar to extract alloca.o from them instead of compiling alloca.c.
13508 ALLOCA=alloca.$ac_objext
13510 cat >>confdefs.h <<\_ACEOF
13515 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13516 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13517 if test "${ac_cv_os_cray+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 cat >conftest.$ac_ext <<_ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 #if defined(CRAY) && ! defined(CRAY2)
13533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13534 $EGREP "webecray" >/dev/null 2>&1; then
13542 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13543 echo "${ECHO_T}$ac_cv_os_cray" >&6
13544 if test $ac_cv_os_cray = yes; then
13545 for ac_func in _getb67 GETB67 getb67; do
13546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13547 echo "$as_me:$LINENO: checking for $ac_func" >&5
13548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13549 if eval "test \"\${$as_ac_var+set}\" = set"; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13560 #define $ac_func innocuous_$ac_func
13562 /* System header to define __stub macros and hopefully few prototypes,
13563 which can conflict with char $ac_func (); below.
13564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13565 <limits.h> exists even on freestanding compilers. */
13568 # include <limits.h>
13570 # include <assert.h>
13575 /* Override any gcc2 internal prototype to avoid an error. */
13580 /* We use char because int might match the return type of a gcc2
13581 builtin and then its argument prototype would still apply. */
13583 /* The GNU C library defines this for functions which it implements
13584 to always fail with ENOSYS. Some functions are actually named
13585 something starting with __ and the normal name is an alias. */
13586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13589 char (*f) () = $ac_func;
13598 return f != $ac_func;
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605 (eval $ac_link) 2>conftest.er1
13607 grep -v '^ *+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest$ac_exeext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 eval "$as_ac_var=yes"
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13630 eval "$as_ac_var=no"
13632 rm -f conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext conftest.$ac_ext
13635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13637 if test `eval echo '${'$as_ac_var'}'` = yes; then
13639 cat >>confdefs.h <<_ACEOF
13640 #define CRAY_STACKSEG_END $ac_func
13649 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13650 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13651 if test "${ac_cv_c_stack_direction+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 if test "$cross_compiling" = yes; then
13655 ac_cv_c_stack_direction=0
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13664 find_stack_direction ()
13666 static char *addr = 0;
13671 return find_stack_direction ();
13674 return (&dummy > addr) ? 1 : -1;
13680 exit (find_stack_direction () < 0);
13683 rm -f conftest$ac_exeext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13685 (eval $ac_link) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_c_stack_direction=1
13696 echo "$as_me: program exited with status $ac_status" >&5
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 ( exit $ac_status )
13701 ac_cv_c_stack_direction=-1
13703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13706 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13707 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13709 cat >>confdefs.h <<_ACEOF
13710 #define STACK_DIRECTION $ac_cv_c_stack_direction
13718 for ac_header in stdlib.h unistd.h
13720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13722 echo "$as_me:$LINENO: checking for $ac_header" >&5
13723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13730 # Is the header compilable?
13731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13733 cat >conftest.$ac_ext <<_ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739 $ac_includes_default
13740 #include <$ac_header>
13742 rm -f conftest.$ac_objext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744 (eval $ac_compile) 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag"
13752 || test ! -s conftest.err'
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); }; } &&
13758 { ac_try='test -s conftest.$ac_objext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_header_compiler=yes
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13769 ac_header_compiler=no
13771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13773 echo "${ECHO_T}$ac_header_compiler" >&6
13775 # Is the header present?
13776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13778 cat >conftest.$ac_ext <<_ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 #include <$ac_header>
13786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13789 grep -v '^ *+' conftest.er1 >conftest.err
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } >/dev/null; then
13794 if test -s conftest.err; then
13795 ac_cpp_err=$ac_c_preproc_warn_flag
13796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13803 if test -z "$ac_cpp_err"; then
13804 ac_header_preproc=yes
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 ac_header_preproc=no
13811 rm -f conftest.err conftest.$ac_ext
13812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13813 echo "${ECHO_T}$ac_header_preproc" >&6
13815 # So? What about this header?
13816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13822 ac_header_preproc=yes
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13839 ## ------------------------------------------ ##
13840 ## Report this to the AC_PACKAGE_NAME lists. ##
13841 ## ------------------------------------------ ##
13844 sed "s/^/$as_me: WARNING: /" >&2
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 eval "$as_ac_Header=\$ac_header_preproc"
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13859 cat >>confdefs.h <<_ACEOF
13860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13868 for ac_func in getpagesize
13870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13871 echo "$as_me:$LINENO: checking for $ac_func" >&5
13872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13873 if eval "test \"\${$as_ac_var+set}\" = set"; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 cat >conftest.$ac_ext <<_ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13884 #define $ac_func innocuous_$ac_func
13886 /* System header to define __stub macros and hopefully few prototypes,
13887 which can conflict with char $ac_func (); below.
13888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13889 <limits.h> exists even on freestanding compilers. */
13892 # include <limits.h>
13894 # include <assert.h>
13899 /* Override any gcc2 internal prototype to avoid an error. */
13904 /* We use char because int might match the return type of a gcc2
13905 builtin and then its argument prototype would still apply. */
13907 /* The GNU C library defines this for functions which it implements
13908 to always fail with ENOSYS. Some functions are actually named
13909 something starting with __ and the normal name is an alias. */
13910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13913 char (*f) () = $ac_func;
13922 return f != $ac_func;
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag"
13937 || test ! -s conftest.err'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest$ac_exeext'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 eval "$as_ac_var=yes"
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 eval "$as_ac_var=no"
13956 rm -f conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13961 if test `eval echo '${'$as_ac_var'}'` = yes; then
13962 cat >>confdefs.h <<_ACEOF
13963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13969 echo "$as_me:$LINENO: checking for working mmap" >&5
13970 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13971 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 if test "$cross_compiling" = yes; then
13975 ac_cv_func_mmap_fixed_mapped=no
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 $ac_includes_default
13984 /* malloc might have been renamed as rpl_malloc. */
13987 /* Thanks to Mike Haertel and Jim Avera for this test.
13988 Here is a matrix of mmap possibilities:
13989 mmap private not fixed
13990 mmap private fixed at somewhere currently unmapped
13991 mmap private fixed at somewhere already mapped
13992 mmap shared not fixed
13993 mmap shared fixed at somewhere currently unmapped
13994 mmap shared fixed at somewhere already mapped
13995 For private mappings, we should verify that changes cannot be read()
13996 back from the file, nor mmap's back from the file at a different
13997 address. (There have been systems where private was not correctly
13998 implemented like the infamous i386 svr4.0, and systems where the
13999 VM page cache was not coherent with the file system buffer cache
14000 like early versions of FreeBSD and possibly contemporary NetBSD.)
14001 For shared mappings, we should conversely verify that changes get
14002 propagated back to all the places they're supposed to be.
14004 Grep wants private fixed already mapped.
14005 The main things grep needs to know about mmap are:
14006 * does it exist and is it safe to write into the mmap'd area
14007 * how to use it (BSD variants) */
14010 #include <sys/mman.h>
14012 #if !STDC_HEADERS && !HAVE_STDLIB_H
14016 /* This mess was copied from the GNU getpagesize.h. */
14017 #if !HAVE_GETPAGESIZE
14018 /* Assume that all systems that can run configure have sys/param.h. */
14019 # if !HAVE_SYS_PARAM_H
14020 # define HAVE_SYS_PARAM_H 1
14023 # ifdef _SC_PAGESIZE
14024 # define getpagesize() sysconf(_SC_PAGESIZE)
14025 # else /* no _SC_PAGESIZE */
14026 # if HAVE_SYS_PARAM_H
14027 # include <sys/param.h>
14028 # ifdef EXEC_PAGESIZE
14029 # define getpagesize() EXEC_PAGESIZE
14030 # else /* no EXEC_PAGESIZE */
14032 # define getpagesize() NBPG * CLSIZE
14035 # endif /* no CLSIZE */
14036 # else /* no NBPG */
14038 # define getpagesize() NBPC
14039 # else /* no NBPC */
14041 # define getpagesize() PAGESIZE
14042 # endif /* PAGESIZE */
14043 # endif /* no NBPC */
14044 # endif /* no NBPG */
14045 # endif /* no EXEC_PAGESIZE */
14046 # else /* no HAVE_SYS_PARAM_H */
14047 # define getpagesize() 8192 /* punt totally */
14048 # endif /* no HAVE_SYS_PARAM_H */
14049 # endif /* no _SC_PAGESIZE */
14051 #endif /* no HAVE_GETPAGESIZE */
14056 char *data, *data2, *data3;
14060 pagesize = getpagesize ();
14062 /* First, make a file with some known garbage in it. */
14063 data = (char *) malloc (pagesize);
14066 for (i = 0; i < pagesize; ++i)
14067 *(data + i) = rand ();
14069 fd = creat ("conftest.mmap", 0600);
14072 if (write (fd, data, pagesize) != pagesize)
14076 /* Next, try to mmap the file at a fixed address which already has
14077 something else allocated at it. If we can, also make sure that
14078 we see the same garbage. */
14079 fd = open ("conftest.mmap", O_RDWR);
14082 data2 = (char *) malloc (2 * pagesize);
14085 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14086 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14087 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14089 for (i = 0; i < pagesize; ++i)
14090 if (*(data + i) != *(data2 + i))
14093 /* Finally, make sure that changes to the mapped area do not
14094 percolate back to the file as seen by read(). (This is a bug on
14095 some variants of i386 svr4.0.) */
14096 for (i = 0; i < pagesize; ++i)
14097 *(data2 + i) = *(data2 + i) + 1;
14098 data3 = (char *) malloc (pagesize);
14101 if (read (fd, data3, pagesize) != pagesize)
14103 for (i = 0; i < pagesize; ++i)
14104 if (*(data + i) != *(data3 + i))
14110 rm -f conftest$ac_exeext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112 (eval $ac_link) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_cv_func_mmap_fixed_mapped=yes
14123 echo "$as_me: program exited with status $ac_status" >&5
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ( exit $ac_status )
14128 ac_cv_func_mmap_fixed_mapped=no
14130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14133 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14134 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14135 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14137 cat >>confdefs.h <<\_ACEOF
14138 #define HAVE_MMAP 1
14142 rm -f conftest.mmap
14144 echo "$as_me:$LINENO: checking for pid_t" >&5
14145 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14146 if test "${ac_cv_type_pid_t+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 cat >conftest.$ac_ext <<_ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 $ac_includes_default
14161 if (sizeof (pid_t))
14167 rm -f conftest.$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169 (eval $ac_compile) 2>conftest.er1
14171 grep -v '^ *+' conftest.er1 >conftest.err
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag"
14177 || test ! -s conftest.err'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try='test -s conftest.$ac_objext'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 ac_cv_type_pid_t=yes
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 ac_cv_type_pid_t=no
14196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14198 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14199 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14200 if test $ac_cv_type_pid_t = yes; then
14204 cat >>confdefs.h <<_ACEOF
14212 for ac_header in unistd.h vfork.h
14214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo "$as_me:$LINENO: checking for $ac_header" >&5
14217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14224 # Is the header compilable?
14225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14227 cat >conftest.$ac_ext <<_ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 $ac_includes_default
14234 #include <$ac_header>
14236 rm -f conftest.$ac_objext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238 (eval $ac_compile) 2>conftest.er1
14240 grep -v '^ *+' conftest.er1 >conftest.err
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -z "$ac_c_werror_flag"
14246 || test ! -s conftest.err'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_header_compiler=yes
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_header_compiler=no
14265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14267 echo "${ECHO_T}$ac_header_compiler" >&6
14269 # Is the header present?
14270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14272 cat >conftest.$ac_ext <<_ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 #include <$ac_header>
14280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14283 grep -v '^ *+' conftest.er1 >conftest.err
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } >/dev/null; then
14288 if test -s conftest.err; then
14289 ac_cpp_err=$ac_c_preproc_warn_flag
14290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14297 if test -z "$ac_cpp_err"; then
14298 ac_header_preproc=yes
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_header_preproc=no
14305 rm -f conftest.err conftest.$ac_ext
14306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14307 echo "${ECHO_T}$ac_header_preproc" >&6
14309 # So? What about this header?
14310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14316 ac_header_preproc=yes
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14326 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14333 ## ------------------------------------------ ##
14334 ## Report this to the AC_PACKAGE_NAME lists. ##
14335 ## ------------------------------------------ ##
14338 sed "s/^/$as_me: WARNING: /" >&2
14341 echo "$as_me:$LINENO: checking for $ac_header" >&5
14342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 eval "$as_ac_Header=\$ac_header_preproc"
14348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14353 cat >>confdefs.h <<_ACEOF
14354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14363 for ac_func in fork vfork
14365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14366 echo "$as_me:$LINENO: checking for $ac_func" >&5
14367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14368 if eval "test \"\${$as_ac_var+set}\" = set"; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14379 #define $ac_func innocuous_$ac_func
14381 /* System header to define __stub macros and hopefully few prototypes,
14382 which can conflict with char $ac_func (); below.
14383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14384 <limits.h> exists even on freestanding compilers. */
14387 # include <limits.h>
14389 # include <assert.h>
14394 /* Override any gcc2 internal prototype to avoid an error. */
14399 /* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14402 /* The GNU C library defines this for functions which it implements
14403 to always fail with ENOSYS. Some functions are actually named
14404 something starting with __ and the normal name is an alias. */
14405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14408 char (*f) () = $ac_func;
14417 return f != $ac_func;
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424 (eval $ac_link) 2>conftest.er1
14426 grep -v '^ *+' conftest.er1 >conftest.err
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -z "$ac_c_werror_flag"
14432 || test ! -s conftest.err'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; } &&
14438 { ac_try='test -s conftest$ac_exeext'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 eval "$as_ac_var=yes"
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 eval "$as_ac_var=no"
14451 rm -f conftest.err conftest.$ac_objext \
14452 conftest$ac_exeext conftest.$ac_ext
14454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14456 if test `eval echo '${'$as_ac_var'}'` = yes; then
14457 cat >>confdefs.h <<_ACEOF
14458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14464 if test "x$ac_cv_func_fork" = xyes; then
14465 echo "$as_me:$LINENO: checking for working fork" >&5
14466 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14467 if test "${ac_cv_func_fork_works+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 if test "$cross_compiling" = yes; then
14471 ac_cv_func_fork_works=cross
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* By Ruediger Kuhlmann. */
14475 #include <sys/types.h>
14477 # include <unistd.h>
14479 /* Some systems only have a dummy stub for fork() */
14487 rm -f conftest$ac_exeext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14489 (eval $ac_link) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_func_fork_works=yes
14500 echo "$as_me: program exited with status $ac_status" >&5
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ( exit $ac_status )
14505 ac_cv_func_fork_works=no
14507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14510 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14511 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14514 ac_cv_func_fork_works=$ac_cv_func_fork
14516 if test "x$ac_cv_func_fork_works" = xcross; then
14518 *-*-amigaos* | *-*-msdosdjgpp*)
14519 # Override, as these systems have only a dummy fork() stub
14520 ac_cv_func_fork_works=no
14523 ac_cv_func_fork_works=yes
14526 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14527 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14529 ac_cv_func_vfork_works=$ac_cv_func_vfork
14530 if test "x$ac_cv_func_vfork" = xyes; then
14531 echo "$as_me:$LINENO: checking for working vfork" >&5
14532 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14533 if test "${ac_cv_func_vfork_works+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 if test "$cross_compiling" = yes; then
14537 ac_cv_func_vfork_works=cross
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 /* Thanks to Paul Eggert for this test. */
14547 #include <stdlib.h>
14548 #include <sys/types.h>
14549 #include <sys/stat.h>
14550 #include <sys/wait.h>
14552 # include <unistd.h>
14555 # include <vfork.h>
14557 /* On some sparc systems, changes by the child to local and incoming
14558 argument registers are propagated back to the parent. The compiler
14559 is told about this with #include <vfork.h>, but some compilers
14560 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14561 static variable whose address is put into a register that is
14562 clobbered by the vfork. */
14565 sparc_address_test (int arg)
14567 sparc_address_test (arg) int arg;
14570 static pid_t child;
14588 pid_t parent = getpid ();
14591 sparc_address_test (0);
14596 /* Here is another test for sparc vfork register problems. This
14597 test uses lots of local variables, at least as many local
14598 variables as main has allocated so far including compiler
14599 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14600 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14601 reuse the register of parent for one of the local variables,
14602 since it will think that parent can't possibly be used any more
14603 in this routine. Assigning to the local variable will thus
14604 munge parent in the parent process. */
14606 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14607 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14608 /* Convince the compiler that p..p7 are live; otherwise, it might
14609 use the same hardware register for all 8 local variables. */
14610 if (p != p1 || p != p2 || p != p3 || p != p4
14611 || p != p5 || p != p6 || p != p7)
14614 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14615 from child file descriptors. If the child closes a descriptor
14616 before it execs or exits, this munges the parent's descriptor
14617 as well. Test for this by closing stdout in the child. */
14618 _exit(close(fileno(stdout)) != 0);
14623 while (wait(&status) != child)
14626 /* Was there some problem with vforking? */
14629 /* Did the child fail? (This shouldn't happen.) */
14632 /* Did the vfork/compiler bug occur? */
14633 || parent != getpid()
14635 /* Did the file descriptor bug occur? */
14636 || fstat(fileno(stdout), &st) != 0
14641 rm -f conftest$ac_exeext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14643 (eval $ac_link) 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_func_vfork_works=yes
14654 echo "$as_me: program exited with status $ac_status" >&5
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ( exit $ac_status )
14659 ac_cv_func_vfork_works=no
14661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14664 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14665 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
14668 if test "x$ac_cv_func_fork_works" = xcross; then
14669 ac_cv_func_vfork_works=$ac_cv_func_vfork
14670 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14671 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14674 if test "x$ac_cv_func_vfork_works" = xyes; then
14676 cat >>confdefs.h <<\_ACEOF
14677 #define HAVE_WORKING_VFORK 1
14682 cat >>confdefs.h <<\_ACEOF
14687 if test "x$ac_cv_func_fork_works" = xyes; then
14689 cat >>confdefs.h <<\_ACEOF
14690 #define HAVE_WORKING_FORK 1
14697 for ac_func in canonicalize_file_name realpath
14699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14700 echo "$as_me:$LINENO: checking for $ac_func" >&5
14701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_var+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 cat >conftest.$ac_ext <<_ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14713 #define $ac_func innocuous_$ac_func
14715 /* System header to define __stub macros and hopefully few prototypes,
14716 which can conflict with char $ac_func (); below.
14717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14718 <limits.h> exists even on freestanding compilers. */
14721 # include <limits.h>
14723 # include <assert.h>
14728 /* Override any gcc2 internal prototype to avoid an error. */
14733 /* We use char because int might match the return type of a gcc2
14734 builtin and then its argument prototype would still apply. */
14736 /* The GNU C library defines this for functions which it implements
14737 to always fail with ENOSYS. Some functions are actually named
14738 something starting with __ and the normal name is an alias. */
14739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14742 char (*f) () = $ac_func;
14751 return f != $ac_func;
14756 rm -f conftest.$ac_objext conftest$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>conftest.er1
14760 grep -v '^ *+' conftest.er1 >conftest.err
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag"
14766 || test ! -s conftest.err'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest$ac_exeext'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 eval "$as_ac_var=yes"
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 eval "$as_ac_var=no"
14785 rm -f conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14790 if test `eval echo '${'$as_ac_var'}'` = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14799 for ac_func in poll
14801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14802 echo "$as_me:$LINENO: checking for $ac_func" >&5
14803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14804 if eval "test \"\${$as_ac_var+set}\" = set"; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 cat >conftest.$ac_ext <<_ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14815 #define $ac_func innocuous_$ac_func
14817 /* System header to define __stub macros and hopefully few prototypes,
14818 which can conflict with char $ac_func (); below.
14819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14820 <limits.h> exists even on freestanding compilers. */
14823 # include <limits.h>
14825 # include <assert.h>
14830 /* Override any gcc2 internal prototype to avoid an error. */
14835 /* We use char because int might match the return type of a gcc2
14836 builtin and then its argument prototype would still apply. */
14838 /* The GNU C library defines this for functions which it implements
14839 to always fail with ENOSYS. Some functions are actually named
14840 something starting with __ and the normal name is an alias. */
14841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14844 char (*f) () = $ac_func;
14853 return f != $ac_func;
14858 rm -f conftest.$ac_objext conftest$ac_exeext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14860 (eval $ac_link) 2>conftest.er1
14862 grep -v '^ *+' conftest.er1 >conftest.err
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -z "$ac_c_werror_flag"
14868 || test ! -s conftest.err'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest$ac_exeext'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 eval "$as_ac_var=yes"
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 eval "$as_ac_var=no"
14887 rm -f conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14892 if test `eval echo '${'$as_ac_var'}'` = yes; then
14893 cat >>confdefs.h <<_ACEOF
14894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14901 for ac_func in pread64
14903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14904 echo "$as_me:$LINENO: checking for $ac_func" >&5
14905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14906 if eval "test \"\${$as_ac_var+set}\" = set"; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 cat >conftest.$ac_ext <<_ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14917 #define $ac_func innocuous_$ac_func
14919 /* System header to define __stub macros and hopefully few prototypes,
14920 which can conflict with char $ac_func (); below.
14921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14922 <limits.h> exists even on freestanding compilers. */
14925 # include <limits.h>
14927 # include <assert.h>
14932 /* Override any gcc2 internal prototype to avoid an error. */
14937 /* We use char because int might match the return type of a gcc2
14938 builtin and then its argument prototype would still apply. */
14940 /* The GNU C library defines this for functions which it implements
14941 to always fail with ENOSYS. Some functions are actually named
14942 something starting with __ and the normal name is an alias. */
14943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14946 char (*f) () = $ac_func;
14955 return f != $ac_func;
14960 rm -f conftest.$ac_objext conftest$ac_exeext
14961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>conftest.er1
14964 grep -v '^ *+' conftest.er1 >conftest.err
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -z "$ac_c_werror_flag"
14970 || test ! -s conftest.err'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; } &&
14976 { ac_try='test -s conftest$ac_exeext'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 eval "$as_ac_var=yes"
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14987 eval "$as_ac_var=no"
14989 rm -f conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14994 if test `eval echo '${'$as_ac_var'}'` = yes; then
14995 cat >>confdefs.h <<_ACEOF
14996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15003 for ac_func in sbrk
15005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15006 echo "$as_me:$LINENO: checking for $ac_func" >&5
15007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15008 if eval "test \"\${$as_ac_var+set}\" = set"; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15019 #define $ac_func innocuous_$ac_func
15021 /* System header to define __stub macros and hopefully few prototypes,
15022 which can conflict with char $ac_func (); below.
15023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15024 <limits.h> exists even on freestanding compilers. */
15027 # include <limits.h>
15029 # include <assert.h>
15034 /* Override any gcc2 internal prototype to avoid an error. */
15039 /* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15042 /* The GNU C library defines this for functions which it implements
15043 to always fail with ENOSYS. Some functions are actually named
15044 something starting with __ and the normal name is an alias. */
15045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15048 char (*f) () = $ac_func;
15057 return f != $ac_func;
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15064 (eval $ac_link) 2>conftest.er1
15066 grep -v '^ *+' conftest.er1 >conftest.err
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } &&
15071 { ac_try='test -z "$ac_c_werror_flag"
15072 || test ! -s conftest.err'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; } &&
15078 { ac_try='test -s conftest$ac_exeext'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }; then
15084 eval "$as_ac_var=yes"
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 eval "$as_ac_var=no"
15091 rm -f conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
15094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15096 if test `eval echo '${'$as_ac_var'}'` = yes; then
15097 cat >>confdefs.h <<_ACEOF
15098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15106 for ac_func in setpgid setpgrp
15108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109 echo "$as_me:$LINENO: checking for $ac_func" >&5
15110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15111 if eval "test \"\${$as_ac_var+set}\" = set"; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 cat >conftest.$ac_ext <<_ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15122 #define $ac_func innocuous_$ac_func
15124 /* System header to define __stub macros and hopefully few prototypes,
15125 which can conflict with char $ac_func (); below.
15126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15127 <limits.h> exists even on freestanding compilers. */
15130 # include <limits.h>
15132 # include <assert.h>
15137 /* Override any gcc2 internal prototype to avoid an error. */
15142 /* We use char because int might match the return type of a gcc2
15143 builtin and then its argument prototype would still apply. */
15145 /* The GNU C library defines this for functions which it implements
15146 to always fail with ENOSYS. Some functions are actually named
15147 something starting with __ and the normal name is an alias. */
15148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15151 char (*f) () = $ac_func;
15160 return f != $ac_func;
15165 rm -f conftest.$ac_objext conftest$ac_exeext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15167 (eval $ac_link) 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag"
15175 || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest$ac_exeext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 eval "$as_ac_var=yes"
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 eval "$as_ac_var=no"
15194 rm -f conftest.err conftest.$ac_objext \
15195 conftest$ac_exeext conftest.$ac_ext
15197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15199 if test `eval echo '${'$as_ac_var'}'` = yes; then
15200 cat >>confdefs.h <<_ACEOF
15201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15210 for ac_func in sigaction sigprocmask sigsetmask
15212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15213 echo "$as_me:$LINENO: checking for $ac_func" >&5
15214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15215 if eval "test \"\${$as_ac_var+set}\" = set"; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 cat >conftest.$ac_ext <<_ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15226 #define $ac_func innocuous_$ac_func
15228 /* System header to define __stub macros and hopefully few prototypes,
15229 which can conflict with char $ac_func (); below.
15230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15231 <limits.h> exists even on freestanding compilers. */
15234 # include <limits.h>
15236 # include <assert.h>
15241 /* Override any gcc2 internal prototype to avoid an error. */
15246 /* We use char because int might match the return type of a gcc2
15247 builtin and then its argument prototype would still apply. */
15249 /* The GNU C library defines this for functions which it implements
15250 to always fail with ENOSYS. Some functions are actually named
15251 something starting with __ and the normal name is an alias. */
15252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15255 char (*f) () = $ac_func;
15264 return f != $ac_func;
15269 rm -f conftest.$ac_objext conftest$ac_exeext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15271 (eval $ac_link) 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag"
15279 || test ! -s conftest.err'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; } &&
15285 { ac_try='test -s conftest$ac_exeext'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; }; then
15291 eval "$as_ac_var=yes"
15293 echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 eval "$as_ac_var=no"
15298 rm -f conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15303 if test `eval echo '${'$as_ac_var'}'` = yes; then
15304 cat >>confdefs.h <<_ACEOF
15305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15312 for ac_func in socketpair
15314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15315 echo "$as_me:$LINENO: checking for $ac_func" >&5
15316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15317 if eval "test \"\${$as_ac_var+set}\" = set"; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 cat >conftest.$ac_ext <<_ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15328 #define $ac_func innocuous_$ac_func
15330 /* System header to define __stub macros and hopefully few prototypes,
15331 which can conflict with char $ac_func (); below.
15332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15333 <limits.h> exists even on freestanding compilers. */
15336 # include <limits.h>
15338 # include <assert.h>
15343 /* Override any gcc2 internal prototype to avoid an error. */
15348 /* We use char because int might match the return type of a gcc2
15349 builtin and then its argument prototype would still apply. */
15351 /* The GNU C library defines this for functions which it implements
15352 to always fail with ENOSYS. Some functions are actually named
15353 something starting with __ and the normal name is an alias. */
15354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15357 char (*f) () = $ac_func;
15366 return f != $ac_func;
15371 rm -f conftest.$ac_objext conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373 (eval $ac_link) 2>conftest.er1
15375 grep -v '^ *+' conftest.er1 >conftest.err
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try='test -z "$ac_c_werror_flag"
15381 || test ! -s conftest.err'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; } &&
15387 { ac_try='test -s conftest$ac_exeext'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }; then
15393 eval "$as_ac_var=yes"
15395 echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 eval "$as_ac_var=no"
15400 rm -f conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15405 if test `eval echo '${'$as_ac_var'}'` = yes; then
15406 cat >>confdefs.h <<_ACEOF
15407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15414 for ac_func in syscall
15416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15417 echo "$as_me:$LINENO: checking for $ac_func" >&5
15418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15419 if eval "test \"\${$as_ac_var+set}\" = set"; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15430 #define $ac_func innocuous_$ac_func
15432 /* System header to define __stub macros and hopefully few prototypes,
15433 which can conflict with char $ac_func (); below.
15434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15435 <limits.h> exists even on freestanding compilers. */
15438 # include <limits.h>
15440 # include <assert.h>
15445 /* Override any gcc2 internal prototype to avoid an error. */
15450 /* We use char because int might match the return type of a gcc2
15451 builtin and then its argument prototype would still apply. */
15453 /* The GNU C library defines this for functions which it implements
15454 to always fail with ENOSYS. Some functions are actually named
15455 something starting with __ and the normal name is an alias. */
15456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15459 char (*f) () = $ac_func;
15468 return f != $ac_func;
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15475 (eval $ac_link) 2>conftest.er1
15477 grep -v '^ *+' conftest.er1 >conftest.err
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
15482 { ac_try='test -z "$ac_c_werror_flag"
15483 || test ! -s conftest.err'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest$ac_exeext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 eval "$as_ac_var=yes"
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 eval "$as_ac_var=no"
15502 rm -f conftest.err conftest.$ac_objext \
15503 conftest$ac_exeext conftest.$ac_ext
15505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15507 if test `eval echo '${'$as_ac_var'}'` = yes; then
15508 cat >>confdefs.h <<_ACEOF
15509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15516 for ac_func in ttrace
15518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15519 echo "$as_me:$LINENO: checking for $ac_func" >&5
15520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15521 if eval "test \"\${$as_ac_var+set}\" = set"; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15524 cat >conftest.$ac_ext <<_ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15532 #define $ac_func innocuous_$ac_func
15534 /* System header to define __stub macros and hopefully few prototypes,
15535 which can conflict with char $ac_func (); below.
15536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15537 <limits.h> exists even on freestanding compilers. */
15540 # include <limits.h>
15542 # include <assert.h>
15547 /* Override any gcc2 internal prototype to avoid an error. */
15552 /* We use char because int might match the return type of a gcc2
15553 builtin and then its argument prototype would still apply. */
15555 /* The GNU C library defines this for functions which it implements
15556 to always fail with ENOSYS. Some functions are actually named
15557 something starting with __ and the normal name is an alias. */
15558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15561 char (*f) () = $ac_func;
15570 return f != $ac_func;
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577 (eval $ac_link) 2>conftest.er1
15579 grep -v '^ *+' conftest.er1 >conftest.err
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest$ac_exeext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 eval "$as_ac_var=yes"
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 eval "$as_ac_var=no"
15604 rm -f conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
15607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15609 if test `eval echo '${'$as_ac_var'}'` = yes; then
15610 cat >>confdefs.h <<_ACEOF
15611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15618 for ac_func in wborder
15620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15621 echo "$as_me:$LINENO: checking for $ac_func" >&5
15622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15623 if eval "test \"\${$as_ac_var+set}\" = set"; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15634 #define $ac_func innocuous_$ac_func
15636 /* System header to define __stub macros and hopefully few prototypes,
15637 which can conflict with char $ac_func (); below.
15638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639 <limits.h> exists even on freestanding compilers. */
15642 # include <limits.h>
15644 # include <assert.h>
15649 /* Override any gcc2 internal prototype to avoid an error. */
15654 /* We use char because int might match the return type of a gcc2
15655 builtin and then its argument prototype would still apply. */
15657 /* The GNU C library defines this for functions which it implements
15658 to always fail with ENOSYS. Some functions are actually named
15659 something starting with __ and the normal name is an alias. */
15660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15663 char (*f) () = $ac_func;
15672 return f != $ac_func;
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15679 (eval $ac_link) 2>conftest.er1
15681 grep -v '^ *+' conftest.er1 >conftest.err
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -z "$ac_c_werror_flag"
15687 || test ! -s conftest.err'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest$ac_exeext'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15699 eval "$as_ac_var=yes"
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 eval "$as_ac_var=no"
15706 rm -f conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15711 if test `eval echo '${'$as_ac_var'}'` = yes; then
15712 cat >>confdefs.h <<_ACEOF
15713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15720 # Check the return and argument types of ptrace. No canned test for
15721 # this, so roll our own.
15722 gdb_ptrace_headers='
15723 #if HAVE_SYS_TYPES_H
15724 # include <sys/types.h>
15726 #if HAVE_SYS_PTRACE_H
15727 # include <sys/ptrace.h>
15730 # include <unistd.h>
15733 # There is no point in checking if we don't have a prototype.
15734 for ac_func in ptrace
15736 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15737 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
15738 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
15739 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 cat >conftest.$ac_ext <<_ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15749 #define $ac_tr_decl 1
15750 $gdb_ptrace_headers
15756 char *(*pfn) = (char *(*)) $ac_func ;
15762 rm -f conftest.$ac_objext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15764 (eval $ac_compile) 2>conftest.er1
15766 grep -v '^ *+' conftest.er1 >conftest.err
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -z "$ac_c_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest.$ac_objext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 eval "gcc_cv_have_decl_$ac_func=yes"
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 eval "gcc_cv_have_decl_$ac_func=no"
15791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15794 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
15795 echo "$as_me:$LINENO: result: yes" >&5
15796 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
15797 #define $ac_tr_decl 1
15801 echo "$as_me:$LINENO: result: no" >&5
15802 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
15803 #define $ac_tr_decl 0
15806 : ${gdb_cv_func_ptrace_ret='int'}
15807 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15812 if test x = y ; then
15814 cat >>confdefs.h <<\_ACEOF
15815 #define HAVE_DECL_PTRACE 1
15819 # Check return type.
15820 echo "$as_me:$LINENO: checking return type of ptrace" >&5
15821 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15822 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 cat >conftest.$ac_ext <<_ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 $gdb_ptrace_headers
15835 extern int ptrace ();
15840 rm -f conftest.$ac_objext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842 (eval $ac_compile) 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag"
15850 || test ! -s conftest.err'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest.$ac_objext'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }; then
15862 gdb_cv_func_ptrace_ret='int'
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15867 gdb_cv_func_ptrace_ret='long'
15869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15871 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15872 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
15874 cat >>confdefs.h <<_ACEOF
15875 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15878 # Check argument types.
15879 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15880 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
15881 if test "${gdb_cv_func_ptrace_args+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 for gdb_arg1 in 'int' 'long'; do
15886 for gdb_arg2 in 'pid_t' 'int' 'long'; do
15887 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
15888 for gdb_arg4 in 'int' 'long'; do
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 $gdb_ptrace_headers
15900 extern $gdb_cv_func_ptrace_ret
15901 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15907 rm -f conftest.$ac_objext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>conftest.er1
15911 grep -v '^ *+' conftest.er1 >conftest.err
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest.$ac_objext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15932 echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15937 for gdb_arg5 in 'int *' 'int' 'long'; do
15938 cat >conftest.$ac_ext <<_ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 $gdb_ptrace_headers
15949 extern $gdb_cv_func_ptrace_ret
15950 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15956 rm -f conftest.$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958 (eval $ac_compile) 2>conftest.er1
15960 grep -v '^ *+' conftest.er1 >conftest.err
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag"
15966 || test ! -s conftest.err'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15979 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15992 # Provide a safe default value.
15993 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15996 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
15997 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
15998 ac_save_IFS=$IFS; IFS=','
15999 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16003 cat >>confdefs.h <<_ACEOF
16004 #define PTRACE_TYPE_ARG3 $3
16007 if test -n "$5"; then
16009 cat >>confdefs.h <<_ACEOF
16010 #define PTRACE_TYPE_ARG5 $5
16015 if test "$cross_compiling" = no; then
16016 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16017 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16018 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 if test "$cross_compiling" = yes; then
16022 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16023 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16024 { (exit 1); exit 1; }; }
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16033 # include <unistd.h>
16039 /* If this system has a BSD-style setpgrp which takes arguments,
16040 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16041 exit successfully. */
16042 exit (setpgrp (1,1) == -1 ? 0 : 1);
16047 rm -f conftest$ac_exeext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 (eval $ac_link) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_cv_func_setpgrp_void=no
16060 echo "$as_me: program exited with status $ac_status" >&5
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 ( exit $ac_status )
16065 ac_cv_func_setpgrp_void=yes
16067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16071 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16072 if test $ac_cv_func_setpgrp_void = yes; then
16074 cat >>confdefs.h <<\_ACEOF
16075 #define SETPGRP_VOID 1
16081 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16082 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16083 if test "${ac_cv_func_setpgrp_void+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. */
16093 #include <unistd.h>
16099 if (setpgrp(1,1) == -1)
16108 rm -f conftest.$ac_objext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110 (eval $ac_compile) 2>conftest.er1
16112 grep -v '^ *+' conftest.er1 >conftest.err
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
16117 { ac_try='test -z "$ac_c_werror_flag"
16118 || test ! -s conftest.err'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; } &&
16124 { ac_try='test -s conftest.$ac_objext'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_cv_func_setpgrp_void=no
16132 echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 ac_cv_func_setpgrp_void=yes
16137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16139 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16140 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16141 if test $ac_cv_func_setpgrp_void = yes; then
16142 cat >>confdefs.h <<\_ACEOF
16143 #define SETPGRP_VOID 1
16149 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16150 # since sigsetjmp might only be defined as a macro.
16151 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16152 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16153 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16163 #include <setjmp.h>
16168 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16173 rm -f conftest.$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175 (eval $ac_compile) 2>conftest.er1
16177 grep -v '^ *+' conftest.er1 >conftest.err
16179 cat conftest.err >&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
16182 { ac_try='test -z "$ac_c_werror_flag"
16183 || test ! -s conftest.err'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try='test -s conftest.$ac_objext'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 gdb_cv_func_sigsetjmp=yes
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 gdb_cv_func_sigsetjmp=no
16202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16204 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16205 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16206 if test $gdb_cv_func_sigsetjmp = yes; then
16208 cat >>confdefs.h <<\_ACEOF
16209 #define HAVE_SIGSETJMP 1
16214 # Assume we'll default to using the included libiberty regex.
16215 gdb_use_included_regex=yes
16217 # However, if the system regex is GNU regex, then default to *not*
16218 # using the included regex.
16219 echo "$as_me:$LINENO: checking for GNU regex" >&5
16220 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16221 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 cat >conftest.$ac_ext <<_ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 #include <gnu-versions.h>
16234 #define REGEX_INTERFACE_VERSION 1
16235 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16236 # error "Version mismatch"
16242 rm -f conftest.$ac_objext
16243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16244 (eval $ac_compile) 2>conftest.er1
16246 grep -v '^ *+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag"
16252 || test ! -s conftest.err'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; } &&
16258 { ac_try='test -s conftest.$ac_objext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 gdb_cv_have_gnu_regex=yes
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 gdb_cv_have_gnu_regex=no
16271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16273 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16274 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16275 if test $gdb_cv_have_gnu_regex = yes; then
16276 gdb_use_included_regex=no
16280 # Check whether --with-included-regex or --without-included-regex was given.
16281 if test "${with_included_regex+set}" = set; then
16282 withval="$with_included_regex"
16283 gdb_with_regex=$withval
16285 gdb_with_regex=$gdb_use_included_regex
16287 if test "$gdb_with_regex" = yes; then
16289 cat >>confdefs.h <<\_ACEOF
16290 #define USE_INCLUDED_REGEX 1
16295 # See if <sys/proc.h> defines `struct thread' with a td_pcb member.
16296 echo "$as_me:$LINENO: checking for td_pcb in struct thread" >&5
16297 echo $ECHO_N "checking for td_pcb in struct thread... $ECHO_C" >&6
16298 if test "${gdb_cv_struct_thread_td_pcb+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 cat >conftest.$ac_ext <<_ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 #include <sys/param.h>
16308 #include <sys/proc.h>
16312 struct thread td; td.td_pcb;
16317 rm -f conftest.$ac_objext
16318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16319 (eval $ac_compile) 2>conftest.er1
16321 grep -v '^ *+' conftest.er1 >conftest.err
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
16326 { ac_try='test -z "$ac_c_werror_flag"
16327 || test ! -s conftest.err'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; } &&
16333 { ac_try='test -s conftest.$ac_objext'
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; }; then
16339 gdb_cv_struct_thread_td_pcb=yes
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16344 gdb_cv_struct_thread_td_pcb=no
16346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16348 echo "$as_me:$LINENO: result: $gdb_cv_struct_thread_td_pcb" >&5
16349 echo "${ECHO_T}$gdb_cv_struct_thread_td_pcb" >&6
16350 if test $gdb_cv_struct_thread_td_pcb = yes; then
16352 cat >>confdefs.h <<\_ACEOF
16353 #define HAVE_STRUCT_THREAD_TD_PCB 1
16358 # See if <sys/lwp.h> defines `struct lwp`.
16359 echo "$as_me:$LINENO: checking for struct lwp" >&5
16360 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16361 if test "${gdb_cv_struct_lwp+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 cat >conftest.$ac_ext <<_ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 #include <sys/param.h>
16371 #include <sys/lwp.h>
16380 rm -f conftest.$ac_objext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16382 (eval $ac_compile) 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 gdb_cv_struct_lwp=yes
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 gdb_cv_struct_lwp=no
16409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16411 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16412 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16413 if test $gdb_cv_struct_lwp = yes; then
16415 cat >>confdefs.h <<\_ACEOF
16416 #define HAVE_STRUCT_LWP 1
16421 # See if <machine/reg.h> degines `struct reg'.
16422 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16423 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16424 if test "${gdb_cv_struct_reg+set}" = set; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 #include <sys/types.h>
16434 #include <machine/reg.h>
16443 rm -f conftest.$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445 (eval $ac_compile) 2>conftest.er1
16447 grep -v '^ *+' conftest.er1 >conftest.err
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -z "$ac_c_werror_flag"
16453 || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest.$ac_objext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 gdb_cv_struct_reg=yes
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16470 gdb_cv_struct_reg=no
16472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16474 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16475 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16476 if test $gdb_cv_struct_reg = yes; then
16478 cat >>confdefs.h <<\_ACEOF
16479 #define HAVE_STRUCT_REG 1
16484 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16485 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16486 echo "$as_me:$LINENO: checking for r_fs in struct reg" >&5
16487 echo $ECHO_N "checking for r_fs in struct reg... $ECHO_C" >&6
16488 if test "${gdb_cv_struct_reg_r_fs+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 cat >conftest.$ac_ext <<_ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16497 #include <machine/reg.h>
16501 struct reg r; r.r_fs;
16506 rm -f conftest.$ac_objext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16508 (eval $ac_compile) 2>conftest.er1
16510 grep -v '^ *+' conftest.er1 >conftest.err
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try='test -z "$ac_c_werror_flag"
16516 || test ! -s conftest.err'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 gdb_cv_struct_reg_r_fs=yes
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 gdb_cv_struct_reg_r_fs=no
16535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16537 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_fs" >&5
16538 echo "${ECHO_T}$gdb_cv_struct_reg_r_fs" >&6
16539 if test $gdb_cv_struct_reg_r_fs = yes; then
16540 cat >>confdefs.h <<\_ACEOF
16541 #define HAVE_STRUCT_REG_R_FS 1
16545 echo "$as_me:$LINENO: checking for r_gs in struct reg" >&5
16546 echo $ECHO_N "checking for r_gs in struct reg... $ECHO_C" >&6
16547 if test "${gdb_cv_struct_reg_r_gs+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 #include <machine/reg.h>
16560 struct reg r; r.r_gs;
16565 rm -f conftest.$ac_objext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567 (eval $ac_compile) 2>conftest.er1
16569 grep -v '^ *+' conftest.er1 >conftest.err
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -z "$ac_c_werror_flag"
16575 || test ! -s conftest.err'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; } &&
16581 { ac_try='test -s conftest.$ac_objext'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587 gdb_cv_struct_reg_r_gs=yes
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16592 gdb_cv_struct_reg_r_gs=no
16594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16596 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_gs" >&5
16597 echo "${ECHO_T}$gdb_cv_struct_reg_r_gs" >&6
16598 if test $gdb_cv_struct_reg_r_gs = yes; then
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_STRUCT_REG_R_GS 1
16605 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16606 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16607 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16608 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 cat >conftest.$ac_ext <<_ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 #include <sys/ptrace.h>
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag"
16636 || test ! -s conftest.err'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 gdb_cv_have_ptrace_getregs=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 gdb_cv_have_ptrace_getregs=no
16655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16658 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16659 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
16660 if test $gdb_cv_have_ptrace_getregs = yes; then
16661 cat >>confdefs.h <<\_ACEOF
16662 #define HAVE_PTRACE_GETREGS 1
16667 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16668 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16669 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16670 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 #include <sys/ptrace.h>
16688 rm -f conftest.$ac_objext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16690 (eval $ac_compile) 2>conftest.er1
16692 grep -v '^ *+' conftest.er1 >conftest.err
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag"
16698 || test ! -s conftest.err'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest.$ac_objext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 gdb_cv_have_ptrace_getfpxregs=yes
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16715 gdb_cv_have_ptrace_getfpxregs=no
16717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16720 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16721 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
16722 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
16723 cat >>confdefs.h <<\_ACEOF
16724 #define HAVE_PTRACE_GETFPXREGS 1
16729 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16730 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16731 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16732 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 #include <sys/types.h>
16742 #include <sys/ptrace.h>
16751 rm -f conftest.$ac_objext
16752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16753 (eval $ac_compile) 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_c_werror_flag"
16761 || test ! -s conftest.err'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest.$ac_objext'
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 gdb_cv_have_pt_getdbregs=yes
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 gdb_cv_have_pt_getdbregs=no
16780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16783 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16784 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
16785 if test $gdb_cv_have_pt_getdbregs = yes; then
16786 cat >>confdefs.h <<\_ACEOF
16787 #define HAVE_PT_GETDBREGS 1
16792 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16793 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16794 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16795 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 cat >conftest.$ac_ext <<_ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 #include <sys/types.h>
16805 #include <sys/ptrace.h>
16814 rm -f conftest.$ac_objext
16815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16816 (eval $ac_compile) 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag"
16824 || test ! -s conftest.err'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 gdb_cv_have_pt_getxmmregs=yes
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 gdb_cv_have_pt_getxmmregs=no
16843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16846 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16847 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
16848 if test $gdb_cv_have_pt_getxmmregs = yes; then
16849 cat >>confdefs.h <<\_ACEOF
16850 #define HAVE_PT_GETXMMREGS 1
16855 # See if stdint.h provides the uintptr_t type.
16856 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
16857 echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
16858 echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
16859 if test "${gdb_cv_have_uintptr_t+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16862 cat >conftest.$ac_ext <<_ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 #include <stdint.h>
16877 rm -f conftest.$ac_objext
16878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16879 (eval $ac_compile) 2>conftest.er1
16881 grep -v '^ *+' conftest.er1 >conftest.err
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -z "$ac_c_werror_flag"
16887 || test ! -s conftest.err'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; } &&
16893 { ac_try='test -s conftest.$ac_objext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 gdb_cv_have_uintptr_t=yes
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 gdb_cv_have_uintptr_t=no
16906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16908 echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
16909 echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
16910 if test $gdb_cv_have_uintptr_t = yes; then
16912 cat >>confdefs.h <<\_ACEOF
16913 #define HAVE_UINTPTR_T 1
16918 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
16919 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
16920 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 cat >conftest.$ac_ext <<_ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16931 #ifdef HAVE_STRING_H
16932 #include <string.h>
16934 #ifdef HAVE_STRINGS_H
16935 #include <strings.h>
16938 #ifdef HAVE_STDLIB_H
16939 #include <stdlib.h>
16941 #ifdef HAVE_UNISTD_H
16942 #include <unistd.h>
16947 char *(*pfn) = (char *(*)) malloc
16952 rm -f conftest.$ac_objext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954 (eval $ac_compile) 2>conftest.er1
16956 grep -v '^ *+' conftest.er1 >conftest.err
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -z "$ac_c_werror_flag"
16962 || test ! -s conftest.err'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try='test -s conftest.$ac_objext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 bfd_cv_decl_needed_malloc=no
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 bfd_cv_decl_needed_malloc=yes
16981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16984 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
16985 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
16986 if test $bfd_cv_decl_needed_malloc = yes; then
16988 cat >>confdefs.h <<\_ACEOF
16989 #define NEED_DECLARATION_MALLOC 1
16994 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
16995 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
16996 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 cat >conftest.$ac_ext <<_ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h. */
17007 #ifdef HAVE_STRING_H
17008 #include <string.h>
17010 #ifdef HAVE_STRINGS_H
17011 #include <strings.h>
17014 #ifdef HAVE_STDLIB_H
17015 #include <stdlib.h>
17017 #ifdef HAVE_UNISTD_H
17018 #include <unistd.h>
17023 char *(*pfn) = (char *(*)) realloc
17028 rm -f conftest.$ac_objext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030 (eval $ac_compile) 2>conftest.er1
17032 grep -v '^ *+' conftest.er1 >conftest.err
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag"
17038 || test ! -s conftest.err'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 bfd_cv_decl_needed_realloc=no
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 bfd_cv_decl_needed_realloc=yes
17057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17060 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
17061 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
17062 if test $bfd_cv_decl_needed_realloc = yes; then
17064 cat >>confdefs.h <<\_ACEOF
17065 #define NEED_DECLARATION_REALLOC 1
17070 echo "$as_me:$LINENO: checking whether free must be declared" >&5
17071 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
17072 if test "${bfd_cv_decl_needed_free+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 cat >conftest.$ac_ext <<_ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17083 #ifdef HAVE_STRING_H
17084 #include <string.h>
17086 #ifdef HAVE_STRINGS_H
17087 #include <strings.h>
17090 #ifdef HAVE_STDLIB_H
17091 #include <stdlib.h>
17093 #ifdef HAVE_UNISTD_H
17094 #include <unistd.h>
17099 char *(*pfn) = (char *(*)) free
17104 rm -f conftest.$ac_objext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17106 (eval $ac_compile) 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest.$ac_objext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 bfd_cv_decl_needed_free=no
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 bfd_cv_decl_needed_free=yes
17133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17136 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
17137 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
17138 if test $bfd_cv_decl_needed_free = yes; then
17140 cat >>confdefs.h <<\_ACEOF
17141 #define NEED_DECLARATION_FREE 1
17146 echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
17147 echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
17148 if test "${bfd_cv_decl_needed_strerror+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 cat >conftest.$ac_ext <<_ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17159 #ifdef HAVE_STRING_H
17160 #include <string.h>
17162 #ifdef HAVE_STRINGS_H
17163 #include <strings.h>
17166 #ifdef HAVE_STDLIB_H
17167 #include <stdlib.h>
17169 #ifdef HAVE_UNISTD_H
17170 #include <unistd.h>
17175 char *(*pfn) = (char *(*)) strerror
17180 rm -f conftest.$ac_objext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag"
17190 || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 bfd_cv_decl_needed_strerror=no
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 bfd_cv_decl_needed_strerror=yes
17209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17212 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
17213 echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
17214 if test $bfd_cv_decl_needed_strerror = yes; then
17216 cat >>confdefs.h <<\_ACEOF
17217 #define NEED_DECLARATION_STRERROR 1
17222 echo "$as_me:$LINENO: checking whether strdup must be declared" >&5
17223 echo $ECHO_N "checking whether strdup must be declared... $ECHO_C" >&6
17224 if test "${bfd_cv_decl_needed_strdup+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17235 #ifdef HAVE_STRING_H
17236 #include <string.h>
17238 #ifdef HAVE_STRINGS_H
17239 #include <strings.h>
17242 #ifdef HAVE_STDLIB_H
17243 #include <stdlib.h>
17245 #ifdef HAVE_UNISTD_H
17246 #include <unistd.h>
17251 char *(*pfn) = (char *(*)) strdup
17256 rm -f conftest.$ac_objext
17257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258 (eval $ac_compile) 2>conftest.er1
17260 grep -v '^ *+' conftest.er1 >conftest.err
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -z "$ac_c_werror_flag"
17266 || test ! -s conftest.err'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest.$ac_objext'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 bfd_cv_decl_needed_strdup=no
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 bfd_cv_decl_needed_strdup=yes
17285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17288 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strdup" >&5
17289 echo "${ECHO_T}$bfd_cv_decl_needed_strdup" >&6
17290 if test $bfd_cv_decl_needed_strdup = yes; then
17292 cat >>confdefs.h <<\_ACEOF
17293 #define NEED_DECLARATION_STRDUP 1
17298 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
17299 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
17300 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 cat >conftest.$ac_ext <<_ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17311 #ifdef HAVE_STRING_H
17312 #include <string.h>
17314 #ifdef HAVE_STRINGS_H
17315 #include <strings.h>
17318 #ifdef HAVE_STDLIB_H
17319 #include <stdlib.h>
17321 #ifdef HAVE_UNISTD_H
17322 #include <unistd.h>
17327 char *(*pfn) = (char *(*)) strstr
17332 rm -f conftest.$ac_objext
17333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17334 (eval $ac_compile) 2>conftest.er1
17336 grep -v '^ *+' conftest.er1 >conftest.err
17338 cat conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
17341 { ac_try='test -z "$ac_c_werror_flag"
17342 || test ! -s conftest.err'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest.$ac_objext'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 bfd_cv_decl_needed_strstr=no
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 bfd_cv_decl_needed_strstr=yes
17361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17364 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
17365 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
17366 if test $bfd_cv_decl_needed_strstr = yes; then
17368 cat >>confdefs.h <<\_ACEOF
17369 #define NEED_DECLARATION_STRSTR 1
17374 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
17375 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
17376 if test "${bfd_cv_decl_needed_canonicalize_file_name+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 cat >conftest.$ac_ext <<_ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h. */
17387 #ifdef HAVE_STRING_H
17388 #include <string.h>
17390 #ifdef HAVE_STRINGS_H
17391 #include <strings.h>
17394 #ifdef HAVE_STDLIB_H
17395 #include <stdlib.h>
17397 #ifdef HAVE_UNISTD_H
17398 #include <unistd.h>
17403 char *(*pfn) = (char *(*)) canonicalize_file_name
17408 rm -f conftest.$ac_objext
17409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17410 (eval $ac_compile) 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag"
17418 || test ! -s conftest.err'
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; } &&
17424 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17430 bfd_cv_decl_needed_canonicalize_file_name=no
17432 echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17435 bfd_cv_decl_needed_canonicalize_file_name=yes
17437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17440 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_canonicalize_file_name" >&5
17441 echo "${ECHO_T}$bfd_cv_decl_needed_canonicalize_file_name" >&6
17442 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
17444 cat >>confdefs.h <<\_ACEOF
17445 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
17451 # The following save_state_t checkery is only necessary for HPUX
17452 # versions earlier than 10.20. When those fade from memory, this
17453 # could be expunged. --jsm 1999-03-22
17455 echo "$as_me:$LINENO: checking for HPUX save_state structure" >&5
17456 echo $ECHO_N "checking for HPUX save_state structure... $ECHO_C" >&6
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 #include <machine/save_state.h>
17466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17467 $EGREP "save_state_t" >/dev/null 2>&1; then
17468 gdb_cv_hpux_savestate=yes
17470 gdb_cv_hpux_savestate=no
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 #include <machine/save_state.h>
17483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17484 $EGREP "ss_wide" >/dev/null 2>&1; then
17485 gdb_cv_hpux_sswide=yes
17487 gdb_cv_hpux_sswide=no
17491 if test $gdb_cv_hpux_savestate = yes
17493 cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_STRUCT_SAVE_STATE_T 1
17498 if test $gdb_cv_hpux_sswide = yes
17500 cat >>confdefs.h <<\_ACEOF
17501 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
17505 echo "$as_me:$LINENO: result: $gdb_cv_hpux_sswide" >&5
17506 echo "${ECHO_T}$gdb_cv_hpux_sswide" >&6
17509 # If we are configured native on GNU/Linux, work around problems with
17511 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17513 if test "${target}" = "${host}"; then
17515 i[3456]86-*-linux*)
17516 cat >>confdefs.h <<\_ACEOF
17517 #define START_INFERIOR_TRAPS_EXPECTED 2
17520 cat >>confdefs.h <<\_ACEOF
17521 #define sys_quotactl 1
17526 cat >>confdefs.h <<\_ACEOF
17527 #define NEW_PROC_API 1
17531 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17532 cat >>confdefs.h <<\_ACEOF
17533 #define NEW_PROC_API 1
17537 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17538 cat >>confdefs.h <<\_ACEOF
17539 #define NEW_PROC_API 1
17544 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17545 cat >>confdefs.h <<\_ACEOF
17546 #define _KMEMUSER 1
17553 if test "$ac_cv_header_sys_procfs_h" = yes; then
17554 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17555 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17556 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 cat >conftest.$ac_ext <<_ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17567 #include <sys/procfs.h>
17576 rm -f conftest.$ac_objext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17578 (eval $ac_compile) 2>conftest.er1
17580 grep -v '^ *+' conftest.er1 >conftest.err
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -z "$ac_c_werror_flag"
17586 || test ! -s conftest.err'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest.$ac_objext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 bfd_cv_have_sys_procfs_type_pstatus_t=no
17606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17609 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17611 cat >>confdefs.h <<\_ACEOF
17612 #define HAVE_PSTATUS_T 1
17616 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17617 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17619 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17620 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17621 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 cat >conftest.$ac_ext <<_ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17632 #include <sys/procfs.h>
17641 rm -f conftest.$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643 (eval $ac_compile) 2>conftest.er1
17645 grep -v '^ *+' conftest.er1 >conftest.err
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest.$ac_objext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 bfd_cv_have_sys_procfs_type_prrun_t=yes
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 bfd_cv_have_sys_procfs_type_prrun_t=no
17671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17674 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17676 cat >>confdefs.h <<\_ACEOF
17677 #define HAVE_PRRUN_T 1
17681 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17682 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17684 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17685 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17686 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17697 #include <sys/procfs.h>
17706 rm -f conftest.$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708 (eval $ac_compile) 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest.$ac_objext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 bfd_cv_have_sys_procfs_type_gregset_t=yes
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 bfd_cv_have_sys_procfs_type_gregset_t=no
17736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17739 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17741 cat >>confdefs.h <<\_ACEOF
17742 #define HAVE_GREGSET_T 1
17746 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17747 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17749 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17750 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17751 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 cat >conftest.$ac_ext <<_ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17762 #include <sys/procfs.h>
17771 rm -f conftest.$ac_objext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773 (eval $ac_compile) 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_c_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest.$ac_objext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 bfd_cv_have_sys_procfs_type_fpregset_t=no
17801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17804 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17806 cat >>confdefs.h <<\_ACEOF
17807 #define HAVE_FPREGSET_T 1
17811 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17812 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17814 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17815 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17816 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17827 #include <sys/procfs.h>
17836 rm -f conftest.$ac_objext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838 (eval $ac_compile) 2>conftest.er1
17840 grep -v '^ *+' conftest.er1 >conftest.err
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag"
17846 || test ! -s conftest.err'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest.$ac_objext'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17860 echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 bfd_cv_have_sys_procfs_type_prgregset_t=no
17866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17869 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17871 cat >>confdefs.h <<\_ACEOF
17872 #define HAVE_PRGREGSET_T 1
17876 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17877 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17879 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17880 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17881 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17892 #include <sys/procfs.h>
17901 rm -f conftest.$ac_objext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903 (eval $ac_compile) 2>conftest.er1
17905 grep -v '^ *+' conftest.er1 >conftest.err
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
17910 { ac_try='test -z "$ac_c_werror_flag"
17911 || test ! -s conftest.err'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest.$ac_objext'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17923 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17934 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17936 cat >>confdefs.h <<\_ACEOF
17937 #define HAVE_PRFPREGSET_T 1
17941 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17942 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17944 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17945 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17946 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 cat >conftest.$ac_ext <<_ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17957 #include <sys/procfs.h>
17966 rm -f conftest.$ac_objext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968 (eval $ac_compile) 2>conftest.er1
17970 grep -v '^ *+' conftest.er1 >conftest.err
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try='test -z "$ac_c_werror_flag"
17976 || test ! -s conftest.err'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; } &&
17982 { ac_try='test -s conftest.$ac_objext'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17988 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17999 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18001 cat >>confdefs.h <<\_ACEOF
18002 #define HAVE_PRGREGSET32_T 1
18006 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18007 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18009 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18010 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18011 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 cat >conftest.$ac_ext <<_ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18022 #include <sys/procfs.h>
18026 prfpregset32_t avar
18031 rm -f conftest.$ac_objext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18033 (eval $ac_compile) 2>conftest.er1
18035 grep -v '^ *+' conftest.er1 >conftest.err
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag"
18041 || test ! -s conftest.err'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest.$ac_objext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18064 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18066 cat >>confdefs.h <<\_ACEOF
18067 #define HAVE_PRFPREGSET32_T 1
18071 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18072 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18074 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18075 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18076 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 cat >conftest.$ac_ext <<_ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18087 #include <sys/procfs.h>
18096 rm -f conftest.$ac_objext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18098 (eval $ac_compile) 2>conftest.er1
18100 grep -v '^ *+' conftest.er1 >conftest.err
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest.$ac_objext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 bfd_cv_have_sys_procfs_type_lwpid_t=no
18126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18129 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE_LWPID_T 1
18136 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18137 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18139 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18140 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18141 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18144 cat >conftest.$ac_ext <<_ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18152 #include <sys/procfs.h>
18161 rm -f conftest.$ac_objext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>conftest.er1
18165 grep -v '^ *+' conftest.er1 >conftest.err
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -z "$ac_c_werror_flag"
18171 || test ! -s conftest.err'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest.$ac_objext'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 bfd_cv_have_sys_procfs_type_psaddr_t=no
18191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18194 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18196 cat >>confdefs.h <<\_ACEOF
18197 #define HAVE_PSADDR_T 1
18201 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18202 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18204 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18205 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18206 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18217 #include <sys/procfs.h>
18226 rm -f conftest.$ac_objext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18228 (eval $ac_compile) 2>conftest.er1
18230 grep -v '^ *+' conftest.er1 >conftest.err
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag"
18236 || test ! -s conftest.err'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try='test -s conftest.$ac_objext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 bfd_cv_have_sys_procfs_type_prsysent_t=no
18256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18259 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18261 cat >>confdefs.h <<\_ACEOF
18262 #define HAVE_PRSYSENT_T 1
18266 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18267 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18269 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18270 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18271 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18272 echo $ECHO_N "(cached) $ECHO_C" >&6
18274 cat >conftest.$ac_ext <<_ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18282 #include <sys/procfs.h>
18291 rm -f conftest.$ac_objext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293 (eval $ac_compile) 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -z "$ac_c_werror_flag"
18301 || test ! -s conftest.err'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; } &&
18307 { ac_try='test -s conftest.$ac_objext'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18315 echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18318 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18324 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18326 cat >>confdefs.h <<\_ACEOF
18327 #define HAVE_PR_SIGSET_T 1
18331 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18332 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18334 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18335 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18336 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 cat >conftest.$ac_ext <<_ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18347 #include <sys/procfs.h>
18351 pr_sigaction64_t avar
18356 rm -f conftest.$ac_objext
18357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18358 (eval $ac_compile) 2>conftest.er1
18360 grep -v '^ *+' conftest.er1 >conftest.err
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } &&
18365 { ac_try='test -z "$ac_c_werror_flag"
18366 || test ! -s conftest.err'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest.$ac_objext'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; }; then
18378 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18380 echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18383 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18389 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18391 cat >>confdefs.h <<\_ACEOF
18392 #define HAVE_PR_SIGACTION64_T 1
18396 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18397 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18399 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18400 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18401 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 cat >conftest.$ac_ext <<_ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18412 #include <sys/procfs.h>
18416 pr_siginfo64_t avar
18421 rm -f conftest.$ac_objext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423 (eval $ac_compile) 2>conftest.er1
18425 grep -v '^ *+' conftest.er1 >conftest.err
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -z "$ac_c_werror_flag"
18431 || test ! -s conftest.err'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest.$ac_objext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18445 echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18454 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_PR_SIGINFO64_T 1
18461 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18462 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18468 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18469 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18470 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18471 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 if test "$cross_compiling" = yes; then
18475 gdb_cv_prfpregset_t_broken=yes
18477 cat >conftest.$ac_ext <<_ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18483 #include <sys/procfs.h>
18486 if (sizeof (prfpregset_t) == sizeof (void *))
18491 rm -f conftest$ac_exeext
18492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18493 (eval $ac_link) 2>&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; }; then
18502 gdb_cv_prfpregset_t_broken=no
18504 echo "$as_me: program exited with status $ac_status" >&5
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18508 ( exit $ac_status )
18509 gdb_cv_prfpregset_t_broken=yes
18511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18515 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18516 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18517 if test $gdb_cv_prfpregset_t_broken = yes; then
18518 cat >>confdefs.h <<\_ACEOF
18519 #define PRFPREGSET_T_BROKEN 1
18526 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18527 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18528 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 cat >conftest.$ac_ext <<_ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18537 #include <unistd.h>
18538 #include <sys/types.h>
18539 #include <sys/procfs.h>
18546 dummy = ioctl(0, PIOCSET, &dummy);
18552 rm -f conftest.$ac_objext
18553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18554 (eval $ac_compile) 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -z "$ac_c_werror_flag"
18562 || test ! -s conftest.err'
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; } &&
18568 { ac_try='test -s conftest.$ac_objext'
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; }; then
18574 gdb_cv_have_procfs_piocset=yes
18576 echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18579 gdb_cv_have_procfs_piocset=no
18581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18584 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18585 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18586 if test $gdb_cv_have_procfs_piocset = yes; then
18587 cat >>confdefs.h <<\_ACEOF
18588 #define HAVE_PROCFS_PIOCSET 1
18594 if test ${host} = ${target} ; then
18596 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18597 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18598 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18601 cat >conftest.$ac_ext <<_ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18611 struct link_map lm; (void) lm.l_addr;
18616 rm -f conftest.$ac_objext
18617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18618 (eval $ac_compile) 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_c_werror_flag"
18626 || test ! -s conftest.err'
18627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; } &&
18632 { ac_try='test -s conftest.$ac_objext'
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; }; then
18638 gdb_cv_have_struct_link_map_with_l_members=yes
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 gdb_cv_have_struct_link_map_with_l_members=no
18645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18648 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18649 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18650 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18651 cat >>confdefs.h <<\_ACEOF
18652 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18658 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18659 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18660 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 cat >conftest.$ac_ext <<_ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18669 #include <sys/types.h>
18674 struct link_map lm; (void) lm.lm_addr;
18679 rm -f conftest.$ac_objext
18680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18681 (eval $ac_compile) 2>conftest.er1
18683 grep -v '^ *+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag"
18689 || test ! -s conftest.err'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; } &&
18695 { ac_try='test -s conftest.$ac_objext'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; }; then
18701 gdb_cv_have_struct_link_map_with_lm_members=yes
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18706 gdb_cv_have_struct_link_map_with_lm_members=no
18708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18711 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18712 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18713 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18714 cat >>confdefs.h <<\_ACEOF
18715 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18721 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18722 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18723 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 #include <sys/types.h>
18733 #ifdef HAVE_NLIST_H
18740 struct so_map lm; (void) lm.som_addr;
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747 (eval $ac_compile) 2>conftest.er1
18749 grep -v '^ *+' conftest.er1 >conftest.err
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -z "$ac_c_werror_flag"
18755 || test ! -s conftest.err'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest.$ac_objext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 gdb_cv_have_struct_so_map_with_som_members=yes
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18772 gdb_cv_have_struct_so_map_with_som_members=no
18774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18777 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18778 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18779 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18780 cat >>confdefs.h <<\_ACEOF
18781 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18787 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18788 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18789 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 cat >conftest.$ac_ext <<_ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18799 #include <sys/link.h>
18803 struct link_map32 l;
18808 rm -f conftest.$ac_objext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18810 (eval $ac_compile) 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_c_werror_flag"
18818 || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 gdb_cv_have_struct_link_map32=yes
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18835 gdb_cv_have_struct_link_map32=no
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18840 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18841 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18842 if test $gdb_cv_have_struct_link_map32 = yes; then
18843 cat >>confdefs.h <<\_ACEOF
18844 #define HAVE_STRUCT_LINK_MAP32 1
18847 cat >>confdefs.h <<\_ACEOF
18848 #define _SYSCALL32 1
18855 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18856 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18857 if test "${gdb_cv_c_long_long+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18871 extern long long foo;
18872 switch (foo & 2) { case 0: return 1; }
18878 rm -f conftest.$ac_objext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880 (eval $ac_compile) 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -z "$ac_c_werror_flag"
18888 || test ! -s conftest.err'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest.$ac_objext'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900 gdb_cv_c_long_long=yes
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 gdb_cv_c_long_long=no
18907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18910 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18911 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18912 if test $gdb_cv_c_long_long = yes; then
18913 cat >>confdefs.h <<\_ACEOF
18914 #define CC_HAS_LONG_LONG 1
18920 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18921 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18922 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 if test "$cross_compiling" = yes; then
18926 gdb_cv_printf_has_long_long=no
18928 cat >conftest.$ac_ext <<_ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18938 l = (l << 16) + 0x0123;
18939 l = (l << 16) + 0x4567;
18940 l = (l << 16) + 0x89ab;
18941 l = (l << 16) + 0xcdef;
18942 sprintf (buf, "0x%016llx", l);
18943 return (strcmp ("0x0123456789abcdef", buf));
18946 rm -f conftest$ac_exeext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 gdb_cv_printf_has_long_long=yes
18959 echo "$as_me: program exited with status $ac_status" >&5
18960 echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18963 ( exit $ac_status )
18964 gdb_cv_printf_has_long_long=no
18966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18970 if test $gdb_cv_printf_has_long_long = yes; then
18971 cat >>confdefs.h <<\_ACEOF
18972 #define PRINTF_HAS_LONG_LONG 1
18976 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18977 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18980 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18981 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18982 if test "${ac_cv_c_long_double+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18985 cat >conftest.$ac_ext <<_ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
19000 rm -f conftest.$ac_objext
19001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19002 (eval $ac_compile) 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } &&
19009 { ac_try='test -z "$ac_c_werror_flag"
19010 || test ! -s conftest.err'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest.$ac_objext'
19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022 ac_cv_c_long_double=yes
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19027 ac_cv_c_long_double=no
19029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19032 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
19033 echo "${ECHO_T}$ac_cv_c_long_double" >&6
19034 if test $ac_cv_c_long_double = yes; then
19035 cat >>confdefs.h <<\_ACEOF
19036 #define HAVE_LONG_DOUBLE 1
19042 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19043 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19044 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 if test "$cross_compiling" = yes; then
19048 gdb_cv_printf_has_long_double=no
19050 cat >conftest.$ac_ext <<_ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19059 long double f = 3.141592653;
19060 sprintf (buf, "%Lg", f);
19061 return (strncmp ("3.14159", buf, 7));
19064 rm -f conftest$ac_exeext
19065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066 (eval $ac_link) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 gdb_cv_printf_has_long_double=yes
19077 echo "$as_me: program exited with status $ac_status" >&5
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ( exit $ac_status )
19082 gdb_cv_printf_has_long_double=no
19084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19088 if test $gdb_cv_printf_has_long_double = yes; then
19089 cat >>confdefs.h <<\_ACEOF
19090 #define PRINTF_HAS_LONG_DOUBLE 1
19094 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19095 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19098 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19099 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19100 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 if test "$cross_compiling" = yes; then
19104 gdb_cv_scanf_has_long_double=no
19106 cat >conftest.$ac_ext <<_ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19114 char *buf = "3.141592653";
19116 sscanf (buf, "%Lg", &f);
19117 return !(f > 3.14159 && f < 3.14160);
19120 rm -f conftest$ac_exeext
19121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19122 (eval $ac_link) 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 gdb_cv_scanf_has_long_double=yes
19133 echo "$as_me: program exited with status $ac_status" >&5
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19137 ( exit $ac_status )
19138 gdb_cv_scanf_has_long_double=no
19140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19144 if test $gdb_cv_scanf_has_long_double = yes; then
19145 cat >>confdefs.h <<\_ACEOF
19146 #define SCANF_HAS_LONG_DOUBLE 1
19150 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19151 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19155 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19156 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19157 if test "${gdb_cv_bigtoc+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19161 SAVE_LDFLAGS=$LDFLAGS
19164 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19165 *) gdb_cv_bigtoc=-bbigtoc ;;
19168 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19169 cat >conftest.$ac_ext <<_ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186 (eval $ac_link) 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag"
19194 || test ! -s conftest.err'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest$ac_exeext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19213 rm -f conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
19215 LDFLAGS="${SAVE_LDFLAGS}"
19218 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19219 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19220 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19226 if test ${build} = ${host} -a ${host} = ${target} ; then
19229 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19230 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19231 if test -f /usr/include/dce/cma_config.h ; then
19232 if test "$GCC" = "yes" ; then
19233 echo "$as_me:$LINENO: result: yes" >&5
19234 echo "${ECHO_T}yes" >&6
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_HPUX_THREAD_SUPPORT 1
19239 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19240 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19242 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19243 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19246 echo "$as_me:$LINENO: result: no" >&5
19247 echo "${ECHO_T}no" >&6
19251 # See if thread_db library is around for Solaris thread debugging.
19252 # Note that we must explicitly test for version 1 of the library
19253 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19255 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19256 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19257 if test -f /usr/lib/libthread_db.so.1 ; then
19258 echo "$as_me:$LINENO: result: yes" >&5
19259 echo "${ECHO_T}yes" >&6
19260 cat >>confdefs.h <<\_ACEOF
19261 #define HAVE_THREAD_DB_LIB 1
19264 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19265 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19267 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19268 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19269 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19272 ac_check_lib_save_LIBS=$LIBS
19274 cat >conftest.$ac_ext <<_ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19281 /* Override any gcc2 internal prototype to avoid an error. */
19285 /* We use char because int might match the return type of a gcc2
19286 builtin and then its argument prototype would still apply. */
19296 rm -f conftest.$ac_objext conftest$ac_exeext
19297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19298 (eval $ac_link) 2>conftest.er1
19300 grep -v '^ *+' conftest.er1 >conftest.err
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -z "$ac_c_werror_flag"
19306 || test ! -s conftest.err'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest$ac_exeext'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_cv_lib_dl_dlopen=yes
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 ac_cv_lib_dl_dlopen=no
19325 rm -f conftest.err conftest.$ac_objext \
19326 conftest$ac_exeext conftest.$ac_ext
19327 LIBS=$ac_check_lib_save_LIBS
19329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19330 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19331 if test $ac_cv_lib_dl_dlopen = yes; then
19332 cat >>confdefs.h <<_ACEOF
19333 #define HAVE_LIBDL 1
19340 if test "$GCC" = "yes" ; then
19341 # The GNU linker requires the -export-dynamic option to make
19342 # all symbols visible in the dynamic symbol table.
19343 hold_ldflags=$LDFLAGS
19344 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19345 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19346 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19347 cat >conftest.$ac_ext <<_ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19364 (eval $ac_link) 2>conftest.er1
19366 grep -v '^ *+' conftest.er1 >conftest.err
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag"
19372 || test ! -s conftest.err'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest$ac_exeext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19391 rm -f conftest.err conftest.$ac_objext \
19392 conftest$ac_exeext conftest.$ac_ext
19393 LDFLAGS=$hold_ldflags
19394 echo "$as_me:$LINENO: result: $found" >&5
19395 echo "${ECHO_T}$found" >&6
19396 if test $found = yes; then
19397 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19400 # Sun randomly tweaked the prototypes in <proc_service.h>
19402 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19403 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19404 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19415 #include <proc_service.h>
19416 ps_err_e ps_pdwrite
19417 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19427 rm -f conftest.$ac_objext
19428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19429 (eval $ac_compile) 2>conftest.er1
19431 grep -v '^ *+' conftest.er1 >conftest.err
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
19436 { ac_try='test -z "$ac_c_werror_flag"
19437 || test ! -s conftest.err'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; } &&
19443 { ac_try='test -s conftest.$ac_objext'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
19449 gdb_cv_proc_service_is_old=no
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 gdb_cv_proc_service_is_old=yes
19456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19460 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19461 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19462 if test $gdb_cv_proc_service_is_old = yes; then
19463 cat >>confdefs.h <<\_ACEOF
19464 #define PROC_SERVICE_IS_OLD 1
19469 echo "$as_me:$LINENO: result: no" >&5
19470 echo "${ECHO_T}no" >&6
19474 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19475 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19476 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 #include <sys/pthdebug.h>
19489 #ifndef PTHDB_VERSION_3
19496 rm -f conftest.$ac_objext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19498 (eval $ac_compile) 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag"
19506 || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest.$ac_objext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 gdb_cv_have_aix_thread_debug=yes
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 gdb_cv_have_aix_thread_debug=no
19525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19528 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19529 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19530 if test $gdb_cv_have_aix_thread_debug = yes; then
19531 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19532 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19533 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19540 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19541 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19542 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19543 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 #include <thread_db.h>
19556 int i = TD_NOTALLOC;
19561 rm -f conftest.$ac_objext
19562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563 (eval $ac_compile) 2>conftest.er1
19565 grep -v '^ *+' conftest.er1 >conftest.err
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
19570 { ac_try='test -z "$ac_c_werror_flag"
19571 || test ! -s conftest.err'
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
19583 gdb_cv_thread_db_h_has_td_notalloc=yes
19585 echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 gdb_cv_thread_db_h_has_td_notalloc=no
19591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19594 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19595 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19597 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19599 cat >>confdefs.h <<\_ACEOF
19600 #define THREAD_DB_HAS_TD_NOTALLOC 1
19605 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19606 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19607 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19608 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19617 #include <sys/syscall.h>
19621 int i = __NR_tkill;
19626 rm -f conftest.$ac_objext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19628 (eval $ac_compile) 2>conftest.er1
19630 grep -v '^ *+' conftest.er1 >conftest.err
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -z "$ac_c_werror_flag"
19636 || test ! -s conftest.err'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest.$ac_objext'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 gdb_cv_sys_syscall_h_has_tkill=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 gdb_cv_sys_syscall_h_has_tkill=no
19656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19659 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19660 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19662 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_TKILL_SYSCALL 1
19672 # Check whether --with-sysroot or --without-sysroot was given.
19673 if test "${with_sysroot+set}" = set; then
19674 withval="$with_sysroot"
19676 case ${with_sysroot} in
19677 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19678 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19681 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19683 if test "x$exec_prefix" = xNONE; then
19684 if test "x$prefix" = xNONE; then
19685 test_prefix=/usr/local
19687 test_prefix=$prefix
19690 test_prefix=$exec_prefix
19692 case ${TARGET_SYSTEM_ROOT} in
19693 "${test_prefix}"|"${test_prefix}/"*|\
19694 '${exec_prefix}'|'${exec_prefix}/'*)
19695 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19696 TARGET_SYSTEM_ROOT_DEFINE="$t"
19702 TARGET_SYSTEM_ROOT=
19703 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19709 # NOTE: Don't add -Wall or -Wunused, they both include
19710 # -Wunused-parameter which reports bogus warnings.
19711 # NOTE: If you add to this list, remember to update
19712 # gdb/doc/gdbint.texinfo.
19713 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19714 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
19715 -Wunused-label -Wunused-function"
19716 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19717 # -Wunused-function -Wunused-variable -Wunused-value
19718 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19719 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19720 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19721 # -Woverloaded-virtual -Winline -Werror"
19722 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19723 if test "${enable_build_warnings+set}" = set; then
19724 enableval="$enable_build_warnings"
19725 case "${enableval}" in
19727 no) build_warnings="-w";;
19728 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19729 build_warnings="${build_warnings} ${t}";;
19730 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19731 build_warnings="${t} ${build_warnings}";;
19732 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19734 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19735 echo "Setting compiler warning flags = $build_warnings" 6>&1
19737 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19738 if test "${enable_gdb_build_warnings+set}" = set; then
19739 enableval="$enable_gdb_build_warnings"
19740 case "${enableval}" in
19742 no) build_warnings="-w";;
19743 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19744 build_warnings="${build_warnings} ${t}";;
19745 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19746 build_warnings="${t} ${build_warnings}";;
19747 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19749 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19750 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19754 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19756 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19757 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19758 # Separate out the -Werror flag as some files just cannot be
19759 # compiled with it enabled.
19760 for w in ${build_warnings}; do
19762 -Werr*) WERROR_CFLAGS=-Werror ;;
19763 *) # Check that GCC accepts it
19764 saved_CFLAGS="$CFLAGS"
19765 CFLAGS="$CFLAGS $w"
19766 cat >conftest.$ac_ext <<_ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19781 rm -f conftest.$ac_objext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19783 (eval $ac_compile) 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -z "$ac_c_werror_flag"
19791 || test ! -s conftest.err'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest.$ac_objext'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 WARN_CFLAGS="${WARN_CFLAGS} $w"
19805 echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19810 CFLAGS="$saved_CFLAGS"
19813 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19814 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
19819 # In the Cygwin environment, we need some additional flags.
19820 echo "$as_me:$LINENO: checking for cygwin" >&5
19821 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19822 if test "${gdb_cv_os_cygwin+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 cat >conftest.$ac_ext <<_ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19832 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19837 $EGREP "lose" >/dev/null 2>&1; then
19838 gdb_cv_os_cygwin=yes
19840 gdb_cv_os_cygwin=no
19845 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19846 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19849 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19851 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19852 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19856 # libreadline needs libuser32.a in a cygwin environment
19858 if test x$gdb_cv_os_cygwin = xyes; then
19859 WIN32LIBS="-luser32"
19860 case "${target}" in
19861 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19867 LIBGUI="../libgui/src/libgui.a"
19868 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19886 if test "${enable_gdbtk}" = "yes"; then
19888 # Gdbtk must have an absolute path to srcdir in order to run
19889 # properly when not installed.
19892 GDBTK_SRC_DIR=`pwd`
19897 # Ok, lets find the tcl configuration
19898 # First, look for one uninstalled.
19899 # the alternative search directory is invoked by --with-tclconfig
19902 if test x"${no_tcl}" = x ; then
19903 # we reset no_tcl in case something fails here
19906 # Check whether --with-tclconfig or --without-tclconfig was given.
19907 if test "${with_tclconfig+set}" = set; then
19908 withval="$with_tclconfig"
19909 with_tclconfig=${withval}
19911 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19912 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19913 if test "${ac_cv_c_tclconfig+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 # First check to see if --with-tclconfig was specified.
19919 if test x"${with_tclconfig}" != x ; then
19920 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19921 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19923 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19924 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19925 { (exit 1); exit 1; }; }
19929 # then check for a private Tcl installation
19930 if test x"${ac_cv_c_tclconfig}" = x ; then
19933 `ls -dr ../tcl[7-9]* 2>/dev/null` \
19935 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
19937 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
19938 if test -f "$i/${configdir}/tclConfig.sh" ; then
19939 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19944 # check in a few common install locations
19945 if test x"${ac_cv_c_tclconfig}" = x ; then
19946 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
19947 if test -f "$i/tclConfig.sh" ; then
19948 ac_cv_c_tclconfig=`(cd $i; pwd)`
19953 # check in a few other private locations
19954 if test x"${ac_cv_c_tclconfig}" = x ; then
19957 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
19958 if test -f "$i/${configdir}/tclConfig.sh" ; then
19959 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19967 if test x"${ac_cv_c_tclconfig}" = x ; then
19968 TCLCONFIG="# no Tcl configs found"
19969 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19970 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19973 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
19974 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
19975 echo "${ECHO_T}found $TCLCONFIG" >&6
19979 if test -z "${no_tcl}"; then
20010 # Ok, lets find the tk configuration
20011 # First, look for one uninstalled.
20012 # the alternative search directory is invoked by --with-tkconfig
20015 if test x"${no_tk}" = x ; then
20016 # we reset no_tk in case something fails here
20019 # Check whether --with-tkconfig or --without-tkconfig was given.
20020 if test "${with_tkconfig+set}" = set; then
20021 withval="$with_tkconfig"
20022 with_tkconfig=${withval}
20024 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20025 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20026 if test "${ac_cv_c_tkconfig+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 # First check to see if --with-tkconfig was specified.
20032 if test x"${with_tkconfig}" != x ; then
20033 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20034 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20036 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20037 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20038 { (exit 1); exit 1; }; }
20042 # then check for a private Tk library
20043 if test x"${ac_cv_c_tkconfig}" = x ; then
20046 `ls -dr ../tk[4-9]* 2>/dev/null` \
20048 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20050 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20051 if test -f "$i/${configdir}/tkConfig.sh" ; then
20052 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20057 # check in a few common install locations
20058 if test x"${ac_cv_c_tkconfig}" = x ; then
20059 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20060 if test -f "$i/tkConfig.sh" ; then
20061 ac_cv_c_tkconfig=`(cd $i; pwd)`
20066 # check in a few other private locations
20067 if test x"${ac_cv_c_tkconfig}" = x ; then
20070 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20071 if test -f "$i/${configdir}/tkConfig.sh" ; then
20072 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20080 if test x"${ac_cv_c_tkconfig}" = x ; then
20081 TKCONFIG="# no Tk configs found"
20082 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20083 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20086 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20087 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20088 echo "${ECHO_T}found $TKCONFIG" >&6
20094 # now look for Tcl library stuff
20096 tcldir="../tcl/${configdir}/"
20098 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20100 # If $no_tk is nonempty, then we can't do Tk, and there is no
20101 # point to doing Tcl.
20102 if test -z "${no_tk}"; then
20104 if test -f "$TKCONFIG" ; then
20122 # Ok, lets find the tcl source trees so we can use the headers
20123 # Warning: transition of version 9 to 10 will break this algorithm
20124 # because 10 sorts before 9. We also look for just tcl. We have to
20125 # be careful that we don't match stuff like tclX by accident.
20126 # the alternative search directory is involked by --with-tclinclude
20130 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20131 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20133 # Check whether --with-tclinclude or --without-tclinclude was given.
20134 if test "${with_tclinclude+set}" = set; then
20135 withval="$with_tclinclude"
20136 with_tclinclude=${withval}
20138 if test "${ac_cv_c_tclh+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 # first check to see if --with-tclinclude was specified
20143 if test x"${with_tclinclude}" != x ; then
20144 if test -f ${with_tclinclude}/tclInt.h ; then
20145 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20146 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20147 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20149 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20150 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20151 { (exit 1); exit 1; }; }
20155 # next check if it came with Tcl configuration file
20156 if test x"${ac_cv_c_tclconfig}" = x ; then
20157 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20158 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20162 # next check in private source directory
20164 # since ls returns lowest version numbers first, reverse its output
20165 if test x"${ac_cv_c_tclh}" = x ; then
20168 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20169 ${srcdir}/../../tcl \
20170 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20171 ${srcdir}/../../../tcl \
20172 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20173 if test -f $i/generic/tclInt.h ; then
20174 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20179 # finally check in a few common install locations
20181 # since ls returns lowest version numbers first, reverse its output
20182 if test x"${ac_cv_c_tclh}" = x ; then
20184 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20185 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20186 /usr/local/src/tcl \
20187 /usr/local/lib/tcl \
20188 ${prefix}/include ; do
20189 if test -f $i/generic/tclInt.h ; then
20190 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20195 # see if one is installed
20196 if test x"${ac_cv_c_tclh}" = x ; then
20197 if test "${ac_cv_header_tclInt_h+set}" = set; then
20198 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20199 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20200 if test "${ac_cv_header_tclInt_h+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20204 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20206 # Is the header compilable?
20207 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20208 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 $ac_includes_default
20216 #include <tclInt.h>
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220 (eval $ac_compile) 2>conftest.er1
20222 grep -v '^ *+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -z "$ac_c_werror_flag"
20228 || test ! -s conftest.err'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; } &&
20234 { ac_try='test -s conftest.$ac_objext'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_header_compiler=yes
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 ac_header_compiler=no
20247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20249 echo "${ECHO_T}$ac_header_compiler" >&6
20251 # Is the header present?
20252 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20253 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 #include <tclInt.h>
20262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } >/dev/null; then
20270 if test -s conftest.err; then
20271 ac_cpp_err=$ac_c_preproc_warn_flag
20272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20279 if test -z "$ac_cpp_err"; then
20280 ac_header_preproc=yes
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ac_header_preproc=no
20287 rm -f conftest.err conftest.$ac_ext
20288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20289 echo "${ECHO_T}$ac_header_preproc" >&6
20291 # So? What about this header?
20292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20294 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20295 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20296 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20297 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20298 ac_header_preproc=yes
20301 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20302 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20304 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20306 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20308 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20310 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20312 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20315 ## ------------------------------------------ ##
20316 ## Report this to the AC_PACKAGE_NAME lists. ##
20317 ## ------------------------------------------ ##
20320 sed "s/^/$as_me: WARNING: /" >&2
20323 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20324 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20325 if test "${ac_cv_header_tclInt_h+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 ac_cv_header_tclInt_h=$ac_header_preproc
20330 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20331 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20334 if test $ac_cv_header_tclInt_h = yes; then
20335 ac_cv_c_tclh=installed
20345 if test x"${ac_cv_c_tclh}" = x ; then
20346 TCLHDIR="# no Tcl private headers found"
20347 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20348 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20349 { (exit 1); exit 1; }; }
20351 if test x"${ac_cv_c_tclh}" != x ; then
20353 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20354 echo "$as_me:$LINENO: result: is installed" >&5
20355 echo "${ECHO_T}is installed" >&6
20358 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20359 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20360 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20361 TCLHDIR="-I${ac_cv_c_tclh}"
20369 # Ok, lets find the tk source trees so we can use the headers
20370 # If the directory (presumably symlink) named "tk" exists, use that one
20371 # in preference to any others. Same logic is used when choosing library
20372 # and again with Tcl. The search order is the best place to look first, then in
20373 # decreasing significance. The loop breaks if the trigger file is found.
20374 # Note the gross little conversion here of srcdir by cd'ing to the found
20375 # directory. This converts the path from a relative to an absolute, so
20376 # recursive cache variables for the path will work right. We check all
20377 # the possible paths in one loop rather than many seperate loops to speed
20379 # the alternative search directory is involked by --with-tkinclude
20382 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20383 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20385 # Check whether --with-tkinclude or --without-tkinclude was given.
20386 if test "${with_tkinclude+set}" = set; then
20387 withval="$with_tkinclude"
20388 with_tkinclude=${withval}
20390 if test "${ac_cv_c_tkh+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20394 # first check to see if --with-tkinclude was specified
20395 if test x"${with_tkinclude}" != x ; then
20396 if test -f ${with_tkinclude}/tk.h ; then
20397 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20398 elif test -f ${with_tkinclude}/generic/tk.h ; then
20399 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20401 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20402 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20403 { (exit 1); exit 1; }; }
20407 # next check if it came with Tk configuration file
20408 if test x"${ac_cv_c_tkconfig}" = x ; then
20409 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20410 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20414 # next check in private source directory
20416 # since ls returns lowest version numbers first, reverse its output
20417 if test x"${ac_cv_c_tkh}" = x ; then
20420 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20421 ${srcdir}/../../tk \
20422 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20423 ${srcdir}/../../../tk \
20424 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20425 if test -f $i/generic/tk.h ; then
20426 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20431 # finally check in a few common install locations
20433 # since ls returns lowest version numbers first, reverse its output
20434 if test x"${ac_cv_c_tkh}" = x ; then
20436 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20437 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20438 /usr/local/src/tk \
20439 /usr/local/lib/tk \
20440 ${prefix}/include ; do
20441 if test -f $i/generic/tk.h ; then
20442 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20447 # see if one is installed
20448 if test x"${ac_cv_c_tkh}" = x ; then
20449 if test "${ac_cv_header_tk_h+set}" = set; then
20450 echo "$as_me:$LINENO: checking for tk.h" >&5
20451 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20452 if test "${ac_cv_header_tk_h+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20456 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20458 # Is the header compilable?
20459 echo "$as_me:$LINENO: checking tk.h usability" >&5
20460 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 $ac_includes_default
20470 rm -f conftest.$ac_objext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20472 (eval $ac_compile) 2>conftest.er1
20474 grep -v '^ *+' conftest.er1 >conftest.err
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag"
20480 || test ! -s conftest.err'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest.$ac_objext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_header_compiler=yes
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_header_compiler=no
20499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20501 echo "${ECHO_T}$ac_header_compiler" >&6
20503 # Is the header present?
20504 echo "$as_me:$LINENO: checking tk.h presence" >&5
20505 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20506 cat >conftest.$ac_ext <<_ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20517 grep -v '^ *+' conftest.er1 >conftest.err
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } >/dev/null; then
20522 if test -s conftest.err; then
20523 ac_cpp_err=$ac_c_preproc_warn_flag
20524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20531 if test -z "$ac_cpp_err"; then
20532 ac_header_preproc=yes
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_header_preproc=no
20539 rm -f conftest.err conftest.$ac_ext
20540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20541 echo "${ECHO_T}$ac_header_preproc" >&6
20543 # So? What about this header?
20544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20546 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20547 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20549 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20550 ac_header_preproc=yes
20553 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20554 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20556 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20557 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20558 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20560 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20562 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20564 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20567 ## ------------------------------------------ ##
20568 ## Report this to the AC_PACKAGE_NAME lists. ##
20569 ## ------------------------------------------ ##
20572 sed "s/^/$as_me: WARNING: /" >&2
20575 echo "$as_me:$LINENO: checking for tk.h" >&5
20576 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20577 if test "${ac_cv_header_tk_h+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 ac_cv_header_tk_h=$ac_header_preproc
20582 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20583 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20586 if test $ac_cv_header_tk_h = yes; then
20587 ac_cv_c_tkh=installed
20597 if test x"${ac_cv_c_tkh}" != x ; then
20599 if test x"${ac_cv_c_tkh}" = x"installed" ; then
20600 echo "$as_me:$LINENO: result: is installed" >&5
20601 echo "${ECHO_T}is installed" >&6
20604 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20605 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20606 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20607 TKHDIR="-I${ac_cv_c_tkh}"
20610 TKHDIR="# no Tk directory found"
20611 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20612 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20619 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20620 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20621 if test x"${ac_cv_c_itclh}" = x ; then
20622 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20623 if test -f $i/generic/itcl.h ; then
20624 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20629 if test x"${ac_cv_c_itclh}" = x ; then
20630 ITCLHDIR="# no Itcl private headers found"
20631 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20632 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20633 { (exit 1); exit 1; }; }
20635 if test x"${ac_cv_c_itclh}" != x ; then
20636 ITCLHDIR="-I${ac_cv_c_itclh}"
20638 # should always be here
20639 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
20644 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20645 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20646 if test x"${ac_cv_c_itkh}" = x ; then
20647 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20648 if test -f $i/generic/itk.h ; then
20649 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20654 if test x"${ac_cv_c_itkh}" = x ; then
20655 ITKHDIR="# no Itk private headers found"
20656 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20657 echo "$as_me: error: Can't find Itk private headers" >&2;}
20658 { (exit 1); exit 1; }; }
20660 if test x"${ac_cv_c_itkh}" != x ; then
20661 ITKHDIR="-I${ac_cv_c_itkh}"
20663 # should always be here
20664 # ITKLIB="../itcl/itk/unix/libitk.a"
20670 # now look for Tk library stuff
20672 tkdir="../tk/${configdir}/"
20674 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20676 # now look for Itcl library stuff
20680 # Ok, lets find the itcl configuration
20681 # First, look for one uninstalled.
20682 # the alternative search directory is invoked by --with-itclconfig
20685 if test x"${no_itcl}" = x ; then
20686 # we reset no_itcl in case something fails here
20689 # Check whether --with-itclconfig or --without-itclconfig was given.
20690 if test "${with_itclconfig+set}" = set; then
20691 withval="$with_itclconfig"
20692 with_itclconfig=${withval}
20694 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20695 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20696 if test "${ac_cv_c_itclconfig+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 # First check to see if --with-itclconfig was specified.
20702 if test x"${with_itclconfig}" != x ; then
20703 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20704 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20706 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20707 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20708 { (exit 1); exit 1; }; }
20712 # then check for a private Itcl library
20713 if test x"${ac_cv_c_itclconfig}" = x ; then
20716 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20718 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20720 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20721 if test -f "$i/itclConfig.sh" ; then
20722 ac_cv_c_itclconfig=`(cd $i; pwd)`
20727 # check in a few common install locations
20728 if test x"${ac_cv_c_itclconfig}" = x ; then
20729 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20730 if test -f "$i/itclConfig.sh" ; then
20731 ac_cv_c_itclconfig=`(cd $i; pwd)`
20736 # check in a few other private locations
20737 if test x"${ac_cv_c_itclconfig}" = x ; then
20739 ${srcdir}/../itcl/itcl \
20740 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20741 if test -f "$i/itclConfig.sh" ; then
20742 ac_cv_c_itclconfig=`(cd $i; pwd)`
20750 if test x"${ac_cv_c_itclconfig}" = x ; then
20751 ITCLCONFIG="# no Itcl configs found"
20752 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20753 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
20756 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
20757 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20758 echo "${ECHO_T}found $ITCLCONFIG" >&6
20762 if test -z "${no_itcl}"; then
20764 if test -f "$ITCLCONFIG" ; then
20779 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
20780 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
20784 # now look for Itk library stuff
20787 # Ok, lets find the itk configuration
20788 # First, look for one uninstalled.
20789 # the alternative search directory is invoked by --with-itkconfig
20792 if test x"${no_itk}" = x ; then
20793 # we reset no_itk in case something fails here
20796 # Check whether --with-itkconfig or --without-itkconfig was given.
20797 if test "${with_itkconfig+set}" = set; then
20798 withval="$with_itkconfig"
20799 with_itkconfig=${withval}
20801 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20802 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20803 if test "${ac_cv_c_itkconfig+set}" = set; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 # First check to see if --with-itkconfig was specified.
20809 if test x"${with_itkconfig}" != x ; then
20810 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20811 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20813 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20814 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20815 { (exit 1); exit 1; }; }
20819 # then check for a private Itk library
20820 if test x"${ac_cv_c_itkconfig}" = x ; then
20823 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20825 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20827 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20828 if test -f "$i/itkConfig.sh" ; then
20829 ac_cv_c_itkconfig=`(cd $i; pwd)`
20834 # check in a few common install locations
20835 if test x"${ac_cv_c_itkconfig}" = x ; then
20836 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20837 if test -f "$i/itkConfig.sh" ; then
20838 ac_cv_c_itkconfig=`(cd $i; pwd)`
20843 # check in a few other private locations
20844 if test x"${ac_cv_c_itkconfig}" = x ; then
20846 ${srcdir}/../itcl/itk \
20847 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20848 if test -f "$i/itkConfig.sh" ; then
20849 ac_cv_c_itkconfig=`(cd $i; pwd)`
20857 if test x"${ac_cv_c_itkconfig}" = x ; then
20858 ITKCONFIG="# no Itk configs found"
20859 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20860 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
20863 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
20864 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20865 echo "${ECHO_T}found $ITKCONFIG" >&6
20870 if test -z "${no_itcl}"; then
20872 if test -f "$ITKCONFIG" ; then
20887 ITKLIB="${ITK_BUILD_LIB_SPEC}"
20888 ITK_DEPS="${ITK_LIB_FULL_PATH}"
20891 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20892 # Tcl/Tk 8.1 require -fwritable strings. I don't
20893 # know whether 8.2 will or not, but I bet it will.
20894 # I don't have to worry about 7.x since we don't support it.
20896 if test "$GCC" = "yes"; then
20897 if test "$TCL_VERSION" != "8.0" ; then
20898 GDBTK_CFLAGS="-fwritable-strings"
20902 # Include some libraries that Tcl and Tk want.
20903 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20904 # Yes, the ordering seems wrong here. But it isn't.
20905 # TK_LIBS is the list of libraries that need to be linked
20906 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20907 # were in LIBS then any link tests after this point would
20908 # try to include things like `$(LIBGUI)', which wouldn't work.
20909 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20911 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20912 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20913 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20914 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20915 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20916 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20917 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20919 if test x$gdb_cv_os_cygwin = xyes; then
20920 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20921 WIN32LDAPP="-Wl,--subsystem,console"
20922 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20929 subdirs="$subdirs gdbtk"
20946 echo "$as_me:$LINENO: checking for X" >&5
20947 echo $ECHO_N "checking for X... $ECHO_C" >&6
20950 # Check whether --with-x or --without-x was given.
20951 if test "${with_x+set}" = set; then
20955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20956 if test "x$with_x" = xno; then
20957 # The user explicitly disabled X.
20960 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20961 # Both variables are already set.
20964 if test "${ac_cv_have_x+set}" = set; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 # One or both of the vars are not set, and there is no cached value.
20968 ac_x_includes=no ac_x_libraries=no
20969 rm -fr conftest.dir
20970 if mkdir conftest.dir; then
20972 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20973 cat >Imakefile <<'_ACEOF'
20975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20977 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20981 for ac_extension in a so sl; do
20982 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20983 test -f $ac_im_libdir/libX11.$ac_extension; then
20984 ac_im_usrlibdir=$ac_im_libdir; break
20987 # Screen out bogus values from the imake configuration. They are
20988 # bogus both because they are the default anyway, and because
20989 # using them would break gcc on systems where it needs fixed includes.
20990 case $ac_im_incroot in
20992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20994 case $ac_im_usrlibdir in
20995 /usr/lib | /lib) ;;
20996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21000 rm -fr conftest.dir
21003 # Standard set of common directories for X headers.
21004 # Check X11 before X11Rn because it is often a symlink to the current release.
21016 /usr/local/X11/include
21017 /usr/local/X11R6/include
21018 /usr/local/X11R5/include
21019 /usr/local/X11R4/include
21021 /usr/local/include/X11
21022 /usr/local/include/X11R6
21023 /usr/local/include/X11R5
21024 /usr/local/include/X11R4
21028 /usr/XFree86/include/X11
21032 /usr/unsupported/include
21033 /usr/athena/include
21034 /usr/local/x11r5/include
21035 /usr/lpp/Xamples/include
21037 /usr/openwin/include
21038 /usr/openwin/share/include'
21040 if test "$ac_x_includes" = no; then
21041 # Guess where to find include files, by looking for Intrinsic.h.
21042 # First, try using that file with no special directory specified.
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 #include <X11/Intrinsic.h>
21051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } >/dev/null; then
21059 if test -s conftest.err; then
21060 ac_cpp_err=$ac_c_preproc_warn_flag
21061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21068 if test -z "$ac_cpp_err"; then
21069 # We can compile using X headers with no special include directory.
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 for ac_dir in $ac_x_header_dirs; do
21076 if test -r "$ac_dir/X11/Intrinsic.h"; then
21077 ac_x_includes=$ac_dir
21082 rm -f conftest.err conftest.$ac_ext
21083 fi # $ac_x_includes = no
21085 if test "$ac_x_libraries" = no; then
21086 # Check for the libraries.
21087 # See if we find them without any special options.
21088 # Don't add to $LIBS permanently.
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <X11/Intrinsic.h>
21106 rm -f conftest.$ac_objext conftest$ac_exeext
21107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21108 (eval $ac_link) 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -z "$ac_c_werror_flag"
21116 || test ! -s conftest.err'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; } &&
21122 { ac_try='test -s conftest$ac_exeext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21129 # We can link X programs with no special library path.
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21136 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21138 # Don't even attempt the hair of trying to link an X program!
21139 for ac_extension in a so sl; do
21140 if test -r $ac_dir/libXt.$ac_extension; then
21141 ac_x_libraries=$ac_dir
21147 rm -f conftest.err conftest.$ac_objext \
21148 conftest$ac_exeext conftest.$ac_ext
21149 fi # $ac_x_libraries = no
21151 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21152 # Didn't find X anywhere. Cache the known absence of X.
21153 ac_cv_have_x="have_x=no"
21155 # Record where we found X for the cache.
21156 ac_cv_have_x="have_x=yes \
21157 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21162 eval "$ac_cv_have_x"
21165 if test "$have_x" != yes; then
21166 echo "$as_me:$LINENO: result: $have_x" >&5
21167 echo "${ECHO_T}$have_x" >&6
21170 # If each of the values was on the command line, it overrides each guess.
21171 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21172 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21173 # Update the cache value to reflect the command line values.
21174 ac_cv_have_x="have_x=yes \
21175 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21176 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21177 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21181 # Check whether we should enable the TUI, but only do so if we really
21183 if test x"$enable_tui" = xyes; then
21184 if test -d $srcdir/tui; then
21185 if test "$ac_cv_search_waddstr" != no; then
21186 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21187 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21188 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21189 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21190 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21191 CONFIG_ALL="${CONFIG_ALL} all-tui"
21192 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21193 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21194 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21196 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21197 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21202 # Unlike the sim directory, whether a simulator is linked is controlled by
21203 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21204 # This code just checks for a few cases where we'd like to ignore those
21205 # definitions, even when they're present in the '.mt' file. These cases
21206 # are when --disable-sim is specified, or if the simulator directory is
21207 # not part of the source tree.
21209 # Check whether --enable-sim or --disable-sim was given.
21210 if test "${enable_sim+set}" = set; then
21211 enableval="$enable_sim"
21212 echo "enable_sim = $enable_sim";
21213 echo "enableval = ${enableval}";
21214 case "${enableval}" in
21215 yes) ignore_sim=false ;;
21216 no) ignore_sim=true ;;
21217 *) ignore_sim=false ;;
21223 if test ! -d "${srcdir}/../sim"; then
21227 if test "${ignore_sim}" = "true"; then
21229 IGNORE_SIM_OBS="SIM_OBS="
21233 cat >>confdefs.h <<\_ACEOF
21252 # List of host floatformats.
21254 cat >>confdefs.h <<_ACEOF
21255 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21259 cat >>confdefs.h <<_ACEOF
21260 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21264 cat >>confdefs.h <<_ACEOF
21265 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21269 # target_subdir is used by the testsuite to find the target libraries.
21271 if test "${host}" != "${target}"; then
21272 target_subdir="${target_alias}/"
21277 if test "${target}" = "${host}"; then
21278 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21279 if test ! -f ${host_makefile_frag}; then
21280 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21281 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21282 { (exit 1); exit 1; }; }
21284 frags="$frags $host_makefile_frag"
21286 host_makefile_frag=/dev/null
21289 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21290 if test ! -f ${target_makefile_frag}; then
21291 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21292 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21293 { (exit 1); exit 1; }; }
21295 frags="$frags $target_makefile_frag"
21302 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21303 ' ${host_makefile_frag}`
21305 targetfile=`sed -n '
21306 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21307 ' ${target_makefile_frag}`
21309 if test "${target}" = "${host}"; then
21310 # We pick this up from the host configuration file (.mh) because we
21311 # do not have a native configuration Makefile fragment.
21312 nativefile=`sed -n '
21313 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21314 ' ${host_makefile_frag}`
21318 if test x"${gdb_osabi}" != x ; then
21320 cat >>confdefs.h <<_ACEOF
21321 #define GDB_OSABI_DEFAULT $gdb_osabi
21326 # Enable multi-ice-gdb-server.
21327 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21328 if test "${enable_multi_ice+set}" = set; then
21329 enableval="$enable_multi_ice"
21333 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21334 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21335 { (exit 1); exit 1; }; } ;;
21338 if test "x$enable_multi_ice" = xyes; then
21341 subdirs="$subdirs multi-ice"
21345 # We only build gdbserver automatically if host and target are the same.
21346 if test "x$target" = "x$host"; then
21347 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21348 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21349 if test "x$build_gdbserver" = xyes; then
21350 echo "$as_me:$LINENO: result: yes" >&5
21351 echo "${ECHO_T}yes" >&6
21354 subdirs="$subdirs gdbserver"
21357 echo "$as_me:$LINENO: result: no" >&5
21358 echo "${ECHO_T}no" >&6
21362 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21363 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21364 # to an empty version.
21371 if test "${hostfile}" != ""; then
21373 case "${hostfile}" in
21374 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21375 * ) GDB_XM_FILE="${hostfile}"
21377 files="${files} ${GDB_XM_FILE}"
21378 links="${links} xm.h"
21379 cat >>confdefs.h <<_ACEOF
21380 #define GDB_XM_FILE "${GDB_XM_FILE}"
21388 if test "${targetfile}" != ""; then
21390 case "${targetfile}" in
21391 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21392 * ) GDB_TM_FILE="${targetfile}"
21394 files="${files} ${GDB_TM_FILE}"
21395 links="${links} tm.h"
21396 cat >>confdefs.h <<_ACEOF
21397 #define GDB_TM_FILE "${GDB_TM_FILE}"
21405 if test "${nativefile}" != ""; then
21407 case "${nativefile}" in
21408 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21409 * ) GDB_NM_FILE="${nativefile}"
21411 files="${files} ${GDB_NM_FILE}"
21412 links="${links} nm.h"
21413 cat >>confdefs.h <<_ACEOF
21414 #define GDB_NM_FILE "${GDB_NM_FILE}"
21420 ac_sources="$files"
21422 while test -n "$ac_sources"; do
21423 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21424 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21425 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21427 ac_config_links="$ac_config_links $ac_config_links_1"
21434 cat >>confdefs.h <<\_ACEOF
21435 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21442 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21443 if test "${with_libiconv_prefix+set}" = set; then
21444 withval="$with_libiconv_prefix"
21446 for dir in `echo "$withval" | tr : ' '`; do
21447 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21448 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21453 echo "$as_me:$LINENO: checking for iconv" >&5
21454 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21455 if test "${am_cv_func_iconv+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21459 am_cv_func_iconv="no, consider installing GNU libiconv"
21461 cat >conftest.$ac_ext <<_ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 #include <stdlib.h>
21472 iconv_t cd = iconv_open("","");
21473 iconv(cd,NULL,NULL,NULL,NULL);
21479 rm -f conftest.$ac_objext conftest$ac_exeext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21481 (eval $ac_link) 2>conftest.er1
21483 grep -v '^ *+' conftest.er1 >conftest.err
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag"
21489 || test ! -s conftest.err'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; } &&
21495 { ac_try='test -s conftest$ac_exeext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 am_cv_func_iconv=yes
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21507 rm -f conftest.err conftest.$ac_objext \
21508 conftest$ac_exeext conftest.$ac_ext
21509 if test "$am_cv_func_iconv" != yes; then
21510 am_save_LIBS="$LIBS"
21511 LIBS="$LIBS -liconv"
21512 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 #include <stdlib.h>
21523 iconv_t cd = iconv_open("","");
21524 iconv(cd,NULL,NULL,NULL,NULL);
21530 rm -f conftest.$ac_objext conftest$ac_exeext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532 (eval $ac_link) 2>conftest.er1
21534 grep -v '^ *+' conftest.er1 >conftest.err
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
21539 { ac_try='test -z "$ac_c_werror_flag"
21540 || test ! -s conftest.err'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; } &&
21546 { ac_try='test -s conftest$ac_exeext'
21547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548 (eval $ac_try) 2>&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; }; then
21552 am_cv_lib_iconv=yes
21553 am_cv_func_iconv=yes
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21559 rm -f conftest.err conftest.$ac_objext \
21560 conftest$ac_exeext conftest.$ac_ext
21561 LIBS="$am_save_LIBS"
21565 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21566 echo "${ECHO_T}$am_cv_func_iconv" >&6
21567 if test "$am_cv_func_iconv" = yes; then
21569 cat >>confdefs.h <<\_ACEOF
21570 #define HAVE_ICONV 1
21573 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21574 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21575 if test "${am_cv_proto_iconv+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21586 #include <stdlib.h>
21592 #if defined(__STDC__) || defined(__cplusplus)
21593 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21606 rm -f conftest.$ac_objext
21607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608 (eval $ac_compile) 2>conftest.er1
21610 grep -v '^ *+' conftest.er1 >conftest.err
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } &&
21615 { ac_try='test -z "$ac_c_werror_flag"
21616 || test ! -s conftest.err'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest.$ac_objext'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 am_cv_proto_iconv_arg1=""
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 am_cv_proto_iconv_arg1="const"
21635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21636 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);"
21639 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21640 echo "$as_me:$LINENO: result: ${ac_t:-
21641 }$am_cv_proto_iconv" >&5
21642 echo "${ECHO_T}${ac_t:-
21643 }$am_cv_proto_iconv" >&6
21645 cat >>confdefs.h <<_ACEOF
21646 #define ICONV_CONST $am_cv_proto_iconv_arg1
21651 if test "$am_cv_lib_iconv" = yes; then
21657 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21658 ac_config_commands="$ac_config_commands default"
21659 cat >confcache <<\_ACEOF
21660 # This file is a shell script that caches the results of configure
21661 # tests run on this system so they can be shared between configure
21662 # scripts and configure runs, see configure's option --config-cache.
21663 # It is not useful on other systems. If it contains results you don't
21664 # want to keep, you may remove or edit it.
21666 # config.status only pays attention to the cache file if you give it
21667 # the --recheck option to rerun configure.
21669 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21670 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21671 # following values.
21675 # The following way of writing the cache mishandles newlines in values,
21676 # but we know of no workaround that is simple, portable, and efficient.
21677 # So, don't put newlines in cache variables' values.
21678 # Ultrix sh set writes to stderr and can't be redirected directly,
21679 # and sets the high bit in the cache file unless we assign to the vars.
21682 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21684 # `set' does not quote correctly, so add quotes (double-quote
21685 # substitution turns \\\\ into \\, and sed turns \\ into \).
21688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21691 # `set' quotes correctly as required by POSIX, so do not add quotes.
21693 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21702 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21704 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21705 if test -w $cache_file; then
21706 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21707 cat confcache >$cache_file
21709 echo "not updating unwritable cache $cache_file"
21714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21715 # Let make expand exec_prefix.
21716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21718 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21719 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21720 # trailing colons and then remove the whole line if VPATH becomes empty
21721 # (actually we leave an empty line to preserve line numbers).
21722 if test "x$srcdir" = x.; then
21723 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21724 s/:*\$(srcdir):*/:/;
21725 s/:*\${srcdir}:*/:/;
21727 s/^\([^=]*=[ ]*\):*/\1/;
21733 DEFS=-DHAVE_CONFIG_H
21737 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21738 # 1. Remove the extension, and $U if already installed.
21739 ac_i=`echo "$ac_i" |
21740 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21742 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21743 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21745 LIBOBJS=$ac_libobjs
21747 LTLIBOBJS=$ac_ltlibobjs
21751 : ${CONFIG_STATUS=./config.status}
21752 ac_clean_files_save=$ac_clean_files
21753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21754 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21755 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21756 cat >$CONFIG_STATUS <<_ACEOF
21758 # Generated by $as_me.
21759 # Run this file to recreate the current configuration.
21760 # Compiler output produced by configure, useful for debugging
21761 # configure, is in config.log if it exists.
21764 ac_cs_recheck=false
21766 SHELL=\${CONFIG_SHELL-$SHELL}
21769 cat >>$CONFIG_STATUS <<\_ACEOF
21770 ## --------------------- ##
21771 ## M4sh Initialization. ##
21772 ## --------------------- ##
21774 # Be Bourne compatible
21775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21778 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21779 # is contrary to our usage. Disable this feature.
21780 alias -g '${1+"$@"}'='"$@"'
21781 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21784 DUALCASE=1; export DUALCASE # for MKS sh
21786 # Support unset when possible.
21787 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21794 # Work around bugs in pre-3.0 UWIN ksh.
21795 $as_unset ENV MAIL MAILPATH
21802 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21803 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21804 LC_TELEPHONE LC_TIME
21806 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21807 eval $as_var=C; export $as_var
21813 # Required to use basename.
21814 if expr a : '\(a\)' >/dev/null 2>&1; then
21820 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21821 as_basename=basename
21827 # Name of the executable.
21828 as_me=`$as_basename "$0" ||
21829 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21830 X"$0" : 'X\(//\)$' \| \
21831 X"$0" : 'X\(/\)$' \| \
21832 . : '\(.\)' 2>/dev/null ||
21834 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21835 /^X\/\(\/\/\)$/{ s//\1/; q; }
21836 /^X\/\(\/\).*/{ s//\1/; q; }
21840 # PATH needs CR, and LINENO needs CR and PATH.
21841 # Avoid depending upon Character Ranges.
21842 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21843 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21844 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21845 as_cr_digits='0123456789'
21846 as_cr_alnum=$as_cr_Letters$as_cr_digits
21848 # The user is always right.
21849 if test "${PATH_SEPARATOR+set}" != set; then
21850 echo "#! /bin/sh" >conf$$.sh
21851 echo "exit 0" >>conf$$.sh
21853 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21862 as_lineno_1=$LINENO
21863 as_lineno_2=$LINENO
21864 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21865 test "x$as_lineno_1" != "x$as_lineno_2" &&
21866 test "x$as_lineno_3" = "x$as_lineno_2" || {
21867 # Find who we are. Look in the path if we contain no path at all
21870 *[\\/]* ) as_myself=$0 ;;
21871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21872 for as_dir in $PATH
21875 test -z "$as_dir" && as_dir=.
21876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21881 # We did not find ourselves, most probably we were run as `sh COMMAND'
21882 # in which case we are not to be found in the path.
21883 if test "x$as_myself" = x; then
21886 if test ! -f "$as_myself"; then
21887 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21888 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21889 { (exit 1); exit 1; }; }
21891 case $CONFIG_SHELL in
21893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21894 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21897 test -z "$as_dir" && as_dir=.
21898 for as_base in sh bash ksh sh5; do
21901 if ("$as_dir/$as_base" -c '
21902 as_lineno_1=$LINENO
21903 as_lineno_2=$LINENO
21904 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21905 test "x$as_lineno_1" != "x$as_lineno_2" &&
21906 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21907 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21908 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21909 CONFIG_SHELL=$as_dir/$as_base
21910 export CONFIG_SHELL
21911 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21919 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21920 # uniformly replaced by the line number. The first 'sed' inserts a
21921 # line-number line before each line; the second 'sed' does the real
21922 # work. The second script uses 'N' to pair each line-number line
21923 # with the numbered line, and appends trailing '-' during
21924 # substitution so that $LINENO is not a special case at line end.
21925 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21926 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21927 sed '=' <$as_myself |
21932 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21935 s,^['$as_cr_digits']*\n,,
21936 ' >$as_me.lineno &&
21937 chmod +x $as_me.lineno ||
21938 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21939 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21940 { (exit 1); exit 1; }; }
21942 # Don't try to exec as it changes $[0], causing all sort of problems
21943 # (the dirname of $[0] is not the place where we might find the
21944 # original and so on. Autoconf is especially sensible to this).
21946 # Exit status is that of the last command.
21951 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21952 *c*,-n*) ECHO_N= ECHO_C='
21954 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21955 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21958 if expr a : '\(a\)' >/dev/null 2>&1; then
21964 rm -f conf$$ conf$$.exe conf$$.file
21966 if ln -s conf$$.file conf$$ 2>/dev/null; then
21967 # We could just check for DJGPP; but this test a) works b) is more generic
21968 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21969 if test -f conf$$.exe; then
21970 # Don't use ln at all; we don't have any links
21975 elif ln conf$$.file conf$$ 2>/dev/null; then
21980 rm -f conf$$ conf$$.exe conf$$.file
21982 if mkdir -p . 2>/dev/null; then
21985 test -d ./-p && rmdir ./-p
21989 as_executable_p="test -f"
21991 # Sed expression to map a string onto a valid CPP name.
21992 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21994 # Sed expression to map a string onto a valid variable name.
21995 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21999 # We need space, tab and new line, in precisely that order.
22009 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22010 # report actual input values of CONFIG_FILES etc. instead of their
22011 # values after options handling. Logging --version etc. is OK.
22015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22016 ## Running $as_me. ##
22021 This file was extended by $as_me, which was
22022 generated by GNU Autoconf 2.59. Invocation command line was
22024 CONFIG_FILES = $CONFIG_FILES
22025 CONFIG_HEADERS = $CONFIG_HEADERS
22026 CONFIG_LINKS = $CONFIG_LINKS
22027 CONFIG_COMMANDS = $CONFIG_COMMANDS
22031 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22035 # Files that config.status was made for.
22036 if test -n "$ac_config_files"; then
22037 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22040 if test -n "$ac_config_headers"; then
22041 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22044 if test -n "$ac_config_links"; then
22045 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22048 if test -n "$ac_config_commands"; then
22049 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22052 cat >>$CONFIG_STATUS <<\_ACEOF
22055 \`$as_me' instantiates files from templates according to the
22056 current configuration.
22058 Usage: $0 [OPTIONS] [FILE]...
22060 -h, --help print this help, then exit
22061 -V, --version print version number, then exit
22062 -q, --quiet do not print progress messages
22063 -d, --debug don't remove temporary files
22064 --recheck update $as_me by reconfiguring in the same conditions
22065 --file=FILE[:TEMPLATE]
22066 instantiate the configuration file FILE
22067 --header=FILE[:TEMPLATE]
22068 instantiate the configuration header FILE
22070 Configuration files:
22073 Configuration headers:
22076 Configuration links:
22079 Configuration commands:
22082 Report bugs to <bug-autoconf@gnu.org>."
22085 cat >>$CONFIG_STATUS <<_ACEOF
22088 configured by $0, generated by GNU Autoconf 2.59,
22089 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22091 Copyright (C) 2003 Free Software Foundation, Inc.
22092 This config.status script is free software; the Free Software Foundation
22093 gives unlimited permission to copy, distribute and modify it."
22098 cat >>$CONFIG_STATUS <<\_ACEOF
22099 # If no file are specified by the user, then we need to provide default
22100 # value. By we need to know if files were specified by the user.
22106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22107 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22115 *) # This is not an option, so the user has probably given explicit
22118 ac_need_defaults=false;;
22122 # Handling of the options.
22124 cat >>$CONFIG_STATUS <<\_ACEOF
22125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22127 --version | --vers* | -V )
22128 echo "$ac_cs_version"; exit 0 ;;
22130 # Conflict between --help and --header
22131 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22132 Try \`$0 --help' for more information." >&5
22133 echo "$as_me: error: ambiguous option: $1
22134 Try \`$0 --help' for more information." >&2;}
22135 { (exit 1); exit 1; }; };;
22136 --help | --hel | -h )
22137 echo "$ac_cs_usage"; exit 0 ;;
22138 --debug | --d* | -d )
22140 --file | --fil | --fi | --f )
22142 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22143 ac_need_defaults=false;;
22144 --header | --heade | --head | --hea )
22146 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22147 ac_need_defaults=false;;
22148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22152 # This is an error.
22153 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22154 Try \`$0 --help' for more information." >&5
22155 echo "$as_me: error: unrecognized option: $1
22156 Try \`$0 --help' for more information." >&2;}
22157 { (exit 1); exit 1; }; } ;;
22159 *) ac_config_targets="$ac_config_targets $1" ;;
22165 ac_configure_extra_args=
22167 if $ac_cs_silent; then
22169 ac_configure_extra_args="$ac_configure_extra_args --silent"
22173 cat >>$CONFIG_STATUS <<_ACEOF
22174 if \$ac_cs_recheck; then
22175 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22176 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22181 cat >>$CONFIG_STATUS <<_ACEOF
22183 # INIT-COMMANDS section.
22187 gdb_host_cpu=$gdb_host_cpu
22188 gdb_target_cpu=$gdb_target_cpu
22189 nativefile=$nativefile
22196 cat >>$CONFIG_STATUS <<\_ACEOF
22197 for ac_config_target in $ac_config_targets
22199 case "$ac_config_target" in
22200 # Handling of arguments.
22201 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22202 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22203 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22204 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22205 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22206 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22207 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22208 { (exit 1); exit 1; }; };;
22212 # If the user did not use the arguments to specify the items to instantiate,
22213 # then the envvar interface is used. Set only those that are not.
22214 # We use the long form for the default assignment because of an extremely
22215 # bizarre bug on SunOS 4.1.3.
22216 if $ac_need_defaults; then
22217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22218 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22219 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22223 # Have a temporary directory for convenience. Make it in the build tree
22224 # simply because there is no reason to put it here, and in addition,
22225 # creating and moving files from /tmp can sometimes cause problems.
22226 # Create a temporary directory, and hook for its removal unless debugging.
22229 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22230 trap '{ (exit 1); exit 1; }' 1 2 13 15
22233 # Create a (secure) tmp directory for tmp files.
22236 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22237 test -n "$tmp" && test -d "$tmp"
22240 tmp=./confstat$$-$RANDOM
22241 (umask 077 && mkdir $tmp)
22244 echo "$me: cannot create a temporary directory in ." >&2
22245 { (exit 1); exit 1; }
22250 cat >>$CONFIG_STATUS <<_ACEOF
22253 # CONFIG_FILES section.
22256 # No need to generate the scripts if there are no CONFIG_FILES.
22257 # This happens for instance when ./config.status config.h
22258 if test -n "\$CONFIG_FILES"; then
22259 # Protect against being on the right side of a sed subst in config.status.
22260 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22261 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22262 s,@SHELL@,$SHELL,;t t
22263 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22264 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22265 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22266 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22267 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22268 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22269 s,@exec_prefix@,$exec_prefix,;t t
22270 s,@prefix@,$prefix,;t t
22271 s,@program_transform_name@,$program_transform_name,;t t
22272 s,@bindir@,$bindir,;t t
22273 s,@sbindir@,$sbindir,;t t
22274 s,@libexecdir@,$libexecdir,;t t
22275 s,@datadir@,$datadir,;t t
22276 s,@sysconfdir@,$sysconfdir,;t t
22277 s,@sharedstatedir@,$sharedstatedir,;t t
22278 s,@localstatedir@,$localstatedir,;t t
22279 s,@libdir@,$libdir,;t t
22280 s,@includedir@,$includedir,;t t
22281 s,@oldincludedir@,$oldincludedir,;t t
22282 s,@infodir@,$infodir,;t t
22283 s,@mandir@,$mandir,;t t
22284 s,@build_alias@,$build_alias,;t t
22285 s,@host_alias@,$host_alias,;t t
22286 s,@target_alias@,$target_alias,;t t
22287 s,@DEFS@,$DEFS,;t t
22288 s,@ECHO_C@,$ECHO_C,;t t
22289 s,@ECHO_N@,$ECHO_N,;t t
22290 s,@ECHO_T@,$ECHO_T,;t t
22291 s,@LIBS@,$LIBS,;t t
22292 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22293 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22294 s,@MAINT@,$MAINT,;t t
22296 s,@CFLAGS@,$CFLAGS,;t t
22297 s,@LDFLAGS@,$LDFLAGS,;t t
22298 s,@CPPFLAGS@,$CPPFLAGS,;t t
22299 s,@ac_ct_CC@,$ac_ct_CC,;t t
22300 s,@EXEEXT@,$EXEEXT,;t t
22301 s,@OBJEXT@,$OBJEXT,;t t
22303 s,@EGREP@,$EGREP,;t t
22304 s,@build@,$build,;t t
22305 s,@build_cpu@,$build_cpu,;t t
22306 s,@build_vendor@,$build_vendor,;t t
22307 s,@build_os@,$build_os,;t t
22308 s,@host@,$host,;t t
22309 s,@host_cpu@,$host_cpu,;t t
22310 s,@host_vendor@,$host_vendor,;t t
22311 s,@host_os@,$host_os,;t t
22312 s,@target@,$target,;t t
22313 s,@target_cpu@,$target_cpu,;t t
22314 s,@target_vendor@,$target_vendor,;t t
22315 s,@target_os@,$target_os,;t t
22316 s,@RANLIB@,$RANLIB,;t t
22317 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22318 s,@SET_MAKE@,$SET_MAKE,;t t
22319 s,@ALLOCA@,$ALLOCA,;t t
22320 s,@USE_NLS@,$USE_NLS,;t t
22321 s,@MSGFMT@,$MSGFMT,;t t
22322 s,@GMSGFMT@,$GMSGFMT,;t t
22323 s,@XGETTEXT@,$XGETTEXT,;t t
22324 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22325 s,@CATALOGS@,$CATALOGS,;t t
22326 s,@CATOBJEXT@,$CATOBJEXT,;t t
22327 s,@DATADIRNAME@,$DATADIRNAME,;t t
22328 s,@GMOFILES@,$GMOFILES,;t t
22329 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22330 s,@INTLDEPS@,$INTLDEPS,;t t
22331 s,@INTLLIBS@,$INTLLIBS,;t t
22332 s,@INTLOBJS@,$INTLOBJS,;t t
22333 s,@POFILES@,$POFILES,;t t
22334 s,@POSUB@,$POSUB,;t t
22335 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22336 s,@GT_NO@,$GT_NO,;t t
22337 s,@GT_YES@,$GT_YES,;t t
22338 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22340 s,@localedir@,$localedir,;t t
22341 s,@PACKAGE@,$PACKAGE,;t t
22342 s,@subdirs@,$subdirs,;t t
22344 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22345 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22346 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22347 s,@LN_S@,$LN_S,;t t
22348 s,@YACC@,$YACC,;t t
22350 s,@ac_ct_AR@,$ac_ct_AR,;t t
22351 s,@DLLTOOL@,$DLLTOOL,;t t
22352 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22353 s,@WINDRES@,$WINDRES,;t t
22354 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22356 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22357 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22358 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22359 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22360 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22361 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22362 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22363 s,@WIN32LIBS@,$WIN32LIBS,;t t
22364 s,@LIBGUI@,$LIBGUI,;t t
22365 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22366 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22367 s,@TCL_VERSION@,$TCL_VERSION,;t t
22368 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22369 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22370 s,@TCL_CC@,$TCL_CC,;t t
22371 s,@TCL_DEFS@,$TCL_DEFS,;t t
22372 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22373 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22374 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22375 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22376 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22377 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22378 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22379 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22380 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22381 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22382 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22383 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22384 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22385 s,@TK_VERSION@,$TK_VERSION,;t t
22386 s,@TK_DEFS@,$TK_DEFS,;t t
22387 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22388 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22389 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22390 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22391 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22392 s,@TCLHDIR@,$TCLHDIR,;t t
22393 s,@TKHDIR@,$TKHDIR,;t t
22394 s,@ITCLHDIR@,$ITCLHDIR,;t t
22395 s,@ITKHDIR@,$ITKHDIR,;t t
22396 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22397 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22398 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22399 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22400 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22401 s,@ITK_VERSION@,$ITK_VERSION,;t t
22402 s,@ITK_DEFS@,$ITK_DEFS,;t t
22403 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22404 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22405 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22406 s,@X_CFLAGS@,$X_CFLAGS,;t t
22407 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22408 s,@X_LIBS@,$X_LIBS,;t t
22409 s,@TCL_DEPS@,$TCL_DEPS,;t t
22410 s,@TK_DEPS@,$TK_DEPS,;t t
22411 s,@ITCLLIB@,$ITCLLIB,;t t
22412 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22413 s,@ITKLIB@,$ITKLIB,;t t
22414 s,@ITK_DEPS@,$ITK_DEPS,;t t
22415 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22416 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22417 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22418 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22419 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22420 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22421 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22422 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22423 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22424 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22425 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22426 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22427 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22428 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22429 s,@target_subdir@,$target_subdir,;t t
22430 s,@frags@,$frags,;t t
22431 s,@xm_h@,$xm_h,;t t
22432 s,@tm_h@,$tm_h,;t t
22433 s,@nm_h@,$nm_h,;t t
22434 s,@LIBICONV@,$LIBICONV,;t t
22435 s,@LIBOBJS@,$LIBOBJS,;t t
22436 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22437 /@host_makefile_frag@/r $host_makefile_frag
22438 s,@host_makefile_frag@,,;t t
22439 /@target_makefile_frag@/r $target_makefile_frag
22440 s,@target_makefile_frag@,,;t t
22445 cat >>$CONFIG_STATUS <<\_ACEOF
22446 # Split the substitutions into bite-sized pieces for seds with
22447 # small command number limits, like on Digital OSF/1 and HP-UX.
22448 ac_max_sed_lines=48
22449 ac_sed_frag=1 # Number of current file.
22450 ac_beg=1 # First line for current file.
22451 ac_end=$ac_max_sed_lines # Line after last line for current file.
22454 while $ac_more_lines; do
22455 if test $ac_beg -gt 1; then
22456 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22458 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22460 if test ! -s $tmp/subs.frag; then
22461 ac_more_lines=false
22463 # The purpose of the label and of the branching condition is to
22464 # speed up the sed processing (if there are no `@' at all, there
22465 # is no need to browse any of the substitutions).
22466 # These are the two extra sed commands mentioned above.
22468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22469 if test -z "$ac_sed_cmds"; then
22470 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22472 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22474 ac_sed_frag=`expr $ac_sed_frag + 1`
22476 ac_end=`expr $ac_end + $ac_max_sed_lines`
22479 if test -z "$ac_sed_cmds"; then
22482 fi # test -n "$CONFIG_FILES"
22485 cat >>$CONFIG_STATUS <<\_ACEOF
22486 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22489 - | *:- | *:-:* ) # input from stdin
22491 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22493 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22495 * ) ac_file_in=$ac_file.in ;;
22498 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22499 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22501 X"$ac_file" : 'X\(//\)[^/]' \| \
22502 X"$ac_file" : 'X\(//\)$' \| \
22503 X"$ac_file" : 'X\(/\)' \| \
22504 . : '\(.\)' 2>/dev/null ||
22506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22508 /^X\(\/\/\)$/{ s//\1/; q; }
22509 /^X\(\/\).*/{ s//\1/; q; }
22511 { if $as_mkdir_p; then
22516 while test ! -d "$as_dir"; do
22517 as_dirs="$as_dir $as_dirs"
22518 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22520 X"$as_dir" : 'X\(//\)[^/]' \| \
22521 X"$as_dir" : 'X\(//\)$' \| \
22522 X"$as_dir" : 'X\(/\)' \| \
22523 . : '\(.\)' 2>/dev/null ||
22525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22527 /^X\(\/\/\)$/{ s//\1/; q; }
22528 /^X\(\/\).*/{ s//\1/; q; }
22531 test ! -n "$as_dirs" || mkdir $as_dirs
22532 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22534 { (exit 1); exit 1; }; }; }
22538 if test "$ac_dir" != .; then
22539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22540 # A "../" for each directory in $ac_dir_suffix.
22541 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22543 ac_dir_suffix= ac_top_builddir=
22547 .) # No --srcdir option. We are building in place.
22549 if test -z "$ac_top_builddir"; then
22552 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22554 [\\/]* | ?:[\\/]* ) # Absolute path.
22555 ac_srcdir=$srcdir$ac_dir_suffix;
22556 ac_top_srcdir=$srcdir ;;
22557 *) # Relative path.
22558 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22559 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22562 # Do not use `cd foo && pwd` to compute absolute paths, because
22563 # the directories may not exist.
22565 .) ac_abs_builddir="$ac_dir";;
22568 .) ac_abs_builddir=`pwd`;;
22569 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22570 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22573 case $ac_abs_builddir in
22574 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22576 case ${ac_top_builddir}. in
22577 .) ac_abs_top_builddir=$ac_abs_builddir;;
22578 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22579 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22582 case $ac_abs_builddir in
22583 .) ac_abs_srcdir=$ac_srcdir;;
22586 .) ac_abs_srcdir=$ac_abs_builddir;;
22587 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22588 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22591 case $ac_abs_builddir in
22592 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22594 case $ac_top_srcdir in
22595 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22596 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22597 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22604 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22607 if test x"$ac_file" != x-; then
22608 { echo "$as_me:$LINENO: creating $ac_file" >&5
22609 echo "$as_me: creating $ac_file" >&6;}
22612 # Let's still pretend it is `configure' which instantiates (i.e., don't
22613 # use $as_me), people would be surprised to read:
22614 # /* config.h. Generated by config.status. */
22615 if test x"$ac_file" = x-; then
22618 configure_input="$ac_file. "
22620 configure_input=$configure_input"Generated from `echo $ac_file_in |
22621 sed 's,.*/,,'` by configure."
22623 # First look for the input files in the build tree, otherwise in the
22625 ac_file_inputs=`IFS=:
22626 for f in $ac_file_in; do
22628 -) echo $tmp/stdin ;;
22630 # Absolute (can't be DOS-style, as IFS=:)
22631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22632 echo "$as_me: error: cannot find input file: $f" >&2;}
22633 { (exit 1); exit 1; }; }
22636 if test -f "$f"; then
22639 elif test -f "$srcdir/$f"; then
22644 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22645 echo "$as_me: error: cannot find input file: $f" >&2;}
22646 { (exit 1); exit 1; }; }
22649 done` || { (exit 1); exit 1; }
22651 cat >>$CONFIG_STATUS <<_ACEOF
22655 cat >>$CONFIG_STATUS <<\_ACEOF
22657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22658 s,@configure_input@,$configure_input,;t t
22659 s,@srcdir@,$ac_srcdir,;t t
22660 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22661 s,@top_srcdir@,$ac_top_srcdir,;t t
22662 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22663 s,@builddir@,$ac_builddir,;t t
22664 s,@abs_builddir@,$ac_abs_builddir,;t t
22665 s,@top_builddir@,$ac_top_builddir,;t t
22666 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22667 s,@INSTALL@,$ac_INSTALL,;t t
22668 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22670 if test x"$ac_file" != x-; then
22671 mv $tmp/out $ac_file
22679 cat >>$CONFIG_STATUS <<\_ACEOF
22682 # CONFIG_HEADER section.
22685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22688 # ac_d sets the value in "#define NAME VALUE" lines.
22689 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22690 ac_dB='[ ].*$,\1#\2'
22693 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22694 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22695 ac_uB='$,\1#\2define\3'
22699 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22702 - | *:- | *:-:* ) # input from stdin
22704 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22706 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22708 * ) ac_file_in=$ac_file.in ;;
22711 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22712 echo "$as_me: creating $ac_file" >&6;}
22714 # First look for the input files in the build tree, otherwise in the
22716 ac_file_inputs=`IFS=:
22717 for f in $ac_file_in; do
22719 -) echo $tmp/stdin ;;
22721 # Absolute (can't be DOS-style, as IFS=:)
22722 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22723 echo "$as_me: error: cannot find input file: $f" >&2;}
22724 { (exit 1); exit 1; }; }
22725 # Do quote $f, to prevent DOS paths from being IFS'd.
22728 if test -f "$f"; then
22731 elif test -f "$srcdir/$f"; then
22736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22737 echo "$as_me: error: cannot find input file: $f" >&2;}
22738 { (exit 1); exit 1; }; }
22741 done` || { (exit 1); exit 1; }
22742 # Remove the trailing spaces.
22743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22748 # `conftest.undefs', that substitutes the proper values into
22749 # config.h.in to produce config.h. The first handles `#define'
22750 # templates, and the second `#undef' templates.
22751 # And first: Protect against being on the right side of a sed subst in
22752 # config.status. Protect against being in an unquoted here document
22753 # in config.status.
22754 rm -f conftest.defines conftest.undefs
22755 # Using a here document instead of a string reduces the quoting nightmare.
22756 # Putting comments in sed scripts is not portable.
22758 # `end' is used to avoid that the second main sed command (meant for
22759 # 0-ary CPP macros) applies to n-ary macro definitions.
22760 # See the Autoconf documentation for `clear'.
22761 cat >confdef2sed.sed <<\_ACEOF
22766 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22768 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22771 # If some macros were called several times there might be several times
22772 # the same #defines, which is useless. Nevertheless, we may not want to
22773 # sort them, since we want the *last* AC-DEFINE to be honored.
22774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22776 rm -f confdef2sed.sed
22778 # This sed command replaces #undef with comments. This is necessary, for
22779 # example, in the case of _POSIX_SOURCE, which is predefined and required
22780 # on some systems where configure will not decide to define it.
22781 cat >>conftest.undefs <<\_ACEOF
22782 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22785 # Break up conftest.defines because some shells have a limit on the size
22786 # of here documents, and old seds have small limits too (100 cmds).
22787 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22788 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22789 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22790 echo ' :' >>$CONFIG_STATUS
22791 rm -f conftest.tail
22792 while grep . conftest.defines >/dev/null
22794 # Write a limited-size here document to $tmp/defines.sed.
22795 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22796 # Speed up: don't consider the non `#define' lines.
22797 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22798 # Work around the forget-to-reset-the-flag bug.
22799 echo 't clr' >>$CONFIG_STATUS
22800 echo ': clr' >>$CONFIG_STATUS
22801 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22803 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22805 mv $tmp/out $tmp/in
22807 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22808 rm -f conftest.defines
22809 mv conftest.tail conftest.defines
22811 rm -f conftest.defines
22812 echo ' fi # grep' >>$CONFIG_STATUS
22813 echo >>$CONFIG_STATUS
22815 # Break up conftest.undefs because some shells have a limit on the size
22816 # of here documents, and old seds have small limits too (100 cmds).
22817 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22818 rm -f conftest.tail
22819 while grep . conftest.undefs >/dev/null
22821 # Write a limited-size here document to $tmp/undefs.sed.
22822 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22823 # Speed up: don't consider the non `#undef'
22824 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22825 # Work around the forget-to-reset-the-flag bug.
22826 echo 't clr' >>$CONFIG_STATUS
22827 echo ': clr' >>$CONFIG_STATUS
22828 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22830 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22832 mv $tmp/out $tmp/in
22834 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22835 rm -f conftest.undefs
22836 mv conftest.tail conftest.undefs
22838 rm -f conftest.undefs
22840 cat >>$CONFIG_STATUS <<\_ACEOF
22841 # Let's still pretend it is `configure' which instantiates (i.e., don't
22842 # use $as_me), people would be surprised to read:
22843 # /* config.h. Generated by config.status. */
22844 if test x"$ac_file" = x-; then
22845 echo "/* Generated by configure. */" >$tmp/config.h
22847 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22849 cat $tmp/in >>$tmp/config.h
22851 if test x"$ac_file" != x-; then
22852 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22854 echo "$as_me: $ac_file is unchanged" >&6;}
22856 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22858 X"$ac_file" : 'X\(//\)[^/]' \| \
22859 X"$ac_file" : 'X\(//\)$' \| \
22860 X"$ac_file" : 'X\(/\)' \| \
22861 . : '\(.\)' 2>/dev/null ||
22863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22865 /^X\(\/\/\)$/{ s//\1/; q; }
22866 /^X\(\/\).*/{ s//\1/; q; }
22868 { if $as_mkdir_p; then
22873 while test ! -d "$as_dir"; do
22874 as_dirs="$as_dir $as_dirs"
22875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22877 X"$as_dir" : 'X\(//\)[^/]' \| \
22878 X"$as_dir" : 'X\(//\)$' \| \
22879 X"$as_dir" : 'X\(/\)' \| \
22880 . : '\(.\)' 2>/dev/null ||
22882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22884 /^X\(\/\/\)$/{ s//\1/; q; }
22885 /^X\(\/\).*/{ s//\1/; q; }
22888 test ! -n "$as_dirs" || mkdir $as_dirs
22889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22891 { (exit 1); exit 1; }; }; }
22894 mv $tmp/config.h $ac_file
22898 rm -f $tmp/config.h
22902 cat >>$CONFIG_STATUS <<\_ACEOF
22905 # CONFIG_LINKS section.
22908 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22909 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22910 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22912 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22913 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22915 if test ! -r $srcdir/$ac_source; then
22916 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22917 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22918 { (exit 1); exit 1; }; }
22922 # Make relative symlinks.
22923 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22924 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22925 X"$ac_dest" : 'X\(//\)[^/]' \| \
22926 X"$ac_dest" : 'X\(//\)$' \| \
22927 X"$ac_dest" : 'X\(/\)' \| \
22928 . : '\(.\)' 2>/dev/null ||
22930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22932 /^X\(\/\/\)$/{ s//\1/; q; }
22933 /^X\(\/\).*/{ s//\1/; q; }
22935 { if $as_mkdir_p; then
22936 mkdir -p "$ac_dest_dir"
22938 as_dir="$ac_dest_dir"
22940 while test ! -d "$as_dir"; do
22941 as_dirs="$as_dir $as_dirs"
22942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944 X"$as_dir" : 'X\(//\)[^/]' \| \
22945 X"$as_dir" : 'X\(//\)$' \| \
22946 X"$as_dir" : 'X\(/\)' \| \
22947 . : '\(.\)' 2>/dev/null ||
22949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951 /^X\(\/\/\)$/{ s//\1/; q; }
22952 /^X\(\/\).*/{ s//\1/; q; }
22955 test ! -n "$as_dirs" || mkdir $as_dirs
22956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22957 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22958 { (exit 1); exit 1; }; }; }
22962 if test "$ac_dest_dir" != .; then
22963 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22964 # A "../" for each directory in $ac_dir_suffix.
22965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22967 ac_dir_suffix= ac_top_builddir=
22971 .) # No --srcdir option. We are building in place.
22973 if test -z "$ac_top_builddir"; then
22976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22978 [\\/]* | ?:[\\/]* ) # Absolute path.
22979 ac_srcdir=$srcdir$ac_dir_suffix;
22980 ac_top_srcdir=$srcdir ;;
22981 *) # Relative path.
22982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22986 # Do not use `cd foo && pwd` to compute absolute paths, because
22987 # the directories may not exist.
22989 .) ac_abs_builddir="$ac_dest_dir";;
22991 case "$ac_dest_dir" in
22992 .) ac_abs_builddir=`pwd`;;
22993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22994 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22997 case $ac_abs_builddir in
22998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23000 case ${ac_top_builddir}. in
23001 .) ac_abs_top_builddir=$ac_abs_builddir;;
23002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23006 case $ac_abs_builddir in
23007 .) ac_abs_srcdir=$ac_srcdir;;
23010 .) ac_abs_srcdir=$ac_abs_builddir;;
23011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23015 case $ac_abs_builddir in
23016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23018 case $ac_top_srcdir in
23019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23027 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23028 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23031 # Try a symlink, then a hard link, then a copy.
23032 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23033 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23034 cp -p $srcdir/$ac_source $ac_dest ||
23035 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23036 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23037 { (exit 1); exit 1; }; }
23040 cat >>$CONFIG_STATUS <<\_ACEOF
23043 # CONFIG_COMMANDS section.
23045 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23046 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23047 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23048 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23049 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23050 X"$ac_dest" : 'X\(//\)[^/]' \| \
23051 X"$ac_dest" : 'X\(//\)$' \| \
23052 X"$ac_dest" : 'X\(/\)' \| \
23053 . : '\(.\)' 2>/dev/null ||
23055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23057 /^X\(\/\/\)$/{ s//\1/; q; }
23058 /^X\(\/\).*/{ s//\1/; q; }
23060 { if $as_mkdir_p; then
23065 while test ! -d "$as_dir"; do
23066 as_dirs="$as_dir $as_dirs"
23067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23069 X"$as_dir" : 'X\(//\)[^/]' \| \
23070 X"$as_dir" : 'X\(//\)$' \| \
23071 X"$as_dir" : 'X\(/\)' \| \
23072 . : '\(.\)' 2>/dev/null ||
23074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23076 /^X\(\/\/\)$/{ s//\1/; q; }
23077 /^X\(\/\).*/{ s//\1/; q; }
23080 test ! -n "$as_dirs" || mkdir $as_dirs
23081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23083 { (exit 1); exit 1; }; }; }
23087 if test "$ac_dir" != .; then
23088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23089 # A "../" for each directory in $ac_dir_suffix.
23090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23092 ac_dir_suffix= ac_top_builddir=
23096 .) # No --srcdir option. We are building in place.
23098 if test -z "$ac_top_builddir"; then
23101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23103 [\\/]* | ?:[\\/]* ) # Absolute path.
23104 ac_srcdir=$srcdir$ac_dir_suffix;
23105 ac_top_srcdir=$srcdir ;;
23106 *) # Relative path.
23107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23111 # Do not use `cd foo && pwd` to compute absolute paths, because
23112 # the directories may not exist.
23114 .) ac_abs_builddir="$ac_dir";;
23117 .) ac_abs_builddir=`pwd`;;
23118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23122 case $ac_abs_builddir in
23123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23125 case ${ac_top_builddir}. in
23126 .) ac_abs_top_builddir=$ac_abs_builddir;;
23127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23131 case $ac_abs_builddir in
23132 .) ac_abs_srcdir=$ac_srcdir;;
23135 .) ac_abs_srcdir=$ac_abs_builddir;;
23136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23140 case $ac_abs_builddir in
23141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23143 case $ac_top_srcdir in
23144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23151 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23152 echo "$as_me: executing $ac_dest commands" >&6;}
23156 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23157 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23158 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23159 mv -f Makefile.tmp Makefile
23162 case x$CONFIG_HEADERS in
23163 xconfig.h:config.in)
23171 cat >>$CONFIG_STATUS <<\_ACEOF
23173 { (exit 0); exit 0; }
23175 chmod +x $CONFIG_STATUS
23176 ac_clean_files=$ac_clean_files_save
23179 # configure is writing to config.log, and then calls config.status.
23180 # config.status does its own redirection, appending to config.log.
23181 # Unfortunately, on DOS this fails, as config.log is still kept open
23182 # by configure, so config.status won't be able to write to it; its
23183 # output is simply discarded. So we exec the FD to /dev/null,
23184 # effectively closing config.log, so it can be properly (re)opened and
23185 # appended to by config.status. When coming back to configure, we
23186 # need to make the FD available again.
23187 if test "$no_create" != yes; then
23189 ac_config_status_args=
23190 test "$silent" = yes &&
23191 ac_config_status_args="$ac_config_status_args --quiet"
23193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23196 # would make configure fail if this is the last instruction.
23197 $ac_cs_success || { (exit 1); exit 1; }
23201 # CONFIG_SUBDIRS section.
23203 if test "$no_recursion" != yes; then
23205 # Remove --cache-file and --srcdir arguments so they do not pile up.
23206 ac_sub_configure_args=
23208 for ac_arg in $ac_configure_args; do
23209 if test -n "$ac_prev"; then
23214 -cache-file | --cache-file | --cache-fil | --cache-fi \
23215 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23216 ac_prev=cache_file ;;
23217 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23218 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23221 --config-cache | -C)
23223 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23225 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23231 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23235 # Always prepend --prefix to ensure using the same prefix
23236 # in subdir configurations.
23237 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23240 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23242 # Do not complain, so a configure script can configure whichever
23243 # parts of a large source tree are present.
23244 test -d $srcdir/$ac_dir || continue
23246 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23247 echo "$as_me: configuring in $ac_dir" >&6;}
23248 { if $as_mkdir_p; then
23253 while test ! -d "$as_dir"; do
23254 as_dirs="$as_dir $as_dirs"
23255 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23257 X"$as_dir" : 'X\(//\)[^/]' \| \
23258 X"$as_dir" : 'X\(//\)$' \| \
23259 X"$as_dir" : 'X\(/\)' \| \
23260 . : '\(.\)' 2>/dev/null ||
23262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23264 /^X\(\/\/\)$/{ s//\1/; q; }
23265 /^X\(\/\).*/{ s//\1/; q; }
23268 test ! -n "$as_dirs" || mkdir $as_dirs
23269 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23271 { (exit 1); exit 1; }; }; }
23275 if test "$ac_dir" != .; then
23276 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23277 # A "../" for each directory in $ac_dir_suffix.
23278 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23280 ac_dir_suffix= ac_top_builddir=
23284 .) # No --srcdir option. We are building in place.
23286 if test -z "$ac_top_builddir"; then
23289 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23291 [\\/]* | ?:[\\/]* ) # Absolute path.
23292 ac_srcdir=$srcdir$ac_dir_suffix;
23293 ac_top_srcdir=$srcdir ;;
23294 *) # Relative path.
23295 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23296 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23299 # Do not use `cd foo && pwd` to compute absolute paths, because
23300 # the directories may not exist.
23302 .) ac_abs_builddir="$ac_dir";;
23305 .) ac_abs_builddir=`pwd`;;
23306 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23307 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23310 case $ac_abs_builddir in
23311 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23313 case ${ac_top_builddir}. in
23314 .) ac_abs_top_builddir=$ac_abs_builddir;;
23315 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23316 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23319 case $ac_abs_builddir in
23320 .) ac_abs_srcdir=$ac_srcdir;;
23323 .) ac_abs_srcdir=$ac_abs_builddir;;
23324 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23325 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23328 case $ac_abs_builddir in
23329 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23331 case $ac_top_srcdir in
23332 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23333 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23334 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23341 # Check for guested configure; otherwise get Cygnus style configure.
23342 if test -f $ac_srcdir/configure.gnu; then
23343 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23344 elif test -f $ac_srcdir/configure; then
23345 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23346 elif test -f $ac_srcdir/configure.in; then
23347 ac_sub_configure=$ac_configure
23349 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23350 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23354 # The recursion is here.
23355 if test -n "$ac_sub_configure"; then
23356 # Make the cache file name correct relative to the subdirectory.
23357 case $cache_file in
23358 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23359 *) # Relative path.
23360 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23363 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23364 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23365 # The eval makes quoting arguments work.
23366 eval $ac_sub_configure $ac_sub_configure_args \
23367 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23368 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23369 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23370 { (exit 1); exit 1; }; }