1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
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## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
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 \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
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
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
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
122    as_myself=$0
123  fi
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; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
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
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
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 |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
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; }; }
177
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).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
275ac_subdirs_all="$ac_subdirs_all doc testsuite"
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
316ac_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 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA 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'
317ac_subst_files='host_makefile_frag target_makefile_frag'
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
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.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360  # If the previous option needs an argument, assign it.
361  if test -n "$ac_prev"; then
362    eval "$ac_prev=\$ac_option"
363    ac_prev=
364    continue
365  fi
366
367  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369  # Accept the important Cygnus configure options, so we can diagnose typos.
370
371  case $ac_option in
372
373  -bindir | --bindir | --bindi | --bind | --bin | --bi)
374    ac_prev=bindir ;;
375  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376    bindir=$ac_optarg ;;
377
378  -build | --build | --buil | --bui | --bu)
379    ac_prev=build_alias ;;
380  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381    build_alias=$ac_optarg ;;
382
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 ;;
389
390  --config-cache | -C)
391    cache_file=config.cache ;;
392
393  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394    ac_prev=datadir ;;
395  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396  | --da=*)
397    datadir=$ac_optarg ;;
398
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" ;;
407
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'`
415    case $ac_option in
416      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417      *) ac_optarg=yes ;;
418    esac
419    eval "enable_$ac_feature='$ac_optarg'" ;;
420
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 ;;
429
430  -gas | --gas | --ga | --g)
431    # Obsolete; use --with-gas.
432    with_gas=yes ;;
433
434  -help | --help | --hel | --he | -h)
435    ac_init_help=long ;;
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 ;;
440
441  -host | --host | --hos | --ho)
442    ac_prev=host_alias ;;
443  -host=* | --host=* | --hos=* | --ho=*)
444    host_alias=$ac_optarg ;;
445
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 ;;
452
453  -infodir | --infodir | --infodi | --infod | --info | --inf)
454    ac_prev=infodir ;;
455  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456    infodir=$ac_optarg ;;
457
458  -libdir | --libdir | --libdi | --libd)
459    ac_prev=libdir ;;
460  -libdir=* | --libdir=* | --libdi=* | --libd=*)
461    libdir=$ac_optarg ;;
462
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 ;;
469
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 ;;
478
479  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480    ac_prev=mandir ;;
481  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482    mandir=$ac_optarg ;;
483
484  -nfp | --nfp | --nf)
485    # Obsolete; use --without-fp.
486    with_fp=no ;;
487
488  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489  | --no-cr | --no-c | -n)
490    no_create=yes ;;
491
492  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494    no_recursion=yes ;;
495
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 ;;
504
505  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506    ac_prev=prefix ;;
507  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508    prefix=$ac_optarg ;;
509
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 ;;
516
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 ;;
523
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 ;;
540
541  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542  | -silent | --silent | --silen | --sile | --sil)
543    silent=yes ;;
544
545  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546    ac_prev=sbindir ;;
547  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548  | --sbi=* | --sb=*)
549    sbindir=$ac_optarg ;;
550
551  -sharedstatedir | --sharedstatedir | --sharedstatedi \
552  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553  | --sharedst | --shareds | --shared | --share | --shar \
554  | --sha | --sh)
555    ac_prev=sharedstatedir ;;
556  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559  | --sha=* | --sh=*)
560    sharedstatedir=$ac_optarg ;;
561
562  -site | --site | --sit)
563    ac_prev=site ;;
564  -site=* | --site=* | --sit=*)
565    site=$ac_optarg ;;
566
567  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568    ac_prev=srcdir ;;
569  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570    srcdir=$ac_optarg ;;
571
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 ;;
578
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 ;;
583
584  -v | -verbose | --verbose | --verbos | --verbo | --verb)
585    verbose=yes ;;
586
587  -version | --version | --versio | --versi | --vers | -V)
588    ac_init_version=: ;;
589
590  -with-* | --with-*)
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'`
597    case $ac_option in
598      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599      *) ac_optarg=yes ;;
600    esac
601    eval "with_$ac_package='$ac_optarg'" ;;
602
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" ;;
611
612  --x)
613    # Obsolete; use --with-x.
614    with_x=yes ;;
615
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 ;;
622
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 ;;
629
630  -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632   { (exit 1); exit 1; }; }
633    ;;
634
635  *=*)
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'"
643    export $ac_envvar ;;
644
645  *)
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}
651    ;;
652
653  esac
654done
655
656if 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; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665  eval ac_val=$`echo $ac_var`
666  case $ac_val in
667    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669   { (exit 1); exit 1; }; };;
670  esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675	      localstatedir libdir includedir oldincludedir infodir mandir
676do
677  eval ac_val=$`echo $ac_var`
678  case $ac_val in
679    [\\/$]* | ?:[\\/]* ) ;;
680    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681   { (exit 1); exit 1; }; };;
682  esac
683done
684
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.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if 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
699    cross_compiling=yes
700  fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if 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 ||
719echo X"$0" |
720    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722  	  /^X\(\/\/\)$/{ s//\1/; q; }
723  	  /^X\(\/\).*/{ s//\1/; q; }
724  	  s/.*/./; q'`
725  srcdir=$ac_confdir
726  if test ! -r $srcdir/$ac_unique_file; then
727    srcdir=..
728  fi
729else
730  ac_srcdir_defaulted=no
731fi
732if 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; }; }
736  else
737    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738   { (exit 1); exit 1; }; }
739  fi
740fi
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; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777
778#
779# Report the --help message.
780#
781if 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.
784  cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE.  See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
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 \`..']
804
805_ACEOF
806
807  cat <<_ACEOF
808Installation directories:
809  --prefix=PREFIX         install architecture-independent files in PREFIX
810			  [$ac_default_prefix]
811  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
812			  [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine 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]
834_ACEOF
835
836  cat <<\_ACEOF
837
838Program names:
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
842
843X features:
844  --x-includes=DIR    X include files are in DIR
845  --x-libraries=DIR   X library files are in DIR
846
847System types:
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]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856  cat <<\_ACEOF
857
858Optional Features:
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-gdbcli        disable command-line interface (CLI)
864  --disable-gdbmi         disable machine-interface (MI)
865  --enable-tui            enable full-screen terminal user interface (TUI)
866  --enable-gdbtk          enable gdbtk graphical user interface (GUI)
867  --enable-profiling      enable profiling of GDB
868  --disable-rpath         do not hardcode runtime library paths
869  --enable-werror    treat compile warnings as errors
870  --enable-build-warnings Enable build-time compiler warnings if gcc is used
871  --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872  --enable-sim            Link gdb with simulator
873  --enable-multi-ice      build the multi-ice-gdb-server
874
875Optional Packages:
876  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
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  --with-system-readline  use installed readline library
881  --with-expat            include expat support (auto/yes/no)
882  --with-gnu-ld           assume the C compiler uses GNU ld default=no
883  --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
884  --without-libexpat-prefix     don't search for libexpat in includedir and libdir
885  --without-included-regex don't use included regex; this is the default
886                          on systems with version 2 of the GNU C library
887                          (use with caution on other system)
888  --with-sysroot=DIR Search for usr/lib et al within DIR.
889  --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)
890  --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)
891  --with-tclinclude=DIR   Directory where tcl private headers are
892  --with-tkinclude=DIR    Directory where tk private headers are
893  --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)
894  --with-itkconfig        Directory containing itk configuration (itkConfig.sh)
895  --with-x                use the X Window System
896  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
897
898Some influential environment variables:
899  CC          C compiler command
900  CFLAGS      C compiler flags
901  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
902              nonstandard directory <lib dir>
903  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
904              headers in a nonstandard directory <include dir>
905  CPP         C preprocessor
906
907Use these variables to override the choices made by `configure' or to help
908it to find libraries and programs with nonstandard names/locations.
909
910_ACEOF
911fi
912
913if test "$ac_init_help" = "recursive"; then
914  # If there are subdirs, report their specific --help.
915  ac_popdir=`pwd`
916  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917    test -d $ac_dir || continue
918    ac_builddir=.
919
920if test "$ac_dir" != .; then
921  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922  # A "../" for each directory in $ac_dir_suffix.
923  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924else
925  ac_dir_suffix= ac_top_builddir=
926fi
927
928case $srcdir in
929  .)  # No --srcdir option.  We are building in place.
930    ac_srcdir=.
931    if test -z "$ac_top_builddir"; then
932       ac_top_srcdir=.
933    else
934       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935    fi ;;
936  [\\/]* | ?:[\\/]* )  # Absolute path.
937    ac_srcdir=$srcdir$ac_dir_suffix;
938    ac_top_srcdir=$srcdir ;;
939  *) # Relative path.
940    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941    ac_top_srcdir=$ac_top_builddir$srcdir ;;
942esac
943
944# Do not use `cd foo && pwd` to compute absolute paths, because
945# the directories may not exist.
946case `pwd` in
947.) ac_abs_builddir="$ac_dir";;
948*)
949  case "$ac_dir" in
950  .) ac_abs_builddir=`pwd`;;
951  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952  *) ac_abs_builddir=`pwd`/"$ac_dir";;
953  esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_builddir=${ac_top_builddir}.;;
957*)
958  case ${ac_top_builddir}. in
959  .) ac_abs_top_builddir=$ac_abs_builddir;;
960  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962  esac;;
963esac
964case $ac_abs_builddir in
965.) ac_abs_srcdir=$ac_srcdir;;
966*)
967  case $ac_srcdir in
968  .) ac_abs_srcdir=$ac_abs_builddir;;
969  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971  esac;;
972esac
973case $ac_abs_builddir in
974.) ac_abs_top_srcdir=$ac_top_srcdir;;
975*)
976  case $ac_top_srcdir in
977  .) ac_abs_top_srcdir=$ac_abs_builddir;;
978  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980  esac;;
981esac
982
983    cd $ac_dir
984    # Check for guested configure; otherwise get Cygnus style configure.
985    if test -f $ac_srcdir/configure.gnu; then
986      echo
987      $SHELL $ac_srcdir/configure.gnu  --help=recursive
988    elif test -f $ac_srcdir/configure; then
989      echo
990      $SHELL $ac_srcdir/configure  --help=recursive
991    elif test -f $ac_srcdir/configure.ac ||
992	   test -f $ac_srcdir/configure.in; then
993      echo
994      $ac_configure --help
995    else
996      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997    fi
998    cd $ac_popdir
999  done
1000fi
1001
1002test -n "$ac_init_help" && exit 0
1003if $ac_init_version; then
1004  cat <<\_ACEOF
1005
1006Copyright (C) 2003 Free Software Foundation, Inc.
1007This configure script is free software; the Free Software Foundation
1008gives unlimited permission to copy, distribute and modify it.
1009_ACEOF
1010  exit 0
1011fi
1012exec 5>config.log
1013cat >&5 <<_ACEOF
1014This file contains any messages produced by compilers while
1015running configure, to aid debugging if configure makes a mistake.
1016
1017It was created by $as_me, which was
1018generated by GNU Autoconf 2.59.  Invocation command line was
1019
1020  $ $0 $@
1021
1022_ACEOF
1023{
1024cat <<_ASUNAME
1025## --------- ##
1026## Platform. ##
1027## --------- ##
1028
1029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034
1035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1037
1038/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1039/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1042/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1043/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1044/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1045
1046_ASUNAME
1047
1048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049for as_dir in $PATH
1050do
1051  IFS=$as_save_IFS
1052  test -z "$as_dir" && as_dir=.
1053  echo "PATH: $as_dir"
1054done
1055
1056} >&5
1057
1058cat >&5 <<_ACEOF
1059
1060
1061## ----------- ##
1062## Core tests. ##
1063## ----------- ##
1064
1065_ACEOF
1066
1067
1068# Keep a trace of the command line.
1069# Strip out --no-create and --no-recursion so they do not pile up.
1070# Strip out --silent because we don't want to record it for future runs.
1071# Also quote any args containing shell meta-characters.
1072# Make two passes to allow for proper duplicate-argument suppression.
1073ac_configure_args=
1074ac_configure_args0=
1075ac_configure_args1=
1076ac_sep=
1077ac_must_keep_next=false
1078for ac_pass in 1 2
1079do
1080  for ac_arg
1081  do
1082    case $ac_arg in
1083    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085    | -silent | --silent | --silen | --sile | --sil)
1086      continue ;;
1087    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089    esac
1090    case $ac_pass in
1091    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092    2)
1093      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094      if test $ac_must_keep_next = true; then
1095	ac_must_keep_next=false # Got value, back to normal.
1096      else
1097	case $ac_arg in
1098	  *=* | --config-cache | -C | -disable-* | --disable-* \
1099	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101	  | -with-* | --with-* | -without-* | --without-* | --x)
1102	    case "$ac_configure_args0 " in
1103	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104	    esac
1105	    ;;
1106	  -* ) ac_must_keep_next=true ;;
1107	esac
1108      fi
1109      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110      # Get rid of the leading space.
1111      ac_sep=" "
1112      ;;
1113    esac
1114  done
1115done
1116$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118
1119# When interrupted or exit'd, cleanup temporary files, and complete
1120# config.log.  We remove comments because anyway the quotes in there
1121# would cause problems or look ugly.
1122# WARNING: Be sure not to use single quotes in there, as some shells,
1123# such as our DU 5.0 friend, will then `close' the trap.
1124trap 'exit_status=$?
1125  # Save into config.log some information that might help in debugging.
1126  {
1127    echo
1128
1129    cat <<\_ASBOX
1130## ---------------- ##
1131## Cache variables. ##
1132## ---------------- ##
1133_ASBOX
1134    echo
1135    # The following way of writing the cache mishandles newlines in values,
1136{
1137  (set) 2>&1 |
1138    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139    *ac_space=\ *)
1140      sed -n \
1141	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143      ;;
1144    *)
1145      sed -n \
1146	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1147      ;;
1148    esac;
1149}
1150    echo
1151
1152    cat <<\_ASBOX
1153## ----------------- ##
1154## Output variables. ##
1155## ----------------- ##
1156_ASBOX
1157    echo
1158    for ac_var in $ac_subst_vars
1159    do
1160      eval ac_val=$`echo $ac_var`
1161      echo "$ac_var='"'"'$ac_val'"'"'"
1162    done | sort
1163    echo
1164
1165    if test -n "$ac_subst_files"; then
1166      cat <<\_ASBOX
1167## ------------- ##
1168## Output files. ##
1169## ------------- ##
1170_ASBOX
1171      echo
1172      for ac_var in $ac_subst_files
1173      do
1174	eval ac_val=$`echo $ac_var`
1175	echo "$ac_var='"'"'$ac_val'"'"'"
1176      done | sort
1177      echo
1178    fi
1179
1180    if test -s confdefs.h; then
1181      cat <<\_ASBOX
1182## ----------- ##
1183## confdefs.h. ##
1184## ----------- ##
1185_ASBOX
1186      echo
1187      sed "/^$/d" confdefs.h | sort
1188      echo
1189    fi
1190    test "$ac_signal" != 0 &&
1191      echo "$as_me: caught signal $ac_signal"
1192    echo "$as_me: exit $exit_status"
1193  } >&5
1194  rm -f core *.core &&
1195  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196    exit $exit_status
1197     ' 0
1198for ac_signal in 1 2 13 15; do
1199  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200done
1201ac_signal=0
1202
1203# confdefs.h avoids OS command line length limits that DEFS can exceed.
1204rm -rf conftest* confdefs.h
1205# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206echo >confdefs.h
1207
1208# Predefined preprocessor variables.
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_NAME "$PACKAGE_NAME"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_VERSION "$PACKAGE_VERSION"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_STRING "$PACKAGE_STRING"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232_ACEOF
1233
1234
1235# Let the site file select an alternate cache file if it wants to.
1236# Prefer explicitly selected file to automatically selected ones.
1237if test -z "$CONFIG_SITE"; then
1238  if test "x$prefix" != xNONE; then
1239    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240  else
1241    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242  fi
1243fi
1244for ac_site_file in $CONFIG_SITE; do
1245  if test -r "$ac_site_file"; then
1246    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247echo "$as_me: loading site script $ac_site_file" >&6;}
1248    sed 's/^/| /' "$ac_site_file" >&5
1249    . "$ac_site_file"
1250  fi
1251done
1252
1253if test -r "$cache_file"; then
1254  # Some versions of bash will fail to source /dev/null (special
1255  # files actually), so we avoid doing that.
1256  if test -f "$cache_file"; then
1257    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258echo "$as_me: loading cache $cache_file" >&6;}
1259    case $cache_file in
1260      [\\/]* | ?:[\\/]* ) . $cache_file;;
1261      *)                      . ./$cache_file;;
1262    esac
1263  fi
1264else
1265  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266echo "$as_me: creating cache $cache_file" >&6;}
1267  >$cache_file
1268fi
1269
1270# Check that the precious variables saved in the cache have kept the same
1271# value.
1272ac_cache_corrupted=false
1273for ac_var in `(set) 2>&1 |
1274	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276  eval ac_new_set=\$ac_env_${ac_var}_set
1277  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278  eval ac_new_val="\$ac_env_${ac_var}_value"
1279  case $ac_old_set,$ac_new_set in
1280    set,)
1281      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283      ac_cache_corrupted=: ;;
1284    ,set)
1285      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287      ac_cache_corrupted=: ;;
1288    ,);;
1289    *)
1290      if test "x$ac_old_val" != "x$ac_new_val"; then
1291	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1294echo "$as_me:   former value:  $ac_old_val" >&2;}
1295	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1296echo "$as_me:   current value: $ac_new_val" >&2;}
1297	ac_cache_corrupted=:
1298      fi;;
1299  esac
1300  # Pass precious variables to config.status.
1301  if test "$ac_new_set" = set; then
1302    case $ac_new_val in
1303    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305    *) ac_arg=$ac_var=$ac_new_val ;;
1306    esac
1307    case " $ac_configure_args " in
1308      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1309      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310    esac
1311  fi
1312done
1313if $ac_cache_corrupted; then
1314  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318   { (exit 1); exit 1; }; }
1319fi
1320
1321ac_ext=c
1322ac_cpp='$CPP $CPPFLAGS'
1323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345          ac_config_headers="$ac_config_headers config.h:config.in"
1346
1347echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1348echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1349    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1350if test "${enable_maintainer_mode+set}" = set; then
1351  enableval="$enable_maintainer_mode"
1352  USE_MAINTAINER_MODE=$enableval
1353else
1354  USE_MAINTAINER_MODE=no
1355fi;
1356  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1357echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1358
1359
1360if test $USE_MAINTAINER_MODE = yes; then
1361  MAINTAINER_MODE_TRUE=
1362  MAINTAINER_MODE_FALSE='#'
1363else
1364  MAINTAINER_MODE_TRUE='#'
1365  MAINTAINER_MODE_FALSE=
1366fi
1367
1368  MAINT=$MAINTAINER_MODE_TRUE
1369
1370
1371
1372ac_ext=c
1373ac_cpp='$CPP $CPPFLAGS'
1374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377if test -n "$ac_tool_prefix"; then
1378  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1379set dummy ${ac_tool_prefix}gcc; ac_word=$2
1380echo "$as_me:$LINENO: checking for $ac_word" >&5
1381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382if test "${ac_cv_prog_CC+set}" = set; then
1383  echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385  if test -n "$CC"; then
1386  ac_cv_prog_CC="$CC" # Let the user override the test.
1387else
1388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389for as_dir in $PATH
1390do
1391  IFS=$as_save_IFS
1392  test -z "$as_dir" && as_dir=.
1393  for ac_exec_ext in '' $ac_executable_extensions; do
1394  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397    break 2
1398  fi
1399done
1400done
1401
1402fi
1403fi
1404CC=$ac_cv_prog_CC
1405if test -n "$CC"; then
1406  echo "$as_me:$LINENO: result: $CC" >&5
1407echo "${ECHO_T}$CC" >&6
1408else
1409  echo "$as_me:$LINENO: result: no" >&5
1410echo "${ECHO_T}no" >&6
1411fi
1412
1413fi
1414if test -z "$ac_cv_prog_CC"; then
1415  ac_ct_CC=$CC
1416  # Extract the first word of "gcc", so it can be a program name with args.
1417set dummy gcc; ac_word=$2
1418echo "$as_me:$LINENO: checking for $ac_word" >&5
1419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421  echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
1423  if test -n "$ac_ct_CC"; then
1424  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425else
1426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427for as_dir in $PATH
1428do
1429  IFS=$as_save_IFS
1430  test -z "$as_dir" && as_dir=.
1431  for ac_exec_ext in '' $ac_executable_extensions; do
1432  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433    ac_cv_prog_ac_ct_CC="gcc"
1434    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435    break 2
1436  fi
1437done
1438done
1439
1440fi
1441fi
1442ac_ct_CC=$ac_cv_prog_ac_ct_CC
1443if test -n "$ac_ct_CC"; then
1444  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1445echo "${ECHO_T}$ac_ct_CC" >&6
1446else
1447  echo "$as_me:$LINENO: result: no" >&5
1448echo "${ECHO_T}no" >&6
1449fi
1450
1451  CC=$ac_ct_CC
1452else
1453  CC="$ac_cv_prog_CC"
1454fi
1455
1456if test -z "$CC"; then
1457  if test -n "$ac_tool_prefix"; then
1458  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1459set dummy ${ac_tool_prefix}cc; ac_word=$2
1460echo "$as_me:$LINENO: checking for $ac_word" >&5
1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462if test "${ac_cv_prog_CC+set}" = set; then
1463  echo $ECHO_N "(cached) $ECHO_C" >&6
1464else
1465  if test -n "$CC"; then
1466  ac_cv_prog_CC="$CC" # Let the user override the test.
1467else
1468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469for as_dir in $PATH
1470do
1471  IFS=$as_save_IFS
1472  test -z "$as_dir" && as_dir=.
1473  for ac_exec_ext in '' $ac_executable_extensions; do
1474  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475    ac_cv_prog_CC="${ac_tool_prefix}cc"
1476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477    break 2
1478  fi
1479done
1480done
1481
1482fi
1483fi
1484CC=$ac_cv_prog_CC
1485if test -n "$CC"; then
1486  echo "$as_me:$LINENO: result: $CC" >&5
1487echo "${ECHO_T}$CC" >&6
1488else
1489  echo "$as_me:$LINENO: result: no" >&5
1490echo "${ECHO_T}no" >&6
1491fi
1492
1493fi
1494if test -z "$ac_cv_prog_CC"; then
1495  ac_ct_CC=$CC
1496  # Extract the first word of "cc", so it can be a program name with args.
1497set dummy cc; ac_word=$2
1498echo "$as_me:$LINENO: checking for $ac_word" >&5
1499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1501  echo $ECHO_N "(cached) $ECHO_C" >&6
1502else
1503  if test -n "$ac_ct_CC"; then
1504  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1505else
1506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507for as_dir in $PATH
1508do
1509  IFS=$as_save_IFS
1510  test -z "$as_dir" && as_dir=.
1511  for ac_exec_ext in '' $ac_executable_extensions; do
1512  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513    ac_cv_prog_ac_ct_CC="cc"
1514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515    break 2
1516  fi
1517done
1518done
1519
1520fi
1521fi
1522ac_ct_CC=$ac_cv_prog_ac_ct_CC
1523if test -n "$ac_ct_CC"; then
1524  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1525echo "${ECHO_T}$ac_ct_CC" >&6
1526else
1527  echo "$as_me:$LINENO: result: no" >&5
1528echo "${ECHO_T}no" >&6
1529fi
1530
1531  CC=$ac_ct_CC
1532else
1533  CC="$ac_cv_prog_CC"
1534fi
1535
1536fi
1537if test -z "$CC"; then
1538  # Extract the first word of "cc", so it can be a program name with args.
1539set dummy cc; ac_word=$2
1540echo "$as_me:$LINENO: checking for $ac_word" >&5
1541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542if test "${ac_cv_prog_CC+set}" = set; then
1543  echo $ECHO_N "(cached) $ECHO_C" >&6
1544else
1545  if test -n "$CC"; then
1546  ac_cv_prog_CC="$CC" # Let the user override the test.
1547else
1548  ac_prog_rejected=no
1549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550for as_dir in $PATH
1551do
1552  IFS=$as_save_IFS
1553  test -z "$as_dir" && as_dir=.
1554  for ac_exec_ext in '' $ac_executable_extensions; do
1555  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1557       ac_prog_rejected=yes
1558       continue
1559     fi
1560    ac_cv_prog_CC="cc"
1561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562    break 2
1563  fi
1564done
1565done
1566
1567if test $ac_prog_rejected = yes; then
1568  # We found a bogon in the path, so make sure we never use it.
1569  set dummy $ac_cv_prog_CC
1570  shift
1571  if test $# != 0; then
1572    # We chose a different compiler from the bogus one.
1573    # However, it has the same basename, so the bogon will be chosen
1574    # first if we set CC to just the basename; use the full file name.
1575    shift
1576    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1577  fi
1578fi
1579fi
1580fi
1581CC=$ac_cv_prog_CC
1582if test -n "$CC"; then
1583  echo "$as_me:$LINENO: result: $CC" >&5
1584echo "${ECHO_T}$CC" >&6
1585else
1586  echo "$as_me:$LINENO: result: no" >&5
1587echo "${ECHO_T}no" >&6
1588fi
1589
1590fi
1591if test -z "$CC"; then
1592  if test -n "$ac_tool_prefix"; then
1593  for ac_prog in cl
1594  do
1595    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_CC+set}" = set; then
1600  echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602  if test -n "$CC"; then
1603  ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608  IFS=$as_save_IFS
1609  test -z "$as_dir" && as_dir=.
1610  for ac_exec_ext in '' $ac_executable_extensions; do
1611  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614    break 2
1615  fi
1616done
1617done
1618
1619fi
1620fi
1621CC=$ac_cv_prog_CC
1622if test -n "$CC"; then
1623  echo "$as_me:$LINENO: result: $CC" >&5
1624echo "${ECHO_T}$CC" >&6
1625else
1626  echo "$as_me:$LINENO: result: no" >&5
1627echo "${ECHO_T}no" >&6
1628fi
1629
1630    test -n "$CC" && break
1631  done
1632fi
1633if test -z "$CC"; then
1634  ac_ct_CC=$CC
1635  for ac_prog in cl
1636do
1637  # Extract the first word of "$ac_prog", so it can be a program name with args.
1638set dummy $ac_prog; ac_word=$2
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642  echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644  if test -n "$ac_ct_CC"; then
1645  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650  IFS=$as_save_IFS
1651  test -z "$as_dir" && as_dir=.
1652  for ac_exec_ext in '' $ac_executable_extensions; do
1653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654    ac_cv_prog_ac_ct_CC="$ac_prog"
1655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656    break 2
1657  fi
1658done
1659done
1660
1661fi
1662fi
1663ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664if test -n "$ac_ct_CC"; then
1665  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666echo "${ECHO_T}$ac_ct_CC" >&6
1667else
1668  echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670fi
1671
1672  test -n "$ac_ct_CC" && break
1673done
1674
1675  CC=$ac_ct_CC
1676fi
1677
1678fi
1679
1680
1681test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1682See \`config.log' for more details." >&5
1683echo "$as_me: error: no acceptable C compiler found in \$PATH
1684See \`config.log' for more details." >&2;}
1685   { (exit 1); exit 1; }; }
1686
1687# Provide some information about the compiler.
1688echo "$as_me:$LINENO:" \
1689     "checking for C compiler version" >&5
1690ac_compiler=`set X $ac_compile; echo $2`
1691{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1692  (eval $ac_compiler --version </dev/null >&5) 2>&5
1693  ac_status=$?
1694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695  (exit $ac_status); }
1696{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1697  (eval $ac_compiler -v </dev/null >&5) 2>&5
1698  ac_status=$?
1699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700  (exit $ac_status); }
1701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1702  (eval $ac_compiler -V </dev/null >&5) 2>&5
1703  ac_status=$?
1704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705  (exit $ac_status); }
1706
1707cat >conftest.$ac_ext <<_ACEOF
1708/* confdefs.h.  */
1709_ACEOF
1710cat confdefs.h >>conftest.$ac_ext
1711cat >>conftest.$ac_ext <<_ACEOF
1712/* end confdefs.h.  */
1713
1714int
1715main ()
1716{
1717
1718  ;
1719  return 0;
1720}
1721_ACEOF
1722ac_clean_files_save=$ac_clean_files
1723ac_clean_files="$ac_clean_files a.out a.exe b.out"
1724# Try to create an executable without -o first, disregard a.out.
1725# It will help us diagnose broken compilers, and finding out an intuition
1726# of exeext.
1727echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1728echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1729ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1730if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1731  (eval $ac_link_default) 2>&5
1732  ac_status=$?
1733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734  (exit $ac_status); }; then
1735  # Find the output, starting from the most likely.  This scheme is
1736# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1737# resort.
1738
1739# Be careful to initialize this variable, since it used to be cached.
1740# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1741ac_cv_exeext=
1742# b.out is created by i960 compilers.
1743for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1744do
1745  test -f "$ac_file" || continue
1746  case $ac_file in
1747    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1748	;;
1749    conftest.$ac_ext )
1750	# This is the source file.
1751	;;
1752    [ab].out )
1753	# We found the default executable, but exeext='' is most
1754	# certainly right.
1755	break;;
1756    *.* )
1757	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758	# FIXME: I believe we export ac_cv_exeext for Libtool,
1759	# but it would be cool to find out if it's true.  Does anybody
1760	# maintain Libtool? --akim.
1761	export ac_cv_exeext
1762	break;;
1763    * )
1764	break;;
1765  esac
1766done
1767else
1768  echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1772See \`config.log' for more details." >&5
1773echo "$as_me: error: C compiler cannot create executables
1774See \`config.log' for more details." >&2;}
1775   { (exit 77); exit 77; }; }
1776fi
1777
1778ac_exeext=$ac_cv_exeext
1779echo "$as_me:$LINENO: result: $ac_file" >&5
1780echo "${ECHO_T}$ac_file" >&6
1781
1782# Check the compiler produces executables we can run.  If not, either
1783# the compiler is broken, or we cross compile.
1784echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1785echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1786# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1787# If not cross compiling, check that we can run a simple program.
1788if test "$cross_compiling" != yes; then
1789  if { ac_try='./$ac_file'
1790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791  (eval $ac_try) 2>&5
1792  ac_status=$?
1793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794  (exit $ac_status); }; }; then
1795    cross_compiling=no
1796  else
1797    if test "$cross_compiling" = maybe; then
1798	cross_compiling=yes
1799    else
1800	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1801If you meant to cross compile, use \`--host'.
1802See \`config.log' for more details." >&5
1803echo "$as_me: error: cannot run C compiled programs.
1804If you meant to cross compile, use \`--host'.
1805See \`config.log' for more details." >&2;}
1806   { (exit 1); exit 1; }; }
1807    fi
1808  fi
1809fi
1810echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
1812
1813rm -f a.out a.exe conftest$ac_cv_exeext b.out
1814ac_clean_files=$ac_clean_files_save
1815# Check the compiler produces executables we can run.  If not, either
1816# the compiler is broken, or we cross compile.
1817echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1818echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1819echo "$as_me:$LINENO: result: $cross_compiling" >&5
1820echo "${ECHO_T}$cross_compiling" >&6
1821
1822echo "$as_me:$LINENO: checking for suffix of executables" >&5
1823echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1825  (eval $ac_link) 2>&5
1826  ac_status=$?
1827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828  (exit $ac_status); }; then
1829  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1830# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1831# work properly (i.e., refer to `conftest.exe'), while it won't with
1832# `rm'.
1833for ac_file in conftest.exe conftest conftest.*; do
1834  test -f "$ac_file" || continue
1835  case $ac_file in
1836    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1837    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838	  export ac_cv_exeext
1839	  break;;
1840    * ) break;;
1841  esac
1842done
1843else
1844  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1845See \`config.log' for more details." >&5
1846echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1847See \`config.log' for more details." >&2;}
1848   { (exit 1); exit 1; }; }
1849fi
1850
1851rm -f conftest$ac_cv_exeext
1852echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1853echo "${ECHO_T}$ac_cv_exeext" >&6
1854
1855rm -f conftest.$ac_ext
1856EXEEXT=$ac_cv_exeext
1857ac_exeext=$EXEEXT
1858echo "$as_me:$LINENO: checking for suffix of object files" >&5
1859echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1860if test "${ac_cv_objext+set}" = set; then
1861  echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
1863  cat >conftest.$ac_ext <<_ACEOF
1864/* confdefs.h.  */
1865_ACEOF
1866cat confdefs.h >>conftest.$ac_ext
1867cat >>conftest.$ac_ext <<_ACEOF
1868/* end confdefs.h.  */
1869
1870int
1871main ()
1872{
1873
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878rm -f conftest.o conftest.obj
1879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880  (eval $ac_compile) 2>&5
1881  ac_status=$?
1882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883  (exit $ac_status); }; then
1884  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1885  case $ac_file in
1886    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1887    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1888       break;;
1889  esac
1890done
1891else
1892  echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1896See \`config.log' for more details." >&5
1897echo "$as_me: error: cannot compute suffix of object files: cannot compile
1898See \`config.log' for more details." >&2;}
1899   { (exit 1); exit 1; }; }
1900fi
1901
1902rm -f conftest.$ac_cv_objext conftest.$ac_ext
1903fi
1904echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1905echo "${ECHO_T}$ac_cv_objext" >&6
1906OBJEXT=$ac_cv_objext
1907ac_objext=$OBJEXT
1908echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1909echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1910if test "${ac_cv_c_compiler_gnu+set}" = set; then
1911  echo $ECHO_N "(cached) $ECHO_C" >&6
1912else
1913  cat >conftest.$ac_ext <<_ACEOF
1914/* confdefs.h.  */
1915_ACEOF
1916cat confdefs.h >>conftest.$ac_ext
1917cat >>conftest.$ac_ext <<_ACEOF
1918/* end confdefs.h.  */
1919
1920int
1921main ()
1922{
1923#ifndef __GNUC__
1924       choke me
1925#endif
1926
1927  ;
1928  return 0;
1929}
1930_ACEOF
1931rm -f conftest.$ac_objext
1932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933  (eval $ac_compile) 2>conftest.er1
1934  ac_status=$?
1935  grep -v '^ *+' conftest.er1 >conftest.err
1936  rm -f conftest.er1
1937  cat conftest.err >&5
1938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939  (exit $ac_status); } &&
1940	 { ac_try='test -z "$ac_c_werror_flag"
1941			 || test ! -s conftest.err'
1942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943  (eval $ac_try) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }; } &&
1947	 { ac_try='test -s conftest.$ac_objext'
1948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949  (eval $ac_try) 2>&5
1950  ac_status=$?
1951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952  (exit $ac_status); }; }; then
1953  ac_compiler_gnu=yes
1954else
1955  echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958ac_compiler_gnu=no
1959fi
1960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1961ac_cv_c_compiler_gnu=$ac_compiler_gnu
1962
1963fi
1964echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1965echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1966GCC=`test $ac_compiler_gnu = yes && echo yes`
1967ac_test_CFLAGS=${CFLAGS+set}
1968ac_save_CFLAGS=$CFLAGS
1969CFLAGS="-g"
1970echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1971echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1972if test "${ac_cv_prog_cc_g+set}" = set; then
1973  echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975  cat >conftest.$ac_ext <<_ACEOF
1976/* confdefs.h.  */
1977_ACEOF
1978cat confdefs.h >>conftest.$ac_ext
1979cat >>conftest.$ac_ext <<_ACEOF
1980/* end confdefs.h.  */
1981
1982int
1983main ()
1984{
1985
1986  ;
1987  return 0;
1988}
1989_ACEOF
1990rm -f conftest.$ac_objext
1991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992  (eval $ac_compile) 2>conftest.er1
1993  ac_status=$?
1994  grep -v '^ *+' conftest.er1 >conftest.err
1995  rm -f conftest.er1
1996  cat conftest.err >&5
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); } &&
1999	 { ac_try='test -z "$ac_c_werror_flag"
2000			 || test ! -s conftest.err'
2001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002  (eval $ac_try) 2>&5
2003  ac_status=$?
2004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005  (exit $ac_status); }; } &&
2006	 { ac_try='test -s conftest.$ac_objext'
2007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008  (eval $ac_try) 2>&5
2009  ac_status=$?
2010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011  (exit $ac_status); }; }; then
2012  ac_cv_prog_cc_g=yes
2013else
2014  echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017ac_cv_prog_cc_g=no
2018fi
2019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020fi
2021echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2022echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2023if test "$ac_test_CFLAGS" = set; then
2024  CFLAGS=$ac_save_CFLAGS
2025elif test $ac_cv_prog_cc_g = yes; then
2026  if test "$GCC" = yes; then
2027    CFLAGS="-g -O2"
2028  else
2029    CFLAGS="-g"
2030  fi
2031else
2032  if test "$GCC" = yes; then
2033    CFLAGS="-O2"
2034  else
2035    CFLAGS=
2036  fi
2037fi
2038echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2039echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2040if test "${ac_cv_prog_cc_stdc+set}" = set; then
2041  echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043  ac_cv_prog_cc_stdc=no
2044ac_save_CC=$CC
2045cat >conftest.$ac_ext <<_ACEOF
2046/* confdefs.h.  */
2047_ACEOF
2048cat confdefs.h >>conftest.$ac_ext
2049cat >>conftest.$ac_ext <<_ACEOF
2050/* end confdefs.h.  */
2051#include <stdarg.h>
2052#include <stdio.h>
2053#include <sys/types.h>
2054#include <sys/stat.h>
2055/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2056struct buf { int x; };
2057FILE * (*rcsopen) (struct buf *, struct stat *, int);
2058static char *e (p, i)
2059     char **p;
2060     int i;
2061{
2062  return p[i];
2063}
2064static char *f (char * (*g) (char **, int), char **p, ...)
2065{
2066  char *s;
2067  va_list v;
2068  va_start (v,p);
2069  s = g (p, va_arg (v,int));
2070  va_end (v);
2071  return s;
2072}
2073
2074/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2075   function prototypes and stuff, but not '\xHH' hex character constants.
2076   These don't provoke an error unfortunately, instead are silently treated
2077   as 'x'.  The following induces an error, until -std1 is added to get
2078   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2079   array size at least.  It's necessary to write '\x00'==0 to get something
2080   that's true only with -std1.  */
2081int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2082
2083int test (int i, double x);
2084struct s1 {int (*f) (int a);};
2085struct s2 {int (*f) (double a);};
2086int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2087int argc;
2088char **argv;
2089int
2090main ()
2091{
2092return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2093  ;
2094  return 0;
2095}
2096_ACEOF
2097# Don't try gcc -ansi; that turns off useful extensions and
2098# breaks some systems' header files.
2099# AIX			-qlanglvl=ansi
2100# Ultrix and OSF/1	-std1
2101# HP-UX 10.20 and later	-Ae
2102# HP-UX older versions	-Aa -D_HPUX_SOURCE
2103# SVR4			-Xc -D__EXTENSIONS__
2104for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2105do
2106  CC="$ac_save_CC $ac_arg"
2107  rm -f conftest.$ac_objext
2108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109  (eval $ac_compile) 2>conftest.er1
2110  ac_status=$?
2111  grep -v '^ *+' conftest.er1 >conftest.err
2112  rm -f conftest.er1
2113  cat conftest.err >&5
2114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115  (exit $ac_status); } &&
2116	 { ac_try='test -z "$ac_c_werror_flag"
2117			 || test ! -s conftest.err'
2118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119  (eval $ac_try) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }; } &&
2123	 { ac_try='test -s conftest.$ac_objext'
2124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125  (eval $ac_try) 2>&5
2126  ac_status=$?
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); }; }; then
2129  ac_cv_prog_cc_stdc=$ac_arg
2130break
2131else
2132  echo "$as_me: failed program was:" >&5
2133sed 's/^/| /' conftest.$ac_ext >&5
2134
2135fi
2136rm -f conftest.err conftest.$ac_objext
2137done
2138rm -f conftest.$ac_ext conftest.$ac_objext
2139CC=$ac_save_CC
2140
2141fi
2142
2143case "x$ac_cv_prog_cc_stdc" in
2144  x|xno)
2145    echo "$as_me:$LINENO: result: none needed" >&5
2146echo "${ECHO_T}none needed" >&6 ;;
2147  *)
2148    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2149echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2150    CC="$CC $ac_cv_prog_cc_stdc" ;;
2151esac
2152
2153# Some people use a C++ compiler to compile C.  Since we use `exit',
2154# in C++ we need to declare it.  In case someone uses the same compiler
2155# for both compiling C and C++ we need to have the C++ compiler decide
2156# the declaration of exit, since it's the most demanding environment.
2157cat >conftest.$ac_ext <<_ACEOF
2158#ifndef __cplusplus
2159  choke me
2160#endif
2161_ACEOF
2162rm -f conftest.$ac_objext
2163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164  (eval $ac_compile) 2>conftest.er1
2165  ac_status=$?
2166  grep -v '^ *+' conftest.er1 >conftest.err
2167  rm -f conftest.er1
2168  cat conftest.err >&5
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); } &&
2171	 { ac_try='test -z "$ac_c_werror_flag"
2172			 || test ! -s conftest.err'
2173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174  (eval $ac_try) 2>&5
2175  ac_status=$?
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); }; } &&
2178	 { ac_try='test -s conftest.$ac_objext'
2179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180  (eval $ac_try) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }; }; then
2184  for ac_declaration in \
2185   '' \
2186   'extern "C" void std::exit (int) throw (); using std::exit;' \
2187   'extern "C" void std::exit (int); using std::exit;' \
2188   'extern "C" void exit (int) throw ();' \
2189   'extern "C" void exit (int);' \
2190   'void exit (int);'
2191do
2192  cat >conftest.$ac_ext <<_ACEOF
2193/* confdefs.h.  */
2194_ACEOF
2195cat confdefs.h >>conftest.$ac_ext
2196cat >>conftest.$ac_ext <<_ACEOF
2197/* end confdefs.h.  */
2198$ac_declaration
2199#include <stdlib.h>
2200int
2201main ()
2202{
2203exit (42);
2204  ;
2205  return 0;
2206}
2207_ACEOF
2208rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210  (eval $ac_compile) 2>conftest.er1
2211  ac_status=$?
2212  grep -v '^ *+' conftest.er1 >conftest.err
2213  rm -f conftest.er1
2214  cat conftest.err >&5
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); } &&
2217	 { ac_try='test -z "$ac_c_werror_flag"
2218			 || test ! -s conftest.err'
2219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220  (eval $ac_try) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }; } &&
2224	 { ac_try='test -s conftest.$ac_objext'
2225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226  (eval $ac_try) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; }; then
2230  :
2231else
2232  echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235continue
2236fi
2237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238  cat >conftest.$ac_ext <<_ACEOF
2239/* confdefs.h.  */
2240_ACEOF
2241cat confdefs.h >>conftest.$ac_ext
2242cat >>conftest.$ac_ext <<_ACEOF
2243/* end confdefs.h.  */
2244$ac_declaration
2245int
2246main ()
2247{
2248exit (42);
2249  ;
2250  return 0;
2251}
2252_ACEOF
2253rm -f conftest.$ac_objext
2254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255  (eval $ac_compile) 2>conftest.er1
2256  ac_status=$?
2257  grep -v '^ *+' conftest.er1 >conftest.err
2258  rm -f conftest.er1
2259  cat conftest.err >&5
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); } &&
2262	 { ac_try='test -z "$ac_c_werror_flag"
2263			 || test ! -s conftest.err'
2264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265  (eval $ac_try) 2>&5
2266  ac_status=$?
2267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268  (exit $ac_status); }; } &&
2269	 { ac_try='test -s conftest.$ac_objext'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; }; then
2275  break
2276else
2277  echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280fi
2281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282done
2283rm -f conftest*
2284if test -n "$ac_declaration"; then
2285  echo '#ifdef __cplusplus' >>confdefs.h
2286  echo $ac_declaration      >>confdefs.h
2287  echo '#endif'             >>confdefs.h
2288fi
2289
2290else
2291  echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294fi
2295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296ac_ext=c
2297ac_cpp='$CPP $CPPFLAGS'
2298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303cat >>confdefs.h <<\_ACEOF
2304#define _GNU_SOURCE 1
2305_ACEOF
2306
2307
2308
2309ac_ext=c
2310ac_cpp='$CPP $CPPFLAGS'
2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2315echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2316# On Suns, sometimes $CPP names a directory.
2317if test -n "$CPP" && test -d "$CPP"; then
2318  CPP=
2319fi
2320if test -z "$CPP"; then
2321  if test "${ac_cv_prog_CPP+set}" = set; then
2322  echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324      # Double quotes because CPP needs to be expanded
2325    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2326    do
2327      ac_preproc_ok=false
2328for ac_c_preproc_warn_flag in '' yes
2329do
2330  # Use a header file that comes with gcc, so configuring glibc
2331  # with a fresh cross-compiler works.
2332  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2333  # <limits.h> exists even on freestanding compilers.
2334  # On the NeXT, cc -E runs the code through the compiler's parser,
2335  # not just through cpp. "Syntax error" is here to catch this case.
2336  cat >conftest.$ac_ext <<_ACEOF
2337/* confdefs.h.  */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h.  */
2342#ifdef __STDC__
2343# include <limits.h>
2344#else
2345# include <assert.h>
2346#endif
2347		     Syntax error
2348_ACEOF
2349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351  ac_status=$?
2352  grep -v '^ *+' conftest.er1 >conftest.err
2353  rm -f conftest.er1
2354  cat conftest.err >&5
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); } >/dev/null; then
2357  if test -s conftest.err; then
2358    ac_cpp_err=$ac_c_preproc_warn_flag
2359    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2360  else
2361    ac_cpp_err=
2362  fi
2363else
2364  ac_cpp_err=yes
2365fi
2366if test -z "$ac_cpp_err"; then
2367  :
2368else
2369  echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372  # Broken: fails on valid input.
2373continue
2374fi
2375rm -f conftest.err conftest.$ac_ext
2376
2377  # OK, works on sane cases.  Now check whether non-existent headers
2378  # can be detected and how.
2379  cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h.  */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h.  */
2385#include <ac_nonexistent.h>
2386_ACEOF
2387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389  ac_status=$?
2390  grep -v '^ *+' conftest.er1 >conftest.err
2391  rm -f conftest.er1
2392  cat conftest.err >&5
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); } >/dev/null; then
2395  if test -s conftest.err; then
2396    ac_cpp_err=$ac_c_preproc_warn_flag
2397    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2398  else
2399    ac_cpp_err=
2400  fi
2401else
2402  ac_cpp_err=yes
2403fi
2404if test -z "$ac_cpp_err"; then
2405  # Broken: success on invalid input.
2406continue
2407else
2408  echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411  # Passes both tests.
2412ac_preproc_ok=:
2413break
2414fi
2415rm -f conftest.err conftest.$ac_ext
2416
2417done
2418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2419rm -f conftest.err conftest.$ac_ext
2420if $ac_preproc_ok; then
2421  break
2422fi
2423
2424    done
2425    ac_cv_prog_CPP=$CPP
2426
2427fi
2428  CPP=$ac_cv_prog_CPP
2429else
2430  ac_cv_prog_CPP=$CPP
2431fi
2432echo "$as_me:$LINENO: result: $CPP" >&5
2433echo "${ECHO_T}$CPP" >&6
2434ac_preproc_ok=false
2435for ac_c_preproc_warn_flag in '' yes
2436do
2437  # Use a header file that comes with gcc, so configuring glibc
2438  # with a fresh cross-compiler works.
2439  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440  # <limits.h> exists even on freestanding compilers.
2441  # On the NeXT, cc -E runs the code through the compiler's parser,
2442  # not just through cpp. "Syntax error" is here to catch this case.
2443  cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h.  */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h.  */
2449#ifdef __STDC__
2450# include <limits.h>
2451#else
2452# include <assert.h>
2453#endif
2454		     Syntax error
2455_ACEOF
2456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2457  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2458  ac_status=$?
2459  grep -v '^ *+' conftest.er1 >conftest.err
2460  rm -f conftest.er1
2461  cat conftest.err >&5
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); } >/dev/null; then
2464  if test -s conftest.err; then
2465    ac_cpp_err=$ac_c_preproc_warn_flag
2466    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2467  else
2468    ac_cpp_err=
2469  fi
2470else
2471  ac_cpp_err=yes
2472fi
2473if test -z "$ac_cpp_err"; then
2474  :
2475else
2476  echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479  # Broken: fails on valid input.
2480continue
2481fi
2482rm -f conftest.err conftest.$ac_ext
2483
2484  # OK, works on sane cases.  Now check whether non-existent headers
2485  # can be detected and how.
2486  cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h.  */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
2491/* end confdefs.h.  */
2492#include <ac_nonexistent.h>
2493_ACEOF
2494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496  ac_status=$?
2497  grep -v '^ *+' conftest.er1 >conftest.err
2498  rm -f conftest.er1
2499  cat conftest.err >&5
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); } >/dev/null; then
2502  if test -s conftest.err; then
2503    ac_cpp_err=$ac_c_preproc_warn_flag
2504    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2505  else
2506    ac_cpp_err=
2507  fi
2508else
2509  ac_cpp_err=yes
2510fi
2511if test -z "$ac_cpp_err"; then
2512  # Broken: success on invalid input.
2513continue
2514else
2515  echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518  # Passes both tests.
2519ac_preproc_ok=:
2520break
2521fi
2522rm -f conftest.err conftest.$ac_ext
2523
2524done
2525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2526rm -f conftest.err conftest.$ac_ext
2527if $ac_preproc_ok; then
2528  :
2529else
2530  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2533See \`config.log' for more details." >&2;}
2534   { (exit 1); exit 1; }; }
2535fi
2536
2537ac_ext=c
2538ac_cpp='$CPP $CPPFLAGS'
2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543
2544echo "$as_me:$LINENO: checking for egrep" >&5
2545echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2546if test "${ac_cv_prog_egrep+set}" = set; then
2547  echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2550    then ac_cv_prog_egrep='grep -E'
2551    else ac_cv_prog_egrep='egrep'
2552    fi
2553fi
2554echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2555echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2556 EGREP=$ac_cv_prog_egrep
2557
2558
2559
2560echo "$as_me:$LINENO: checking for AIX" >&5
2561echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h.  */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h.  */
2568#ifdef _AIX
2569  yes
2570#endif
2571
2572_ACEOF
2573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2574  $EGREP "yes" >/dev/null 2>&1; then
2575  echo "$as_me:$LINENO: result: yes" >&5
2576echo "${ECHO_T}yes" >&6
2577cat >>confdefs.h <<\_ACEOF
2578#define _ALL_SOURCE 1
2579_ACEOF
2580
2581else
2582  echo "$as_me:$LINENO: result: no" >&5
2583echo "${ECHO_T}no" >&6
2584fi
2585rm -f conftest*
2586
2587
2588echo "$as_me:$LINENO: checking for library containing strerror" >&5
2589echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2590if test "${ac_cv_search_strerror+set}" = set; then
2591  echo $ECHO_N "(cached) $ECHO_C" >&6
2592else
2593  ac_func_search_save_LIBS=$LIBS
2594ac_cv_search_strerror=no
2595cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h.  */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h.  */
2601
2602/* Override any gcc2 internal prototype to avoid an error.  */
2603#ifdef __cplusplus
2604extern "C"
2605#endif
2606/* We use char because int might match the return type of a gcc2
2607   builtin and then its argument prototype would still apply.  */
2608char strerror ();
2609int
2610main ()
2611{
2612strerror ();
2613  ;
2614  return 0;
2615}
2616_ACEOF
2617rm -f conftest.$ac_objext conftest$ac_exeext
2618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619  (eval $ac_link) 2>conftest.er1
2620  ac_status=$?
2621  grep -v '^ *+' conftest.er1 >conftest.err
2622  rm -f conftest.er1
2623  cat conftest.err >&5
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); } &&
2626	 { ac_try='test -z "$ac_c_werror_flag"
2627			 || test ! -s conftest.err'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; } &&
2633	 { ac_try='test -s conftest$ac_exeext'
2634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635  (eval $ac_try) 2>&5
2636  ac_status=$?
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); }; }; then
2639  ac_cv_search_strerror="none required"
2640else
2641  echo "$as_me: failed program was:" >&5
2642sed 's/^/| /' conftest.$ac_ext >&5
2643
2644fi
2645rm -f conftest.err conftest.$ac_objext \
2646      conftest$ac_exeext conftest.$ac_ext
2647if test "$ac_cv_search_strerror" = no; then
2648  for ac_lib in cposix; do
2649    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2650    cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h.  */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h.  */
2656
2657/* Override any gcc2 internal prototype to avoid an error.  */
2658#ifdef __cplusplus
2659extern "C"
2660#endif
2661/* We use char because int might match the return type of a gcc2
2662   builtin and then its argument prototype would still apply.  */
2663char strerror ();
2664int
2665main ()
2666{
2667strerror ();
2668  ;
2669  return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext conftest$ac_exeext
2673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2674  (eval $ac_link) 2>conftest.er1
2675  ac_status=$?
2676  grep -v '^ *+' conftest.er1 >conftest.err
2677  rm -f conftest.er1
2678  cat conftest.err >&5
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); } &&
2681	 { ac_try='test -z "$ac_c_werror_flag"
2682			 || test ! -s conftest.err'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; } &&
2688	 { ac_try='test -s conftest$ac_exeext'
2689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690  (eval $ac_try) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }; }; then
2694  ac_cv_search_strerror="-l$ac_lib"
2695break
2696else
2697  echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700fi
2701rm -f conftest.err conftest.$ac_objext \
2702      conftest$ac_exeext conftest.$ac_ext
2703  done
2704fi
2705LIBS=$ac_func_search_save_LIBS
2706fi
2707echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2708echo "${ECHO_T}$ac_cv_search_strerror" >&6
2709if test "$ac_cv_search_strerror" != no; then
2710  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2711
2712fi
2713
2714
2715
2716
2717echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2718echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2719if test "${am_cv_prog_cc_stdc+set}" = set; then
2720  echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722  am_cv_prog_cc_stdc=no
2723ac_save_CC="$CC"
2724# Don't try gcc -ansi; that turns off useful extensions and
2725# breaks some systems' header files.
2726# AIX			-qlanglvl=ansi
2727# Ultrix and OSF/1	-std1
2728# HP-UX 10.20 and later	-Ae
2729# HP-UX older versions	-Aa -D_HPUX_SOURCE
2730# SVR4			-Xc -D__EXTENSIONS__
2731for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732do
2733  CC="$ac_save_CC $ac_arg"
2734  cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h.  */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h.  */
2740#include <stdarg.h>
2741#include <stdio.h>
2742#include <sys/types.h>
2743#include <sys/stat.h>
2744/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2745struct buf { int x; };
2746FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747static char *e (p, i)
2748     char **p;
2749     int i;
2750{
2751  return p[i];
2752}
2753static char *f (char * (*g) (char **, int), char **p, ...)
2754{
2755  char *s;
2756  va_list v;
2757  va_start (v,p);
2758  s = g (p, va_arg (v,int));
2759  va_end (v);
2760  return s;
2761}
2762int test (int i, double x);
2763struct s1 {int (*f) (int a);};
2764struct s2 {int (*f) (double a);};
2765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766int argc;
2767char **argv;
2768
2769int
2770main ()
2771{
2772
2773return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2774
2775  ;
2776  return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781  (eval $ac_compile) 2>conftest.er1
2782  ac_status=$?
2783  grep -v '^ *+' conftest.er1 >conftest.err
2784  rm -f conftest.er1
2785  cat conftest.err >&5
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); } &&
2788	 { ac_try='test -z "$ac_c_werror_flag"
2789			 || test ! -s conftest.err'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; } &&
2795	 { ac_try='test -s conftest.$ac_objext'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; }; then
2801  am_cv_prog_cc_stdc="$ac_arg"; break
2802else
2803  echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
2806fi
2807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808done
2809CC="$ac_save_CC"
2810
2811fi
2812
2813if test -z "$am_cv_prog_cc_stdc"; then
2814  echo "$as_me:$LINENO: result: none needed" >&5
2815echo "${ECHO_T}none needed" >&6
2816else
2817  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2818echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2819fi
2820case "x$am_cv_prog_cc_stdc" in
2821  x|xno) ;;
2822  *) CC="$CC $am_cv_prog_cc_stdc" ;;
2823esac
2824
2825
2826ac_aux_dir=
2827for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2828  if test -f $ac_dir/install-sh; then
2829    ac_aux_dir=$ac_dir
2830    ac_install_sh="$ac_aux_dir/install-sh -c"
2831    break
2832  elif test -f $ac_dir/install.sh; then
2833    ac_aux_dir=$ac_dir
2834    ac_install_sh="$ac_aux_dir/install.sh -c"
2835    break
2836  elif test -f $ac_dir/shtool; then
2837    ac_aux_dir=$ac_dir
2838    ac_install_sh="$ac_aux_dir/shtool install -c"
2839    break
2840  fi
2841done
2842if test -z "$ac_aux_dir"; then
2843  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2844echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2845   { (exit 1); exit 1; }; }
2846fi
2847ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2848ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2849ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2850
2851# Make sure we can run config.sub.
2852$ac_config_sub sun4 >/dev/null 2>&1 ||
2853  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2854echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2855   { (exit 1); exit 1; }; }
2856
2857echo "$as_me:$LINENO: checking build system type" >&5
2858echo $ECHO_N "checking build system type... $ECHO_C" >&6
2859if test "${ac_cv_build+set}" = set; then
2860  echo $ECHO_N "(cached) $ECHO_C" >&6
2861else
2862  ac_cv_build_alias=$build_alias
2863test -z "$ac_cv_build_alias" &&
2864  ac_cv_build_alias=`$ac_config_guess`
2865test -z "$ac_cv_build_alias" &&
2866  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2867echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2868   { (exit 1); exit 1; }; }
2869ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2870  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2871echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2872   { (exit 1); exit 1; }; }
2873
2874fi
2875echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2876echo "${ECHO_T}$ac_cv_build" >&6
2877build=$ac_cv_build
2878build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2879build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2880build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2881
2882
2883echo "$as_me:$LINENO: checking host system type" >&5
2884echo $ECHO_N "checking host system type... $ECHO_C" >&6
2885if test "${ac_cv_host+set}" = set; then
2886  echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
2888  ac_cv_host_alias=$host_alias
2889test -z "$ac_cv_host_alias" &&
2890  ac_cv_host_alias=$ac_cv_build_alias
2891ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2892  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2893echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2894   { (exit 1); exit 1; }; }
2895
2896fi
2897echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2898echo "${ECHO_T}$ac_cv_host" >&6
2899host=$ac_cv_host
2900host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2901host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2902host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2903
2904
2905echo "$as_me:$LINENO: checking target system type" >&5
2906echo $ECHO_N "checking target system type... $ECHO_C" >&6
2907if test "${ac_cv_target+set}" = set; then
2908  echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910  ac_cv_target_alias=$target_alias
2911test "x$ac_cv_target_alias" = "x" &&
2912  ac_cv_target_alias=$ac_cv_host_alias
2913ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2914  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2915echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2916   { (exit 1); exit 1; }; }
2917
2918fi
2919echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2920echo "${ECHO_T}$ac_cv_target" >&6
2921target=$ac_cv_target
2922target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2923target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2924target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2925
2926
2927# The aliases save the names the user supplied, while $host etc.
2928# will get canonicalized.
2929test -n "$target_alias" &&
2930  test "$program_prefix$program_suffix$program_transform_name" = \
2931    NONENONEs,x,x, &&
2932  program_prefix=${target_alias}-
2933
2934
2935CONFIG_OBS=
2936CONFIG_DEPS=
2937CONFIG_SRCS=
2938ENABLE_CFLAGS=
2939
2940CONFIG_ALL=
2941CONFIG_CLEAN=
2942CONFIG_INSTALL=
2943CONFIG_UNINSTALL=
2944
2945# If we haven't got the data from the intl directory,
2946# assume NLS is disabled.
2947USE_NLS=no
2948LIBINTL=
2949LIBINTL_DEP=
2950INCINTL=
2951XGETTEXT=
2952GMSGFMT=
2953POSUB=
2954
2955if test -f  ../intl/config.intl; then
2956  .  ../intl/config.intl
2957fi
2958echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2959echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2960if test x"$USE_NLS" != xyes; then
2961  echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
2963else
2964  echo "$as_me:$LINENO: result: yes" >&5
2965echo "${ECHO_T}yes" >&6
2966
2967cat >>confdefs.h <<\_ACEOF
2968#define ENABLE_NLS 1
2969_ACEOF
2970
2971
2972  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2973echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2974  # Look for .po and .gmo files in the source directory.
2975  CATALOGS=
2976  XLINGUAS=
2977  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2978    # If there aren't any .gmo files the shell will give us the
2979    # literal string "../path/to/srcdir/po/*.gmo" which has to be
2980    # weeded out.
2981    case "$cat" in *\**)
2982      continue;;
2983    esac
2984    # The quadruple backslash is collapsed to a double backslash
2985    # by the backticks, then collapsed again by the double quotes,
2986    # leaving us with one backslash in the sed expression (right
2987    # before the dot that mustn't act as a wildcard).
2988    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2989    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2990    # The user is allowed to set LINGUAS to a list of languages to
2991    # install catalogs for.  If it's empty that means "all of them."
2992    if test "x$LINGUAS" = x; then
2993      CATALOGS="$CATALOGS $cat"
2994      XLINGUAS="$XLINGUAS $lang"
2995    else
2996      case "$LINGUAS" in *$lang*)
2997        CATALOGS="$CATALOGS $cat"
2998        XLINGUAS="$XLINGUAS $lang"
2999        ;;
3000      esac
3001    fi
3002  done
3003  LINGUAS="$XLINGUAS"
3004  echo "$as_me:$LINENO: result: $LINGUAS" >&5
3005echo "${ECHO_T}$LINGUAS" >&6
3006
3007
3008    DATADIRNAME=share
3009
3010  INSTOBJEXT=.mo
3011
3012  GENCAT=gencat
3013
3014  CATOBJEXT=.gmo
3015
3016fi
3017
3018localedir='${datadir}/locale'
3019
3020
3021if test x"$USE_NLS" = xyes; then
3022   CONFIG_ALL="$CONFIG_ALL all-po"
3023   CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3024   CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3025   CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3026fi
3027
3028PACKAGE=gdb
3029
3030cat >>confdefs.h <<_ACEOF
3031#define PACKAGE "$PACKAGE"
3032_ACEOF
3033
3034
3035
3036debugdir=${libdir}/debug
3037
3038
3039# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3040if test "${with_separate_debug_dir+set}" = set; then
3041  withval="$with_separate_debug_dir"
3042  debugdir="${withval}"
3043fi;
3044
3045
3046  test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3047  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3048  ac_define_dir=`eval echo $debugdir`
3049  ac_define_dir=`eval echo $ac_define_dir`
3050
3051cat >>confdefs.h <<_ACEOF
3052#define DEBUGDIR "$ac_define_dir"
3053_ACEOF
3054
3055
3056#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3057
3058if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3059  if test "x$prefix" = xNONE; then
3060    test_prefix=/usr/local
3061  else
3062    test_prefix=$prefix
3063  fi
3064else
3065  test_prefix=$exec_prefix
3066fi
3067case ${debugdir} in
3068"${test_prefix}"|"${test_prefix}/"*|\
3069'${exec_prefix}'|'${exec_prefix}/'*)
3070
3071cat >>confdefs.h <<\_ACEOF
3072#define DEBUGDIR_RELOCATABLE 1
3073_ACEOF
3074
3075  ;;
3076esac
3077
3078
3079
3080subdirs="$subdirs doc testsuite"
3081
3082
3083# Provide defaults for some variables set by the per-host and per-target
3084# configuration.
3085gdb_host_obs=posix-hdep.o
3086
3087if test "${target}" = "${host}"; then
3088  gdb_native=yes
3089else
3090  gdb_native=no
3091fi
3092
3093. $srcdir/configure.host
3094
3095. $srcdir/configure.tgt
3096
3097# Fetch the default architecture and default target vector from BFD.
3098targ=$target; . $srcdir/../bfd/config.bfd
3099
3100# We only want the first architecture, so strip off the others if
3101# there is more than one.
3102targ_archs=`echo $targ_archs | sed 's/ .*//'`
3103
3104if test "x$targ_archs" != x; then
3105
3106cat >>confdefs.h <<_ACEOF
3107#define DEFAULT_BFD_ARCH $targ_archs
3108_ACEOF
3109
3110fi
3111if test "x$targ_defvec" != x; then
3112
3113cat >>confdefs.h <<_ACEOF
3114#define DEFAULT_BFD_VEC $targ_defvec
3115_ACEOF
3116
3117fi
3118
3119test "$program_prefix" != NONE &&
3120  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3121# Use a double $ so make ignores it.
3122test "$program_suffix" != NONE &&
3123  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3124# Double any \ or $.  echo might interpret backslashes.
3125# By default was `s,x,x', remove it if useless.
3126cat <<\_ACEOF >conftest.sed
3127s/[\\$]/&&/g;s/;s,x,x,$//
3128_ACEOF
3129program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3130rm conftest.sed
3131
3132
3133# The CLI cannot be disabled yet, but may be in the future.
3134
3135# Enable CLI.
3136# Check whether --enable-gdbcli or --disable-gdbcli was given.
3137if test "${enable_gdbcli+set}" = set; then
3138  enableval="$enable_gdbcli"
3139  case $enableval in
3140    yes)
3141      ;;
3142    no)
3143      { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3144echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3145   { (exit 1); exit 1; }; } ;;
3146    *)
3147      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3148echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3149   { (exit 1); exit 1; }; } ;;
3150  esac
3151else
3152  enable_gdbcli=yes
3153fi;
3154if test x"$enable_gdbcli" = xyes; then
3155  if test -d $srcdir/cli; then
3156    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3157    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3158    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3159    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3160  fi
3161fi
3162
3163# Enable MI.
3164# Check whether --enable-gdbmi or --disable-gdbmi was given.
3165if test "${enable_gdbmi+set}" = set; then
3166  enableval="$enable_gdbmi"
3167  case $enableval in
3168    yes | no)
3169      ;;
3170    *)
3171      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3172echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3173   { (exit 1); exit 1; }; } ;;
3174  esac
3175else
3176  enable_gdbmi=yes
3177fi;
3178if test x"$enable_gdbmi" = xyes; then
3179  if test -d $srcdir/mi; then
3180    CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3181    CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3182    CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3183    ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3184  fi
3185fi
3186
3187# Enable TUI.
3188# Check whether --enable-tui or --disable-tui was given.
3189if test "${enable_tui+set}" = set; then
3190  enableval="$enable_tui"
3191  case $enableval in
3192    yes | no)
3193      ;;
3194    *)
3195      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3196echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3197   { (exit 1); exit 1; }; } ;;
3198  esac
3199else
3200  enable_tui=yes
3201fi;
3202
3203# Enable gdbtk.
3204# Check whether --enable-gdbtk or --disable-gdbtk was given.
3205if test "${enable_gdbtk+set}" = set; then
3206  enableval="$enable_gdbtk"
3207  case $enableval in
3208    yes | no)
3209      ;;
3210    *)
3211      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3212echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3213   { (exit 1); exit 1; }; } ;;
3214  esac
3215else
3216  if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3217    enable_gdbtk=yes
3218  else
3219    enable_gdbtk=no
3220  fi
3221fi;
3222# We unconditionally disable gdbtk tests on selected platforms.
3223case $host_os in
3224  go32* | windows*)
3225    { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3226echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3227    enable_gdbtk=no ;;
3228esac
3229
3230# Libunwind support.
3231echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3233if test "${ac_cv_header_stdc+set}" = set; then
3234  echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236  cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h.  */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h.  */
3242#include <stdlib.h>
3243#include <stdarg.h>
3244#include <string.h>
3245#include <float.h>
3246
3247int
3248main ()
3249{
3250
3251  ;
3252  return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257  (eval $ac_compile) 2>conftest.er1
3258  ac_status=$?
3259  grep -v '^ *+' conftest.er1 >conftest.err
3260  rm -f conftest.er1
3261  cat conftest.err >&5
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); } &&
3264	 { ac_try='test -z "$ac_c_werror_flag"
3265			 || test ! -s conftest.err'
3266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267  (eval $ac_try) 2>&5
3268  ac_status=$?
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); }; } &&
3271	 { ac_try='test -s conftest.$ac_objext'
3272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273  (eval $ac_try) 2>&5
3274  ac_status=$?
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; }; then
3277  ac_cv_header_stdc=yes
3278else
3279  echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282ac_cv_header_stdc=no
3283fi
3284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285
3286if test $ac_cv_header_stdc = yes; then
3287  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3288  cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h.  */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h.  */
3294#include <string.h>
3295
3296_ACEOF
3297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298  $EGREP "memchr" >/dev/null 2>&1; then
3299  :
3300else
3301  ac_cv_header_stdc=no
3302fi
3303rm -f conftest*
3304
3305fi
3306
3307if test $ac_cv_header_stdc = yes; then
3308  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3309  cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315#include <stdlib.h>
3316
3317_ACEOF
3318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319  $EGREP "free" >/dev/null 2>&1; then
3320  :
3321else
3322  ac_cv_header_stdc=no
3323fi
3324rm -f conftest*
3325
3326fi
3327
3328if test $ac_cv_header_stdc = yes; then
3329  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330  if test "$cross_compiling" = yes; then
3331  :
3332else
3333  cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h.  */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h.  */
3339#include <ctype.h>
3340#if ((' ' & 0x0FF) == 0x020)
3341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3343#else
3344# define ISLOWER(c) \
3345		   (('a' <= (c) && (c) <= 'i') \
3346		     || ('j' <= (c) && (c) <= 'r') \
3347		     || ('s' <= (c) && (c) <= 'z'))
3348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3349#endif
3350
3351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3352int
3353main ()
3354{
3355  int i;
3356  for (i = 0; i < 256; i++)
3357    if (XOR (islower (i), ISLOWER (i))
3358	|| toupper (i) != TOUPPER (i))
3359      exit(2);
3360  exit (0);
3361}
3362_ACEOF
3363rm -f conftest$ac_exeext
3364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365  (eval $ac_link) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370  (eval $ac_try) 2>&5
3371  ac_status=$?
3372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373  (exit $ac_status); }; }; then
3374  :
3375else
3376  echo "$as_me: program exited with status $ac_status" >&5
3377echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380( exit $ac_status )
3381ac_cv_header_stdc=no
3382fi
3383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3384fi
3385fi
3386fi
3387echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3388echo "${ECHO_T}$ac_cv_header_stdc" >&6
3389if test $ac_cv_header_stdc = yes; then
3390
3391cat >>confdefs.h <<\_ACEOF
3392#define STDC_HEADERS 1
3393_ACEOF
3394
3395fi
3396
3397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3408		  inttypes.h stdint.h unistd.h
3409do
3410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3411echo "$as_me:$LINENO: checking for $ac_header" >&5
3412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3413if eval "test \"\${$as_ac_Header+set}\" = set"; then
3414  echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416  cat >conftest.$ac_ext <<_ACEOF
3417/* confdefs.h.  */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h.  */
3422$ac_includes_default
3423
3424#include <$ac_header>
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428  (eval $ac_compile) 2>conftest.er1
3429  ac_status=$?
3430  grep -v '^ *+' conftest.er1 >conftest.err
3431  rm -f conftest.er1
3432  cat conftest.err >&5
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); } &&
3435	 { ac_try='test -z "$ac_c_werror_flag"
3436			 || test ! -s conftest.err'
3437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438  (eval $ac_try) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }; } &&
3442	 { ac_try='test -s conftest.$ac_objext'
3443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444  (eval $ac_try) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }; }; then
3448  eval "$as_ac_Header=yes"
3449else
3450  echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453eval "$as_ac_Header=no"
3454fi
3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456fi
3457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459if test `eval echo '${'$as_ac_Header'}'` = yes; then
3460  cat >>confdefs.h <<_ACEOF
3461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3462_ACEOF
3463
3464fi
3465
3466done
3467
3468
3469
3470# Check whether --with-libunwind or --without-libunwind was given.
3471if test "${with_libunwind+set}" = set; then
3472  withval="$with_libunwind"
3473  case "${withval}" in
3474  yes)  enable_libunwind=yes ;;
3475  no)   enable_libunwind=no ;;
3476  *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3477echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3478   { (exit 1); exit 1; }; } ;;
3479esac
3480else
3481
3482
3483for ac_header in libunwind.h
3484do
3485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3486if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487  echo "$as_me:$LINENO: checking for $ac_header" >&5
3488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489if eval "test \"\${$as_ac_Header+set}\" = set"; then
3490  echo $ECHO_N "(cached) $ECHO_C" >&6
3491fi
3492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3494else
3495  # Is the header compilable?
3496echo "$as_me:$LINENO: checking $ac_header usability" >&5
3497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3498cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h.  */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h.  */
3504$ac_includes_default
3505#include <$ac_header>
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509  (eval $ac_compile) 2>conftest.er1
3510  ac_status=$?
3511  grep -v '^ *+' conftest.er1 >conftest.err
3512  rm -f conftest.er1
3513  cat conftest.err >&5
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); } &&
3516	 { ac_try='test -z "$ac_c_werror_flag"
3517			 || test ! -s conftest.err'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; } &&
3523	 { ac_try='test -s conftest.$ac_objext'
3524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525  (eval $ac_try) 2>&5
3526  ac_status=$?
3527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); }; }; then
3529  ac_header_compiler=yes
3530else
3531  echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534ac_header_compiler=no
3535fi
3536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538echo "${ECHO_T}$ac_header_compiler" >&6
3539
3540# Is the header present?
3541echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h.  */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h.  */
3549#include <$ac_header>
3550_ACEOF
3551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553  ac_status=$?
3554  grep -v '^ *+' conftest.er1 >conftest.err
3555  rm -f conftest.er1
3556  cat conftest.err >&5
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); } >/dev/null; then
3559  if test -s conftest.err; then
3560    ac_cpp_err=$ac_c_preproc_warn_flag
3561    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562  else
3563    ac_cpp_err=
3564  fi
3565else
3566  ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569  ac_header_preproc=yes
3570else
3571  echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574  ac_header_preproc=no
3575fi
3576rm -f conftest.err conftest.$ac_ext
3577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578echo "${ECHO_T}$ac_header_preproc" >&6
3579
3580# So?  What about this header?
3581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3582  yes:no: )
3583    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3587    ac_header_preproc=yes
3588    ;;
3589  no:yes:* )
3590    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3592    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3593echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3594    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3596    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3597echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3598    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3600    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3602    (
3603      cat <<\_ASBOX
3604## ------------------------------------------ ##
3605## Report this to the AC_PACKAGE_NAME lists.  ##
3606## ------------------------------------------ ##
3607_ASBOX
3608    ) |
3609      sed "s/^/$as_me: WARNING:     /" >&2
3610    ;;
3611esac
3612echo "$as_me:$LINENO: checking for $ac_header" >&5
3613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615  echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617  eval "$as_ac_Header=\$ac_header_preproc"
3618fi
3619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3621
3622fi
3623if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624  cat >>confdefs.h <<_ACEOF
3625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626_ACEOF
3627
3628fi
3629
3630done
3631
3632
3633for ac_header in libunwind-ia64.h
3634do
3635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3636if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637  echo "$as_me:$LINENO: checking for $ac_header" >&5
3638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641fi
3642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3644else
3645  # Is the header compilable?
3646echo "$as_me:$LINENO: checking $ac_header usability" >&5
3647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3648cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h.  */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h.  */
3654$ac_includes_default
3655#include <$ac_header>
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659  (eval $ac_compile) 2>conftest.er1
3660  ac_status=$?
3661  grep -v '^ *+' conftest.er1 >conftest.err
3662  rm -f conftest.er1
3663  cat conftest.err >&5
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); } &&
3666	 { ac_try='test -z "$ac_c_werror_flag"
3667			 || test ! -s conftest.err'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; } &&
3673	 { ac_try='test -s conftest.$ac_objext'
3674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675  (eval $ac_try) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; }; then
3679  ac_header_compiler=yes
3680else
3681  echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684ac_header_compiler=no
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688echo "${ECHO_T}$ac_header_compiler" >&6
3689
3690# Is the header present?
3691echo "$as_me:$LINENO: checking $ac_header presence" >&5
3692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3693cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h.  */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h.  */
3699#include <$ac_header>
3700_ACEOF
3701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703  ac_status=$?
3704  grep -v '^ *+' conftest.er1 >conftest.err
3705  rm -f conftest.er1
3706  cat conftest.err >&5
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); } >/dev/null; then
3709  if test -s conftest.err; then
3710    ac_cpp_err=$ac_c_preproc_warn_flag
3711    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712  else
3713    ac_cpp_err=
3714  fi
3715else
3716  ac_cpp_err=yes
3717fi
3718if test -z "$ac_cpp_err"; then
3719  ac_header_preproc=yes
3720else
3721  echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724  ac_header_preproc=no
3725fi
3726rm -f conftest.err conftest.$ac_ext
3727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728echo "${ECHO_T}$ac_header_preproc" >&6
3729
3730# So?  What about this header?
3731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3732  yes:no: )
3733    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3737    ac_header_preproc=yes
3738    ;;
3739  no:yes:* )
3740    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3743echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3744    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3746    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3747echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3748    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3750    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3752    (
3753      cat <<\_ASBOX
3754## ------------------------------------------ ##
3755## Report this to the AC_PACKAGE_NAME lists.  ##
3756## ------------------------------------------ ##
3757_ASBOX
3758    ) |
3759      sed "s/^/$as_me: WARNING:     /" >&2
3760    ;;
3761esac
3762echo "$as_me:$LINENO: checking for $ac_header" >&5
3763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  eval "$as_ac_Header=\$ac_header_preproc"
3768fi
3769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771
3772fi
3773if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774  cat >>confdefs.h <<_ACEOF
3775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776_ACEOF
3777
3778fi
3779
3780done
3781
3782  if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3783    enable_libunwind=yes;
3784  fi
3785
3786fi;
3787
3788if test x"$enable_libunwind" = xyes; then
3789
3790for ac_header in libunwind.h
3791do
3792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794  echo "$as_me:$LINENO: checking for $ac_header" >&5
3795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797  echo $ECHO_N "(cached) $ECHO_C" >&6
3798fi
3799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801else
3802  # Is the header compilable?
3803echo "$as_me:$LINENO: checking $ac_header usability" >&5
3804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3805cat >conftest.$ac_ext <<_ACEOF
3806/* confdefs.h.  */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h.  */
3811$ac_includes_default
3812#include <$ac_header>
3813_ACEOF
3814rm -f conftest.$ac_objext
3815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816  (eval $ac_compile) 2>conftest.er1
3817  ac_status=$?
3818  grep -v '^ *+' conftest.er1 >conftest.err
3819  rm -f conftest.er1
3820  cat conftest.err >&5
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); } &&
3823	 { ac_try='test -z "$ac_c_werror_flag"
3824			 || test ! -s conftest.err'
3825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826  (eval $ac_try) 2>&5
3827  ac_status=$?
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); }; } &&
3830	 { ac_try='test -s conftest.$ac_objext'
3831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832  (eval $ac_try) 2>&5
3833  ac_status=$?
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); }; }; then
3836  ac_header_compiler=yes
3837else
3838  echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841ac_header_compiler=no
3842fi
3843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845echo "${ECHO_T}$ac_header_compiler" >&6
3846
3847# Is the header present?
3848echo "$as_me:$LINENO: checking $ac_header presence" >&5
3849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3850cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h.  */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h.  */
3856#include <$ac_header>
3857_ACEOF
3858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860  ac_status=$?
3861  grep -v '^ *+' conftest.er1 >conftest.err
3862  rm -f conftest.er1
3863  cat conftest.err >&5
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); } >/dev/null; then
3866  if test -s conftest.err; then
3867    ac_cpp_err=$ac_c_preproc_warn_flag
3868    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3869  else
3870    ac_cpp_err=
3871  fi
3872else
3873  ac_cpp_err=yes
3874fi
3875if test -z "$ac_cpp_err"; then
3876  ac_header_preproc=yes
3877else
3878  echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881  ac_header_preproc=no
3882fi
3883rm -f conftest.err conftest.$ac_ext
3884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3885echo "${ECHO_T}$ac_header_preproc" >&6
3886
3887# So?  What about this header?
3888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3889  yes:no: )
3890    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3892    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3894    ac_header_preproc=yes
3895    ;;
3896  no:yes:* )
3897    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3899    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3900echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3901    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3903    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3904echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3905    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3907    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3909    (
3910      cat <<\_ASBOX
3911## ------------------------------------------ ##
3912## Report this to the AC_PACKAGE_NAME lists.  ##
3913## ------------------------------------------ ##
3914_ASBOX
3915    ) |
3916      sed "s/^/$as_me: WARNING:     /" >&2
3917    ;;
3918esac
3919echo "$as_me:$LINENO: checking for $ac_header" >&5
3920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3921if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922  echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924  eval "$as_ac_Header=\$ac_header_preproc"
3925fi
3926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3928
3929fi
3930if test `eval echo '${'$as_ac_Header'}'` = yes; then
3931  cat >>confdefs.h <<_ACEOF
3932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3933_ACEOF
3934
3935fi
3936
3937done
3938
3939
3940for ac_header in libunwind-ia64.h
3941do
3942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3943if eval "test \"\${$as_ac_Header+set}\" = set"; then
3944  echo "$as_me:$LINENO: checking for $ac_header" >&5
3945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3946if eval "test \"\${$as_ac_Header+set}\" = set"; then
3947  echo $ECHO_N "(cached) $ECHO_C" >&6
3948fi
3949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951else
3952  # Is the header compilable?
3953echo "$as_me:$LINENO: checking $ac_header usability" >&5
3954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3955cat >conftest.$ac_ext <<_ACEOF
3956/* confdefs.h.  */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
3960/* end confdefs.h.  */
3961$ac_includes_default
3962#include <$ac_header>
3963_ACEOF
3964rm -f conftest.$ac_objext
3965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966  (eval $ac_compile) 2>conftest.er1
3967  ac_status=$?
3968  grep -v '^ *+' conftest.er1 >conftest.err
3969  rm -f conftest.er1
3970  cat conftest.err >&5
3971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972  (exit $ac_status); } &&
3973	 { ac_try='test -z "$ac_c_werror_flag"
3974			 || test ! -s conftest.err'
3975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976  (eval $ac_try) 2>&5
3977  ac_status=$?
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); }; } &&
3980	 { ac_try='test -s conftest.$ac_objext'
3981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982  (eval $ac_try) 2>&5
3983  ac_status=$?
3984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985  (exit $ac_status); }; }; then
3986  ac_header_compiler=yes
3987else
3988  echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
3990
3991ac_header_compiler=no
3992fi
3993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3995echo "${ECHO_T}$ac_header_compiler" >&6
3996
3997# Is the header present?
3998echo "$as_me:$LINENO: checking $ac_header presence" >&5
3999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4000cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h.  */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h.  */
4006#include <$ac_header>
4007_ACEOF
4008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010  ac_status=$?
4011  grep -v '^ *+' conftest.er1 >conftest.err
4012  rm -f conftest.er1
4013  cat conftest.err >&5
4014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); } >/dev/null; then
4016  if test -s conftest.err; then
4017    ac_cpp_err=$ac_c_preproc_warn_flag
4018    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4019  else
4020    ac_cpp_err=
4021  fi
4022else
4023  ac_cpp_err=yes
4024fi
4025if test -z "$ac_cpp_err"; then
4026  ac_header_preproc=yes
4027else
4028  echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031  ac_header_preproc=no
4032fi
4033rm -f conftest.err conftest.$ac_ext
4034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4035echo "${ECHO_T}$ac_header_preproc" >&6
4036
4037# So?  What about this header?
4038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4039  yes:no: )
4040    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4044    ac_header_preproc=yes
4045    ;;
4046  no:yes:* )
4047    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4049    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4050echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4051    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4053    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4054echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4055    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4057    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4059    (
4060      cat <<\_ASBOX
4061## ------------------------------------------ ##
4062## Report this to the AC_PACKAGE_NAME lists.  ##
4063## ------------------------------------------ ##
4064_ASBOX
4065    ) |
4066      sed "s/^/$as_me: WARNING:     /" >&2
4067    ;;
4068esac
4069echo "$as_me:$LINENO: checking for $ac_header" >&5
4070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4071if eval "test \"\${$as_ac_Header+set}\" = set"; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  eval "$as_ac_Header=\$ac_header_preproc"
4075fi
4076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4078
4079fi
4080if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081  cat >>confdefs.h <<_ACEOF
4082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083_ACEOF
4084
4085fi
4086
4087done
4088
4089
4090cat >>confdefs.h <<\_ACEOF
4091#define HAVE_LIBUNWIND 1
4092_ACEOF
4093
4094  CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4095  CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4096  CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4097fi
4098
4099# Profiling support.
4100# Check whether --enable-profiling or --disable-profiling was given.
4101if test "${enable_profiling+set}" = set; then
4102  enableval="$enable_profiling"
4103  case $enableval in
4104    yes | no)
4105      ;;
4106    *)
4107      { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4108echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4109   { (exit 1); exit 1; }; } ;;
4110  esac
4111else
4112  enable_profiling=no
4113fi;
4114
4115
4116
4117for ac_func in monstartup _mcleanup
4118do
4119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4120echo "$as_me:$LINENO: checking for $ac_func" >&5
4121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4122if eval "test \"\${$as_ac_var+set}\" = set"; then
4123  echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125  cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h.  */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h.  */
4131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4132   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4133#define $ac_func innocuous_$ac_func
4134
4135/* System header to define __stub macros and hopefully few prototypes,
4136    which can conflict with char $ac_func (); below.
4137    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138    <limits.h> exists even on freestanding compilers.  */
4139
4140#ifdef __STDC__
4141# include <limits.h>
4142#else
4143# include <assert.h>
4144#endif
4145
4146#undef $ac_func
4147
4148/* Override any gcc2 internal prototype to avoid an error.  */
4149#ifdef __cplusplus
4150extern "C"
4151{
4152#endif
4153/* We use char because int might match the return type of a gcc2
4154   builtin and then its argument prototype would still apply.  */
4155char $ac_func ();
4156/* The GNU C library defines this for functions which it implements
4157    to always fail with ENOSYS.  Some functions are actually named
4158    something starting with __ and the normal name is an alias.  */
4159#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4160choke me
4161#else
4162char (*f) () = $ac_func;
4163#endif
4164#ifdef __cplusplus
4165}
4166#endif
4167
4168int
4169main ()
4170{
4171return f != $ac_func;
4172  ;
4173  return 0;
4174}
4175_ACEOF
4176rm -f conftest.$ac_objext conftest$ac_exeext
4177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178  (eval $ac_link) 2>conftest.er1
4179  ac_status=$?
4180  grep -v '^ *+' conftest.er1 >conftest.err
4181  rm -f conftest.er1
4182  cat conftest.err >&5
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); } &&
4185	 { ac_try='test -z "$ac_c_werror_flag"
4186			 || test ! -s conftest.err'
4187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188  (eval $ac_try) 2>&5
4189  ac_status=$?
4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191  (exit $ac_status); }; } &&
4192	 { ac_try='test -s conftest$ac_exeext'
4193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194  (eval $ac_try) 2>&5
4195  ac_status=$?
4196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197  (exit $ac_status); }; }; then
4198  eval "$as_ac_var=yes"
4199else
4200  echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
4203eval "$as_ac_var=no"
4204fi
4205rm -f conftest.err conftest.$ac_objext \
4206      conftest$ac_exeext conftest.$ac_ext
4207fi
4208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4209echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4210if test `eval echo '${'$as_ac_var'}'` = yes; then
4211  cat >>confdefs.h <<_ACEOF
4212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4213_ACEOF
4214
4215fi
4216done
4217
4218echo "$as_me:$LINENO: checking for _etext" >&5
4219echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4220if test "${ac_cv_var__etext+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h.  */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h.  */
4229#include <stdlib.h>
4230extern char _etext;
4231
4232int
4233main ()
4234{
4235free (&_etext);
4236  ;
4237  return 0;
4238}
4239_ACEOF
4240rm -f conftest.$ac_objext conftest$ac_exeext
4241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242  (eval $ac_link) 2>conftest.er1
4243  ac_status=$?
4244  grep -v '^ *+' conftest.er1 >conftest.err
4245  rm -f conftest.er1
4246  cat conftest.err >&5
4247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248  (exit $ac_status); } &&
4249	 { ac_try='test -z "$ac_c_werror_flag"
4250			 || test ! -s conftest.err'
4251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252  (eval $ac_try) 2>&5
4253  ac_status=$?
4254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255  (exit $ac_status); }; } &&
4256	 { ac_try='test -s conftest$ac_exeext'
4257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258  (eval $ac_try) 2>&5
4259  ac_status=$?
4260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261  (exit $ac_status); }; }; then
4262  ac_cv_var__etext=yes
4263else
4264  echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
4267ac_cv_var__etext=no
4268fi
4269rm -f conftest.err conftest.$ac_objext \
4270      conftest$ac_exeext conftest.$ac_ext
4271fi
4272echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4273echo "${ECHO_T}$ac_cv_var__etext" >&6
4274if test $ac_cv_var__etext = yes; then
4275
4276cat >>confdefs.h <<\_ACEOF
4277#define HAVE__ETEXT 1
4278_ACEOF
4279
4280fi
4281if test "$enable_profiling" = yes ; then
4282  if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4283    { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4284echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4285   { (exit 1); exit 1; }; }
4286  fi
4287  PROFILE_CFLAGS=-pg
4288  OLD_CFLAGS="$CFLAGS"
4289  CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4290
4291  echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4292echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4293if test "${ac_cv_cc_supports_pg+set}" = set; then
4294  echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296  cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h.  */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
4301/* end confdefs.h.  */
4302
4303int
4304main ()
4305{
4306int x;
4307  ;
4308  return 0;
4309}
4310_ACEOF
4311rm -f conftest.$ac_objext
4312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313  (eval $ac_compile) 2>conftest.er1
4314  ac_status=$?
4315  grep -v '^ *+' conftest.er1 >conftest.err
4316  rm -f conftest.er1
4317  cat conftest.err >&5
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); } &&
4320	 { ac_try='test -z "$ac_c_werror_flag"
4321			 || test ! -s conftest.err'
4322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323  (eval $ac_try) 2>&5
4324  ac_status=$?
4325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326  (exit $ac_status); }; } &&
4327	 { ac_try='test -s conftest.$ac_objext'
4328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329  (eval $ac_try) 2>&5
4330  ac_status=$?
4331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332  (exit $ac_status); }; }; then
4333  ac_cv_cc_supports_pg=yes
4334else
4335  echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
4337
4338ac_cv_cc_supports_pg=no
4339fi
4340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4341fi
4342echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4343echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4344
4345  if test $ac_cv_cc_supports_pg = no; then
4346    { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4347echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4348   { (exit 1); exit 1; }; }
4349  fi
4350
4351  CFLAGS="$OLD_CFLAGS"
4352fi
4353
4354# --------------------- #
4355# Checks for programs.  #
4356# --------------------- #
4357
4358for ac_prog in gawk mawk nawk awk
4359do
4360  # Extract the first word of "$ac_prog", so it can be a program name with args.
4361set dummy $ac_prog; ac_word=$2
4362echo "$as_me:$LINENO: checking for $ac_word" >&5
4363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364if test "${ac_cv_prog_AWK+set}" = set; then
4365  echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367  if test -n "$AWK"; then
4368  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4369else
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373  IFS=$as_save_IFS
4374  test -z "$as_dir" && as_dir=.
4375  for ac_exec_ext in '' $ac_executable_extensions; do
4376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377    ac_cv_prog_AWK="$ac_prog"
4378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379    break 2
4380  fi
4381done
4382done
4383
4384fi
4385fi
4386AWK=$ac_cv_prog_AWK
4387if test -n "$AWK"; then
4388  echo "$as_me:$LINENO: result: $AWK" >&5
4389echo "${ECHO_T}$AWK" >&6
4390else
4391  echo "$as_me:$LINENO: result: no" >&5
4392echo "${ECHO_T}no" >&6
4393fi
4394
4395  test -n "$AWK" && break
4396done
4397
4398# Find a good install program.  We prefer a C program (faster),
4399# so one script is as good as another.  But avoid the broken or
4400# incompatible versions:
4401# SysV /etc/install, /usr/sbin/install
4402# SunOS /usr/etc/install
4403# IRIX /sbin/install
4404# AIX /bin/install
4405# AmigaOS /C/install, which installs bootblocks on floppy discs
4406# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4407# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4408# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4409# OS/2's system install, which has a completely different semantic
4410# ./install, which can be erroneously created by make from ./install.sh.
4411echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4412echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4413if test -z "$INSTALL"; then
4414if test "${ac_cv_path_install+set}" = set; then
4415  echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
4419do
4420  IFS=$as_save_IFS
4421  test -z "$as_dir" && as_dir=.
4422  # Account for people who put trailing slashes in PATH elements.
4423case $as_dir/ in
4424  ./ | .// | /cC/* | \
4425  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4426  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4427  /usr/ucb/* ) ;;
4428  *)
4429    # OSF1 and SCO ODT 3.0 have their own names for install.
4430    # Don't use installbsd from OSF since it installs stuff as root
4431    # by default.
4432    for ac_prog in ginstall scoinst install; do
4433      for ac_exec_ext in '' $ac_executable_extensions; do
4434	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4435	  if test $ac_prog = install &&
4436	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4437	    # AIX install.  It has an incompatible calling convention.
4438	    :
4439	  elif test $ac_prog = install &&
4440	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4441	    # program-specific install script used by HP pwplus--don't use.
4442	    :
4443	  else
4444	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4445	    break 3
4446	  fi
4447	fi
4448      done
4449    done
4450    ;;
4451esac
4452done
4453
4454
4455fi
4456  if test "${ac_cv_path_install+set}" = set; then
4457    INSTALL=$ac_cv_path_install
4458  else
4459    # As a last resort, use the slow shell script.  We don't cache a
4460    # path for INSTALL within a source directory, because that will
4461    # break other packages using the cache if that directory is
4462    # removed, or if the path is relative.
4463    INSTALL=$ac_install_sh
4464  fi
4465fi
4466echo "$as_me:$LINENO: result: $INSTALL" >&5
4467echo "${ECHO_T}$INSTALL" >&6
4468
4469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4470# It thinks the first close brace ends the variable substitution.
4471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4472
4473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4474
4475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4476
4477echo "$as_me:$LINENO: checking whether ln -s works" >&5
4478echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4479LN_S=$as_ln_s
4480if test "$LN_S" = "ln -s"; then
4481  echo "$as_me:$LINENO: result: yes" >&5
4482echo "${ECHO_T}yes" >&6
4483else
4484  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4485echo "${ECHO_T}no, using $LN_S" >&6
4486fi
4487
4488if test -n "$ac_tool_prefix"; then
4489  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4490set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4491echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493if test "${ac_cv_prog_RANLIB+set}" = set; then
4494  echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496  if test -n "$RANLIB"; then
4497  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4498else
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502  IFS=$as_save_IFS
4503  test -z "$as_dir" && as_dir=.
4504  for ac_exec_ext in '' $ac_executable_extensions; do
4505  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4507    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508    break 2
4509  fi
4510done
4511done
4512
4513fi
4514fi
4515RANLIB=$ac_cv_prog_RANLIB
4516if test -n "$RANLIB"; then
4517  echo "$as_me:$LINENO: result: $RANLIB" >&5
4518echo "${ECHO_T}$RANLIB" >&6
4519else
4520  echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
4522fi
4523
4524fi
4525if test -z "$ac_cv_prog_RANLIB"; then
4526  ac_ct_RANLIB=$RANLIB
4527  # Extract the first word of "ranlib", so it can be a program name with args.
4528set dummy ranlib; ac_word=$2
4529echo "$as_me:$LINENO: checking for $ac_word" >&5
4530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4532  echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534  if test -n "$ac_ct_RANLIB"; then
4535  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4536else
4537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540  IFS=$as_save_IFS
4541  test -z "$as_dir" && as_dir=.
4542  for ac_exec_ext in '' $ac_executable_extensions; do
4543  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544    ac_cv_prog_ac_ct_RANLIB="ranlib"
4545    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546    break 2
4547  fi
4548done
4549done
4550
4551  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4552fi
4553fi
4554ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4555if test -n "$ac_ct_RANLIB"; then
4556  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4557echo "${ECHO_T}$ac_ct_RANLIB" >&6
4558else
4559  echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6
4561fi
4562
4563  RANLIB=$ac_ct_RANLIB
4564else
4565  RANLIB="$ac_cv_prog_RANLIB"
4566fi
4567
4568for ac_prog in 'bison -y' byacc
4569do
4570  # Extract the first word of "$ac_prog", so it can be a program name with args.
4571set dummy $ac_prog; ac_word=$2
4572echo "$as_me:$LINENO: checking for $ac_word" >&5
4573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574if test "${ac_cv_prog_YACC+set}" = set; then
4575  echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577  if test -n "$YACC"; then
4578  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583  IFS=$as_save_IFS
4584  test -z "$as_dir" && as_dir=.
4585  for ac_exec_ext in '' $ac_executable_extensions; do
4586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587    ac_cv_prog_YACC="$ac_prog"
4588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589    break 2
4590  fi
4591done
4592done
4593
4594fi
4595fi
4596YACC=$ac_cv_prog_YACC
4597if test -n "$YACC"; then
4598  echo "$as_me:$LINENO: result: $YACC" >&5
4599echo "${ECHO_T}$YACC" >&6
4600else
4601  echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6
4603fi
4604
4605  test -n "$YACC" && break
4606done
4607test -n "$YACC" || YACC="yacc"
4608
4609
4610if test -n "$ac_tool_prefix"; then
4611  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4612set dummy ${ac_tool_prefix}ar; ac_word=$2
4613echo "$as_me:$LINENO: checking for $ac_word" >&5
4614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4615if test "${ac_cv_prog_AR+set}" = set; then
4616  echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618  if test -n "$AR"; then
4619  ac_cv_prog_AR="$AR" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624  IFS=$as_save_IFS
4625  test -z "$as_dir" && as_dir=.
4626  for ac_exec_ext in '' $ac_executable_extensions; do
4627  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628    ac_cv_prog_AR="${ac_tool_prefix}ar"
4629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630    break 2
4631  fi
4632done
4633done
4634
4635fi
4636fi
4637AR=$ac_cv_prog_AR
4638if test -n "$AR"; then
4639  echo "$as_me:$LINENO: result: $AR" >&5
4640echo "${ECHO_T}$AR" >&6
4641else
4642  echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6
4644fi
4645
4646fi
4647if test -z "$ac_cv_prog_AR"; then
4648  ac_ct_AR=$AR
4649  # Extract the first word of "ar", so it can be a program name with args.
4650set dummy ar; ac_word=$2
4651echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  if test -n "$ac_ct_AR"; then
4657  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664  for ac_exec_ext in '' $ac_executable_extensions; do
4665  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666    ac_cv_prog_ac_ct_AR="ar"
4667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671done
4672
4673fi
4674fi
4675ac_ct_AR=$ac_cv_prog_ac_ct_AR
4676if test -n "$ac_ct_AR"; then
4677  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4678echo "${ECHO_T}$ac_ct_AR" >&6
4679else
4680  echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6
4682fi
4683
4684  AR=$ac_ct_AR
4685else
4686  AR="$ac_cv_prog_AR"
4687fi
4688
4689if test -n "$ac_tool_prefix"; then
4690  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4691set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4692echo "$as_me:$LINENO: checking for $ac_word" >&5
4693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4694if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4695  echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697  if test -n "$DLLTOOL"; then
4698  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703  IFS=$as_save_IFS
4704  test -z "$as_dir" && as_dir=.
4705  for ac_exec_ext in '' $ac_executable_extensions; do
4706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709    break 2
4710  fi
4711done
4712done
4713
4714fi
4715fi
4716DLLTOOL=$ac_cv_prog_DLLTOOL
4717if test -n "$DLLTOOL"; then
4718  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4719echo "${ECHO_T}$DLLTOOL" >&6
4720else
4721  echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6
4723fi
4724
4725fi
4726if test -z "$ac_cv_prog_DLLTOOL"; then
4727  ac_ct_DLLTOOL=$DLLTOOL
4728  # Extract the first word of "dlltool", so it can be a program name with args.
4729set dummy dlltool; ac_word=$2
4730echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4733  echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735  if test -n "$ac_ct_DLLTOOL"; then
4736  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741  IFS=$as_save_IFS
4742  test -z "$as_dir" && as_dir=.
4743  for ac_exec_ext in '' $ac_executable_extensions; do
4744  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747    break 2
4748  fi
4749done
4750done
4751
4752fi
4753fi
4754ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4755if test -n "$ac_ct_DLLTOOL"; then
4756  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4757echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4758else
4759  echo "$as_me:$LINENO: result: no" >&5
4760echo "${ECHO_T}no" >&6
4761fi
4762
4763  DLLTOOL=$ac_ct_DLLTOOL
4764else
4765  DLLTOOL="$ac_cv_prog_DLLTOOL"
4766fi
4767
4768if test -n "$ac_tool_prefix"; then
4769  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4770set dummy ${ac_tool_prefix}windres; ac_word=$2
4771echo "$as_me:$LINENO: checking for $ac_word" >&5
4772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773if test "${ac_cv_prog_WINDRES+set}" = set; then
4774  echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776  if test -n "$WINDRES"; then
4777  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4778else
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782  IFS=$as_save_IFS
4783  test -z "$as_dir" && as_dir=.
4784  for ac_exec_ext in '' $ac_executable_extensions; do
4785  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4787    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788    break 2
4789  fi
4790done
4791done
4792
4793fi
4794fi
4795WINDRES=$ac_cv_prog_WINDRES
4796if test -n "$WINDRES"; then
4797  echo "$as_me:$LINENO: result: $WINDRES" >&5
4798echo "${ECHO_T}$WINDRES" >&6
4799else
4800  echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6
4802fi
4803
4804fi
4805if test -z "$ac_cv_prog_WINDRES"; then
4806  ac_ct_WINDRES=$WINDRES
4807  # Extract the first word of "windres", so it can be a program name with args.
4808set dummy windres; ac_word=$2
4809echo "$as_me:$LINENO: checking for $ac_word" >&5
4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4812  echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814  if test -n "$ac_ct_WINDRES"; then
4815  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4816else
4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820  IFS=$as_save_IFS
4821  test -z "$as_dir" && as_dir=.
4822  for ac_exec_ext in '' $ac_executable_extensions; do
4823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824    ac_cv_prog_ac_ct_WINDRES="windres"
4825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826    break 2
4827  fi
4828done
4829done
4830
4831fi
4832fi
4833ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4834if test -n "$ac_ct_WINDRES"; then
4835  echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4836echo "${ECHO_T}$ac_ct_WINDRES" >&6
4837else
4838  echo "$as_me:$LINENO: result: no" >&5
4839echo "${ECHO_T}no" >&6
4840fi
4841
4842  WINDRES=$ac_ct_WINDRES
4843else
4844  WINDRES="$ac_cv_prog_WINDRES"
4845fi
4846
4847
4848# Needed for GNU/Hurd.
4849if test -n "$ac_tool_prefix"; then
4850  # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4851set dummy ${ac_tool_prefix}mig; ac_word=$2
4852echo "$as_me:$LINENO: checking for $ac_word" >&5
4853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4854if test "${ac_cv_prog_MIG+set}" = set; then
4855  echo $ECHO_N "(cached) $ECHO_C" >&6
4856else
4857  if test -n "$MIG"; then
4858  ac_cv_prog_MIG="$MIG" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863  IFS=$as_save_IFS
4864  test -z "$as_dir" && as_dir=.
4865  for ac_exec_ext in '' $ac_executable_extensions; do
4866  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867    ac_cv_prog_MIG="${ac_tool_prefix}mig"
4868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869    break 2
4870  fi
4871done
4872done
4873
4874fi
4875fi
4876MIG=$ac_cv_prog_MIG
4877if test -n "$MIG"; then
4878  echo "$as_me:$LINENO: result: $MIG" >&5
4879echo "${ECHO_T}$MIG" >&6
4880else
4881  echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883fi
4884
4885fi
4886if test -z "$ac_cv_prog_MIG"; then
4887  ac_ct_MIG=$MIG
4888  # Extract the first word of "mig", so it can be a program name with args.
4889set dummy mig; ac_word=$2
4890echo "$as_me:$LINENO: checking for $ac_word" >&5
4891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4893  echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895  if test -n "$ac_ct_MIG"; then
4896  ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4897else
4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901  IFS=$as_save_IFS
4902  test -z "$as_dir" && as_dir=.
4903  for ac_exec_ext in '' $ac_executable_extensions; do
4904  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905    ac_cv_prog_ac_ct_MIG="mig"
4906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907    break 2
4908  fi
4909done
4910done
4911
4912fi
4913fi
4914ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4915if test -n "$ac_ct_MIG"; then
4916  echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4917echo "${ECHO_T}$ac_ct_MIG" >&6
4918else
4919  echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
4921fi
4922
4923  MIG=$ac_ct_MIG
4924else
4925  MIG="$ac_cv_prog_MIG"
4926fi
4927
4928
4929# ---------------------- #
4930# Checks for libraries.  #
4931# ---------------------- #
4932
4933# We might need to link with -lm; most simulators need it.
4934
4935echo "$as_me:$LINENO: checking for main in -lm" >&5
4936echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4937if test "${ac_cv_lib_m_main+set}" = set; then
4938  echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940  ac_check_lib_save_LIBS=$LIBS
4941LIBS="-lm  $LIBS"
4942cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h.  */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h.  */
4948
4949
4950int
4951main ()
4952{
4953main ();
4954  ;
4955  return 0;
4956}
4957_ACEOF
4958rm -f conftest.$ac_objext conftest$ac_exeext
4959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960  (eval $ac_link) 2>conftest.er1
4961  ac_status=$?
4962  grep -v '^ *+' conftest.er1 >conftest.err
4963  rm -f conftest.er1
4964  cat conftest.err >&5
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); } &&
4967	 { ac_try='test -z "$ac_c_werror_flag"
4968			 || test ! -s conftest.err'
4969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970  (eval $ac_try) 2>&5
4971  ac_status=$?
4972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973  (exit $ac_status); }; } &&
4974	 { ac_try='test -s conftest$ac_exeext'
4975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976  (eval $ac_try) 2>&5
4977  ac_status=$?
4978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979  (exit $ac_status); }; }; then
4980  ac_cv_lib_m_main=yes
4981else
4982  echo "$as_me: failed program was:" >&5
4983sed 's/^/| /' conftest.$ac_ext >&5
4984
4985ac_cv_lib_m_main=no
4986fi
4987rm -f conftest.err conftest.$ac_objext \
4988      conftest$ac_exeext conftest.$ac_ext
4989LIBS=$ac_check_lib_save_LIBS
4990fi
4991echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4992echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4993if test $ac_cv_lib_m_main = yes; then
4994  cat >>confdefs.h <<_ACEOF
4995#define HAVE_LIBM 1
4996_ACEOF
4997
4998  LIBS="-lm $LIBS"
4999
5000fi
5001
5002
5003# We need to link with -lw to get `wctype' on Solaris before Solaris
5004# 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
5005# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5006# is known to have this problem).  Therefore we avoid libw if we can.
5007echo "$as_me:$LINENO: checking for wctype" >&5
5008echo $ECHO_N "checking for wctype... $ECHO_C" >&6
5009if test "${ac_cv_func_wctype+set}" = set; then
5010  echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012  cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h.  */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h.  */
5018/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5019   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5020#define wctype innocuous_wctype
5021
5022/* System header to define __stub macros and hopefully few prototypes,
5023    which can conflict with char wctype (); below.
5024    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025    <limits.h> exists even on freestanding compilers.  */
5026
5027#ifdef __STDC__
5028# include <limits.h>
5029#else
5030# include <assert.h>
5031#endif
5032
5033#undef wctype
5034
5035/* Override any gcc2 internal prototype to avoid an error.  */
5036#ifdef __cplusplus
5037extern "C"
5038{
5039#endif
5040/* We use char because int might match the return type of a gcc2
5041   builtin and then its argument prototype would still apply.  */
5042char wctype ();
5043/* The GNU C library defines this for functions which it implements
5044    to always fail with ENOSYS.  Some functions are actually named
5045    something starting with __ and the normal name is an alias.  */
5046#if defined (__stub_wctype) || defined (__stub___wctype)
5047choke me
5048#else
5049char (*f) () = wctype;
5050#endif
5051#ifdef __cplusplus
5052}
5053#endif
5054
5055int
5056main ()
5057{
5058return f != wctype;
5059  ;
5060  return 0;
5061}
5062_ACEOF
5063rm -f conftest.$ac_objext conftest$ac_exeext
5064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065  (eval $ac_link) 2>conftest.er1
5066  ac_status=$?
5067  grep -v '^ *+' conftest.er1 >conftest.err
5068  rm -f conftest.er1
5069  cat conftest.err >&5
5070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071  (exit $ac_status); } &&
5072	 { ac_try='test -z "$ac_c_werror_flag"
5073			 || test ! -s conftest.err'
5074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075  (eval $ac_try) 2>&5
5076  ac_status=$?
5077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078  (exit $ac_status); }; } &&
5079	 { ac_try='test -s conftest$ac_exeext'
5080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081  (eval $ac_try) 2>&5
5082  ac_status=$?
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); }; }; then
5085  ac_cv_func_wctype=yes
5086else
5087  echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
5090ac_cv_func_wctype=no
5091fi
5092rm -f conftest.err conftest.$ac_objext \
5093      conftest$ac_exeext conftest.$ac_ext
5094fi
5095echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5096echo "${ECHO_T}$ac_cv_func_wctype" >&6
5097if test $ac_cv_func_wctype = yes; then
5098  :
5099else
5100
5101echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5102echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5103if test "${ac_cv_lib_w_wctype+set}" = set; then
5104  echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106  ac_check_lib_save_LIBS=$LIBS
5107LIBS="-lw  $LIBS"
5108cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h.  */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h.  */
5114
5115/* Override any gcc2 internal prototype to avoid an error.  */
5116#ifdef __cplusplus
5117extern "C"
5118#endif
5119/* We use char because int might match the return type of a gcc2
5120   builtin and then its argument prototype would still apply.  */
5121char wctype ();
5122int
5123main ()
5124{
5125wctype ();
5126  ;
5127  return 0;
5128}
5129_ACEOF
5130rm -f conftest.$ac_objext conftest$ac_exeext
5131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5132  (eval $ac_link) 2>conftest.er1
5133  ac_status=$?
5134  grep -v '^ *+' conftest.er1 >conftest.err
5135  rm -f conftest.er1
5136  cat conftest.err >&5
5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); } &&
5139	 { ac_try='test -z "$ac_c_werror_flag"
5140			 || test ! -s conftest.err'
5141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142  (eval $ac_try) 2>&5
5143  ac_status=$?
5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145  (exit $ac_status); }; } &&
5146	 { ac_try='test -s conftest$ac_exeext'
5147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148  (eval $ac_try) 2>&5
5149  ac_status=$?
5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151  (exit $ac_status); }; }; then
5152  ac_cv_lib_w_wctype=yes
5153else
5154  echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
5157ac_cv_lib_w_wctype=no
5158fi
5159rm -f conftest.err conftest.$ac_objext \
5160      conftest$ac_exeext conftest.$ac_ext
5161LIBS=$ac_check_lib_save_LIBS
5162fi
5163echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5164echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5165if test $ac_cv_lib_w_wctype = yes; then
5166  cat >>confdefs.h <<_ACEOF
5167#define HAVE_LIBW 1
5168_ACEOF
5169
5170  LIBS="-lw $LIBS"
5171
5172fi
5173
5174fi
5175
5176
5177# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5178echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5179echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5180if test "${ac_cv_search_gethostbyname+set}" = set; then
5181  echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183  ac_func_search_save_LIBS=$LIBS
5184ac_cv_search_gethostbyname=no
5185cat >conftest.$ac_ext <<_ACEOF
5186/* confdefs.h.  */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h.  */
5191
5192/* Override any gcc2 internal prototype to avoid an error.  */
5193#ifdef __cplusplus
5194extern "C"
5195#endif
5196/* We use char because int might match the return type of a gcc2
5197   builtin and then its argument prototype would still apply.  */
5198char gethostbyname ();
5199int
5200main ()
5201{
5202gethostbyname ();
5203  ;
5204  return 0;
5205}
5206_ACEOF
5207rm -f conftest.$ac_objext conftest$ac_exeext
5208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209  (eval $ac_link) 2>conftest.er1
5210  ac_status=$?
5211  grep -v '^ *+' conftest.er1 >conftest.err
5212  rm -f conftest.er1
5213  cat conftest.err >&5
5214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215  (exit $ac_status); } &&
5216	 { ac_try='test -z "$ac_c_werror_flag"
5217			 || test ! -s conftest.err'
5218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219  (eval $ac_try) 2>&5
5220  ac_status=$?
5221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222  (exit $ac_status); }; } &&
5223	 { ac_try='test -s conftest$ac_exeext'
5224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225  (eval $ac_try) 2>&5
5226  ac_status=$?
5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); }; }; then
5229  ac_cv_search_gethostbyname="none required"
5230else
5231  echo "$as_me: failed program was:" >&5
5232sed 's/^/| /' conftest.$ac_ext >&5
5233
5234fi
5235rm -f conftest.err conftest.$ac_objext \
5236      conftest$ac_exeext conftest.$ac_ext
5237if test "$ac_cv_search_gethostbyname" = no; then
5238  for ac_lib in nsl; do
5239    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5240    cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h.  */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h.  */
5246
5247/* Override any gcc2 internal prototype to avoid an error.  */
5248#ifdef __cplusplus
5249extern "C"
5250#endif
5251/* We use char because int might match the return type of a gcc2
5252   builtin and then its argument prototype would still apply.  */
5253char gethostbyname ();
5254int
5255main ()
5256{
5257gethostbyname ();
5258  ;
5259  return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext conftest$ac_exeext
5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264  (eval $ac_link) 2>conftest.er1
5265  ac_status=$?
5266  grep -v '^ *+' conftest.er1 >conftest.err
5267  rm -f conftest.er1
5268  cat conftest.err >&5
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); } &&
5271	 { ac_try='test -z "$ac_c_werror_flag"
5272			 || test ! -s conftest.err'
5273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274  (eval $ac_try) 2>&5
5275  ac_status=$?
5276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); }; } &&
5278	 { ac_try='test -s conftest$ac_exeext'
5279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280  (eval $ac_try) 2>&5
5281  ac_status=$?
5282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283  (exit $ac_status); }; }; then
5284  ac_cv_search_gethostbyname="-l$ac_lib"
5285break
5286else
5287  echo "$as_me: failed program was:" >&5
5288sed 's/^/| /' conftest.$ac_ext >&5
5289
5290fi
5291rm -f conftest.err conftest.$ac_objext \
5292      conftest$ac_exeext conftest.$ac_ext
5293  done
5294fi
5295LIBS=$ac_func_search_save_LIBS
5296fi
5297echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5298echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5299if test "$ac_cv_search_gethostbyname" != no; then
5300  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5301
5302fi
5303
5304
5305# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5306echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5307echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5308if test "${ac_cv_search_socketpair+set}" = set; then
5309  echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311  ac_func_search_save_LIBS=$LIBS
5312ac_cv_search_socketpair=no
5313cat >conftest.$ac_ext <<_ACEOF
5314/* confdefs.h.  */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h.  */
5319
5320/* Override any gcc2 internal prototype to avoid an error.  */
5321#ifdef __cplusplus
5322extern "C"
5323#endif
5324/* We use char because int might match the return type of a gcc2
5325   builtin and then its argument prototype would still apply.  */
5326char socketpair ();
5327int
5328main ()
5329{
5330socketpair ();
5331  ;
5332  return 0;
5333}
5334_ACEOF
5335rm -f conftest.$ac_objext conftest$ac_exeext
5336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337  (eval $ac_link) 2>conftest.er1
5338  ac_status=$?
5339  grep -v '^ *+' conftest.er1 >conftest.err
5340  rm -f conftest.er1
5341  cat conftest.err >&5
5342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343  (exit $ac_status); } &&
5344	 { ac_try='test -z "$ac_c_werror_flag"
5345			 || test ! -s conftest.err'
5346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347  (eval $ac_try) 2>&5
5348  ac_status=$?
5349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350  (exit $ac_status); }; } &&
5351	 { ac_try='test -s conftest$ac_exeext'
5352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353  (eval $ac_try) 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); }; }; then
5357  ac_cv_search_socketpair="none required"
5358else
5359  echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362fi
5363rm -f conftest.err conftest.$ac_objext \
5364      conftest$ac_exeext conftest.$ac_ext
5365if test "$ac_cv_search_socketpair" = no; then
5366  for ac_lib in socket; do
5367    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5368    cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h.  */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h.  */
5374
5375/* Override any gcc2 internal prototype to avoid an error.  */
5376#ifdef __cplusplus
5377extern "C"
5378#endif
5379/* We use char because int might match the return type of a gcc2
5380   builtin and then its argument prototype would still apply.  */
5381char socketpair ();
5382int
5383main ()
5384{
5385socketpair ();
5386  ;
5387  return 0;
5388}
5389_ACEOF
5390rm -f conftest.$ac_objext conftest$ac_exeext
5391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5392  (eval $ac_link) 2>conftest.er1
5393  ac_status=$?
5394  grep -v '^ *+' conftest.er1 >conftest.err
5395  rm -f conftest.er1
5396  cat conftest.err >&5
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); } &&
5399	 { ac_try='test -z "$ac_c_werror_flag"
5400			 || test ! -s conftest.err'
5401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402  (eval $ac_try) 2>&5
5403  ac_status=$?
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); }; } &&
5406	 { ac_try='test -s conftest$ac_exeext'
5407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408  (eval $ac_try) 2>&5
5409  ac_status=$?
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); }; }; then
5412  ac_cv_search_socketpair="-l$ac_lib"
5413break
5414else
5415  echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
5418fi
5419rm -f conftest.err conftest.$ac_objext \
5420      conftest$ac_exeext conftest.$ac_ext
5421  done
5422fi
5423LIBS=$ac_func_search_save_LIBS
5424fi
5425echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5426echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5427if test "$ac_cv_search_socketpair" != no; then
5428  test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5429
5430fi
5431
5432
5433# For the TUI, we need enhanced curses functionality.
5434#
5435# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5436# curses library because the latter might not provide all the
5437# functionality we need.  However, this leads to problems on systems
5438# where the linker searches /usr/local/lib, but the compiler doesn't
5439# search /usr/local/include, if ncurses is installed in /usr/local.  A
5440# default installation of ncurses on alpha*-dec-osf* will lead to such
5441# a situation.
5442echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5443echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5444if test "${ac_cv_search_waddstr+set}" = set; then
5445  echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447  ac_func_search_save_LIBS=$LIBS
5448ac_cv_search_waddstr=no
5449cat >conftest.$ac_ext <<_ACEOF
5450/* confdefs.h.  */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h.  */
5455
5456/* Override any gcc2 internal prototype to avoid an error.  */
5457#ifdef __cplusplus
5458extern "C"
5459#endif
5460/* We use char because int might match the return type of a gcc2
5461   builtin and then its argument prototype would still apply.  */
5462char waddstr ();
5463int
5464main ()
5465{
5466waddstr ();
5467  ;
5468  return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext conftest$ac_exeext
5472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473  (eval $ac_link) 2>conftest.er1
5474  ac_status=$?
5475  grep -v '^ *+' conftest.er1 >conftest.err
5476  rm -f conftest.er1
5477  cat conftest.err >&5
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); } &&
5480	 { ac_try='test -z "$ac_c_werror_flag"
5481			 || test ! -s conftest.err'
5482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483  (eval $ac_try) 2>&5
5484  ac_status=$?
5485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486  (exit $ac_status); }; } &&
5487	 { ac_try='test -s conftest$ac_exeext'
5488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489  (eval $ac_try) 2>&5
5490  ac_status=$?
5491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); }; }; then
5493  ac_cv_search_waddstr="none required"
5494else
5495  echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498fi
5499rm -f conftest.err conftest.$ac_objext \
5500      conftest$ac_exeext conftest.$ac_ext
5501if test "$ac_cv_search_waddstr" = no; then
5502  for ac_lib in ncurses cursesX curses; do
5503    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5504    cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h.  */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h.  */
5510
5511/* Override any gcc2 internal prototype to avoid an error.  */
5512#ifdef __cplusplus
5513extern "C"
5514#endif
5515/* We use char because int might match the return type of a gcc2
5516   builtin and then its argument prototype would still apply.  */
5517char waddstr ();
5518int
5519main ()
5520{
5521waddstr ();
5522  ;
5523  return 0;
5524}
5525_ACEOF
5526rm -f conftest.$ac_objext conftest$ac_exeext
5527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528  (eval $ac_link) 2>conftest.er1
5529  ac_status=$?
5530  grep -v '^ *+' conftest.er1 >conftest.err
5531  rm -f conftest.er1
5532  cat conftest.err >&5
5533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); } &&
5535	 { ac_try='test -z "$ac_c_werror_flag"
5536			 || test ! -s conftest.err'
5537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538  (eval $ac_try) 2>&5
5539  ac_status=$?
5540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541  (exit $ac_status); }; } &&
5542	 { ac_try='test -s conftest$ac_exeext'
5543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544  (eval $ac_try) 2>&5
5545  ac_status=$?
5546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547  (exit $ac_status); }; }; then
5548  ac_cv_search_waddstr="-l$ac_lib"
5549break
5550else
5551  echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554fi
5555rm -f conftest.err conftest.$ac_objext \
5556      conftest$ac_exeext conftest.$ac_ext
5557  done
5558fi
5559LIBS=$ac_func_search_save_LIBS
5560fi
5561echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5562echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5563if test "$ac_cv_search_waddstr" != no; then
5564  test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5565
5566fi
5567
5568
5569# Since GDB uses Readline, we need termcap functionality.  In many
5570# cases this will be provided by the curses library, but some systems
5571# have a seperate termcap library, or no curses library at all.
5572
5573case $host_os in
5574  cygwin*)
5575    if test -d $srcdir/libtermcap; then
5576      LIBS="../libtermcap/libtermcap.a $LIBS"
5577      ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5578    fi ;;
5579  go32* | *djgpp*)
5580    ac_cv_search_tgetent="none required"
5581    ;;
5582  *mingw32*)
5583    ac_cv_search_tgetent="none required"
5584    CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5585    ;;
5586esac
5587
5588# These are the libraries checked by Readline.
5589echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5590echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5591if test "${ac_cv_search_tgetent+set}" = set; then
5592  echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594  ac_func_search_save_LIBS=$LIBS
5595ac_cv_search_tgetent=no
5596cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h.  */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h.  */
5602
5603/* Override any gcc2 internal prototype to avoid an error.  */
5604#ifdef __cplusplus
5605extern "C"
5606#endif
5607/* We use char because int might match the return type of a gcc2
5608   builtin and then its argument prototype would still apply.  */
5609char tgetent ();
5610int
5611main ()
5612{
5613tgetent ();
5614  ;
5615  return 0;
5616}
5617_ACEOF
5618rm -f conftest.$ac_objext conftest$ac_exeext
5619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620  (eval $ac_link) 2>conftest.er1
5621  ac_status=$?
5622  grep -v '^ *+' conftest.er1 >conftest.err
5623  rm -f conftest.er1
5624  cat conftest.err >&5
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); } &&
5627	 { ac_try='test -z "$ac_c_werror_flag"
5628			 || test ! -s conftest.err'
5629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630  (eval $ac_try) 2>&5
5631  ac_status=$?
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); }; } &&
5634	 { ac_try='test -s conftest$ac_exeext'
5635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636  (eval $ac_try) 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); }; }; then
5640  ac_cv_search_tgetent="none required"
5641else
5642  echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645fi
5646rm -f conftest.err conftest.$ac_objext \
5647      conftest$ac_exeext conftest.$ac_ext
5648if test "$ac_cv_search_tgetent" = no; then
5649  for ac_lib in termcap tinfo curses ncurses; do
5650    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5651    cat >conftest.$ac_ext <<_ACEOF
5652/* confdefs.h.  */
5653_ACEOF
5654cat confdefs.h >>conftest.$ac_ext
5655cat >>conftest.$ac_ext <<_ACEOF
5656/* end confdefs.h.  */
5657
5658/* Override any gcc2 internal prototype to avoid an error.  */
5659#ifdef __cplusplus
5660extern "C"
5661#endif
5662/* We use char because int might match the return type of a gcc2
5663   builtin and then its argument prototype would still apply.  */
5664char tgetent ();
5665int
5666main ()
5667{
5668tgetent ();
5669  ;
5670  return 0;
5671}
5672_ACEOF
5673rm -f conftest.$ac_objext conftest$ac_exeext
5674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675  (eval $ac_link) 2>conftest.er1
5676  ac_status=$?
5677  grep -v '^ *+' conftest.er1 >conftest.err
5678  rm -f conftest.er1
5679  cat conftest.err >&5
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); } &&
5682	 { ac_try='test -z "$ac_c_werror_flag"
5683			 || test ! -s conftest.err'
5684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685  (eval $ac_try) 2>&5
5686  ac_status=$?
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); }; } &&
5689	 { ac_try='test -s conftest$ac_exeext'
5690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691  (eval $ac_try) 2>&5
5692  ac_status=$?
5693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694  (exit $ac_status); }; }; then
5695  ac_cv_search_tgetent="-l$ac_lib"
5696break
5697else
5698  echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
5701fi
5702rm -f conftest.err conftest.$ac_objext \
5703      conftest$ac_exeext conftest.$ac_ext
5704  done
5705fi
5706LIBS=$ac_func_search_save_LIBS
5707fi
5708echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5709echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5710if test "$ac_cv_search_tgetent" != no; then
5711  test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5712
5713fi
5714
5715
5716if test "$ac_cv_search_tgetent" = no; then
5717  { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5718echo "$as_me: error: no termcap library found" >&2;}
5719   { (exit 1); exit 1; }; }
5720fi
5721
5722
5723# Check whether --with-system-readline or --without-system-readline was given.
5724if test "${with_system_readline+set}" = set; then
5725  withval="$with_system_readline"
5726
5727fi;
5728
5729if test "$with_system_readline" = yes; then
5730  READLINE=-lreadline
5731  READLINE_DEPS=
5732  READLINE_CFLAGS=
5733else
5734  READLINE='$(READLINE_DIR)/libreadline.a'
5735  READLINE_DEPS='$(READLINE)'
5736  READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5737fi
5738
5739
5740
5741
5742
5743# Check whether --with-expat or --without-expat was given.
5744if test "${with_expat+set}" = set; then
5745  withval="$with_expat"
5746
5747else
5748  with_expat=auto
5749fi;
5750echo "$as_me:$LINENO: checking whether to use expat" >&5
5751echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5752echo "$as_me:$LINENO: result: $with_expat" >&5
5753echo "${ECHO_T}$with_expat" >&6
5754
5755if test "${with_expat}" = no; then
5756  { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5757echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5758  HAVE_LIBEXPAT=no
5759else
5760
5761      if test "X$prefix" = "XNONE"; then
5762    acl_final_prefix="$ac_default_prefix"
5763  else
5764    acl_final_prefix="$prefix"
5765  fi
5766  if test "X$exec_prefix" = "XNONE"; then
5767    acl_final_exec_prefix='${prefix}'
5768  else
5769    acl_final_exec_prefix="$exec_prefix"
5770  fi
5771  acl_save_prefix="$prefix"
5772  prefix="$acl_final_prefix"
5773  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5774  prefix="$acl_save_prefix"
5775
5776
5777# Check whether --with-gnu-ld or --without-gnu-ld was given.
5778if test "${with_gnu_ld+set}" = set; then
5779  withval="$with_gnu_ld"
5780  test "$withval" = no || with_gnu_ld=yes
5781else
5782  with_gnu_ld=no
5783fi;
5784# Prepare PATH_SEPARATOR.
5785# The user is always right.
5786if test "${PATH_SEPARATOR+set}" != set; then
5787  echo "#! /bin/sh" >conf$$.sh
5788  echo  "exit 0"   >>conf$$.sh
5789  chmod +x conf$$.sh
5790  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5791    PATH_SEPARATOR=';'
5792  else
5793    PATH_SEPARATOR=:
5794  fi
5795  rm -f conf$$.sh
5796fi
5797ac_prog=ld
5798if test "$GCC" = yes; then
5799  # Check if gcc -print-prog-name=ld gives a path.
5800  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5801echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5802  case $host in
5803  *-*-mingw*)
5804    # gcc leaves a trailing carriage return which upsets mingw
5805    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5806  *)
5807    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5808  esac
5809  case $ac_prog in
5810    # Accept absolute paths.
5811    [\\/]* | [A-Za-z]:[\\/]*)
5812      re_direlt='/[^/][^/]*/\.\./'
5813      # Canonicalize the path of ld
5814      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5815      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5816	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5817      done
5818      test -z "$LD" && LD="$ac_prog"
5819      ;;
5820  "")
5821    # If it fails, then pretend we aren't using GCC.
5822    ac_prog=ld
5823    ;;
5824  *)
5825    # If it is relative, then search for the first ld in PATH.
5826    with_gnu_ld=unknown
5827    ;;
5828  esac
5829elif test "$with_gnu_ld" = yes; then
5830  echo "$as_me:$LINENO: checking for GNU ld" >&5
5831echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5832else
5833  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5834echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5835fi
5836if test "${acl_cv_path_LD+set}" = set; then
5837  echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839  if test -z "$LD"; then
5840  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5841  for ac_dir in $PATH; do
5842    test -z "$ac_dir" && ac_dir=.
5843    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5844      acl_cv_path_LD="$ac_dir/$ac_prog"
5845      # Check to see if the program is GNU ld.  I'd rather use --version,
5846      # but apparently some GNU ld's only accept -v.
5847      # Break only if it was the GNU/non-GNU ld that we prefer.
5848      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5849	test "$with_gnu_ld" != no && break
5850      else
5851	test "$with_gnu_ld" != yes && break
5852      fi
5853    fi
5854  done
5855  IFS="$ac_save_ifs"
5856else
5857  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5858fi
5859fi
5860
5861LD="$acl_cv_path_LD"
5862if test -n "$LD"; then
5863  echo "$as_me:$LINENO: result: $LD" >&5
5864echo "${ECHO_T}$LD" >&6
5865else
5866  echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6
5868fi
5869test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5870echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5871   { (exit 1); exit 1; }; }
5872echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5873echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5874if test "${acl_cv_prog_gnu_ld+set}" = set; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5878if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5879  acl_cv_prog_gnu_ld=yes
5880else
5881  acl_cv_prog_gnu_ld=no
5882fi
5883fi
5884echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5885echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5886with_gnu_ld=$acl_cv_prog_gnu_ld
5887
5888
5889
5890                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5891echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5892if test "${acl_cv_rpath+set}" = set; then
5893  echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895
5896    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5897    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5898    . ./conftest.sh
5899    rm -f ./conftest.sh
5900    acl_cv_rpath=done
5901
5902fi
5903echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5904echo "${ECHO_T}$acl_cv_rpath" >&6
5905  wl="$acl_cv_wl"
5906  libext="$acl_cv_libext"
5907  shlibext="$acl_cv_shlibext"
5908  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5909  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5910  hardcode_direct="$acl_cv_hardcode_direct"
5911  hardcode_minus_L="$acl_cv_hardcode_minus_L"
5912    # Check whether --enable-rpath or --disable-rpath was given.
5913if test "${enable_rpath+set}" = set; then
5914  enableval="$enable_rpath"
5915  :
5916else
5917  enable_rpath=yes
5918fi;
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928    use_additional=yes
5929
5930  acl_save_prefix="$prefix"
5931  prefix="$acl_final_prefix"
5932  acl_save_exec_prefix="$exec_prefix"
5933  exec_prefix="$acl_final_exec_prefix"
5934
5935    eval additional_includedir=\"$includedir\"
5936    eval additional_libdir=\"$libdir\"
5937
5938  exec_prefix="$acl_save_exec_prefix"
5939  prefix="$acl_save_prefix"
5940
5941
5942# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5943if test "${with_libexpat_prefix+set}" = set; then
5944  withval="$with_libexpat_prefix"
5945
5946    if test "X$withval" = "Xno"; then
5947      use_additional=no
5948    else
5949      if test "X$withval" = "X"; then
5950
5951  acl_save_prefix="$prefix"
5952  prefix="$acl_final_prefix"
5953  acl_save_exec_prefix="$exec_prefix"
5954  exec_prefix="$acl_final_exec_prefix"
5955
5956          eval additional_includedir=\"$includedir\"
5957          eval additional_libdir=\"$libdir\"
5958
5959  exec_prefix="$acl_save_exec_prefix"
5960  prefix="$acl_save_prefix"
5961
5962      else
5963        additional_includedir="$withval/include"
5964        additional_libdir="$withval/lib"
5965      fi
5966    fi
5967
5968fi;
5969      LIBEXPAT=
5970  LTLIBEXPAT=
5971  INCEXPAT=
5972  rpathdirs=
5973  ltrpathdirs=
5974  names_already_handled=
5975  names_next_round='expat '
5976  while test -n "$names_next_round"; do
5977    names_this_round="$names_next_round"
5978    names_next_round=
5979    for name in $names_this_round; do
5980      already_handled=
5981      for n in $names_already_handled; do
5982        if test "$n" = "$name"; then
5983          already_handled=yes
5984          break
5985        fi
5986      done
5987      if test -z "$already_handled"; then
5988        names_already_handled="$names_already_handled $name"
5989                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5990        eval value=\"\$HAVE_LIB$uppername\"
5991        if test -n "$value"; then
5992          if test "$value" = yes; then
5993            eval value=\"\$LIB$uppername\"
5994            test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5995            eval value=\"\$LTLIB$uppername\"
5996            test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5997          else
5998                                    :
5999          fi
6000        else
6001                              found_dir=
6002          found_la=
6003          found_so=
6004          found_a=
6005          if test $use_additional = yes; then
6006            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6007              found_dir="$additional_libdir"
6008              found_so="$additional_libdir/lib$name.$shlibext"
6009              if test -f "$additional_libdir/lib$name.la"; then
6010                found_la="$additional_libdir/lib$name.la"
6011              fi
6012            else
6013              if test -f "$additional_libdir/lib$name.$libext"; then
6014                found_dir="$additional_libdir"
6015                found_a="$additional_libdir/lib$name.$libext"
6016                if test -f "$additional_libdir/lib$name.la"; then
6017                  found_la="$additional_libdir/lib$name.la"
6018                fi
6019              fi
6020            fi
6021          fi
6022          if test "X$found_dir" = "X"; then
6023            for x in $LDFLAGS $LTLIBEXPAT; do
6024
6025  acl_save_prefix="$prefix"
6026  prefix="$acl_final_prefix"
6027  acl_save_exec_prefix="$exec_prefix"
6028  exec_prefix="$acl_final_exec_prefix"
6029  eval x=\"$x\"
6030  exec_prefix="$acl_save_exec_prefix"
6031  prefix="$acl_save_prefix"
6032
6033              case "$x" in
6034                -L*)
6035                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6036                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6037                    found_dir="$dir"
6038                    found_so="$dir/lib$name.$shlibext"
6039                    if test -f "$dir/lib$name.la"; then
6040                      found_la="$dir/lib$name.la"
6041                    fi
6042                  else
6043                    if test -f "$dir/lib$name.$libext"; then
6044                      found_dir="$dir"
6045                      found_a="$dir/lib$name.$libext"
6046                      if test -f "$dir/lib$name.la"; then
6047                        found_la="$dir/lib$name.la"
6048                      fi
6049                    fi
6050                  fi
6051                  ;;
6052              esac
6053              if test "X$found_dir" != "X"; then
6054                break
6055              fi
6056            done
6057          fi
6058          if test "X$found_dir" != "X"; then
6059                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6060            if test "X$found_so" != "X"; then
6061                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6062                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6063              else
6064                                                                                haveit=
6065                for x in $ltrpathdirs; do
6066                  if test "X$x" = "X$found_dir"; then
6067                    haveit=yes
6068                    break
6069                  fi
6070                done
6071                if test -z "$haveit"; then
6072                  ltrpathdirs="$ltrpathdirs $found_dir"
6073                fi
6074                                if test "$hardcode_direct" = yes; then
6075                                                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6076                else
6077                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6078                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6079                                                            haveit=
6080                    for x in $rpathdirs; do
6081                      if test "X$x" = "X$found_dir"; then
6082                        haveit=yes
6083                        break
6084                      fi
6085                    done
6086                    if test -z "$haveit"; then
6087                      rpathdirs="$rpathdirs $found_dir"
6088                    fi
6089                  else
6090                                                                                haveit=
6091                    for x in $LDFLAGS $LIBEXPAT; do
6092
6093  acl_save_prefix="$prefix"
6094  prefix="$acl_final_prefix"
6095  acl_save_exec_prefix="$exec_prefix"
6096  exec_prefix="$acl_final_exec_prefix"
6097  eval x=\"$x\"
6098  exec_prefix="$acl_save_exec_prefix"
6099  prefix="$acl_save_prefix"
6100
6101                      if test "X$x" = "X-L$found_dir"; then
6102                        haveit=yes
6103                        break
6104                      fi
6105                    done
6106                    if test -z "$haveit"; then
6107                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6108                    fi
6109                    if test "$hardcode_minus_L" != no; then
6110                                                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6111                    else
6112                                                                                                                                                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6113                    fi
6114                  fi
6115                fi
6116              fi
6117            else
6118              if test "X$found_a" != "X"; then
6119                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6120              else
6121                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6122              fi
6123            fi
6124                        additional_includedir=
6125            case "$found_dir" in
6126              */lib | */lib/)
6127                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6128                additional_includedir="$basedir/include"
6129                ;;
6130            esac
6131            if test "X$additional_includedir" != "X"; then
6132                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6133                haveit=
6134                if test "X$additional_includedir" = "X/usr/local/include"; then
6135                  if test -n "$GCC"; then
6136                    case $host_os in
6137                      linux*) haveit=yes;;
6138                    esac
6139                  fi
6140                fi
6141                if test -z "$haveit"; then
6142                  for x in $CPPFLAGS $INCEXPAT; do
6143
6144  acl_save_prefix="$prefix"
6145  prefix="$acl_final_prefix"
6146  acl_save_exec_prefix="$exec_prefix"
6147  exec_prefix="$acl_final_exec_prefix"
6148  eval x=\"$x\"
6149  exec_prefix="$acl_save_exec_prefix"
6150  prefix="$acl_save_prefix"
6151
6152                    if test "X$x" = "X-I$additional_includedir"; then
6153                      haveit=yes
6154                      break
6155                    fi
6156                  done
6157                  if test -z "$haveit"; then
6158                    if test -d "$additional_includedir"; then
6159                                            INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6160                    fi
6161                  fi
6162                fi
6163              fi
6164            fi
6165                        if test -n "$found_la"; then
6166                                                        save_libdir="$libdir"
6167              case "$found_la" in
6168                */* | *\\*) . "$found_la" ;;
6169                *) . "./$found_la" ;;
6170              esac
6171              libdir="$save_libdir"
6172                            for dep in $dependency_libs; do
6173                case "$dep" in
6174                  -L*)
6175                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6176                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
6177                      haveit=
6178                      if test "X$additional_libdir" = "X/usr/local/lib"; then
6179                        if test -n "$GCC"; then
6180                          case $host_os in
6181                            linux*) haveit=yes;;
6182                          esac
6183                        fi
6184                      fi
6185                      if test -z "$haveit"; then
6186                        haveit=
6187                        for x in $LDFLAGS $LIBEXPAT; do
6188
6189  acl_save_prefix="$prefix"
6190  prefix="$acl_final_prefix"
6191  acl_save_exec_prefix="$exec_prefix"
6192  exec_prefix="$acl_final_exec_prefix"
6193  eval x=\"$x\"
6194  exec_prefix="$acl_save_exec_prefix"
6195  prefix="$acl_save_prefix"
6196
6197                          if test "X$x" = "X-L$additional_libdir"; then
6198                            haveit=yes
6199                            break
6200                          fi
6201                        done
6202                        if test -z "$haveit"; then
6203                          if test -d "$additional_libdir"; then
6204                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6205                          fi
6206                        fi
6207                        haveit=
6208                        for x in $LDFLAGS $LTLIBEXPAT; do
6209
6210  acl_save_prefix="$prefix"
6211  prefix="$acl_final_prefix"
6212  acl_save_exec_prefix="$exec_prefix"
6213  exec_prefix="$acl_final_exec_prefix"
6214  eval x=\"$x\"
6215  exec_prefix="$acl_save_exec_prefix"
6216  prefix="$acl_save_prefix"
6217
6218                          if test "X$x" = "X-L$additional_libdir"; then
6219                            haveit=yes
6220                            break
6221                          fi
6222                        done
6223                        if test -z "$haveit"; then
6224                          if test -d "$additional_libdir"; then
6225                                                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6226                          fi
6227                        fi
6228                      fi
6229                    fi
6230                    ;;
6231                  -R*)
6232                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6233                    if test "$enable_rpath" != no; then
6234                                                                  haveit=
6235                      for x in $rpathdirs; do
6236                        if test "X$x" = "X$dir"; then
6237                          haveit=yes
6238                          break
6239                        fi
6240                      done
6241                      if test -z "$haveit"; then
6242                        rpathdirs="$rpathdirs $dir"
6243                      fi
6244                                                                  haveit=
6245                      for x in $ltrpathdirs; do
6246                        if test "X$x" = "X$dir"; then
6247                          haveit=yes
6248                          break
6249                        fi
6250                      done
6251                      if test -z "$haveit"; then
6252                        ltrpathdirs="$ltrpathdirs $dir"
6253                      fi
6254                    fi
6255                    ;;
6256                  -l*)
6257                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6258                    ;;
6259                  *.la)
6260                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6261                    ;;
6262                  *)
6263                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6264                    LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6265                    ;;
6266                esac
6267              done
6268            fi
6269          else
6270                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6271            LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6272          fi
6273        fi
6274      fi
6275    done
6276  done
6277  if test "X$rpathdirs" != "X"; then
6278    if test -n "$hardcode_libdir_separator"; then
6279                        alldirs=
6280      for found_dir in $rpathdirs; do
6281        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6282      done
6283            acl_save_libdir="$libdir"
6284      libdir="$alldirs"
6285      eval flag=\"$hardcode_libdir_flag_spec\"
6286      libdir="$acl_save_libdir"
6287      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6288    else
6289            for found_dir in $rpathdirs; do
6290        acl_save_libdir="$libdir"
6291        libdir="$found_dir"
6292        eval flag=\"$hardcode_libdir_flag_spec\"
6293        libdir="$acl_save_libdir"
6294        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6295      done
6296    fi
6297  fi
6298  if test "X$ltrpathdirs" != "X"; then
6299            for found_dir in $ltrpathdirs; do
6300      LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6301    done
6302  fi
6303
6304
6305        ac_save_CPPFLAGS="$CPPFLAGS"
6306
6307  for element in $INCEXPAT; do
6308    haveit=
6309    for x in $CPPFLAGS; do
6310
6311  acl_save_prefix="$prefix"
6312  prefix="$acl_final_prefix"
6313  acl_save_exec_prefix="$exec_prefix"
6314  exec_prefix="$acl_final_exec_prefix"
6315  eval x=\"$x\"
6316  exec_prefix="$acl_save_exec_prefix"
6317  prefix="$acl_save_prefix"
6318
6319      if test "X$x" = "X$element"; then
6320        haveit=yes
6321        break
6322      fi
6323    done
6324    if test -z "$haveit"; then
6325      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6326    fi
6327  done
6328
6329
6330  echo "$as_me:$LINENO: checking for libexpat" >&5
6331echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6332if test "${ac_cv_libexpat+set}" = set; then
6333  echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335
6336    ac_save_LIBS="$LIBS"
6337    LIBS="$LIBS $LIBEXPAT"
6338    cat >conftest.$ac_ext <<_ACEOF
6339/* confdefs.h.  */
6340_ACEOF
6341cat confdefs.h >>conftest.$ac_ext
6342cat >>conftest.$ac_ext <<_ACEOF
6343/* end confdefs.h.  */
6344#include "expat.h"
6345int
6346main ()
6347{
6348XML_Parser p = XML_ParserCreate (0);
6349  ;
6350  return 0;
6351}
6352_ACEOF
6353rm -f conftest.$ac_objext conftest$ac_exeext
6354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6355  (eval $ac_link) 2>conftest.er1
6356  ac_status=$?
6357  grep -v '^ *+' conftest.er1 >conftest.err
6358  rm -f conftest.er1
6359  cat conftest.err >&5
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); } &&
6362	 { ac_try='test -z "$ac_c_werror_flag"
6363			 || test ! -s conftest.err'
6364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365  (eval $ac_try) 2>&5
6366  ac_status=$?
6367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368  (exit $ac_status); }; } &&
6369	 { ac_try='test -s conftest$ac_exeext'
6370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371  (eval $ac_try) 2>&5
6372  ac_status=$?
6373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); }; }; then
6375  ac_cv_libexpat=yes
6376else
6377  echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380ac_cv_libexpat=no
6381fi
6382rm -f conftest.err conftest.$ac_objext \
6383      conftest$ac_exeext conftest.$ac_ext
6384    LIBS="$ac_save_LIBS"
6385
6386fi
6387echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6388echo "${ECHO_T}$ac_cv_libexpat" >&6
6389  if test "$ac_cv_libexpat" = yes; then
6390    HAVE_LIBEXPAT=yes
6391
6392cat >>confdefs.h <<\_ACEOF
6393#define HAVE_LIBEXPAT 1
6394_ACEOF
6395
6396    echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6397echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6398    echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6399echo "${ECHO_T}$LIBEXPAT" >&6
6400  else
6401    HAVE_LIBEXPAT=no
6402            CPPFLAGS="$ac_save_CPPFLAGS"
6403    LIBEXPAT=
6404    LTLIBEXPAT=
6405  fi
6406
6407
6408
6409
6410
6411
6412  if test "$HAVE_LIBEXPAT" != yes; then
6413    if test "$with_expat" = yes; then
6414      { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6415echo "$as_me: error: expat is missing or unusable" >&2;}
6416   { (exit 1); exit 1; }; }
6417    else
6418      { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6419echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6420    fi
6421  else
6422    save_LIBS=$LIBS
6423    LIBS="$LIBS $LIBEXPAT"
6424
6425for ac_func in XML_StopParser
6426do
6427as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6428echo "$as_me:$LINENO: checking for $ac_func" >&5
6429echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6430if eval "test \"\${$as_ac_var+set}\" = set"; then
6431  echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433  cat >conftest.$ac_ext <<_ACEOF
6434/* confdefs.h.  */
6435_ACEOF
6436cat confdefs.h >>conftest.$ac_ext
6437cat >>conftest.$ac_ext <<_ACEOF
6438/* end confdefs.h.  */
6439/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6440   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6441#define $ac_func innocuous_$ac_func
6442
6443/* System header to define __stub macros and hopefully few prototypes,
6444    which can conflict with char $ac_func (); below.
6445    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446    <limits.h> exists even on freestanding compilers.  */
6447
6448#ifdef __STDC__
6449# include <limits.h>
6450#else
6451# include <assert.h>
6452#endif
6453
6454#undef $ac_func
6455
6456/* Override any gcc2 internal prototype to avoid an error.  */
6457#ifdef __cplusplus
6458extern "C"
6459{
6460#endif
6461/* We use char because int might match the return type of a gcc2
6462   builtin and then its argument prototype would still apply.  */
6463char $ac_func ();
6464/* The GNU C library defines this for functions which it implements
6465    to always fail with ENOSYS.  Some functions are actually named
6466    something starting with __ and the normal name is an alias.  */
6467#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6468choke me
6469#else
6470char (*f) () = $ac_func;
6471#endif
6472#ifdef __cplusplus
6473}
6474#endif
6475
6476int
6477main ()
6478{
6479return f != $ac_func;
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484rm -f conftest.$ac_objext conftest$ac_exeext
6485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486  (eval $ac_link) 2>conftest.er1
6487  ac_status=$?
6488  grep -v '^ *+' conftest.er1 >conftest.err
6489  rm -f conftest.er1
6490  cat conftest.err >&5
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); } &&
6493	 { ac_try='test -z "$ac_c_werror_flag"
6494			 || test ! -s conftest.err'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; } &&
6500	 { ac_try='test -s conftest$ac_exeext'
6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502  (eval $ac_try) 2>&5
6503  ac_status=$?
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); }; }; then
6506  eval "$as_ac_var=yes"
6507else
6508  echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511eval "$as_ac_var=no"
6512fi
6513rm -f conftest.err conftest.$ac_objext \
6514      conftest$ac_exeext conftest.$ac_ext
6515fi
6516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6517echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6518if test `eval echo '${'$as_ac_var'}'` = yes; then
6519  cat >>confdefs.h <<_ACEOF
6520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6521_ACEOF
6522
6523fi
6524done
6525
6526    LIBS=$save_LIBS
6527  fi
6528fi
6529
6530# ------------------------- #
6531# Checks for header files.  #
6532# ------------------------- #
6533
6534
6535
6536
6537
6538
6539ac_header_dirent=no
6540for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6541  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6542echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6543echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6544if eval "test \"\${$as_ac_Header+set}\" = set"; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h.  */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h.  */
6553#include <sys/types.h>
6554#include <$ac_hdr>
6555
6556int
6557main ()
6558{
6559if ((DIR *) 0)
6560return 0;
6561  ;
6562  return 0;
6563}
6564_ACEOF
6565rm -f conftest.$ac_objext
6566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567  (eval $ac_compile) 2>conftest.er1
6568  ac_status=$?
6569  grep -v '^ *+' conftest.er1 >conftest.err
6570  rm -f conftest.er1
6571  cat conftest.err >&5
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); } &&
6574	 { ac_try='test -z "$ac_c_werror_flag"
6575			 || test ! -s conftest.err'
6576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577  (eval $ac_try) 2>&5
6578  ac_status=$?
6579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580  (exit $ac_status); }; } &&
6581	 { ac_try='test -s conftest.$ac_objext'
6582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583  (eval $ac_try) 2>&5
6584  ac_status=$?
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); }; }; then
6587  eval "$as_ac_Header=yes"
6588else
6589  echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
6592eval "$as_ac_Header=no"
6593fi
6594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595fi
6596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6598if test `eval echo '${'$as_ac_Header'}'` = yes; then
6599  cat >>confdefs.h <<_ACEOF
6600#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6601_ACEOF
6602
6603ac_header_dirent=$ac_hdr; break
6604fi
6605
6606done
6607# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6608if test $ac_header_dirent = dirent.h; then
6609  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6610echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6611if test "${ac_cv_search_opendir+set}" = set; then
6612  echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614  ac_func_search_save_LIBS=$LIBS
6615ac_cv_search_opendir=no
6616cat >conftest.$ac_ext <<_ACEOF
6617/* confdefs.h.  */
6618_ACEOF
6619cat confdefs.h >>conftest.$ac_ext
6620cat >>conftest.$ac_ext <<_ACEOF
6621/* end confdefs.h.  */
6622
6623/* Override any gcc2 internal prototype to avoid an error.  */
6624#ifdef __cplusplus
6625extern "C"
6626#endif
6627/* We use char because int might match the return type of a gcc2
6628   builtin and then its argument prototype would still apply.  */
6629char opendir ();
6630int
6631main ()
6632{
6633opendir ();
6634  ;
6635  return 0;
6636}
6637_ACEOF
6638rm -f conftest.$ac_objext conftest$ac_exeext
6639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6640  (eval $ac_link) 2>conftest.er1
6641  ac_status=$?
6642  grep -v '^ *+' conftest.er1 >conftest.err
6643  rm -f conftest.er1
6644  cat conftest.err >&5
6645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); } &&
6647	 { ac_try='test -z "$ac_c_werror_flag"
6648			 || test ! -s conftest.err'
6649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650  (eval $ac_try) 2>&5
6651  ac_status=$?
6652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653  (exit $ac_status); }; } &&
6654	 { ac_try='test -s conftest$ac_exeext'
6655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656  (eval $ac_try) 2>&5
6657  ac_status=$?
6658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); }; }; then
6660  ac_cv_search_opendir="none required"
6661else
6662  echo "$as_me: failed program was:" >&5
6663sed 's/^/| /' conftest.$ac_ext >&5
6664
6665fi
6666rm -f conftest.err conftest.$ac_objext \
6667      conftest$ac_exeext conftest.$ac_ext
6668if test "$ac_cv_search_opendir" = no; then
6669  for ac_lib in dir; do
6670    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6671    cat >conftest.$ac_ext <<_ACEOF
6672/* confdefs.h.  */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h.  */
6677
6678/* Override any gcc2 internal prototype to avoid an error.  */
6679#ifdef __cplusplus
6680extern "C"
6681#endif
6682/* We use char because int might match the return type of a gcc2
6683   builtin and then its argument prototype would still apply.  */
6684char opendir ();
6685int
6686main ()
6687{
6688opendir ();
6689  ;
6690  return 0;
6691}
6692_ACEOF
6693rm -f conftest.$ac_objext conftest$ac_exeext
6694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695  (eval $ac_link) 2>conftest.er1
6696  ac_status=$?
6697  grep -v '^ *+' conftest.er1 >conftest.err
6698  rm -f conftest.er1
6699  cat conftest.err >&5
6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); } &&
6702	 { ac_try='test -z "$ac_c_werror_flag"
6703			 || test ! -s conftest.err'
6704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705  (eval $ac_try) 2>&5
6706  ac_status=$?
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); }; } &&
6709	 { ac_try='test -s conftest$ac_exeext'
6710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711  (eval $ac_try) 2>&5
6712  ac_status=$?
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); }; }; then
6715  ac_cv_search_opendir="-l$ac_lib"
6716break
6717else
6718  echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721fi
6722rm -f conftest.err conftest.$ac_objext \
6723      conftest$ac_exeext conftest.$ac_ext
6724  done
6725fi
6726LIBS=$ac_func_search_save_LIBS
6727fi
6728echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6729echo "${ECHO_T}$ac_cv_search_opendir" >&6
6730if test "$ac_cv_search_opendir" != no; then
6731  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6732
6733fi
6734
6735else
6736  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6737echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6738if test "${ac_cv_search_opendir+set}" = set; then
6739  echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741  ac_func_search_save_LIBS=$LIBS
6742ac_cv_search_opendir=no
6743cat >conftest.$ac_ext <<_ACEOF
6744/* confdefs.h.  */
6745_ACEOF
6746cat confdefs.h >>conftest.$ac_ext
6747cat >>conftest.$ac_ext <<_ACEOF
6748/* end confdefs.h.  */
6749
6750/* Override any gcc2 internal prototype to avoid an error.  */
6751#ifdef __cplusplus
6752extern "C"
6753#endif
6754/* We use char because int might match the return type of a gcc2
6755   builtin and then its argument prototype would still apply.  */
6756char opendir ();
6757int
6758main ()
6759{
6760opendir ();
6761  ;
6762  return 0;
6763}
6764_ACEOF
6765rm -f conftest.$ac_objext conftest$ac_exeext
6766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767  (eval $ac_link) 2>conftest.er1
6768  ac_status=$?
6769  grep -v '^ *+' conftest.er1 >conftest.err
6770  rm -f conftest.er1
6771  cat conftest.err >&5
6772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773  (exit $ac_status); } &&
6774	 { ac_try='test -z "$ac_c_werror_flag"
6775			 || test ! -s conftest.err'
6776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777  (eval $ac_try) 2>&5
6778  ac_status=$?
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); }; } &&
6781	 { ac_try='test -s conftest$ac_exeext'
6782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783  (eval $ac_try) 2>&5
6784  ac_status=$?
6785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786  (exit $ac_status); }; }; then
6787  ac_cv_search_opendir="none required"
6788else
6789  echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792fi
6793rm -f conftest.err conftest.$ac_objext \
6794      conftest$ac_exeext conftest.$ac_ext
6795if test "$ac_cv_search_opendir" = no; then
6796  for ac_lib in x; do
6797    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6798    cat >conftest.$ac_ext <<_ACEOF
6799/* confdefs.h.  */
6800_ACEOF
6801cat confdefs.h >>conftest.$ac_ext
6802cat >>conftest.$ac_ext <<_ACEOF
6803/* end confdefs.h.  */
6804
6805/* Override any gcc2 internal prototype to avoid an error.  */
6806#ifdef __cplusplus
6807extern "C"
6808#endif
6809/* We use char because int might match the return type of a gcc2
6810   builtin and then its argument prototype would still apply.  */
6811char opendir ();
6812int
6813main ()
6814{
6815opendir ();
6816  ;
6817  return 0;
6818}
6819_ACEOF
6820rm -f conftest.$ac_objext conftest$ac_exeext
6821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6822  (eval $ac_link) 2>conftest.er1
6823  ac_status=$?
6824  grep -v '^ *+' conftest.er1 >conftest.err
6825  rm -f conftest.er1
6826  cat conftest.err >&5
6827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828  (exit $ac_status); } &&
6829	 { ac_try='test -z "$ac_c_werror_flag"
6830			 || test ! -s conftest.err'
6831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832  (eval $ac_try) 2>&5
6833  ac_status=$?
6834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835  (exit $ac_status); }; } &&
6836	 { ac_try='test -s conftest$ac_exeext'
6837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838  (eval $ac_try) 2>&5
6839  ac_status=$?
6840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841  (exit $ac_status); }; }; then
6842  ac_cv_search_opendir="-l$ac_lib"
6843break
6844else
6845  echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848fi
6849rm -f conftest.err conftest.$ac_objext \
6850      conftest$ac_exeext conftest.$ac_ext
6851  done
6852fi
6853LIBS=$ac_func_search_save_LIBS
6854fi
6855echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6856echo "${ECHO_T}$ac_cv_search_opendir" >&6
6857if test "$ac_cv_search_opendir" != no; then
6858  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6859
6860fi
6861
6862fi
6863
6864echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6865echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6866if test "${ac_cv_header_stat_broken+set}" = set; then
6867  echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869  cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h.  */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h.  */
6875#include <sys/types.h>
6876#include <sys/stat.h>
6877
6878#if defined(S_ISBLK) && defined(S_IFDIR)
6879# if S_ISBLK (S_IFDIR)
6880You lose.
6881# endif
6882#endif
6883
6884#if defined(S_ISBLK) && defined(S_IFCHR)
6885# if S_ISBLK (S_IFCHR)
6886You lose.
6887# endif
6888#endif
6889
6890#if defined(S_ISLNK) && defined(S_IFREG)
6891# if S_ISLNK (S_IFREG)
6892You lose.
6893# endif
6894#endif
6895
6896#if defined(S_ISSOCK) && defined(S_IFREG)
6897# if S_ISSOCK (S_IFREG)
6898You lose.
6899# endif
6900#endif
6901
6902_ACEOF
6903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6904  $EGREP "You lose" >/dev/null 2>&1; then
6905  ac_cv_header_stat_broken=yes
6906else
6907  ac_cv_header_stat_broken=no
6908fi
6909rm -f conftest*
6910
6911fi
6912echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6913echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6914if test $ac_cv_header_stat_broken = yes; then
6915
6916cat >>confdefs.h <<\_ACEOF
6917#define STAT_MACROS_BROKEN 1
6918_ACEOF
6919
6920fi
6921
6922echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6923echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6924if test "${ac_cv_header_stdc+set}" = set; then
6925  echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927  cat >conftest.$ac_ext <<_ACEOF
6928/* confdefs.h.  */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h.  */
6933#include <stdlib.h>
6934#include <stdarg.h>
6935#include <string.h>
6936#include <float.h>
6937
6938int
6939main ()
6940{
6941
6942  ;
6943  return 0;
6944}
6945_ACEOF
6946rm -f conftest.$ac_objext
6947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948  (eval $ac_compile) 2>conftest.er1
6949  ac_status=$?
6950  grep -v '^ *+' conftest.er1 >conftest.err
6951  rm -f conftest.er1
6952  cat conftest.err >&5
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); } &&
6955	 { ac_try='test -z "$ac_c_werror_flag"
6956			 || test ! -s conftest.err'
6957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958  (eval $ac_try) 2>&5
6959  ac_status=$?
6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); }; } &&
6962	 { ac_try='test -s conftest.$ac_objext'
6963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964  (eval $ac_try) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); }; }; then
6968  ac_cv_header_stdc=yes
6969else
6970  echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973ac_cv_header_stdc=no
6974fi
6975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6976
6977if test $ac_cv_header_stdc = yes; then
6978  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6979  cat >conftest.$ac_ext <<_ACEOF
6980/* confdefs.h.  */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h.  */
6985#include <string.h>
6986
6987_ACEOF
6988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6989  $EGREP "memchr" >/dev/null 2>&1; then
6990  :
6991else
6992  ac_cv_header_stdc=no
6993fi
6994rm -f conftest*
6995
6996fi
6997
6998if test $ac_cv_header_stdc = yes; then
6999  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7000  cat >conftest.$ac_ext <<_ACEOF
7001/* confdefs.h.  */
7002_ACEOF
7003cat confdefs.h >>conftest.$ac_ext
7004cat >>conftest.$ac_ext <<_ACEOF
7005/* end confdefs.h.  */
7006#include <stdlib.h>
7007
7008_ACEOF
7009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010  $EGREP "free" >/dev/null 2>&1; then
7011  :
7012else
7013  ac_cv_header_stdc=no
7014fi
7015rm -f conftest*
7016
7017fi
7018
7019if test $ac_cv_header_stdc = yes; then
7020  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7021  if test "$cross_compiling" = yes; then
7022  :
7023else
7024  cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h.  */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h.  */
7030#include <ctype.h>
7031#if ((' ' & 0x0FF) == 0x020)
7032# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7033# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7034#else
7035# define ISLOWER(c) \
7036		   (('a' <= (c) && (c) <= 'i') \
7037		     || ('j' <= (c) && (c) <= 'r') \
7038		     || ('s' <= (c) && (c) <= 'z'))
7039# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7040#endif
7041
7042#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7043int
7044main ()
7045{
7046  int i;
7047  for (i = 0; i < 256; i++)
7048    if (XOR (islower (i), ISLOWER (i))
7049	|| toupper (i) != TOUPPER (i))
7050      exit(2);
7051  exit (0);
7052}
7053_ACEOF
7054rm -f conftest$ac_exeext
7055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056  (eval $ac_link) 2>&5
7057  ac_status=$?
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061  (eval $ac_try) 2>&5
7062  ac_status=$?
7063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064  (exit $ac_status); }; }; then
7065  :
7066else
7067  echo "$as_me: program exited with status $ac_status" >&5
7068echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071( exit $ac_status )
7072ac_cv_header_stdc=no
7073fi
7074rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7075fi
7076fi
7077fi
7078echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7079echo "${ECHO_T}$ac_cv_header_stdc" >&6
7080if test $ac_cv_header_stdc = yes; then
7081
7082cat >>confdefs.h <<\_ACEOF
7083#define STDC_HEADERS 1
7084_ACEOF
7085
7086fi
7087
7088
7089for ac_header in nlist.h
7090do
7091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7092if eval "test \"\${$as_ac_Header+set}\" = set"; then
7093  echo "$as_me:$LINENO: checking for $ac_header" >&5
7094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7095if eval "test \"\${$as_ac_Header+set}\" = set"; then
7096  echo $ECHO_N "(cached) $ECHO_C" >&6
7097fi
7098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7100else
7101  # Is the header compilable?
7102echo "$as_me:$LINENO: checking $ac_header usability" >&5
7103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7104cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h.  */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h.  */
7110$ac_includes_default
7111#include <$ac_header>
7112_ACEOF
7113rm -f conftest.$ac_objext
7114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115  (eval $ac_compile) 2>conftest.er1
7116  ac_status=$?
7117  grep -v '^ *+' conftest.er1 >conftest.err
7118  rm -f conftest.er1
7119  cat conftest.err >&5
7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121  (exit $ac_status); } &&
7122	 { ac_try='test -z "$ac_c_werror_flag"
7123			 || test ! -s conftest.err'
7124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125  (eval $ac_try) 2>&5
7126  ac_status=$?
7127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128  (exit $ac_status); }; } &&
7129	 { ac_try='test -s conftest.$ac_objext'
7130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131  (eval $ac_try) 2>&5
7132  ac_status=$?
7133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134  (exit $ac_status); }; }; then
7135  ac_header_compiler=yes
7136else
7137  echo "$as_me: failed program was:" >&5
7138sed 's/^/| /' conftest.$ac_ext >&5
7139
7140ac_header_compiler=no
7141fi
7142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7144echo "${ECHO_T}$ac_header_compiler" >&6
7145
7146# Is the header present?
7147echo "$as_me:$LINENO: checking $ac_header presence" >&5
7148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7149cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h.  */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h.  */
7155#include <$ac_header>
7156_ACEOF
7157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7158  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7159  ac_status=$?
7160  grep -v '^ *+' conftest.er1 >conftest.err
7161  rm -f conftest.er1
7162  cat conftest.err >&5
7163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164  (exit $ac_status); } >/dev/null; then
7165  if test -s conftest.err; then
7166    ac_cpp_err=$ac_c_preproc_warn_flag
7167    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7168  else
7169    ac_cpp_err=
7170  fi
7171else
7172  ac_cpp_err=yes
7173fi
7174if test -z "$ac_cpp_err"; then
7175  ac_header_preproc=yes
7176else
7177  echo "$as_me: failed program was:" >&5
7178sed 's/^/| /' conftest.$ac_ext >&5
7179
7180  ac_header_preproc=no
7181fi
7182rm -f conftest.err conftest.$ac_ext
7183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7184echo "${ECHO_T}$ac_header_preproc" >&6
7185
7186# So?  What about this header?
7187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7188  yes:no: )
7189    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7191    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7193    ac_header_preproc=yes
7194    ;;
7195  no:yes:* )
7196    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7198    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7199echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7200    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7202    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7203echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7204    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7206    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7208    (
7209      cat <<\_ASBOX
7210## ------------------------------------------ ##
7211## Report this to the AC_PACKAGE_NAME lists.  ##
7212## ------------------------------------------ ##
7213_ASBOX
7214    ) |
7215      sed "s/^/$as_me: WARNING:     /" >&2
7216    ;;
7217esac
7218echo "$as_me:$LINENO: checking for $ac_header" >&5
7219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7220if eval "test \"\${$as_ac_Header+set}\" = set"; then
7221  echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223  eval "$as_ac_Header=\$ac_header_preproc"
7224fi
7225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7227
7228fi
7229if test `eval echo '${'$as_ac_Header'}'` = yes; then
7230  cat >>confdefs.h <<_ACEOF
7231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7232_ACEOF
7233
7234fi
7235
7236done
7237
7238
7239for ac_header in link.h
7240do
7241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7242echo "$as_me:$LINENO: checking for $ac_header" >&5
7243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245  echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247  cat >conftest.$ac_ext <<_ACEOF
7248/* confdefs.h.  */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h.  */
7253#if HAVE_SYS_TYPES_H
7254# include <sys/types.h>
7255#endif
7256#if HAVE_NLIST_H
7257# include <nlist.h>
7258#endif
7259
7260
7261#include <$ac_header>
7262_ACEOF
7263rm -f conftest.$ac_objext
7264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265  (eval $ac_compile) 2>conftest.er1
7266  ac_status=$?
7267  grep -v '^ *+' conftest.er1 >conftest.err
7268  rm -f conftest.er1
7269  cat conftest.err >&5
7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); } &&
7272	 { ac_try='test -z "$ac_c_werror_flag"
7273			 || test ! -s conftest.err'
7274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275  (eval $ac_try) 2>&5
7276  ac_status=$?
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); }; } &&
7279	 { ac_try='test -s conftest.$ac_objext'
7280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281  (eval $ac_try) 2>&5
7282  ac_status=$?
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); }; }; then
7285  eval "$as_ac_Header=yes"
7286else
7287  echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
7289
7290eval "$as_ac_Header=no"
7291fi
7292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7293fi
7294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296if test `eval echo '${'$as_ac_Header'}'` = yes; then
7297  cat >>confdefs.h <<_ACEOF
7298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299_ACEOF
7300
7301fi
7302
7303done
7304
7305
7306for ac_header in machine/reg.h
7307do
7308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7309if eval "test \"\${$as_ac_Header+set}\" = set"; then
7310  echo "$as_me:$LINENO: checking for $ac_header" >&5
7311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7312if eval "test \"\${$as_ac_Header+set}\" = set"; then
7313  echo $ECHO_N "(cached) $ECHO_C" >&6
7314fi
7315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7317else
7318  # Is the header compilable?
7319echo "$as_me:$LINENO: checking $ac_header usability" >&5
7320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7321cat >conftest.$ac_ext <<_ACEOF
7322/* confdefs.h.  */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h.  */
7327$ac_includes_default
7328#include <$ac_header>
7329_ACEOF
7330rm -f conftest.$ac_objext
7331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332  (eval $ac_compile) 2>conftest.er1
7333  ac_status=$?
7334  grep -v '^ *+' conftest.er1 >conftest.err
7335  rm -f conftest.er1
7336  cat conftest.err >&5
7337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338  (exit $ac_status); } &&
7339	 { ac_try='test -z "$ac_c_werror_flag"
7340			 || test ! -s conftest.err'
7341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342  (eval $ac_try) 2>&5
7343  ac_status=$?
7344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345  (exit $ac_status); }; } &&
7346	 { ac_try='test -s conftest.$ac_objext'
7347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348  (eval $ac_try) 2>&5
7349  ac_status=$?
7350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351  (exit $ac_status); }; }; then
7352  ac_header_compiler=yes
7353else
7354  echo "$as_me: failed program was:" >&5
7355sed 's/^/| /' conftest.$ac_ext >&5
7356
7357ac_header_compiler=no
7358fi
7359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7361echo "${ECHO_T}$ac_header_compiler" >&6
7362
7363# Is the header present?
7364echo "$as_me:$LINENO: checking $ac_header presence" >&5
7365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7366cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h.  */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h.  */
7372#include <$ac_header>
7373_ACEOF
7374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7375  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7376  ac_status=$?
7377  grep -v '^ *+' conftest.er1 >conftest.err
7378  rm -f conftest.er1
7379  cat conftest.err >&5
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); } >/dev/null; then
7382  if test -s conftest.err; then
7383    ac_cpp_err=$ac_c_preproc_warn_flag
7384    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7385  else
7386    ac_cpp_err=
7387  fi
7388else
7389  ac_cpp_err=yes
7390fi
7391if test -z "$ac_cpp_err"; then
7392  ac_header_preproc=yes
7393else
7394  echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397  ac_header_preproc=no
7398fi
7399rm -f conftest.err conftest.$ac_ext
7400echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7401echo "${ECHO_T}$ac_header_preproc" >&6
7402
7403# So?  What about this header?
7404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7405  yes:no: )
7406    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7408    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7410    ac_header_preproc=yes
7411    ;;
7412  no:yes:* )
7413    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7415    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7416echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7417    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7419    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7420echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7421    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7423    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7425    (
7426      cat <<\_ASBOX
7427## ------------------------------------------ ##
7428## Report this to the AC_PACKAGE_NAME lists.  ##
7429## ------------------------------------------ ##
7430_ASBOX
7431    ) |
7432      sed "s/^/$as_me: WARNING:     /" >&2
7433    ;;
7434esac
7435echo "$as_me:$LINENO: checking for $ac_header" >&5
7436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7437if eval "test \"\${$as_ac_Header+set}\" = set"; then
7438  echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440  eval "$as_ac_Header=\$ac_header_preproc"
7441fi
7442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7444
7445fi
7446if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447  cat >>confdefs.h <<_ACEOF
7448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449_ACEOF
7450
7451fi
7452
7453done
7454
7455
7456
7457for ac_header in poll.h sys/poll.h
7458do
7459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7460if eval "test \"\${$as_ac_Header+set}\" = set"; then
7461  echo "$as_me:$LINENO: checking for $ac_header" >&5
7462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7463if eval "test \"\${$as_ac_Header+set}\" = set"; then
7464  echo $ECHO_N "(cached) $ECHO_C" >&6
7465fi
7466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7468else
7469  # Is the header compilable?
7470echo "$as_me:$LINENO: checking $ac_header usability" >&5
7471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7472cat >conftest.$ac_ext <<_ACEOF
7473/* confdefs.h.  */
7474_ACEOF
7475cat confdefs.h >>conftest.$ac_ext
7476cat >>conftest.$ac_ext <<_ACEOF
7477/* end confdefs.h.  */
7478$ac_includes_default
7479#include <$ac_header>
7480_ACEOF
7481rm -f conftest.$ac_objext
7482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483  (eval $ac_compile) 2>conftest.er1
7484  ac_status=$?
7485  grep -v '^ *+' conftest.er1 >conftest.err
7486  rm -f conftest.er1
7487  cat conftest.err >&5
7488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489  (exit $ac_status); } &&
7490	 { ac_try='test -z "$ac_c_werror_flag"
7491			 || test ! -s conftest.err'
7492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493  (eval $ac_try) 2>&5
7494  ac_status=$?
7495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496  (exit $ac_status); }; } &&
7497	 { ac_try='test -s conftest.$ac_objext'
7498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499  (eval $ac_try) 2>&5
7500  ac_status=$?
7501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502  (exit $ac_status); }; }; then
7503  ac_header_compiler=yes
7504else
7505  echo "$as_me: failed program was:" >&5
7506sed 's/^/| /' conftest.$ac_ext >&5
7507
7508ac_header_compiler=no
7509fi
7510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7512echo "${ECHO_T}$ac_header_compiler" >&6
7513
7514# Is the header present?
7515echo "$as_me:$LINENO: checking $ac_header presence" >&5
7516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7517cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h.  */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h.  */
7523#include <$ac_header>
7524_ACEOF
7525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7526  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7527  ac_status=$?
7528  grep -v '^ *+' conftest.er1 >conftest.err
7529  rm -f conftest.er1
7530  cat conftest.err >&5
7531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532  (exit $ac_status); } >/dev/null; then
7533  if test -s conftest.err; then
7534    ac_cpp_err=$ac_c_preproc_warn_flag
7535    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7536  else
7537    ac_cpp_err=
7538  fi
7539else
7540  ac_cpp_err=yes
7541fi
7542if test -z "$ac_cpp_err"; then
7543  ac_header_preproc=yes
7544else
7545  echo "$as_me: failed program was:" >&5
7546sed 's/^/| /' conftest.$ac_ext >&5
7547
7548  ac_header_preproc=no
7549fi
7550rm -f conftest.err conftest.$ac_ext
7551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7552echo "${ECHO_T}$ac_header_preproc" >&6
7553
7554# So?  What about this header?
7555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7556  yes:no: )
7557    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7559    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7561    ac_header_preproc=yes
7562    ;;
7563  no:yes:* )
7564    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7566    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7567echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7568    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7570    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7571echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7572    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7574    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7576    (
7577      cat <<\_ASBOX
7578## ------------------------------------------ ##
7579## Report this to the AC_PACKAGE_NAME lists.  ##
7580## ------------------------------------------ ##
7581_ASBOX
7582    ) |
7583      sed "s/^/$as_me: WARNING:     /" >&2
7584    ;;
7585esac
7586echo "$as_me:$LINENO: checking for $ac_header" >&5
7587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7588if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589  echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591  eval "$as_ac_Header=\$ac_header_preproc"
7592fi
7593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7595
7596fi
7597if test `eval echo '${'$as_ac_Header'}'` = yes; then
7598  cat >>confdefs.h <<_ACEOF
7599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7600_ACEOF
7601
7602fi
7603
7604done
7605
7606
7607
7608
7609for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7610do
7611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612if eval "test \"\${$as_ac_Header+set}\" = set"; then
7613  echo "$as_me:$LINENO: checking for $ac_header" >&5
7614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7615if eval "test \"\${$as_ac_Header+set}\" = set"; then
7616  echo $ECHO_N "(cached) $ECHO_C" >&6
7617fi
7618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7620else
7621  # Is the header compilable?
7622echo "$as_me:$LINENO: checking $ac_header usability" >&5
7623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7624cat >conftest.$ac_ext <<_ACEOF
7625/* confdefs.h.  */
7626_ACEOF
7627cat confdefs.h >>conftest.$ac_ext
7628cat >>conftest.$ac_ext <<_ACEOF
7629/* end confdefs.h.  */
7630$ac_includes_default
7631#include <$ac_header>
7632_ACEOF
7633rm -f conftest.$ac_objext
7634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635  (eval $ac_compile) 2>conftest.er1
7636  ac_status=$?
7637  grep -v '^ *+' conftest.er1 >conftest.err
7638  rm -f conftest.er1
7639  cat conftest.err >&5
7640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641  (exit $ac_status); } &&
7642	 { ac_try='test -z "$ac_c_werror_flag"
7643			 || test ! -s conftest.err'
7644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645  (eval $ac_try) 2>&5
7646  ac_status=$?
7647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648  (exit $ac_status); }; } &&
7649	 { ac_try='test -s conftest.$ac_objext'
7650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651  (eval $ac_try) 2>&5
7652  ac_status=$?
7653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654  (exit $ac_status); }; }; then
7655  ac_header_compiler=yes
7656else
7657  echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660ac_header_compiler=no
7661fi
7662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7664echo "${ECHO_T}$ac_header_compiler" >&6
7665
7666# Is the header present?
7667echo "$as_me:$LINENO: checking $ac_header presence" >&5
7668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7669cat >conftest.$ac_ext <<_ACEOF
7670/* confdefs.h.  */
7671_ACEOF
7672cat confdefs.h >>conftest.$ac_ext
7673cat >>conftest.$ac_ext <<_ACEOF
7674/* end confdefs.h.  */
7675#include <$ac_header>
7676_ACEOF
7677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7678  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7679  ac_status=$?
7680  grep -v '^ *+' conftest.er1 >conftest.err
7681  rm -f conftest.er1
7682  cat conftest.err >&5
7683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684  (exit $ac_status); } >/dev/null; then
7685  if test -s conftest.err; then
7686    ac_cpp_err=$ac_c_preproc_warn_flag
7687    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7688  else
7689    ac_cpp_err=
7690  fi
7691else
7692  ac_cpp_err=yes
7693fi
7694if test -z "$ac_cpp_err"; then
7695  ac_header_preproc=yes
7696else
7697  echo "$as_me: failed program was:" >&5
7698sed 's/^/| /' conftest.$ac_ext >&5
7699
7700  ac_header_preproc=no
7701fi
7702rm -f conftest.err conftest.$ac_ext
7703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7704echo "${ECHO_T}$ac_header_preproc" >&6
7705
7706# So?  What about this header?
7707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7708  yes:no: )
7709    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7711    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7713    ac_header_preproc=yes
7714    ;;
7715  no:yes:* )
7716    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7718    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7719echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7720    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7722    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7723echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7724    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7726    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7728    (
7729      cat <<\_ASBOX
7730## ------------------------------------------ ##
7731## Report this to the AC_PACKAGE_NAME lists.  ##
7732## ------------------------------------------ ##
7733_ASBOX
7734    ) |
7735      sed "s/^/$as_me: WARNING:     /" >&2
7736    ;;
7737esac
7738echo "$as_me:$LINENO: checking for $ac_header" >&5
7739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7740if eval "test \"\${$as_ac_Header+set}\" = set"; then
7741  echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743  eval "$as_ac_Header=\$ac_header_preproc"
7744fi
7745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7747
7748fi
7749if test `eval echo '${'$as_ac_Header'}'` = yes; then
7750  cat >>confdefs.h <<_ACEOF
7751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7752_ACEOF
7753
7754fi
7755
7756done
7757
7758
7759for ac_header in signal.h
7760do
7761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7762if eval "test \"\${$as_ac_Header+set}\" = set"; then
7763  echo "$as_me:$LINENO: checking for $ac_header" >&5
7764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7765if eval "test \"\${$as_ac_Header+set}\" = set"; then
7766  echo $ECHO_N "(cached) $ECHO_C" >&6
7767fi
7768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7770else
7771  # Is the header compilable?
7772echo "$as_me:$LINENO: checking $ac_header usability" >&5
7773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7774cat >conftest.$ac_ext <<_ACEOF
7775/* confdefs.h.  */
7776_ACEOF
7777cat confdefs.h >>conftest.$ac_ext
7778cat >>conftest.$ac_ext <<_ACEOF
7779/* end confdefs.h.  */
7780$ac_includes_default
7781#include <$ac_header>
7782_ACEOF
7783rm -f conftest.$ac_objext
7784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785  (eval $ac_compile) 2>conftest.er1
7786  ac_status=$?
7787  grep -v '^ *+' conftest.er1 >conftest.err
7788  rm -f conftest.er1
7789  cat conftest.err >&5
7790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791  (exit $ac_status); } &&
7792	 { ac_try='test -z "$ac_c_werror_flag"
7793			 || test ! -s conftest.err'
7794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795  (eval $ac_try) 2>&5
7796  ac_status=$?
7797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798  (exit $ac_status); }; } &&
7799	 { ac_try='test -s conftest.$ac_objext'
7800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801  (eval $ac_try) 2>&5
7802  ac_status=$?
7803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); }; }; then
7805  ac_header_compiler=yes
7806else
7807  echo "$as_me: failed program was:" >&5
7808sed 's/^/| /' conftest.$ac_ext >&5
7809
7810ac_header_compiler=no
7811fi
7812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7814echo "${ECHO_T}$ac_header_compiler" >&6
7815
7816# Is the header present?
7817echo "$as_me:$LINENO: checking $ac_header presence" >&5
7818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7819cat >conftest.$ac_ext <<_ACEOF
7820/* confdefs.h.  */
7821_ACEOF
7822cat confdefs.h >>conftest.$ac_ext
7823cat >>conftest.$ac_ext <<_ACEOF
7824/* end confdefs.h.  */
7825#include <$ac_header>
7826_ACEOF
7827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7829  ac_status=$?
7830  grep -v '^ *+' conftest.er1 >conftest.err
7831  rm -f conftest.er1
7832  cat conftest.err >&5
7833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834  (exit $ac_status); } >/dev/null; then
7835  if test -s conftest.err; then
7836    ac_cpp_err=$ac_c_preproc_warn_flag
7837    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7838  else
7839    ac_cpp_err=
7840  fi
7841else
7842  ac_cpp_err=yes
7843fi
7844if test -z "$ac_cpp_err"; then
7845  ac_header_preproc=yes
7846else
7847  echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850  ac_header_preproc=no
7851fi
7852rm -f conftest.err conftest.$ac_ext
7853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7854echo "${ECHO_T}$ac_header_preproc" >&6
7855
7856# So?  What about this header?
7857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7858  yes:no: )
7859    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7861    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7863    ac_header_preproc=yes
7864    ;;
7865  no:yes:* )
7866    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7868    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7869echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7870    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7872    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7873echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7876    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7878    (
7879      cat <<\_ASBOX
7880## ------------------------------------------ ##
7881## Report this to the AC_PACKAGE_NAME lists.  ##
7882## ------------------------------------------ ##
7883_ASBOX
7884    ) |
7885      sed "s/^/$as_me: WARNING:     /" >&2
7886    ;;
7887esac
7888echo "$as_me:$LINENO: checking for $ac_header" >&5
7889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7890if eval "test \"\${$as_ac_Header+set}\" = set"; then
7891  echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893  eval "$as_ac_Header=\$ac_header_preproc"
7894fi
7895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7897
7898fi
7899if test `eval echo '${'$as_ac_Header'}'` = yes; then
7900  cat >>confdefs.h <<_ACEOF
7901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7902_ACEOF
7903
7904fi
7905
7906done
7907
7908
7909for ac_header in stddef.h
7910do
7911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7912if eval "test \"\${$as_ac_Header+set}\" = set"; then
7913  echo "$as_me:$LINENO: checking for $ac_header" >&5
7914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7915if eval "test \"\${$as_ac_Header+set}\" = set"; then
7916  echo $ECHO_N "(cached) $ECHO_C" >&6
7917fi
7918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7920else
7921  # Is the header compilable?
7922echo "$as_me:$LINENO: checking $ac_header usability" >&5
7923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7924cat >conftest.$ac_ext <<_ACEOF
7925/* confdefs.h.  */
7926_ACEOF
7927cat confdefs.h >>conftest.$ac_ext
7928cat >>conftest.$ac_ext <<_ACEOF
7929/* end confdefs.h.  */
7930$ac_includes_default
7931#include <$ac_header>
7932_ACEOF
7933rm -f conftest.$ac_objext
7934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935  (eval $ac_compile) 2>conftest.er1
7936  ac_status=$?
7937  grep -v '^ *+' conftest.er1 >conftest.err
7938  rm -f conftest.er1
7939  cat conftest.err >&5
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); } &&
7942	 { ac_try='test -z "$ac_c_werror_flag"
7943			 || test ! -s conftest.err'
7944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945  (eval $ac_try) 2>&5
7946  ac_status=$?
7947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948  (exit $ac_status); }; } &&
7949	 { ac_try='test -s conftest.$ac_objext'
7950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951  (eval $ac_try) 2>&5
7952  ac_status=$?
7953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954  (exit $ac_status); }; }; then
7955  ac_header_compiler=yes
7956else
7957  echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960ac_header_compiler=no
7961fi
7962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7964echo "${ECHO_T}$ac_header_compiler" >&6
7965
7966# Is the header present?
7967echo "$as_me:$LINENO: checking $ac_header presence" >&5
7968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7969cat >conftest.$ac_ext <<_ACEOF
7970/* confdefs.h.  */
7971_ACEOF
7972cat confdefs.h >>conftest.$ac_ext
7973cat >>conftest.$ac_ext <<_ACEOF
7974/* end confdefs.h.  */
7975#include <$ac_header>
7976_ACEOF
7977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7978  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7979  ac_status=$?
7980  grep -v '^ *+' conftest.er1 >conftest.err
7981  rm -f conftest.er1
7982  cat conftest.err >&5
7983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984  (exit $ac_status); } >/dev/null; then
7985  if test -s conftest.err; then
7986    ac_cpp_err=$ac_c_preproc_warn_flag
7987    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7988  else
7989    ac_cpp_err=
7990  fi
7991else
7992  ac_cpp_err=yes
7993fi
7994if test -z "$ac_cpp_err"; then
7995  ac_header_preproc=yes
7996else
7997  echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
8000  ac_header_preproc=no
8001fi
8002rm -f conftest.err conftest.$ac_ext
8003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8004echo "${ECHO_T}$ac_header_preproc" >&6
8005
8006# So?  What about this header?
8007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8008  yes:no: )
8009    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8012echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8013    ac_header_preproc=yes
8014    ;;
8015  no:yes:* )
8016    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8017echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8018    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8019echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8020    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8021echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8022    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8023echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8024    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8026    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8027echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8028    (
8029      cat <<\_ASBOX
8030## ------------------------------------------ ##
8031## Report this to the AC_PACKAGE_NAME lists.  ##
8032## ------------------------------------------ ##
8033_ASBOX
8034    ) |
8035      sed "s/^/$as_me: WARNING:     /" >&2
8036    ;;
8037esac
8038echo "$as_me:$LINENO: checking for $ac_header" >&5
8039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8040if eval "test \"\${$as_ac_Header+set}\" = set"; then
8041  echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043  eval "$as_ac_Header=\$ac_header_preproc"
8044fi
8045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8047
8048fi
8049if test `eval echo '${'$as_ac_Header'}'` = yes; then
8050  cat >>confdefs.h <<_ACEOF
8051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8052_ACEOF
8053
8054fi
8055
8056done
8057
8058
8059for ac_header in stdlib.h
8060do
8061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8062if eval "test \"\${$as_ac_Header+set}\" = set"; then
8063  echo "$as_me:$LINENO: checking for $ac_header" >&5
8064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8065if eval "test \"\${$as_ac_Header+set}\" = set"; then
8066  echo $ECHO_N "(cached) $ECHO_C" >&6
8067fi
8068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8070else
8071  # Is the header compilable?
8072echo "$as_me:$LINENO: checking $ac_header usability" >&5
8073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8074cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h.  */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h.  */
8080$ac_includes_default
8081#include <$ac_header>
8082_ACEOF
8083rm -f conftest.$ac_objext
8084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8085  (eval $ac_compile) 2>conftest.er1
8086  ac_status=$?
8087  grep -v '^ *+' conftest.er1 >conftest.err
8088  rm -f conftest.er1
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
8095  (eval $ac_try) 2>&5
8096  ac_status=$?
8097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098  (exit $ac_status); }; } &&
8099	 { ac_try='test -s conftest.$ac_objext'
8100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101  (eval $ac_try) 2>&5
8102  ac_status=$?
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); }; }; then
8105  ac_header_compiler=yes
8106else
8107  echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110ac_header_compiler=no
8111fi
8112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8114echo "${ECHO_T}$ac_header_compiler" >&6
8115
8116# Is the header present?
8117echo "$as_me:$LINENO: checking $ac_header presence" >&5
8118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8119cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h.  */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h.  */
8125#include <$ac_header>
8126_ACEOF
8127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8129  ac_status=$?
8130  grep -v '^ *+' conftest.er1 >conftest.err
8131  rm -f conftest.er1
8132  cat conftest.err >&5
8133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134  (exit $ac_status); } >/dev/null; then
8135  if test -s conftest.err; then
8136    ac_cpp_err=$ac_c_preproc_warn_flag
8137    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8138  else
8139    ac_cpp_err=
8140  fi
8141else
8142  ac_cpp_err=yes
8143fi
8144if test -z "$ac_cpp_err"; then
8145  ac_header_preproc=yes
8146else
8147  echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150  ac_header_preproc=no
8151fi
8152rm -f conftest.err conftest.$ac_ext
8153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8154echo "${ECHO_T}$ac_header_preproc" >&6
8155
8156# So?  What about this header?
8157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8158  yes:no: )
8159    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8161    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8163    ac_header_preproc=yes
8164    ;;
8165  no:yes:* )
8166    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8168    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8169echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8170    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8172    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8173echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8174    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8176    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8178    (
8179      cat <<\_ASBOX
8180## ------------------------------------------ ##
8181## Report this to the AC_PACKAGE_NAME lists.  ##
8182## ------------------------------------------ ##
8183_ASBOX
8184    ) |
8185      sed "s/^/$as_me: WARNING:     /" >&2
8186    ;;
8187esac
8188echo "$as_me:$LINENO: checking for $ac_header" >&5
8189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8190if eval "test \"\${$as_ac_Header+set}\" = set"; then
8191  echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193  eval "$as_ac_Header=\$ac_header_preproc"
8194fi
8195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8197
8198fi
8199if test `eval echo '${'$as_ac_Header'}'` = yes; then
8200  cat >>confdefs.h <<_ACEOF
8201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8202_ACEOF
8203
8204fi
8205
8206done
8207
8208
8209for ac_header in stdint.h
8210do
8211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8212if eval "test \"\${$as_ac_Header+set}\" = set"; then
8213  echo "$as_me:$LINENO: checking for $ac_header" >&5
8214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8215if eval "test \"\${$as_ac_Header+set}\" = set"; then
8216  echo $ECHO_N "(cached) $ECHO_C" >&6
8217fi
8218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8220else
8221  # Is the header compilable?
8222echo "$as_me:$LINENO: checking $ac_header usability" >&5
8223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8224cat >conftest.$ac_ext <<_ACEOF
8225/* confdefs.h.  */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h.  */
8230$ac_includes_default
8231#include <$ac_header>
8232_ACEOF
8233rm -f conftest.$ac_objext
8234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8235  (eval $ac_compile) 2>conftest.er1
8236  ac_status=$?
8237  grep -v '^ *+' conftest.er1 >conftest.err
8238  rm -f conftest.er1
8239  cat conftest.err >&5
8240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241  (exit $ac_status); } &&
8242	 { ac_try='test -z "$ac_c_werror_flag"
8243			 || test ! -s conftest.err'
8244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245  (eval $ac_try) 2>&5
8246  ac_status=$?
8247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248  (exit $ac_status); }; } &&
8249	 { ac_try='test -s conftest.$ac_objext'
8250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251  (eval $ac_try) 2>&5
8252  ac_status=$?
8253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254  (exit $ac_status); }; }; then
8255  ac_header_compiler=yes
8256else
8257  echo "$as_me: failed program was:" >&5
8258sed 's/^/| /' conftest.$ac_ext >&5
8259
8260ac_header_compiler=no
8261fi
8262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8263echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8264echo "${ECHO_T}$ac_header_compiler" >&6
8265
8266# Is the header present?
8267echo "$as_me:$LINENO: checking $ac_header presence" >&5
8268echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8269cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h.  */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
8274/* end confdefs.h.  */
8275#include <$ac_header>
8276_ACEOF
8277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8278  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8279  ac_status=$?
8280  grep -v '^ *+' conftest.er1 >conftest.err
8281  rm -f conftest.er1
8282  cat conftest.err >&5
8283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284  (exit $ac_status); } >/dev/null; then
8285  if test -s conftest.err; then
8286    ac_cpp_err=$ac_c_preproc_warn_flag
8287    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8288  else
8289    ac_cpp_err=
8290  fi
8291else
8292  ac_cpp_err=yes
8293fi
8294if test -z "$ac_cpp_err"; then
8295  ac_header_preproc=yes
8296else
8297  echo "$as_me: failed program was:" >&5
8298sed 's/^/| /' conftest.$ac_ext >&5
8299
8300  ac_header_preproc=no
8301fi
8302rm -f conftest.err conftest.$ac_ext
8303echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8304echo "${ECHO_T}$ac_header_preproc" >&6
8305
8306# So?  What about this header?
8307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8308  yes:no: )
8309    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8310echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8311    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8312echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8313    ac_header_preproc=yes
8314    ;;
8315  no:yes:* )
8316    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8317echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8318    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8319echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8320    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8321echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8322    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8323echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8324    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8325echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8326    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8327echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8328    (
8329      cat <<\_ASBOX
8330## ------------------------------------------ ##
8331## Report this to the AC_PACKAGE_NAME lists.  ##
8332## ------------------------------------------ ##
8333_ASBOX
8334    ) |
8335      sed "s/^/$as_me: WARNING:     /" >&2
8336    ;;
8337esac
8338echo "$as_me:$LINENO: checking for $ac_header" >&5
8339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8340if eval "test \"\${$as_ac_Header+set}\" = set"; then
8341  echo $ECHO_N "(cached) $ECHO_C" >&6
8342else
8343  eval "$as_ac_Header=\$ac_header_preproc"
8344fi
8345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8347
8348fi
8349if test `eval echo '${'$as_ac_Header'}'` = yes; then
8350  cat >>confdefs.h <<_ACEOF
8351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8352_ACEOF
8353
8354fi
8355
8356done
8357
8358
8359
8360
8361for ac_header in string.h memory.h strings.h
8362do
8363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8364if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365  echo "$as_me:$LINENO: checking for $ac_header" >&5
8366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8367if eval "test \"\${$as_ac_Header+set}\" = set"; then
8368  echo $ECHO_N "(cached) $ECHO_C" >&6
8369fi
8370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8372else
8373  # Is the header compilable?
8374echo "$as_me:$LINENO: checking $ac_header usability" >&5
8375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8376cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h.  */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h.  */
8382$ac_includes_default
8383#include <$ac_header>
8384_ACEOF
8385rm -f conftest.$ac_objext
8386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387  (eval $ac_compile) 2>conftest.er1
8388  ac_status=$?
8389  grep -v '^ *+' conftest.er1 >conftest.err
8390  rm -f conftest.er1
8391  cat conftest.err >&5
8392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393  (exit $ac_status); } &&
8394	 { ac_try='test -z "$ac_c_werror_flag"
8395			 || test ! -s conftest.err'
8396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397  (eval $ac_try) 2>&5
8398  ac_status=$?
8399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400  (exit $ac_status); }; } &&
8401	 { ac_try='test -s conftest.$ac_objext'
8402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403  (eval $ac_try) 2>&5
8404  ac_status=$?
8405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); }; }; then
8407  ac_header_compiler=yes
8408else
8409  echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412ac_header_compiler=no
8413fi
8414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8416echo "${ECHO_T}$ac_header_compiler" >&6
8417
8418# Is the header present?
8419echo "$as_me:$LINENO: checking $ac_header presence" >&5
8420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8421cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h.  */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h.  */
8427#include <$ac_header>
8428_ACEOF
8429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8431  ac_status=$?
8432  grep -v '^ *+' conftest.er1 >conftest.err
8433  rm -f conftest.er1
8434  cat conftest.err >&5
8435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436  (exit $ac_status); } >/dev/null; then
8437  if test -s conftest.err; then
8438    ac_cpp_err=$ac_c_preproc_warn_flag
8439    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440  else
8441    ac_cpp_err=
8442  fi
8443else
8444  ac_cpp_err=yes
8445fi
8446if test -z "$ac_cpp_err"; then
8447  ac_header_preproc=yes
8448else
8449  echo "$as_me: failed program was:" >&5
8450sed 's/^/| /' conftest.$ac_ext >&5
8451
8452  ac_header_preproc=no
8453fi
8454rm -f conftest.err conftest.$ac_ext
8455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8456echo "${ECHO_T}$ac_header_preproc" >&6
8457
8458# So?  What about this header?
8459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8460  yes:no: )
8461    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8463    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8465    ac_header_preproc=yes
8466    ;;
8467  no:yes:* )
8468    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8470    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8471echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8472    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8474    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8475echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8476    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8478    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8480    (
8481      cat <<\_ASBOX
8482## ------------------------------------------ ##
8483## Report this to the AC_PACKAGE_NAME lists.  ##
8484## ------------------------------------------ ##
8485_ASBOX
8486    ) |
8487      sed "s/^/$as_me: WARNING:     /" >&2
8488    ;;
8489esac
8490echo "$as_me:$LINENO: checking for $ac_header" >&5
8491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8492if eval "test \"\${$as_ac_Header+set}\" = set"; then
8493  echo $ECHO_N "(cached) $ECHO_C" >&6
8494else
8495  eval "$as_ac_Header=\$ac_header_preproc"
8496fi
8497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8499
8500fi
8501if test `eval echo '${'$as_ac_Header'}'` = yes; then
8502  cat >>confdefs.h <<_ACEOF
8503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504_ACEOF
8505
8506fi
8507
8508done
8509
8510
8511for ac_header in sys/fault.h
8512do
8513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514if eval "test \"\${$as_ac_Header+set}\" = set"; then
8515  echo "$as_me:$LINENO: checking for $ac_header" >&5
8516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8517if eval "test \"\${$as_ac_Header+set}\" = set"; then
8518  echo $ECHO_N "(cached) $ECHO_C" >&6
8519fi
8520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8522else
8523  # Is the header compilable?
8524echo "$as_me:$LINENO: checking $ac_header usability" >&5
8525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8526cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h.  */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h.  */
8532$ac_includes_default
8533#include <$ac_header>
8534_ACEOF
8535rm -f conftest.$ac_objext
8536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537  (eval $ac_compile) 2>conftest.er1
8538  ac_status=$?
8539  grep -v '^ *+' conftest.er1 >conftest.err
8540  rm -f conftest.er1
8541  cat conftest.err >&5
8542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543  (exit $ac_status); } &&
8544	 { ac_try='test -z "$ac_c_werror_flag"
8545			 || test ! -s conftest.err'
8546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547  (eval $ac_try) 2>&5
8548  ac_status=$?
8549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550  (exit $ac_status); }; } &&
8551	 { ac_try='test -s conftest.$ac_objext'
8552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553  (eval $ac_try) 2>&5
8554  ac_status=$?
8555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556  (exit $ac_status); }; }; then
8557  ac_header_compiler=yes
8558else
8559  echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562ac_header_compiler=no
8563fi
8564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8566echo "${ECHO_T}$ac_header_compiler" >&6
8567
8568# Is the header present?
8569echo "$as_me:$LINENO: checking $ac_header presence" >&5
8570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8571cat >conftest.$ac_ext <<_ACEOF
8572/* confdefs.h.  */
8573_ACEOF
8574cat confdefs.h >>conftest.$ac_ext
8575cat >>conftest.$ac_ext <<_ACEOF
8576/* end confdefs.h.  */
8577#include <$ac_header>
8578_ACEOF
8579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8580  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8581  ac_status=$?
8582  grep -v '^ *+' conftest.er1 >conftest.err
8583  rm -f conftest.er1
8584  cat conftest.err >&5
8585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586  (exit $ac_status); } >/dev/null; then
8587  if test -s conftest.err; then
8588    ac_cpp_err=$ac_c_preproc_warn_flag
8589    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8590  else
8591    ac_cpp_err=
8592  fi
8593else
8594  ac_cpp_err=yes
8595fi
8596if test -z "$ac_cpp_err"; then
8597  ac_header_preproc=yes
8598else
8599  echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
8602  ac_header_preproc=no
8603fi
8604rm -f conftest.err conftest.$ac_ext
8605echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8606echo "${ECHO_T}$ac_header_preproc" >&6
8607
8608# So?  What about this header?
8609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8610  yes:no: )
8611    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8613    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8615    ac_header_preproc=yes
8616    ;;
8617  no:yes:* )
8618    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8620    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8621echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8622    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8624    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8625echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8626    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8628    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8630    (
8631      cat <<\_ASBOX
8632## ------------------------------------------ ##
8633## Report this to the AC_PACKAGE_NAME lists.  ##
8634## ------------------------------------------ ##
8635_ASBOX
8636    ) |
8637      sed "s/^/$as_me: WARNING:     /" >&2
8638    ;;
8639esac
8640echo "$as_me:$LINENO: checking for $ac_header" >&5
8641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642if eval "test \"\${$as_ac_Header+set}\" = set"; then
8643  echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645  eval "$as_ac_Header=\$ac_header_preproc"
8646fi
8647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8649
8650fi
8651if test `eval echo '${'$as_ac_Header'}'` = yes; then
8652  cat >>confdefs.h <<_ACEOF
8653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8654_ACEOF
8655
8656fi
8657
8658done
8659
8660
8661for ac_header in sys/file.h
8662do
8663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8664if eval "test \"\${$as_ac_Header+set}\" = set"; then
8665  echo "$as_me:$LINENO: checking for $ac_header" >&5
8666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8667if eval "test \"\${$as_ac_Header+set}\" = set"; then
8668  echo $ECHO_N "(cached) $ECHO_C" >&6
8669fi
8670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8672else
8673  # Is the header compilable?
8674echo "$as_me:$LINENO: checking $ac_header usability" >&5
8675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8676cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h.  */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h.  */
8682$ac_includes_default
8683#include <$ac_header>
8684_ACEOF
8685rm -f conftest.$ac_objext
8686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687  (eval $ac_compile) 2>conftest.er1
8688  ac_status=$?
8689  grep -v '^ *+' conftest.er1 >conftest.err
8690  rm -f conftest.er1
8691  cat conftest.err >&5
8692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693  (exit $ac_status); } &&
8694	 { ac_try='test -z "$ac_c_werror_flag"
8695			 || test ! -s conftest.err'
8696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697  (eval $ac_try) 2>&5
8698  ac_status=$?
8699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700  (exit $ac_status); }; } &&
8701	 { ac_try='test -s conftest.$ac_objext'
8702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703  (eval $ac_try) 2>&5
8704  ac_status=$?
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); }; }; then
8707  ac_header_compiler=yes
8708else
8709  echo "$as_me: failed program was:" >&5
8710sed 's/^/| /' conftest.$ac_ext >&5
8711
8712ac_header_compiler=no
8713fi
8714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8716echo "${ECHO_T}$ac_header_compiler" >&6
8717
8718# Is the header present?
8719echo "$as_me:$LINENO: checking $ac_header presence" >&5
8720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8721cat >conftest.$ac_ext <<_ACEOF
8722/* confdefs.h.  */
8723_ACEOF
8724cat confdefs.h >>conftest.$ac_ext
8725cat >>conftest.$ac_ext <<_ACEOF
8726/* end confdefs.h.  */
8727#include <$ac_header>
8728_ACEOF
8729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8730  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8731  ac_status=$?
8732  grep -v '^ *+' conftest.er1 >conftest.err
8733  rm -f conftest.er1
8734  cat conftest.err >&5
8735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736  (exit $ac_status); } >/dev/null; then
8737  if test -s conftest.err; then
8738    ac_cpp_err=$ac_c_preproc_warn_flag
8739    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8740  else
8741    ac_cpp_err=
8742  fi
8743else
8744  ac_cpp_err=yes
8745fi
8746if test -z "$ac_cpp_err"; then
8747  ac_header_preproc=yes
8748else
8749  echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752  ac_header_preproc=no
8753fi
8754rm -f conftest.err conftest.$ac_ext
8755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8756echo "${ECHO_T}$ac_header_preproc" >&6
8757
8758# So?  What about this header?
8759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8760  yes:no: )
8761    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8763    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8765    ac_header_preproc=yes
8766    ;;
8767  no:yes:* )
8768    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8770    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8771echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8772    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8774    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8775echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8776    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8778    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8780    (
8781      cat <<\_ASBOX
8782## ------------------------------------------ ##
8783## Report this to the AC_PACKAGE_NAME lists.  ##
8784## ------------------------------------------ ##
8785_ASBOX
8786    ) |
8787      sed "s/^/$as_me: WARNING:     /" >&2
8788    ;;
8789esac
8790echo "$as_me:$LINENO: checking for $ac_header" >&5
8791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8792if eval "test \"\${$as_ac_Header+set}\" = set"; then
8793  echo $ECHO_N "(cached) $ECHO_C" >&6
8794else
8795  eval "$as_ac_Header=\$ac_header_preproc"
8796fi
8797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8799
8800fi
8801if test `eval echo '${'$as_ac_Header'}'` = yes; then
8802  cat >>confdefs.h <<_ACEOF
8803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804_ACEOF
8805
8806fi
8807
8808done
8809
8810
8811for ac_header in sys/filio.h
8812do
8813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8814if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815  echo "$as_me:$LINENO: checking for $ac_header" >&5
8816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8817if eval "test \"\${$as_ac_Header+set}\" = set"; then
8818  echo $ECHO_N "(cached) $ECHO_C" >&6
8819fi
8820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8822else
8823  # Is the header compilable?
8824echo "$as_me:$LINENO: checking $ac_header usability" >&5
8825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8826cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h.  */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h.  */
8832$ac_includes_default
8833#include <$ac_header>
8834_ACEOF
8835rm -f conftest.$ac_objext
8836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8837  (eval $ac_compile) 2>conftest.er1
8838  ac_status=$?
8839  grep -v '^ *+' conftest.er1 >conftest.err
8840  rm -f conftest.er1
8841  cat conftest.err >&5
8842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843  (exit $ac_status); } &&
8844	 { ac_try='test -z "$ac_c_werror_flag"
8845			 || test ! -s conftest.err'
8846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847  (eval $ac_try) 2>&5
8848  ac_status=$?
8849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850  (exit $ac_status); }; } &&
8851	 { ac_try='test -s conftest.$ac_objext'
8852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853  (eval $ac_try) 2>&5
8854  ac_status=$?
8855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856  (exit $ac_status); }; }; then
8857  ac_header_compiler=yes
8858else
8859  echo "$as_me: failed program was:" >&5
8860sed 's/^/| /' conftest.$ac_ext >&5
8861
8862ac_header_compiler=no
8863fi
8864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8866echo "${ECHO_T}$ac_header_compiler" >&6
8867
8868# Is the header present?
8869echo "$as_me:$LINENO: checking $ac_header presence" >&5
8870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8871cat >conftest.$ac_ext <<_ACEOF
8872/* confdefs.h.  */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h.  */
8877#include <$ac_header>
8878_ACEOF
8879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8880  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8881  ac_status=$?
8882  grep -v '^ *+' conftest.er1 >conftest.err
8883  rm -f conftest.er1
8884  cat conftest.err >&5
8885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886  (exit $ac_status); } >/dev/null; then
8887  if test -s conftest.err; then
8888    ac_cpp_err=$ac_c_preproc_warn_flag
8889    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8890  else
8891    ac_cpp_err=
8892  fi
8893else
8894  ac_cpp_err=yes
8895fi
8896if test -z "$ac_cpp_err"; then
8897  ac_header_preproc=yes
8898else
8899  echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
8901
8902  ac_header_preproc=no
8903fi
8904rm -f conftest.err conftest.$ac_ext
8905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8906echo "${ECHO_T}$ac_header_preproc" >&6
8907
8908# So?  What about this header?
8909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8910  yes:no: )
8911    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8913    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8915    ac_header_preproc=yes
8916    ;;
8917  no:yes:* )
8918    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8920    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8921echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8922    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8924    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8925echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8926    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8928    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8930    (
8931      cat <<\_ASBOX
8932## ------------------------------------------ ##
8933## Report this to the AC_PACKAGE_NAME lists.  ##
8934## ------------------------------------------ ##
8935_ASBOX
8936    ) |
8937      sed "s/^/$as_me: WARNING:     /" >&2
8938    ;;
8939esac
8940echo "$as_me:$LINENO: checking for $ac_header" >&5
8941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8942if eval "test \"\${$as_ac_Header+set}\" = set"; then
8943  echo $ECHO_N "(cached) $ECHO_C" >&6
8944else
8945  eval "$as_ac_Header=\$ac_header_preproc"
8946fi
8947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8949
8950fi
8951if test `eval echo '${'$as_ac_Header'}'` = yes; then
8952  cat >>confdefs.h <<_ACEOF
8953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8954_ACEOF
8955
8956fi
8957
8958done
8959
8960
8961for ac_header in sys/ioctl.h
8962do
8963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8964if eval "test \"\${$as_ac_Header+set}\" = set"; then
8965  echo "$as_me:$LINENO: checking for $ac_header" >&5
8966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8967if eval "test \"\${$as_ac_Header+set}\" = set"; then
8968  echo $ECHO_N "(cached) $ECHO_C" >&6
8969fi
8970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8972else
8973  # Is the header compilable?
8974echo "$as_me:$LINENO: checking $ac_header usability" >&5
8975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8976cat >conftest.$ac_ext <<_ACEOF
8977/* confdefs.h.  */
8978_ACEOF
8979cat confdefs.h >>conftest.$ac_ext
8980cat >>conftest.$ac_ext <<_ACEOF
8981/* end confdefs.h.  */
8982$ac_includes_default
8983#include <$ac_header>
8984_ACEOF
8985rm -f conftest.$ac_objext
8986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987  (eval $ac_compile) 2>conftest.er1
8988  ac_status=$?
8989  grep -v '^ *+' conftest.er1 >conftest.err
8990  rm -f conftest.er1
8991  cat conftest.err >&5
8992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993  (exit $ac_status); } &&
8994	 { ac_try='test -z "$ac_c_werror_flag"
8995			 || test ! -s conftest.err'
8996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997  (eval $ac_try) 2>&5
8998  ac_status=$?
8999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000  (exit $ac_status); }; } &&
9001	 { ac_try='test -s conftest.$ac_objext'
9002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003  (eval $ac_try) 2>&5
9004  ac_status=$?
9005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006  (exit $ac_status); }; }; then
9007  ac_header_compiler=yes
9008else
9009  echo "$as_me: failed program was:" >&5
9010sed 's/^/| /' conftest.$ac_ext >&5
9011
9012ac_header_compiler=no
9013fi
9014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9016echo "${ECHO_T}$ac_header_compiler" >&6
9017
9018# Is the header present?
9019echo "$as_me:$LINENO: checking $ac_header presence" >&5
9020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9021cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h.  */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h.  */
9027#include <$ac_header>
9028_ACEOF
9029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9030  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9031  ac_status=$?
9032  grep -v '^ *+' conftest.er1 >conftest.err
9033  rm -f conftest.er1
9034  cat conftest.err >&5
9035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036  (exit $ac_status); } >/dev/null; then
9037  if test -s conftest.err; then
9038    ac_cpp_err=$ac_c_preproc_warn_flag
9039    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9040  else
9041    ac_cpp_err=
9042  fi
9043else
9044  ac_cpp_err=yes
9045fi
9046if test -z "$ac_cpp_err"; then
9047  ac_header_preproc=yes
9048else
9049  echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052  ac_header_preproc=no
9053fi
9054rm -f conftest.err conftest.$ac_ext
9055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9056echo "${ECHO_T}$ac_header_preproc" >&6
9057
9058# So?  What about this header?
9059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9060  yes:no: )
9061    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9063    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9065    ac_header_preproc=yes
9066    ;;
9067  no:yes:* )
9068    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9070    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9071echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9072    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9074    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9075echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9076    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9078    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9080    (
9081      cat <<\_ASBOX
9082## ------------------------------------------ ##
9083## Report this to the AC_PACKAGE_NAME lists.  ##
9084## ------------------------------------------ ##
9085_ASBOX
9086    ) |
9087      sed "s/^/$as_me: WARNING:     /" >&2
9088    ;;
9089esac
9090echo "$as_me:$LINENO: checking for $ac_header" >&5
9091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9092if eval "test \"\${$as_ac_Header+set}\" = set"; then
9093  echo $ECHO_N "(cached) $ECHO_C" >&6
9094else
9095  eval "$as_ac_Header=\$ac_header_preproc"
9096fi
9097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9099
9100fi
9101if test `eval echo '${'$as_ac_Header'}'` = yes; then
9102  cat >>confdefs.h <<_ACEOF
9103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9104_ACEOF
9105
9106fi
9107
9108done
9109
9110
9111for ac_header in sys/param.h
9112do
9113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114if eval "test \"\${$as_ac_Header+set}\" = set"; then
9115  echo "$as_me:$LINENO: checking for $ac_header" >&5
9116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9117if eval "test \"\${$as_ac_Header+set}\" = set"; then
9118  echo $ECHO_N "(cached) $ECHO_C" >&6
9119fi
9120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9122else
9123  # Is the header compilable?
9124echo "$as_me:$LINENO: checking $ac_header usability" >&5
9125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9126cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h.  */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h.  */
9132$ac_includes_default
9133#include <$ac_header>
9134_ACEOF
9135rm -f conftest.$ac_objext
9136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137  (eval $ac_compile) 2>conftest.er1
9138  ac_status=$?
9139  grep -v '^ *+' conftest.er1 >conftest.err
9140  rm -f conftest.er1
9141  cat conftest.err >&5
9142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143  (exit $ac_status); } &&
9144	 { ac_try='test -z "$ac_c_werror_flag"
9145			 || test ! -s conftest.err'
9146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147  (eval $ac_try) 2>&5
9148  ac_status=$?
9149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150  (exit $ac_status); }; } &&
9151	 { ac_try='test -s conftest.$ac_objext'
9152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153  (eval $ac_try) 2>&5
9154  ac_status=$?
9155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156  (exit $ac_status); }; }; then
9157  ac_header_compiler=yes
9158else
9159  echo "$as_me: failed program was:" >&5
9160sed 's/^/| /' conftest.$ac_ext >&5
9161
9162ac_header_compiler=no
9163fi
9164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9166echo "${ECHO_T}$ac_header_compiler" >&6
9167
9168# Is the header present?
9169echo "$as_me:$LINENO: checking $ac_header presence" >&5
9170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9171cat >conftest.$ac_ext <<_ACEOF
9172/* confdefs.h.  */
9173_ACEOF
9174cat confdefs.h >>conftest.$ac_ext
9175cat >>conftest.$ac_ext <<_ACEOF
9176/* end confdefs.h.  */
9177#include <$ac_header>
9178_ACEOF
9179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9180  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9181  ac_status=$?
9182  grep -v '^ *+' conftest.er1 >conftest.err
9183  rm -f conftest.er1
9184  cat conftest.err >&5
9185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186  (exit $ac_status); } >/dev/null; then
9187  if test -s conftest.err; then
9188    ac_cpp_err=$ac_c_preproc_warn_flag
9189    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9190  else
9191    ac_cpp_err=
9192  fi
9193else
9194  ac_cpp_err=yes
9195fi
9196if test -z "$ac_cpp_err"; then
9197  ac_header_preproc=yes
9198else
9199  echo "$as_me: failed program was:" >&5
9200sed 's/^/| /' conftest.$ac_ext >&5
9201
9202  ac_header_preproc=no
9203fi
9204rm -f conftest.err conftest.$ac_ext
9205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9206echo "${ECHO_T}$ac_header_preproc" >&6
9207
9208# So?  What about this header?
9209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9210  yes:no: )
9211    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9213    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9215    ac_header_preproc=yes
9216    ;;
9217  no:yes:* )
9218    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9220    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9221echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9222    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9224    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9225echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9226    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9228    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9230    (
9231      cat <<\_ASBOX
9232## ------------------------------------------ ##
9233## Report this to the AC_PACKAGE_NAME lists.  ##
9234## ------------------------------------------ ##
9235_ASBOX
9236    ) |
9237      sed "s/^/$as_me: WARNING:     /" >&2
9238    ;;
9239esac
9240echo "$as_me:$LINENO: checking for $ac_header" >&5
9241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9242if eval "test \"\${$as_ac_Header+set}\" = set"; then
9243  echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245  eval "$as_ac_Header=\$ac_header_preproc"
9246fi
9247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9249
9250fi
9251if test `eval echo '${'$as_ac_Header'}'` = yes; then
9252  cat >>confdefs.h <<_ACEOF
9253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9254_ACEOF
9255
9256fi
9257
9258done
9259
9260
9261for ac_header in sys/resource.h
9262do
9263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9264if eval "test \"\${$as_ac_Header+set}\" = set"; then
9265  echo "$as_me:$LINENO: checking for $ac_header" >&5
9266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9267if eval "test \"\${$as_ac_Header+set}\" = set"; then
9268  echo $ECHO_N "(cached) $ECHO_C" >&6
9269fi
9270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9272else
9273  # Is the header compilable?
9274echo "$as_me:$LINENO: checking $ac_header usability" >&5
9275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9276cat >conftest.$ac_ext <<_ACEOF
9277/* confdefs.h.  */
9278_ACEOF
9279cat confdefs.h >>conftest.$ac_ext
9280cat >>conftest.$ac_ext <<_ACEOF
9281/* end confdefs.h.  */
9282$ac_includes_default
9283#include <$ac_header>
9284_ACEOF
9285rm -f conftest.$ac_objext
9286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9287  (eval $ac_compile) 2>conftest.er1
9288  ac_status=$?
9289  grep -v '^ *+' conftest.er1 >conftest.err
9290  rm -f conftest.er1
9291  cat conftest.err >&5
9292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293  (exit $ac_status); } &&
9294	 { ac_try='test -z "$ac_c_werror_flag"
9295			 || test ! -s conftest.err'
9296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297  (eval $ac_try) 2>&5
9298  ac_status=$?
9299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300  (exit $ac_status); }; } &&
9301	 { ac_try='test -s conftest.$ac_objext'
9302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303  (eval $ac_try) 2>&5
9304  ac_status=$?
9305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306  (exit $ac_status); }; }; then
9307  ac_header_compiler=yes
9308else
9309  echo "$as_me: failed program was:" >&5
9310sed 's/^/| /' conftest.$ac_ext >&5
9311
9312ac_header_compiler=no
9313fi
9314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9316echo "${ECHO_T}$ac_header_compiler" >&6
9317
9318# Is the header present?
9319echo "$as_me:$LINENO: checking $ac_header presence" >&5
9320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9321cat >conftest.$ac_ext <<_ACEOF
9322/* confdefs.h.  */
9323_ACEOF
9324cat confdefs.h >>conftest.$ac_ext
9325cat >>conftest.$ac_ext <<_ACEOF
9326/* end confdefs.h.  */
9327#include <$ac_header>
9328_ACEOF
9329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9330  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9331  ac_status=$?
9332  grep -v '^ *+' conftest.er1 >conftest.err
9333  rm -f conftest.er1
9334  cat conftest.err >&5
9335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336  (exit $ac_status); } >/dev/null; then
9337  if test -s conftest.err; then
9338    ac_cpp_err=$ac_c_preproc_warn_flag
9339    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9340  else
9341    ac_cpp_err=
9342  fi
9343else
9344  ac_cpp_err=yes
9345fi
9346if test -z "$ac_cpp_err"; then
9347  ac_header_preproc=yes
9348else
9349  echo "$as_me: failed program was:" >&5
9350sed 's/^/| /' conftest.$ac_ext >&5
9351
9352  ac_header_preproc=no
9353fi
9354rm -f conftest.err conftest.$ac_ext
9355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9356echo "${ECHO_T}$ac_header_preproc" >&6
9357
9358# So?  What about this header?
9359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9360  yes:no: )
9361    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9363    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9365    ac_header_preproc=yes
9366    ;;
9367  no:yes:* )
9368    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9370    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9371echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9372    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9374    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9375echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9376    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9378    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9380    (
9381      cat <<\_ASBOX
9382## ------------------------------------------ ##
9383## Report this to the AC_PACKAGE_NAME lists.  ##
9384## ------------------------------------------ ##
9385_ASBOX
9386    ) |
9387      sed "s/^/$as_me: WARNING:     /" >&2
9388    ;;
9389esac
9390echo "$as_me:$LINENO: checking for $ac_header" >&5
9391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9392if eval "test \"\${$as_ac_Header+set}\" = set"; then
9393  echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395  eval "$as_ac_Header=\$ac_header_preproc"
9396fi
9397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9399
9400fi
9401if test `eval echo '${'$as_ac_Header'}'` = yes; then
9402  cat >>confdefs.h <<_ACEOF
9403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9404_ACEOF
9405
9406fi
9407
9408done
9409
9410
9411for ac_header in sys/proc.h
9412do
9413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9414echo "$as_me:$LINENO: checking for $ac_header" >&5
9415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417  echo $ECHO_N "(cached) $ECHO_C" >&6
9418else
9419  cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h.  */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h.  */
9425#if HAVE_SYS_PARAM_H
9426# include <sys/param.h>
9427#endif
9428
9429
9430#include <$ac_header>
9431_ACEOF
9432rm -f conftest.$ac_objext
9433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434  (eval $ac_compile) 2>conftest.er1
9435  ac_status=$?
9436  grep -v '^ *+' conftest.er1 >conftest.err
9437  rm -f conftest.er1
9438  cat conftest.err >&5
9439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440  (exit $ac_status); } &&
9441	 { ac_try='test -z "$ac_c_werror_flag"
9442			 || test ! -s conftest.err'
9443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444  (eval $ac_try) 2>&5
9445  ac_status=$?
9446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447  (exit $ac_status); }; } &&
9448	 { ac_try='test -s conftest.$ac_objext'
9449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450  (eval $ac_try) 2>&5
9451  ac_status=$?
9452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453  (exit $ac_status); }; }; then
9454  eval "$as_ac_Header=yes"
9455else
9456  echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
9459eval "$as_ac_Header=no"
9460fi
9461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9462fi
9463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9465if test `eval echo '${'$as_ac_Header'}'` = yes; then
9466  cat >>confdefs.h <<_ACEOF
9467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468_ACEOF
9469
9470fi
9471
9472done
9473
9474
9475for ac_header in sys/procfs.h
9476do
9477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9478if eval "test \"\${$as_ac_Header+set}\" = set"; then
9479  echo "$as_me:$LINENO: checking for $ac_header" >&5
9480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9481if eval "test \"\${$as_ac_Header+set}\" = set"; then
9482  echo $ECHO_N "(cached) $ECHO_C" >&6
9483fi
9484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9486else
9487  # Is the header compilable?
9488echo "$as_me:$LINENO: checking $ac_header usability" >&5
9489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9490cat >conftest.$ac_ext <<_ACEOF
9491/* confdefs.h.  */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h.  */
9496$ac_includes_default
9497#include <$ac_header>
9498_ACEOF
9499rm -f conftest.$ac_objext
9500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501  (eval $ac_compile) 2>conftest.er1
9502  ac_status=$?
9503  grep -v '^ *+' conftest.er1 >conftest.err
9504  rm -f conftest.er1
9505  cat conftest.err >&5
9506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507  (exit $ac_status); } &&
9508	 { ac_try='test -z "$ac_c_werror_flag"
9509			 || test ! -s conftest.err'
9510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511  (eval $ac_try) 2>&5
9512  ac_status=$?
9513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514  (exit $ac_status); }; } &&
9515	 { ac_try='test -s conftest.$ac_objext'
9516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517  (eval $ac_try) 2>&5
9518  ac_status=$?
9519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520  (exit $ac_status); }; }; then
9521  ac_header_compiler=yes
9522else
9523  echo "$as_me: failed program was:" >&5
9524sed 's/^/| /' conftest.$ac_ext >&5
9525
9526ac_header_compiler=no
9527fi
9528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9530echo "${ECHO_T}$ac_header_compiler" >&6
9531
9532# Is the header present?
9533echo "$as_me:$LINENO: checking $ac_header presence" >&5
9534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9535cat >conftest.$ac_ext <<_ACEOF
9536/* confdefs.h.  */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
9540/* end confdefs.h.  */
9541#include <$ac_header>
9542_ACEOF
9543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9545  ac_status=$?
9546  grep -v '^ *+' conftest.er1 >conftest.err
9547  rm -f conftest.er1
9548  cat conftest.err >&5
9549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550  (exit $ac_status); } >/dev/null; then
9551  if test -s conftest.err; then
9552    ac_cpp_err=$ac_c_preproc_warn_flag
9553    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9554  else
9555    ac_cpp_err=
9556  fi
9557else
9558  ac_cpp_err=yes
9559fi
9560if test -z "$ac_cpp_err"; then
9561  ac_header_preproc=yes
9562else
9563  echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566  ac_header_preproc=no
9567fi
9568rm -f conftest.err conftest.$ac_ext
9569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9570echo "${ECHO_T}$ac_header_preproc" >&6
9571
9572# So?  What about this header?
9573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9574  yes:no: )
9575    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9577    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9579    ac_header_preproc=yes
9580    ;;
9581  no:yes:* )
9582    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9584    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9585echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9586    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9588    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9589echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9590    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9592    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9594    (
9595      cat <<\_ASBOX
9596## ------------------------------------------ ##
9597## Report this to the AC_PACKAGE_NAME lists.  ##
9598## ------------------------------------------ ##
9599_ASBOX
9600    ) |
9601      sed "s/^/$as_me: WARNING:     /" >&2
9602    ;;
9603esac
9604echo "$as_me:$LINENO: checking for $ac_header" >&5
9605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9606if eval "test \"\${$as_ac_Header+set}\" = set"; then
9607  echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609  eval "$as_ac_Header=\$ac_header_preproc"
9610fi
9611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9613
9614fi
9615if test `eval echo '${'$as_ac_Header'}'` = yes; then
9616  cat >>confdefs.h <<_ACEOF
9617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9618_ACEOF
9619
9620fi
9621
9622done
9623
9624
9625
9626for ac_header in sys/ptrace.h ptrace.h
9627do
9628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9629if eval "test \"\${$as_ac_Header+set}\" = set"; then
9630  echo "$as_me:$LINENO: checking for $ac_header" >&5
9631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9632if eval "test \"\${$as_ac_Header+set}\" = set"; then
9633  echo $ECHO_N "(cached) $ECHO_C" >&6
9634fi
9635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9637else
9638  # Is the header compilable?
9639echo "$as_me:$LINENO: checking $ac_header usability" >&5
9640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9641cat >conftest.$ac_ext <<_ACEOF
9642/* confdefs.h.  */
9643_ACEOF
9644cat confdefs.h >>conftest.$ac_ext
9645cat >>conftest.$ac_ext <<_ACEOF
9646/* end confdefs.h.  */
9647$ac_includes_default
9648#include <$ac_header>
9649_ACEOF
9650rm -f conftest.$ac_objext
9651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9652  (eval $ac_compile) 2>conftest.er1
9653  ac_status=$?
9654  grep -v '^ *+' conftest.er1 >conftest.err
9655  rm -f conftest.er1
9656  cat conftest.err >&5
9657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658  (exit $ac_status); } &&
9659	 { ac_try='test -z "$ac_c_werror_flag"
9660			 || test ! -s conftest.err'
9661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662  (eval $ac_try) 2>&5
9663  ac_status=$?
9664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665  (exit $ac_status); }; } &&
9666	 { ac_try='test -s conftest.$ac_objext'
9667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668  (eval $ac_try) 2>&5
9669  ac_status=$?
9670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671  (exit $ac_status); }; }; then
9672  ac_header_compiler=yes
9673else
9674  echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
9677ac_header_compiler=no
9678fi
9679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9681echo "${ECHO_T}$ac_header_compiler" >&6
9682
9683# Is the header present?
9684echo "$as_me:$LINENO: checking $ac_header presence" >&5
9685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9686cat >conftest.$ac_ext <<_ACEOF
9687/* confdefs.h.  */
9688_ACEOF
9689cat confdefs.h >>conftest.$ac_ext
9690cat >>conftest.$ac_ext <<_ACEOF
9691/* end confdefs.h.  */
9692#include <$ac_header>
9693_ACEOF
9694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9695  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9696  ac_status=$?
9697  grep -v '^ *+' conftest.er1 >conftest.err
9698  rm -f conftest.er1
9699  cat conftest.err >&5
9700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701  (exit $ac_status); } >/dev/null; then
9702  if test -s conftest.err; then
9703    ac_cpp_err=$ac_c_preproc_warn_flag
9704    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9705  else
9706    ac_cpp_err=
9707  fi
9708else
9709  ac_cpp_err=yes
9710fi
9711if test -z "$ac_cpp_err"; then
9712  ac_header_preproc=yes
9713else
9714  echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
9717  ac_header_preproc=no
9718fi
9719rm -f conftest.err conftest.$ac_ext
9720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9721echo "${ECHO_T}$ac_header_preproc" >&6
9722
9723# So?  What about this header?
9724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9725  yes:no: )
9726    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9728    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9730    ac_header_preproc=yes
9731    ;;
9732  no:yes:* )
9733    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9735    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9736echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9737    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9739    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9740echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9741    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9743    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9745    (
9746      cat <<\_ASBOX
9747## ------------------------------------------ ##
9748## Report this to the AC_PACKAGE_NAME lists.  ##
9749## ------------------------------------------ ##
9750_ASBOX
9751    ) |
9752      sed "s/^/$as_me: WARNING:     /" >&2
9753    ;;
9754esac
9755echo "$as_me:$LINENO: checking for $ac_header" >&5
9756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9757if eval "test \"\${$as_ac_Header+set}\" = set"; then
9758  echo $ECHO_N "(cached) $ECHO_C" >&6
9759else
9760  eval "$as_ac_Header=\$ac_header_preproc"
9761fi
9762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9764
9765fi
9766if test `eval echo '${'$as_ac_Header'}'` = yes; then
9767  cat >>confdefs.h <<_ACEOF
9768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9769_ACEOF
9770
9771fi
9772
9773done
9774
9775
9776
9777for ac_header in sys/reg.h sys/debugreg.h
9778do
9779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780if eval "test \"\${$as_ac_Header+set}\" = set"; then
9781  echo "$as_me:$LINENO: checking for $ac_header" >&5
9782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9783if eval "test \"\${$as_ac_Header+set}\" = set"; then
9784  echo $ECHO_N "(cached) $ECHO_C" >&6
9785fi
9786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9788else
9789  # Is the header compilable?
9790echo "$as_me:$LINENO: checking $ac_header usability" >&5
9791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9792cat >conftest.$ac_ext <<_ACEOF
9793/* confdefs.h.  */
9794_ACEOF
9795cat confdefs.h >>conftest.$ac_ext
9796cat >>conftest.$ac_ext <<_ACEOF
9797/* end confdefs.h.  */
9798$ac_includes_default
9799#include <$ac_header>
9800_ACEOF
9801rm -f conftest.$ac_objext
9802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803  (eval $ac_compile) 2>conftest.er1
9804  ac_status=$?
9805  grep -v '^ *+' conftest.er1 >conftest.err
9806  rm -f conftest.er1
9807  cat conftest.err >&5
9808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809  (exit $ac_status); } &&
9810	 { ac_try='test -z "$ac_c_werror_flag"
9811			 || test ! -s conftest.err'
9812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813  (eval $ac_try) 2>&5
9814  ac_status=$?
9815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816  (exit $ac_status); }; } &&
9817	 { ac_try='test -s conftest.$ac_objext'
9818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819  (eval $ac_try) 2>&5
9820  ac_status=$?
9821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822  (exit $ac_status); }; }; then
9823  ac_header_compiler=yes
9824else
9825  echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
9828ac_header_compiler=no
9829fi
9830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9832echo "${ECHO_T}$ac_header_compiler" >&6
9833
9834# Is the header present?
9835echo "$as_me:$LINENO: checking $ac_header presence" >&5
9836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9837cat >conftest.$ac_ext <<_ACEOF
9838/* confdefs.h.  */
9839_ACEOF
9840cat confdefs.h >>conftest.$ac_ext
9841cat >>conftest.$ac_ext <<_ACEOF
9842/* end confdefs.h.  */
9843#include <$ac_header>
9844_ACEOF
9845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9846  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9847  ac_status=$?
9848  grep -v '^ *+' conftest.er1 >conftest.err
9849  rm -f conftest.er1
9850  cat conftest.err >&5
9851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); } >/dev/null; then
9853  if test -s conftest.err; then
9854    ac_cpp_err=$ac_c_preproc_warn_flag
9855    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9856  else
9857    ac_cpp_err=
9858  fi
9859else
9860  ac_cpp_err=yes
9861fi
9862if test -z "$ac_cpp_err"; then
9863  ac_header_preproc=yes
9864else
9865  echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
9867
9868  ac_header_preproc=no
9869fi
9870rm -f conftest.err conftest.$ac_ext
9871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9872echo "${ECHO_T}$ac_header_preproc" >&6
9873
9874# So?  What about this header?
9875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9876  yes:no: )
9877    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9879    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9881    ac_header_preproc=yes
9882    ;;
9883  no:yes:* )
9884    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9886    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9887echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9888    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9890    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9891echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9892    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9894    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9896    (
9897      cat <<\_ASBOX
9898## ------------------------------------------ ##
9899## Report this to the AC_PACKAGE_NAME lists.  ##
9900## ------------------------------------------ ##
9901_ASBOX
9902    ) |
9903      sed "s/^/$as_me: WARNING:     /" >&2
9904    ;;
9905esac
9906echo "$as_me:$LINENO: checking for $ac_header" >&5
9907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9908if eval "test \"\${$as_ac_Header+set}\" = set"; then
9909  echo $ECHO_N "(cached) $ECHO_C" >&6
9910else
9911  eval "$as_ac_Header=\$ac_header_preproc"
9912fi
9913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9915
9916fi
9917if test `eval echo '${'$as_ac_Header'}'` = yes; then
9918  cat >>confdefs.h <<_ACEOF
9919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9920_ACEOF
9921
9922fi
9923
9924done
9925
9926
9927for ac_header in sys/select.h
9928do
9929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9930if eval "test \"\${$as_ac_Header+set}\" = set"; then
9931  echo "$as_me:$LINENO: checking for $ac_header" >&5
9932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9933if eval "test \"\${$as_ac_Header+set}\" = set"; then
9934  echo $ECHO_N "(cached) $ECHO_C" >&6
9935fi
9936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9938else
9939  # Is the header compilable?
9940echo "$as_me:$LINENO: checking $ac_header usability" >&5
9941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9942cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h.  */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h.  */
9948$ac_includes_default
9949#include <$ac_header>
9950_ACEOF
9951rm -f conftest.$ac_objext
9952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9953  (eval $ac_compile) 2>conftest.er1
9954  ac_status=$?
9955  grep -v '^ *+' conftest.er1 >conftest.err
9956  rm -f conftest.er1
9957  cat conftest.err >&5
9958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959  (exit $ac_status); } &&
9960	 { ac_try='test -z "$ac_c_werror_flag"
9961			 || test ! -s conftest.err'
9962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963  (eval $ac_try) 2>&5
9964  ac_status=$?
9965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); }; } &&
9967	 { ac_try='test -s conftest.$ac_objext'
9968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969  (eval $ac_try) 2>&5
9970  ac_status=$?
9971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); }; }; then
9973  ac_header_compiler=yes
9974else
9975  echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
9978ac_header_compiler=no
9979fi
9980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9982echo "${ECHO_T}$ac_header_compiler" >&6
9983
9984# Is the header present?
9985echo "$as_me:$LINENO: checking $ac_header presence" >&5
9986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9987cat >conftest.$ac_ext <<_ACEOF
9988/* confdefs.h.  */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h.  */
9993#include <$ac_header>
9994_ACEOF
9995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9996  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9997  ac_status=$?
9998  grep -v '^ *+' conftest.er1 >conftest.err
9999  rm -f conftest.er1
10000  cat conftest.err >&5
10001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002  (exit $ac_status); } >/dev/null; then
10003  if test -s conftest.err; then
10004    ac_cpp_err=$ac_c_preproc_warn_flag
10005    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10006  else
10007    ac_cpp_err=
10008  fi
10009else
10010  ac_cpp_err=yes
10011fi
10012if test -z "$ac_cpp_err"; then
10013  ac_header_preproc=yes
10014else
10015  echo "$as_me: failed program was:" >&5
10016sed 's/^/| /' conftest.$ac_ext >&5
10017
10018  ac_header_preproc=no
10019fi
10020rm -f conftest.err conftest.$ac_ext
10021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10022echo "${ECHO_T}$ac_header_preproc" >&6
10023
10024# So?  What about this header?
10025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10026  yes:no: )
10027    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10029    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10031    ac_header_preproc=yes
10032    ;;
10033  no:yes:* )
10034    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10036    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10037echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10038    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10040    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10041echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10044    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10046    (
10047      cat <<\_ASBOX
10048## ------------------------------------------ ##
10049## Report this to the AC_PACKAGE_NAME lists.  ##
10050## ------------------------------------------ ##
10051_ASBOX
10052    ) |
10053      sed "s/^/$as_me: WARNING:     /" >&2
10054    ;;
10055esac
10056echo "$as_me:$LINENO: checking for $ac_header" >&5
10057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10058if eval "test \"\${$as_ac_Header+set}\" = set"; then
10059  echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061  eval "$as_ac_Header=\$ac_header_preproc"
10062fi
10063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10065
10066fi
10067if test `eval echo '${'$as_ac_Header'}'` = yes; then
10068  cat >>confdefs.h <<_ACEOF
10069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10070_ACEOF
10071
10072fi
10073
10074done
10075
10076
10077for ac_header in sys/syscall.h
10078do
10079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10080if eval "test \"\${$as_ac_Header+set}\" = set"; then
10081  echo "$as_me:$LINENO: checking for $ac_header" >&5
10082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10083if eval "test \"\${$as_ac_Header+set}\" = set"; then
10084  echo $ECHO_N "(cached) $ECHO_C" >&6
10085fi
10086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10088else
10089  # Is the header compilable?
10090echo "$as_me:$LINENO: checking $ac_header usability" >&5
10091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10092cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h.  */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h.  */
10098$ac_includes_default
10099#include <$ac_header>
10100_ACEOF
10101rm -f conftest.$ac_objext
10102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103  (eval $ac_compile) 2>conftest.er1
10104  ac_status=$?
10105  grep -v '^ *+' conftest.er1 >conftest.err
10106  rm -f conftest.er1
10107  cat conftest.err >&5
10108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109  (exit $ac_status); } &&
10110	 { ac_try='test -z "$ac_c_werror_flag"
10111			 || test ! -s conftest.err'
10112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113  (eval $ac_try) 2>&5
10114  ac_status=$?
10115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); }; } &&
10117	 { ac_try='test -s conftest.$ac_objext'
10118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119  (eval $ac_try) 2>&5
10120  ac_status=$?
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); }; }; then
10123  ac_header_compiler=yes
10124else
10125  echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128ac_header_compiler=no
10129fi
10130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10132echo "${ECHO_T}$ac_header_compiler" >&6
10133
10134# Is the header present?
10135echo "$as_me:$LINENO: checking $ac_header presence" >&5
10136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10137cat >conftest.$ac_ext <<_ACEOF
10138/* confdefs.h.  */
10139_ACEOF
10140cat confdefs.h >>conftest.$ac_ext
10141cat >>conftest.$ac_ext <<_ACEOF
10142/* end confdefs.h.  */
10143#include <$ac_header>
10144_ACEOF
10145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10146  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10147  ac_status=$?
10148  grep -v '^ *+' conftest.er1 >conftest.err
10149  rm -f conftest.er1
10150  cat conftest.err >&5
10151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); } >/dev/null; then
10153  if test -s conftest.err; then
10154    ac_cpp_err=$ac_c_preproc_warn_flag
10155    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10156  else
10157    ac_cpp_err=
10158  fi
10159else
10160  ac_cpp_err=yes
10161fi
10162if test -z "$ac_cpp_err"; then
10163  ac_header_preproc=yes
10164else
10165  echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168  ac_header_preproc=no
10169fi
10170rm -f conftest.err conftest.$ac_ext
10171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10172echo "${ECHO_T}$ac_header_preproc" >&6
10173
10174# So?  What about this header?
10175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10176  yes:no: )
10177    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10179    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10181    ac_header_preproc=yes
10182    ;;
10183  no:yes:* )
10184    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10186    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10187echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10188    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10190    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10191echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10192    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10194    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10196    (
10197      cat <<\_ASBOX
10198## ------------------------------------------ ##
10199## Report this to the AC_PACKAGE_NAME lists.  ##
10200## ------------------------------------------ ##
10201_ASBOX
10202    ) |
10203      sed "s/^/$as_me: WARNING:     /" >&2
10204    ;;
10205esac
10206echo "$as_me:$LINENO: checking for $ac_header" >&5
10207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10208if eval "test \"\${$as_ac_Header+set}\" = set"; then
10209  echo $ECHO_N "(cached) $ECHO_C" >&6
10210else
10211  eval "$as_ac_Header=\$ac_header_preproc"
10212fi
10213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10215
10216fi
10217if test `eval echo '${'$as_ac_Header'}'` = yes; then
10218  cat >>confdefs.h <<_ACEOF
10219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10220_ACEOF
10221
10222fi
10223
10224done
10225
10226
10227for ac_header in sys/types.h
10228do
10229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10230if eval "test \"\${$as_ac_Header+set}\" = set"; then
10231  echo "$as_me:$LINENO: checking for $ac_header" >&5
10232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233if eval "test \"\${$as_ac_Header+set}\" = set"; then
10234  echo $ECHO_N "(cached) $ECHO_C" >&6
10235fi
10236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10238else
10239  # Is the header compilable?
10240echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10242cat >conftest.$ac_ext <<_ACEOF
10243/* confdefs.h.  */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h.  */
10248$ac_includes_default
10249#include <$ac_header>
10250_ACEOF
10251rm -f conftest.$ac_objext
10252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253  (eval $ac_compile) 2>conftest.er1
10254  ac_status=$?
10255  grep -v '^ *+' conftest.er1 >conftest.err
10256  rm -f conftest.er1
10257  cat conftest.err >&5
10258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259  (exit $ac_status); } &&
10260	 { ac_try='test -z "$ac_c_werror_flag"
10261			 || test ! -s conftest.err'
10262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263  (eval $ac_try) 2>&5
10264  ac_status=$?
10265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266  (exit $ac_status); }; } &&
10267	 { ac_try='test -s conftest.$ac_objext'
10268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269  (eval $ac_try) 2>&5
10270  ac_status=$?
10271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272  (exit $ac_status); }; }; then
10273  ac_header_compiler=yes
10274else
10275  echo "$as_me: failed program was:" >&5
10276sed 's/^/| /' conftest.$ac_ext >&5
10277
10278ac_header_compiler=no
10279fi
10280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282echo "${ECHO_T}$ac_header_compiler" >&6
10283
10284# Is the header present?
10285echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10287cat >conftest.$ac_ext <<_ACEOF
10288/* confdefs.h.  */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h.  */
10293#include <$ac_header>
10294_ACEOF
10295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10296  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10297  ac_status=$?
10298  grep -v '^ *+' conftest.er1 >conftest.err
10299  rm -f conftest.er1
10300  cat conftest.err >&5
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); } >/dev/null; then
10303  if test -s conftest.err; then
10304    ac_cpp_err=$ac_c_preproc_warn_flag
10305    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10306  else
10307    ac_cpp_err=
10308  fi
10309else
10310  ac_cpp_err=yes
10311fi
10312if test -z "$ac_cpp_err"; then
10313  ac_header_preproc=yes
10314else
10315  echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318  ac_header_preproc=no
10319fi
10320rm -f conftest.err conftest.$ac_ext
10321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322echo "${ECHO_T}$ac_header_preproc" >&6
10323
10324# So?  What about this header?
10325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326  yes:no: )
10327    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10331    ac_header_preproc=yes
10332    ;;
10333  no:yes:* )
10334    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10336    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10337echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10338    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10340    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10341echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10342    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10346    (
10347      cat <<\_ASBOX
10348## ------------------------------------------ ##
10349## Report this to the AC_PACKAGE_NAME lists.  ##
10350## ------------------------------------------ ##
10351_ASBOX
10352    ) |
10353      sed "s/^/$as_me: WARNING:     /" >&2
10354    ;;
10355esac
10356echo "$as_me:$LINENO: checking for $ac_header" >&5
10357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10358if eval "test \"\${$as_ac_Header+set}\" = set"; then
10359  echo $ECHO_N "(cached) $ECHO_C" >&6
10360else
10361  eval "$as_ac_Header=\$ac_header_preproc"
10362fi
10363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10365
10366fi
10367if test `eval echo '${'$as_ac_Header'}'` = yes; then
10368  cat >>confdefs.h <<_ACEOF
10369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10370_ACEOF
10371
10372fi
10373
10374done
10375
10376
10377for ac_header in sys/user.h
10378do
10379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10380echo "$as_me:$LINENO: checking for $ac_header" >&5
10381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10382if eval "test \"\${$as_ac_Header+set}\" = set"; then
10383  echo $ECHO_N "(cached) $ECHO_C" >&6
10384else
10385  cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h.  */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h.  */
10391#if HAVE_SYS_PARAM_H
10392# include <sys/param.h>
10393#endif
10394
10395
10396#include <$ac_header>
10397_ACEOF
10398rm -f conftest.$ac_objext
10399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400  (eval $ac_compile) 2>conftest.er1
10401  ac_status=$?
10402  grep -v '^ *+' conftest.er1 >conftest.err
10403  rm -f conftest.er1
10404  cat conftest.err >&5
10405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406  (exit $ac_status); } &&
10407	 { ac_try='test -z "$ac_c_werror_flag"
10408			 || test ! -s conftest.err'
10409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410  (eval $ac_try) 2>&5
10411  ac_status=$?
10412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413  (exit $ac_status); }; } &&
10414	 { ac_try='test -s conftest.$ac_objext'
10415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416  (eval $ac_try) 2>&5
10417  ac_status=$?
10418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); }; }; then
10420  eval "$as_ac_Header=yes"
10421else
10422  echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
10425eval "$as_ac_Header=no"
10426fi
10427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10428fi
10429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10431if test `eval echo '${'$as_ac_Header'}'` = yes; then
10432  cat >>confdefs.h <<_ACEOF
10433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10434_ACEOF
10435
10436fi
10437
10438done
10439
10440
10441
10442for ac_header in sys/wait.h wait.h
10443do
10444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10445if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446  echo "$as_me:$LINENO: checking for $ac_header" >&5
10447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10448if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449  echo $ECHO_N "(cached) $ECHO_C" >&6
10450fi
10451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10453else
10454  # Is the header compilable?
10455echo "$as_me:$LINENO: checking $ac_header usability" >&5
10456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10457cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h.  */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h.  */
10463$ac_includes_default
10464#include <$ac_header>
10465_ACEOF
10466rm -f conftest.$ac_objext
10467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468  (eval $ac_compile) 2>conftest.er1
10469  ac_status=$?
10470  grep -v '^ *+' conftest.er1 >conftest.err
10471  rm -f conftest.er1
10472  cat conftest.err >&5
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); } &&
10475	 { ac_try='test -z "$ac_c_werror_flag"
10476			 || test ! -s conftest.err'
10477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478  (eval $ac_try) 2>&5
10479  ac_status=$?
10480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481  (exit $ac_status); }; } &&
10482	 { ac_try='test -s conftest.$ac_objext'
10483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484  (eval $ac_try) 2>&5
10485  ac_status=$?
10486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487  (exit $ac_status); }; }; then
10488  ac_header_compiler=yes
10489else
10490  echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493ac_header_compiler=no
10494fi
10495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497echo "${ECHO_T}$ac_header_compiler" >&6
10498
10499# Is the header present?
10500echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h.  */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h.  */
10508#include <$ac_header>
10509_ACEOF
10510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10511  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10512  ac_status=$?
10513  grep -v '^ *+' conftest.er1 >conftest.err
10514  rm -f conftest.er1
10515  cat conftest.err >&5
10516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517  (exit $ac_status); } >/dev/null; then
10518  if test -s conftest.err; then
10519    ac_cpp_err=$ac_c_preproc_warn_flag
10520    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10521  else
10522    ac_cpp_err=
10523  fi
10524else
10525  ac_cpp_err=yes
10526fi
10527if test -z "$ac_cpp_err"; then
10528  ac_header_preproc=yes
10529else
10530  echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533  ac_header_preproc=no
10534fi
10535rm -f conftest.err conftest.$ac_ext
10536echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10537echo "${ECHO_T}$ac_header_preproc" >&6
10538
10539# So?  What about this header?
10540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10541  yes:no: )
10542    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10544    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10546    ac_header_preproc=yes
10547    ;;
10548  no:yes:* )
10549    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10552echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10553    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10555    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10556echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10557    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10559    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10561    (
10562      cat <<\_ASBOX
10563## ------------------------------------------ ##
10564## Report this to the AC_PACKAGE_NAME lists.  ##
10565## ------------------------------------------ ##
10566_ASBOX
10567    ) |
10568      sed "s/^/$as_me: WARNING:     /" >&2
10569    ;;
10570esac
10571echo "$as_me:$LINENO: checking for $ac_header" >&5
10572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10573if eval "test \"\${$as_ac_Header+set}\" = set"; then
10574  echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576  eval "$as_ac_Header=\$ac_header_preproc"
10577fi
10578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10580
10581fi
10582if test `eval echo '${'$as_ac_Header'}'` = yes; then
10583  cat >>confdefs.h <<_ACEOF
10584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10585_ACEOF
10586
10587fi
10588
10589done
10590
10591
10592
10593
10594for ac_header in termios.h termio.h sgtty.h
10595do
10596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10597if eval "test \"\${$as_ac_Header+set}\" = set"; then
10598  echo "$as_me:$LINENO: checking for $ac_header" >&5
10599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10600if eval "test \"\${$as_ac_Header+set}\" = set"; then
10601  echo $ECHO_N "(cached) $ECHO_C" >&6
10602fi
10603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10605else
10606  # Is the header compilable?
10607echo "$as_me:$LINENO: checking $ac_header usability" >&5
10608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10609cat >conftest.$ac_ext <<_ACEOF
10610/* confdefs.h.  */
10611_ACEOF
10612cat confdefs.h >>conftest.$ac_ext
10613cat >>conftest.$ac_ext <<_ACEOF
10614/* end confdefs.h.  */
10615$ac_includes_default
10616#include <$ac_header>
10617_ACEOF
10618rm -f conftest.$ac_objext
10619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620  (eval $ac_compile) 2>conftest.er1
10621  ac_status=$?
10622  grep -v '^ *+' conftest.er1 >conftest.err
10623  rm -f conftest.er1
10624  cat conftest.err >&5
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); } &&
10627	 { ac_try='test -z "$ac_c_werror_flag"
10628			 || test ! -s conftest.err'
10629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630  (eval $ac_try) 2>&5
10631  ac_status=$?
10632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); }; } &&
10634	 { ac_try='test -s conftest.$ac_objext'
10635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636  (eval $ac_try) 2>&5
10637  ac_status=$?
10638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639  (exit $ac_status); }; }; then
10640  ac_header_compiler=yes
10641else
10642  echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
10644
10645ac_header_compiler=no
10646fi
10647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10649echo "${ECHO_T}$ac_header_compiler" >&6
10650
10651# Is the header present?
10652echo "$as_me:$LINENO: checking $ac_header presence" >&5
10653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10654cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h.  */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
10659/* end confdefs.h.  */
10660#include <$ac_header>
10661_ACEOF
10662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10663  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10664  ac_status=$?
10665  grep -v '^ *+' conftest.er1 >conftest.err
10666  rm -f conftest.er1
10667  cat conftest.err >&5
10668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669  (exit $ac_status); } >/dev/null; then
10670  if test -s conftest.err; then
10671    ac_cpp_err=$ac_c_preproc_warn_flag
10672    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10673  else
10674    ac_cpp_err=
10675  fi
10676else
10677  ac_cpp_err=yes
10678fi
10679if test -z "$ac_cpp_err"; then
10680  ac_header_preproc=yes
10681else
10682  echo "$as_me: failed program was:" >&5
10683sed 's/^/| /' conftest.$ac_ext >&5
10684
10685  ac_header_preproc=no
10686fi
10687rm -f conftest.err conftest.$ac_ext
10688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10689echo "${ECHO_T}$ac_header_preproc" >&6
10690
10691# So?  What about this header?
10692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10693  yes:no: )
10694    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10696    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10698    ac_header_preproc=yes
10699    ;;
10700  no:yes:* )
10701    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10703    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10704echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10705    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10707    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10708echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10709    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10711    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10713    (
10714      cat <<\_ASBOX
10715## ------------------------------------------ ##
10716## Report this to the AC_PACKAGE_NAME lists.  ##
10717## ------------------------------------------ ##
10718_ASBOX
10719    ) |
10720      sed "s/^/$as_me: WARNING:     /" >&2
10721    ;;
10722esac
10723echo "$as_me:$LINENO: checking for $ac_header" >&5
10724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10725if eval "test \"\${$as_ac_Header+set}\" = set"; then
10726  echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728  eval "$as_ac_Header=\$ac_header_preproc"
10729fi
10730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10732
10733fi
10734if test `eval echo '${'$as_ac_Header'}'` = yes; then
10735  cat >>confdefs.h <<_ACEOF
10736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10737_ACEOF
10738
10739fi
10740
10741done
10742
10743
10744for ac_header in unistd.h
10745do
10746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10747if eval "test \"\${$as_ac_Header+set}\" = set"; then
10748  echo "$as_me:$LINENO: checking for $ac_header" >&5
10749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10750if eval "test \"\${$as_ac_Header+set}\" = set"; then
10751  echo $ECHO_N "(cached) $ECHO_C" >&6
10752fi
10753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10755else
10756  # Is the header compilable?
10757echo "$as_me:$LINENO: checking $ac_header usability" >&5
10758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10759cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h.  */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h.  */
10765$ac_includes_default
10766#include <$ac_header>
10767_ACEOF
10768rm -f conftest.$ac_objext
10769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10770  (eval $ac_compile) 2>conftest.er1
10771  ac_status=$?
10772  grep -v '^ *+' conftest.er1 >conftest.err
10773  rm -f conftest.er1
10774  cat conftest.err >&5
10775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776  (exit $ac_status); } &&
10777	 { ac_try='test -z "$ac_c_werror_flag"
10778			 || test ! -s conftest.err'
10779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780  (eval $ac_try) 2>&5
10781  ac_status=$?
10782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783  (exit $ac_status); }; } &&
10784	 { ac_try='test -s conftest.$ac_objext'
10785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786  (eval $ac_try) 2>&5
10787  ac_status=$?
10788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789  (exit $ac_status); }; }; then
10790  ac_header_compiler=yes
10791else
10792  echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
10795ac_header_compiler=no
10796fi
10797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10799echo "${ECHO_T}$ac_header_compiler" >&6
10800
10801# Is the header present?
10802echo "$as_me:$LINENO: checking $ac_header presence" >&5
10803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10804cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h.  */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h.  */
10810#include <$ac_header>
10811_ACEOF
10812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10813  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10814  ac_status=$?
10815  grep -v '^ *+' conftest.er1 >conftest.err
10816  rm -f conftest.er1
10817  cat conftest.err >&5
10818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819  (exit $ac_status); } >/dev/null; then
10820  if test -s conftest.err; then
10821    ac_cpp_err=$ac_c_preproc_warn_flag
10822    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10823  else
10824    ac_cpp_err=
10825  fi
10826else
10827  ac_cpp_err=yes
10828fi
10829if test -z "$ac_cpp_err"; then
10830  ac_header_preproc=yes
10831else
10832  echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
10835  ac_header_preproc=no
10836fi
10837rm -f conftest.err conftest.$ac_ext
10838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10839echo "${ECHO_T}$ac_header_preproc" >&6
10840
10841# So?  What about this header?
10842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10843  yes:no: )
10844    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10848    ac_header_preproc=yes
10849    ;;
10850  no:yes:* )
10851    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10853    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10854echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10855    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10857    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10858echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10861    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10863    (
10864      cat <<\_ASBOX
10865## ------------------------------------------ ##
10866## Report this to the AC_PACKAGE_NAME lists.  ##
10867## ------------------------------------------ ##
10868_ASBOX
10869    ) |
10870      sed "s/^/$as_me: WARNING:     /" >&2
10871    ;;
10872esac
10873echo "$as_me:$LINENO: checking for $ac_header" >&5
10874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10875if eval "test \"\${$as_ac_Header+set}\" = set"; then
10876  echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878  eval "$as_ac_Header=\$ac_header_preproc"
10879fi
10880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10882
10883fi
10884if test `eval echo '${'$as_ac_Header'}'` = yes; then
10885  cat >>confdefs.h <<_ACEOF
10886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10887_ACEOF
10888
10889fi
10890
10891done
10892
10893
10894# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10895# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10896# think that we don't have <curses.h> if we're using GCC.
10897case $host_os in
10898  solaris2.[789])
10899    if test "$GCC" = yes; then
10900
10901cat >>confdefs.h <<\_ACEOF
10902#define _MSE_INT_H 1
10903_ACEOF
10904
10905    fi ;;
10906esac
10907
10908
10909
10910
10911for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
10912do
10913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10914if eval "test \"\${$as_ac_Header+set}\" = set"; then
10915  echo "$as_me:$LINENO: checking for $ac_header" >&5
10916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10917if eval "test \"\${$as_ac_Header+set}\" = set"; then
10918  echo $ECHO_N "(cached) $ECHO_C" >&6
10919fi
10920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10922else
10923  # Is the header compilable?
10924echo "$as_me:$LINENO: checking $ac_header usability" >&5
10925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10926cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h.  */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h.  */
10932$ac_includes_default
10933#include <$ac_header>
10934_ACEOF
10935rm -f conftest.$ac_objext
10936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937  (eval $ac_compile) 2>conftest.er1
10938  ac_status=$?
10939  grep -v '^ *+' conftest.er1 >conftest.err
10940  rm -f conftest.er1
10941  cat conftest.err >&5
10942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943  (exit $ac_status); } &&
10944	 { ac_try='test -z "$ac_c_werror_flag"
10945			 || test ! -s conftest.err'
10946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947  (eval $ac_try) 2>&5
10948  ac_status=$?
10949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950  (exit $ac_status); }; } &&
10951	 { ac_try='test -s conftest.$ac_objext'
10952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953  (eval $ac_try) 2>&5
10954  ac_status=$?
10955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956  (exit $ac_status); }; }; then
10957  ac_header_compiler=yes
10958else
10959  echo "$as_me: failed program was:" >&5
10960sed 's/^/| /' conftest.$ac_ext >&5
10961
10962ac_header_compiler=no
10963fi
10964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10966echo "${ECHO_T}$ac_header_compiler" >&6
10967
10968# Is the header present?
10969echo "$as_me:$LINENO: checking $ac_header presence" >&5
10970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10971cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h.  */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h.  */
10977#include <$ac_header>
10978_ACEOF
10979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10980  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10981  ac_status=$?
10982  grep -v '^ *+' conftest.er1 >conftest.err
10983  rm -f conftest.er1
10984  cat conftest.err >&5
10985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986  (exit $ac_status); } >/dev/null; then
10987  if test -s conftest.err; then
10988    ac_cpp_err=$ac_c_preproc_warn_flag
10989    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10990  else
10991    ac_cpp_err=
10992  fi
10993else
10994  ac_cpp_err=yes
10995fi
10996if test -z "$ac_cpp_err"; then
10997  ac_header_preproc=yes
10998else
10999  echo "$as_me: failed program was:" >&5
11000sed 's/^/| /' conftest.$ac_ext >&5
11001
11002  ac_header_preproc=no
11003fi
11004rm -f conftest.err conftest.$ac_ext
11005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11006echo "${ECHO_T}$ac_header_preproc" >&6
11007
11008# So?  What about this header?
11009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11010  yes:no: )
11011    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11013    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11015    ac_header_preproc=yes
11016    ;;
11017  no:yes:* )
11018    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11020    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11021echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11022    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11024    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11025echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11026    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11028    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11030    (
11031      cat <<\_ASBOX
11032## ------------------------------------------ ##
11033## Report this to the AC_PACKAGE_NAME lists.  ##
11034## ------------------------------------------ ##
11035_ASBOX
11036    ) |
11037      sed "s/^/$as_me: WARNING:     /" >&2
11038    ;;
11039esac
11040echo "$as_me:$LINENO: checking for $ac_header" >&5
11041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11042if eval "test \"\${$as_ac_Header+set}\" = set"; then
11043  echo $ECHO_N "(cached) $ECHO_C" >&6
11044else
11045  eval "$as_ac_Header=\$ac_header_preproc"
11046fi
11047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11049
11050fi
11051if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052  cat >>confdefs.h <<_ACEOF
11053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054_ACEOF
11055
11056fi
11057
11058done
11059
11060
11061for ac_header in ncurses/term.h
11062do
11063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064if eval "test \"\${$as_ac_Header+set}\" = set"; then
11065  echo "$as_me:$LINENO: checking for $ac_header" >&5
11066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11067if eval "test \"\${$as_ac_Header+set}\" = set"; then
11068  echo $ECHO_N "(cached) $ECHO_C" >&6
11069fi
11070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11072else
11073  # Is the header compilable?
11074echo "$as_me:$LINENO: checking $ac_header usability" >&5
11075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11076cat >conftest.$ac_ext <<_ACEOF
11077/* confdefs.h.  */
11078_ACEOF
11079cat confdefs.h >>conftest.$ac_ext
11080cat >>conftest.$ac_ext <<_ACEOF
11081/* end confdefs.h.  */
11082$ac_includes_default
11083#include <$ac_header>
11084_ACEOF
11085rm -f conftest.$ac_objext
11086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087  (eval $ac_compile) 2>conftest.er1
11088  ac_status=$?
11089  grep -v '^ *+' conftest.er1 >conftest.err
11090  rm -f conftest.er1
11091  cat conftest.err >&5
11092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093  (exit $ac_status); } &&
11094	 { ac_try='test -z "$ac_c_werror_flag"
11095			 || test ! -s conftest.err'
11096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097  (eval $ac_try) 2>&5
11098  ac_status=$?
11099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100  (exit $ac_status); }; } &&
11101	 { ac_try='test -s conftest.$ac_objext'
11102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103  (eval $ac_try) 2>&5
11104  ac_status=$?
11105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106  (exit $ac_status); }; }; then
11107  ac_header_compiler=yes
11108else
11109  echo "$as_me: failed program was:" >&5
11110sed 's/^/| /' conftest.$ac_ext >&5
11111
11112ac_header_compiler=no
11113fi
11114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116echo "${ECHO_T}$ac_header_compiler" >&6
11117
11118# Is the header present?
11119echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11121cat >conftest.$ac_ext <<_ACEOF
11122/* confdefs.h.  */
11123_ACEOF
11124cat confdefs.h >>conftest.$ac_ext
11125cat >>conftest.$ac_ext <<_ACEOF
11126/* end confdefs.h.  */
11127#include <$ac_header>
11128_ACEOF
11129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11130  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11131  ac_status=$?
11132  grep -v '^ *+' conftest.er1 >conftest.err
11133  rm -f conftest.er1
11134  cat conftest.err >&5
11135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136  (exit $ac_status); } >/dev/null; then
11137  if test -s conftest.err; then
11138    ac_cpp_err=$ac_c_preproc_warn_flag
11139    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11140  else
11141    ac_cpp_err=
11142  fi
11143else
11144  ac_cpp_err=yes
11145fi
11146if test -z "$ac_cpp_err"; then
11147  ac_header_preproc=yes
11148else
11149  echo "$as_me: failed program was:" >&5
11150sed 's/^/| /' conftest.$ac_ext >&5
11151
11152  ac_header_preproc=no
11153fi
11154rm -f conftest.err conftest.$ac_ext
11155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11156echo "${ECHO_T}$ac_header_preproc" >&6
11157
11158# So?  What about this header?
11159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11160  yes:no: )
11161    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11163    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11165    ac_header_preproc=yes
11166    ;;
11167  no:yes:* )
11168    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11170    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11171echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11172    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11174    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11175echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11176    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11178    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11180    (
11181      cat <<\_ASBOX
11182## ------------------------------------------ ##
11183## Report this to the AC_PACKAGE_NAME lists.  ##
11184## ------------------------------------------ ##
11185_ASBOX
11186    ) |
11187      sed "s/^/$as_me: WARNING:     /" >&2
11188    ;;
11189esac
11190echo "$as_me:$LINENO: checking for $ac_header" >&5
11191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11192if eval "test \"\${$as_ac_Header+set}\" = set"; then
11193  echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195  eval "$as_ac_Header=\$ac_header_preproc"
11196fi
11197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11199
11200fi
11201if test `eval echo '${'$as_ac_Header'}'` = yes; then
11202  cat >>confdefs.h <<_ACEOF
11203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11204_ACEOF
11205
11206fi
11207
11208done
11209
11210
11211for ac_header in term.h
11212do
11213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11214echo "$as_me:$LINENO: checking for $ac_header" >&5
11215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11216if eval "test \"\${$as_ac_Header+set}\" = set"; then
11217  echo $ECHO_N "(cached) $ECHO_C" >&6
11218else
11219  cat >conftest.$ac_ext <<_ACEOF
11220/* confdefs.h.  */
11221_ACEOF
11222cat confdefs.h >>conftest.$ac_ext
11223cat >>conftest.$ac_ext <<_ACEOF
11224/* end confdefs.h.  */
11225#if HAVE_CURSES_H
11226# include <curses.h>
11227#endif
11228
11229
11230#include <$ac_header>
11231_ACEOF
11232rm -f conftest.$ac_objext
11233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234  (eval $ac_compile) 2>conftest.er1
11235  ac_status=$?
11236  grep -v '^ *+' conftest.er1 >conftest.err
11237  rm -f conftest.er1
11238  cat conftest.err >&5
11239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240  (exit $ac_status); } &&
11241	 { ac_try='test -z "$ac_c_werror_flag"
11242			 || test ! -s conftest.err'
11243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244  (eval $ac_try) 2>&5
11245  ac_status=$?
11246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247  (exit $ac_status); }; } &&
11248	 { ac_try='test -s conftest.$ac_objext'
11249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250  (eval $ac_try) 2>&5
11251  ac_status=$?
11252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253  (exit $ac_status); }; }; then
11254  eval "$as_ac_Header=yes"
11255else
11256  echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
11259eval "$as_ac_Header=no"
11260fi
11261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262fi
11263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11265if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266  cat >>confdefs.h <<_ACEOF
11267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268_ACEOF
11269
11270fi
11271
11272done
11273
11274
11275# FIXME: kettenis/20030102: In most cases we include these
11276# unconditionally, so what's the point in checking these?
11277
11278
11279for ac_header in ctype.h time.h
11280do
11281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282if eval "test \"\${$as_ac_Header+set}\" = set"; then
11283  echo "$as_me:$LINENO: checking for $ac_header" >&5
11284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11285if eval "test \"\${$as_ac_Header+set}\" = set"; then
11286  echo $ECHO_N "(cached) $ECHO_C" >&6
11287fi
11288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11290else
11291  # Is the header compilable?
11292echo "$as_me:$LINENO: checking $ac_header usability" >&5
11293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11294cat >conftest.$ac_ext <<_ACEOF
11295/* confdefs.h.  */
11296_ACEOF
11297cat confdefs.h >>conftest.$ac_ext
11298cat >>conftest.$ac_ext <<_ACEOF
11299/* end confdefs.h.  */
11300$ac_includes_default
11301#include <$ac_header>
11302_ACEOF
11303rm -f conftest.$ac_objext
11304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305  (eval $ac_compile) 2>conftest.er1
11306  ac_status=$?
11307  grep -v '^ *+' conftest.er1 >conftest.err
11308  rm -f conftest.er1
11309  cat conftest.err >&5
11310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311  (exit $ac_status); } &&
11312	 { ac_try='test -z "$ac_c_werror_flag"
11313			 || test ! -s conftest.err'
11314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315  (eval $ac_try) 2>&5
11316  ac_status=$?
11317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318  (exit $ac_status); }; } &&
11319	 { ac_try='test -s conftest.$ac_objext'
11320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321  (eval $ac_try) 2>&5
11322  ac_status=$?
11323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324  (exit $ac_status); }; }; then
11325  ac_header_compiler=yes
11326else
11327  echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
11330ac_header_compiler=no
11331fi
11332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334echo "${ECHO_T}$ac_header_compiler" >&6
11335
11336# Is the header present?
11337echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11339cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h.  */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h.  */
11345#include <$ac_header>
11346_ACEOF
11347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11348  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11349  ac_status=$?
11350  grep -v '^ *+' conftest.er1 >conftest.err
11351  rm -f conftest.er1
11352  cat conftest.err >&5
11353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354  (exit $ac_status); } >/dev/null; then
11355  if test -s conftest.err; then
11356    ac_cpp_err=$ac_c_preproc_warn_flag
11357    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11358  else
11359    ac_cpp_err=
11360  fi
11361else
11362  ac_cpp_err=yes
11363fi
11364if test -z "$ac_cpp_err"; then
11365  ac_header_preproc=yes
11366else
11367  echo "$as_me: failed program was:" >&5
11368sed 's/^/| /' conftest.$ac_ext >&5
11369
11370  ac_header_preproc=no
11371fi
11372rm -f conftest.err conftest.$ac_ext
11373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11374echo "${ECHO_T}$ac_header_preproc" >&6
11375
11376# So?  What about this header?
11377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11378  yes:no: )
11379    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11381    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11383    ac_header_preproc=yes
11384    ;;
11385  no:yes:* )
11386    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11388    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11389echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11390    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11392    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11393echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11394    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11396    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11398    (
11399      cat <<\_ASBOX
11400## ------------------------------------------ ##
11401## Report this to the AC_PACKAGE_NAME lists.  ##
11402## ------------------------------------------ ##
11403_ASBOX
11404    ) |
11405      sed "s/^/$as_me: WARNING:     /" >&2
11406    ;;
11407esac
11408echo "$as_me:$LINENO: checking for $ac_header" >&5
11409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411  echo $ECHO_N "(cached) $ECHO_C" >&6
11412else
11413  eval "$as_ac_Header=\$ac_header_preproc"
11414fi
11415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11417
11418fi
11419if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420  cat >>confdefs.h <<_ACEOF
11421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11422_ACEOF
11423
11424fi
11425
11426done
11427
11428
11429# Create a header we can use portably to get the standard integer types.
11430
11431
11432inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
11433
11434acx_cv_header_stdint=stddef.h
11435acx_cv_header_stdint_kind="(already complete)"
11436for i in stdint.h $inttype_headers; do
11437  unset ac_cv_type_uintptr_t
11438  unset ac_cv_type_uintmax_t
11439  unset ac_cv_type_int_least32_t
11440  unset ac_cv_type_int_fast32_t
11441  unset ac_cv_type_uint64_t
11442  echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
11443  echo "$as_me:$LINENO: checking for uintmax_t" >&5
11444echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11445if test "${ac_cv_type_uintmax_t+set}" = set; then
11446  echo $ECHO_N "(cached) $ECHO_C" >&6
11447else
11448  cat >conftest.$ac_ext <<_ACEOF
11449/* confdefs.h.  */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h.  */
11454#include <sys/types.h>
11455#include <$i>
11456
11457int
11458main ()
11459{
11460if ((uintmax_t *) 0)
11461  return 0;
11462if (sizeof (uintmax_t))
11463  return 0;
11464  ;
11465  return 0;
11466}
11467_ACEOF
11468rm -f conftest.$ac_objext
11469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470  (eval $ac_compile) 2>conftest.er1
11471  ac_status=$?
11472  grep -v '^ *+' conftest.er1 >conftest.err
11473  rm -f conftest.er1
11474  cat conftest.err >&5
11475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476  (exit $ac_status); } &&
11477	 { ac_try='test -z "$ac_c_werror_flag"
11478			 || test ! -s conftest.err'
11479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480  (eval $ac_try) 2>&5
11481  ac_status=$?
11482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483  (exit $ac_status); }; } &&
11484	 { ac_try='test -s conftest.$ac_objext'
11485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486  (eval $ac_try) 2>&5
11487  ac_status=$?
11488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489  (exit $ac_status); }; }; then
11490  ac_cv_type_uintmax_t=yes
11491else
11492  echo "$as_me: failed program was:" >&5
11493sed 's/^/| /' conftest.$ac_ext >&5
11494
11495ac_cv_type_uintmax_t=no
11496fi
11497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11498fi
11499echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11500echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11501if test $ac_cv_type_uintmax_t = yes; then
11502  acx_cv_header_stdint=$i
11503else
11504  continue
11505fi
11506
11507  echo "$as_me:$LINENO: checking for uintptr_t" >&5
11508echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11509if test "${ac_cv_type_uintptr_t+set}" = set; then
11510  echo $ECHO_N "(cached) $ECHO_C" >&6
11511else
11512  cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h.  */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h.  */
11518#include <sys/types.h>
11519#include <$i>
11520
11521int
11522main ()
11523{
11524if ((uintptr_t *) 0)
11525  return 0;
11526if (sizeof (uintptr_t))
11527  return 0;
11528  ;
11529  return 0;
11530}
11531_ACEOF
11532rm -f conftest.$ac_objext
11533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534  (eval $ac_compile) 2>conftest.er1
11535  ac_status=$?
11536  grep -v '^ *+' conftest.er1 >conftest.err
11537  rm -f conftest.er1
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
11545  ac_status=$?
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
11551  ac_status=$?
11552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553  (exit $ac_status); }; }; then
11554  ac_cv_type_uintptr_t=yes
11555else
11556  echo "$as_me: failed program was:" >&5
11557sed 's/^/| /' conftest.$ac_ext >&5
11558
11559ac_cv_type_uintptr_t=no
11560fi
11561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562fi
11563echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11564echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11565if test $ac_cv_type_uintptr_t = yes; then
11566  :
11567else
11568  acx_cv_header_stdint_kind="(mostly complete)"
11569fi
11570
11571  echo "$as_me:$LINENO: checking for int_least32_t" >&5
11572echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11573if test "${ac_cv_type_int_least32_t+set}" = set; then
11574  echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576  cat >conftest.$ac_ext <<_ACEOF
11577/* confdefs.h.  */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h.  */
11582#include <sys/types.h>
11583#include <$i>
11584
11585int
11586main ()
11587{
11588if ((int_least32_t *) 0)
11589  return 0;
11590if (sizeof (int_least32_t))
11591  return 0;
11592  ;
11593  return 0;
11594}
11595_ACEOF
11596rm -f conftest.$ac_objext
11597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598  (eval $ac_compile) 2>conftest.er1
11599  ac_status=$?
11600  grep -v '^ *+' conftest.er1 >conftest.err
11601  rm -f conftest.er1
11602  cat conftest.err >&5
11603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604  (exit $ac_status); } &&
11605	 { ac_try='test -z "$ac_c_werror_flag"
11606			 || test ! -s conftest.err'
11607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608  (eval $ac_try) 2>&5
11609  ac_status=$?
11610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611  (exit $ac_status); }; } &&
11612	 { ac_try='test -s conftest.$ac_objext'
11613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614  (eval $ac_try) 2>&5
11615  ac_status=$?
11616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617  (exit $ac_status); }; }; then
11618  ac_cv_type_int_least32_t=yes
11619else
11620  echo "$as_me: failed program was:" >&5
11621sed 's/^/| /' conftest.$ac_ext >&5
11622
11623ac_cv_type_int_least32_t=no
11624fi
11625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11626fi
11627echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11628echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11629if test $ac_cv_type_int_least32_t = yes; then
11630  :
11631else
11632  acx_cv_header_stdint_kind="(mostly complete)"
11633fi
11634
11635  echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11636echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11637if test "${ac_cv_type_int_fast32_t+set}" = set; then
11638  echo $ECHO_N "(cached) $ECHO_C" >&6
11639else
11640  cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h.  */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h.  */
11646#include <sys/types.h>
11647#include <$i>
11648
11649int
11650main ()
11651{
11652if ((int_fast32_t *) 0)
11653  return 0;
11654if (sizeof (int_fast32_t))
11655  return 0;
11656  ;
11657  return 0;
11658}
11659_ACEOF
11660rm -f conftest.$ac_objext
11661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662  (eval $ac_compile) 2>conftest.er1
11663  ac_status=$?
11664  grep -v '^ *+' conftest.er1 >conftest.err
11665  rm -f conftest.er1
11666  cat conftest.err >&5
11667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668  (exit $ac_status); } &&
11669	 { ac_try='test -z "$ac_c_werror_flag"
11670			 || test ! -s conftest.err'
11671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672  (eval $ac_try) 2>&5
11673  ac_status=$?
11674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675  (exit $ac_status); }; } &&
11676	 { ac_try='test -s conftest.$ac_objext'
11677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678  (eval $ac_try) 2>&5
11679  ac_status=$?
11680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681  (exit $ac_status); }; }; then
11682  ac_cv_type_int_fast32_t=yes
11683else
11684  echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
11687ac_cv_type_int_fast32_t=no
11688fi
11689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11690fi
11691echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11692echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
11693if test $ac_cv_type_int_fast32_t = yes; then
11694  :
11695else
11696  acx_cv_header_stdint_kind="(mostly complete)"
11697fi
11698
11699  echo "$as_me:$LINENO: checking for uint64_t" >&5
11700echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11701if test "${ac_cv_type_uint64_t+set}" = set; then
11702  echo $ECHO_N "(cached) $ECHO_C" >&6
11703else
11704  cat >conftest.$ac_ext <<_ACEOF
11705/* confdefs.h.  */
11706_ACEOF
11707cat confdefs.h >>conftest.$ac_ext
11708cat >>conftest.$ac_ext <<_ACEOF
11709/* end confdefs.h.  */
11710#include <sys/types.h>
11711#include <$i>
11712
11713int
11714main ()
11715{
11716if ((uint64_t *) 0)
11717  return 0;
11718if (sizeof (uint64_t))
11719  return 0;
11720  ;
11721  return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726  (eval $ac_compile) 2>conftest.er1
11727  ac_status=$?
11728  grep -v '^ *+' conftest.er1 >conftest.err
11729  rm -f conftest.er1
11730  cat conftest.err >&5
11731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732  (exit $ac_status); } &&
11733	 { ac_try='test -z "$ac_c_werror_flag"
11734			 || test ! -s conftest.err'
11735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736  (eval $ac_try) 2>&5
11737  ac_status=$?
11738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739  (exit $ac_status); }; } &&
11740	 { ac_try='test -s conftest.$ac_objext'
11741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742  (eval $ac_try) 2>&5
11743  ac_status=$?
11744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745  (exit $ac_status); }; }; then
11746  ac_cv_type_uint64_t=yes
11747else
11748  echo "$as_me: failed program was:" >&5
11749sed 's/^/| /' conftest.$ac_ext >&5
11750
11751ac_cv_type_uint64_t=no
11752fi
11753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11754fi
11755echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11756echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11757if test $ac_cv_type_uint64_t = yes; then
11758  :
11759else
11760  acx_cv_header_stdint_kind="(lacks uint64_t)"
11761fi
11762
11763  break
11764done
11765if test "$acx_cv_header_stdint" = stddef.h; then
11766  acx_cv_header_stdint_kind="(lacks uintmax_t)"
11767  for i in stdint.h $inttype_headers; do
11768    unset ac_cv_type_uintptr_t
11769    unset ac_cv_type_uint32_t
11770    unset ac_cv_type_uint64_t
11771    echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
11772    echo "$as_me:$LINENO: checking for uint32_t" >&5
11773echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11774if test "${ac_cv_type_uint32_t+set}" = set; then
11775  echo $ECHO_N "(cached) $ECHO_C" >&6
11776else
11777  cat >conftest.$ac_ext <<_ACEOF
11778/* confdefs.h.  */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h.  */
11783#include <sys/types.h>
11784#include <$i>
11785
11786int
11787main ()
11788{
11789if ((uint32_t *) 0)
11790  return 0;
11791if (sizeof (uint32_t))
11792  return 0;
11793  ;
11794  return 0;
11795}
11796_ACEOF
11797rm -f conftest.$ac_objext
11798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11799  (eval $ac_compile) 2>conftest.er1
11800  ac_status=$?
11801  grep -v '^ *+' conftest.er1 >conftest.err
11802  rm -f conftest.er1
11803  cat conftest.err >&5
11804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805  (exit $ac_status); } &&
11806	 { ac_try='test -z "$ac_c_werror_flag"
11807			 || test ! -s conftest.err'
11808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809  (eval $ac_try) 2>&5
11810  ac_status=$?
11811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812  (exit $ac_status); }; } &&
11813	 { ac_try='test -s conftest.$ac_objext'
11814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815  (eval $ac_try) 2>&5
11816  ac_status=$?
11817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818  (exit $ac_status); }; }; then
11819  ac_cv_type_uint32_t=yes
11820else
11821  echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824ac_cv_type_uint32_t=no
11825fi
11826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11827fi
11828echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11829echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11830if test $ac_cv_type_uint32_t = yes; then
11831  acx_cv_header_stdint=$i
11832else
11833  continue
11834fi
11835
11836    echo "$as_me:$LINENO: checking for uint64_t" >&5
11837echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11838if test "${ac_cv_type_uint64_t+set}" = set; then
11839  echo $ECHO_N "(cached) $ECHO_C" >&6
11840else
11841  cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h.  */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h.  */
11847#include <sys/types.h>
11848#include <$i>
11849
11850int
11851main ()
11852{
11853if ((uint64_t *) 0)
11854  return 0;
11855if (sizeof (uint64_t))
11856  return 0;
11857  ;
11858  return 0;
11859}
11860_ACEOF
11861rm -f conftest.$ac_objext
11862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863  (eval $ac_compile) 2>conftest.er1
11864  ac_status=$?
11865  grep -v '^ *+' conftest.er1 >conftest.err
11866  rm -f conftest.er1
11867  cat conftest.err >&5
11868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869  (exit $ac_status); } &&
11870	 { ac_try='test -z "$ac_c_werror_flag"
11871			 || test ! -s conftest.err'
11872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873  (eval $ac_try) 2>&5
11874  ac_status=$?
11875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876  (exit $ac_status); }; } &&
11877	 { ac_try='test -s conftest.$ac_objext'
11878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879  (eval $ac_try) 2>&5
11880  ac_status=$?
11881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882  (exit $ac_status); }; }; then
11883  ac_cv_type_uint64_t=yes
11884else
11885  echo "$as_me: failed program was:" >&5
11886sed 's/^/| /' conftest.$ac_ext >&5
11887
11888ac_cv_type_uint64_t=no
11889fi
11890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11891fi
11892echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11893echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11894
11895    echo "$as_me:$LINENO: checking for uintptr_t" >&5
11896echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11897if test "${ac_cv_type_uintptr_t+set}" = set; then
11898  echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900  cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h.  */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h.  */
11906#include <sys/types.h>
11907#include <$i>
11908
11909int
11910main ()
11911{
11912if ((uintptr_t *) 0)
11913  return 0;
11914if (sizeof (uintptr_t))
11915  return 0;
11916  ;
11917  return 0;
11918}
11919_ACEOF
11920rm -f conftest.$ac_objext
11921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922  (eval $ac_compile) 2>conftest.er1
11923  ac_status=$?
11924  grep -v '^ *+' conftest.er1 >conftest.err
11925  rm -f conftest.er1
11926  cat conftest.err >&5
11927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928  (exit $ac_status); } &&
11929	 { ac_try='test -z "$ac_c_werror_flag"
11930			 || test ! -s conftest.err'
11931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932  (eval $ac_try) 2>&5
11933  ac_status=$?
11934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935  (exit $ac_status); }; } &&
11936	 { ac_try='test -s conftest.$ac_objext'
11937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938  (eval $ac_try) 2>&5
11939  ac_status=$?
11940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941  (exit $ac_status); }; }; then
11942  ac_cv_type_uintptr_t=yes
11943else
11944  echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
11947ac_cv_type_uintptr_t=no
11948fi
11949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11950fi
11951echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11952echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11953
11954    break
11955  done
11956fi
11957if test "$acx_cv_header_stdint" = stddef.h; then
11958  acx_cv_header_stdint_kind="(u_intXX_t style)"
11959  for i in sys/types.h $inttype_headers; do
11960    unset ac_cv_type_u_int32_t
11961    unset ac_cv_type_u_int64_t
11962    echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
11963    echo "$as_me:$LINENO: checking for u_int32_t" >&5
11964echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11965if test "${ac_cv_type_u_int32_t+set}" = set; then
11966  echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968  cat >conftest.$ac_ext <<_ACEOF
11969/* confdefs.h.  */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h.  */
11974#include <sys/types.h>
11975#include <$i>
11976
11977int
11978main ()
11979{
11980if ((u_int32_t *) 0)
11981  return 0;
11982if (sizeof (u_int32_t))
11983  return 0;
11984  ;
11985  return 0;
11986}
11987_ACEOF
11988rm -f conftest.$ac_objext
11989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990  (eval $ac_compile) 2>conftest.er1
11991  ac_status=$?
11992  grep -v '^ *+' conftest.er1 >conftest.err
11993  rm -f conftest.er1
11994  cat conftest.err >&5
11995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996  (exit $ac_status); } &&
11997	 { ac_try='test -z "$ac_c_werror_flag"
11998			 || test ! -s conftest.err'
11999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000  (eval $ac_try) 2>&5
12001  ac_status=$?
12002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003  (exit $ac_status); }; } &&
12004	 { ac_try='test -s conftest.$ac_objext'
12005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006  (eval $ac_try) 2>&5
12007  ac_status=$?
12008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009  (exit $ac_status); }; }; then
12010  ac_cv_type_u_int32_t=yes
12011else
12012  echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015ac_cv_type_u_int32_t=no
12016fi
12017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12018fi
12019echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12020echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
12021if test $ac_cv_type_u_int32_t = yes; then
12022  acx_cv_header_stdint=$i
12023else
12024  continue
12025fi
12026
12027    echo "$as_me:$LINENO: checking for u_int64_t" >&5
12028echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12029if test "${ac_cv_type_u_int64_t+set}" = set; then
12030  echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032  cat >conftest.$ac_ext <<_ACEOF
12033/* confdefs.h.  */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h.  */
12038#include <sys/types.h>
12039#include <$i>
12040
12041int
12042main ()
12043{
12044if ((u_int64_t *) 0)
12045  return 0;
12046if (sizeof (u_int64_t))
12047  return 0;
12048  ;
12049  return 0;
12050}
12051_ACEOF
12052rm -f conftest.$ac_objext
12053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054  (eval $ac_compile) 2>conftest.er1
12055  ac_status=$?
12056  grep -v '^ *+' conftest.er1 >conftest.err
12057  rm -f conftest.er1
12058  cat conftest.err >&5
12059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060  (exit $ac_status); } &&
12061	 { ac_try='test -z "$ac_c_werror_flag"
12062			 || test ! -s conftest.err'
12063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064  (eval $ac_try) 2>&5
12065  ac_status=$?
12066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067  (exit $ac_status); }; } &&
12068	 { ac_try='test -s conftest.$ac_objext'
12069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070  (eval $ac_try) 2>&5
12071  ac_status=$?
12072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073  (exit $ac_status); }; }; then
12074  ac_cv_type_u_int64_t=yes
12075else
12076  echo "$as_me: failed program was:" >&5
12077sed 's/^/| /' conftest.$ac_ext >&5
12078
12079ac_cv_type_u_int64_t=no
12080fi
12081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12082fi
12083echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12084echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12085
12086    break
12087  done
12088fi
12089if test "$acx_cv_header_stdint" = stddef.h; then
12090  acx_cv_header_stdint_kind="(using manual detection)"
12091fi
12092
12093test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12094test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12095test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12096test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12097test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12098
12099# ----------------- Summarize what we found so far
12100
12101echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12102echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
12103
12104case `$as_basename gdb_stdint.h ||
12105$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12106	 Xgdb_stdint.h : 'X\(//\)$' \| \
12107	 Xgdb_stdint.h : 'X\(/\)$' \| \
12108	 .     : '\(.\)' 2>/dev/null ||
12109echo X/gdb_stdint.h |
12110    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12111  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
12112  	  /^X\/\(\/\).*/{ s//\1/; q; }
12113  	  s/.*/./; q'` in
12114  stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12115echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12116  inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12117echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12118  *) ;;
12119esac
12120
12121echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12122echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
12123
12124# ----------------- done included file, check C basic types --------
12125
12126# Lacking an uintptr_t?  Test size of void *
12127case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12128  stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12129echo $ECHO_N "checking for void *... $ECHO_C" >&6
12130if test "${ac_cv_type_void_p+set}" = set; then
12131  echo $ECHO_N "(cached) $ECHO_C" >&6
12132else
12133  cat >conftest.$ac_ext <<_ACEOF
12134/* confdefs.h.  */
12135_ACEOF
12136cat confdefs.h >>conftest.$ac_ext
12137cat >>conftest.$ac_ext <<_ACEOF
12138/* end confdefs.h.  */
12139$ac_includes_default
12140int
12141main ()
12142{
12143if ((void * *) 0)
12144  return 0;
12145if (sizeof (void *))
12146  return 0;
12147  ;
12148  return 0;
12149}
12150_ACEOF
12151rm -f conftest.$ac_objext
12152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153  (eval $ac_compile) 2>conftest.er1
12154  ac_status=$?
12155  grep -v '^ *+' conftest.er1 >conftest.err
12156  rm -f conftest.er1
12157  cat conftest.err >&5
12158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159  (exit $ac_status); } &&
12160	 { ac_try='test -z "$ac_c_werror_flag"
12161			 || test ! -s conftest.err'
12162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163  (eval $ac_try) 2>&5
12164  ac_status=$?
12165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166  (exit $ac_status); }; } &&
12167	 { ac_try='test -s conftest.$ac_objext'
12168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169  (eval $ac_try) 2>&5
12170  ac_status=$?
12171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172  (exit $ac_status); }; }; then
12173  ac_cv_type_void_p=yes
12174else
12175  echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
12178ac_cv_type_void_p=no
12179fi
12180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12181fi
12182echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12183echo "${ECHO_T}$ac_cv_type_void_p" >&6
12184
12185echo "$as_me:$LINENO: checking size of void *" >&5
12186echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12187if test "${ac_cv_sizeof_void_p+set}" = set; then
12188  echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
12190  if test "$ac_cv_type_void_p" = yes; then
12191  # The cast to unsigned long works around a bug in the HP C Compiler
12192  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12193  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12194  # This bug is HP SR number 8606223364.
12195  if test "$cross_compiling" = yes; then
12196  # Depending upon the size, compute the lo and hi bounds.
12197cat >conftest.$ac_ext <<_ACEOF
12198/* confdefs.h.  */
12199_ACEOF
12200cat confdefs.h >>conftest.$ac_ext
12201cat >>conftest.$ac_ext <<_ACEOF
12202/* end confdefs.h.  */
12203$ac_includes_default
12204int
12205main ()
12206{
12207static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12208test_array [0] = 0
12209
12210  ;
12211  return 0;
12212}
12213_ACEOF
12214rm -f conftest.$ac_objext
12215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216  (eval $ac_compile) 2>conftest.er1
12217  ac_status=$?
12218  grep -v '^ *+' conftest.er1 >conftest.err
12219  rm -f conftest.er1
12220  cat conftest.err >&5
12221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222  (exit $ac_status); } &&
12223	 { ac_try='test -z "$ac_c_werror_flag"
12224			 || test ! -s conftest.err'
12225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226  (eval $ac_try) 2>&5
12227  ac_status=$?
12228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229  (exit $ac_status); }; } &&
12230	 { ac_try='test -s conftest.$ac_objext'
12231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232  (eval $ac_try) 2>&5
12233  ac_status=$?
12234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235  (exit $ac_status); }; }; then
12236  ac_lo=0 ac_mid=0
12237  while :; do
12238    cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h.  */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h.  */
12244$ac_includes_default
12245int
12246main ()
12247{
12248static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12249test_array [0] = 0
12250
12251  ;
12252  return 0;
12253}
12254_ACEOF
12255rm -f conftest.$ac_objext
12256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12257  (eval $ac_compile) 2>conftest.er1
12258  ac_status=$?
12259  grep -v '^ *+' conftest.er1 >conftest.err
12260  rm -f conftest.er1
12261  cat conftest.err >&5
12262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263  (exit $ac_status); } &&
12264	 { ac_try='test -z "$ac_c_werror_flag"
12265			 || test ! -s conftest.err'
12266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267  (eval $ac_try) 2>&5
12268  ac_status=$?
12269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270  (exit $ac_status); }; } &&
12271	 { ac_try='test -s conftest.$ac_objext'
12272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273  (eval $ac_try) 2>&5
12274  ac_status=$?
12275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276  (exit $ac_status); }; }; then
12277  ac_hi=$ac_mid; break
12278else
12279  echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
12282ac_lo=`expr $ac_mid + 1`
12283		    if test $ac_lo -le $ac_mid; then
12284		      ac_lo= ac_hi=
12285		      break
12286		    fi
12287		    ac_mid=`expr 2 '*' $ac_mid + 1`
12288fi
12289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12290  done
12291else
12292  echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295cat >conftest.$ac_ext <<_ACEOF
12296/* confdefs.h.  */
12297_ACEOF
12298cat confdefs.h >>conftest.$ac_ext
12299cat >>conftest.$ac_ext <<_ACEOF
12300/* end confdefs.h.  */
12301$ac_includes_default
12302int
12303main ()
12304{
12305static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12306test_array [0] = 0
12307
12308  ;
12309  return 0;
12310}
12311_ACEOF
12312rm -f conftest.$ac_objext
12313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314  (eval $ac_compile) 2>conftest.er1
12315  ac_status=$?
12316  grep -v '^ *+' conftest.er1 >conftest.err
12317  rm -f conftest.er1
12318  cat conftest.err >&5
12319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320  (exit $ac_status); } &&
12321	 { ac_try='test -z "$ac_c_werror_flag"
12322			 || test ! -s conftest.err'
12323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324  (eval $ac_try) 2>&5
12325  ac_status=$?
12326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327  (exit $ac_status); }; } &&
12328	 { ac_try='test -s conftest.$ac_objext'
12329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330  (eval $ac_try) 2>&5
12331  ac_status=$?
12332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333  (exit $ac_status); }; }; then
12334  ac_hi=-1 ac_mid=-1
12335  while :; do
12336    cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h.  */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h.  */
12342$ac_includes_default
12343int
12344main ()
12345{
12346static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12347test_array [0] = 0
12348
12349  ;
12350  return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355  (eval $ac_compile) 2>conftest.er1
12356  ac_status=$?
12357  grep -v '^ *+' conftest.er1 >conftest.err
12358  rm -f conftest.er1
12359  cat conftest.err >&5
12360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361  (exit $ac_status); } &&
12362	 { ac_try='test -z "$ac_c_werror_flag"
12363			 || test ! -s conftest.err'
12364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365  (eval $ac_try) 2>&5
12366  ac_status=$?
12367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368  (exit $ac_status); }; } &&
12369	 { ac_try='test -s conftest.$ac_objext'
12370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371  (eval $ac_try) 2>&5
12372  ac_status=$?
12373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374  (exit $ac_status); }; }; then
12375  ac_lo=$ac_mid; break
12376else
12377  echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380ac_hi=`expr '(' $ac_mid ')' - 1`
12381		       if test $ac_mid -le $ac_hi; then
12382			 ac_lo= ac_hi=
12383			 break
12384		       fi
12385		       ac_mid=`expr 2 '*' $ac_mid`
12386fi
12387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12388  done
12389else
12390  echo "$as_me: failed program was:" >&5
12391sed 's/^/| /' conftest.$ac_ext >&5
12392
12393ac_lo= ac_hi=
12394fi
12395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12396fi
12397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12398# Binary search between lo and hi bounds.
12399while test "x$ac_lo" != "x$ac_hi"; do
12400  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12401  cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h.  */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h.  */
12407$ac_includes_default
12408int
12409main ()
12410{
12411static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12412test_array [0] = 0
12413
12414  ;
12415  return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420  (eval $ac_compile) 2>conftest.er1
12421  ac_status=$?
12422  grep -v '^ *+' conftest.er1 >conftest.err
12423  rm -f conftest.er1
12424  cat conftest.err >&5
12425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426  (exit $ac_status); } &&
12427	 { ac_try='test -z "$ac_c_werror_flag"
12428			 || test ! -s conftest.err'
12429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430  (eval $ac_try) 2>&5
12431  ac_status=$?
12432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433  (exit $ac_status); }; } &&
12434	 { ac_try='test -s conftest.$ac_objext'
12435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436  (eval $ac_try) 2>&5
12437  ac_status=$?
12438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439  (exit $ac_status); }; }; then
12440  ac_hi=$ac_mid
12441else
12442  echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
12445ac_lo=`expr '(' $ac_mid ')' + 1`
12446fi
12447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12448done
12449case $ac_lo in
12450?*) ac_cv_sizeof_void_p=$ac_lo;;
12451'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12452See \`config.log' for more details." >&5
12453echo "$as_me: error: cannot compute sizeof (void *), 77
12454See \`config.log' for more details." >&2;}
12455   { (exit 1); exit 1; }; } ;;
12456esac
12457else
12458  if test "$cross_compiling" = yes; then
12459  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12460See \`config.log' for more details." >&5
12461echo "$as_me: error: cannot run test program while cross compiling
12462See \`config.log' for more details." >&2;}
12463   { (exit 1); exit 1; }; }
12464else
12465  cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h.  */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h.  */
12471$ac_includes_default
12472long longval () { return (long) (sizeof (void *)); }
12473unsigned long ulongval () { return (long) (sizeof (void *)); }
12474#include <stdio.h>
12475#include <stdlib.h>
12476int
12477main ()
12478{
12479
12480  FILE *f = fopen ("conftest.val", "w");
12481  if (! f)
12482    exit (1);
12483  if (((long) (sizeof (void *))) < 0)
12484    {
12485      long i = longval ();
12486      if (i != ((long) (sizeof (void *))))
12487	exit (1);
12488      fprintf (f, "%ld\n", i);
12489    }
12490  else
12491    {
12492      unsigned long i = ulongval ();
12493      if (i != ((long) (sizeof (void *))))
12494	exit (1);
12495      fprintf (f, "%lu\n", i);
12496    }
12497  exit (ferror (f) || fclose (f) != 0);
12498
12499  ;
12500  return 0;
12501}
12502_ACEOF
12503rm -f conftest$ac_exeext
12504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505  (eval $ac_link) 2>&5
12506  ac_status=$?
12507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510  (eval $ac_try) 2>&5
12511  ac_status=$?
12512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513  (exit $ac_status); }; }; then
12514  ac_cv_sizeof_void_p=`cat conftest.val`
12515else
12516  echo "$as_me: program exited with status $ac_status" >&5
12517echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
12520( exit $ac_status )
12521{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12522See \`config.log' for more details." >&5
12523echo "$as_me: error: cannot compute sizeof (void *), 77
12524See \`config.log' for more details." >&2;}
12525   { (exit 1); exit 1; }; }
12526fi
12527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12528fi
12529fi
12530rm -f conftest.val
12531else
12532  ac_cv_sizeof_void_p=0
12533fi
12534fi
12535echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12536echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12537cat >>confdefs.h <<_ACEOF
12538#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12539_ACEOF
12540
12541 ;;
12542esac
12543
12544# Lacking an uint64_t?  Test size of long
12545case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12546  stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12547echo $ECHO_N "checking for long... $ECHO_C" >&6
12548if test "${ac_cv_type_long+set}" = set; then
12549  echo $ECHO_N "(cached) $ECHO_C" >&6
12550else
12551  cat >conftest.$ac_ext <<_ACEOF
12552/* confdefs.h.  */
12553_ACEOF
12554cat confdefs.h >>conftest.$ac_ext
12555cat >>conftest.$ac_ext <<_ACEOF
12556/* end confdefs.h.  */
12557$ac_includes_default
12558int
12559main ()
12560{
12561if ((long *) 0)
12562  return 0;
12563if (sizeof (long))
12564  return 0;
12565  ;
12566  return 0;
12567}
12568_ACEOF
12569rm -f conftest.$ac_objext
12570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571  (eval $ac_compile) 2>conftest.er1
12572  ac_status=$?
12573  grep -v '^ *+' conftest.er1 >conftest.err
12574  rm -f conftest.er1
12575  cat conftest.err >&5
12576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577  (exit $ac_status); } &&
12578	 { ac_try='test -z "$ac_c_werror_flag"
12579			 || test ! -s conftest.err'
12580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581  (eval $ac_try) 2>&5
12582  ac_status=$?
12583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584  (exit $ac_status); }; } &&
12585	 { ac_try='test -s conftest.$ac_objext'
12586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587  (eval $ac_try) 2>&5
12588  ac_status=$?
12589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590  (exit $ac_status); }; }; then
12591  ac_cv_type_long=yes
12592else
12593  echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596ac_cv_type_long=no
12597fi
12598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12599fi
12600echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12601echo "${ECHO_T}$ac_cv_type_long" >&6
12602
12603echo "$as_me:$LINENO: checking size of long" >&5
12604echo $ECHO_N "checking size of long... $ECHO_C" >&6
12605if test "${ac_cv_sizeof_long+set}" = set; then
12606  echo $ECHO_N "(cached) $ECHO_C" >&6
12607else
12608  if test "$ac_cv_type_long" = yes; then
12609  # The cast to unsigned long works around a bug in the HP C Compiler
12610  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12611  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12612  # This bug is HP SR number 8606223364.
12613  if test "$cross_compiling" = yes; then
12614  # Depending upon the size, compute the lo and hi bounds.
12615cat >conftest.$ac_ext <<_ACEOF
12616/* confdefs.h.  */
12617_ACEOF
12618cat confdefs.h >>conftest.$ac_ext
12619cat >>conftest.$ac_ext <<_ACEOF
12620/* end confdefs.h.  */
12621$ac_includes_default
12622int
12623main ()
12624{
12625static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12626test_array [0] = 0
12627
12628  ;
12629  return 0;
12630}
12631_ACEOF
12632rm -f conftest.$ac_objext
12633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634  (eval $ac_compile) 2>conftest.er1
12635  ac_status=$?
12636  grep -v '^ *+' conftest.er1 >conftest.err
12637  rm -f conftest.er1
12638  cat conftest.err >&5
12639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640  (exit $ac_status); } &&
12641	 { ac_try='test -z "$ac_c_werror_flag"
12642			 || test ! -s conftest.err'
12643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644  (eval $ac_try) 2>&5
12645  ac_status=$?
12646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647  (exit $ac_status); }; } &&
12648	 { ac_try='test -s conftest.$ac_objext'
12649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650  (eval $ac_try) 2>&5
12651  ac_status=$?
12652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653  (exit $ac_status); }; }; then
12654  ac_lo=0 ac_mid=0
12655  while :; do
12656    cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h.  */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h.  */
12662$ac_includes_default
12663int
12664main ()
12665{
12666static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12667test_array [0] = 0
12668
12669  ;
12670  return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext
12674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675  (eval $ac_compile) 2>conftest.er1
12676  ac_status=$?
12677  grep -v '^ *+' conftest.er1 >conftest.err
12678  rm -f conftest.er1
12679  cat conftest.err >&5
12680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681  (exit $ac_status); } &&
12682	 { ac_try='test -z "$ac_c_werror_flag"
12683			 || test ! -s conftest.err'
12684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685  (eval $ac_try) 2>&5
12686  ac_status=$?
12687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688  (exit $ac_status); }; } &&
12689	 { ac_try='test -s conftest.$ac_objext'
12690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691  (eval $ac_try) 2>&5
12692  ac_status=$?
12693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694  (exit $ac_status); }; }; then
12695  ac_hi=$ac_mid; break
12696else
12697  echo "$as_me: failed program was:" >&5
12698sed 's/^/| /' conftest.$ac_ext >&5
12699
12700ac_lo=`expr $ac_mid + 1`
12701		    if test $ac_lo -le $ac_mid; then
12702		      ac_lo= ac_hi=
12703		      break
12704		    fi
12705		    ac_mid=`expr 2 '*' $ac_mid + 1`
12706fi
12707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12708  done
12709else
12710  echo "$as_me: failed program was:" >&5
12711sed 's/^/| /' conftest.$ac_ext >&5
12712
12713cat >conftest.$ac_ext <<_ACEOF
12714/* confdefs.h.  */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h.  */
12719$ac_includes_default
12720int
12721main ()
12722{
12723static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12724test_array [0] = 0
12725
12726  ;
12727  return 0;
12728}
12729_ACEOF
12730rm -f conftest.$ac_objext
12731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732  (eval $ac_compile) 2>conftest.er1
12733  ac_status=$?
12734  grep -v '^ *+' conftest.er1 >conftest.err
12735  rm -f conftest.er1
12736  cat conftest.err >&5
12737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738  (exit $ac_status); } &&
12739	 { ac_try='test -z "$ac_c_werror_flag"
12740			 || test ! -s conftest.err'
12741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742  (eval $ac_try) 2>&5
12743  ac_status=$?
12744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745  (exit $ac_status); }; } &&
12746	 { ac_try='test -s conftest.$ac_objext'
12747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748  (eval $ac_try) 2>&5
12749  ac_status=$?
12750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751  (exit $ac_status); }; }; then
12752  ac_hi=-1 ac_mid=-1
12753  while :; do
12754    cat >conftest.$ac_ext <<_ACEOF
12755/* confdefs.h.  */
12756_ACEOF
12757cat confdefs.h >>conftest.$ac_ext
12758cat >>conftest.$ac_ext <<_ACEOF
12759/* end confdefs.h.  */
12760$ac_includes_default
12761int
12762main ()
12763{
12764static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12765test_array [0] = 0
12766
12767  ;
12768  return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773  (eval $ac_compile) 2>conftest.er1
12774  ac_status=$?
12775  grep -v '^ *+' conftest.er1 >conftest.err
12776  rm -f conftest.er1
12777  cat conftest.err >&5
12778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779  (exit $ac_status); } &&
12780	 { ac_try='test -z "$ac_c_werror_flag"
12781			 || test ! -s conftest.err'
12782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783  (eval $ac_try) 2>&5
12784  ac_status=$?
12785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786  (exit $ac_status); }; } &&
12787	 { ac_try='test -s conftest.$ac_objext'
12788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789  (eval $ac_try) 2>&5
12790  ac_status=$?
12791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792  (exit $ac_status); }; }; then
12793  ac_lo=$ac_mid; break
12794else
12795  echo "$as_me: failed program was:" >&5
12796sed 's/^/| /' conftest.$ac_ext >&5
12797
12798ac_hi=`expr '(' $ac_mid ')' - 1`
12799		       if test $ac_mid -le $ac_hi; then
12800			 ac_lo= ac_hi=
12801			 break
12802		       fi
12803		       ac_mid=`expr 2 '*' $ac_mid`
12804fi
12805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12806  done
12807else
12808  echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811ac_lo= ac_hi=
12812fi
12813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12814fi
12815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12816# Binary search between lo and hi bounds.
12817while test "x$ac_lo" != "x$ac_hi"; do
12818  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12819  cat >conftest.$ac_ext <<_ACEOF
12820/* confdefs.h.  */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h.  */
12825$ac_includes_default
12826int
12827main ()
12828{
12829static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12830test_array [0] = 0
12831
12832  ;
12833  return 0;
12834}
12835_ACEOF
12836rm -f conftest.$ac_objext
12837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838  (eval $ac_compile) 2>conftest.er1
12839  ac_status=$?
12840  grep -v '^ *+' conftest.er1 >conftest.err
12841  rm -f conftest.er1
12842  cat conftest.err >&5
12843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844  (exit $ac_status); } &&
12845	 { ac_try='test -z "$ac_c_werror_flag"
12846			 || test ! -s conftest.err'
12847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848  (eval $ac_try) 2>&5
12849  ac_status=$?
12850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851  (exit $ac_status); }; } &&
12852	 { ac_try='test -s conftest.$ac_objext'
12853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854  (eval $ac_try) 2>&5
12855  ac_status=$?
12856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857  (exit $ac_status); }; }; then
12858  ac_hi=$ac_mid
12859else
12860  echo "$as_me: failed program was:" >&5
12861sed 's/^/| /' conftest.$ac_ext >&5
12862
12863ac_lo=`expr '(' $ac_mid ')' + 1`
12864fi
12865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866done
12867case $ac_lo in
12868?*) ac_cv_sizeof_long=$ac_lo;;
12869'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12870See \`config.log' for more details." >&5
12871echo "$as_me: error: cannot compute sizeof (long), 77
12872See \`config.log' for more details." >&2;}
12873   { (exit 1); exit 1; }; } ;;
12874esac
12875else
12876  if test "$cross_compiling" = yes; then
12877  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12878See \`config.log' for more details." >&5
12879echo "$as_me: error: cannot run test program while cross compiling
12880See \`config.log' for more details." >&2;}
12881   { (exit 1); exit 1; }; }
12882else
12883  cat >conftest.$ac_ext <<_ACEOF
12884/* confdefs.h.  */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h.  */
12889$ac_includes_default
12890long longval () { return (long) (sizeof (long)); }
12891unsigned long ulongval () { return (long) (sizeof (long)); }
12892#include <stdio.h>
12893#include <stdlib.h>
12894int
12895main ()
12896{
12897
12898  FILE *f = fopen ("conftest.val", "w");
12899  if (! f)
12900    exit (1);
12901  if (((long) (sizeof (long))) < 0)
12902    {
12903      long i = longval ();
12904      if (i != ((long) (sizeof (long))))
12905	exit (1);
12906      fprintf (f, "%ld\n", i);
12907    }
12908  else
12909    {
12910      unsigned long i = ulongval ();
12911      if (i != ((long) (sizeof (long))))
12912	exit (1);
12913      fprintf (f, "%lu\n", i);
12914    }
12915  exit (ferror (f) || fclose (f) != 0);
12916
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921rm -f conftest$ac_exeext
12922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12923  (eval $ac_link) 2>&5
12924  ac_status=$?
12925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928  (eval $ac_try) 2>&5
12929  ac_status=$?
12930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931  (exit $ac_status); }; }; then
12932  ac_cv_sizeof_long=`cat conftest.val`
12933else
12934  echo "$as_me: program exited with status $ac_status" >&5
12935echo "$as_me: failed program was:" >&5
12936sed 's/^/| /' conftest.$ac_ext >&5
12937
12938( exit $ac_status )
12939{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12940See \`config.log' for more details." >&5
12941echo "$as_me: error: cannot compute sizeof (long), 77
12942See \`config.log' for more details." >&2;}
12943   { (exit 1); exit 1; }; }
12944fi
12945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12946fi
12947fi
12948rm -f conftest.val
12949else
12950  ac_cv_sizeof_long=0
12951fi
12952fi
12953echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12954echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12955cat >>confdefs.h <<_ACEOF
12956#define SIZEOF_LONG $ac_cv_sizeof_long
12957_ACEOF
12958
12959 ;;
12960esac
12961
12962if test $acx_cv_header_stdint = stddef.h; then
12963  # Lacking a good header?  Test size of everything and deduce all types.
12964  echo "$as_me:$LINENO: checking for int" >&5
12965echo $ECHO_N "checking for int... $ECHO_C" >&6
12966if test "${ac_cv_type_int+set}" = set; then
12967  echo $ECHO_N "(cached) $ECHO_C" >&6
12968else
12969  cat >conftest.$ac_ext <<_ACEOF
12970/* confdefs.h.  */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
12974/* end confdefs.h.  */
12975$ac_includes_default
12976int
12977main ()
12978{
12979if ((int *) 0)
12980  return 0;
12981if (sizeof (int))
12982  return 0;
12983  ;
12984  return 0;
12985}
12986_ACEOF
12987rm -f conftest.$ac_objext
12988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989  (eval $ac_compile) 2>conftest.er1
12990  ac_status=$?
12991  grep -v '^ *+' conftest.er1 >conftest.err
12992  rm -f conftest.er1
12993  cat conftest.err >&5
12994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995  (exit $ac_status); } &&
12996	 { ac_try='test -z "$ac_c_werror_flag"
12997			 || test ! -s conftest.err'
12998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999  (eval $ac_try) 2>&5
13000  ac_status=$?
13001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002  (exit $ac_status); }; } &&
13003	 { ac_try='test -s conftest.$ac_objext'
13004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005  (eval $ac_try) 2>&5
13006  ac_status=$?
13007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008  (exit $ac_status); }; }; then
13009  ac_cv_type_int=yes
13010else
13011  echo "$as_me: failed program was:" >&5
13012sed 's/^/| /' conftest.$ac_ext >&5
13013
13014ac_cv_type_int=no
13015fi
13016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13017fi
13018echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13019echo "${ECHO_T}$ac_cv_type_int" >&6
13020
13021echo "$as_me:$LINENO: checking size of int" >&5
13022echo $ECHO_N "checking size of int... $ECHO_C" >&6
13023if test "${ac_cv_sizeof_int+set}" = set; then
13024  echo $ECHO_N "(cached) $ECHO_C" >&6
13025else
13026  if test "$ac_cv_type_int" = yes; then
13027  # The cast to unsigned long works around a bug in the HP C Compiler
13028  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13029  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13030  # This bug is HP SR number 8606223364.
13031  if test "$cross_compiling" = yes; then
13032  # Depending upon the size, compute the lo and hi bounds.
13033cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h.  */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h.  */
13039$ac_includes_default
13040int
13041main ()
13042{
13043static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13044test_array [0] = 0
13045
13046  ;
13047  return 0;
13048}
13049_ACEOF
13050rm -f conftest.$ac_objext
13051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052  (eval $ac_compile) 2>conftest.er1
13053  ac_status=$?
13054  grep -v '^ *+' conftest.er1 >conftest.err
13055  rm -f conftest.er1
13056  cat conftest.err >&5
13057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058  (exit $ac_status); } &&
13059	 { ac_try='test -z "$ac_c_werror_flag"
13060			 || test ! -s conftest.err'
13061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062  (eval $ac_try) 2>&5
13063  ac_status=$?
13064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065  (exit $ac_status); }; } &&
13066	 { ac_try='test -s conftest.$ac_objext'
13067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068  (eval $ac_try) 2>&5
13069  ac_status=$?
13070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071  (exit $ac_status); }; }; then
13072  ac_lo=0 ac_mid=0
13073  while :; do
13074    cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h.  */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h.  */
13080$ac_includes_default
13081int
13082main ()
13083{
13084static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13085test_array [0] = 0
13086
13087  ;
13088  return 0;
13089}
13090_ACEOF
13091rm -f conftest.$ac_objext
13092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093  (eval $ac_compile) 2>conftest.er1
13094  ac_status=$?
13095  grep -v '^ *+' conftest.er1 >conftest.err
13096  rm -f conftest.er1
13097  cat conftest.err >&5
13098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099  (exit $ac_status); } &&
13100	 { ac_try='test -z "$ac_c_werror_flag"
13101			 || test ! -s conftest.err'
13102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103  (eval $ac_try) 2>&5
13104  ac_status=$?
13105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106  (exit $ac_status); }; } &&
13107	 { ac_try='test -s conftest.$ac_objext'
13108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109  (eval $ac_try) 2>&5
13110  ac_status=$?
13111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112  (exit $ac_status); }; }; then
13113  ac_hi=$ac_mid; break
13114else
13115  echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
13118ac_lo=`expr $ac_mid + 1`
13119		    if test $ac_lo -le $ac_mid; then
13120		      ac_lo= ac_hi=
13121		      break
13122		    fi
13123		    ac_mid=`expr 2 '*' $ac_mid + 1`
13124fi
13125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126  done
13127else
13128  echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
13131cat >conftest.$ac_ext <<_ACEOF
13132/* confdefs.h.  */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h.  */
13137$ac_includes_default
13138int
13139main ()
13140{
13141static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13142test_array [0] = 0
13143
13144  ;
13145  return 0;
13146}
13147_ACEOF
13148rm -f conftest.$ac_objext
13149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150  (eval $ac_compile) 2>conftest.er1
13151  ac_status=$?
13152  grep -v '^ *+' conftest.er1 >conftest.err
13153  rm -f conftest.er1
13154  cat conftest.err >&5
13155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156  (exit $ac_status); } &&
13157	 { ac_try='test -z "$ac_c_werror_flag"
13158			 || test ! -s conftest.err'
13159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160  (eval $ac_try) 2>&5
13161  ac_status=$?
13162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163  (exit $ac_status); }; } &&
13164	 { ac_try='test -s conftest.$ac_objext'
13165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166  (eval $ac_try) 2>&5
13167  ac_status=$?
13168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169  (exit $ac_status); }; }; then
13170  ac_hi=-1 ac_mid=-1
13171  while :; do
13172    cat >conftest.$ac_ext <<_ACEOF
13173/* confdefs.h.  */
13174_ACEOF
13175cat confdefs.h >>conftest.$ac_ext
13176cat >>conftest.$ac_ext <<_ACEOF
13177/* end confdefs.h.  */
13178$ac_includes_default
13179int
13180main ()
13181{
13182static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13183test_array [0] = 0
13184
13185  ;
13186  return 0;
13187}
13188_ACEOF
13189rm -f conftest.$ac_objext
13190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13191  (eval $ac_compile) 2>conftest.er1
13192  ac_status=$?
13193  grep -v '^ *+' conftest.er1 >conftest.err
13194  rm -f conftest.er1
13195  cat conftest.err >&5
13196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197  (exit $ac_status); } &&
13198	 { ac_try='test -z "$ac_c_werror_flag"
13199			 || test ! -s conftest.err'
13200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201  (eval $ac_try) 2>&5
13202  ac_status=$?
13203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204  (exit $ac_status); }; } &&
13205	 { ac_try='test -s conftest.$ac_objext'
13206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207  (eval $ac_try) 2>&5
13208  ac_status=$?
13209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210  (exit $ac_status); }; }; then
13211  ac_lo=$ac_mid; break
13212else
13213  echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
13216ac_hi=`expr '(' $ac_mid ')' - 1`
13217		       if test $ac_mid -le $ac_hi; then
13218			 ac_lo= ac_hi=
13219			 break
13220		       fi
13221		       ac_mid=`expr 2 '*' $ac_mid`
13222fi
13223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13224  done
13225else
13226  echo "$as_me: failed program was:" >&5
13227sed 's/^/| /' conftest.$ac_ext >&5
13228
13229ac_lo= ac_hi=
13230fi
13231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13232fi
13233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13234# Binary search between lo and hi bounds.
13235while test "x$ac_lo" != "x$ac_hi"; do
13236  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13237  cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h.  */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h.  */
13243$ac_includes_default
13244int
13245main ()
13246{
13247static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13248test_array [0] = 0
13249
13250  ;
13251  return 0;
13252}
13253_ACEOF
13254rm -f conftest.$ac_objext
13255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256  (eval $ac_compile) 2>conftest.er1
13257  ac_status=$?
13258  grep -v '^ *+' conftest.er1 >conftest.err
13259  rm -f conftest.er1
13260  cat conftest.err >&5
13261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262  (exit $ac_status); } &&
13263	 { ac_try='test -z "$ac_c_werror_flag"
13264			 || test ! -s conftest.err'
13265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266  (eval $ac_try) 2>&5
13267  ac_status=$?
13268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269  (exit $ac_status); }; } &&
13270	 { ac_try='test -s conftest.$ac_objext'
13271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272  (eval $ac_try) 2>&5
13273  ac_status=$?
13274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275  (exit $ac_status); }; }; then
13276  ac_hi=$ac_mid
13277else
13278  echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281ac_lo=`expr '(' $ac_mid ')' + 1`
13282fi
13283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284done
13285case $ac_lo in
13286?*) ac_cv_sizeof_int=$ac_lo;;
13287'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13288See \`config.log' for more details." >&5
13289echo "$as_me: error: cannot compute sizeof (int), 77
13290See \`config.log' for more details." >&2;}
13291   { (exit 1); exit 1; }; } ;;
13292esac
13293else
13294  if test "$cross_compiling" = yes; then
13295  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13296See \`config.log' for more details." >&5
13297echo "$as_me: error: cannot run test program while cross compiling
13298See \`config.log' for more details." >&2;}
13299   { (exit 1); exit 1; }; }
13300else
13301  cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h.  */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h.  */
13307$ac_includes_default
13308long longval () { return (long) (sizeof (int)); }
13309unsigned long ulongval () { return (long) (sizeof (int)); }
13310#include <stdio.h>
13311#include <stdlib.h>
13312int
13313main ()
13314{
13315
13316  FILE *f = fopen ("conftest.val", "w");
13317  if (! f)
13318    exit (1);
13319  if (((long) (sizeof (int))) < 0)
13320    {
13321      long i = longval ();
13322      if (i != ((long) (sizeof (int))))
13323	exit (1);
13324      fprintf (f, "%ld\n", i);
13325    }
13326  else
13327    {
13328      unsigned long i = ulongval ();
13329      if (i != ((long) (sizeof (int))))
13330	exit (1);
13331      fprintf (f, "%lu\n", i);
13332    }
13333  exit (ferror (f) || fclose (f) != 0);
13334
13335  ;
13336  return 0;
13337}
13338_ACEOF
13339rm -f conftest$ac_exeext
13340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13341  (eval $ac_link) 2>&5
13342  ac_status=$?
13343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346  (eval $ac_try) 2>&5
13347  ac_status=$?
13348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349  (exit $ac_status); }; }; then
13350  ac_cv_sizeof_int=`cat conftest.val`
13351else
13352  echo "$as_me: program exited with status $ac_status" >&5
13353echo "$as_me: failed program was:" >&5
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
13356( exit $ac_status )
13357{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13358See \`config.log' for more details." >&5
13359echo "$as_me: error: cannot compute sizeof (int), 77
13360See \`config.log' for more details." >&2;}
13361   { (exit 1); exit 1; }; }
13362fi
13363rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13364fi
13365fi
13366rm -f conftest.val
13367else
13368  ac_cv_sizeof_int=0
13369fi
13370fi
13371echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13372echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13373cat >>confdefs.h <<_ACEOF
13374#define SIZEOF_INT $ac_cv_sizeof_int
13375_ACEOF
13376
13377
13378  echo "$as_me:$LINENO: checking for short" >&5
13379echo $ECHO_N "checking for short... $ECHO_C" >&6
13380if test "${ac_cv_type_short+set}" = set; then
13381  echo $ECHO_N "(cached) $ECHO_C" >&6
13382else
13383  cat >conftest.$ac_ext <<_ACEOF
13384/* confdefs.h.  */
13385_ACEOF
13386cat confdefs.h >>conftest.$ac_ext
13387cat >>conftest.$ac_ext <<_ACEOF
13388/* end confdefs.h.  */
13389$ac_includes_default
13390int
13391main ()
13392{
13393if ((short *) 0)
13394  return 0;
13395if (sizeof (short))
13396  return 0;
13397  ;
13398  return 0;
13399}
13400_ACEOF
13401rm -f conftest.$ac_objext
13402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13403  (eval $ac_compile) 2>conftest.er1
13404  ac_status=$?
13405  grep -v '^ *+' conftest.er1 >conftest.err
13406  rm -f conftest.er1
13407  cat conftest.err >&5
13408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409  (exit $ac_status); } &&
13410	 { ac_try='test -z "$ac_c_werror_flag"
13411			 || test ! -s conftest.err'
13412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413  (eval $ac_try) 2>&5
13414  ac_status=$?
13415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416  (exit $ac_status); }; } &&
13417	 { ac_try='test -s conftest.$ac_objext'
13418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419  (eval $ac_try) 2>&5
13420  ac_status=$?
13421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422  (exit $ac_status); }; }; then
13423  ac_cv_type_short=yes
13424else
13425  echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
13428ac_cv_type_short=no
13429fi
13430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13431fi
13432echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13433echo "${ECHO_T}$ac_cv_type_short" >&6
13434
13435echo "$as_me:$LINENO: checking size of short" >&5
13436echo $ECHO_N "checking size of short... $ECHO_C" >&6
13437if test "${ac_cv_sizeof_short+set}" = set; then
13438  echo $ECHO_N "(cached) $ECHO_C" >&6
13439else
13440  if test "$ac_cv_type_short" = yes; then
13441  # The cast to unsigned long works around a bug in the HP C Compiler
13442  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13443  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13444  # This bug is HP SR number 8606223364.
13445  if test "$cross_compiling" = yes; then
13446  # Depending upon the size, compute the lo and hi bounds.
13447cat >conftest.$ac_ext <<_ACEOF
13448/* confdefs.h.  */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h.  */
13453$ac_includes_default
13454int
13455main ()
13456{
13457static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13458test_array [0] = 0
13459
13460  ;
13461  return 0;
13462}
13463_ACEOF
13464rm -f conftest.$ac_objext
13465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13466  (eval $ac_compile) 2>conftest.er1
13467  ac_status=$?
13468  grep -v '^ *+' conftest.er1 >conftest.err
13469  rm -f conftest.er1
13470  cat conftest.err >&5
13471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472  (exit $ac_status); } &&
13473	 { ac_try='test -z "$ac_c_werror_flag"
13474			 || test ! -s conftest.err'
13475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476  (eval $ac_try) 2>&5
13477  ac_status=$?
13478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479  (exit $ac_status); }; } &&
13480	 { ac_try='test -s conftest.$ac_objext'
13481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482  (eval $ac_try) 2>&5
13483  ac_status=$?
13484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485  (exit $ac_status); }; }; then
13486  ac_lo=0 ac_mid=0
13487  while :; do
13488    cat >conftest.$ac_ext <<_ACEOF
13489/* confdefs.h.  */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h.  */
13494$ac_includes_default
13495int
13496main ()
13497{
13498static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13499test_array [0] = 0
13500
13501  ;
13502  return 0;
13503}
13504_ACEOF
13505rm -f conftest.$ac_objext
13506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507  (eval $ac_compile) 2>conftest.er1
13508  ac_status=$?
13509  grep -v '^ *+' conftest.er1 >conftest.err
13510  rm -f conftest.er1
13511  cat conftest.err >&5
13512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513  (exit $ac_status); } &&
13514	 { ac_try='test -z "$ac_c_werror_flag"
13515			 || test ! -s conftest.err'
13516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517  (eval $ac_try) 2>&5
13518  ac_status=$?
13519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520  (exit $ac_status); }; } &&
13521	 { ac_try='test -s conftest.$ac_objext'
13522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523  (eval $ac_try) 2>&5
13524  ac_status=$?
13525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526  (exit $ac_status); }; }; then
13527  ac_hi=$ac_mid; break
13528else
13529  echo "$as_me: failed program was:" >&5
13530sed 's/^/| /' conftest.$ac_ext >&5
13531
13532ac_lo=`expr $ac_mid + 1`
13533		    if test $ac_lo -le $ac_mid; then
13534		      ac_lo= ac_hi=
13535		      break
13536		    fi
13537		    ac_mid=`expr 2 '*' $ac_mid + 1`
13538fi
13539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13540  done
13541else
13542  echo "$as_me: failed program was:" >&5
13543sed 's/^/| /' conftest.$ac_ext >&5
13544
13545cat >conftest.$ac_ext <<_ACEOF
13546/* confdefs.h.  */
13547_ACEOF
13548cat confdefs.h >>conftest.$ac_ext
13549cat >>conftest.$ac_ext <<_ACEOF
13550/* end confdefs.h.  */
13551$ac_includes_default
13552int
13553main ()
13554{
13555static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13556test_array [0] = 0
13557
13558  ;
13559  return 0;
13560}
13561_ACEOF
13562rm -f conftest.$ac_objext
13563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13564  (eval $ac_compile) 2>conftest.er1
13565  ac_status=$?
13566  grep -v '^ *+' conftest.er1 >conftest.err
13567  rm -f conftest.er1
13568  cat conftest.err >&5
13569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570  (exit $ac_status); } &&
13571	 { ac_try='test -z "$ac_c_werror_flag"
13572			 || test ! -s conftest.err'
13573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574  (eval $ac_try) 2>&5
13575  ac_status=$?
13576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577  (exit $ac_status); }; } &&
13578	 { ac_try='test -s conftest.$ac_objext'
13579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580  (eval $ac_try) 2>&5
13581  ac_status=$?
13582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583  (exit $ac_status); }; }; then
13584  ac_hi=-1 ac_mid=-1
13585  while :; do
13586    cat >conftest.$ac_ext <<_ACEOF
13587/* confdefs.h.  */
13588_ACEOF
13589cat confdefs.h >>conftest.$ac_ext
13590cat >>conftest.$ac_ext <<_ACEOF
13591/* end confdefs.h.  */
13592$ac_includes_default
13593int
13594main ()
13595{
13596static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13597test_array [0] = 0
13598
13599  ;
13600  return 0;
13601}
13602_ACEOF
13603rm -f conftest.$ac_objext
13604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605  (eval $ac_compile) 2>conftest.er1
13606  ac_status=$?
13607  grep -v '^ *+' conftest.er1 >conftest.err
13608  rm -f conftest.er1
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
13616  ac_status=$?
13617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618  (exit $ac_status); }; } &&
13619	 { ac_try='test -s conftest.$ac_objext'
13620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621  (eval $ac_try) 2>&5
13622  ac_status=$?
13623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624  (exit $ac_status); }; }; then
13625  ac_lo=$ac_mid; break
13626else
13627  echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630ac_hi=`expr '(' $ac_mid ')' - 1`
13631		       if test $ac_mid -le $ac_hi; then
13632			 ac_lo= ac_hi=
13633			 break
13634		       fi
13635		       ac_mid=`expr 2 '*' $ac_mid`
13636fi
13637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638  done
13639else
13640  echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
13643ac_lo= ac_hi=
13644fi
13645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13646fi
13647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13648# Binary search between lo and hi bounds.
13649while test "x$ac_lo" != "x$ac_hi"; do
13650  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13651  cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h.  */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h.  */
13657$ac_includes_default
13658int
13659main ()
13660{
13661static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13662test_array [0] = 0
13663
13664  ;
13665  return 0;
13666}
13667_ACEOF
13668rm -f conftest.$ac_objext
13669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670  (eval $ac_compile) 2>conftest.er1
13671  ac_status=$?
13672  grep -v '^ *+' conftest.er1 >conftest.err
13673  rm -f conftest.er1
13674  cat conftest.err >&5
13675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676  (exit $ac_status); } &&
13677	 { ac_try='test -z "$ac_c_werror_flag"
13678			 || test ! -s conftest.err'
13679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680  (eval $ac_try) 2>&5
13681  ac_status=$?
13682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683  (exit $ac_status); }; } &&
13684	 { ac_try='test -s conftest.$ac_objext'
13685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686  (eval $ac_try) 2>&5
13687  ac_status=$?
13688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689  (exit $ac_status); }; }; then
13690  ac_hi=$ac_mid
13691else
13692  echo "$as_me: failed program was:" >&5
13693sed 's/^/| /' conftest.$ac_ext >&5
13694
13695ac_lo=`expr '(' $ac_mid ')' + 1`
13696fi
13697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698done
13699case $ac_lo in
13700?*) ac_cv_sizeof_short=$ac_lo;;
13701'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13702See \`config.log' for more details." >&5
13703echo "$as_me: error: cannot compute sizeof (short), 77
13704See \`config.log' for more details." >&2;}
13705   { (exit 1); exit 1; }; } ;;
13706esac
13707else
13708  if test "$cross_compiling" = yes; then
13709  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13710See \`config.log' for more details." >&5
13711echo "$as_me: error: cannot run test program while cross compiling
13712See \`config.log' for more details." >&2;}
13713   { (exit 1); exit 1; }; }
13714else
13715  cat >conftest.$ac_ext <<_ACEOF
13716/* confdefs.h.  */
13717_ACEOF
13718cat confdefs.h >>conftest.$ac_ext
13719cat >>conftest.$ac_ext <<_ACEOF
13720/* end confdefs.h.  */
13721$ac_includes_default
13722long longval () { return (long) (sizeof (short)); }
13723unsigned long ulongval () { return (long) (sizeof (short)); }
13724#include <stdio.h>
13725#include <stdlib.h>
13726int
13727main ()
13728{
13729
13730  FILE *f = fopen ("conftest.val", "w");
13731  if (! f)
13732    exit (1);
13733  if (((long) (sizeof (short))) < 0)
13734    {
13735      long i = longval ();
13736      if (i != ((long) (sizeof (short))))
13737	exit (1);
13738      fprintf (f, "%ld\n", i);
13739    }
13740  else
13741    {
13742      unsigned long i = ulongval ();
13743      if (i != ((long) (sizeof (short))))
13744	exit (1);
13745      fprintf (f, "%lu\n", i);
13746    }
13747  exit (ferror (f) || fclose (f) != 0);
13748
13749  ;
13750  return 0;
13751}
13752_ACEOF
13753rm -f conftest$ac_exeext
13754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13755  (eval $ac_link) 2>&5
13756  ac_status=$?
13757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760  (eval $ac_try) 2>&5
13761  ac_status=$?
13762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763  (exit $ac_status); }; }; then
13764  ac_cv_sizeof_short=`cat conftest.val`
13765else
13766  echo "$as_me: program exited with status $ac_status" >&5
13767echo "$as_me: failed program was:" >&5
13768sed 's/^/| /' conftest.$ac_ext >&5
13769
13770( exit $ac_status )
13771{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13772See \`config.log' for more details." >&5
13773echo "$as_me: error: cannot compute sizeof (short), 77
13774See \`config.log' for more details." >&2;}
13775   { (exit 1); exit 1; }; }
13776fi
13777rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13778fi
13779fi
13780rm -f conftest.val
13781else
13782  ac_cv_sizeof_short=0
13783fi
13784fi
13785echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13786echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13787cat >>confdefs.h <<_ACEOF
13788#define SIZEOF_SHORT $ac_cv_sizeof_short
13789_ACEOF
13790
13791
13792  echo "$as_me:$LINENO: checking for char" >&5
13793echo $ECHO_N "checking for char... $ECHO_C" >&6
13794if test "${ac_cv_type_char+set}" = set; then
13795  echo $ECHO_N "(cached) $ECHO_C" >&6
13796else
13797  cat >conftest.$ac_ext <<_ACEOF
13798/* confdefs.h.  */
13799_ACEOF
13800cat confdefs.h >>conftest.$ac_ext
13801cat >>conftest.$ac_ext <<_ACEOF
13802/* end confdefs.h.  */
13803$ac_includes_default
13804int
13805main ()
13806{
13807if ((char *) 0)
13808  return 0;
13809if (sizeof (char))
13810  return 0;
13811  ;
13812  return 0;
13813}
13814_ACEOF
13815rm -f conftest.$ac_objext
13816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817  (eval $ac_compile) 2>conftest.er1
13818  ac_status=$?
13819  grep -v '^ *+' conftest.er1 >conftest.err
13820  rm -f conftest.er1
13821  cat conftest.err >&5
13822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823  (exit $ac_status); } &&
13824	 { ac_try='test -z "$ac_c_werror_flag"
13825			 || test ! -s conftest.err'
13826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827  (eval $ac_try) 2>&5
13828  ac_status=$?
13829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830  (exit $ac_status); }; } &&
13831	 { ac_try='test -s conftest.$ac_objext'
13832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833  (eval $ac_try) 2>&5
13834  ac_status=$?
13835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836  (exit $ac_status); }; }; then
13837  ac_cv_type_char=yes
13838else
13839  echo "$as_me: failed program was:" >&5
13840sed 's/^/| /' conftest.$ac_ext >&5
13841
13842ac_cv_type_char=no
13843fi
13844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845fi
13846echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13847echo "${ECHO_T}$ac_cv_type_char" >&6
13848
13849echo "$as_me:$LINENO: checking size of char" >&5
13850echo $ECHO_N "checking size of char... $ECHO_C" >&6
13851if test "${ac_cv_sizeof_char+set}" = set; then
13852  echo $ECHO_N "(cached) $ECHO_C" >&6
13853else
13854  if test "$ac_cv_type_char" = yes; then
13855  # The cast to unsigned long works around a bug in the HP C Compiler
13856  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13857  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13858  # This bug is HP SR number 8606223364.
13859  if test "$cross_compiling" = yes; then
13860  # Depending upon the size, compute the lo and hi bounds.
13861cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h.  */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h.  */
13867$ac_includes_default
13868int
13869main ()
13870{
13871static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13872test_array [0] = 0
13873
13874  ;
13875  return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880  (eval $ac_compile) 2>conftest.er1
13881  ac_status=$?
13882  grep -v '^ *+' conftest.er1 >conftest.err
13883  rm -f conftest.er1
13884  cat conftest.err >&5
13885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886  (exit $ac_status); } &&
13887	 { ac_try='test -z "$ac_c_werror_flag"
13888			 || test ! -s conftest.err'
13889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890  (eval $ac_try) 2>&5
13891  ac_status=$?
13892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893  (exit $ac_status); }; } &&
13894	 { ac_try='test -s conftest.$ac_objext'
13895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896  (eval $ac_try) 2>&5
13897  ac_status=$?
13898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899  (exit $ac_status); }; }; then
13900  ac_lo=0 ac_mid=0
13901  while :; do
13902    cat >conftest.$ac_ext <<_ACEOF
13903/* confdefs.h.  */
13904_ACEOF
13905cat confdefs.h >>conftest.$ac_ext
13906cat >>conftest.$ac_ext <<_ACEOF
13907/* end confdefs.h.  */
13908$ac_includes_default
13909int
13910main ()
13911{
13912static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13913test_array [0] = 0
13914
13915  ;
13916  return 0;
13917}
13918_ACEOF
13919rm -f conftest.$ac_objext
13920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13921  (eval $ac_compile) 2>conftest.er1
13922  ac_status=$?
13923  grep -v '^ *+' conftest.er1 >conftest.err
13924  rm -f conftest.er1
13925  cat conftest.err >&5
13926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927  (exit $ac_status); } &&
13928	 { ac_try='test -z "$ac_c_werror_flag"
13929			 || test ! -s conftest.err'
13930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931  (eval $ac_try) 2>&5
13932  ac_status=$?
13933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934  (exit $ac_status); }; } &&
13935	 { ac_try='test -s conftest.$ac_objext'
13936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937  (eval $ac_try) 2>&5
13938  ac_status=$?
13939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940  (exit $ac_status); }; }; then
13941  ac_hi=$ac_mid; break
13942else
13943  echo "$as_me: failed program was:" >&5
13944sed 's/^/| /' conftest.$ac_ext >&5
13945
13946ac_lo=`expr $ac_mid + 1`
13947		    if test $ac_lo -le $ac_mid; then
13948		      ac_lo= ac_hi=
13949		      break
13950		    fi
13951		    ac_mid=`expr 2 '*' $ac_mid + 1`
13952fi
13953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954  done
13955else
13956  echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
13958
13959cat >conftest.$ac_ext <<_ACEOF
13960/* confdefs.h.  */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h.  */
13965$ac_includes_default
13966int
13967main ()
13968{
13969static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13970test_array [0] = 0
13971
13972  ;
13973  return 0;
13974}
13975_ACEOF
13976rm -f conftest.$ac_objext
13977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13978  (eval $ac_compile) 2>conftest.er1
13979  ac_status=$?
13980  grep -v '^ *+' conftest.er1 >conftest.err
13981  rm -f conftest.er1
13982  cat conftest.err >&5
13983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984  (exit $ac_status); } &&
13985	 { ac_try='test -z "$ac_c_werror_flag"
13986			 || test ! -s conftest.err'
13987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988  (eval $ac_try) 2>&5
13989  ac_status=$?
13990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991  (exit $ac_status); }; } &&
13992	 { ac_try='test -s conftest.$ac_objext'
13993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994  (eval $ac_try) 2>&5
13995  ac_status=$?
13996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997  (exit $ac_status); }; }; then
13998  ac_hi=-1 ac_mid=-1
13999  while :; do
14000    cat >conftest.$ac_ext <<_ACEOF
14001/* confdefs.h.  */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h.  */
14006$ac_includes_default
14007int
14008main ()
14009{
14010static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14011test_array [0] = 0
14012
14013  ;
14014  return 0;
14015}
14016_ACEOF
14017rm -f conftest.$ac_objext
14018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019  (eval $ac_compile) 2>conftest.er1
14020  ac_status=$?
14021  grep -v '^ *+' conftest.er1 >conftest.err
14022  rm -f conftest.er1
14023  cat conftest.err >&5
14024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025  (exit $ac_status); } &&
14026	 { ac_try='test -z "$ac_c_werror_flag"
14027			 || test ! -s conftest.err'
14028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029  (eval $ac_try) 2>&5
14030  ac_status=$?
14031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032  (exit $ac_status); }; } &&
14033	 { ac_try='test -s conftest.$ac_objext'
14034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035  (eval $ac_try) 2>&5
14036  ac_status=$?
14037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038  (exit $ac_status); }; }; then
14039  ac_lo=$ac_mid; break
14040else
14041  echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
14044ac_hi=`expr '(' $ac_mid ')' - 1`
14045		       if test $ac_mid -le $ac_hi; then
14046			 ac_lo= ac_hi=
14047			 break
14048		       fi
14049		       ac_mid=`expr 2 '*' $ac_mid`
14050fi
14051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052  done
14053else
14054  echo "$as_me: failed program was:" >&5
14055sed 's/^/| /' conftest.$ac_ext >&5
14056
14057ac_lo= ac_hi=
14058fi
14059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14060fi
14061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14062# Binary search between lo and hi bounds.
14063while test "x$ac_lo" != "x$ac_hi"; do
14064  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14065  cat >conftest.$ac_ext <<_ACEOF
14066/* confdefs.h.  */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h.  */
14071$ac_includes_default
14072int
14073main ()
14074{
14075static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14076test_array [0] = 0
14077
14078  ;
14079  return 0;
14080}
14081_ACEOF
14082rm -f conftest.$ac_objext
14083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14084  (eval $ac_compile) 2>conftest.er1
14085  ac_status=$?
14086  grep -v '^ *+' conftest.er1 >conftest.err
14087  rm -f conftest.er1
14088  cat conftest.err >&5
14089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090  (exit $ac_status); } &&
14091	 { ac_try='test -z "$ac_c_werror_flag"
14092			 || test ! -s conftest.err'
14093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094  (eval $ac_try) 2>&5
14095  ac_status=$?
14096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097  (exit $ac_status); }; } &&
14098	 { ac_try='test -s conftest.$ac_objext'
14099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100  (eval $ac_try) 2>&5
14101  ac_status=$?
14102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103  (exit $ac_status); }; }; then
14104  ac_hi=$ac_mid
14105else
14106  echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
14109ac_lo=`expr '(' $ac_mid ')' + 1`
14110fi
14111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14112done
14113case $ac_lo in
14114?*) ac_cv_sizeof_char=$ac_lo;;
14115'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14116See \`config.log' for more details." >&5
14117echo "$as_me: error: cannot compute sizeof (char), 77
14118See \`config.log' for more details." >&2;}
14119   { (exit 1); exit 1; }; } ;;
14120esac
14121else
14122  if test "$cross_compiling" = yes; then
14123  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14124See \`config.log' for more details." >&5
14125echo "$as_me: error: cannot run test program while cross compiling
14126See \`config.log' for more details." >&2;}
14127   { (exit 1); exit 1; }; }
14128else
14129  cat >conftest.$ac_ext <<_ACEOF
14130/* confdefs.h.  */
14131_ACEOF
14132cat confdefs.h >>conftest.$ac_ext
14133cat >>conftest.$ac_ext <<_ACEOF
14134/* end confdefs.h.  */
14135$ac_includes_default
14136long longval () { return (long) (sizeof (char)); }
14137unsigned long ulongval () { return (long) (sizeof (char)); }
14138#include <stdio.h>
14139#include <stdlib.h>
14140int
14141main ()
14142{
14143
14144  FILE *f = fopen ("conftest.val", "w");
14145  if (! f)
14146    exit (1);
14147  if (((long) (sizeof (char))) < 0)
14148    {
14149      long i = longval ();
14150      if (i != ((long) (sizeof (char))))
14151	exit (1);
14152      fprintf (f, "%ld\n", i);
14153    }
14154  else
14155    {
14156      unsigned long i = ulongval ();
14157      if (i != ((long) (sizeof (char))))
14158	exit (1);
14159      fprintf (f, "%lu\n", i);
14160    }
14161  exit (ferror (f) || fclose (f) != 0);
14162
14163  ;
14164  return 0;
14165}
14166_ACEOF
14167rm -f conftest$ac_exeext
14168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169  (eval $ac_link) 2>&5
14170  ac_status=$?
14171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174  (eval $ac_try) 2>&5
14175  ac_status=$?
14176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177  (exit $ac_status); }; }; then
14178  ac_cv_sizeof_char=`cat conftest.val`
14179else
14180  echo "$as_me: program exited with status $ac_status" >&5
14181echo "$as_me: failed program was:" >&5
14182sed 's/^/| /' conftest.$ac_ext >&5
14183
14184( exit $ac_status )
14185{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14186See \`config.log' for more details." >&5
14187echo "$as_me: error: cannot compute sizeof (char), 77
14188See \`config.log' for more details." >&2;}
14189   { (exit 1); exit 1; }; }
14190fi
14191rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14192fi
14193fi
14194rm -f conftest.val
14195else
14196  ac_cv_sizeof_char=0
14197fi
14198fi
14199echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14200echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14201cat >>confdefs.h <<_ACEOF
14202#define SIZEOF_CHAR $ac_cv_sizeof_char
14203_ACEOF
14204
14205
14206
14207  echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14208echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
14209  case "$ac_cv_sizeof_char" in
14210    1) acx_cv_type_int8_t=char ;;
14211    *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14212echo "$as_me: error: no 8-bit type" >&2;}
14213   { (exit please report a bug); exit please report a bug; }; }
14214  esac
14215  echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14216echo "${ECHO_T}$acx_cv_type_int8_t" >&6
14217
14218  echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14219echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
14220  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14221    2:*) acx_cv_type_int16_t=int ;;
14222    *:2) acx_cv_type_int16_t=short ;;
14223    *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14224echo "$as_me: error: no 16-bit type" >&2;}
14225   { (exit please report a bug); exit please report a bug; }; }
14226  esac
14227  echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14228echo "${ECHO_T}$acx_cv_type_int16_t" >&6
14229
14230  echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14231echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
14232  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14233    4:*) acx_cv_type_int32_t=int ;;
14234    *:4) acx_cv_type_int32_t=long ;;
14235    *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14236echo "$as_me: error: no 32-bit type" >&2;}
14237   { (exit please report a bug); exit please report a bug; }; }
14238  esac
14239  echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14240echo "${ECHO_T}$acx_cv_type_int32_t" >&6
14241fi
14242
14243# These tests are here to make the output prettier
14244
14245if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14246  case "$ac_cv_sizeof_long" in
14247    8) acx_cv_type_int64_t=long ;;
14248  esac
14249  echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14250echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14251  echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14252echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
14253fi
14254
14255# Now we can use the above types
14256
14257if test "$ac_cv_type_uintptr_t" != yes; then
14258  echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14259echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
14260  case $ac_cv_sizeof_void_p in
14261    2) acx_cv_type_intptr_t=int16_t ;;
14262    4) acx_cv_type_intptr_t=int32_t ;;
14263    8) acx_cv_type_intptr_t=int64_t ;;
14264    *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14265echo "$as_me: error: no equivalent for intptr_t" >&2;}
14266   { (exit please report a bug); exit please report a bug; }; }
14267  esac
14268  echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14269echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
14270fi
14271
14272# ----------------- done all checks, emit header -------------
14273          ac_config_commands="$ac_config_commands gdb_stdint.h"
14274
14275
14276
14277
14278# ------------------------- #
14279# Checks for declarations.  #
14280# ------------------------- #
14281
14282echo "$as_me:$LINENO: checking whether free is declared" >&5
14283echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
14284if test "${ac_cv_have_decl_free+set}" = set; then
14285  echo $ECHO_N "(cached) $ECHO_C" >&6
14286else
14287  cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h.  */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h.  */
14293$ac_includes_default
14294int
14295main ()
14296{
14297#ifndef free
14298  char *p = (char *) free;
14299#endif
14300
14301  ;
14302  return 0;
14303}
14304_ACEOF
14305rm -f conftest.$ac_objext
14306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307  (eval $ac_compile) 2>conftest.er1
14308  ac_status=$?
14309  grep -v '^ *+' conftest.er1 >conftest.err
14310  rm -f conftest.er1
14311  cat conftest.err >&5
14312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313  (exit $ac_status); } &&
14314	 { ac_try='test -z "$ac_c_werror_flag"
14315			 || test ! -s conftest.err'
14316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317  (eval $ac_try) 2>&5
14318  ac_status=$?
14319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320  (exit $ac_status); }; } &&
14321	 { ac_try='test -s conftest.$ac_objext'
14322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323  (eval $ac_try) 2>&5
14324  ac_status=$?
14325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326  (exit $ac_status); }; }; then
14327  ac_cv_have_decl_free=yes
14328else
14329  echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332ac_cv_have_decl_free=no
14333fi
14334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14335fi
14336echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14337echo "${ECHO_T}$ac_cv_have_decl_free" >&6
14338if test $ac_cv_have_decl_free = yes; then
14339
14340cat >>confdefs.h <<_ACEOF
14341#define HAVE_DECL_FREE 1
14342_ACEOF
14343
14344
14345else
14346  cat >>confdefs.h <<_ACEOF
14347#define HAVE_DECL_FREE 0
14348_ACEOF
14349
14350
14351fi
14352echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14353echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
14354if test "${ac_cv_have_decl_malloc+set}" = set; then
14355  echo $ECHO_N "(cached) $ECHO_C" >&6
14356else
14357  cat >conftest.$ac_ext <<_ACEOF
14358/* confdefs.h.  */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h.  */
14363$ac_includes_default
14364int
14365main ()
14366{
14367#ifndef malloc
14368  char *p = (char *) malloc;
14369#endif
14370
14371  ;
14372  return 0;
14373}
14374_ACEOF
14375rm -f conftest.$ac_objext
14376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377  (eval $ac_compile) 2>conftest.er1
14378  ac_status=$?
14379  grep -v '^ *+' conftest.er1 >conftest.err
14380  rm -f conftest.er1
14381  cat conftest.err >&5
14382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383  (exit $ac_status); } &&
14384	 { ac_try='test -z "$ac_c_werror_flag"
14385			 || test ! -s conftest.err'
14386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387  (eval $ac_try) 2>&5
14388  ac_status=$?
14389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390  (exit $ac_status); }; } &&
14391	 { ac_try='test -s conftest.$ac_objext'
14392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393  (eval $ac_try) 2>&5
14394  ac_status=$?
14395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396  (exit $ac_status); }; }; then
14397  ac_cv_have_decl_malloc=yes
14398else
14399  echo "$as_me: failed program was:" >&5
14400sed 's/^/| /' conftest.$ac_ext >&5
14401
14402ac_cv_have_decl_malloc=no
14403fi
14404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405fi
14406echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14407echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
14408if test $ac_cv_have_decl_malloc = yes; then
14409
14410cat >>confdefs.h <<_ACEOF
14411#define HAVE_DECL_MALLOC 1
14412_ACEOF
14413
14414
14415else
14416  cat >>confdefs.h <<_ACEOF
14417#define HAVE_DECL_MALLOC 0
14418_ACEOF
14419
14420
14421fi
14422echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14423echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
14424if test "${ac_cv_have_decl_realloc+set}" = set; then
14425  echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427  cat >conftest.$ac_ext <<_ACEOF
14428/* confdefs.h.  */
14429_ACEOF
14430cat confdefs.h >>conftest.$ac_ext
14431cat >>conftest.$ac_ext <<_ACEOF
14432/* end confdefs.h.  */
14433$ac_includes_default
14434int
14435main ()
14436{
14437#ifndef realloc
14438  char *p = (char *) realloc;
14439#endif
14440
14441  ;
14442  return 0;
14443}
14444_ACEOF
14445rm -f conftest.$ac_objext
14446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447  (eval $ac_compile) 2>conftest.er1
14448  ac_status=$?
14449  grep -v '^ *+' conftest.er1 >conftest.err
14450  rm -f conftest.er1
14451  cat conftest.err >&5
14452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453  (exit $ac_status); } &&
14454	 { ac_try='test -z "$ac_c_werror_flag"
14455			 || test ! -s conftest.err'
14456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457  (eval $ac_try) 2>&5
14458  ac_status=$?
14459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460  (exit $ac_status); }; } &&
14461	 { ac_try='test -s conftest.$ac_objext'
14462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463  (eval $ac_try) 2>&5
14464  ac_status=$?
14465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466  (exit $ac_status); }; }; then
14467  ac_cv_have_decl_realloc=yes
14468else
14469  echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
14472ac_cv_have_decl_realloc=no
14473fi
14474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14475fi
14476echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14477echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14478if test $ac_cv_have_decl_realloc = yes; then
14479
14480cat >>confdefs.h <<_ACEOF
14481#define HAVE_DECL_REALLOC 1
14482_ACEOF
14483
14484
14485else
14486  cat >>confdefs.h <<_ACEOF
14487#define HAVE_DECL_REALLOC 0
14488_ACEOF
14489
14490
14491fi
14492
14493
14494echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14495echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14496if test "${ac_cv_have_decl_strerror+set}" = set; then
14497  echo $ECHO_N "(cached) $ECHO_C" >&6
14498else
14499  cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h.  */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h.  */
14505$ac_includes_default
14506int
14507main ()
14508{
14509#ifndef strerror
14510  char *p = (char *) strerror;
14511#endif
14512
14513  ;
14514  return 0;
14515}
14516_ACEOF
14517rm -f conftest.$ac_objext
14518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14519  (eval $ac_compile) 2>conftest.er1
14520  ac_status=$?
14521  grep -v '^ *+' conftest.er1 >conftest.err
14522  rm -f conftest.er1
14523  cat conftest.err >&5
14524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525  (exit $ac_status); } &&
14526	 { ac_try='test -z "$ac_c_werror_flag"
14527			 || test ! -s conftest.err'
14528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529  (eval $ac_try) 2>&5
14530  ac_status=$?
14531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532  (exit $ac_status); }; } &&
14533	 { ac_try='test -s conftest.$ac_objext'
14534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535  (eval $ac_try) 2>&5
14536  ac_status=$?
14537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538  (exit $ac_status); }; }; then
14539  ac_cv_have_decl_strerror=yes
14540else
14541  echo "$as_me: failed program was:" >&5
14542sed 's/^/| /' conftest.$ac_ext >&5
14543
14544ac_cv_have_decl_strerror=no
14545fi
14546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547fi
14548echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14549echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14550if test $ac_cv_have_decl_strerror = yes; then
14551
14552cat >>confdefs.h <<_ACEOF
14553#define HAVE_DECL_STRERROR 1
14554_ACEOF
14555
14556
14557else
14558  cat >>confdefs.h <<_ACEOF
14559#define HAVE_DECL_STRERROR 0
14560_ACEOF
14561
14562
14563fi
14564echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14565echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14566if test "${ac_cv_have_decl_strstr+set}" = set; then
14567  echo $ECHO_N "(cached) $ECHO_C" >&6
14568else
14569  cat >conftest.$ac_ext <<_ACEOF
14570/* confdefs.h.  */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h.  */
14575$ac_includes_default
14576int
14577main ()
14578{
14579#ifndef strstr
14580  char *p = (char *) strstr;
14581#endif
14582
14583  ;
14584  return 0;
14585}
14586_ACEOF
14587rm -f conftest.$ac_objext
14588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14589  (eval $ac_compile) 2>conftest.er1
14590  ac_status=$?
14591  grep -v '^ *+' conftest.er1 >conftest.err
14592  rm -f conftest.er1
14593  cat conftest.err >&5
14594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595  (exit $ac_status); } &&
14596	 { ac_try='test -z "$ac_c_werror_flag"
14597			 || test ! -s conftest.err'
14598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599  (eval $ac_try) 2>&5
14600  ac_status=$?
14601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602  (exit $ac_status); }; } &&
14603	 { ac_try='test -s conftest.$ac_objext'
14604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605  (eval $ac_try) 2>&5
14606  ac_status=$?
14607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608  (exit $ac_status); }; }; then
14609  ac_cv_have_decl_strstr=yes
14610else
14611  echo "$as_me: failed program was:" >&5
14612sed 's/^/| /' conftest.$ac_ext >&5
14613
14614ac_cv_have_decl_strstr=no
14615fi
14616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14617fi
14618echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14619echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14620if test $ac_cv_have_decl_strstr = yes; then
14621
14622cat >>confdefs.h <<_ACEOF
14623#define HAVE_DECL_STRSTR 1
14624_ACEOF
14625
14626
14627else
14628  cat >>confdefs.h <<_ACEOF
14629#define HAVE_DECL_STRSTR 0
14630_ACEOF
14631
14632
14633fi
14634
14635
14636echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14637echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14638if test "${ac_cv_have_decl_getopt+set}" = set; then
14639  echo $ECHO_N "(cached) $ECHO_C" >&6
14640else
14641  cat >conftest.$ac_ext <<_ACEOF
14642/* confdefs.h.  */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h.  */
14647$ac_includes_default
14648int
14649main ()
14650{
14651#ifndef getopt
14652  char *p = (char *) getopt;
14653#endif
14654
14655  ;
14656  return 0;
14657}
14658_ACEOF
14659rm -f conftest.$ac_objext
14660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14661  (eval $ac_compile) 2>conftest.er1
14662  ac_status=$?
14663  grep -v '^ *+' conftest.er1 >conftest.err
14664  rm -f conftest.er1
14665  cat conftest.err >&5
14666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667  (exit $ac_status); } &&
14668	 { ac_try='test -z "$ac_c_werror_flag"
14669			 || test ! -s conftest.err'
14670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671  (eval $ac_try) 2>&5
14672  ac_status=$?
14673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674  (exit $ac_status); }; } &&
14675	 { ac_try='test -s conftest.$ac_objext'
14676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677  (eval $ac_try) 2>&5
14678  ac_status=$?
14679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680  (exit $ac_status); }; }; then
14681  ac_cv_have_decl_getopt=yes
14682else
14683  echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5
14685
14686ac_cv_have_decl_getopt=no
14687fi
14688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14689fi
14690echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14691echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
14692if test $ac_cv_have_decl_getopt = yes; then
14693
14694cat >>confdefs.h <<_ACEOF
14695#define HAVE_DECL_GETOPT 1
14696_ACEOF
14697
14698
14699else
14700  cat >>confdefs.h <<_ACEOF
14701#define HAVE_DECL_GETOPT 0
14702_ACEOF
14703
14704
14705fi
14706echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14707echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14708if test "${ac_cv_have_decl_snprintf+set}" = set; then
14709  echo $ECHO_N "(cached) $ECHO_C" >&6
14710else
14711  cat >conftest.$ac_ext <<_ACEOF
14712/* confdefs.h.  */
14713_ACEOF
14714cat confdefs.h >>conftest.$ac_ext
14715cat >>conftest.$ac_ext <<_ACEOF
14716/* end confdefs.h.  */
14717$ac_includes_default
14718int
14719main ()
14720{
14721#ifndef snprintf
14722  char *p = (char *) snprintf;
14723#endif
14724
14725  ;
14726  return 0;
14727}
14728_ACEOF
14729rm -f conftest.$ac_objext
14730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731  (eval $ac_compile) 2>conftest.er1
14732  ac_status=$?
14733  grep -v '^ *+' conftest.er1 >conftest.err
14734  rm -f conftest.er1
14735  cat conftest.err >&5
14736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737  (exit $ac_status); } &&
14738	 { ac_try='test -z "$ac_c_werror_flag"
14739			 || test ! -s conftest.err'
14740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741  (eval $ac_try) 2>&5
14742  ac_status=$?
14743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744  (exit $ac_status); }; } &&
14745	 { ac_try='test -s conftest.$ac_objext'
14746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747  (eval $ac_try) 2>&5
14748  ac_status=$?
14749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750  (exit $ac_status); }; }; then
14751  ac_cv_have_decl_snprintf=yes
14752else
14753  echo "$as_me: failed program was:" >&5
14754sed 's/^/| /' conftest.$ac_ext >&5
14755
14756ac_cv_have_decl_snprintf=no
14757fi
14758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14759fi
14760echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14761echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14762if test $ac_cv_have_decl_snprintf = yes; then
14763
14764cat >>confdefs.h <<_ACEOF
14765#define HAVE_DECL_SNPRINTF 1
14766_ACEOF
14767
14768
14769else
14770  cat >>confdefs.h <<_ACEOF
14771#define HAVE_DECL_SNPRINTF 0
14772_ACEOF
14773
14774
14775fi
14776echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14777echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14778if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14779  echo $ECHO_N "(cached) $ECHO_C" >&6
14780else
14781  cat >conftest.$ac_ext <<_ACEOF
14782/* confdefs.h.  */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h.  */
14787$ac_includes_default
14788int
14789main ()
14790{
14791#ifndef vsnprintf
14792  char *p = (char *) vsnprintf;
14793#endif
14794
14795  ;
14796  return 0;
14797}
14798_ACEOF
14799rm -f conftest.$ac_objext
14800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801  (eval $ac_compile) 2>conftest.er1
14802  ac_status=$?
14803  grep -v '^ *+' conftest.er1 >conftest.err
14804  rm -f conftest.er1
14805  cat conftest.err >&5
14806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807  (exit $ac_status); } &&
14808	 { ac_try='test -z "$ac_c_werror_flag"
14809			 || test ! -s conftest.err'
14810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811  (eval $ac_try) 2>&5
14812  ac_status=$?
14813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814  (exit $ac_status); }; } &&
14815	 { ac_try='test -s conftest.$ac_objext'
14816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817  (eval $ac_try) 2>&5
14818  ac_status=$?
14819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820  (exit $ac_status); }; }; then
14821  ac_cv_have_decl_vsnprintf=yes
14822else
14823  echo "$as_me: failed program was:" >&5
14824sed 's/^/| /' conftest.$ac_ext >&5
14825
14826ac_cv_have_decl_vsnprintf=no
14827fi
14828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14829fi
14830echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14831echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14832if test $ac_cv_have_decl_vsnprintf = yes; then
14833
14834cat >>confdefs.h <<_ACEOF
14835#define HAVE_DECL_VSNPRINTF 1
14836_ACEOF
14837
14838
14839else
14840  cat >>confdefs.h <<_ACEOF
14841#define HAVE_DECL_VSNPRINTF 0
14842_ACEOF
14843
14844
14845fi
14846
14847
14848
14849# ----------------------- #
14850# Checks for structures.  #
14851# ----------------------- #
14852
14853echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14854echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14855if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14856  echo $ECHO_N "(cached) $ECHO_C" >&6
14857else
14858  cat >conftest.$ac_ext <<_ACEOF
14859/* confdefs.h.  */
14860_ACEOF
14861cat confdefs.h >>conftest.$ac_ext
14862cat >>conftest.$ac_ext <<_ACEOF
14863/* end confdefs.h.  */
14864$ac_includes_default
14865int
14866main ()
14867{
14868static struct stat ac_aggr;
14869if (ac_aggr.st_blocks)
14870return 0;
14871  ;
14872  return 0;
14873}
14874_ACEOF
14875rm -f conftest.$ac_objext
14876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14877  (eval $ac_compile) 2>conftest.er1
14878  ac_status=$?
14879  grep -v '^ *+' conftest.er1 >conftest.err
14880  rm -f conftest.er1
14881  cat conftest.err >&5
14882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883  (exit $ac_status); } &&
14884	 { ac_try='test -z "$ac_c_werror_flag"
14885			 || test ! -s conftest.err'
14886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887  (eval $ac_try) 2>&5
14888  ac_status=$?
14889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890  (exit $ac_status); }; } &&
14891	 { ac_try='test -s conftest.$ac_objext'
14892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893  (eval $ac_try) 2>&5
14894  ac_status=$?
14895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896  (exit $ac_status); }; }; then
14897  ac_cv_member_struct_stat_st_blocks=yes
14898else
14899  echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902cat >conftest.$ac_ext <<_ACEOF
14903/* confdefs.h.  */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
14907/* end confdefs.h.  */
14908$ac_includes_default
14909int
14910main ()
14911{
14912static struct stat ac_aggr;
14913if (sizeof ac_aggr.st_blocks)
14914return 0;
14915  ;
14916  return 0;
14917}
14918_ACEOF
14919rm -f conftest.$ac_objext
14920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921  (eval $ac_compile) 2>conftest.er1
14922  ac_status=$?
14923  grep -v '^ *+' conftest.er1 >conftest.err
14924  rm -f conftest.er1
14925  cat conftest.err >&5
14926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927  (exit $ac_status); } &&
14928	 { ac_try='test -z "$ac_c_werror_flag"
14929			 || test ! -s conftest.err'
14930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931  (eval $ac_try) 2>&5
14932  ac_status=$?
14933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934  (exit $ac_status); }; } &&
14935	 { ac_try='test -s conftest.$ac_objext'
14936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937  (eval $ac_try) 2>&5
14938  ac_status=$?
14939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940  (exit $ac_status); }; }; then
14941  ac_cv_member_struct_stat_st_blocks=yes
14942else
14943  echo "$as_me: failed program was:" >&5
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
14946ac_cv_member_struct_stat_st_blocks=no
14947fi
14948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14949fi
14950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14951fi
14952echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14953echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14954if test $ac_cv_member_struct_stat_st_blocks = yes; then
14955
14956cat >>confdefs.h <<_ACEOF
14957#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14958_ACEOF
14959
14960
14961fi
14962
14963echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14964echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14965if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14966  echo $ECHO_N "(cached) $ECHO_C" >&6
14967else
14968  cat >conftest.$ac_ext <<_ACEOF
14969/* confdefs.h.  */
14970_ACEOF
14971cat confdefs.h >>conftest.$ac_ext
14972cat >>conftest.$ac_ext <<_ACEOF
14973/* end confdefs.h.  */
14974$ac_includes_default
14975int
14976main ()
14977{
14978static struct stat ac_aggr;
14979if (ac_aggr.st_blksize)
14980return 0;
14981  ;
14982  return 0;
14983}
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987  (eval $ac_compile) 2>conftest.er1
14988  ac_status=$?
14989  grep -v '^ *+' conftest.er1 >conftest.err
14990  rm -f conftest.er1
14991  cat conftest.err >&5
14992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993  (exit $ac_status); } &&
14994	 { ac_try='test -z "$ac_c_werror_flag"
14995			 || test ! -s conftest.err'
14996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997  (eval $ac_try) 2>&5
14998  ac_status=$?
14999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000  (exit $ac_status); }; } &&
15001	 { ac_try='test -s conftest.$ac_objext'
15002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003  (eval $ac_try) 2>&5
15004  ac_status=$?
15005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006  (exit $ac_status); }; }; then
15007  ac_cv_member_struct_stat_st_blksize=yes
15008else
15009  echo "$as_me: failed program was:" >&5
15010sed 's/^/| /' conftest.$ac_ext >&5
15011
15012cat >conftest.$ac_ext <<_ACEOF
15013/* confdefs.h.  */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h.  */
15018$ac_includes_default
15019int
15020main ()
15021{
15022static struct stat ac_aggr;
15023if (sizeof ac_aggr.st_blksize)
15024return 0;
15025  ;
15026  return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031  (eval $ac_compile) 2>conftest.er1
15032  ac_status=$?
15033  grep -v '^ *+' conftest.er1 >conftest.err
15034  rm -f conftest.er1
15035  cat conftest.err >&5
15036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037  (exit $ac_status); } &&
15038	 { ac_try='test -z "$ac_c_werror_flag"
15039			 || test ! -s conftest.err'
15040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041  (eval $ac_try) 2>&5
15042  ac_status=$?
15043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044  (exit $ac_status); }; } &&
15045	 { ac_try='test -s conftest.$ac_objext'
15046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047  (eval $ac_try) 2>&5
15048  ac_status=$?
15049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050  (exit $ac_status); }; }; then
15051  ac_cv_member_struct_stat_st_blksize=yes
15052else
15053  echo "$as_me: failed program was:" >&5
15054sed 's/^/| /' conftest.$ac_ext >&5
15055
15056ac_cv_member_struct_stat_st_blksize=no
15057fi
15058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15059fi
15060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15061fi
15062echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15063echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
15064if test $ac_cv_member_struct_stat_st_blksize = yes; then
15065
15066cat >>confdefs.h <<_ACEOF
15067#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15068_ACEOF
15069
15070
15071fi
15072
15073
15074# ------------------ #
15075# Checks for types.  #
15076# ------------------ #
15077
15078echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15079echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15080if test "${ac_cv_type_signal+set}" = set; then
15081  echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
15083  cat >conftest.$ac_ext <<_ACEOF
15084/* confdefs.h.  */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h.  */
15089#include <sys/types.h>
15090#include <signal.h>
15091#ifdef signal
15092# undef signal
15093#endif
15094#ifdef __cplusplus
15095extern "C" void (*signal (int, void (*)(int)))(int);
15096#else
15097void (*signal ()) ();
15098#endif
15099
15100int
15101main ()
15102{
15103int i;
15104  ;
15105  return 0;
15106}
15107_ACEOF
15108rm -f conftest.$ac_objext
15109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15110  (eval $ac_compile) 2>conftest.er1
15111  ac_status=$?
15112  grep -v '^ *+' conftest.er1 >conftest.err
15113  rm -f conftest.er1
15114  cat conftest.err >&5
15115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116  (exit $ac_status); } &&
15117	 { ac_try='test -z "$ac_c_werror_flag"
15118			 || test ! -s conftest.err'
15119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120  (eval $ac_try) 2>&5
15121  ac_status=$?
15122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123  (exit $ac_status); }; } &&
15124	 { ac_try='test -s conftest.$ac_objext'
15125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126  (eval $ac_try) 2>&5
15127  ac_status=$?
15128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129  (exit $ac_status); }; }; then
15130  ac_cv_type_signal=void
15131else
15132  echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
15135ac_cv_type_signal=int
15136fi
15137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15138fi
15139echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15140echo "${ECHO_T}$ac_cv_type_signal" >&6
15141
15142cat >>confdefs.h <<_ACEOF
15143#define RETSIGTYPE $ac_cv_type_signal
15144_ACEOF
15145
15146
15147echo "$as_me:$LINENO: checking for socklen_t" >&5
15148echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15149if test "${ac_cv_type_socklen_t+set}" = set; then
15150  echo $ECHO_N "(cached) $ECHO_C" >&6
15151else
15152  cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h.  */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h.  */
15158#include <sys/types.h>
15159#include <sys/socket.h>
15160
15161
15162int
15163main ()
15164{
15165if ((socklen_t *) 0)
15166  return 0;
15167if (sizeof (socklen_t))
15168  return 0;
15169  ;
15170  return 0;
15171}
15172_ACEOF
15173rm -f conftest.$ac_objext
15174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15175  (eval $ac_compile) 2>conftest.er1
15176  ac_status=$?
15177  grep -v '^ *+' conftest.er1 >conftest.err
15178  rm -f conftest.er1
15179  cat conftest.err >&5
15180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181  (exit $ac_status); } &&
15182	 { ac_try='test -z "$ac_c_werror_flag"
15183			 || test ! -s conftest.err'
15184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185  (eval $ac_try) 2>&5
15186  ac_status=$?
15187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188  (exit $ac_status); }; } &&
15189	 { ac_try='test -s conftest.$ac_objext'
15190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191  (eval $ac_try) 2>&5
15192  ac_status=$?
15193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194  (exit $ac_status); }; }; then
15195  ac_cv_type_socklen_t=yes
15196else
15197  echo "$as_me: failed program was:" >&5
15198sed 's/^/| /' conftest.$ac_ext >&5
15199
15200ac_cv_type_socklen_t=no
15201fi
15202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15203fi
15204echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15205echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
15206if test $ac_cv_type_socklen_t = yes; then
15207
15208cat >>confdefs.h <<_ACEOF
15209#define HAVE_SOCKLEN_T 1
15210_ACEOF
15211
15212
15213fi
15214
15215echo "$as_me:$LINENO: checking for uintptr_t" >&5
15216echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15217if test "${ac_cv_type_uintptr_t+set}" = set; then
15218  echo $ECHO_N "(cached) $ECHO_C" >&6
15219else
15220  cat >conftest.$ac_ext <<_ACEOF
15221/* confdefs.h.  */
15222_ACEOF
15223cat confdefs.h >>conftest.$ac_ext
15224cat >>conftest.$ac_ext <<_ACEOF
15225/* end confdefs.h.  */
15226#include <stdint.h>
15227
15228int
15229main ()
15230{
15231if ((uintptr_t *) 0)
15232  return 0;
15233if (sizeof (uintptr_t))
15234  return 0;
15235  ;
15236  return 0;
15237}
15238_ACEOF
15239rm -f conftest.$ac_objext
15240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241  (eval $ac_compile) 2>conftest.er1
15242  ac_status=$?
15243  grep -v '^ *+' conftest.er1 >conftest.err
15244  rm -f conftest.er1
15245  cat conftest.err >&5
15246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247  (exit $ac_status); } &&
15248	 { ac_try='test -z "$ac_c_werror_flag"
15249			 || test ! -s conftest.err'
15250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251  (eval $ac_try) 2>&5
15252  ac_status=$?
15253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254  (exit $ac_status); }; } &&
15255	 { ac_try='test -s conftest.$ac_objext'
15256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257  (eval $ac_try) 2>&5
15258  ac_status=$?
15259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260  (exit $ac_status); }; }; then
15261  ac_cv_type_uintptr_t=yes
15262else
15263  echo "$as_me: failed program was:" >&5
15264sed 's/^/| /' conftest.$ac_ext >&5
15265
15266ac_cv_type_uintptr_t=no
15267fi
15268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15269fi
15270echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15271echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15272if test $ac_cv_type_uintptr_t = yes; then
15273
15274cat >>confdefs.h <<_ACEOF
15275#define HAVE_UINTPTR_T 1
15276_ACEOF
15277
15278
15279fi
15280
15281
15282# ------------------------------------- #
15283# Checks for compiler characteristics.  #
15284# ------------------------------------- #
15285
15286echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15287echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15288if test "${ac_cv_c_const+set}" = set; then
15289  echo $ECHO_N "(cached) $ECHO_C" >&6
15290else
15291  cat >conftest.$ac_ext <<_ACEOF
15292/* confdefs.h.  */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h.  */
15297
15298int
15299main ()
15300{
15301/* FIXME: Include the comments suggested by Paul. */
15302#ifndef __cplusplus
15303  /* Ultrix mips cc rejects this.  */
15304  typedef int charset[2];
15305  const charset x;
15306  /* SunOS 4.1.1 cc rejects this.  */
15307  char const *const *ccp;
15308  char **p;
15309  /* NEC SVR4.0.2 mips cc rejects this.  */
15310  struct point {int x, y;};
15311  static struct point const zero = {0,0};
15312  /* AIX XL C 1.02.0.0 rejects this.
15313     It does not let you subtract one const X* pointer from another in
15314     an arm of an if-expression whose if-part is not a constant
15315     expression */
15316  const char *g = "string";
15317  ccp = &g + (g ? g-g : 0);
15318  /* HPUX 7.0 cc rejects these. */
15319  ++ccp;
15320  p = (char**) ccp;
15321  ccp = (char const *const *) p;
15322  { /* SCO 3.2v4 cc rejects this.  */
15323    char *t;
15324    char const *s = 0 ? (char *) 0 : (char const *) 0;
15325
15326    *t++ = 0;
15327  }
15328  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15329    int x[] = {25, 17};
15330    const int *foo = &x[0];
15331    ++foo;
15332  }
15333  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15334    typedef const int *iptr;
15335    iptr p = 0;
15336    ++p;
15337  }
15338  { /* AIX XL C 1.02.0.0 rejects this saying
15339       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15340    struct s { int j; const int *ap[3]; };
15341    struct s *b; b->j = 5;
15342  }
15343  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15344    const int foo = 10;
15345  }
15346#endif
15347
15348  ;
15349  return 0;
15350}
15351_ACEOF
15352rm -f conftest.$ac_objext
15353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15354  (eval $ac_compile) 2>conftest.er1
15355  ac_status=$?
15356  grep -v '^ *+' conftest.er1 >conftest.err
15357  rm -f conftest.er1
15358  cat conftest.err >&5
15359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360  (exit $ac_status); } &&
15361	 { ac_try='test -z "$ac_c_werror_flag"
15362			 || test ! -s conftest.err'
15363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364  (eval $ac_try) 2>&5
15365  ac_status=$?
15366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367  (exit $ac_status); }; } &&
15368	 { ac_try='test -s conftest.$ac_objext'
15369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370  (eval $ac_try) 2>&5
15371  ac_status=$?
15372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373  (exit $ac_status); }; }; then
15374  ac_cv_c_const=yes
15375else
15376  echo "$as_me: failed program was:" >&5
15377sed 's/^/| /' conftest.$ac_ext >&5
15378
15379ac_cv_c_const=no
15380fi
15381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15382fi
15383echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15384echo "${ECHO_T}$ac_cv_c_const" >&6
15385if test $ac_cv_c_const = no; then
15386
15387cat >>confdefs.h <<\_ACEOF
15388#define const
15389_ACEOF
15390
15391fi
15392
15393echo "$as_me:$LINENO: checking for inline" >&5
15394echo $ECHO_N "checking for inline... $ECHO_C" >&6
15395if test "${ac_cv_c_inline+set}" = set; then
15396  echo $ECHO_N "(cached) $ECHO_C" >&6
15397else
15398  ac_cv_c_inline=no
15399for ac_kw in inline __inline__ __inline; do
15400  cat >conftest.$ac_ext <<_ACEOF
15401/* confdefs.h.  */
15402_ACEOF
15403cat confdefs.h >>conftest.$ac_ext
15404cat >>conftest.$ac_ext <<_ACEOF
15405/* end confdefs.h.  */
15406#ifndef __cplusplus
15407typedef int foo_t;
15408static $ac_kw foo_t static_foo () {return 0; }
15409$ac_kw foo_t foo () {return 0; }
15410#endif
15411
15412_ACEOF
15413rm -f conftest.$ac_objext
15414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415  (eval $ac_compile) 2>conftest.er1
15416  ac_status=$?
15417  grep -v '^ *+' conftest.er1 >conftest.err
15418  rm -f conftest.er1
15419  cat conftest.err >&5
15420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421  (exit $ac_status); } &&
15422	 { ac_try='test -z "$ac_c_werror_flag"
15423			 || test ! -s conftest.err'
15424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425  (eval $ac_try) 2>&5
15426  ac_status=$?
15427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428  (exit $ac_status); }; } &&
15429	 { ac_try='test -s conftest.$ac_objext'
15430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431  (eval $ac_try) 2>&5
15432  ac_status=$?
15433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434  (exit $ac_status); }; }; then
15435  ac_cv_c_inline=$ac_kw; break
15436else
15437  echo "$as_me: failed program was:" >&5
15438sed 's/^/| /' conftest.$ac_ext >&5
15439
15440fi
15441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15442done
15443
15444fi
15445echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15446echo "${ECHO_T}$ac_cv_c_inline" >&6
15447
15448
15449case $ac_cv_c_inline in
15450  inline | yes) ;;
15451  *)
15452    case $ac_cv_c_inline in
15453      no) ac_val=;;
15454      *) ac_val=$ac_cv_c_inline;;
15455    esac
15456    cat >>confdefs.h <<_ACEOF
15457#ifndef __cplusplus
15458#define inline $ac_val
15459#endif
15460_ACEOF
15461    ;;
15462esac
15463
15464
15465# ------------------------------ #
15466# Checks for library functions.  #
15467# ------------------------------ #
15468
15469# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15470# for constant arguments.  Useless!
15471echo "$as_me:$LINENO: checking for working alloca.h" >&5
15472echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15473if test "${ac_cv_working_alloca_h+set}" = set; then
15474  echo $ECHO_N "(cached) $ECHO_C" >&6
15475else
15476  cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h.  */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h.  */
15482#include <alloca.h>
15483int
15484main ()
15485{
15486char *p = (char *) alloca (2 * sizeof (int));
15487  ;
15488  return 0;
15489}
15490_ACEOF
15491rm -f conftest.$ac_objext conftest$ac_exeext
15492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493  (eval $ac_link) 2>conftest.er1
15494  ac_status=$?
15495  grep -v '^ *+' conftest.er1 >conftest.err
15496  rm -f conftest.er1
15497  cat conftest.err >&5
15498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499  (exit $ac_status); } &&
15500	 { ac_try='test -z "$ac_c_werror_flag"
15501			 || test ! -s conftest.err'
15502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503  (eval $ac_try) 2>&5
15504  ac_status=$?
15505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506  (exit $ac_status); }; } &&
15507	 { ac_try='test -s conftest$ac_exeext'
15508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509  (eval $ac_try) 2>&5
15510  ac_status=$?
15511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512  (exit $ac_status); }; }; then
15513  ac_cv_working_alloca_h=yes
15514else
15515  echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518ac_cv_working_alloca_h=no
15519fi
15520rm -f conftest.err conftest.$ac_objext \
15521      conftest$ac_exeext conftest.$ac_ext
15522fi
15523echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15524echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15525if test $ac_cv_working_alloca_h = yes; then
15526
15527cat >>confdefs.h <<\_ACEOF
15528#define HAVE_ALLOCA_H 1
15529_ACEOF
15530
15531fi
15532
15533echo "$as_me:$LINENO: checking for alloca" >&5
15534echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15535if test "${ac_cv_func_alloca_works+set}" = set; then
15536  echo $ECHO_N "(cached) $ECHO_C" >&6
15537else
15538  cat >conftest.$ac_ext <<_ACEOF
15539/* confdefs.h.  */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h.  */
15544#ifdef __GNUC__
15545# define alloca __builtin_alloca
15546#else
15547# ifdef _MSC_VER
15548#  include <malloc.h>
15549#  define alloca _alloca
15550# else
15551#  if HAVE_ALLOCA_H
15552#   include <alloca.h>
15553#  else
15554#   ifdef _AIX
15555 #pragma alloca
15556#   else
15557#    ifndef alloca /* predefined by HP cc +Olibcalls */
15558char *alloca ();
15559#    endif
15560#   endif
15561#  endif
15562# endif
15563#endif
15564
15565int
15566main ()
15567{
15568char *p = (char *) alloca (1);
15569  ;
15570  return 0;
15571}
15572_ACEOF
15573rm -f conftest.$ac_objext conftest$ac_exeext
15574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15575  (eval $ac_link) 2>conftest.er1
15576  ac_status=$?
15577  grep -v '^ *+' conftest.er1 >conftest.err
15578  rm -f conftest.er1
15579  cat conftest.err >&5
15580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581  (exit $ac_status); } &&
15582	 { ac_try='test -z "$ac_c_werror_flag"
15583			 || test ! -s conftest.err'
15584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585  (eval $ac_try) 2>&5
15586  ac_status=$?
15587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588  (exit $ac_status); }; } &&
15589	 { ac_try='test -s conftest$ac_exeext'
15590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591  (eval $ac_try) 2>&5
15592  ac_status=$?
15593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594  (exit $ac_status); }; }; then
15595  ac_cv_func_alloca_works=yes
15596else
15597  echo "$as_me: failed program was:" >&5
15598sed 's/^/| /' conftest.$ac_ext >&5
15599
15600ac_cv_func_alloca_works=no
15601fi
15602rm -f conftest.err conftest.$ac_objext \
15603      conftest$ac_exeext conftest.$ac_ext
15604fi
15605echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15606echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15607
15608if test $ac_cv_func_alloca_works = yes; then
15609
15610cat >>confdefs.h <<\_ACEOF
15611#define HAVE_ALLOCA 1
15612_ACEOF
15613
15614else
15615  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15616# that cause trouble.  Some versions do not even contain alloca or
15617# contain a buggy version.  If you still want to use their alloca,
15618# use ar to extract alloca.o from them instead of compiling alloca.c.
15619
15620ALLOCA=alloca.$ac_objext
15621
15622cat >>confdefs.h <<\_ACEOF
15623#define C_ALLOCA 1
15624_ACEOF
15625
15626
15627echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15628echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15629if test "${ac_cv_os_cray+set}" = set; then
15630  echo $ECHO_N "(cached) $ECHO_C" >&6
15631else
15632  cat >conftest.$ac_ext <<_ACEOF
15633/* confdefs.h.  */
15634_ACEOF
15635cat confdefs.h >>conftest.$ac_ext
15636cat >>conftest.$ac_ext <<_ACEOF
15637/* end confdefs.h.  */
15638#if defined(CRAY) && ! defined(CRAY2)
15639webecray
15640#else
15641wenotbecray
15642#endif
15643
15644_ACEOF
15645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15646  $EGREP "webecray" >/dev/null 2>&1; then
15647  ac_cv_os_cray=yes
15648else
15649  ac_cv_os_cray=no
15650fi
15651rm -f conftest*
15652
15653fi
15654echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15655echo "${ECHO_T}$ac_cv_os_cray" >&6
15656if test $ac_cv_os_cray = yes; then
15657  for ac_func in _getb67 GETB67 getb67; do
15658    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15659echo "$as_me:$LINENO: checking for $ac_func" >&5
15660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15661if eval "test \"\${$as_ac_var+set}\" = set"; then
15662  echo $ECHO_N "(cached) $ECHO_C" >&6
15663else
15664  cat >conftest.$ac_ext <<_ACEOF
15665/* confdefs.h.  */
15666_ACEOF
15667cat confdefs.h >>conftest.$ac_ext
15668cat >>conftest.$ac_ext <<_ACEOF
15669/* end confdefs.h.  */
15670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15671   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15672#define $ac_func innocuous_$ac_func
15673
15674/* System header to define __stub macros and hopefully few prototypes,
15675    which can conflict with char $ac_func (); below.
15676    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15677    <limits.h> exists even on freestanding compilers.  */
15678
15679#ifdef __STDC__
15680# include <limits.h>
15681#else
15682# include <assert.h>
15683#endif
15684
15685#undef $ac_func
15686
15687/* Override any gcc2 internal prototype to avoid an error.  */
15688#ifdef __cplusplus
15689extern "C"
15690{
15691#endif
15692/* We use char because int might match the return type of a gcc2
15693   builtin and then its argument prototype would still apply.  */
15694char $ac_func ();
15695/* The GNU C library defines this for functions which it implements
15696    to always fail with ENOSYS.  Some functions are actually named
15697    something starting with __ and the normal name is an alias.  */
15698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699choke me
15700#else
15701char (*f) () = $ac_func;
15702#endif
15703#ifdef __cplusplus
15704}
15705#endif
15706
15707int
15708main ()
15709{
15710return f != $ac_func;
15711  ;
15712  return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext conftest$ac_exeext
15716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717  (eval $ac_link) 2>conftest.er1
15718  ac_status=$?
15719  grep -v '^ *+' conftest.er1 >conftest.err
15720  rm -f conftest.er1
15721  cat conftest.err >&5
15722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723  (exit $ac_status); } &&
15724	 { ac_try='test -z "$ac_c_werror_flag"
15725			 || test ! -s conftest.err'
15726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727  (eval $ac_try) 2>&5
15728  ac_status=$?
15729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730  (exit $ac_status); }; } &&
15731	 { ac_try='test -s conftest$ac_exeext'
15732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733  (eval $ac_try) 2>&5
15734  ac_status=$?
15735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736  (exit $ac_status); }; }; then
15737  eval "$as_ac_var=yes"
15738else
15739  echo "$as_me: failed program was:" >&5
15740sed 's/^/| /' conftest.$ac_ext >&5
15741
15742eval "$as_ac_var=no"
15743fi
15744rm -f conftest.err conftest.$ac_objext \
15745      conftest$ac_exeext conftest.$ac_ext
15746fi
15747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15749if test `eval echo '${'$as_ac_var'}'` = yes; then
15750
15751cat >>confdefs.h <<_ACEOF
15752#define CRAY_STACKSEG_END $ac_func
15753_ACEOF
15754
15755    break
15756fi
15757
15758  done
15759fi
15760
15761echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15762echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15763if test "${ac_cv_c_stack_direction+set}" = set; then
15764  echo $ECHO_N "(cached) $ECHO_C" >&6
15765else
15766  if test "$cross_compiling" = yes; then
15767  ac_cv_c_stack_direction=0
15768else
15769  cat >conftest.$ac_ext <<_ACEOF
15770/* confdefs.h.  */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h.  */
15775int
15776find_stack_direction ()
15777{
15778  static char *addr = 0;
15779  auto char dummy;
15780  if (addr == 0)
15781    {
15782      addr = &dummy;
15783      return find_stack_direction ();
15784    }
15785  else
15786    return (&dummy > addr) ? 1 : -1;
15787}
15788
15789int
15790main ()
15791{
15792  exit (find_stack_direction () < 0);
15793}
15794_ACEOF
15795rm -f conftest$ac_exeext
15796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15797  (eval $ac_link) 2>&5
15798  ac_status=$?
15799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802  (eval $ac_try) 2>&5
15803  ac_status=$?
15804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805  (exit $ac_status); }; }; then
15806  ac_cv_c_stack_direction=1
15807else
15808  echo "$as_me: program exited with status $ac_status" >&5
15809echo "$as_me: failed program was:" >&5
15810sed 's/^/| /' conftest.$ac_ext >&5
15811
15812( exit $ac_status )
15813ac_cv_c_stack_direction=-1
15814fi
15815rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15816fi
15817fi
15818echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15819echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15820
15821cat >>confdefs.h <<_ACEOF
15822#define STACK_DIRECTION $ac_cv_c_stack_direction
15823_ACEOF
15824
15825
15826fi
15827
15828
15829
15830for ac_header in stdlib.h unistd.h
15831do
15832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15833if eval "test \"\${$as_ac_Header+set}\" = set"; then
15834  echo "$as_me:$LINENO: checking for $ac_header" >&5
15835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15836if eval "test \"\${$as_ac_Header+set}\" = set"; then
15837  echo $ECHO_N "(cached) $ECHO_C" >&6
15838fi
15839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15841else
15842  # Is the header compilable?
15843echo "$as_me:$LINENO: checking $ac_header usability" >&5
15844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15845cat >conftest.$ac_ext <<_ACEOF
15846/* confdefs.h.  */
15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h.  */
15851$ac_includes_default
15852#include <$ac_header>
15853_ACEOF
15854rm -f conftest.$ac_objext
15855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856  (eval $ac_compile) 2>conftest.er1
15857  ac_status=$?
15858  grep -v '^ *+' conftest.er1 >conftest.err
15859  rm -f conftest.er1
15860  cat conftest.err >&5
15861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862  (exit $ac_status); } &&
15863	 { ac_try='test -z "$ac_c_werror_flag"
15864			 || test ! -s conftest.err'
15865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866  (eval $ac_try) 2>&5
15867  ac_status=$?
15868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869  (exit $ac_status); }; } &&
15870	 { ac_try='test -s conftest.$ac_objext'
15871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872  (eval $ac_try) 2>&5
15873  ac_status=$?
15874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875  (exit $ac_status); }; }; then
15876  ac_header_compiler=yes
15877else
15878  echo "$as_me: failed program was:" >&5
15879sed 's/^/| /' conftest.$ac_ext >&5
15880
15881ac_header_compiler=no
15882fi
15883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15885echo "${ECHO_T}$ac_header_compiler" >&6
15886
15887# Is the header present?
15888echo "$as_me:$LINENO: checking $ac_header presence" >&5
15889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15890cat >conftest.$ac_ext <<_ACEOF
15891/* confdefs.h.  */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h.  */
15896#include <$ac_header>
15897_ACEOF
15898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15899  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15900  ac_status=$?
15901  grep -v '^ *+' conftest.er1 >conftest.err
15902  rm -f conftest.er1
15903  cat conftest.err >&5
15904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905  (exit $ac_status); } >/dev/null; then
15906  if test -s conftest.err; then
15907    ac_cpp_err=$ac_c_preproc_warn_flag
15908    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15909  else
15910    ac_cpp_err=
15911  fi
15912else
15913  ac_cpp_err=yes
15914fi
15915if test -z "$ac_cpp_err"; then
15916  ac_header_preproc=yes
15917else
15918  echo "$as_me: failed program was:" >&5
15919sed 's/^/| /' conftest.$ac_ext >&5
15920
15921  ac_header_preproc=no
15922fi
15923rm -f conftest.err conftest.$ac_ext
15924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925echo "${ECHO_T}$ac_header_preproc" >&6
15926
15927# So?  What about this header?
15928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929  yes:no: )
15930    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934    ac_header_preproc=yes
15935    ;;
15936  no:yes:* )
15937    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15940echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15941    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15944echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15945    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15949    (
15950      cat <<\_ASBOX
15951## ------------------------------------------ ##
15952## Report this to the AC_PACKAGE_NAME lists.  ##
15953## ------------------------------------------ ##
15954_ASBOX
15955    ) |
15956      sed "s/^/$as_me: WARNING:     /" >&2
15957    ;;
15958esac
15959echo "$as_me:$LINENO: checking for $ac_header" >&5
15960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15961if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962  echo $ECHO_N "(cached) $ECHO_C" >&6
15963else
15964  eval "$as_ac_Header=\$ac_header_preproc"
15965fi
15966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15968
15969fi
15970if test `eval echo '${'$as_ac_Header'}'` = yes; then
15971  cat >>confdefs.h <<_ACEOF
15972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15973_ACEOF
15974
15975fi
15976
15977done
15978
15979
15980for ac_func in getpagesize
15981do
15982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15983echo "$as_me:$LINENO: checking for $ac_func" >&5
15984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15985if eval "test \"\${$as_ac_var+set}\" = set"; then
15986  echo $ECHO_N "(cached) $ECHO_C" >&6
15987else
15988  cat >conftest.$ac_ext <<_ACEOF
15989/* confdefs.h.  */
15990_ACEOF
15991cat confdefs.h >>conftest.$ac_ext
15992cat >>conftest.$ac_ext <<_ACEOF
15993/* end confdefs.h.  */
15994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15995   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15996#define $ac_func innocuous_$ac_func
15997
15998/* System header to define __stub macros and hopefully few prototypes,
15999    which can conflict with char $ac_func (); below.
16000    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16001    <limits.h> exists even on freestanding compilers.  */
16002
16003#ifdef __STDC__
16004# include <limits.h>
16005#else
16006# include <assert.h>
16007#endif
16008
16009#undef $ac_func
16010
16011/* Override any gcc2 internal prototype to avoid an error.  */
16012#ifdef __cplusplus
16013extern "C"
16014{
16015#endif
16016/* We use char because int might match the return type of a gcc2
16017   builtin and then its argument prototype would still apply.  */
16018char $ac_func ();
16019/* The GNU C library defines this for functions which it implements
16020    to always fail with ENOSYS.  Some functions are actually named
16021    something starting with __ and the normal name is an alias.  */
16022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16023choke me
16024#else
16025char (*f) () = $ac_func;
16026#endif
16027#ifdef __cplusplus
16028}
16029#endif
16030
16031int
16032main ()
16033{
16034return f != $ac_func;
16035  ;
16036  return 0;
16037}
16038_ACEOF
16039rm -f conftest.$ac_objext conftest$ac_exeext
16040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041  (eval $ac_link) 2>conftest.er1
16042  ac_status=$?
16043  grep -v '^ *+' conftest.er1 >conftest.err
16044  rm -f conftest.er1
16045  cat conftest.err >&5
16046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047  (exit $ac_status); } &&
16048	 { ac_try='test -z "$ac_c_werror_flag"
16049			 || test ! -s conftest.err'
16050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051  (eval $ac_try) 2>&5
16052  ac_status=$?
16053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054  (exit $ac_status); }; } &&
16055	 { ac_try='test -s conftest$ac_exeext'
16056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057  (eval $ac_try) 2>&5
16058  ac_status=$?
16059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060  (exit $ac_status); }; }; then
16061  eval "$as_ac_var=yes"
16062else
16063  echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
16066eval "$as_ac_var=no"
16067fi
16068rm -f conftest.err conftest.$ac_objext \
16069      conftest$ac_exeext conftest.$ac_ext
16070fi
16071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16073if test `eval echo '${'$as_ac_var'}'` = yes; then
16074  cat >>confdefs.h <<_ACEOF
16075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16076_ACEOF
16077
16078fi
16079done
16080
16081echo "$as_me:$LINENO: checking for working mmap" >&5
16082echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16083if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16084  echo $ECHO_N "(cached) $ECHO_C" >&6
16085else
16086  if test "$cross_compiling" = yes; then
16087  ac_cv_func_mmap_fixed_mapped=no
16088else
16089  cat >conftest.$ac_ext <<_ACEOF
16090/* confdefs.h.  */
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h.  */
16095$ac_includes_default
16096/* malloc might have been renamed as rpl_malloc. */
16097#undef malloc
16098
16099/* Thanks to Mike Haertel and Jim Avera for this test.
16100   Here is a matrix of mmap possibilities:
16101	mmap private not fixed
16102	mmap private fixed at somewhere currently unmapped
16103	mmap private fixed at somewhere already mapped
16104	mmap shared not fixed
16105	mmap shared fixed at somewhere currently unmapped
16106	mmap shared fixed at somewhere already mapped
16107   For private mappings, we should verify that changes cannot be read()
16108   back from the file, nor mmap's back from the file at a different
16109   address.  (There have been systems where private was not correctly
16110   implemented like the infamous i386 svr4.0, and systems where the
16111   VM page cache was not coherent with the file system buffer cache
16112   like early versions of FreeBSD and possibly contemporary NetBSD.)
16113   For shared mappings, we should conversely verify that changes get
16114   propagated back to all the places they're supposed to be.
16115
16116   Grep wants private fixed already mapped.
16117   The main things grep needs to know about mmap are:
16118   * does it exist and is it safe to write into the mmap'd area
16119   * how to use it (BSD variants)  */
16120
16121#include <fcntl.h>
16122#include <sys/mman.h>
16123
16124#if !STDC_HEADERS && !HAVE_STDLIB_H
16125char *malloc ();
16126#endif
16127
16128/* This mess was copied from the GNU getpagesize.h.  */
16129#if !HAVE_GETPAGESIZE
16130/* Assume that all systems that can run configure have sys/param.h.  */
16131# if !HAVE_SYS_PARAM_H
16132#  define HAVE_SYS_PARAM_H 1
16133# endif
16134
16135# ifdef _SC_PAGESIZE
16136#  define getpagesize() sysconf(_SC_PAGESIZE)
16137# else /* no _SC_PAGESIZE */
16138#  if HAVE_SYS_PARAM_H
16139#   include <sys/param.h>
16140#   ifdef EXEC_PAGESIZE
16141#    define getpagesize() EXEC_PAGESIZE
16142#   else /* no EXEC_PAGESIZE */
16143#    ifdef NBPG
16144#     define getpagesize() NBPG * CLSIZE
16145#     ifndef CLSIZE
16146#      define CLSIZE 1
16147#     endif /* no CLSIZE */
16148#    else /* no NBPG */
16149#     ifdef NBPC
16150#      define getpagesize() NBPC
16151#     else /* no NBPC */
16152#      ifdef PAGESIZE
16153#       define getpagesize() PAGESIZE
16154#      endif /* PAGESIZE */
16155#     endif /* no NBPC */
16156#    endif /* no NBPG */
16157#   endif /* no EXEC_PAGESIZE */
16158#  else /* no HAVE_SYS_PARAM_H */
16159#   define getpagesize() 8192	/* punt totally */
16160#  endif /* no HAVE_SYS_PARAM_H */
16161# endif /* no _SC_PAGESIZE */
16162
16163#endif /* no HAVE_GETPAGESIZE */
16164
16165int
16166main ()
16167{
16168  char *data, *data2, *data3;
16169  int i, pagesize;
16170  int fd;
16171
16172  pagesize = getpagesize ();
16173
16174  /* First, make a file with some known garbage in it. */
16175  data = (char *) malloc (pagesize);
16176  if (!data)
16177    exit (1);
16178  for (i = 0; i < pagesize; ++i)
16179    *(data + i) = rand ();
16180  umask (0);
16181  fd = creat ("conftest.mmap", 0600);
16182  if (fd < 0)
16183    exit (1);
16184  if (write (fd, data, pagesize) != pagesize)
16185    exit (1);
16186  close (fd);
16187
16188  /* Next, try to mmap the file at a fixed address which already has
16189     something else allocated at it.  If we can, also make sure that
16190     we see the same garbage.  */
16191  fd = open ("conftest.mmap", O_RDWR);
16192  if (fd < 0)
16193    exit (1);
16194  data2 = (char *) malloc (2 * pagesize);
16195  if (!data2)
16196    exit (1);
16197  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16198  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16199		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
16200    exit (1);
16201  for (i = 0; i < pagesize; ++i)
16202    if (*(data + i) != *(data2 + i))
16203      exit (1);
16204
16205  /* Finally, make sure that changes to the mapped area do not
16206     percolate back to the file as seen by read().  (This is a bug on
16207     some variants of i386 svr4.0.)  */
16208  for (i = 0; i < pagesize; ++i)
16209    *(data2 + i) = *(data2 + i) + 1;
16210  data3 = (char *) malloc (pagesize);
16211  if (!data3)
16212    exit (1);
16213  if (read (fd, data3, pagesize) != pagesize)
16214    exit (1);
16215  for (i = 0; i < pagesize; ++i)
16216    if (*(data + i) != *(data3 + i))
16217      exit (1);
16218  close (fd);
16219  exit (0);
16220}
16221_ACEOF
16222rm -f conftest$ac_exeext
16223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224  (eval $ac_link) 2>&5
16225  ac_status=$?
16226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229  (eval $ac_try) 2>&5
16230  ac_status=$?
16231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232  (exit $ac_status); }; }; then
16233  ac_cv_func_mmap_fixed_mapped=yes
16234else
16235  echo "$as_me: program exited with status $ac_status" >&5
16236echo "$as_me: failed program was:" >&5
16237sed 's/^/| /' conftest.$ac_ext >&5
16238
16239( exit $ac_status )
16240ac_cv_func_mmap_fixed_mapped=no
16241fi
16242rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16243fi
16244fi
16245echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16246echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16247if test $ac_cv_func_mmap_fixed_mapped = yes; then
16248
16249cat >>confdefs.h <<\_ACEOF
16250#define HAVE_MMAP 1
16251_ACEOF
16252
16253fi
16254rm -f conftest.mmap
16255
16256echo "$as_me:$LINENO: checking for pid_t" >&5
16257echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16258if test "${ac_cv_type_pid_t+set}" = set; then
16259  echo $ECHO_N "(cached) $ECHO_C" >&6
16260else
16261  cat >conftest.$ac_ext <<_ACEOF
16262/* confdefs.h.  */
16263_ACEOF
16264cat confdefs.h >>conftest.$ac_ext
16265cat >>conftest.$ac_ext <<_ACEOF
16266/* end confdefs.h.  */
16267$ac_includes_default
16268int
16269main ()
16270{
16271if ((pid_t *) 0)
16272  return 0;
16273if (sizeof (pid_t))
16274  return 0;
16275  ;
16276  return 0;
16277}
16278_ACEOF
16279rm -f conftest.$ac_objext
16280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16281  (eval $ac_compile) 2>conftest.er1
16282  ac_status=$?
16283  grep -v '^ *+' conftest.er1 >conftest.err
16284  rm -f conftest.er1
16285  cat conftest.err >&5
16286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287  (exit $ac_status); } &&
16288	 { ac_try='test -z "$ac_c_werror_flag"
16289			 || test ! -s conftest.err'
16290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291  (eval $ac_try) 2>&5
16292  ac_status=$?
16293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294  (exit $ac_status); }; } &&
16295	 { ac_try='test -s conftest.$ac_objext'
16296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297  (eval $ac_try) 2>&5
16298  ac_status=$?
16299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300  (exit $ac_status); }; }; then
16301  ac_cv_type_pid_t=yes
16302else
16303  echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
16306ac_cv_type_pid_t=no
16307fi
16308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16309fi
16310echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16311echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16312if test $ac_cv_type_pid_t = yes; then
16313  :
16314else
16315
16316cat >>confdefs.h <<_ACEOF
16317#define pid_t int
16318_ACEOF
16319
16320fi
16321
16322
16323
16324for ac_header in unistd.h vfork.h
16325do
16326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16327if eval "test \"\${$as_ac_Header+set}\" = set"; then
16328  echo "$as_me:$LINENO: checking for $ac_header" >&5
16329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16330if eval "test \"\${$as_ac_Header+set}\" = set"; then
16331  echo $ECHO_N "(cached) $ECHO_C" >&6
16332fi
16333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16335else
16336  # Is the header compilable?
16337echo "$as_me:$LINENO: checking $ac_header usability" >&5
16338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16339cat >conftest.$ac_ext <<_ACEOF
16340/* confdefs.h.  */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h.  */
16345$ac_includes_default
16346#include <$ac_header>
16347_ACEOF
16348rm -f conftest.$ac_objext
16349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350  (eval $ac_compile) 2>conftest.er1
16351  ac_status=$?
16352  grep -v '^ *+' conftest.er1 >conftest.err
16353  rm -f conftest.er1
16354  cat conftest.err >&5
16355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356  (exit $ac_status); } &&
16357	 { ac_try='test -z "$ac_c_werror_flag"
16358			 || test ! -s conftest.err'
16359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360  (eval $ac_try) 2>&5
16361  ac_status=$?
16362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363  (exit $ac_status); }; } &&
16364	 { ac_try='test -s conftest.$ac_objext'
16365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366  (eval $ac_try) 2>&5
16367  ac_status=$?
16368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369  (exit $ac_status); }; }; then
16370  ac_header_compiler=yes
16371else
16372  echo "$as_me: failed program was:" >&5
16373sed 's/^/| /' conftest.$ac_ext >&5
16374
16375ac_header_compiler=no
16376fi
16377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16379echo "${ECHO_T}$ac_header_compiler" >&6
16380
16381# Is the header present?
16382echo "$as_me:$LINENO: checking $ac_header presence" >&5
16383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16384cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h.  */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h.  */
16390#include <$ac_header>
16391_ACEOF
16392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16393  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16394  ac_status=$?
16395  grep -v '^ *+' conftest.er1 >conftest.err
16396  rm -f conftest.er1
16397  cat conftest.err >&5
16398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399  (exit $ac_status); } >/dev/null; then
16400  if test -s conftest.err; then
16401    ac_cpp_err=$ac_c_preproc_warn_flag
16402    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16403  else
16404    ac_cpp_err=
16405  fi
16406else
16407  ac_cpp_err=yes
16408fi
16409if test -z "$ac_cpp_err"; then
16410  ac_header_preproc=yes
16411else
16412  echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415  ac_header_preproc=no
16416fi
16417rm -f conftest.err conftest.$ac_ext
16418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16419echo "${ECHO_T}$ac_header_preproc" >&6
16420
16421# So?  What about this header?
16422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16423  yes:no: )
16424    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16426    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16428    ac_header_preproc=yes
16429    ;;
16430  no:yes:* )
16431    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16433    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16434echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16435    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16437    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16438echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16439    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16441    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16443    (
16444      cat <<\_ASBOX
16445## ------------------------------------------ ##
16446## Report this to the AC_PACKAGE_NAME lists.  ##
16447## ------------------------------------------ ##
16448_ASBOX
16449    ) |
16450      sed "s/^/$as_me: WARNING:     /" >&2
16451    ;;
16452esac
16453echo "$as_me:$LINENO: checking for $ac_header" >&5
16454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16455if eval "test \"\${$as_ac_Header+set}\" = set"; then
16456  echo $ECHO_N "(cached) $ECHO_C" >&6
16457else
16458  eval "$as_ac_Header=\$ac_header_preproc"
16459fi
16460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16462
16463fi
16464if test `eval echo '${'$as_ac_Header'}'` = yes; then
16465  cat >>confdefs.h <<_ACEOF
16466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16467_ACEOF
16468
16469fi
16470
16471done
16472
16473
16474
16475for ac_func in fork vfork
16476do
16477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16478echo "$as_me:$LINENO: checking for $ac_func" >&5
16479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16480if eval "test \"\${$as_ac_var+set}\" = set"; then
16481  echo $ECHO_N "(cached) $ECHO_C" >&6
16482else
16483  cat >conftest.$ac_ext <<_ACEOF
16484/* confdefs.h.  */
16485_ACEOF
16486cat confdefs.h >>conftest.$ac_ext
16487cat >>conftest.$ac_ext <<_ACEOF
16488/* end confdefs.h.  */
16489/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16490   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16491#define $ac_func innocuous_$ac_func
16492
16493/* System header to define __stub macros and hopefully few prototypes,
16494    which can conflict with char $ac_func (); below.
16495    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16496    <limits.h> exists even on freestanding compilers.  */
16497
16498#ifdef __STDC__
16499# include <limits.h>
16500#else
16501# include <assert.h>
16502#endif
16503
16504#undef $ac_func
16505
16506/* Override any gcc2 internal prototype to avoid an error.  */
16507#ifdef __cplusplus
16508extern "C"
16509{
16510#endif
16511/* We use char because int might match the return type of a gcc2
16512   builtin and then its argument prototype would still apply.  */
16513char $ac_func ();
16514/* The GNU C library defines this for functions which it implements
16515    to always fail with ENOSYS.  Some functions are actually named
16516    something starting with __ and the normal name is an alias.  */
16517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16518choke me
16519#else
16520char (*f) () = $ac_func;
16521#endif
16522#ifdef __cplusplus
16523}
16524#endif
16525
16526int
16527main ()
16528{
16529return f != $ac_func;
16530  ;
16531  return 0;
16532}
16533_ACEOF
16534rm -f conftest.$ac_objext conftest$ac_exeext
16535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16536  (eval $ac_link) 2>conftest.er1
16537  ac_status=$?
16538  grep -v '^ *+' conftest.er1 >conftest.err
16539  rm -f conftest.er1
16540  cat conftest.err >&5
16541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542  (exit $ac_status); } &&
16543	 { ac_try='test -z "$ac_c_werror_flag"
16544			 || test ! -s conftest.err'
16545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546  (eval $ac_try) 2>&5
16547  ac_status=$?
16548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549  (exit $ac_status); }; } &&
16550	 { ac_try='test -s conftest$ac_exeext'
16551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552  (eval $ac_try) 2>&5
16553  ac_status=$?
16554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555  (exit $ac_status); }; }; then
16556  eval "$as_ac_var=yes"
16557else
16558  echo "$as_me: failed program was:" >&5
16559sed 's/^/| /' conftest.$ac_ext >&5
16560
16561eval "$as_ac_var=no"
16562fi
16563rm -f conftest.err conftest.$ac_objext \
16564      conftest$ac_exeext conftest.$ac_ext
16565fi
16566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16568if test `eval echo '${'$as_ac_var'}'` = yes; then
16569  cat >>confdefs.h <<_ACEOF
16570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16571_ACEOF
16572
16573fi
16574done
16575
16576if test "x$ac_cv_func_fork" = xyes; then
16577  echo "$as_me:$LINENO: checking for working fork" >&5
16578echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16579if test "${ac_cv_func_fork_works+set}" = set; then
16580  echo $ECHO_N "(cached) $ECHO_C" >&6
16581else
16582  if test "$cross_compiling" = yes; then
16583  ac_cv_func_fork_works=cross
16584else
16585  cat >conftest.$ac_ext <<_ACEOF
16586/* By Ruediger Kuhlmann. */
16587      #include <sys/types.h>
16588      #if HAVE_UNISTD_H
16589      # include <unistd.h>
16590      #endif
16591      /* Some systems only have a dummy stub for fork() */
16592      int main ()
16593      {
16594	if (fork() < 0)
16595	  exit (1);
16596	exit (0);
16597      }
16598_ACEOF
16599rm -f conftest$ac_exeext
16600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601  (eval $ac_link) 2>&5
16602  ac_status=$?
16603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606  (eval $ac_try) 2>&5
16607  ac_status=$?
16608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609  (exit $ac_status); }; }; then
16610  ac_cv_func_fork_works=yes
16611else
16612  echo "$as_me: program exited with status $ac_status" >&5
16613echo "$as_me: failed program was:" >&5
16614sed 's/^/| /' conftest.$ac_ext >&5
16615
16616( exit $ac_status )
16617ac_cv_func_fork_works=no
16618fi
16619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16620fi
16621fi
16622echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16623echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16624
16625else
16626  ac_cv_func_fork_works=$ac_cv_func_fork
16627fi
16628if test "x$ac_cv_func_fork_works" = xcross; then
16629  case $host in
16630    *-*-amigaos* | *-*-msdosdjgpp*)
16631      # Override, as these systems have only a dummy fork() stub
16632      ac_cv_func_fork_works=no
16633      ;;
16634    *)
16635      ac_cv_func_fork_works=yes
16636      ;;
16637  esac
16638  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16639echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16640fi
16641ac_cv_func_vfork_works=$ac_cv_func_vfork
16642if test "x$ac_cv_func_vfork" = xyes; then
16643  echo "$as_me:$LINENO: checking for working vfork" >&5
16644echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16645if test "${ac_cv_func_vfork_works+set}" = set; then
16646  echo $ECHO_N "(cached) $ECHO_C" >&6
16647else
16648  if test "$cross_compiling" = yes; then
16649  ac_cv_func_vfork_works=cross
16650else
16651  cat >conftest.$ac_ext <<_ACEOF
16652/* confdefs.h.  */
16653_ACEOF
16654cat confdefs.h >>conftest.$ac_ext
16655cat >>conftest.$ac_ext <<_ACEOF
16656/* end confdefs.h.  */
16657/* Thanks to Paul Eggert for this test.  */
16658#include <stdio.h>
16659#include <stdlib.h>
16660#include <sys/types.h>
16661#include <sys/stat.h>
16662#include <sys/wait.h>
16663#if HAVE_UNISTD_H
16664# include <unistd.h>
16665#endif
16666#if HAVE_VFORK_H
16667# include <vfork.h>
16668#endif
16669/* On some sparc systems, changes by the child to local and incoming
16670   argument registers are propagated back to the parent.  The compiler
16671   is told about this with #include <vfork.h>, but some compilers
16672   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
16673   static variable whose address is put into a register that is
16674   clobbered by the vfork.  */
16675static void
16676#ifdef __cplusplus
16677sparc_address_test (int arg)
16678# else
16679sparc_address_test (arg) int arg;
16680#endif
16681{
16682  static pid_t child;
16683  if (!child) {
16684    child = vfork ();
16685    if (child < 0) {
16686      perror ("vfork");
16687      _exit(2);
16688    }
16689    if (!child) {
16690      arg = getpid();
16691      write(-1, "", 0);
16692      _exit (arg);
16693    }
16694  }
16695}
16696
16697int
16698main ()
16699{
16700  pid_t parent = getpid ();
16701  pid_t child;
16702
16703  sparc_address_test (0);
16704
16705  child = vfork ();
16706
16707  if (child == 0) {
16708    /* Here is another test for sparc vfork register problems.  This
16709       test uses lots of local variables, at least as many local
16710       variables as main has allocated so far including compiler
16711       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
16712       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
16713       reuse the register of parent for one of the local variables,
16714       since it will think that parent can't possibly be used any more
16715       in this routine.  Assigning to the local variable will thus
16716       munge parent in the parent process.  */
16717    pid_t
16718      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16719      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16720    /* Convince the compiler that p..p7 are live; otherwise, it might
16721       use the same hardware register for all 8 local variables.  */
16722    if (p != p1 || p != p2 || p != p3 || p != p4
16723	|| p != p5 || p != p6 || p != p7)
16724      _exit(1);
16725
16726    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16727       from child file descriptors.  If the child closes a descriptor
16728       before it execs or exits, this munges the parent's descriptor
16729       as well.  Test for this by closing stdout in the child.  */
16730    _exit(close(fileno(stdout)) != 0);
16731  } else {
16732    int status;
16733    struct stat st;
16734
16735    while (wait(&status) != child)
16736      ;
16737    exit(
16738	 /* Was there some problem with vforking?  */
16739	 child < 0
16740
16741	 /* Did the child fail?  (This shouldn't happen.)  */
16742	 || status
16743
16744	 /* Did the vfork/compiler bug occur?  */
16745	 || parent != getpid()
16746
16747	 /* Did the file descriptor bug occur?  */
16748	 || fstat(fileno(stdout), &st) != 0
16749	 );
16750  }
16751}
16752_ACEOF
16753rm -f conftest$ac_exeext
16754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16755  (eval $ac_link) 2>&5
16756  ac_status=$?
16757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760  (eval $ac_try) 2>&5
16761  ac_status=$?
16762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763  (exit $ac_status); }; }; then
16764  ac_cv_func_vfork_works=yes
16765else
16766  echo "$as_me: program exited with status $ac_status" >&5
16767echo "$as_me: failed program was:" >&5
16768sed 's/^/| /' conftest.$ac_ext >&5
16769
16770( exit $ac_status )
16771ac_cv_func_vfork_works=no
16772fi
16773rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16774fi
16775fi
16776echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16777echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16778
16779fi;
16780if test "x$ac_cv_func_fork_works" = xcross; then
16781  ac_cv_func_vfork_works=$ac_cv_func_vfork
16782  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16783echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16784fi
16785
16786if test "x$ac_cv_func_vfork_works" = xyes; then
16787
16788cat >>confdefs.h <<\_ACEOF
16789#define HAVE_WORKING_VFORK 1
16790_ACEOF
16791
16792else
16793
16794cat >>confdefs.h <<\_ACEOF
16795#define vfork fork
16796_ACEOF
16797
16798fi
16799if test "x$ac_cv_func_fork_works" = xyes; then
16800
16801cat >>confdefs.h <<\_ACEOF
16802#define HAVE_WORKING_FORK 1
16803_ACEOF
16804
16805fi
16806
16807
16808
16809for ac_func in canonicalize_file_name realpath
16810do
16811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16812echo "$as_me:$LINENO: checking for $ac_func" >&5
16813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16814if eval "test \"\${$as_ac_var+set}\" = set"; then
16815  echo $ECHO_N "(cached) $ECHO_C" >&6
16816else
16817  cat >conftest.$ac_ext <<_ACEOF
16818/* confdefs.h.  */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
16822/* end confdefs.h.  */
16823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16824   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16825#define $ac_func innocuous_$ac_func
16826
16827/* System header to define __stub macros and hopefully few prototypes,
16828    which can conflict with char $ac_func (); below.
16829    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16830    <limits.h> exists even on freestanding compilers.  */
16831
16832#ifdef __STDC__
16833# include <limits.h>
16834#else
16835# include <assert.h>
16836#endif
16837
16838#undef $ac_func
16839
16840/* Override any gcc2 internal prototype to avoid an error.  */
16841#ifdef __cplusplus
16842extern "C"
16843{
16844#endif
16845/* We use char because int might match the return type of a gcc2
16846   builtin and then its argument prototype would still apply.  */
16847char $ac_func ();
16848/* The GNU C library defines this for functions which it implements
16849    to always fail with ENOSYS.  Some functions are actually named
16850    something starting with __ and the normal name is an alias.  */
16851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16852choke me
16853#else
16854char (*f) () = $ac_func;
16855#endif
16856#ifdef __cplusplus
16857}
16858#endif
16859
16860int
16861main ()
16862{
16863return f != $ac_func;
16864  ;
16865  return 0;
16866}
16867_ACEOF
16868rm -f conftest.$ac_objext conftest$ac_exeext
16869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16870  (eval $ac_link) 2>conftest.er1
16871  ac_status=$?
16872  grep -v '^ *+' conftest.er1 >conftest.err
16873  rm -f conftest.er1
16874  cat conftest.err >&5
16875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876  (exit $ac_status); } &&
16877	 { ac_try='test -z "$ac_c_werror_flag"
16878			 || test ! -s conftest.err'
16879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880  (eval $ac_try) 2>&5
16881  ac_status=$?
16882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883  (exit $ac_status); }; } &&
16884	 { ac_try='test -s conftest$ac_exeext'
16885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886  (eval $ac_try) 2>&5
16887  ac_status=$?
16888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889  (exit $ac_status); }; }; then
16890  eval "$as_ac_var=yes"
16891else
16892  echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895eval "$as_ac_var=no"
16896fi
16897rm -f conftest.err conftest.$ac_objext \
16898      conftest$ac_exeext conftest.$ac_ext
16899fi
16900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16901echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16902if test `eval echo '${'$as_ac_var'}'` = yes; then
16903  cat >>confdefs.h <<_ACEOF
16904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16905_ACEOF
16906
16907fi
16908done
16909
16910
16911for ac_func in getrusage
16912do
16913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16914echo "$as_me:$LINENO: checking for $ac_func" >&5
16915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16916if eval "test \"\${$as_ac_var+set}\" = set"; then
16917  echo $ECHO_N "(cached) $ECHO_C" >&6
16918else
16919  cat >conftest.$ac_ext <<_ACEOF
16920/* confdefs.h.  */
16921_ACEOF
16922cat confdefs.h >>conftest.$ac_ext
16923cat >>conftest.$ac_ext <<_ACEOF
16924/* end confdefs.h.  */
16925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16926   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16927#define $ac_func innocuous_$ac_func
16928
16929/* System header to define __stub macros and hopefully few prototypes,
16930    which can conflict with char $ac_func (); below.
16931    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16932    <limits.h> exists even on freestanding compilers.  */
16933
16934#ifdef __STDC__
16935# include <limits.h>
16936#else
16937# include <assert.h>
16938#endif
16939
16940#undef $ac_func
16941
16942/* Override any gcc2 internal prototype to avoid an error.  */
16943#ifdef __cplusplus
16944extern "C"
16945{
16946#endif
16947/* We use char because int might match the return type of a gcc2
16948   builtin and then its argument prototype would still apply.  */
16949char $ac_func ();
16950/* The GNU C library defines this for functions which it implements
16951    to always fail with ENOSYS.  Some functions are actually named
16952    something starting with __ and the normal name is an alias.  */
16953#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16954choke me
16955#else
16956char (*f) () = $ac_func;
16957#endif
16958#ifdef __cplusplus
16959}
16960#endif
16961
16962int
16963main ()
16964{
16965return f != $ac_func;
16966  ;
16967  return 0;
16968}
16969_ACEOF
16970rm -f conftest.$ac_objext conftest$ac_exeext
16971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972  (eval $ac_link) 2>conftest.er1
16973  ac_status=$?
16974  grep -v '^ *+' conftest.er1 >conftest.err
16975  rm -f conftest.er1
16976  cat conftest.err >&5
16977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978  (exit $ac_status); } &&
16979	 { ac_try='test -z "$ac_c_werror_flag"
16980			 || test ! -s conftest.err'
16981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982  (eval $ac_try) 2>&5
16983  ac_status=$?
16984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985  (exit $ac_status); }; } &&
16986	 { ac_try='test -s conftest$ac_exeext'
16987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988  (eval $ac_try) 2>&5
16989  ac_status=$?
16990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991  (exit $ac_status); }; }; then
16992  eval "$as_ac_var=yes"
16993else
16994  echo "$as_me: failed program was:" >&5
16995sed 's/^/| /' conftest.$ac_ext >&5
16996
16997eval "$as_ac_var=no"
16998fi
16999rm -f conftest.err conftest.$ac_objext \
17000      conftest$ac_exeext conftest.$ac_ext
17001fi
17002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17004if test `eval echo '${'$as_ac_var'}'` = yes; then
17005  cat >>confdefs.h <<_ACEOF
17006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17007_ACEOF
17008
17009fi
17010done
17011
17012
17013
17014for ac_func in getuid getgid
17015do
17016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17017echo "$as_me:$LINENO: checking for $ac_func" >&5
17018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17019if eval "test \"\${$as_ac_var+set}\" = set"; then
17020  echo $ECHO_N "(cached) $ECHO_C" >&6
17021else
17022  cat >conftest.$ac_ext <<_ACEOF
17023/* confdefs.h.  */
17024_ACEOF
17025cat confdefs.h >>conftest.$ac_ext
17026cat >>conftest.$ac_ext <<_ACEOF
17027/* end confdefs.h.  */
17028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17029   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17030#define $ac_func innocuous_$ac_func
17031
17032/* System header to define __stub macros and hopefully few prototypes,
17033    which can conflict with char $ac_func (); below.
17034    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035    <limits.h> exists even on freestanding compilers.  */
17036
17037#ifdef __STDC__
17038# include <limits.h>
17039#else
17040# include <assert.h>
17041#endif
17042
17043#undef $ac_func
17044
17045/* Override any gcc2 internal prototype to avoid an error.  */
17046#ifdef __cplusplus
17047extern "C"
17048{
17049#endif
17050/* We use char because int might match the return type of a gcc2
17051   builtin and then its argument prototype would still apply.  */
17052char $ac_func ();
17053/* The GNU C library defines this for functions which it implements
17054    to always fail with ENOSYS.  Some functions are actually named
17055    something starting with __ and the normal name is an alias.  */
17056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17057choke me
17058#else
17059char (*f) () = $ac_func;
17060#endif
17061#ifdef __cplusplus
17062}
17063#endif
17064
17065int
17066main ()
17067{
17068return f != $ac_func;
17069  ;
17070  return 0;
17071}
17072_ACEOF
17073rm -f conftest.$ac_objext conftest$ac_exeext
17074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17075  (eval $ac_link) 2>conftest.er1
17076  ac_status=$?
17077  grep -v '^ *+' conftest.er1 >conftest.err
17078  rm -f conftest.er1
17079  cat conftest.err >&5
17080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081  (exit $ac_status); } &&
17082	 { ac_try='test -z "$ac_c_werror_flag"
17083			 || test ! -s conftest.err'
17084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085  (eval $ac_try) 2>&5
17086  ac_status=$?
17087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088  (exit $ac_status); }; } &&
17089	 { ac_try='test -s conftest$ac_exeext'
17090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091  (eval $ac_try) 2>&5
17092  ac_status=$?
17093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094  (exit $ac_status); }; }; then
17095  eval "$as_ac_var=yes"
17096else
17097  echo "$as_me: failed program was:" >&5
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
17100eval "$as_ac_var=no"
17101fi
17102rm -f conftest.err conftest.$ac_objext \
17103      conftest$ac_exeext conftest.$ac_ext
17104fi
17105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17106echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17107if test `eval echo '${'$as_ac_var'}'` = yes; then
17108  cat >>confdefs.h <<_ACEOF
17109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17110_ACEOF
17111
17112fi
17113done
17114
17115
17116for ac_func in poll
17117do
17118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17119echo "$as_me:$LINENO: checking for $ac_func" >&5
17120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17121if eval "test \"\${$as_ac_var+set}\" = set"; then
17122  echo $ECHO_N "(cached) $ECHO_C" >&6
17123else
17124  cat >conftest.$ac_ext <<_ACEOF
17125/* confdefs.h.  */
17126_ACEOF
17127cat confdefs.h >>conftest.$ac_ext
17128cat >>conftest.$ac_ext <<_ACEOF
17129/* end confdefs.h.  */
17130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17131   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17132#define $ac_func innocuous_$ac_func
17133
17134/* System header to define __stub macros and hopefully few prototypes,
17135    which can conflict with char $ac_func (); below.
17136    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17137    <limits.h> exists even on freestanding compilers.  */
17138
17139#ifdef __STDC__
17140# include <limits.h>
17141#else
17142# include <assert.h>
17143#endif
17144
17145#undef $ac_func
17146
17147/* Override any gcc2 internal prototype to avoid an error.  */
17148#ifdef __cplusplus
17149extern "C"
17150{
17151#endif
17152/* We use char because int might match the return type of a gcc2
17153   builtin and then its argument prototype would still apply.  */
17154char $ac_func ();
17155/* The GNU C library defines this for functions which it implements
17156    to always fail with ENOSYS.  Some functions are actually named
17157    something starting with __ and the normal name is an alias.  */
17158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17159choke me
17160#else
17161char (*f) () = $ac_func;
17162#endif
17163#ifdef __cplusplus
17164}
17165#endif
17166
17167int
17168main ()
17169{
17170return f != $ac_func;
17171  ;
17172  return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext conftest$ac_exeext
17176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177  (eval $ac_link) 2>conftest.er1
17178  ac_status=$?
17179  grep -v '^ *+' conftest.er1 >conftest.err
17180  rm -f conftest.er1
17181  cat conftest.err >&5
17182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183  (exit $ac_status); } &&
17184	 { ac_try='test -z "$ac_c_werror_flag"
17185			 || test ! -s conftest.err'
17186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187  (eval $ac_try) 2>&5
17188  ac_status=$?
17189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190  (exit $ac_status); }; } &&
17191	 { ac_try='test -s conftest$ac_exeext'
17192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193  (eval $ac_try) 2>&5
17194  ac_status=$?
17195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196  (exit $ac_status); }; }; then
17197  eval "$as_ac_var=yes"
17198else
17199  echo "$as_me: failed program was:" >&5
17200sed 's/^/| /' conftest.$ac_ext >&5
17201
17202eval "$as_ac_var=no"
17203fi
17204rm -f conftest.err conftest.$ac_objext \
17205      conftest$ac_exeext conftest.$ac_ext
17206fi
17207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17209if test `eval echo '${'$as_ac_var'}'` = yes; then
17210  cat >>confdefs.h <<_ACEOF
17211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17212_ACEOF
17213
17214fi
17215done
17216
17217
17218for ac_func in pread64
17219do
17220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221echo "$as_me:$LINENO: checking for $ac_func" >&5
17222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17223if eval "test \"\${$as_ac_var+set}\" = set"; then
17224  echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226  cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h.  */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h.  */
17232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17234#define $ac_func innocuous_$ac_func
17235
17236/* System header to define __stub macros and hopefully few prototypes,
17237    which can conflict with char $ac_func (); below.
17238    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239    <limits.h> exists even on freestanding compilers.  */
17240
17241#ifdef __STDC__
17242# include <limits.h>
17243#else
17244# include <assert.h>
17245#endif
17246
17247#undef $ac_func
17248
17249/* Override any gcc2 internal prototype to avoid an error.  */
17250#ifdef __cplusplus
17251extern "C"
17252{
17253#endif
17254/* We use char because int might match the return type of a gcc2
17255   builtin and then its argument prototype would still apply.  */
17256char $ac_func ();
17257/* The GNU C library defines this for functions which it implements
17258    to always fail with ENOSYS.  Some functions are actually named
17259    something starting with __ and the normal name is an alias.  */
17260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17261choke me
17262#else
17263char (*f) () = $ac_func;
17264#endif
17265#ifdef __cplusplus
17266}
17267#endif
17268
17269int
17270main ()
17271{
17272return f != $ac_func;
17273  ;
17274  return 0;
17275}
17276_ACEOF
17277rm -f conftest.$ac_objext conftest$ac_exeext
17278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279  (eval $ac_link) 2>conftest.er1
17280  ac_status=$?
17281  grep -v '^ *+' conftest.er1 >conftest.err
17282  rm -f conftest.er1
17283  cat conftest.err >&5
17284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285  (exit $ac_status); } &&
17286	 { ac_try='test -z "$ac_c_werror_flag"
17287			 || test ! -s conftest.err'
17288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289  (eval $ac_try) 2>&5
17290  ac_status=$?
17291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292  (exit $ac_status); }; } &&
17293	 { ac_try='test -s conftest$ac_exeext'
17294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295  (eval $ac_try) 2>&5
17296  ac_status=$?
17297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298  (exit $ac_status); }; }; then
17299  eval "$as_ac_var=yes"
17300else
17301  echo "$as_me: failed program was:" >&5
17302sed 's/^/| /' conftest.$ac_ext >&5
17303
17304eval "$as_ac_var=no"
17305fi
17306rm -f conftest.err conftest.$ac_objext \
17307      conftest$ac_exeext conftest.$ac_ext
17308fi
17309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17311if test `eval echo '${'$as_ac_var'}'` = yes; then
17312  cat >>confdefs.h <<_ACEOF
17313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17314_ACEOF
17315
17316fi
17317done
17318
17319
17320for ac_func in sbrk
17321do
17322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17323echo "$as_me:$LINENO: checking for $ac_func" >&5
17324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17325if eval "test \"\${$as_ac_var+set}\" = set"; then
17326  echo $ECHO_N "(cached) $ECHO_C" >&6
17327else
17328  cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h.  */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h.  */
17334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17335   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17336#define $ac_func innocuous_$ac_func
17337
17338/* System header to define __stub macros and hopefully few prototypes,
17339    which can conflict with char $ac_func (); below.
17340    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17341    <limits.h> exists even on freestanding compilers.  */
17342
17343#ifdef __STDC__
17344# include <limits.h>
17345#else
17346# include <assert.h>
17347#endif
17348
17349#undef $ac_func
17350
17351/* Override any gcc2 internal prototype to avoid an error.  */
17352#ifdef __cplusplus
17353extern "C"
17354{
17355#endif
17356/* We use char because int might match the return type of a gcc2
17357   builtin and then its argument prototype would still apply.  */
17358char $ac_func ();
17359/* The GNU C library defines this for functions which it implements
17360    to always fail with ENOSYS.  Some functions are actually named
17361    something starting with __ and the normal name is an alias.  */
17362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17363choke me
17364#else
17365char (*f) () = $ac_func;
17366#endif
17367#ifdef __cplusplus
17368}
17369#endif
17370
17371int
17372main ()
17373{
17374return f != $ac_func;
17375  ;
17376  return 0;
17377}
17378_ACEOF
17379rm -f conftest.$ac_objext conftest$ac_exeext
17380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381  (eval $ac_link) 2>conftest.er1
17382  ac_status=$?
17383  grep -v '^ *+' conftest.er1 >conftest.err
17384  rm -f conftest.er1
17385  cat conftest.err >&5
17386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387  (exit $ac_status); } &&
17388	 { ac_try='test -z "$ac_c_werror_flag"
17389			 || test ! -s conftest.err'
17390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391  (eval $ac_try) 2>&5
17392  ac_status=$?
17393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394  (exit $ac_status); }; } &&
17395	 { ac_try='test -s conftest$ac_exeext'
17396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397  (eval $ac_try) 2>&5
17398  ac_status=$?
17399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400  (exit $ac_status); }; }; then
17401  eval "$as_ac_var=yes"
17402else
17403  echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406eval "$as_ac_var=no"
17407fi
17408rm -f conftest.err conftest.$ac_objext \
17409      conftest$ac_exeext conftest.$ac_ext
17410fi
17411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17413if test `eval echo '${'$as_ac_var'}'` = yes; then
17414  cat >>confdefs.h <<_ACEOF
17415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17416_ACEOF
17417
17418fi
17419done
17420
17421
17422
17423for ac_func in setpgid setpgrp
17424do
17425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17426echo "$as_me:$LINENO: checking for $ac_func" >&5
17427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17428if eval "test \"\${$as_ac_var+set}\" = set"; then
17429  echo $ECHO_N "(cached) $ECHO_C" >&6
17430else
17431  cat >conftest.$ac_ext <<_ACEOF
17432/* confdefs.h.  */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h.  */
17437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17438   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17439#define $ac_func innocuous_$ac_func
17440
17441/* System header to define __stub macros and hopefully few prototypes,
17442    which can conflict with char $ac_func (); below.
17443    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17444    <limits.h> exists even on freestanding compilers.  */
17445
17446#ifdef __STDC__
17447# include <limits.h>
17448#else
17449# include <assert.h>
17450#endif
17451
17452#undef $ac_func
17453
17454/* Override any gcc2 internal prototype to avoid an error.  */
17455#ifdef __cplusplus
17456extern "C"
17457{
17458#endif
17459/* We use char because int might match the return type of a gcc2
17460   builtin and then its argument prototype would still apply.  */
17461char $ac_func ();
17462/* The GNU C library defines this for functions which it implements
17463    to always fail with ENOSYS.  Some functions are actually named
17464    something starting with __ and the normal name is an alias.  */
17465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17466choke me
17467#else
17468char (*f) () = $ac_func;
17469#endif
17470#ifdef __cplusplus
17471}
17472#endif
17473
17474int
17475main ()
17476{
17477return f != $ac_func;
17478  ;
17479  return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext conftest$ac_exeext
17483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484  (eval $ac_link) 2>conftest.er1
17485  ac_status=$?
17486  grep -v '^ *+' conftest.er1 >conftest.err
17487  rm -f conftest.er1
17488  cat conftest.err >&5
17489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490  (exit $ac_status); } &&
17491	 { ac_try='test -z "$ac_c_werror_flag"
17492			 || test ! -s conftest.err'
17493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494  (eval $ac_try) 2>&5
17495  ac_status=$?
17496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497  (exit $ac_status); }; } &&
17498	 { ac_try='test -s conftest$ac_exeext'
17499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500  (eval $ac_try) 2>&5
17501  ac_status=$?
17502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503  (exit $ac_status); }; }; then
17504  eval "$as_ac_var=yes"
17505else
17506  echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
17509eval "$as_ac_var=no"
17510fi
17511rm -f conftest.err conftest.$ac_objext \
17512      conftest$ac_exeext conftest.$ac_ext
17513fi
17514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17516if test `eval echo '${'$as_ac_var'}'` = yes; then
17517  cat >>confdefs.h <<_ACEOF
17518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17519_ACEOF
17520
17521fi
17522done
17523
17524
17525
17526
17527for ac_func in sigaction sigprocmask sigsetmask
17528do
17529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17530echo "$as_me:$LINENO: checking for $ac_func" >&5
17531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17532if eval "test \"\${$as_ac_var+set}\" = set"; then
17533  echo $ECHO_N "(cached) $ECHO_C" >&6
17534else
17535  cat >conftest.$ac_ext <<_ACEOF
17536/* confdefs.h.  */
17537_ACEOF
17538cat confdefs.h >>conftest.$ac_ext
17539cat >>conftest.$ac_ext <<_ACEOF
17540/* end confdefs.h.  */
17541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17542   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17543#define $ac_func innocuous_$ac_func
17544
17545/* System header to define __stub macros and hopefully few prototypes,
17546    which can conflict with char $ac_func (); below.
17547    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17548    <limits.h> exists even on freestanding compilers.  */
17549
17550#ifdef __STDC__
17551# include <limits.h>
17552#else
17553# include <assert.h>
17554#endif
17555
17556#undef $ac_func
17557
17558/* Override any gcc2 internal prototype to avoid an error.  */
17559#ifdef __cplusplus
17560extern "C"
17561{
17562#endif
17563/* We use char because int might match the return type of a gcc2
17564   builtin and then its argument prototype would still apply.  */
17565char $ac_func ();
17566/* The GNU C library defines this for functions which it implements
17567    to always fail with ENOSYS.  Some functions are actually named
17568    something starting with __ and the normal name is an alias.  */
17569#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17570choke me
17571#else
17572char (*f) () = $ac_func;
17573#endif
17574#ifdef __cplusplus
17575}
17576#endif
17577
17578int
17579main ()
17580{
17581return f != $ac_func;
17582  ;
17583  return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext conftest$ac_exeext
17587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588  (eval $ac_link) 2>conftest.er1
17589  ac_status=$?
17590  grep -v '^ *+' conftest.er1 >conftest.err
17591  rm -f conftest.er1
17592  cat conftest.err >&5
17593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594  (exit $ac_status); } &&
17595	 { ac_try='test -z "$ac_c_werror_flag"
17596			 || test ! -s conftest.err'
17597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598  (eval $ac_try) 2>&5
17599  ac_status=$?
17600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601  (exit $ac_status); }; } &&
17602	 { ac_try='test -s conftest$ac_exeext'
17603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604  (eval $ac_try) 2>&5
17605  ac_status=$?
17606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607  (exit $ac_status); }; }; then
17608  eval "$as_ac_var=yes"
17609else
17610  echo "$as_me: failed program was:" >&5
17611sed 's/^/| /' conftest.$ac_ext >&5
17612
17613eval "$as_ac_var=no"
17614fi
17615rm -f conftest.err conftest.$ac_objext \
17616      conftest$ac_exeext conftest.$ac_ext
17617fi
17618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17620if test `eval echo '${'$as_ac_var'}'` = yes; then
17621  cat >>confdefs.h <<_ACEOF
17622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17623_ACEOF
17624
17625fi
17626done
17627
17628
17629for ac_func in socketpair
17630do
17631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17632echo "$as_me:$LINENO: checking for $ac_func" >&5
17633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17634if eval "test \"\${$as_ac_var+set}\" = set"; then
17635  echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637  cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h.  */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h.  */
17643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17644   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17645#define $ac_func innocuous_$ac_func
17646
17647/* System header to define __stub macros and hopefully few prototypes,
17648    which can conflict with char $ac_func (); below.
17649    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17650    <limits.h> exists even on freestanding compilers.  */
17651
17652#ifdef __STDC__
17653# include <limits.h>
17654#else
17655# include <assert.h>
17656#endif
17657
17658#undef $ac_func
17659
17660/* Override any gcc2 internal prototype to avoid an error.  */
17661#ifdef __cplusplus
17662extern "C"
17663{
17664#endif
17665/* We use char because int might match the return type of a gcc2
17666   builtin and then its argument prototype would still apply.  */
17667char $ac_func ();
17668/* The GNU C library defines this for functions which it implements
17669    to always fail with ENOSYS.  Some functions are actually named
17670    something starting with __ and the normal name is an alias.  */
17671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17672choke me
17673#else
17674char (*f) () = $ac_func;
17675#endif
17676#ifdef __cplusplus
17677}
17678#endif
17679
17680int
17681main ()
17682{
17683return f != $ac_func;
17684  ;
17685  return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext conftest$ac_exeext
17689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17690  (eval $ac_link) 2>conftest.er1
17691  ac_status=$?
17692  grep -v '^ *+' conftest.er1 >conftest.err
17693  rm -f conftest.er1
17694  cat conftest.err >&5
17695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696  (exit $ac_status); } &&
17697	 { ac_try='test -z "$ac_c_werror_flag"
17698			 || test ! -s conftest.err'
17699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700  (eval $ac_try) 2>&5
17701  ac_status=$?
17702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703  (exit $ac_status); }; } &&
17704	 { ac_try='test -s conftest$ac_exeext'
17705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706  (eval $ac_try) 2>&5
17707  ac_status=$?
17708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709  (exit $ac_status); }; }; then
17710  eval "$as_ac_var=yes"
17711else
17712  echo "$as_me: failed program was:" >&5
17713sed 's/^/| /' conftest.$ac_ext >&5
17714
17715eval "$as_ac_var=no"
17716fi
17717rm -f conftest.err conftest.$ac_objext \
17718      conftest$ac_exeext conftest.$ac_ext
17719fi
17720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17722if test `eval echo '${'$as_ac_var'}'` = yes; then
17723  cat >>confdefs.h <<_ACEOF
17724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17725_ACEOF
17726
17727fi
17728done
17729
17730
17731for ac_func in syscall
17732do
17733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17734echo "$as_me:$LINENO: checking for $ac_func" >&5
17735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17736if eval "test \"\${$as_ac_var+set}\" = set"; then
17737  echo $ECHO_N "(cached) $ECHO_C" >&6
17738else
17739  cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h.  */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h.  */
17745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17747#define $ac_func innocuous_$ac_func
17748
17749/* System header to define __stub macros and hopefully few prototypes,
17750    which can conflict with char $ac_func (); below.
17751    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17752    <limits.h> exists even on freestanding compilers.  */
17753
17754#ifdef __STDC__
17755# include <limits.h>
17756#else
17757# include <assert.h>
17758#endif
17759
17760#undef $ac_func
17761
17762/* Override any gcc2 internal prototype to avoid an error.  */
17763#ifdef __cplusplus
17764extern "C"
17765{
17766#endif
17767/* We use char because int might match the return type of a gcc2
17768   builtin and then its argument prototype would still apply.  */
17769char $ac_func ();
17770/* The GNU C library defines this for functions which it implements
17771    to always fail with ENOSYS.  Some functions are actually named
17772    something starting with __ and the normal name is an alias.  */
17773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17774choke me
17775#else
17776char (*f) () = $ac_func;
17777#endif
17778#ifdef __cplusplus
17779}
17780#endif
17781
17782int
17783main ()
17784{
17785return f != $ac_func;
17786  ;
17787  return 0;
17788}
17789_ACEOF
17790rm -f conftest.$ac_objext conftest$ac_exeext
17791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17792  (eval $ac_link) 2>conftest.er1
17793  ac_status=$?
17794  grep -v '^ *+' conftest.er1 >conftest.err
17795  rm -f conftest.er1
17796  cat conftest.err >&5
17797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798  (exit $ac_status); } &&
17799	 { ac_try='test -z "$ac_c_werror_flag"
17800			 || test ! -s conftest.err'
17801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802  (eval $ac_try) 2>&5
17803  ac_status=$?
17804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805  (exit $ac_status); }; } &&
17806	 { ac_try='test -s conftest$ac_exeext'
17807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808  (eval $ac_try) 2>&5
17809  ac_status=$?
17810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811  (exit $ac_status); }; }; then
17812  eval "$as_ac_var=yes"
17813else
17814  echo "$as_me: failed program was:" >&5
17815sed 's/^/| /' conftest.$ac_ext >&5
17816
17817eval "$as_ac_var=no"
17818fi
17819rm -f conftest.err conftest.$ac_objext \
17820      conftest$ac_exeext conftest.$ac_ext
17821fi
17822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17823echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17824if test `eval echo '${'$as_ac_var'}'` = yes; then
17825  cat >>confdefs.h <<_ACEOF
17826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17827_ACEOF
17828
17829fi
17830done
17831
17832
17833for ac_func in ttrace
17834do
17835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17836echo "$as_me:$LINENO: checking for $ac_func" >&5
17837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17838if eval "test \"\${$as_ac_var+set}\" = set"; then
17839  echo $ECHO_N "(cached) $ECHO_C" >&6
17840else
17841  cat >conftest.$ac_ext <<_ACEOF
17842/* confdefs.h.  */
17843_ACEOF
17844cat confdefs.h >>conftest.$ac_ext
17845cat >>conftest.$ac_ext <<_ACEOF
17846/* end confdefs.h.  */
17847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17848   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17849#define $ac_func innocuous_$ac_func
17850
17851/* System header to define __stub macros and hopefully few prototypes,
17852    which can conflict with char $ac_func (); below.
17853    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17854    <limits.h> exists even on freestanding compilers.  */
17855
17856#ifdef __STDC__
17857# include <limits.h>
17858#else
17859# include <assert.h>
17860#endif
17861
17862#undef $ac_func
17863
17864/* Override any gcc2 internal prototype to avoid an error.  */
17865#ifdef __cplusplus
17866extern "C"
17867{
17868#endif
17869/* We use char because int might match the return type of a gcc2
17870   builtin and then its argument prototype would still apply.  */
17871char $ac_func ();
17872/* The GNU C library defines this for functions which it implements
17873    to always fail with ENOSYS.  Some functions are actually named
17874    something starting with __ and the normal name is an alias.  */
17875#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17876choke me
17877#else
17878char (*f) () = $ac_func;
17879#endif
17880#ifdef __cplusplus
17881}
17882#endif
17883
17884int
17885main ()
17886{
17887return f != $ac_func;
17888  ;
17889  return 0;
17890}
17891_ACEOF
17892rm -f conftest.$ac_objext conftest$ac_exeext
17893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17894  (eval $ac_link) 2>conftest.er1
17895  ac_status=$?
17896  grep -v '^ *+' conftest.er1 >conftest.err
17897  rm -f conftest.er1
17898  cat conftest.err >&5
17899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900  (exit $ac_status); } &&
17901	 { ac_try='test -z "$ac_c_werror_flag"
17902			 || test ! -s conftest.err'
17903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904  (eval $ac_try) 2>&5
17905  ac_status=$?
17906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907  (exit $ac_status); }; } &&
17908	 { ac_try='test -s conftest$ac_exeext'
17909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910  (eval $ac_try) 2>&5
17911  ac_status=$?
17912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913  (exit $ac_status); }; }; then
17914  eval "$as_ac_var=yes"
17915else
17916  echo "$as_me: failed program was:" >&5
17917sed 's/^/| /' conftest.$ac_ext >&5
17918
17919eval "$as_ac_var=no"
17920fi
17921rm -f conftest.err conftest.$ac_objext \
17922      conftest$ac_exeext conftest.$ac_ext
17923fi
17924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17926if test `eval echo '${'$as_ac_var'}'` = yes; then
17927  cat >>confdefs.h <<_ACEOF
17928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17929_ACEOF
17930
17931fi
17932done
17933
17934
17935for ac_func in wborder
17936do
17937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17938echo "$as_me:$LINENO: checking for $ac_func" >&5
17939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17940if eval "test \"\${$as_ac_var+set}\" = set"; then
17941  echo $ECHO_N "(cached) $ECHO_C" >&6
17942else
17943  cat >conftest.$ac_ext <<_ACEOF
17944/* confdefs.h.  */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h.  */
17949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17950   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17951#define $ac_func innocuous_$ac_func
17952
17953/* System header to define __stub macros and hopefully few prototypes,
17954    which can conflict with char $ac_func (); below.
17955    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17956    <limits.h> exists even on freestanding compilers.  */
17957
17958#ifdef __STDC__
17959# include <limits.h>
17960#else
17961# include <assert.h>
17962#endif
17963
17964#undef $ac_func
17965
17966/* Override any gcc2 internal prototype to avoid an error.  */
17967#ifdef __cplusplus
17968extern "C"
17969{
17970#endif
17971/* We use char because int might match the return type of a gcc2
17972   builtin and then its argument prototype would still apply.  */
17973char $ac_func ();
17974/* The GNU C library defines this for functions which it implements
17975    to always fail with ENOSYS.  Some functions are actually named
17976    something starting with __ and the normal name is an alias.  */
17977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17978choke me
17979#else
17980char (*f) () = $ac_func;
17981#endif
17982#ifdef __cplusplus
17983}
17984#endif
17985
17986int
17987main ()
17988{
17989return f != $ac_func;
17990  ;
17991  return 0;
17992}
17993_ACEOF
17994rm -f conftest.$ac_objext conftest$ac_exeext
17995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996  (eval $ac_link) 2>conftest.er1
17997  ac_status=$?
17998  grep -v '^ *+' conftest.er1 >conftest.err
17999  rm -f conftest.er1
18000  cat conftest.err >&5
18001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002  (exit $ac_status); } &&
18003	 { ac_try='test -z "$ac_c_werror_flag"
18004			 || test ! -s conftest.err'
18005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006  (eval $ac_try) 2>&5
18007  ac_status=$?
18008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009  (exit $ac_status); }; } &&
18010	 { ac_try='test -s conftest$ac_exeext'
18011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012  (eval $ac_try) 2>&5
18013  ac_status=$?
18014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015  (exit $ac_status); }; }; then
18016  eval "$as_ac_var=yes"
18017else
18018  echo "$as_me: failed program was:" >&5
18019sed 's/^/| /' conftest.$ac_ext >&5
18020
18021eval "$as_ac_var=no"
18022fi
18023rm -f conftest.err conftest.$ac_objext \
18024      conftest$ac_exeext conftest.$ac_ext
18025fi
18026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18028if test `eval echo '${'$as_ac_var'}'` = yes; then
18029  cat >>confdefs.h <<_ACEOF
18030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18031_ACEOF
18032
18033fi
18034done
18035
18036
18037# Check the return and argument types of ptrace.  No canned test for
18038# this, so roll our own.
18039gdb_ptrace_headers='
18040#if HAVE_SYS_TYPES_H
18041# include <sys/types.h>
18042#endif
18043#if HAVE_SYS_PTRACE_H
18044# include <sys/ptrace.h>
18045#endif
18046#if HAVE_UNISTD_H
18047# include <unistd.h>
18048#endif
18049'
18050# There is no point in checking if we don't have a prototype.
18051echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18052echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
18053if test "${ac_cv_have_decl_ptrace+set}" = set; then
18054  echo $ECHO_N "(cached) $ECHO_C" >&6
18055else
18056  cat >conftest.$ac_ext <<_ACEOF
18057/* confdefs.h.  */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h.  */
18062$gdb_ptrace_headers
18063
18064int
18065main ()
18066{
18067#ifndef ptrace
18068  char *p = (char *) ptrace;
18069#endif
18070
18071  ;
18072  return 0;
18073}
18074_ACEOF
18075rm -f conftest.$ac_objext
18076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18077  (eval $ac_compile) 2>conftest.er1
18078  ac_status=$?
18079  grep -v '^ *+' conftest.er1 >conftest.err
18080  rm -f conftest.er1
18081  cat conftest.err >&5
18082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083  (exit $ac_status); } &&
18084	 { ac_try='test -z "$ac_c_werror_flag"
18085			 || test ! -s conftest.err'
18086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087  (eval $ac_try) 2>&5
18088  ac_status=$?
18089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090  (exit $ac_status); }; } &&
18091	 { ac_try='test -s conftest.$ac_objext'
18092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093  (eval $ac_try) 2>&5
18094  ac_status=$?
18095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096  (exit $ac_status); }; }; then
18097  ac_cv_have_decl_ptrace=yes
18098else
18099  echo "$as_me: failed program was:" >&5
18100sed 's/^/| /' conftest.$ac_ext >&5
18101
18102ac_cv_have_decl_ptrace=no
18103fi
18104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18105fi
18106echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18107echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
18108if test $ac_cv_have_decl_ptrace = yes; then
18109
18110cat >>confdefs.h <<_ACEOF
18111#define HAVE_DECL_PTRACE 1
18112_ACEOF
18113
18114
18115else
18116  cat >>confdefs.h <<_ACEOF
18117#define HAVE_DECL_PTRACE 0
18118_ACEOF
18119
18120
18121  : ${gdb_cv_func_ptrace_ret='int'}
18122  : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18123
18124fi
18125
18126
18127# Check return type.
18128echo "$as_me:$LINENO: checking return type of ptrace" >&5
18129echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
18130if test "${gdb_cv_func_ptrace_ret+set}" = set; then
18131  echo $ECHO_N "(cached) $ECHO_C" >&6
18132else
18133  cat >conftest.$ac_ext <<_ACEOF
18134/* confdefs.h.  */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h.  */
18139$gdb_ptrace_headers
18140int
18141main ()
18142{
18143extern int ptrace ();
18144  ;
18145  return 0;
18146}
18147_ACEOF
18148rm -f conftest.$ac_objext
18149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150  (eval $ac_compile) 2>conftest.er1
18151  ac_status=$?
18152  grep -v '^ *+' conftest.er1 >conftest.err
18153  rm -f conftest.er1
18154  cat conftest.err >&5
18155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156  (exit $ac_status); } &&
18157	 { ac_try='test -z "$ac_c_werror_flag"
18158			 || test ! -s conftest.err'
18159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160  (eval $ac_try) 2>&5
18161  ac_status=$?
18162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163  (exit $ac_status); }; } &&
18164	 { ac_try='test -s conftest.$ac_objext'
18165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166  (eval $ac_try) 2>&5
18167  ac_status=$?
18168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169  (exit $ac_status); }; }; then
18170  gdb_cv_func_ptrace_ret='int'
18171else
18172  echo "$as_me: failed program was:" >&5
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
18175gdb_cv_func_ptrace_ret='long'
18176fi
18177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18178fi
18179echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18180echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
18181
18182cat >>confdefs.h <<_ACEOF
18183#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
18184_ACEOF
18185
18186# Check argument types.
18187echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18188echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
18189if test "${gdb_cv_func_ptrace_args+set}" = set; then
18190  echo $ECHO_N "(cached) $ECHO_C" >&6
18191else
18192
18193for gdb_arg1 in 'int' 'long'; do
18194 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18195  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18196   for gdb_arg4 in 'int' 'long'; do
18197     cat >conftest.$ac_ext <<_ACEOF
18198/* confdefs.h.  */
18199_ACEOF
18200cat confdefs.h >>conftest.$ac_ext
18201cat >>conftest.$ac_ext <<_ACEOF
18202/* end confdefs.h.  */
18203$gdb_ptrace_headers
18204int
18205main ()
18206{
18207
18208extern $gdb_cv_func_ptrace_ret
18209  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18210
18211  ;
18212  return 0;
18213}
18214_ACEOF
18215rm -f conftest.$ac_objext
18216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217  (eval $ac_compile) 2>conftest.er1
18218  ac_status=$?
18219  grep -v '^ *+' conftest.er1 >conftest.err
18220  rm -f conftest.er1
18221  cat conftest.err >&5
18222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223  (exit $ac_status); } &&
18224	 { ac_try='test -z "$ac_c_werror_flag"
18225			 || test ! -s conftest.err'
18226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227  (eval $ac_try) 2>&5
18228  ac_status=$?
18229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230  (exit $ac_status); }; } &&
18231	 { ac_try='test -s conftest.$ac_objext'
18232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233  (eval $ac_try) 2>&5
18234  ac_status=$?
18235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236  (exit $ac_status); }; }; then
18237  gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18238    break 4;
18239else
18240  echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243fi
18244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18245    for gdb_arg5 in 'int *' 'int' 'long'; do
18246     cat >conftest.$ac_ext <<_ACEOF
18247/* confdefs.h.  */
18248_ACEOF
18249cat confdefs.h >>conftest.$ac_ext
18250cat >>conftest.$ac_ext <<_ACEOF
18251/* end confdefs.h.  */
18252$gdb_ptrace_headers
18253int
18254main ()
18255{
18256
18257extern $gdb_cv_func_ptrace_ret
18258  ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18259
18260  ;
18261  return 0;
18262}
18263_ACEOF
18264rm -f conftest.$ac_objext
18265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266  (eval $ac_compile) 2>conftest.er1
18267  ac_status=$?
18268  grep -v '^ *+' conftest.er1 >conftest.err
18269  rm -f conftest.er1
18270  cat conftest.err >&5
18271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272  (exit $ac_status); } &&
18273	 { ac_try='test -z "$ac_c_werror_flag"
18274			 || test ! -s conftest.err'
18275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276  (eval $ac_try) 2>&5
18277  ac_status=$?
18278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279  (exit $ac_status); }; } &&
18280	 { ac_try='test -s conftest.$ac_objext'
18281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282  (eval $ac_try) 2>&5
18283  ac_status=$?
18284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285  (exit $ac_status); }; }; then
18286
18287gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18288    break 5;
18289else
18290  echo "$as_me: failed program was:" >&5
18291sed 's/^/| /' conftest.$ac_ext >&5
18292
18293fi
18294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18295    done
18296   done
18297  done
18298 done
18299done
18300# Provide a safe default value.
18301: ${gdb_cv_func_ptrace_args='int,int,long,long'}
18302
18303fi
18304echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18305echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
18306ac_save_IFS=$IFS; IFS=','
18307set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18308IFS=$ac_save_IFS
18309shift
18310
18311cat >>confdefs.h <<_ACEOF
18312#define PTRACE_TYPE_ARG3 $3
18313_ACEOF
18314
18315if test -n "$5"; then
18316
18317cat >>confdefs.h <<_ACEOF
18318#define PTRACE_TYPE_ARG5 $5
18319_ACEOF
18320
18321fi
18322
18323if test "$cross_compiling" = no; then
18324  echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18325echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18326if test "${ac_cv_func_setpgrp_void+set}" = set; then
18327  echo $ECHO_N "(cached) $ECHO_C" >&6
18328else
18329  if test "$cross_compiling" = yes; then
18330  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18331echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18332   { (exit 1); exit 1; }; }
18333else
18334  cat >conftest.$ac_ext <<_ACEOF
18335/* confdefs.h.  */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
18339/* end confdefs.h.  */
18340#if HAVE_UNISTD_H
18341# include <unistd.h>
18342#endif
18343
18344int
18345main ()
18346{
18347/* If this system has a BSD-style setpgrp which takes arguments,
18348  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18349  exit successfully. */
18350  exit (setpgrp (1,1) == -1 ? 0 : 1);
18351  ;
18352  return 0;
18353}
18354_ACEOF
18355rm -f conftest$ac_exeext
18356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357  (eval $ac_link) 2>&5
18358  ac_status=$?
18359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362  (eval $ac_try) 2>&5
18363  ac_status=$?
18364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365  (exit $ac_status); }; }; then
18366  ac_cv_func_setpgrp_void=no
18367else
18368  echo "$as_me: program exited with status $ac_status" >&5
18369echo "$as_me: failed program was:" >&5
18370sed 's/^/| /' conftest.$ac_ext >&5
18371
18372( exit $ac_status )
18373ac_cv_func_setpgrp_void=yes
18374fi
18375rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18376fi
18377fi
18378echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18379echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18380if test $ac_cv_func_setpgrp_void = yes; then
18381
18382cat >>confdefs.h <<\_ACEOF
18383#define SETPGRP_VOID 1
18384_ACEOF
18385
18386fi
18387
18388else
18389  echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18390echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18391if test "${ac_cv_func_setpgrp_void+set}" = set; then
18392  echo $ECHO_N "(cached) $ECHO_C" >&6
18393else
18394  cat >conftest.$ac_ext <<_ACEOF
18395/* confdefs.h.  */
18396_ACEOF
18397cat confdefs.h >>conftest.$ac_ext
18398cat >>conftest.$ac_ext <<_ACEOF
18399/* end confdefs.h.  */
18400
18401#include <unistd.h>
18402
18403int
18404main ()
18405{
18406
18407  if (setpgrp(1,1) == -1)
18408    exit (0);
18409  else
18410    exit (1);
18411
18412  ;
18413  return 0;
18414}
18415_ACEOF
18416rm -f conftest.$ac_objext
18417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18418  (eval $ac_compile) 2>conftest.er1
18419  ac_status=$?
18420  grep -v '^ *+' conftest.er1 >conftest.err
18421  rm -f conftest.er1
18422  cat conftest.err >&5
18423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424  (exit $ac_status); } &&
18425	 { ac_try='test -z "$ac_c_werror_flag"
18426			 || test ! -s conftest.err'
18427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428  (eval $ac_try) 2>&5
18429  ac_status=$?
18430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431  (exit $ac_status); }; } &&
18432	 { ac_try='test -s conftest.$ac_objext'
18433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434  (eval $ac_try) 2>&5
18435  ac_status=$?
18436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437  (exit $ac_status); }; }; then
18438  ac_cv_func_setpgrp_void=no
18439else
18440  echo "$as_me: failed program was:" >&5
18441sed 's/^/| /' conftest.$ac_ext >&5
18442
18443ac_cv_func_setpgrp_void=yes
18444fi
18445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18446fi
18447echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18448echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18449if test $ac_cv_func_setpgrp_void = yes; then
18450  cat >>confdefs.h <<\_ACEOF
18451#define SETPGRP_VOID 1
18452_ACEOF
18453
18454fi
18455fi
18456
18457# Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
18458# since sigsetjmp might only be defined as a macro.
18459echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18460echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
18461if test "${gdb_cv_func_sigsetjmp+set}" = set; then
18462  echo $ECHO_N "(cached) $ECHO_C" >&6
18463else
18464  cat >conftest.$ac_ext <<_ACEOF
18465/* confdefs.h.  */
18466_ACEOF
18467cat confdefs.h >>conftest.$ac_ext
18468cat >>conftest.$ac_ext <<_ACEOF
18469/* end confdefs.h.  */
18470
18471#include <setjmp.h>
18472
18473int
18474main ()
18475{
18476sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18477  ;
18478  return 0;
18479}
18480_ACEOF
18481rm -f conftest.$ac_objext
18482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18483  (eval $ac_compile) 2>conftest.er1
18484  ac_status=$?
18485  grep -v '^ *+' conftest.er1 >conftest.err
18486  rm -f conftest.er1
18487  cat conftest.err >&5
18488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489  (exit $ac_status); } &&
18490	 { ac_try='test -z "$ac_c_werror_flag"
18491			 || test ! -s conftest.err'
18492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493  (eval $ac_try) 2>&5
18494  ac_status=$?
18495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496  (exit $ac_status); }; } &&
18497	 { ac_try='test -s conftest.$ac_objext'
18498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499  (eval $ac_try) 2>&5
18500  ac_status=$?
18501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502  (exit $ac_status); }; }; then
18503  gdb_cv_func_sigsetjmp=yes
18504else
18505  echo "$as_me: failed program was:" >&5
18506sed 's/^/| /' conftest.$ac_ext >&5
18507
18508gdb_cv_func_sigsetjmp=no
18509fi
18510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18511fi
18512echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18513echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
18514if test $gdb_cv_func_sigsetjmp = yes; then
18515
18516cat >>confdefs.h <<\_ACEOF
18517#define HAVE_SIGSETJMP 1
18518_ACEOF
18519
18520fi
18521
18522# Assume we'll default to using the included libiberty regex.
18523gdb_use_included_regex=yes
18524
18525# However, if the system regex is GNU regex, then default to *not*
18526# using the included regex.
18527echo "$as_me:$LINENO: checking for GNU regex" >&5
18528echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
18529if test "${gdb_cv_have_gnu_regex+set}" = set; then
18530  echo $ECHO_N "(cached) $ECHO_C" >&6
18531else
18532  cat >conftest.$ac_ext <<_ACEOF
18533/* confdefs.h.  */
18534_ACEOF
18535cat confdefs.h >>conftest.$ac_ext
18536cat >>conftest.$ac_ext <<_ACEOF
18537/* end confdefs.h.  */
18538#include <gnu-versions.h>
18539int
18540main ()
18541{
18542#define REGEX_INTERFACE_VERSION 1
18543#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18544# error "Version mismatch"
18545#endif
18546  ;
18547  return 0;
18548}
18549_ACEOF
18550rm -f conftest.$ac_objext
18551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18552  (eval $ac_compile) 2>conftest.er1
18553  ac_status=$?
18554  grep -v '^ *+' conftest.er1 >conftest.err
18555  rm -f conftest.er1
18556  cat conftest.err >&5
18557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558  (exit $ac_status); } &&
18559	 { ac_try='test -z "$ac_c_werror_flag"
18560			 || test ! -s conftest.err'
18561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562  (eval $ac_try) 2>&5
18563  ac_status=$?
18564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565  (exit $ac_status); }; } &&
18566	 { ac_try='test -s conftest.$ac_objext'
18567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568  (eval $ac_try) 2>&5
18569  ac_status=$?
18570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571  (exit $ac_status); }; }; then
18572  gdb_cv_have_gnu_regex=yes
18573else
18574  echo "$as_me: failed program was:" >&5
18575sed 's/^/| /' conftest.$ac_ext >&5
18576
18577gdb_cv_have_gnu_regex=no
18578fi
18579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18580fi
18581echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18582echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
18583if test $gdb_cv_have_gnu_regex = yes; then
18584  gdb_use_included_regex=no
18585fi
18586
18587
18588# Check whether --with-included-regex or --without-included-regex was given.
18589if test "${with_included_regex+set}" = set; then
18590  withval="$with_included_regex"
18591  gdb_with_regex=$withval
18592else
18593  gdb_with_regex=$gdb_use_included_regex
18594fi;
18595if test "$gdb_with_regex" = yes; then
18596
18597cat >>confdefs.h <<\_ACEOF
18598#define USE_INCLUDED_REGEX 1
18599_ACEOF
18600
18601fi
18602
18603# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
18604echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18605echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
18606if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
18607  echo $ECHO_N "(cached) $ECHO_C" >&6
18608else
18609  cat >conftest.$ac_ext <<_ACEOF
18610/* confdefs.h.  */
18611_ACEOF
18612cat confdefs.h >>conftest.$ac_ext
18613cat >>conftest.$ac_ext <<_ACEOF
18614/* end confdefs.h.  */
18615#include <sys/param.h>
18616#include <sys/proc.h>
18617
18618
18619int
18620main ()
18621{
18622static struct thread ac_aggr;
18623if (ac_aggr.td_pcb)
18624return 0;
18625  ;
18626  return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext
18630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18631  (eval $ac_compile) 2>conftest.er1
18632  ac_status=$?
18633  grep -v '^ *+' conftest.er1 >conftest.err
18634  rm -f conftest.er1
18635  cat conftest.err >&5
18636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637  (exit $ac_status); } &&
18638	 { ac_try='test -z "$ac_c_werror_flag"
18639			 || test ! -s conftest.err'
18640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641  (eval $ac_try) 2>&5
18642  ac_status=$?
18643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644  (exit $ac_status); }; } &&
18645	 { ac_try='test -s conftest.$ac_objext'
18646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647  (eval $ac_try) 2>&5
18648  ac_status=$?
18649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650  (exit $ac_status); }; }; then
18651  ac_cv_member_struct_thread_td_pcb=yes
18652else
18653  echo "$as_me: failed program was:" >&5
18654sed 's/^/| /' conftest.$ac_ext >&5
18655
18656cat >conftest.$ac_ext <<_ACEOF
18657/* confdefs.h.  */
18658_ACEOF
18659cat confdefs.h >>conftest.$ac_ext
18660cat >>conftest.$ac_ext <<_ACEOF
18661/* end confdefs.h.  */
18662#include <sys/param.h>
18663#include <sys/proc.h>
18664
18665
18666int
18667main ()
18668{
18669static struct thread ac_aggr;
18670if (sizeof ac_aggr.td_pcb)
18671return 0;
18672  ;
18673  return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext
18677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18678  (eval $ac_compile) 2>conftest.er1
18679  ac_status=$?
18680  grep -v '^ *+' conftest.er1 >conftest.err
18681  rm -f conftest.er1
18682  cat conftest.err >&5
18683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684  (exit $ac_status); } &&
18685	 { ac_try='test -z "$ac_c_werror_flag"
18686			 || test ! -s conftest.err'
18687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688  (eval $ac_try) 2>&5
18689  ac_status=$?
18690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691  (exit $ac_status); }; } &&
18692	 { ac_try='test -s conftest.$ac_objext'
18693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694  (eval $ac_try) 2>&5
18695  ac_status=$?
18696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697  (exit $ac_status); }; }; then
18698  ac_cv_member_struct_thread_td_pcb=yes
18699else
18700  echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703ac_cv_member_struct_thread_td_pcb=no
18704fi
18705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18706fi
18707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18708fi
18709echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18710echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
18711if test $ac_cv_member_struct_thread_td_pcb = yes; then
18712
18713cat >>confdefs.h <<_ACEOF
18714#define HAVE_STRUCT_THREAD_TD_PCB 1
18715_ACEOF
18716
18717
18718fi
18719
18720
18721# See if <sys/lwp.h> defines `struct lwp`.
18722echo "$as_me:$LINENO: checking for struct lwp" >&5
18723echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
18724if test "${gdb_cv_struct_lwp+set}" = set; then
18725  echo $ECHO_N "(cached) $ECHO_C" >&6
18726else
18727  cat >conftest.$ac_ext <<_ACEOF
18728/* confdefs.h.  */
18729_ACEOF
18730cat confdefs.h >>conftest.$ac_ext
18731cat >>conftest.$ac_ext <<_ACEOF
18732/* end confdefs.h.  */
18733#include <sys/param.h>
18734#include <sys/lwp.h>
18735int
18736main ()
18737{
18738struct lwp l;
18739  ;
18740  return 0;
18741}
18742_ACEOF
18743rm -f conftest.$ac_objext
18744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18745  (eval $ac_compile) 2>conftest.er1
18746  ac_status=$?
18747  grep -v '^ *+' conftest.er1 >conftest.err
18748  rm -f conftest.er1
18749  cat conftest.err >&5
18750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751  (exit $ac_status); } &&
18752	 { ac_try='test -z "$ac_c_werror_flag"
18753			 || test ! -s conftest.err'
18754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755  (eval $ac_try) 2>&5
18756  ac_status=$?
18757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758  (exit $ac_status); }; } &&
18759	 { ac_try='test -s conftest.$ac_objext'
18760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761  (eval $ac_try) 2>&5
18762  ac_status=$?
18763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764  (exit $ac_status); }; }; then
18765  gdb_cv_struct_lwp=yes
18766else
18767  echo "$as_me: failed program was:" >&5
18768sed 's/^/| /' conftest.$ac_ext >&5
18769
18770gdb_cv_struct_lwp=no
18771fi
18772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18773fi
18774echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18775echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
18776if test $gdb_cv_struct_lwp = yes; then
18777
18778cat >>confdefs.h <<\_ACEOF
18779#define HAVE_STRUCT_LWP 1
18780_ACEOF
18781
18782fi
18783
18784# See if <machine/reg.h> degines `struct reg'.
18785echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18786echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
18787if test "${gdb_cv_struct_reg+set}" = set; then
18788  echo $ECHO_N "(cached) $ECHO_C" >&6
18789else
18790  cat >conftest.$ac_ext <<_ACEOF
18791/* confdefs.h.  */
18792_ACEOF
18793cat confdefs.h >>conftest.$ac_ext
18794cat >>conftest.$ac_ext <<_ACEOF
18795/* end confdefs.h.  */
18796#include <sys/types.h>
18797#include <machine/reg.h>
18798int
18799main ()
18800{
18801struct reg r;
18802  ;
18803  return 0;
18804}
18805_ACEOF
18806rm -f conftest.$ac_objext
18807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18808  (eval $ac_compile) 2>conftest.er1
18809  ac_status=$?
18810  grep -v '^ *+' conftest.er1 >conftest.err
18811  rm -f conftest.er1
18812  cat conftest.err >&5
18813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814  (exit $ac_status); } &&
18815	 { ac_try='test -z "$ac_c_werror_flag"
18816			 || test ! -s conftest.err'
18817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818  (eval $ac_try) 2>&5
18819  ac_status=$?
18820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821  (exit $ac_status); }; } &&
18822	 { ac_try='test -s conftest.$ac_objext'
18823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824  (eval $ac_try) 2>&5
18825  ac_status=$?
18826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827  (exit $ac_status); }; }; then
18828  gdb_cv_struct_reg=yes
18829else
18830  echo "$as_me: failed program was:" >&5
18831sed 's/^/| /' conftest.$ac_ext >&5
18832
18833gdb_cv_struct_reg=no
18834fi
18835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18836fi
18837echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18838echo "${ECHO_T}$gdb_cv_struct_reg" >&6
18839if test $gdb_cv_struct_reg = yes; then
18840
18841cat >>confdefs.h <<\_ACEOF
18842#define HAVE_STRUCT_REG 1
18843_ACEOF
18844
18845fi
18846
18847# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18848# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
18849echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18850echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
18851if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
18852  echo $ECHO_N "(cached) $ECHO_C" >&6
18853else
18854  cat >conftest.$ac_ext <<_ACEOF
18855/* confdefs.h.  */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h.  */
18860#include <machine/reg.h>
18861
18862int
18863main ()
18864{
18865static struct reg ac_aggr;
18866if (ac_aggr.r_fs)
18867return 0;
18868  ;
18869  return 0;
18870}
18871_ACEOF
18872rm -f conftest.$ac_objext
18873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18874  (eval $ac_compile) 2>conftest.er1
18875  ac_status=$?
18876  grep -v '^ *+' conftest.er1 >conftest.err
18877  rm -f conftest.er1
18878  cat conftest.err >&5
18879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880  (exit $ac_status); } &&
18881	 { ac_try='test -z "$ac_c_werror_flag"
18882			 || test ! -s conftest.err'
18883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884  (eval $ac_try) 2>&5
18885  ac_status=$?
18886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887  (exit $ac_status); }; } &&
18888	 { ac_try='test -s conftest.$ac_objext'
18889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890  (eval $ac_try) 2>&5
18891  ac_status=$?
18892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893  (exit $ac_status); }; }; then
18894  ac_cv_member_struct_reg_r_fs=yes
18895else
18896  echo "$as_me: failed program was:" >&5
18897sed 's/^/| /' conftest.$ac_ext >&5
18898
18899cat >conftest.$ac_ext <<_ACEOF
18900/* confdefs.h.  */
18901_ACEOF
18902cat confdefs.h >>conftest.$ac_ext
18903cat >>conftest.$ac_ext <<_ACEOF
18904/* end confdefs.h.  */
18905#include <machine/reg.h>
18906
18907int
18908main ()
18909{
18910static struct reg ac_aggr;
18911if (sizeof ac_aggr.r_fs)
18912return 0;
18913  ;
18914  return 0;
18915}
18916_ACEOF
18917rm -f conftest.$ac_objext
18918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18919  (eval $ac_compile) 2>conftest.er1
18920  ac_status=$?
18921  grep -v '^ *+' conftest.er1 >conftest.err
18922  rm -f conftest.er1
18923  cat conftest.err >&5
18924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925  (exit $ac_status); } &&
18926	 { ac_try='test -z "$ac_c_werror_flag"
18927			 || test ! -s conftest.err'
18928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929  (eval $ac_try) 2>&5
18930  ac_status=$?
18931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932  (exit $ac_status); }; } &&
18933	 { ac_try='test -s conftest.$ac_objext'
18934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935  (eval $ac_try) 2>&5
18936  ac_status=$?
18937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938  (exit $ac_status); }; }; then
18939  ac_cv_member_struct_reg_r_fs=yes
18940else
18941  echo "$as_me: failed program was:" >&5
18942sed 's/^/| /' conftest.$ac_ext >&5
18943
18944ac_cv_member_struct_reg_r_fs=no
18945fi
18946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18947fi
18948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18949fi
18950echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18951echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
18952if test $ac_cv_member_struct_reg_r_fs = yes; then
18953
18954cat >>confdefs.h <<_ACEOF
18955#define HAVE_STRUCT_REG_R_FS 1
18956_ACEOF
18957
18958
18959fi
18960echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18961echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
18962if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
18963  echo $ECHO_N "(cached) $ECHO_C" >&6
18964else
18965  cat >conftest.$ac_ext <<_ACEOF
18966/* confdefs.h.  */
18967_ACEOF
18968cat confdefs.h >>conftest.$ac_ext
18969cat >>conftest.$ac_ext <<_ACEOF
18970/* end confdefs.h.  */
18971#include <machine/reg.h>
18972
18973int
18974main ()
18975{
18976static struct reg ac_aggr;
18977if (ac_aggr.r_gs)
18978return 0;
18979  ;
18980  return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext
18984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18985  (eval $ac_compile) 2>conftest.er1
18986  ac_status=$?
18987  grep -v '^ *+' conftest.er1 >conftest.err
18988  rm -f conftest.er1
18989  cat conftest.err >&5
18990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991  (exit $ac_status); } &&
18992	 { ac_try='test -z "$ac_c_werror_flag"
18993			 || test ! -s conftest.err'
18994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995  (eval $ac_try) 2>&5
18996  ac_status=$?
18997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998  (exit $ac_status); }; } &&
18999	 { ac_try='test -s conftest.$ac_objext'
19000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001  (eval $ac_try) 2>&5
19002  ac_status=$?
19003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004  (exit $ac_status); }; }; then
19005  ac_cv_member_struct_reg_r_gs=yes
19006else
19007  echo "$as_me: failed program was:" >&5
19008sed 's/^/| /' conftest.$ac_ext >&5
19009
19010cat >conftest.$ac_ext <<_ACEOF
19011/* confdefs.h.  */
19012_ACEOF
19013cat confdefs.h >>conftest.$ac_ext
19014cat >>conftest.$ac_ext <<_ACEOF
19015/* end confdefs.h.  */
19016#include <machine/reg.h>
19017
19018int
19019main ()
19020{
19021static struct reg ac_aggr;
19022if (sizeof ac_aggr.r_gs)
19023return 0;
19024  ;
19025  return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext
19029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19030  (eval $ac_compile) 2>conftest.er1
19031  ac_status=$?
19032  grep -v '^ *+' conftest.er1 >conftest.err
19033  rm -f conftest.er1
19034  cat conftest.err >&5
19035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036  (exit $ac_status); } &&
19037	 { ac_try='test -z "$ac_c_werror_flag"
19038			 || test ! -s conftest.err'
19039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040  (eval $ac_try) 2>&5
19041  ac_status=$?
19042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043  (exit $ac_status); }; } &&
19044	 { ac_try='test -s conftest.$ac_objext'
19045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046  (eval $ac_try) 2>&5
19047  ac_status=$?
19048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049  (exit $ac_status); }; }; then
19050  ac_cv_member_struct_reg_r_gs=yes
19051else
19052  echo "$as_me: failed program was:" >&5
19053sed 's/^/| /' conftest.$ac_ext >&5
19054
19055ac_cv_member_struct_reg_r_gs=no
19056fi
19057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19058fi
19059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19060fi
19061echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19062echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
19063if test $ac_cv_member_struct_reg_r_gs = yes; then
19064
19065cat >>confdefs.h <<_ACEOF
19066#define HAVE_STRUCT_REG_R_GS 1
19067_ACEOF
19068
19069
19070fi
19071
19072
19073# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
19074echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19075echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
19076if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
19077  echo $ECHO_N "(cached) $ECHO_C" >&6
19078else
19079  cat >conftest.$ac_ext <<_ACEOF
19080/* confdefs.h.  */
19081_ACEOF
19082cat confdefs.h >>conftest.$ac_ext
19083cat >>conftest.$ac_ext <<_ACEOF
19084/* end confdefs.h.  */
19085#include <sys/ptrace.h>
19086int
19087main ()
19088{
19089PTRACE_GETREGS;
19090  ;
19091  return 0;
19092}
19093_ACEOF
19094rm -f conftest.$ac_objext
19095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096  (eval $ac_compile) 2>conftest.er1
19097  ac_status=$?
19098  grep -v '^ *+' conftest.er1 >conftest.err
19099  rm -f conftest.er1
19100  cat conftest.err >&5
19101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102  (exit $ac_status); } &&
19103	 { ac_try='test -z "$ac_c_werror_flag"
19104			 || test ! -s conftest.err'
19105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106  (eval $ac_try) 2>&5
19107  ac_status=$?
19108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109  (exit $ac_status); }; } &&
19110	 { ac_try='test -s conftest.$ac_objext'
19111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112  (eval $ac_try) 2>&5
19113  ac_status=$?
19114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115  (exit $ac_status); }; }; then
19116  gdb_cv_have_ptrace_getregs=yes
19117else
19118  echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121gdb_cv_have_ptrace_getregs=no
19122fi
19123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19124fi
19125
19126echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19127echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
19128if test $gdb_cv_have_ptrace_getregs = yes; then
19129
19130cat >>confdefs.h <<\_ACEOF
19131#define HAVE_PTRACE_GETREGS 1
19132_ACEOF
19133
19134fi
19135
19136# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
19137echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19138echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
19139if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
19140  echo $ECHO_N "(cached) $ECHO_C" >&6
19141else
19142  cat >conftest.$ac_ext <<_ACEOF
19143/* confdefs.h.  */
19144_ACEOF
19145cat confdefs.h >>conftest.$ac_ext
19146cat >>conftest.$ac_ext <<_ACEOF
19147/* end confdefs.h.  */
19148#include <sys/ptrace.h>
19149int
19150main ()
19151{
19152PTRACE_GETFPXREGS;
19153  ;
19154  return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext
19158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159  (eval $ac_compile) 2>conftest.er1
19160  ac_status=$?
19161  grep -v '^ *+' conftest.er1 >conftest.err
19162  rm -f conftest.er1
19163  cat conftest.err >&5
19164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165  (exit $ac_status); } &&
19166	 { ac_try='test -z "$ac_c_werror_flag"
19167			 || test ! -s conftest.err'
19168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169  (eval $ac_try) 2>&5
19170  ac_status=$?
19171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172  (exit $ac_status); }; } &&
19173	 { ac_try='test -s conftest.$ac_objext'
19174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175  (eval $ac_try) 2>&5
19176  ac_status=$?
19177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178  (exit $ac_status); }; }; then
19179  gdb_cv_have_ptrace_getfpxregs=yes
19180else
19181  echo "$as_me: failed program was:" >&5
19182sed 's/^/| /' conftest.$ac_ext >&5
19183
19184gdb_cv_have_ptrace_getfpxregs=no
19185fi
19186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19187fi
19188
19189echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19190echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
19191if test $gdb_cv_have_ptrace_getfpxregs = yes; then
19192
19193cat >>confdefs.h <<\_ACEOF
19194#define HAVE_PTRACE_GETFPXREGS 1
19195_ACEOF
19196
19197fi
19198
19199# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
19200echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19201echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
19202if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
19203  echo $ECHO_N "(cached) $ECHO_C" >&6
19204else
19205  cat >conftest.$ac_ext <<_ACEOF
19206/* confdefs.h.  */
19207_ACEOF
19208cat confdefs.h >>conftest.$ac_ext
19209cat >>conftest.$ac_ext <<_ACEOF
19210/* end confdefs.h.  */
19211#include <sys/types.h>
19212#include <sys/ptrace.h>
19213int
19214main ()
19215{
19216PT_GETDBREGS;
19217  ;
19218  return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext
19222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223  (eval $ac_compile) 2>conftest.er1
19224  ac_status=$?
19225  grep -v '^ *+' conftest.er1 >conftest.err
19226  rm -f conftest.er1
19227  cat conftest.err >&5
19228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229  (exit $ac_status); } &&
19230	 { ac_try='test -z "$ac_c_werror_flag"
19231			 || test ! -s conftest.err'
19232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233  (eval $ac_try) 2>&5
19234  ac_status=$?
19235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236  (exit $ac_status); }; } &&
19237	 { ac_try='test -s conftest.$ac_objext'
19238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239  (eval $ac_try) 2>&5
19240  ac_status=$?
19241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242  (exit $ac_status); }; }; then
19243  gdb_cv_have_pt_getdbregs=yes
19244else
19245  echo "$as_me: failed program was:" >&5
19246sed 's/^/| /' conftest.$ac_ext >&5
19247
19248gdb_cv_have_pt_getdbregs=no
19249fi
19250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19251fi
19252
19253echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19254echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
19255if test $gdb_cv_have_pt_getdbregs = yes; then
19256
19257cat >>confdefs.h <<\_ACEOF
19258#define HAVE_PT_GETDBREGS 1
19259_ACEOF
19260
19261fi
19262
19263# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
19264echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19265echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
19266if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
19267  echo $ECHO_N "(cached) $ECHO_C" >&6
19268else
19269  cat >conftest.$ac_ext <<_ACEOF
19270/* confdefs.h.  */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h.  */
19275#include <sys/types.h>
19276#include <sys/ptrace.h>
19277int
19278main ()
19279{
19280PT_GETXMMREGS;
19281  ;
19282  return 0;
19283}
19284_ACEOF
19285rm -f conftest.$ac_objext
19286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287  (eval $ac_compile) 2>conftest.er1
19288  ac_status=$?
19289  grep -v '^ *+' conftest.er1 >conftest.err
19290  rm -f conftest.er1
19291  cat conftest.err >&5
19292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293  (exit $ac_status); } &&
19294	 { ac_try='test -z "$ac_c_werror_flag"
19295			 || test ! -s conftest.err'
19296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297  (eval $ac_try) 2>&5
19298  ac_status=$?
19299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300  (exit $ac_status); }; } &&
19301	 { ac_try='test -s conftest.$ac_objext'
19302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303  (eval $ac_try) 2>&5
19304  ac_status=$?
19305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306  (exit $ac_status); }; }; then
19307  gdb_cv_have_pt_getxmmregs=yes
19308else
19309  echo "$as_me: failed program was:" >&5
19310sed 's/^/| /' conftest.$ac_ext >&5
19311
19312gdb_cv_have_pt_getxmmregs=no
19313fi
19314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19315fi
19316
19317echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19318echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
19319if test $gdb_cv_have_pt_getxmmregs = yes; then
19320
19321cat >>confdefs.h <<\_ACEOF
19322#define HAVE_PT_GETXMMREGS 1
19323_ACEOF
19324
19325fi
19326
19327# Detect which type of /proc is in use, such as for Unixware or Solaris.
19328
19329if test "${target}" = "${host}"; then
19330  case "${host}" in
19331  *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
19332
19333cat >>confdefs.h <<\_ACEOF
19334#define NEW_PROC_API 1
19335_ACEOF
19336
19337      ;;
19338  *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
19339
19340cat >>confdefs.h <<\_ACEOF
19341#define NEW_PROC_API 1
19342_ACEOF
19343
19344      ;;
19345  mips-sgi-irix5*)
19346      # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
19347
19348cat >>confdefs.h <<\_ACEOF
19349#define _KMEMUSER 1
19350_ACEOF
19351
19352      ;;
19353  esac
19354fi
19355
19356if test "$ac_cv_header_sys_procfs_h" = yes; then
19357  echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19358echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19359 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19360  echo $ECHO_N "(cached) $ECHO_C" >&6
19361else
19362  cat >conftest.$ac_ext <<_ACEOF
19363/* confdefs.h.  */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h.  */
19368
19369#define _SYSCALL32
19370#include <sys/procfs.h>
19371int
19372main ()
19373{
19374pstatus_t avar
19375  ;
19376  return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381  (eval $ac_compile) 2>conftest.er1
19382  ac_status=$?
19383  grep -v '^ *+' conftest.er1 >conftest.err
19384  rm -f conftest.er1
19385  cat conftest.err >&5
19386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387  (exit $ac_status); } &&
19388	 { ac_try='test -z "$ac_c_werror_flag"
19389			 || test ! -s conftest.err'
19390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391  (eval $ac_try) 2>&5
19392  ac_status=$?
19393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394  (exit $ac_status); }; } &&
19395	 { ac_try='test -s conftest.$ac_objext'
19396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397  (eval $ac_try) 2>&5
19398  ac_status=$?
19399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400  (exit $ac_status); }; }; then
19401  bfd_cv_have_sys_procfs_type_pstatus_t=yes
19402else
19403  echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
19406bfd_cv_have_sys_procfs_type_pstatus_t=no
19407
19408fi
19409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410fi
19411
19412 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19413
19414cat >>confdefs.h <<\_ACEOF
19415#define HAVE_PSTATUS_T 1
19416_ACEOF
19417
19418 fi
19419 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19420echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19421
19422  echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19423echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
19424 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19425  echo $ECHO_N "(cached) $ECHO_C" >&6
19426else
19427  cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h.  */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h.  */
19433
19434#define _SYSCALL32
19435#include <sys/procfs.h>
19436int
19437main ()
19438{
19439prrun_t avar
19440  ;
19441  return 0;
19442}
19443_ACEOF
19444rm -f conftest.$ac_objext
19445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19446  (eval $ac_compile) 2>conftest.er1
19447  ac_status=$?
19448  grep -v '^ *+' conftest.er1 >conftest.err
19449  rm -f conftest.er1
19450  cat conftest.err >&5
19451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452  (exit $ac_status); } &&
19453	 { ac_try='test -z "$ac_c_werror_flag"
19454			 || test ! -s conftest.err'
19455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456  (eval $ac_try) 2>&5
19457  ac_status=$?
19458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459  (exit $ac_status); }; } &&
19460	 { ac_try='test -s conftest.$ac_objext'
19461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462  (eval $ac_try) 2>&5
19463  ac_status=$?
19464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465  (exit $ac_status); }; }; then
19466  bfd_cv_have_sys_procfs_type_prrun_t=yes
19467else
19468  echo "$as_me: failed program was:" >&5
19469sed 's/^/| /' conftest.$ac_ext >&5
19470
19471bfd_cv_have_sys_procfs_type_prrun_t=no
19472
19473fi
19474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19475fi
19476
19477 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
19478
19479cat >>confdefs.h <<\_ACEOF
19480#define HAVE_PRRUN_T 1
19481_ACEOF
19482
19483 fi
19484 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19485echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
19486
19487  echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19488echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
19489 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19490  echo $ECHO_N "(cached) $ECHO_C" >&6
19491else
19492  cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h.  */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h.  */
19498
19499#define _SYSCALL32
19500#include <sys/procfs.h>
19501int
19502main ()
19503{
19504gregset_t avar
19505  ;
19506  return 0;
19507}
19508_ACEOF
19509rm -f conftest.$ac_objext
19510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511  (eval $ac_compile) 2>conftest.er1
19512  ac_status=$?
19513  grep -v '^ *+' conftest.er1 >conftest.err
19514  rm -f conftest.er1
19515  cat conftest.err >&5
19516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517  (exit $ac_status); } &&
19518	 { ac_try='test -z "$ac_c_werror_flag"
19519			 || test ! -s conftest.err'
19520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521  (eval $ac_try) 2>&5
19522  ac_status=$?
19523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524  (exit $ac_status); }; } &&
19525	 { ac_try='test -s conftest.$ac_objext'
19526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527  (eval $ac_try) 2>&5
19528  ac_status=$?
19529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530  (exit $ac_status); }; }; then
19531  bfd_cv_have_sys_procfs_type_gregset_t=yes
19532else
19533  echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536bfd_cv_have_sys_procfs_type_gregset_t=no
19537
19538fi
19539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19540fi
19541
19542 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
19543
19544cat >>confdefs.h <<\_ACEOF
19545#define HAVE_GREGSET_T 1
19546_ACEOF
19547
19548 fi
19549 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19550echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
19551
19552  echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19553echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
19554 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19555  echo $ECHO_N "(cached) $ECHO_C" >&6
19556else
19557  cat >conftest.$ac_ext <<_ACEOF
19558/* confdefs.h.  */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h.  */
19563
19564#define _SYSCALL32
19565#include <sys/procfs.h>
19566int
19567main ()
19568{
19569fpregset_t avar
19570  ;
19571  return 0;
19572}
19573_ACEOF
19574rm -f conftest.$ac_objext
19575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576  (eval $ac_compile) 2>conftest.er1
19577  ac_status=$?
19578  grep -v '^ *+' conftest.er1 >conftest.err
19579  rm -f conftest.er1
19580  cat conftest.err >&5
19581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582  (exit $ac_status); } &&
19583	 { ac_try='test -z "$ac_c_werror_flag"
19584			 || test ! -s conftest.err'
19585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586  (eval $ac_try) 2>&5
19587  ac_status=$?
19588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589  (exit $ac_status); }; } &&
19590	 { ac_try='test -s conftest.$ac_objext'
19591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592  (eval $ac_try) 2>&5
19593  ac_status=$?
19594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595  (exit $ac_status); }; }; then
19596  bfd_cv_have_sys_procfs_type_fpregset_t=yes
19597else
19598  echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601bfd_cv_have_sys_procfs_type_fpregset_t=no
19602
19603fi
19604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19605fi
19606
19607 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
19608
19609cat >>confdefs.h <<\_ACEOF
19610#define HAVE_FPREGSET_T 1
19611_ACEOF
19612
19613 fi
19614 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19615echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
19616
19617  echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19618echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
19619 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19620  echo $ECHO_N "(cached) $ECHO_C" >&6
19621else
19622  cat >conftest.$ac_ext <<_ACEOF
19623/* confdefs.h.  */
19624_ACEOF
19625cat confdefs.h >>conftest.$ac_ext
19626cat >>conftest.$ac_ext <<_ACEOF
19627/* end confdefs.h.  */
19628
19629#define _SYSCALL32
19630#include <sys/procfs.h>
19631int
19632main ()
19633{
19634prgregset_t avar
19635  ;
19636  return 0;
19637}
19638_ACEOF
19639rm -f conftest.$ac_objext
19640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641  (eval $ac_compile) 2>conftest.er1
19642  ac_status=$?
19643  grep -v '^ *+' conftest.er1 >conftest.err
19644  rm -f conftest.er1
19645  cat conftest.err >&5
19646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647  (exit $ac_status); } &&
19648	 { ac_try='test -z "$ac_c_werror_flag"
19649			 || test ! -s conftest.err'
19650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651  (eval $ac_try) 2>&5
19652  ac_status=$?
19653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654  (exit $ac_status); }; } &&
19655	 { ac_try='test -s conftest.$ac_objext'
19656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657  (eval $ac_try) 2>&5
19658  ac_status=$?
19659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660  (exit $ac_status); }; }; then
19661  bfd_cv_have_sys_procfs_type_prgregset_t=yes
19662else
19663  echo "$as_me: failed program was:" >&5
19664sed 's/^/| /' conftest.$ac_ext >&5
19665
19666bfd_cv_have_sys_procfs_type_prgregset_t=no
19667
19668fi
19669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19670fi
19671
19672 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
19673
19674cat >>confdefs.h <<\_ACEOF
19675#define HAVE_PRGREGSET_T 1
19676_ACEOF
19677
19678 fi
19679 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19680echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
19681
19682  echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19683echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
19684 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19685  echo $ECHO_N "(cached) $ECHO_C" >&6
19686else
19687  cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h.  */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h.  */
19693
19694#define _SYSCALL32
19695#include <sys/procfs.h>
19696int
19697main ()
19698{
19699prfpregset_t avar
19700  ;
19701  return 0;
19702}
19703_ACEOF
19704rm -f conftest.$ac_objext
19705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19706  (eval $ac_compile) 2>conftest.er1
19707  ac_status=$?
19708  grep -v '^ *+' conftest.er1 >conftest.err
19709  rm -f conftest.er1
19710  cat conftest.err >&5
19711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712  (exit $ac_status); } &&
19713	 { ac_try='test -z "$ac_c_werror_flag"
19714			 || test ! -s conftest.err'
19715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716  (eval $ac_try) 2>&5
19717  ac_status=$?
19718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719  (exit $ac_status); }; } &&
19720	 { ac_try='test -s conftest.$ac_objext'
19721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722  (eval $ac_try) 2>&5
19723  ac_status=$?
19724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725  (exit $ac_status); }; }; then
19726  bfd_cv_have_sys_procfs_type_prfpregset_t=yes
19727else
19728  echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
19731bfd_cv_have_sys_procfs_type_prfpregset_t=no
19732
19733fi
19734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19735fi
19736
19737 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19738
19739cat >>confdefs.h <<\_ACEOF
19740#define HAVE_PRFPREGSET_T 1
19741_ACEOF
19742
19743 fi
19744 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19745echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
19746
19747  echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19748echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
19749 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19750  echo $ECHO_N "(cached) $ECHO_C" >&6
19751else
19752  cat >conftest.$ac_ext <<_ACEOF
19753/* confdefs.h.  */
19754_ACEOF
19755cat confdefs.h >>conftest.$ac_ext
19756cat >>conftest.$ac_ext <<_ACEOF
19757/* end confdefs.h.  */
19758
19759#define _SYSCALL32
19760#include <sys/procfs.h>
19761int
19762main ()
19763{
19764prgregset32_t avar
19765  ;
19766  return 0;
19767}
19768_ACEOF
19769rm -f conftest.$ac_objext
19770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19771  (eval $ac_compile) 2>conftest.er1
19772  ac_status=$?
19773  grep -v '^ *+' conftest.er1 >conftest.err
19774  rm -f conftest.er1
19775  cat conftest.err >&5
19776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777  (exit $ac_status); } &&
19778	 { ac_try='test -z "$ac_c_werror_flag"
19779			 || test ! -s conftest.err'
19780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781  (eval $ac_try) 2>&5
19782  ac_status=$?
19783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784  (exit $ac_status); }; } &&
19785	 { ac_try='test -s conftest.$ac_objext'
19786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787  (eval $ac_try) 2>&5
19788  ac_status=$?
19789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790  (exit $ac_status); }; }; then
19791  bfd_cv_have_sys_procfs_type_prgregset32_t=yes
19792else
19793  echo "$as_me: failed program was:" >&5
19794sed 's/^/| /' conftest.$ac_ext >&5
19795
19796bfd_cv_have_sys_procfs_type_prgregset32_t=no
19797
19798fi
19799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19800fi
19801
19802 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
19803
19804cat >>confdefs.h <<\_ACEOF
19805#define HAVE_PRGREGSET32_T 1
19806_ACEOF
19807
19808 fi
19809 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19810echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
19811
19812  echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19813echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
19814 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19815  echo $ECHO_N "(cached) $ECHO_C" >&6
19816else
19817  cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h.  */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h.  */
19823
19824#define _SYSCALL32
19825#include <sys/procfs.h>
19826int
19827main ()
19828{
19829prfpregset32_t avar
19830  ;
19831  return 0;
19832}
19833_ACEOF
19834rm -f conftest.$ac_objext
19835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19836  (eval $ac_compile) 2>conftest.er1
19837  ac_status=$?
19838  grep -v '^ *+' conftest.er1 >conftest.err
19839  rm -f conftest.er1
19840  cat conftest.err >&5
19841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842  (exit $ac_status); } &&
19843	 { ac_try='test -z "$ac_c_werror_flag"
19844			 || test ! -s conftest.err'
19845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846  (eval $ac_try) 2>&5
19847  ac_status=$?
19848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849  (exit $ac_status); }; } &&
19850	 { ac_try='test -s conftest.$ac_objext'
19851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852  (eval $ac_try) 2>&5
19853  ac_status=$?
19854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855  (exit $ac_status); }; }; then
19856  bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
19857else
19858  echo "$as_me: failed program was:" >&5
19859sed 's/^/| /' conftest.$ac_ext >&5
19860
19861bfd_cv_have_sys_procfs_type_prfpregset32_t=no
19862
19863fi
19864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19865fi
19866
19867 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
19868
19869cat >>confdefs.h <<\_ACEOF
19870#define HAVE_PRFPREGSET32_T 1
19871_ACEOF
19872
19873 fi
19874 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19875echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
19876
19877  echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19878echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
19879 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19880  echo $ECHO_N "(cached) $ECHO_C" >&6
19881else
19882  cat >conftest.$ac_ext <<_ACEOF
19883/* confdefs.h.  */
19884_ACEOF
19885cat confdefs.h >>conftest.$ac_ext
19886cat >>conftest.$ac_ext <<_ACEOF
19887/* end confdefs.h.  */
19888
19889#define _SYSCALL32
19890#include <sys/procfs.h>
19891int
19892main ()
19893{
19894lwpid_t avar
19895  ;
19896  return 0;
19897}
19898_ACEOF
19899rm -f conftest.$ac_objext
19900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901  (eval $ac_compile) 2>conftest.er1
19902  ac_status=$?
19903  grep -v '^ *+' conftest.er1 >conftest.err
19904  rm -f conftest.er1
19905  cat conftest.err >&5
19906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907  (exit $ac_status); } &&
19908	 { ac_try='test -z "$ac_c_werror_flag"
19909			 || test ! -s conftest.err'
19910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911  (eval $ac_try) 2>&5
19912  ac_status=$?
19913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914  (exit $ac_status); }; } &&
19915	 { ac_try='test -s conftest.$ac_objext'
19916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917  (eval $ac_try) 2>&5
19918  ac_status=$?
19919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920  (exit $ac_status); }; }; then
19921  bfd_cv_have_sys_procfs_type_lwpid_t=yes
19922else
19923  echo "$as_me: failed program was:" >&5
19924sed 's/^/| /' conftest.$ac_ext >&5
19925
19926bfd_cv_have_sys_procfs_type_lwpid_t=no
19927
19928fi
19929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19930fi
19931
19932 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
19933
19934cat >>confdefs.h <<\_ACEOF
19935#define HAVE_LWPID_T 1
19936_ACEOF
19937
19938 fi
19939 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19940echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
19941
19942  echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19943echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
19944 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19945  echo $ECHO_N "(cached) $ECHO_C" >&6
19946else
19947  cat >conftest.$ac_ext <<_ACEOF
19948/* confdefs.h.  */
19949_ACEOF
19950cat confdefs.h >>conftest.$ac_ext
19951cat >>conftest.$ac_ext <<_ACEOF
19952/* end confdefs.h.  */
19953
19954#define _SYSCALL32
19955#include <sys/procfs.h>
19956int
19957main ()
19958{
19959psaddr_t avar
19960  ;
19961  return 0;
19962}
19963_ACEOF
19964rm -f conftest.$ac_objext
19965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19966  (eval $ac_compile) 2>conftest.er1
19967  ac_status=$?
19968  grep -v '^ *+' conftest.er1 >conftest.err
19969  rm -f conftest.er1
19970  cat conftest.err >&5
19971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972  (exit $ac_status); } &&
19973	 { ac_try='test -z "$ac_c_werror_flag"
19974			 || test ! -s conftest.err'
19975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976  (eval $ac_try) 2>&5
19977  ac_status=$?
19978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979  (exit $ac_status); }; } &&
19980	 { ac_try='test -s conftest.$ac_objext'
19981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982  (eval $ac_try) 2>&5
19983  ac_status=$?
19984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985  (exit $ac_status); }; }; then
19986  bfd_cv_have_sys_procfs_type_psaddr_t=yes
19987else
19988  echo "$as_me: failed program was:" >&5
19989sed 's/^/| /' conftest.$ac_ext >&5
19990
19991bfd_cv_have_sys_procfs_type_psaddr_t=no
19992
19993fi
19994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19995fi
19996
19997 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
19998
19999cat >>confdefs.h <<\_ACEOF
20000#define HAVE_PSADDR_T 1
20001_ACEOF
20002
20003 fi
20004 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20005echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
20006
20007  echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20008echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
20009 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20010  echo $ECHO_N "(cached) $ECHO_C" >&6
20011else
20012  cat >conftest.$ac_ext <<_ACEOF
20013/* confdefs.h.  */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h.  */
20018
20019#define _SYSCALL32
20020#include <sys/procfs.h>
20021int
20022main ()
20023{
20024prsysent_t avar
20025  ;
20026  return 0;
20027}
20028_ACEOF
20029rm -f conftest.$ac_objext
20030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20031  (eval $ac_compile) 2>conftest.er1
20032  ac_status=$?
20033  grep -v '^ *+' conftest.er1 >conftest.err
20034  rm -f conftest.er1
20035  cat conftest.err >&5
20036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037  (exit $ac_status); } &&
20038	 { ac_try='test -z "$ac_c_werror_flag"
20039			 || test ! -s conftest.err'
20040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041  (eval $ac_try) 2>&5
20042  ac_status=$?
20043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044  (exit $ac_status); }; } &&
20045	 { ac_try='test -s conftest.$ac_objext'
20046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047  (eval $ac_try) 2>&5
20048  ac_status=$?
20049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050  (exit $ac_status); }; }; then
20051  bfd_cv_have_sys_procfs_type_prsysent_t=yes
20052else
20053  echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
20056bfd_cv_have_sys_procfs_type_prsysent_t=no
20057
20058fi
20059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20060fi
20061
20062 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
20063
20064cat >>confdefs.h <<\_ACEOF
20065#define HAVE_PRSYSENT_T 1
20066_ACEOF
20067
20068 fi
20069 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20070echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
20071
20072  echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20073echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
20074 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20075  echo $ECHO_N "(cached) $ECHO_C" >&6
20076else
20077  cat >conftest.$ac_ext <<_ACEOF
20078/* confdefs.h.  */
20079_ACEOF
20080cat confdefs.h >>conftest.$ac_ext
20081cat >>conftest.$ac_ext <<_ACEOF
20082/* end confdefs.h.  */
20083
20084#define _SYSCALL32
20085#include <sys/procfs.h>
20086int
20087main ()
20088{
20089pr_sigset_t avar
20090  ;
20091  return 0;
20092}
20093_ACEOF
20094rm -f conftest.$ac_objext
20095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096  (eval $ac_compile) 2>conftest.er1
20097  ac_status=$?
20098  grep -v '^ *+' conftest.er1 >conftest.err
20099  rm -f conftest.er1
20100  cat conftest.err >&5
20101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102  (exit $ac_status); } &&
20103	 { ac_try='test -z "$ac_c_werror_flag"
20104			 || test ! -s conftest.err'
20105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106  (eval $ac_try) 2>&5
20107  ac_status=$?
20108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109  (exit $ac_status); }; } &&
20110	 { ac_try='test -s conftest.$ac_objext'
20111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112  (eval $ac_try) 2>&5
20113  ac_status=$?
20114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115  (exit $ac_status); }; }; then
20116  bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
20117else
20118  echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121bfd_cv_have_sys_procfs_type_pr_sigset_t=no
20122
20123fi
20124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20125fi
20126
20127 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
20128
20129cat >>confdefs.h <<\_ACEOF
20130#define HAVE_PR_SIGSET_T 1
20131_ACEOF
20132
20133 fi
20134 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20135echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
20136
20137  echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20138echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
20139 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20140  echo $ECHO_N "(cached) $ECHO_C" >&6
20141else
20142  cat >conftest.$ac_ext <<_ACEOF
20143/* confdefs.h.  */
20144_ACEOF
20145cat confdefs.h >>conftest.$ac_ext
20146cat >>conftest.$ac_ext <<_ACEOF
20147/* end confdefs.h.  */
20148
20149#define _SYSCALL32
20150#include <sys/procfs.h>
20151int
20152main ()
20153{
20154pr_sigaction64_t avar
20155  ;
20156  return 0;
20157}
20158_ACEOF
20159rm -f conftest.$ac_objext
20160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20161  (eval $ac_compile) 2>conftest.er1
20162  ac_status=$?
20163  grep -v '^ *+' conftest.er1 >conftest.err
20164  rm -f conftest.er1
20165  cat conftest.err >&5
20166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167  (exit $ac_status); } &&
20168	 { ac_try='test -z "$ac_c_werror_flag"
20169			 || test ! -s conftest.err'
20170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171  (eval $ac_try) 2>&5
20172  ac_status=$?
20173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174  (exit $ac_status); }; } &&
20175	 { ac_try='test -s conftest.$ac_objext'
20176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177  (eval $ac_try) 2>&5
20178  ac_status=$?
20179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180  (exit $ac_status); }; }; then
20181  bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
20182else
20183  echo "$as_me: failed program was:" >&5
20184sed 's/^/| /' conftest.$ac_ext >&5
20185
20186bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
20187
20188fi
20189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20190fi
20191
20192 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
20193
20194cat >>confdefs.h <<\_ACEOF
20195#define HAVE_PR_SIGACTION64_T 1
20196_ACEOF
20197
20198 fi
20199 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20200echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
20201
20202  echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20203echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
20204 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20205  echo $ECHO_N "(cached) $ECHO_C" >&6
20206else
20207  cat >conftest.$ac_ext <<_ACEOF
20208/* confdefs.h.  */
20209_ACEOF
20210cat confdefs.h >>conftest.$ac_ext
20211cat >>conftest.$ac_ext <<_ACEOF
20212/* end confdefs.h.  */
20213
20214#define _SYSCALL32
20215#include <sys/procfs.h>
20216int
20217main ()
20218{
20219pr_siginfo64_t avar
20220  ;
20221  return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext
20225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226  (eval $ac_compile) 2>conftest.er1
20227  ac_status=$?
20228  grep -v '^ *+' conftest.er1 >conftest.err
20229  rm -f conftest.er1
20230  cat conftest.err >&5
20231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232  (exit $ac_status); } &&
20233	 { ac_try='test -z "$ac_c_werror_flag"
20234			 || test ! -s conftest.err'
20235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236  (eval $ac_try) 2>&5
20237  ac_status=$?
20238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239  (exit $ac_status); }; } &&
20240	 { ac_try='test -s conftest.$ac_objext'
20241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242  (eval $ac_try) 2>&5
20243  ac_status=$?
20244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245  (exit $ac_status); }; }; then
20246  bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20247else
20248  echo "$as_me: failed program was:" >&5
20249sed 's/^/| /' conftest.$ac_ext >&5
20250
20251bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
20252
20253fi
20254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20255fi
20256
20257 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
20258
20259cat >>confdefs.h <<\_ACEOF
20260#define HAVE_PR_SIGINFO64_T 1
20261_ACEOF
20262
20263 fi
20264 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20265echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
20266
20267
20268
20269
20270
20271  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20272    echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20273echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
20274    if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20275  echo $ECHO_N "(cached) $ECHO_C" >&6
20276else
20277  if test "$cross_compiling" = yes; then
20278  gdb_cv_prfpregset_t_broken=yes
20279else
20280  cat >conftest.$ac_ext <<_ACEOF
20281/* confdefs.h.  */
20282_ACEOF
20283cat confdefs.h >>conftest.$ac_ext
20284cat >>conftest.$ac_ext <<_ACEOF
20285/* end confdefs.h.  */
20286#include <sys/procfs.h>
20287       int main ()
20288       {
20289         if (sizeof (prfpregset_t) == sizeof (void *))
20290           return 1;
20291         return 0;
20292       }
20293_ACEOF
20294rm -f conftest$ac_exeext
20295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296  (eval $ac_link) 2>&5
20297  ac_status=$?
20298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301  (eval $ac_try) 2>&5
20302  ac_status=$?
20303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304  (exit $ac_status); }; }; then
20305  gdb_cv_prfpregset_t_broken=no
20306else
20307  echo "$as_me: program exited with status $ac_status" >&5
20308echo "$as_me: failed program was:" >&5
20309sed 's/^/| /' conftest.$ac_ext >&5
20310
20311( exit $ac_status )
20312gdb_cv_prfpregset_t_broken=yes
20313fi
20314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20315fi
20316fi
20317
20318    echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20319echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
20320    if test $gdb_cv_prfpregset_t_broken = yes; then
20321
20322cat >>confdefs.h <<\_ACEOF
20323#define PRFPREGSET_T_BROKEN 1
20324_ACEOF
20325
20326    fi
20327  fi
20328
20329
20330  echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20331echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
20332  if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20333  echo $ECHO_N "(cached) $ECHO_C" >&6
20334else
20335  cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h.  */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h.  */
20341#include <unistd.h>
20342#include <sys/types.h>
20343#include <sys/procfs.h>
20344
20345int
20346main ()
20347{
20348
20349    int dummy;;
20350    dummy = ioctl(0, PIOCSET, &dummy);
20351
20352  ;
20353  return 0;
20354}
20355_ACEOF
20356rm -f conftest.$ac_objext
20357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20358  (eval $ac_compile) 2>conftest.er1
20359  ac_status=$?
20360  grep -v '^ *+' conftest.er1 >conftest.err
20361  rm -f conftest.er1
20362  cat conftest.err >&5
20363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364  (exit $ac_status); } &&
20365	 { ac_try='test -z "$ac_c_werror_flag"
20366			 || test ! -s conftest.err'
20367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368  (eval $ac_try) 2>&5
20369  ac_status=$?
20370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371  (exit $ac_status); }; } &&
20372	 { ac_try='test -s conftest.$ac_objext'
20373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374  (eval $ac_try) 2>&5
20375  ac_status=$?
20376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377  (exit $ac_status); }; }; then
20378  gdb_cv_have_procfs_piocset=yes
20379else
20380  echo "$as_me: failed program was:" >&5
20381sed 's/^/| /' conftest.$ac_ext >&5
20382
20383gdb_cv_have_procfs_piocset=no
20384fi
20385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20386fi
20387
20388  echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20389echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
20390  if test $gdb_cv_have_procfs_piocset = yes; then
20391
20392cat >>confdefs.h <<\_ACEOF
20393#define HAVE_PROCFS_PIOCSET 1
20394_ACEOF
20395
20396  fi
20397fi
20398
20399if test ${host} = ${target} ; then
20400
20401  echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20402echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
20403  if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20404  echo $ECHO_N "(cached) $ECHO_C" >&6
20405else
20406  cat >conftest.$ac_ext <<_ACEOF
20407/* confdefs.h.  */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h.  */
20412#include <link.h>
20413int
20414main ()
20415{
20416struct link_map lm; (void) lm.l_addr;
20417  ;
20418  return 0;
20419}
20420_ACEOF
20421rm -f conftest.$ac_objext
20422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423  (eval $ac_compile) 2>conftest.er1
20424  ac_status=$?
20425  grep -v '^ *+' conftest.er1 >conftest.err
20426  rm -f conftest.er1
20427  cat conftest.err >&5
20428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429  (exit $ac_status); } &&
20430	 { ac_try='test -z "$ac_c_werror_flag"
20431			 || test ! -s conftest.err'
20432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433  (eval $ac_try) 2>&5
20434  ac_status=$?
20435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436  (exit $ac_status); }; } &&
20437	 { ac_try='test -s conftest.$ac_objext'
20438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439  (eval $ac_try) 2>&5
20440  ac_status=$?
20441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442  (exit $ac_status); }; }; then
20443  gdb_cv_have_struct_link_map_with_l_members=yes
20444else
20445  echo "$as_me: failed program was:" >&5
20446sed 's/^/| /' conftest.$ac_ext >&5
20447
20448gdb_cv_have_struct_link_map_with_l_members=no
20449fi
20450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20451fi
20452
20453  echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20454echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
20455  if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
20456
20457cat >>confdefs.h <<\_ACEOF
20458#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
20459_ACEOF
20460
20461  fi
20462
20463
20464  echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20465echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
20466  if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20467  echo $ECHO_N "(cached) $ECHO_C" >&6
20468else
20469  cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h.  */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h.  */
20475#include <sys/types.h>
20476#include <link.h>
20477int
20478main ()
20479{
20480struct link_map lm; (void) lm.lm_addr;
20481  ;
20482  return 0;
20483}
20484_ACEOF
20485rm -f conftest.$ac_objext
20486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487  (eval $ac_compile) 2>conftest.er1
20488  ac_status=$?
20489  grep -v '^ *+' conftest.er1 >conftest.err
20490  rm -f conftest.er1
20491  cat conftest.err >&5
20492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493  (exit $ac_status); } &&
20494	 { ac_try='test -z "$ac_c_werror_flag"
20495			 || test ! -s conftest.err'
20496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497  (eval $ac_try) 2>&5
20498  ac_status=$?
20499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500  (exit $ac_status); }; } &&
20501	 { ac_try='test -s conftest.$ac_objext'
20502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503  (eval $ac_try) 2>&5
20504  ac_status=$?
20505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506  (exit $ac_status); }; }; then
20507  gdb_cv_have_struct_link_map_with_lm_members=yes
20508else
20509  echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512gdb_cv_have_struct_link_map_with_lm_members=no
20513fi
20514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20515fi
20516
20517  echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20518echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
20519  if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
20520
20521cat >>confdefs.h <<\_ACEOF
20522#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
20523_ACEOF
20524
20525  fi
20526
20527
20528  echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20529echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
20530  if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20531  echo $ECHO_N "(cached) $ECHO_C" >&6
20532else
20533  cat >conftest.$ac_ext <<_ACEOF
20534/* confdefs.h.  */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
20538/* end confdefs.h.  */
20539#include <sys/types.h>
20540#ifdef HAVE_NLIST_H
20541#include <nlist.h>
20542#endif
20543#include <link.h>
20544int
20545main ()
20546{
20547struct so_map lm; (void) lm.som_addr;
20548  ;
20549  return 0;
20550}
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554  (eval $ac_compile) 2>conftest.er1
20555  ac_status=$?
20556  grep -v '^ *+' conftest.er1 >conftest.err
20557  rm -f conftest.er1
20558  cat conftest.err >&5
20559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560  (exit $ac_status); } &&
20561	 { ac_try='test -z "$ac_c_werror_flag"
20562			 || test ! -s conftest.err'
20563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564  (eval $ac_try) 2>&5
20565  ac_status=$?
20566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567  (exit $ac_status); }; } &&
20568	 { ac_try='test -s conftest.$ac_objext'
20569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570  (eval $ac_try) 2>&5
20571  ac_status=$?
20572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573  (exit $ac_status); }; }; then
20574  gdb_cv_have_struct_so_map_with_som_members=yes
20575else
20576  echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579gdb_cv_have_struct_so_map_with_som_members=no
20580fi
20581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20582fi
20583
20584  echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20585echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
20586  if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
20587
20588cat >>confdefs.h <<\_ACEOF
20589#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
20590_ACEOF
20591
20592  fi
20593
20594
20595  echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20596echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
20597  if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20598  echo $ECHO_N "(cached) $ECHO_C" >&6
20599else
20600  cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h.  */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h.  */
20606#define _SYSCALL32
20607#include <sys/link.h>
20608int
20609main ()
20610{
20611struct link_map32 l;
20612  ;
20613  return 0;
20614}
20615_ACEOF
20616rm -f conftest.$ac_objext
20617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20618  (eval $ac_compile) 2>conftest.er1
20619  ac_status=$?
20620  grep -v '^ *+' conftest.er1 >conftest.err
20621  rm -f conftest.er1
20622  cat conftest.err >&5
20623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624  (exit $ac_status); } &&
20625	 { ac_try='test -z "$ac_c_werror_flag"
20626			 || test ! -s conftest.err'
20627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628  (eval $ac_try) 2>&5
20629  ac_status=$?
20630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631  (exit $ac_status); }; } &&
20632	 { ac_try='test -s conftest.$ac_objext'
20633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634  (eval $ac_try) 2>&5
20635  ac_status=$?
20636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637  (exit $ac_status); }; }; then
20638  gdb_cv_have_struct_link_map32=yes
20639else
20640  echo "$as_me: failed program was:" >&5
20641sed 's/^/| /' conftest.$ac_ext >&5
20642
20643gdb_cv_have_struct_link_map32=no
20644fi
20645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20646fi
20647
20648  echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20649echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
20650  if test $gdb_cv_have_struct_link_map32 = yes; then
20651
20652cat >>confdefs.h <<\_ACEOF
20653#define HAVE_STRUCT_LINK_MAP32 1
20654_ACEOF
20655
20656
20657cat >>confdefs.h <<\_ACEOF
20658#define _SYSCALL32 1
20659_ACEOF
20660
20661  fi
20662fi
20663
20664# Check if the compiler supports the `long long' type.
20665
20666echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20667echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
20668if test "${gdb_cv_c_long_long+set}" = set; then
20669  echo $ECHO_N "(cached) $ECHO_C" >&6
20670else
20671  cat >conftest.$ac_ext <<_ACEOF
20672/* confdefs.h.  */
20673_ACEOF
20674cat confdefs.h >>conftest.$ac_ext
20675cat >>conftest.$ac_ext <<_ACEOF
20676/* end confdefs.h.  */
20677extern long long foo;
20678int
20679main ()
20680{
20681switch (foo & 2) { case 0: return 1; }
20682  ;
20683  return 0;
20684}
20685_ACEOF
20686rm -f conftest.$ac_objext
20687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20688  (eval $ac_compile) 2>conftest.er1
20689  ac_status=$?
20690  grep -v '^ *+' conftest.er1 >conftest.err
20691  rm -f conftest.er1
20692  cat conftest.err >&5
20693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694  (exit $ac_status); } &&
20695	 { ac_try='test -z "$ac_c_werror_flag"
20696			 || test ! -s conftest.err'
20697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698  (eval $ac_try) 2>&5
20699  ac_status=$?
20700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701  (exit $ac_status); }; } &&
20702	 { ac_try='test -s conftest.$ac_objext'
20703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704  (eval $ac_try) 2>&5
20705  ac_status=$?
20706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707  (exit $ac_status); }; }; then
20708  gdb_cv_c_long_long=yes
20709else
20710  echo "$as_me: failed program was:" >&5
20711sed 's/^/| /' conftest.$ac_ext >&5
20712
20713gdb_cv_c_long_long=no
20714fi
20715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20716fi
20717echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20718echo "${ECHO_T}$gdb_cv_c_long_long" >&6
20719if test $gdb_cv_c_long_long = yes; then
20720
20721cat >>confdefs.h <<\_ACEOF
20722#define CC_HAS_LONG_LONG 1
20723_ACEOF
20724
20725fi
20726
20727# Check if the compiler and runtime support printing long longs.
20728
20729echo "$as_me:$LINENO: checking for long long support in printf" >&5
20730echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
20731if test "${gdb_cv_printf_has_long_long+set}" = set; then
20732  echo $ECHO_N "(cached) $ECHO_C" >&6
20733else
20734  if test "$cross_compiling" = yes; then
20735  gdb_cv_printf_has_long_long=no
20736else
20737  cat >conftest.$ac_ext <<_ACEOF
20738/* confdefs.h.  */
20739_ACEOF
20740cat confdefs.h >>conftest.$ac_ext
20741cat >>conftest.$ac_ext <<_ACEOF
20742/* end confdefs.h.  */
20743$ac_includes_default
20744int
20745main ()
20746{
20747char buf[32];
20748  long long l = 0;
20749  l = (l << 16) + 0x0123;
20750  l = (l << 16) + 0x4567;
20751  l = (l << 16) + 0x89ab;
20752  l = (l << 16) + 0xcdef;
20753  sprintf (buf, "0x%016llx", l);
20754  return (strcmp ("0x0123456789abcdef", buf));
20755  ;
20756  return 0;
20757}
20758_ACEOF
20759rm -f conftest$ac_exeext
20760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20761  (eval $ac_link) 2>&5
20762  ac_status=$?
20763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766  (eval $ac_try) 2>&5
20767  ac_status=$?
20768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769  (exit $ac_status); }; }; then
20770  gdb_cv_printf_has_long_long=yes
20771else
20772  echo "$as_me: program exited with status $ac_status" >&5
20773echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
20776( exit $ac_status )
20777gdb_cv_printf_has_long_long=no
20778fi
20779rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20780fi
20781fi
20782echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20783echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
20784if test $gdb_cv_printf_has_long_long = yes; then
20785
20786cat >>confdefs.h <<\_ACEOF
20787#define PRINTF_HAS_LONG_LONG 1
20788_ACEOF
20789
20790fi
20791
20792# Check if the compiler supports the `long double' type.  We can't use
20793# AC_C_LONG_DOUBLE because that one does additional checks on the
20794# constants defined in <float.h> that fail on some systems,
20795# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
20796
20797echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20798echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
20799if test "${gdb_cv_c_long_double+set}" = set; then
20800  echo $ECHO_N "(cached) $ECHO_C" >&6
20801else
20802  cat >conftest.$ac_ext <<_ACEOF
20803/* confdefs.h.  */
20804_ACEOF
20805cat confdefs.h >>conftest.$ac_ext
20806cat >>conftest.$ac_ext <<_ACEOF
20807/* end confdefs.h.  */
20808long double foo;
20809_ACEOF
20810rm -f conftest.$ac_objext
20811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812  (eval $ac_compile) 2>conftest.er1
20813  ac_status=$?
20814  grep -v '^ *+' conftest.er1 >conftest.err
20815  rm -f conftest.er1
20816  cat conftest.err >&5
20817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818  (exit $ac_status); } &&
20819	 { ac_try='test -z "$ac_c_werror_flag"
20820			 || test ! -s conftest.err'
20821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822  (eval $ac_try) 2>&5
20823  ac_status=$?
20824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825  (exit $ac_status); }; } &&
20826	 { ac_try='test -s conftest.$ac_objext'
20827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828  (eval $ac_try) 2>&5
20829  ac_status=$?
20830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831  (exit $ac_status); }; }; then
20832  gdb_cv_c_long_double=yes
20833else
20834  echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
20837gdb_cv_c_long_double=no
20838fi
20839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20840fi
20841echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20842echo "${ECHO_T}$gdb_cv_c_long_double" >&6
20843if test $gdb_cv_c_long_double = yes; then
20844
20845cat >>confdefs.h <<\_ACEOF
20846#define HAVE_LONG_DOUBLE 1
20847_ACEOF
20848
20849fi
20850
20851# Check if the compiler and runtime support printing long doubles.
20852
20853echo "$as_me:$LINENO: checking for long double support in printf" >&5
20854echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
20855if test "${gdb_cv_printf_has_long_double+set}" = set; then
20856  echo $ECHO_N "(cached) $ECHO_C" >&6
20857else
20858  if test "$cross_compiling" = yes; then
20859  gdb_cv_printf_has_long_double=no
20860else
20861  cat >conftest.$ac_ext <<_ACEOF
20862/* confdefs.h.  */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
20866/* end confdefs.h.  */
20867$ac_includes_default
20868int
20869main ()
20870{
20871char buf[16];
20872  long double f = 3.141592653;
20873  sprintf (buf, "%Lg", f);
20874  return (strncmp ("3.14159", buf, 7));
20875  ;
20876  return 0;
20877}
20878_ACEOF
20879rm -f conftest$ac_exeext
20880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20881  (eval $ac_link) 2>&5
20882  ac_status=$?
20883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886  (eval $ac_try) 2>&5
20887  ac_status=$?
20888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889  (exit $ac_status); }; }; then
20890  gdb_cv_printf_has_long_double=yes
20891else
20892  echo "$as_me: program exited with status $ac_status" >&5
20893echo "$as_me: failed program was:" >&5
20894sed 's/^/| /' conftest.$ac_ext >&5
20895
20896( exit $ac_status )
20897gdb_cv_printf_has_long_double=no
20898fi
20899rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20900fi
20901fi
20902echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20903echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
20904if test $gdb_cv_printf_has_long_double = yes; then
20905
20906cat >>confdefs.h <<\_ACEOF
20907#define PRINTF_HAS_LONG_DOUBLE 1
20908_ACEOF
20909
20910fi
20911
20912# Check if the compiler and runtime support scanning long doubles.
20913
20914echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20915echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
20916if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20917  echo $ECHO_N "(cached) $ECHO_C" >&6
20918else
20919  if test "$cross_compiling" = yes; then
20920  gdb_cv_scanf_has_long_double=no
20921else
20922  cat >conftest.$ac_ext <<_ACEOF
20923/* confdefs.h.  */
20924_ACEOF
20925cat confdefs.h >>conftest.$ac_ext
20926cat >>conftest.$ac_ext <<_ACEOF
20927/* end confdefs.h.  */
20928#include <stdio.h>
20929int
20930main ()
20931{
20932char *buf = "3.141592653";
20933  long double f = 0;
20934  sscanf (buf, "%Lg", &f);
20935  return !(f > 3.14159 && f < 3.14160);
20936  ;
20937  return 0;
20938}
20939_ACEOF
20940rm -f conftest$ac_exeext
20941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942  (eval $ac_link) 2>&5
20943  ac_status=$?
20944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947  (eval $ac_try) 2>&5
20948  ac_status=$?
20949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950  (exit $ac_status); }; }; then
20951  gdb_cv_scanf_has_long_double=yes
20952else
20953  echo "$as_me: program exited with status $ac_status" >&5
20954echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
20957( exit $ac_status )
20958gdb_cv_scanf_has_long_double=no
20959fi
20960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20961fi
20962fi
20963echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20964echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
20965if test $gdb_cv_scanf_has_long_double = yes; then
20966
20967cat >>confdefs.h <<\_ACEOF
20968#define SCANF_HAS_LONG_DOUBLE 1
20969_ACEOF
20970
20971fi
20972
20973case ${host_os} in
20974aix*)
20975  echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20976echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
20977if test "${gdb_cv_bigtoc+set}" = set; then
20978  echo $ECHO_N "(cached) $ECHO_C" >&6
20979else
20980
20981    SAVE_LDFLAGS=$LDFLAGS
20982
20983    case $GCC in
20984    yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20985    *) gdb_cv_bigtoc=-bbigtoc ;;
20986    esac
20987
20988    LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
20989    cat >conftest.$ac_ext <<_ACEOF
20990/* confdefs.h.  */
20991_ACEOF
20992cat confdefs.h >>conftest.$ac_ext
20993cat >>conftest.$ac_ext <<_ACEOF
20994/* end confdefs.h.  */
20995
20996int
20997main ()
20998{
20999int i;
21000  ;
21001  return 0;
21002}
21003_ACEOF
21004rm -f conftest.$ac_objext conftest$ac_exeext
21005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21006  (eval $ac_link) 2>conftest.er1
21007  ac_status=$?
21008  grep -v '^ *+' conftest.er1 >conftest.err
21009  rm -f conftest.er1
21010  cat conftest.err >&5
21011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012  (exit $ac_status); } &&
21013	 { ac_try='test -z "$ac_c_werror_flag"
21014			 || test ! -s conftest.err'
21015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016  (eval $ac_try) 2>&5
21017  ac_status=$?
21018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019  (exit $ac_status); }; } &&
21020	 { ac_try='test -s conftest$ac_exeext'
21021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022  (eval $ac_try) 2>&5
21023  ac_status=$?
21024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025  (exit $ac_status); }; }; then
21026  :
21027else
21028  echo "$as_me: failed program was:" >&5
21029sed 's/^/| /' conftest.$ac_ext >&5
21030
21031gdb_cv_bigtoc=
21032fi
21033rm -f conftest.err conftest.$ac_objext \
21034      conftest$ac_exeext conftest.$ac_ext
21035    LDFLAGS="${SAVE_LDFLAGS}"
21036
21037fi
21038echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21039echo "${ECHO_T}$gdb_cv_bigtoc" >&6
21040  CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21041  ;;
21042esac
21043
21044
21045
21046if test ${build} = ${host} -a ${host} = ${target} ; then
21047   case ${host_os} in
21048   hpux*)
21049      echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21050echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
21051      if test -f /usr/include/dce/cma_config.h ; then
21052         if test "$GCC" = "yes" ; then
21053            echo "$as_me:$LINENO: result: yes" >&5
21054echo "${ECHO_T}yes" >&6
21055
21056cat >>confdefs.h <<\_ACEOF
21057#define HAVE_HPUX_THREAD_SUPPORT 1
21058_ACEOF
21059
21060            CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
21061            CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21062         else
21063            echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21064echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
21065         fi
21066      else
21067         echo "$as_me:$LINENO: result: no" >&5
21068echo "${ECHO_T}no" >&6
21069      fi
21070      ;;
21071   solaris*)
21072      # See if thread_db library is around for Solaris thread debugging.
21073      # Note that we must explicitly test for version 1 of the library
21074      # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21075      # the same API.
21076      echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21077echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
21078      if test -f /usr/lib/libthread_db.so.1 ; then
21079         echo "$as_me:$LINENO: result: yes" >&5
21080echo "${ECHO_T}yes" >&6
21081
21082cat >>confdefs.h <<\_ACEOF
21083#define HAVE_THREAD_DB_LIB 1
21084_ACEOF
21085
21086         CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
21087         CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
21088
21089echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21090echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21091if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21092  echo $ECHO_N "(cached) $ECHO_C" >&6
21093else
21094  ac_check_lib_save_LIBS=$LIBS
21095LIBS="-ldl  $LIBS"
21096cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h.  */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h.  */
21102
21103/* Override any gcc2 internal prototype to avoid an error.  */
21104#ifdef __cplusplus
21105extern "C"
21106#endif
21107/* We use char because int might match the return type of a gcc2
21108   builtin and then its argument prototype would still apply.  */
21109char dlopen ();
21110int
21111main ()
21112{
21113dlopen ();
21114  ;
21115  return 0;
21116}
21117_ACEOF
21118rm -f conftest.$ac_objext conftest$ac_exeext
21119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21120  (eval $ac_link) 2>conftest.er1
21121  ac_status=$?
21122  grep -v '^ *+' conftest.er1 >conftest.err
21123  rm -f conftest.er1
21124  cat conftest.err >&5
21125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126  (exit $ac_status); } &&
21127	 { ac_try='test -z "$ac_c_werror_flag"
21128			 || test ! -s conftest.err'
21129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130  (eval $ac_try) 2>&5
21131  ac_status=$?
21132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133  (exit $ac_status); }; } &&
21134	 { ac_try='test -s conftest$ac_exeext'
21135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136  (eval $ac_try) 2>&5
21137  ac_status=$?
21138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139  (exit $ac_status); }; }; then
21140  ac_cv_lib_dl_dlopen=yes
21141else
21142  echo "$as_me: failed program was:" >&5
21143sed 's/^/| /' conftest.$ac_ext >&5
21144
21145ac_cv_lib_dl_dlopen=no
21146fi
21147rm -f conftest.err conftest.$ac_objext \
21148      conftest$ac_exeext conftest.$ac_ext
21149LIBS=$ac_check_lib_save_LIBS
21150fi
21151echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21152echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21153if test $ac_cv_lib_dl_dlopen = yes; then
21154  cat >>confdefs.h <<_ACEOF
21155#define HAVE_LIBDL 1
21156_ACEOF
21157
21158  LIBS="-ldl $LIBS"
21159
21160fi
21161
21162         if test "$GCC" = "yes" ; then
21163            # The GNU linker requires the -export-dynamic option to make
21164            # all symbols visible in the dynamic symbol table.
21165            hold_ldflags=$LDFLAGS
21166            echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21167echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
21168            LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
21169            cat >conftest.$ac_ext <<_ACEOF
21170/* confdefs.h.  */
21171_ACEOF
21172cat confdefs.h >>conftest.$ac_ext
21173cat >>conftest.$ac_ext <<_ACEOF
21174/* end confdefs.h.  */
21175
21176int
21177main ()
21178{
21179int i;
21180  ;
21181  return 0;
21182}
21183_ACEOF
21184rm -f conftest.$ac_objext conftest$ac_exeext
21185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21186  (eval $ac_link) 2>conftest.er1
21187  ac_status=$?
21188  grep -v '^ *+' conftest.er1 >conftest.err
21189  rm -f conftest.er1
21190  cat conftest.err >&5
21191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192  (exit $ac_status); } &&
21193	 { ac_try='test -z "$ac_c_werror_flag"
21194			 || test ! -s conftest.err'
21195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196  (eval $ac_try) 2>&5
21197  ac_status=$?
21198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199  (exit $ac_status); }; } &&
21200	 { ac_try='test -s conftest$ac_exeext'
21201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202  (eval $ac_try) 2>&5
21203  ac_status=$?
21204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205  (exit $ac_status); }; }; then
21206  found=yes
21207else
21208  echo "$as_me: failed program was:" >&5
21209sed 's/^/| /' conftest.$ac_ext >&5
21210
21211found=no
21212fi
21213rm -f conftest.err conftest.$ac_objext \
21214      conftest$ac_exeext conftest.$ac_ext
21215            LDFLAGS=$hold_ldflags
21216            echo "$as_me:$LINENO: result: $found" >&5
21217echo "${ECHO_T}$found" >&6
21218            if test $found = yes; then
21219               CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21220            fi
21221         fi
21222	 # Sun randomly tweaked the prototypes in <proc_service.h>
21223	 # at one point.
21224	 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21225echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
21226	 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21227  echo $ECHO_N "(cached) $ECHO_C" >&6
21228else
21229
21230	    cat >conftest.$ac_ext <<_ACEOF
21231/* confdefs.h.  */
21232_ACEOF
21233cat confdefs.h >>conftest.$ac_ext
21234cat >>conftest.$ac_ext <<_ACEOF
21235/* end confdefs.h.  */
21236
21237		#include <proc_service.h>
21238		ps_err_e ps_pdwrite
21239		    (struct ps_prochandle*, psaddr_t, const void*, size_t);
21240
21241int
21242main ()
21243{
21244
21245  ;
21246  return 0;
21247}
21248_ACEOF
21249rm -f conftest.$ac_objext
21250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21251  (eval $ac_compile) 2>conftest.er1
21252  ac_status=$?
21253  grep -v '^ *+' conftest.er1 >conftest.err
21254  rm -f conftest.er1
21255  cat conftest.err >&5
21256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257  (exit $ac_status); } &&
21258	 { ac_try='test -z "$ac_c_werror_flag"
21259			 || test ! -s conftest.err'
21260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261  (eval $ac_try) 2>&5
21262  ac_status=$?
21263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264  (exit $ac_status); }; } &&
21265	 { ac_try='test -s conftest.$ac_objext'
21266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267  (eval $ac_try) 2>&5
21268  ac_status=$?
21269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270  (exit $ac_status); }; }; then
21271  gdb_cv_proc_service_is_old=no
21272else
21273  echo "$as_me: failed program was:" >&5
21274sed 's/^/| /' conftest.$ac_ext >&5
21275
21276gdb_cv_proc_service_is_old=yes
21277fi
21278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21279
21280fi
21281
21282	 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21283echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
21284	 if test $gdb_cv_proc_service_is_old = yes; then
21285
21286cat >>confdefs.h <<\_ACEOF
21287#define PROC_SERVICE_IS_OLD 1
21288_ACEOF
21289
21290	 fi
21291      else
21292         echo "$as_me:$LINENO: result: no" >&5
21293echo "${ECHO_T}no" >&6
21294      fi
21295      ;;
21296   aix*)
21297      echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21298echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
21299      if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21300  echo $ECHO_N "(cached) $ECHO_C" >&6
21301else
21302  cat >conftest.$ac_ext <<_ACEOF
21303/* confdefs.h.  */
21304_ACEOF
21305cat confdefs.h >>conftest.$ac_ext
21306cat >>conftest.$ac_ext <<_ACEOF
21307/* end confdefs.h.  */
21308#include <sys/pthdebug.h>
21309int
21310main ()
21311{
21312#ifndef PTHDB_VERSION_3
21313                                    #error
21314                                    #endif
21315  ;
21316  return 0;
21317}
21318_ACEOF
21319rm -f conftest.$ac_objext
21320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21321  (eval $ac_compile) 2>conftest.er1
21322  ac_status=$?
21323  grep -v '^ *+' conftest.er1 >conftest.err
21324  rm -f conftest.er1
21325  cat conftest.err >&5
21326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327  (exit $ac_status); } &&
21328	 { ac_try='test -z "$ac_c_werror_flag"
21329			 || test ! -s conftest.err'
21330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331  (eval $ac_try) 2>&5
21332  ac_status=$?
21333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334  (exit $ac_status); }; } &&
21335	 { ac_try='test -s conftest.$ac_objext'
21336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337  (eval $ac_try) 2>&5
21338  ac_status=$?
21339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340  (exit $ac_status); }; }; then
21341  gdb_cv_have_aix_thread_debug=yes
21342else
21343  echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
21346gdb_cv_have_aix_thread_debug=no
21347fi
21348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21349fi
21350
21351      echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21352echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
21353      if test $gdb_cv_have_aix_thread_debug = yes; then
21354         CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
21355         CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
21356         CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21357      fi
21358      ;;
21359   esac
21360
21361fi
21362
21363if test "x$ac_cv_header_thread_db_h" = "xyes"; then
21364   echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21365echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
21366if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21367  echo $ECHO_N "(cached) $ECHO_C" >&6
21368else
21369  cat >conftest.$ac_ext <<_ACEOF
21370/* confdefs.h.  */
21371_ACEOF
21372cat confdefs.h >>conftest.$ac_ext
21373cat >>conftest.$ac_ext <<_ACEOF
21374/* end confdefs.h.  */
21375#include <thread_db.h>
21376int
21377main ()
21378{
21379int i = TD_NOTALLOC;
21380  ;
21381  return 0;
21382}
21383_ACEOF
21384rm -f conftest.$ac_objext
21385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21386  (eval $ac_compile) 2>conftest.er1
21387  ac_status=$?
21388  grep -v '^ *+' conftest.er1 >conftest.err
21389  rm -f conftest.er1
21390  cat conftest.err >&5
21391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392  (exit $ac_status); } &&
21393	 { ac_try='test -z "$ac_c_werror_flag"
21394			 || test ! -s conftest.err'
21395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396  (eval $ac_try) 2>&5
21397  ac_status=$?
21398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399  (exit $ac_status); }; } &&
21400	 { ac_try='test -s conftest.$ac_objext'
21401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402  (eval $ac_try) 2>&5
21403  ac_status=$?
21404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405  (exit $ac_status); }; }; then
21406  gdb_cv_thread_db_h_has_td_notalloc=yes
21407else
21408  echo "$as_me: failed program was:" >&5
21409sed 's/^/| /' conftest.$ac_ext >&5
21410
21411gdb_cv_thread_db_h_has_td_notalloc=no
21412
21413fi
21414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21415
21416fi
21417echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21418echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
21419   echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21420echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21421if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21422  echo $ECHO_N "(cached) $ECHO_C" >&6
21423else
21424  cat >conftest.$ac_ext <<_ACEOF
21425/* confdefs.h.  */
21426_ACEOF
21427cat confdefs.h >>conftest.$ac_ext
21428cat >>conftest.$ac_ext <<_ACEOF
21429/* end confdefs.h.  */
21430#include <thread_db.h>
21431int
21432main ()
21433{
21434int i = TD_VERSION;
21435  ;
21436  return 0;
21437}
21438_ACEOF
21439rm -f conftest.$ac_objext
21440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21441  (eval $ac_compile) 2>conftest.er1
21442  ac_status=$?
21443  grep -v '^ *+' conftest.er1 >conftest.err
21444  rm -f conftest.er1
21445  cat conftest.err >&5
21446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447  (exit $ac_status); } &&
21448	 { ac_try='test -z "$ac_c_werror_flag"
21449			 || test ! -s conftest.err'
21450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451  (eval $ac_try) 2>&5
21452  ac_status=$?
21453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454  (exit $ac_status); }; } &&
21455	 { ac_try='test -s conftest.$ac_objext'
21456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457  (eval $ac_try) 2>&5
21458  ac_status=$?
21459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460  (exit $ac_status); }; }; then
21461  gdb_cv_thread_db_h_has_td_version=yes
21462else
21463  echo "$as_me: failed program was:" >&5
21464sed 's/^/| /' conftest.$ac_ext >&5
21465
21466gdb_cv_thread_db_h_has_td_version=no
21467
21468fi
21469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21470
21471fi
21472echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21473echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21474   echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21475echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21476if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21477  echo $ECHO_N "(cached) $ECHO_C" >&6
21478else
21479  cat >conftest.$ac_ext <<_ACEOF
21480/* confdefs.h.  */
21481_ACEOF
21482cat confdefs.h >>conftest.$ac_ext
21483cat >>conftest.$ac_ext <<_ACEOF
21484/* end confdefs.h.  */
21485#include <thread_db.h>
21486int
21487main ()
21488{
21489int i = TD_NOTLS;
21490  ;
21491  return 0;
21492}
21493_ACEOF
21494rm -f conftest.$ac_objext
21495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21496  (eval $ac_compile) 2>conftest.er1
21497  ac_status=$?
21498  grep -v '^ *+' conftest.er1 >conftest.err
21499  rm -f conftest.er1
21500  cat conftest.err >&5
21501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502  (exit $ac_status); } &&
21503	 { ac_try='test -z "$ac_c_werror_flag"
21504			 || test ! -s conftest.err'
21505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506  (eval $ac_try) 2>&5
21507  ac_status=$?
21508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509  (exit $ac_status); }; } &&
21510	 { ac_try='test -s conftest.$ac_objext'
21511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512  (eval $ac_try) 2>&5
21513  ac_status=$?
21514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515  (exit $ac_status); }; }; then
21516  gdb_cv_thread_db_h_has_td_notls=yes
21517else
21518  echo "$as_me: failed program was:" >&5
21519sed 's/^/| /' conftest.$ac_ext >&5
21520
21521gdb_cv_thread_db_h_has_td_notls=no
21522
21523fi
21524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21525
21526fi
21527echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21528echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
21529fi
21530if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
21531
21532cat >>confdefs.h <<\_ACEOF
21533#define THREAD_DB_HAS_TD_NOTALLOC 1
21534_ACEOF
21535
21536fi
21537if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21538
21539cat >>confdefs.h <<\_ACEOF
21540#define THREAD_DB_HAS_TD_VERSION 1
21541_ACEOF
21542
21543fi
21544if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21545
21546cat >>confdefs.h <<\_ACEOF
21547#define THREAD_DB_HAS_TD_NOTLS 1
21548_ACEOF
21549
21550fi
21551
21552if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
21553   echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21554echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
21555if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21556  echo $ECHO_N "(cached) $ECHO_C" >&6
21557else
21558  cat >conftest.$ac_ext <<_ACEOF
21559/* confdefs.h.  */
21560_ACEOF
21561cat confdefs.h >>conftest.$ac_ext
21562cat >>conftest.$ac_ext <<_ACEOF
21563/* end confdefs.h.  */
21564#include <sys/syscall.h>
21565int
21566main ()
21567{
21568int i = __NR_tkill;
21569  ;
21570  return 0;
21571}
21572_ACEOF
21573rm -f conftest.$ac_objext
21574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21575  (eval $ac_compile) 2>conftest.er1
21576  ac_status=$?
21577  grep -v '^ *+' conftest.er1 >conftest.err
21578  rm -f conftest.er1
21579  cat conftest.err >&5
21580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581  (exit $ac_status); } &&
21582	 { ac_try='test -z "$ac_c_werror_flag"
21583			 || test ! -s conftest.err'
21584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585  (eval $ac_try) 2>&5
21586  ac_status=$?
21587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588  (exit $ac_status); }; } &&
21589	 { ac_try='test -s conftest.$ac_objext'
21590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591  (eval $ac_try) 2>&5
21592  ac_status=$?
21593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594  (exit $ac_status); }; }; then
21595  gdb_cv_sys_syscall_h_has_tkill=yes
21596else
21597  echo "$as_me: failed program was:" >&5
21598sed 's/^/| /' conftest.$ac_ext >&5
21599
21600gdb_cv_sys_syscall_h_has_tkill=no
21601
21602fi
21603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21604
21605fi
21606echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21607echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
21608fi
21609if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
21610
21611cat >>confdefs.h <<\_ACEOF
21612#define HAVE_TKILL_SYSCALL 1
21613_ACEOF
21614
21615fi
21616
21617
21618
21619# Check whether --with-sysroot or --without-sysroot was given.
21620if test "${with_sysroot+set}" = set; then
21621  withval="$with_sysroot"
21622
21623 case ${with_sysroot} in
21624 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
21625 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21626 esac
21627
21628 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21629
21630 if test "x$prefix" = xNONE; then
21631  test_prefix=/usr/local
21632 else
21633  test_prefix=$prefix
21634 fi
21635 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
21636  test_exec_prefix=$test_prefix
21637 else
21638  test_exec_prefix=$exec_prefix
21639 fi
21640 case ${TARGET_SYSTEM_ROOT} in
21641 "${test_prefix}"|"${test_prefix}/"*|\
21642 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
21643 '${prefix}'|'${prefix}/'*|\
21644 '${exec_prefix}'|'${exec_prefix}/'*)
21645   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21646   TARGET_SYSTEM_ROOT_DEFINE="$t"
21647   ;;
21648 esac
21649
21650else
21651
21652 TARGET_SYSTEM_ROOT=
21653 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21654
21655fi;
21656
21657
21658
21659# Check whether --enable-werror or --disable-werror was given.
21660if test "${enable_werror+set}" = set; then
21661  enableval="$enable_werror"
21662  case "${enableval}" in
21663     yes | y) ERROR_ON_WARNING="yes" ;;
21664     no | n)  ERROR_ON_WARNING="no" ;;
21665     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21666echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21667   { (exit 1); exit 1; }; } ;;
21668   esac
21669fi;
21670
21671# Enable -Werror by default when using gcc
21672if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21673    ERROR_ON_WARNING=yes
21674fi
21675
21676WERROR_CFLAGS=""
21677if test "${ERROR_ON_WARNING}" = yes ; then
21678    WERROR_CFLAGS="-Werror"
21679fi
21680
21681# The entries after -Wno-pointer-sign are disabled warnings which may
21682# be enabled in the future, which can not currently be used to build
21683# GDB.
21684# NOTE: If you change this list, remember to update
21685# gdb/doc/gdbint.texinfo.
21686build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21687-Wformat-nonliteral -Wno-pointer-sign \
21688-Wno-unused -Wno-switch -Wno-char-subscripts"
21689
21690# Check whether --enable-build-warnings or --disable-build-warnings was given.
21691if test "${enable_build_warnings+set}" = set; then
21692  enableval="$enable_build_warnings"
21693  case "${enableval}" in
21694  yes)	;;
21695  no)	build_warnings="-w";;
21696  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
21697        build_warnings="${build_warnings} ${t}";;
21698  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
21699        build_warnings="${t} ${build_warnings}";;
21700  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21701esac
21702if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21703  echo "Setting compiler warning flags = $build_warnings" 6>&1
21704fi
21705fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
21706if test "${enable_gdb_build_warnings+set}" = set; then
21707  enableval="$enable_gdb_build_warnings"
21708  case "${enableval}" in
21709  yes)	;;
21710  no)	build_warnings="-w";;
21711  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
21712        build_warnings="${build_warnings} ${t}";;
21713  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
21714        build_warnings="${t} ${build_warnings}";;
21715  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21716esac
21717if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21718  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21719fi
21720fi; WARN_CFLAGS=""
21721if test "x${build_warnings}" != x -a "x$GCC" = xyes
21722then
21723    echo "$as_me:$LINENO: checking compiler warning flags" >&5
21724echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
21725    # Separate out the -Werror flag as some files just cannot be
21726    # compiled with it enabled.
21727    for w in ${build_warnings}; do
21728	case $w in
21729	-Werr*) WERROR_CFLAGS=-Werror ;;
21730	*) # Check that GCC accepts it
21731	    saved_CFLAGS="$CFLAGS"
21732	    CFLAGS="$CFLAGS $w"
21733	    cat >conftest.$ac_ext <<_ACEOF
21734/* confdefs.h.  */
21735_ACEOF
21736cat confdefs.h >>conftest.$ac_ext
21737cat >>conftest.$ac_ext <<_ACEOF
21738/* end confdefs.h.  */
21739
21740int
21741main ()
21742{
21743
21744  ;
21745  return 0;
21746}
21747_ACEOF
21748rm -f conftest.$ac_objext
21749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21750  (eval $ac_compile) 2>conftest.er1
21751  ac_status=$?
21752  grep -v '^ *+' conftest.er1 >conftest.err
21753  rm -f conftest.er1
21754  cat conftest.err >&5
21755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756  (exit $ac_status); } &&
21757	 { ac_try='test -z "$ac_c_werror_flag"
21758			 || test ! -s conftest.err'
21759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760  (eval $ac_try) 2>&5
21761  ac_status=$?
21762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763  (exit $ac_status); }; } &&
21764	 { ac_try='test -s conftest.$ac_objext'
21765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766  (eval $ac_try) 2>&5
21767  ac_status=$?
21768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769  (exit $ac_status); }; }; then
21770  WARN_CFLAGS="${WARN_CFLAGS} $w"
21771else
21772  echo "$as_me: failed program was:" >&5
21773sed 's/^/| /' conftest.$ac_ext >&5
21774
21775fi
21776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21777	    CFLAGS="$saved_CFLAGS"
21778	esac
21779    done
21780    echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21781echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
21782fi
21783
21784
21785
21786# In the Cygwin environment, we need some additional flags.
21787echo "$as_me:$LINENO: checking for cygwin" >&5
21788echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
21789if test "${gdb_cv_os_cygwin+set}" = set; then
21790  echo $ECHO_N "(cached) $ECHO_C" >&6
21791else
21792  cat >conftest.$ac_ext <<_ACEOF
21793/* confdefs.h.  */
21794_ACEOF
21795cat confdefs.h >>conftest.$ac_ext
21796cat >>conftest.$ac_ext <<_ACEOF
21797/* end confdefs.h.  */
21798
21799#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21800lose
21801#endif
21802_ACEOF
21803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21804  $EGREP "lose" >/dev/null 2>&1; then
21805  gdb_cv_os_cygwin=yes
21806else
21807  gdb_cv_os_cygwin=no
21808fi
21809rm -f conftest*
21810
21811fi
21812echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21813echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
21814
21815
21816SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
21817case ${host} in
21818  *go32* ) SER_HARDWIRE=ser-go32.o ;;
21819  *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
21820  *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
21821esac
21822
21823
21824# libreadline needs libuser32.a in a cygwin environment
21825WIN32LIBS=
21826if test x$gdb_cv_os_cygwin = xyes; then
21827    WIN32LIBS="-luser32"
21828    case "${target}" in
21829	*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21830	;;
21831    esac
21832fi
21833
21834# The ser-tcp.c module requires sockets.
21835case ${host} in
21836  *mingw32*)
21837
21838cat >>confdefs.h <<\_ACEOF
21839#define USE_WIN32API 1
21840_ACEOF
21841
21842    WIN32LIBS="$WIN32LIBS -lws2_32"
21843    ;;
21844esac
21845
21846
21847# Add ELF support to GDB, but only if BFD includes ELF support.
21848OLD_CFLAGS=$CFLAGS
21849OLD_LDFLAGS=$LDFLAGS
21850OLD_LIBS=$LIBS
21851CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
21852LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
21853intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
21854LIBS="$LIBS -lbfd -liberty $intl"
21855echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
21856echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
21857if test "${gdb_cv_var_elf+set}" = set; then
21858  echo $ECHO_N "(cached) $ECHO_C" >&6
21859else
21860  cat >conftest.$ac_ext <<_ACEOF
21861/* confdefs.h.  */
21862_ACEOF
21863cat confdefs.h >>conftest.$ac_ext
21864cat >>conftest.$ac_ext <<_ACEOF
21865/* end confdefs.h.  */
21866#include <stdlib.h>
21867#include "bfd.h"
21868#include "elf-bfd.h"
21869
21870int
21871main ()
21872{
21873bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
21874  ;
21875  return 0;
21876}
21877_ACEOF
21878rm -f conftest.$ac_objext conftest$ac_exeext
21879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21880  (eval $ac_link) 2>conftest.er1
21881  ac_status=$?
21882  grep -v '^ *+' conftest.er1 >conftest.err
21883  rm -f conftest.er1
21884  cat conftest.err >&5
21885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886  (exit $ac_status); } &&
21887	 { ac_try='test -z "$ac_c_werror_flag"
21888			 || test ! -s conftest.err'
21889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890  (eval $ac_try) 2>&5
21891  ac_status=$?
21892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893  (exit $ac_status); }; } &&
21894	 { ac_try='test -s conftest$ac_exeext'
21895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896  (eval $ac_try) 2>&5
21897  ac_status=$?
21898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899  (exit $ac_status); }; }; then
21900  gdb_cv_var_elf=yes
21901else
21902  echo "$as_me: failed program was:" >&5
21903sed 's/^/| /' conftest.$ac_ext >&5
21904
21905gdb_cv_var_elf=no
21906fi
21907rm -f conftest.err conftest.$ac_objext \
21908      conftest$ac_exeext conftest.$ac_ext
21909fi
21910echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
21911echo "${ECHO_T}$gdb_cv_var_elf" >&6
21912if test $gdb_cv_var_elf = yes; then
21913  CONFIG_OBS="$CONFIG_OBS elfread.o"
21914
21915cat >>confdefs.h <<\_ACEOF
21916#define HAVE_ELF 1
21917_ACEOF
21918
21919fi
21920CFLAGS=$OLD_CFLAGS
21921LDFLAGS=$OLD_LDFLAGS
21922LIBS=$OLD_LIBS
21923
21924# Add any host-specific objects to GDB.
21925CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21926
21927LIBGUI="../libgui/src/libgui.a"
21928GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21929
21930
21931
21932WIN32LDAPP=
21933
21934
21935
21936case "${host}" in
21937*-*-cygwin*)
21938    configdir="win"
21939    ;;
21940*)
21941    configdir="unix"
21942    ;;
21943esac
21944
21945GDBTKLIBS=
21946if test "${enable_gdbtk}" = "yes"; then
21947
21948    # Gdbtk must have an absolute path to srcdir in order to run
21949    # properly when not installed.
21950    here=`pwd`
21951    cd ${srcdir}
21952    GDBTK_SRC_DIR=`pwd`
21953    cd $here
21954
21955
21956#
21957# Ok, lets find the tcl configuration
21958# First, look for one uninstalled.
21959# the alternative search directory is invoked by --with-tclconfig
21960#
21961
21962if test x"${no_tcl}" = x ; then
21963  # we reset no_tcl in case something fails here
21964  no_tcl=true
21965
21966# Check whether --with-tclconfig or --without-tclconfig was given.
21967if test "${with_tclconfig+set}" = set; then
21968  withval="$with_tclconfig"
21969  with_tclconfig=${withval}
21970fi;
21971  echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21972echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
21973  if test "${ac_cv_c_tclconfig+set}" = set; then
21974  echo $ECHO_N "(cached) $ECHO_C" >&6
21975else
21976
21977
21978  # First check to see if --with-tclconfig was specified.
21979  if test x"${with_tclconfig}" != x ; then
21980    if test -f "${with_tclconfig}/tclConfig.sh" ; then
21981      ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21982    else
21983      { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21984echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21985   { (exit 1); exit 1; }; }
21986    fi
21987  fi
21988
21989  # then check for a private Tcl installation
21990  if test x"${ac_cv_c_tclconfig}" = x ; then
21991    for i in \
21992		../tcl \
21993		`ls -dr ../tcl[7-9]* 2>/dev/null` \
21994		../../tcl \
21995		`ls -dr ../../tcl[7-9]* 2>/dev/null` \
21996		../../../tcl \
21997		`ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21998      if test -f "$i/${configdir}/tclConfig.sh" ; then
21999        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22000	break
22001      fi
22002    done
22003  fi
22004  # check in a few common install locations
22005  if test x"${ac_cv_c_tclconfig}" = x ; then
22006    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22007      if test -f "$i/tclConfig.sh" ; then
22008        ac_cv_c_tclconfig=`(cd $i; pwd)`
22009	break
22010      fi
22011    done
22012  fi
22013  # check in a few other private locations
22014  if test x"${ac_cv_c_tclconfig}" = x ; then
22015    for i in \
22016		${srcdir}/../tcl \
22017		`ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22018      if test -f "$i/${configdir}/tclConfig.sh" ; then
22019        ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22020	break
22021      fi
22022    done
22023  fi
22024
22025fi
22026
22027  if test x"${ac_cv_c_tclconfig}" = x ; then
22028    TCLCONFIG="# no Tcl configs found"
22029    { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22030echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
22031  else
22032    no_tcl=
22033    TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
22034    echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22035echo "${ECHO_T}found $TCLCONFIG" >&6
22036  fi
22037fi
22038
22039    if test -z "${no_tcl}"; then
22040
22041    . $TCLCONFIG
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069#
22070# Ok, lets find the tk configuration
22071# First, look for one uninstalled.
22072# the alternative search directory is invoked by --with-tkconfig
22073#
22074
22075if test x"${no_tk}" = x ; then
22076  # we reset no_tk in case something fails here
22077  no_tk=true
22078
22079# Check whether --with-tkconfig or --without-tkconfig was given.
22080if test "${with_tkconfig+set}" = set; then
22081  withval="$with_tkconfig"
22082  with_tkconfig=${withval}
22083fi;
22084  echo "$as_me:$LINENO: checking for Tk configuration" >&5
22085echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
22086  if test "${ac_cv_c_tkconfig+set}" = set; then
22087  echo $ECHO_N "(cached) $ECHO_C" >&6
22088else
22089
22090
22091  # First check to see if --with-tkconfig was specified.
22092  if test x"${with_tkconfig}" != x ; then
22093    if test -f "${with_tkconfig}/tkConfig.sh" ; then
22094      ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22095    else
22096      { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22097echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22098   { (exit 1); exit 1; }; }
22099    fi
22100  fi
22101
22102  # then check for a private Tk library
22103  if test x"${ac_cv_c_tkconfig}" = x ; then
22104    for i in \
22105		../tk \
22106		`ls -dr ../tk[4-9]* 2>/dev/null` \
22107		../../tk \
22108		`ls -dr ../../tk[4-9]* 2>/dev/null` \
22109		../../../tk \
22110		`ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22111      if test -f "$i/${configdir}/tkConfig.sh" ; then
22112        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22113	break
22114      fi
22115    done
22116  fi
22117  # check in a few common install locations
22118  if test x"${ac_cv_c_tkconfig}" = x ; then
22119    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22120      if test -f "$i/tkConfig.sh" ; then
22121        ac_cv_c_tkconfig=`(cd $i; pwd)`
22122	break
22123      fi
22124    done
22125  fi
22126  # check in a few other private locations
22127  if test x"${ac_cv_c_tkconfig}" = x ; then
22128    for i in \
22129		${srcdir}/../tk \
22130		`ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22131      if test -f "$i/${configdir}/tkConfig.sh" ; then
22132        ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22133	break
22134      fi
22135    done
22136  fi
22137
22138fi
22139
22140  if test x"${ac_cv_c_tkconfig}" = x ; then
22141    TKCONFIG="# no Tk configs found"
22142    { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22143echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
22144  else
22145    no_tk=
22146    TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
22147    echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22148echo "${ECHO_T}found $TKCONFIG" >&6
22149  fi
22150fi
22151
22152
22153
22154	# now look for Tcl library stuff
22155
22156	tcldir="../tcl/${configdir}/"
22157
22158	TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22159
22160	# If $no_tk is nonempty, then we can't do Tk, and there is no
22161	# point to doing Tcl.
22162	if test -z "${no_tk}"; then
22163
22164    if test -f "$TKCONFIG" ; then
22165      . $TKCONFIG
22166    fi
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181#
22182# Ok, lets find the tcl source trees so we can use the headers
22183# Warning: transition of version 9 to 10 will break this algorithm
22184# because 10 sorts before 9. We also look for just tcl. We have to
22185# be careful that we don't match stuff like tclX by accident.
22186# the alternative search directory is involked by --with-tclinclude
22187#
22188
22189no_tcl=true
22190echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22191echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
22192
22193# Check whether --with-tclinclude or --without-tclinclude was given.
22194if test "${with_tclinclude+set}" = set; then
22195  withval="$with_tclinclude"
22196  with_tclinclude=${withval}
22197fi;
22198if test "${ac_cv_c_tclh+set}" = set; then
22199  echo $ECHO_N "(cached) $ECHO_C" >&6
22200else
22201
22202# first check to see if --with-tclinclude was specified
22203if test x"${with_tclinclude}" != x ; then
22204  if test -f ${with_tclinclude}/tclInt.h ; then
22205    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22206  elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22207    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22208  else
22209    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22210echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22211   { (exit 1); exit 1; }; }
22212  fi
22213fi
22214
22215# next check if it came with Tcl configuration file
22216if test x"${ac_cv_c_tclconfig}" = x ; then
22217  if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22218    ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22219  fi
22220fi
22221
22222# next check in private source directory
22223#
22224# since ls returns lowest version numbers first, reverse its output
22225if test x"${ac_cv_c_tclh}" = x ; then
22226  for i in \
22227		${srcdir}/../tcl \
22228		`ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22229		${srcdir}/../../tcl \
22230		`ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22231		${srcdir}/../../../tcl \
22232		`ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22233    if test -f $i/generic/tclInt.h ; then
22234      ac_cv_c_tclh=`(cd $i/generic; pwd)`
22235      break
22236    fi
22237  done
22238fi
22239# finally check in a few common install locations
22240#
22241# since ls returns lowest version numbers first, reverse its output
22242if test x"${ac_cv_c_tclh}" = x ; then
22243  for i in \
22244		`ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22245		`ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22246		/usr/local/src/tcl \
22247		/usr/local/lib/tcl \
22248		${prefix}/include ; do
22249    if test -f $i/generic/tclInt.h ; then
22250      ac_cv_c_tclh=`(cd $i/generic; pwd)`
22251      break
22252    fi
22253  done
22254fi
22255# see if one is installed
22256if test x"${ac_cv_c_tclh}" = x ; then
22257   if test "${ac_cv_header_tclInt_h+set}" = set; then
22258  echo "$as_me:$LINENO: checking for tclInt.h" >&5
22259echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22260if test "${ac_cv_header_tclInt_h+set}" = set; then
22261  echo $ECHO_N "(cached) $ECHO_C" >&6
22262fi
22263echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22264echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22265else
22266  # Is the header compilable?
22267echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22268echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
22269cat >conftest.$ac_ext <<_ACEOF
22270/* confdefs.h.  */
22271_ACEOF
22272cat confdefs.h >>conftest.$ac_ext
22273cat >>conftest.$ac_ext <<_ACEOF
22274/* end confdefs.h.  */
22275$ac_includes_default
22276#include <tclInt.h>
22277_ACEOF
22278rm -f conftest.$ac_objext
22279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22280  (eval $ac_compile) 2>conftest.er1
22281  ac_status=$?
22282  grep -v '^ *+' conftest.er1 >conftest.err
22283  rm -f conftest.er1
22284  cat conftest.err >&5
22285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286  (exit $ac_status); } &&
22287	 { ac_try='test -z "$ac_c_werror_flag"
22288			 || test ! -s conftest.err'
22289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290  (eval $ac_try) 2>&5
22291  ac_status=$?
22292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293  (exit $ac_status); }; } &&
22294	 { ac_try='test -s conftest.$ac_objext'
22295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296  (eval $ac_try) 2>&5
22297  ac_status=$?
22298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299  (exit $ac_status); }; }; then
22300  ac_header_compiler=yes
22301else
22302  echo "$as_me: failed program was:" >&5
22303sed 's/^/| /' conftest.$ac_ext >&5
22304
22305ac_header_compiler=no
22306fi
22307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22308echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22309echo "${ECHO_T}$ac_header_compiler" >&6
22310
22311# Is the header present?
22312echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22313echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
22314cat >conftest.$ac_ext <<_ACEOF
22315/* confdefs.h.  */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h.  */
22320#include <tclInt.h>
22321_ACEOF
22322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22323  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22324  ac_status=$?
22325  grep -v '^ *+' conftest.er1 >conftest.err
22326  rm -f conftest.er1
22327  cat conftest.err >&5
22328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329  (exit $ac_status); } >/dev/null; then
22330  if test -s conftest.err; then
22331    ac_cpp_err=$ac_c_preproc_warn_flag
22332    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22333  else
22334    ac_cpp_err=
22335  fi
22336else
22337  ac_cpp_err=yes
22338fi
22339if test -z "$ac_cpp_err"; then
22340  ac_header_preproc=yes
22341else
22342  echo "$as_me: failed program was:" >&5
22343sed 's/^/| /' conftest.$ac_ext >&5
22344
22345  ac_header_preproc=no
22346fi
22347rm -f conftest.err conftest.$ac_ext
22348echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22349echo "${ECHO_T}$ac_header_preproc" >&6
22350
22351# So?  What about this header?
22352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22353  yes:no: )
22354    { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22355echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22356    { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22357echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22358    ac_header_preproc=yes
22359    ;;
22360  no:yes:* )
22361    { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22362echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22363    { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
22364echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
22365    { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22366echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22367    { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
22368echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22369    { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22370echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22371    { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22372echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
22373    (
22374      cat <<\_ASBOX
22375## ------------------------------------------ ##
22376## Report this to the AC_PACKAGE_NAME lists.  ##
22377## ------------------------------------------ ##
22378_ASBOX
22379    ) |
22380      sed "s/^/$as_me: WARNING:     /" >&2
22381    ;;
22382esac
22383echo "$as_me:$LINENO: checking for tclInt.h" >&5
22384echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22385if test "${ac_cv_header_tclInt_h+set}" = set; then
22386  echo $ECHO_N "(cached) $ECHO_C" >&6
22387else
22388  ac_cv_header_tclInt_h=$ac_header_preproc
22389fi
22390echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22391echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22392
22393fi
22394if test $ac_cv_header_tclInt_h = yes; then
22395  ac_cv_c_tclh=installed
22396else
22397  ac_cv_c_tclh=""
22398fi
22399
22400
22401fi
22402
22403fi
22404
22405if test x"${ac_cv_c_tclh}" = x ; then
22406  TCLHDIR="# no Tcl private headers found"
22407  { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22408echo "$as_me: error: Can't find Tcl private headers" >&2;}
22409   { (exit 1); exit 1; }; }
22410fi
22411if test x"${ac_cv_c_tclh}" != x ; then
22412  no_tcl=""
22413  if test x"${ac_cv_c_tclh}" = x"installed" ; then
22414    echo "$as_me:$LINENO: result: is installed" >&5
22415echo "${ECHO_T}is installed" >&6
22416    TCLHDIR=""
22417  else
22418    echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22419echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
22420    # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22421    TCLHDIR="-I${ac_cv_c_tclh}"
22422  fi
22423fi
22424
22425
22426
22427
22428#
22429# Ok, lets find the tk source trees so we can use the headers
22430# If the directory (presumably symlink) named "tk" exists, use that one
22431# in preference to any others.  Same logic is used when choosing library
22432# and again with Tcl. The search order is the best place to look first, then in
22433# decreasing significance. The loop breaks if the trigger file is found.
22434# Note the gross little conversion here of srcdir by cd'ing to the found
22435# directory. This converts the path from a relative to an absolute, so
22436# recursive cache variables for the path will work right. We check all
22437# the possible paths in one loop rather than many seperate loops to speed
22438# things up.
22439# the alternative search directory is involked by --with-tkinclude
22440#
22441no_tk=true
22442echo "$as_me:$LINENO: checking for Tk private headers" >&5
22443echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
22444
22445# Check whether --with-tkinclude or --without-tkinclude was given.
22446if test "${with_tkinclude+set}" = set; then
22447  withval="$with_tkinclude"
22448  with_tkinclude=${withval}
22449fi;
22450if test "${ac_cv_c_tkh+set}" = set; then
22451  echo $ECHO_N "(cached) $ECHO_C" >&6
22452else
22453
22454# first check to see if --with-tkinclude was specified
22455if test x"${with_tkinclude}" != x ; then
22456  if test -f ${with_tkinclude}/tk.h ; then
22457    ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22458  elif test -f ${with_tkinclude}/generic/tk.h ; then
22459    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22460  else
22461    { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22462echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22463   { (exit 1); exit 1; }; }
22464  fi
22465fi
22466
22467# next check if it came with Tk configuration file
22468if test x"${ac_cv_c_tkconfig}" = x ; then
22469  if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22470    ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22471  fi
22472fi
22473
22474# next check in private source directory
22475#
22476# since ls returns lowest version numbers first, reverse its output
22477if test x"${ac_cv_c_tkh}" = x ; then
22478  for i in \
22479		${srcdir}/../tk \
22480		`ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22481		${srcdir}/../../tk \
22482		`ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22483		${srcdir}/../../../tk \
22484		`ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22485    if test -f $i/generic/tk.h ; then
22486      ac_cv_c_tkh=`(cd $i/generic; pwd)`
22487      break
22488    fi
22489  done
22490fi
22491# finally check in a few common install locations
22492#
22493# since ls returns lowest version numbers first, reverse its output
22494if test x"${ac_cv_c_tkh}" = x ; then
22495  for i in \
22496		`ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22497		`ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22498		/usr/local/src/tk \
22499		/usr/local/lib/tk \
22500		${prefix}/include ; do
22501    if test -f $i/generic/tk.h ; then
22502      ac_cv_c_tkh=`(cd $i/generic; pwd)`
22503      break
22504    fi
22505  done
22506fi
22507# see if one is installed
22508if test x"${ac_cv_c_tkh}" = x ; then
22509   if test "${ac_cv_header_tk_h+set}" = set; then
22510  echo "$as_me:$LINENO: checking for tk.h" >&5
22511echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22512if test "${ac_cv_header_tk_h+set}" = set; then
22513  echo $ECHO_N "(cached) $ECHO_C" >&6
22514fi
22515echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22516echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22517else
22518  # Is the header compilable?
22519echo "$as_me:$LINENO: checking tk.h usability" >&5
22520echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
22521cat >conftest.$ac_ext <<_ACEOF
22522/* confdefs.h.  */
22523_ACEOF
22524cat confdefs.h >>conftest.$ac_ext
22525cat >>conftest.$ac_ext <<_ACEOF
22526/* end confdefs.h.  */
22527$ac_includes_default
22528#include <tk.h>
22529_ACEOF
22530rm -f conftest.$ac_objext
22531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22532  (eval $ac_compile) 2>conftest.er1
22533  ac_status=$?
22534  grep -v '^ *+' conftest.er1 >conftest.err
22535  rm -f conftest.er1
22536  cat conftest.err >&5
22537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538  (exit $ac_status); } &&
22539	 { ac_try='test -z "$ac_c_werror_flag"
22540			 || test ! -s conftest.err'
22541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542  (eval $ac_try) 2>&5
22543  ac_status=$?
22544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545  (exit $ac_status); }; } &&
22546	 { ac_try='test -s conftest.$ac_objext'
22547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548  (eval $ac_try) 2>&5
22549  ac_status=$?
22550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551  (exit $ac_status); }; }; then
22552  ac_header_compiler=yes
22553else
22554  echo "$as_me: failed program was:" >&5
22555sed 's/^/| /' conftest.$ac_ext >&5
22556
22557ac_header_compiler=no
22558fi
22559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22561echo "${ECHO_T}$ac_header_compiler" >&6
22562
22563# Is the header present?
22564echo "$as_me:$LINENO: checking tk.h presence" >&5
22565echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
22566cat >conftest.$ac_ext <<_ACEOF
22567/* confdefs.h.  */
22568_ACEOF
22569cat confdefs.h >>conftest.$ac_ext
22570cat >>conftest.$ac_ext <<_ACEOF
22571/* end confdefs.h.  */
22572#include <tk.h>
22573_ACEOF
22574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22576  ac_status=$?
22577  grep -v '^ *+' conftest.er1 >conftest.err
22578  rm -f conftest.er1
22579  cat conftest.err >&5
22580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581  (exit $ac_status); } >/dev/null; then
22582  if test -s conftest.err; then
22583    ac_cpp_err=$ac_c_preproc_warn_flag
22584    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22585  else
22586    ac_cpp_err=
22587  fi
22588else
22589  ac_cpp_err=yes
22590fi
22591if test -z "$ac_cpp_err"; then
22592  ac_header_preproc=yes
22593else
22594  echo "$as_me: failed program was:" >&5
22595sed 's/^/| /' conftest.$ac_ext >&5
22596
22597  ac_header_preproc=no
22598fi
22599rm -f conftest.err conftest.$ac_ext
22600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22601echo "${ECHO_T}$ac_header_preproc" >&6
22602
22603# So?  What about this header?
22604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22605  yes:no: )
22606    { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22607echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22608    { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22609echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22610    ac_header_preproc=yes
22611    ;;
22612  no:yes:* )
22613    { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22614echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22615    { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
22616echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
22617    { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22618echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22619    { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
22620echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22621    { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22622echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22623    { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22624echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
22625    (
22626      cat <<\_ASBOX
22627## ------------------------------------------ ##
22628## Report this to the AC_PACKAGE_NAME lists.  ##
22629## ------------------------------------------ ##
22630_ASBOX
22631    ) |
22632      sed "s/^/$as_me: WARNING:     /" >&2
22633    ;;
22634esac
22635echo "$as_me:$LINENO: checking for tk.h" >&5
22636echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22637if test "${ac_cv_header_tk_h+set}" = set; then
22638  echo $ECHO_N "(cached) $ECHO_C" >&6
22639else
22640  ac_cv_header_tk_h=$ac_header_preproc
22641fi
22642echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22643echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22644
22645fi
22646if test $ac_cv_header_tk_h = yes; then
22647  ac_cv_c_tkh=installed
22648else
22649  ac_cv_c_tkh=""
22650fi
22651
22652
22653fi
22654
22655fi
22656
22657if test x"${ac_cv_c_tkh}" != x ; then
22658  no_tk=""
22659  if test x"${ac_cv_c_tkh}" = x"installed" ; then
22660    echo "$as_me:$LINENO: result: is installed" >&5
22661echo "${ECHO_T}is installed" >&6
22662    TKHDIR=""
22663  else
22664    echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22665echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
22666    # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22667    TKHDIR="-I${ac_cv_c_tkh}"
22668  fi
22669else
22670  TKHDIR="# no Tk directory found"
22671  { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22672echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
22673  no_tk=true
22674fi
22675
22676
22677
22678
22679echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22680echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
22681if test x"${ac_cv_c_itclh}" = x ; then
22682  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22683    if test -f $i/generic/itcl.h ; then
22684      ac_cv_c_itclh=`(cd $i/generic; pwd)`
22685      break
22686    fi
22687  done
22688fi
22689if test x"${ac_cv_c_itclh}" = x ; then
22690  ITCLHDIR="# no Itcl private headers found"
22691  { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22692echo "$as_me: error: Can't find Itcl private headers" >&2;}
22693   { (exit 1); exit 1; }; }
22694fi
22695if test x"${ac_cv_c_itclh}" != x ; then
22696     ITCLHDIR="-I${ac_cv_c_itclh}"
22697fi
22698# should always be here
22699#     ITCLLIB="../itcl/itcl/unix/libitcl.a"
22700
22701#AC_SUBST(ITCLLIB)
22702
22703
22704echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22705echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
22706if test x"${ac_cv_c_itkh}" = x ; then
22707  for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22708    if test -f $i/generic/itk.h ; then
22709      ac_cv_c_itkh=`(cd $i/generic; pwd)`
22710      break
22711    fi
22712  done
22713fi
22714if test x"${ac_cv_c_itkh}" = x ; then
22715  ITKHDIR="# no Itk private headers found"
22716  { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22717echo "$as_me: error: Can't find Itk private headers" >&2;}
22718   { (exit 1); exit 1; }; }
22719fi
22720if test x"${ac_cv_c_itkh}" != x ; then
22721     ITKHDIR="-I${ac_cv_c_itkh}"
22722fi
22723# should always be here
22724#     ITKLIB="../itcl/itk/unix/libitk.a"
22725
22726#AC_SUBST(ITKLIB)
22727
22728
22729
22730	   # now look for Tk library stuff
22731
22732	   tkdir="../tk/${configdir}/"
22733
22734	   TK_DEPS="${tkdir}${TK_LIB_FILE}"
22735
22736	   # now look for Itcl library stuff
22737
22738
22739#
22740# Ok, lets find the itcl configuration
22741# First, look for one uninstalled.
22742# the alternative search directory is invoked by --with-itclconfig
22743#
22744
22745if test x"${no_itcl}" = x ; then
22746  # we reset no_itcl in case something fails here
22747  no_itcl=true
22748
22749# Check whether --with-itclconfig or --without-itclconfig was given.
22750if test "${with_itclconfig+set}" = set; then
22751  withval="$with_itclconfig"
22752  with_itclconfig=${withval}
22753fi;
22754  echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22755echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
22756  if test "${ac_cv_c_itclconfig+set}" = set; then
22757  echo $ECHO_N "(cached) $ECHO_C" >&6
22758else
22759
22760
22761  # First check to see if --with-itclconfig was specified.
22762  if test x"${with_itclconfig}" != x ; then
22763    if test -f "${with_itclconfig}/itclConfig.sh" ; then
22764      ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22765    else
22766      { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22767echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22768   { (exit 1); exit 1; }; }
22769    fi
22770  fi
22771
22772  # then check for a private Itcl library
22773  if test x"${ac_cv_c_itclconfig}" = x ; then
22774    for i in \
22775		../itcl/itcl \
22776		`ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22777		../../itcl \
22778		`ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22779		../../../itcl \
22780		`ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22781      if test -f "$i/itclConfig.sh" ; then
22782        ac_cv_c_itclconfig=`(cd $i; pwd)`
22783	break
22784      fi
22785    done
22786  fi
22787  # check in a few common install locations
22788  if test x"${ac_cv_c_itclconfig}" = x ; then
22789    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22790      if test -f "$i/itclConfig.sh" ; then
22791        ac_cv_c_itclconfig=`(cd $i; pwd)`
22792	break
22793      fi
22794    done
22795  fi
22796  # check in a few other private locations
22797  if test x"${ac_cv_c_itclconfig}" = x ; then
22798    for i in \
22799		${srcdir}/../itcl/itcl \
22800		`ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22801      if test -f "$i/itclConfig.sh" ; then
22802        ac_cv_c_itclconfig=`(cd $i; pwd)`
22803	break
22804      fi
22805    done
22806  fi
22807
22808fi
22809
22810  if test x"${ac_cv_c_itclconfig}" = x ; then
22811    ITCLCONFIG="# no Itcl configs found"
22812    { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22813echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
22814  else
22815    no_itcl=
22816    ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
22817    echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22818echo "${ECHO_T}found $ITCLCONFIG" >&6
22819  fi
22820fi
22821
22822           if test -z "${no_itcl}"; then
22823
22824    if test -f "$ITCLCONFIG" ; then
22825      . $ITCLCONFIG
22826    fi
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839	     ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
22840	     ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
22841           fi
22842
22843
22844	   # now look for Itk library stuff
22845
22846#
22847# Ok, lets find the itk configuration
22848# First, look for one uninstalled.
22849# the alternative search directory is invoked by --with-itkconfig
22850#
22851
22852if test x"${no_itk}" = x ; then
22853  # we reset no_itk in case something fails here
22854  no_itk=true
22855
22856# Check whether --with-itkconfig or --without-itkconfig was given.
22857if test "${with_itkconfig+set}" = set; then
22858  withval="$with_itkconfig"
22859  with_itkconfig=${withval}
22860fi;
22861  echo "$as_me:$LINENO: checking for Itk configuration" >&5
22862echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
22863  if test "${ac_cv_c_itkconfig+set}" = set; then
22864  echo $ECHO_N "(cached) $ECHO_C" >&6
22865else
22866
22867
22868  # First check to see if --with-itkconfig was specified.
22869  if test x"${with_itkconfig}" != x ; then
22870    if test -f "${with_itkconfig}/itkConfig.sh" ; then
22871      ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22872    else
22873      { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22874echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22875   { (exit 1); exit 1; }; }
22876    fi
22877  fi
22878
22879  # then check for a private Itk library
22880  if test x"${ac_cv_c_itkconfig}" = x ; then
22881    for i in \
22882		../itcl/itk \
22883		`ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22884		../../itk \
22885		`ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22886		../../../itk \
22887		`ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22888      if test -f "$i/itkConfig.sh" ; then
22889        ac_cv_c_itkconfig=`(cd $i; pwd)`
22890	break
22891      fi
22892    done
22893  fi
22894  # check in a few common install locations
22895  if test x"${ac_cv_c_itkconfig}" = x ; then
22896    for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22897      if test -f "$i/itkConfig.sh" ; then
22898        ac_cv_c_itkconfig=`(cd $i; pwd)`
22899	break
22900      fi
22901    done
22902  fi
22903  # check in a few other private locations
22904  if test x"${ac_cv_c_itkconfig}" = x ; then
22905    for i in \
22906		${srcdir}/../itcl/itk \
22907		`ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22908      if test -f "$i/itkConfig.sh" ; then
22909        ac_cv_c_itkconfig=`(cd $i; pwd)`
22910	break
22911      fi
22912    done
22913  fi
22914
22915fi
22916
22917  if test x"${ac_cv_c_itkconfig}" = x ; then
22918    ITKCONFIG="# no Itk configs found"
22919    { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22920echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
22921  else
22922    no_itk=
22923    ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
22924    echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22925echo "${ECHO_T}found $ITKCONFIG" >&6
22926  fi
22927fi
22928
22929
22930           if test -z "${no_itcl}"; then
22931
22932    if test -f "$ITKCONFIG" ; then
22933      . $ITKCONFIG
22934    fi
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947	     ITKLIB="${ITK_BUILD_LIB_SPEC}"
22948	     ITK_DEPS="${ITK_LIB_FULL_PATH}"
22949           fi
22950
22951           ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
22952
22953	   # Include some libraries that Tcl and Tk want.
22954	   TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
22955	   # Yes, the ordering seems wrong here.  But it isn't.
22956	   # TK_LIBS is the list of libraries that need to be linked
22957	   # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
22958	   # were in LIBS then any link tests after this point would
22959	   # try to include things like `$(LIBGUI)', which wouldn't work.
22960	   GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
22961
22962           CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22963           CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22964           CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
22965	   CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22966	   CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22967	   CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22968	   CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
22969
22970	   if test x$gdb_cv_os_cygwin = xyes; then
22971	      WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22972	      WIN32LDAPP="-Wl,--subsystem,console"
22973	      CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22974	   fi
22975	fi
22976    fi
22977
22978
22979
22980subdirs="$subdirs gdbtk"
22981
22982fi
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997echo "$as_me:$LINENO: checking for X" >&5
22998echo $ECHO_N "checking for X... $ECHO_C" >&6
22999
23000
23001# Check whether --with-x or --without-x was given.
23002if test "${with_x+set}" = set; then
23003  withval="$with_x"
23004
23005fi;
23006# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23007if test "x$with_x" = xno; then
23008  # The user explicitly disabled X.
23009  have_x=disabled
23010else
23011  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23012    # Both variables are already set.
23013    have_x=yes
23014  else
23015    if test "${ac_cv_have_x+set}" = set; then
23016  echo $ECHO_N "(cached) $ECHO_C" >&6
23017else
23018  # One or both of the vars are not set, and there is no cached value.
23019ac_x_includes=no ac_x_libraries=no
23020rm -fr conftest.dir
23021if mkdir conftest.dir; then
23022  cd conftest.dir
23023  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23024  cat >Imakefile <<'_ACEOF'
23025acfindx:
23026	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23027_ACEOF
23028  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23029    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23030    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23031    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23032    for ac_extension in a so sl; do
23033      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23034	 test -f $ac_im_libdir/libX11.$ac_extension; then
23035	ac_im_usrlibdir=$ac_im_libdir; break
23036      fi
23037    done
23038    # Screen out bogus values from the imake configuration.  They are
23039    # bogus both because they are the default anyway, and because
23040    # using them would break gcc on systems where it needs fixed includes.
23041    case $ac_im_incroot in
23042	/usr/include) ;;
23043	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23044    esac
23045    case $ac_im_usrlibdir in
23046	/usr/lib | /lib) ;;
23047	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23048    esac
23049  fi
23050  cd ..
23051  rm -fr conftest.dir
23052fi
23053
23054# Standard set of common directories for X headers.
23055# Check X11 before X11Rn because it is often a symlink to the current release.
23056ac_x_header_dirs='
23057/usr/X11/include
23058/usr/X11R6/include
23059/usr/X11R5/include
23060/usr/X11R4/include
23061
23062/usr/include/X11
23063/usr/include/X11R6
23064/usr/include/X11R5
23065/usr/include/X11R4
23066
23067/usr/local/X11/include
23068/usr/local/X11R6/include
23069/usr/local/X11R5/include
23070/usr/local/X11R4/include
23071
23072/usr/local/include/X11
23073/usr/local/include/X11R6
23074/usr/local/include/X11R5
23075/usr/local/include/X11R4
23076
23077/usr/X386/include
23078/usr/x386/include
23079/usr/XFree86/include/X11
23080
23081/usr/include
23082/usr/local/include
23083/usr/unsupported/include
23084/usr/athena/include
23085/usr/local/x11r5/include
23086/usr/lpp/Xamples/include
23087
23088/usr/openwin/include
23089/usr/openwin/share/include'
23090
23091if test "$ac_x_includes" = no; then
23092  # Guess where to find include files, by looking for Intrinsic.h.
23093  # First, try using that file with no special directory specified.
23094  cat >conftest.$ac_ext <<_ACEOF
23095/* confdefs.h.  */
23096_ACEOF
23097cat confdefs.h >>conftest.$ac_ext
23098cat >>conftest.$ac_ext <<_ACEOF
23099/* end confdefs.h.  */
23100#include <X11/Intrinsic.h>
23101_ACEOF
23102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23103  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23104  ac_status=$?
23105  grep -v '^ *+' conftest.er1 >conftest.err
23106  rm -f conftest.er1
23107  cat conftest.err >&5
23108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109  (exit $ac_status); } >/dev/null; then
23110  if test -s conftest.err; then
23111    ac_cpp_err=$ac_c_preproc_warn_flag
23112    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23113  else
23114    ac_cpp_err=
23115  fi
23116else
23117  ac_cpp_err=yes
23118fi
23119if test -z "$ac_cpp_err"; then
23120  # We can compile using X headers with no special include directory.
23121ac_x_includes=
23122else
23123  echo "$as_me: failed program was:" >&5
23124sed 's/^/| /' conftest.$ac_ext >&5
23125
23126  for ac_dir in $ac_x_header_dirs; do
23127  if test -r "$ac_dir/X11/Intrinsic.h"; then
23128    ac_x_includes=$ac_dir
23129    break
23130  fi
23131done
23132fi
23133rm -f conftest.err conftest.$ac_ext
23134fi # $ac_x_includes = no
23135
23136if test "$ac_x_libraries" = no; then
23137  # Check for the libraries.
23138  # See if we find them without any special options.
23139  # Don't add to $LIBS permanently.
23140  ac_save_LIBS=$LIBS
23141  LIBS="-lXt $LIBS"
23142  cat >conftest.$ac_ext <<_ACEOF
23143/* confdefs.h.  */
23144_ACEOF
23145cat confdefs.h >>conftest.$ac_ext
23146cat >>conftest.$ac_ext <<_ACEOF
23147/* end confdefs.h.  */
23148#include <X11/Intrinsic.h>
23149int
23150main ()
23151{
23152XtMalloc (0)
23153  ;
23154  return 0;
23155}
23156_ACEOF
23157rm -f conftest.$ac_objext conftest$ac_exeext
23158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23159  (eval $ac_link) 2>conftest.er1
23160  ac_status=$?
23161  grep -v '^ *+' conftest.er1 >conftest.err
23162  rm -f conftest.er1
23163  cat conftest.err >&5
23164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165  (exit $ac_status); } &&
23166	 { ac_try='test -z "$ac_c_werror_flag"
23167			 || test ! -s conftest.err'
23168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169  (eval $ac_try) 2>&5
23170  ac_status=$?
23171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172  (exit $ac_status); }; } &&
23173	 { ac_try='test -s conftest$ac_exeext'
23174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175  (eval $ac_try) 2>&5
23176  ac_status=$?
23177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178  (exit $ac_status); }; }; then
23179  LIBS=$ac_save_LIBS
23180# We can link X programs with no special library path.
23181ac_x_libraries=
23182else
23183  echo "$as_me: failed program was:" >&5
23184sed 's/^/| /' conftest.$ac_ext >&5
23185
23186LIBS=$ac_save_LIBS
23187for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23188do
23189  # Don't even attempt the hair of trying to link an X program!
23190  for ac_extension in a so sl; do
23191    if test -r $ac_dir/libXt.$ac_extension; then
23192      ac_x_libraries=$ac_dir
23193      break 2
23194    fi
23195  done
23196done
23197fi
23198rm -f conftest.err conftest.$ac_objext \
23199      conftest$ac_exeext conftest.$ac_ext
23200fi # $ac_x_libraries = no
23201
23202if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23203  # Didn't find X anywhere.  Cache the known absence of X.
23204  ac_cv_have_x="have_x=no"
23205else
23206  # Record where we found X for the cache.
23207  ac_cv_have_x="have_x=yes \
23208		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23209fi
23210fi
23211
23212  fi
23213  eval "$ac_cv_have_x"
23214fi # $with_x != no
23215
23216if test "$have_x" != yes; then
23217  echo "$as_me:$LINENO: result: $have_x" >&5
23218echo "${ECHO_T}$have_x" >&6
23219  no_x=yes
23220else
23221  # If each of the values was on the command line, it overrides each guess.
23222  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23223  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23224  # Update the cache value to reflect the command line values.
23225  ac_cv_have_x="have_x=yes \
23226		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23227  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23228echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23229fi
23230
23231
23232# Check whether we should enable the TUI, but only do so if we really
23233# can.
23234if test x"$enable_tui" = xyes; then
23235  if test -d $srcdir/tui; then
23236    if test "$ac_cv_search_waddstr" != no; then
23237      CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23238      CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23239      CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23240      CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23241      ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23242      CONFIG_ALL="${CONFIG_ALL} all-tui"
23243      CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23244      CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23245      CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23246    else
23247      { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23248echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
23249    fi
23250  fi
23251fi
23252
23253# Unlike the sim directory, whether a simulator is linked is controlled by
23254# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
23255# This code just checks for a few cases where we'd like to ignore those
23256# definitions, even when they're present in the '.mt' file.  These cases
23257# are when --disable-sim is specified, or if the simulator directory is
23258# not part of the source tree.
23259#
23260# Check whether --enable-sim or --disable-sim was given.
23261if test "${enable_sim+set}" = set; then
23262  enableval="$enable_sim"
23263  echo "enable_sim = $enable_sim";
23264 echo "enableval = ${enableval}";
23265 case "${enableval}" in
23266  yes) ignore_sim=false ;;
23267  no)  ignore_sim=true ;;
23268  *)   ignore_sim=false ;;
23269 esac
23270else
23271  ignore_sim=false
23272fi;
23273
23274if test ! -d "${srcdir}/../sim"; then
23275  ignore_sim=true
23276fi
23277
23278if test "${ignore_sim}" = "true"; then
23279    IGNORE_SIM="SIM="
23280    IGNORE_SIM_OBS="SIM_OBS="
23281else
23282    IGNORE_SIM=""
23283    IGNORE_SIM_OBS=""
23284
23285cat >>confdefs.h <<\_ACEOF
23286#define WITH_SIM 1
23287_ACEOF
23288
23289fi
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304# List of host floatformats.
23305
23306cat >>confdefs.h <<_ACEOF
23307#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
23308_ACEOF
23309
23310
23311cat >>confdefs.h <<_ACEOF
23312#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
23313_ACEOF
23314
23315
23316cat >>confdefs.h <<_ACEOF
23317#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
23318_ACEOF
23319
23320
23321# target_subdir is used by the testsuite to find the target libraries.
23322target_subdir=
23323if test "${host}" != "${target}"; then
23324    target_subdir="${target_alias}/"
23325fi
23326
23327
23328frags=
23329if test "${gdb_native}" = "yes"; then
23330  host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23331  if test ! -f ${host_makefile_frag}; then
23332    { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23333echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23334   { (exit 1); exit 1; }; }
23335  fi
23336  frags="$frags $host_makefile_frag"
23337else
23338  host_makefile_frag=/dev/null
23339fi
23340
23341target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23342if test ! -f ${target_makefile_frag}; then
23343  { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23344echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23345   { (exit 1); exit 1; }; }
23346fi
23347frags="$frags $target_makefile_frag"
23348
23349
23350
23351
23352
23353hostfile=`sed -n '
23354s/XM_FILE[ 	]*=[ 	]*\([^ 	]*\)/\1/p
23355' ${host_makefile_frag}`
23356
23357targetfile=`sed -n '
23358s/^[ 	]*DEPRECATED_TM_FILE[ 	]*=[ 	]*\([^ 	]*\)/\1/p
23359' ${target_makefile_frag}`
23360
23361if test "${gdb_native}" = "yes"; then
23362# We pick this up from the host configuration file (.mh) because we
23363# do not have a native configuration Makefile fragment.
23364nativefile=`sed -n '
23365s/NAT_FILE[ 	]*=[ 	]*\([^ 	]*\)/\1/p
23366' ${host_makefile_frag}`
23367fi
23368
23369
23370if test x"${gdb_osabi}" != x ; then
23371
23372cat >>confdefs.h <<_ACEOF
23373#define GDB_OSABI_DEFAULT $gdb_osabi
23374_ACEOF
23375
23376fi
23377
23378# Enable multi-ice-gdb-server.
23379# Check whether --enable-multi-ice or --disable-multi-ice was given.
23380if test "${enable_multi_ice+set}" = set; then
23381  enableval="$enable_multi_ice"
23382  case $enableval in
23383    yes | no)
23384      ;;
23385    *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23386echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23387   { (exit 1); exit 1; }; } ;;
23388  esac
23389fi;
23390if test "x$enable_multi_ice" = xyes; then
23391
23392
23393subdirs="$subdirs multi-ice"
23394
23395fi
23396
23397# We only build gdbserver automatically in a native configuration.
23398if test "$gdb_native" = "yes"; then
23399  echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23400echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
23401  if test "x$build_gdbserver" = xyes; then
23402    echo "$as_me:$LINENO: result: yes" >&5
23403echo "${ECHO_T}yes" >&6
23404
23405
23406subdirs="$subdirs gdbserver"
23407
23408  else
23409    echo "$as_me:$LINENO: result: no" >&5
23410echo "${ECHO_T}no" >&6
23411  fi
23412fi
23413
23414# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23415# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23416# to an empty version.
23417
23418files=
23419links=
23420
23421rm -f xm.h
23422xm_h=""
23423if test "${hostfile}" != ""; then
23424    xm_h=xm.h
23425    case "${hostfile}" in
23426      xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23427      * ) GDB_XM_FILE="${hostfile}"
23428    esac
23429    files="${files} ${GDB_XM_FILE}"
23430    links="${links} xm.h"
23431
23432cat >>confdefs.h <<_ACEOF
23433#define GDB_XM_FILE "${GDB_XM_FILE}"
23434_ACEOF
23435
23436fi
23437
23438
23439rm -f tm.h
23440tm_h=""
23441if test "${targetfile}" != ""; then
23442    tm_h=tm.h
23443    case "${targetfile}" in
23444      tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
23445      * ) GDB_TM_FILE="${targetfile}"
23446    esac
23447    files="${files} ${GDB_TM_FILE}"
23448    links="${links} tm.h"
23449
23450cat >>confdefs.h <<_ACEOF
23451#define GDB_TM_FILE "${GDB_TM_FILE}"
23452_ACEOF
23453
23454fi
23455
23456
23457rm -f nm.h
23458nm_h=""
23459if test "${nativefile}" != ""; then
23460    nm_h=nm.h
23461    case "${nativefile}" in
23462      nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23463      * ) GDB_NM_FILE="${nativefile}"
23464    esac
23465    files="${files} ${GDB_NM_FILE}"
23466    links="${links} nm.h"
23467
23468cat >>confdefs.h <<_ACEOF
23469#define GDB_NM_FILE "${GDB_NM_FILE}"
23470_ACEOF
23471
23472fi
23473
23474
23475ac_sources="$files"
23476ac_dests="$links"
23477while test -n "$ac_sources"; do
23478  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23479  set $ac_sources; ac_source=$1; shift; ac_sources=$*
23480  ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23481done
23482          ac_config_links="$ac_config_links $ac_config_links_1"
23483
23484
23485
23486
23487
23488
23489cat >>confdefs.h <<\_ACEOF
23490#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23491_ACEOF
23492
23493
23494
23495
23496
23497# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
23498if test "${with_libiconv_prefix+set}" = set; then
23499  withval="$with_libiconv_prefix"
23500
23501    for dir in `echo "$withval" | tr : ' '`; do
23502      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23503      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23504    done
23505
23506fi;
23507
23508  echo "$as_me:$LINENO: checking for iconv" >&5
23509echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23510if test "${am_cv_func_iconv+set}" = set; then
23511  echo $ECHO_N "(cached) $ECHO_C" >&6
23512else
23513
23514    am_cv_func_iconv="no, consider installing GNU libiconv"
23515    am_cv_lib_iconv=no
23516    cat >conftest.$ac_ext <<_ACEOF
23517/* confdefs.h.  */
23518_ACEOF
23519cat confdefs.h >>conftest.$ac_ext
23520cat >>conftest.$ac_ext <<_ACEOF
23521/* end confdefs.h.  */
23522#include <stdlib.h>
23523#include <iconv.h>
23524int
23525main ()
23526{
23527iconv_t cd = iconv_open("","");
23528       iconv(cd,NULL,NULL,NULL,NULL);
23529       iconv_close(cd);
23530  ;
23531  return 0;
23532}
23533_ACEOF
23534rm -f conftest.$ac_objext conftest$ac_exeext
23535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23536  (eval $ac_link) 2>conftest.er1
23537  ac_status=$?
23538  grep -v '^ *+' conftest.er1 >conftest.err
23539  rm -f conftest.er1
23540  cat conftest.err >&5
23541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542  (exit $ac_status); } &&
23543	 { ac_try='test -z "$ac_c_werror_flag"
23544			 || test ! -s conftest.err'
23545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546  (eval $ac_try) 2>&5
23547  ac_status=$?
23548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549  (exit $ac_status); }; } &&
23550	 { ac_try='test -s conftest$ac_exeext'
23551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552  (eval $ac_try) 2>&5
23553  ac_status=$?
23554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555  (exit $ac_status); }; }; then
23556  am_cv_func_iconv=yes
23557else
23558  echo "$as_me: failed program was:" >&5
23559sed 's/^/| /' conftest.$ac_ext >&5
23560
23561fi
23562rm -f conftest.err conftest.$ac_objext \
23563      conftest$ac_exeext conftest.$ac_ext
23564    if test "$am_cv_func_iconv" != yes; then
23565      am_save_LIBS="$LIBS"
23566      LIBS="$LIBS -liconv"
23567      cat >conftest.$ac_ext <<_ACEOF
23568/* confdefs.h.  */
23569_ACEOF
23570cat confdefs.h >>conftest.$ac_ext
23571cat >>conftest.$ac_ext <<_ACEOF
23572/* end confdefs.h.  */
23573#include <stdlib.h>
23574#include <iconv.h>
23575int
23576main ()
23577{
23578iconv_t cd = iconv_open("","");
23579         iconv(cd,NULL,NULL,NULL,NULL);
23580         iconv_close(cd);
23581  ;
23582  return 0;
23583}
23584_ACEOF
23585rm -f conftest.$ac_objext conftest$ac_exeext
23586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23587  (eval $ac_link) 2>conftest.er1
23588  ac_status=$?
23589  grep -v '^ *+' conftest.er1 >conftest.err
23590  rm -f conftest.er1
23591  cat conftest.err >&5
23592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593  (exit $ac_status); } &&
23594	 { ac_try='test -z "$ac_c_werror_flag"
23595			 || test ! -s conftest.err'
23596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23597  (eval $ac_try) 2>&5
23598  ac_status=$?
23599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600  (exit $ac_status); }; } &&
23601	 { ac_try='test -s conftest$ac_exeext'
23602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603  (eval $ac_try) 2>&5
23604  ac_status=$?
23605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606  (exit $ac_status); }; }; then
23607  am_cv_lib_iconv=yes
23608        am_cv_func_iconv=yes
23609else
23610  echo "$as_me: failed program was:" >&5
23611sed 's/^/| /' conftest.$ac_ext >&5
23612
23613fi
23614rm -f conftest.err conftest.$ac_objext \
23615      conftest$ac_exeext conftest.$ac_ext
23616      LIBS="$am_save_LIBS"
23617    fi
23618
23619fi
23620echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23621echo "${ECHO_T}$am_cv_func_iconv" >&6
23622  if test "$am_cv_func_iconv" = yes; then
23623
23624cat >>confdefs.h <<\_ACEOF
23625#define HAVE_ICONV 1
23626_ACEOF
23627
23628    echo "$as_me:$LINENO: checking for iconv declaration" >&5
23629echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
23630    if test "${am_cv_proto_iconv+set}" = set; then
23631  echo $ECHO_N "(cached) $ECHO_C" >&6
23632else
23633
23634      cat >conftest.$ac_ext <<_ACEOF
23635/* confdefs.h.  */
23636_ACEOF
23637cat confdefs.h >>conftest.$ac_ext
23638cat >>conftest.$ac_ext <<_ACEOF
23639/* end confdefs.h.  */
23640
23641#include <stdlib.h>
23642#include <iconv.h>
23643extern
23644#ifdef __cplusplus
23645"C"
23646#endif
23647#if defined(__STDC__) || defined(__cplusplus)
23648size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23649#else
23650size_t iconv();
23651#endif
23652
23653int
23654main ()
23655{
23656
23657  ;
23658  return 0;
23659}
23660_ACEOF
23661rm -f conftest.$ac_objext
23662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23663  (eval $ac_compile) 2>conftest.er1
23664  ac_status=$?
23665  grep -v '^ *+' conftest.er1 >conftest.err
23666  rm -f conftest.er1
23667  cat conftest.err >&5
23668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669  (exit $ac_status); } &&
23670	 { ac_try='test -z "$ac_c_werror_flag"
23671			 || test ! -s conftest.err'
23672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673  (eval $ac_try) 2>&5
23674  ac_status=$?
23675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676  (exit $ac_status); }; } &&
23677	 { ac_try='test -s conftest.$ac_objext'
23678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679  (eval $ac_try) 2>&5
23680  ac_status=$?
23681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682  (exit $ac_status); }; }; then
23683  am_cv_proto_iconv_arg1=""
23684else
23685  echo "$as_me: failed program was:" >&5
23686sed 's/^/| /' conftest.$ac_ext >&5
23687
23688am_cv_proto_iconv_arg1="const"
23689fi
23690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23691      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);"
23692fi
23693
23694    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23695    echo "$as_me:$LINENO: result: ${ac_t:-
23696         }$am_cv_proto_iconv" >&5
23697echo "${ECHO_T}${ac_t:-
23698         }$am_cv_proto_iconv" >&6
23699
23700cat >>confdefs.h <<_ACEOF
23701#define ICONV_CONST $am_cv_proto_iconv_arg1
23702_ACEOF
23703
23704  fi
23705  LIBICONV=
23706  if test "$am_cv_lib_iconv" = yes; then
23707    LIBICONV="-liconv"
23708  fi
23709
23710
23711
23712                    ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23713          ac_config_commands="$ac_config_commands default"
23714cat >confcache <<\_ACEOF
23715# This file is a shell script that caches the results of configure
23716# tests run on this system so they can be shared between configure
23717# scripts and configure runs, see configure's option --config-cache.
23718# It is not useful on other systems.  If it contains results you don't
23719# want to keep, you may remove or edit it.
23720#
23721# config.status only pays attention to the cache file if you give it
23722# the --recheck option to rerun configure.
23723#
23724# `ac_cv_env_foo' variables (set or unset) will be overridden when
23725# loading this file, other *unset* `ac_cv_foo' will be assigned the
23726# following values.
23727
23728_ACEOF
23729
23730# The following way of writing the cache mishandles newlines in values,
23731# but we know of no workaround that is simple, portable, and efficient.
23732# So, don't put newlines in cache variables' values.
23733# Ultrix sh set writes to stderr and can't be redirected directly,
23734# and sets the high bit in the cache file unless we assign to the vars.
23735{
23736  (set) 2>&1 |
23737    case `(ac_space=' '; set | grep ac_space) 2>&1` in
23738    *ac_space=\ *)
23739      # `set' does not quote correctly, so add quotes (double-quote
23740      # substitution turns \\\\ into \\, and sed turns \\ into \).
23741      sed -n \
23742	"s/'/'\\\\''/g;
23743	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23744      ;;
23745    *)
23746      # `set' quotes correctly as required by POSIX, so do not add quotes.
23747      sed -n \
23748	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23749      ;;
23750    esac;
23751} |
23752  sed '
23753     t clear
23754     : clear
23755     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23756     t end
23757     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23758     : end' >>confcache
23759if diff $cache_file confcache >/dev/null 2>&1; then :; else
23760  if test -w $cache_file; then
23761    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23762    cat confcache >$cache_file
23763  else
23764    echo "not updating unwritable cache $cache_file"
23765  fi
23766fi
23767rm -f confcache
23768
23769test "x$prefix" = xNONE && prefix=$ac_default_prefix
23770# Let make expand exec_prefix.
23771test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23772
23773# VPATH may cause trouble with some makes, so we remove $(srcdir),
23774# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23775# trailing colons and then remove the whole line if VPATH becomes empty
23776# (actually we leave an empty line to preserve line numbers).
23777if test "x$srcdir" = x.; then
23778  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23779s/:*\$(srcdir):*/:/;
23780s/:*\${srcdir}:*/:/;
23781s/:*@srcdir@:*/:/;
23782s/^\([^=]*=[	 ]*\):*/\1/;
23783s/:*$//;
23784s/^[^=]*=[	 ]*$//;
23785}'
23786fi
23787
23788DEFS=-DHAVE_CONFIG_H
23789
23790ac_libobjs=
23791ac_ltlibobjs=
23792for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23793  # 1. Remove the extension, and $U if already installed.
23794  ac_i=`echo "$ac_i" |
23795	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23796  # 2. Add them.
23797  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23798  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23799done
23800LIBOBJS=$ac_libobjs
23801
23802LTLIBOBJS=$ac_ltlibobjs
23803
23804
23805if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23806  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23807Usually this means the macro was only invoked conditionally." >&5
23808echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23809Usually this means the macro was only invoked conditionally." >&2;}
23810   { (exit 1); exit 1; }; }
23811fi
23812
23813: ${CONFIG_STATUS=./config.status}
23814ac_clean_files_save=$ac_clean_files
23815ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23816{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23817echo "$as_me: creating $CONFIG_STATUS" >&6;}
23818cat >$CONFIG_STATUS <<_ACEOF
23819#! $SHELL
23820# Generated by $as_me.
23821# Run this file to recreate the current configuration.
23822# Compiler output produced by configure, useful for debugging
23823# configure, is in config.log if it exists.
23824
23825debug=false
23826ac_cs_recheck=false
23827ac_cs_silent=false
23828SHELL=\${CONFIG_SHELL-$SHELL}
23829_ACEOF
23830
23831cat >>$CONFIG_STATUS <<\_ACEOF
23832## --------------------- ##
23833## M4sh Initialization.  ##
23834## --------------------- ##
23835
23836# Be Bourne compatible
23837if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23838  emulate sh
23839  NULLCMD=:
23840  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23841  # is contrary to our usage.  Disable this feature.
23842  alias -g '${1+"$@"}'='"$@"'
23843elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23844  set -o posix
23845fi
23846DUALCASE=1; export DUALCASE # for MKS sh
23847
23848# Support unset when possible.
23849if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23850  as_unset=unset
23851else
23852  as_unset=false
23853fi
23854
23855
23856# Work around bugs in pre-3.0 UWIN ksh.
23857$as_unset ENV MAIL MAILPATH
23858PS1='$ '
23859PS2='> '
23860PS4='+ '
23861
23862# NLS nuisances.
23863for as_var in \
23864  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23865  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23866  LC_TELEPHONE LC_TIME
23867do
23868  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23869    eval $as_var=C; export $as_var
23870  else
23871    $as_unset $as_var
23872  fi
23873done
23874
23875# Required to use basename.
23876if expr a : '\(a\)' >/dev/null 2>&1; then
23877  as_expr=expr
23878else
23879  as_expr=false
23880fi
23881
23882if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23883  as_basename=basename
23884else
23885  as_basename=false
23886fi
23887
23888
23889# Name of the executable.
23890as_me=`$as_basename "$0" ||
23891$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23892	 X"$0" : 'X\(//\)$' \| \
23893	 X"$0" : 'X\(/\)$' \| \
23894	 .     : '\(.\)' 2>/dev/null ||
23895echo X/"$0" |
23896    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23897  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23898  	  /^X\/\(\/\).*/{ s//\1/; q; }
23899  	  s/.*/./; q'`
23900
23901
23902# PATH needs CR, and LINENO needs CR and PATH.
23903# Avoid depending upon Character Ranges.
23904as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23905as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23906as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23907as_cr_digits='0123456789'
23908as_cr_alnum=$as_cr_Letters$as_cr_digits
23909
23910# The user is always right.
23911if test "${PATH_SEPARATOR+set}" != set; then
23912  echo "#! /bin/sh" >conf$$.sh
23913  echo  "exit 0"   >>conf$$.sh
23914  chmod +x conf$$.sh
23915  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23916    PATH_SEPARATOR=';'
23917  else
23918    PATH_SEPARATOR=:
23919  fi
23920  rm -f conf$$.sh
23921fi
23922
23923
23924  as_lineno_1=$LINENO
23925  as_lineno_2=$LINENO
23926  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23927  test "x$as_lineno_1" != "x$as_lineno_2" &&
23928  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23929  # Find who we are.  Look in the path if we contain no path at all
23930  # relative or not.
23931  case $0 in
23932    *[\\/]* ) as_myself=$0 ;;
23933    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23934for as_dir in $PATH
23935do
23936  IFS=$as_save_IFS
23937  test -z "$as_dir" && as_dir=.
23938  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23939done
23940
23941       ;;
23942  esac
23943  # We did not find ourselves, most probably we were run as `sh COMMAND'
23944  # in which case we are not to be found in the path.
23945  if test "x$as_myself" = x; then
23946    as_myself=$0
23947  fi
23948  if test ! -f "$as_myself"; then
23949    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23950echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23951   { (exit 1); exit 1; }; }
23952  fi
23953  case $CONFIG_SHELL in
23954  '')
23955    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23956for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23957do
23958  IFS=$as_save_IFS
23959  test -z "$as_dir" && as_dir=.
23960  for as_base in sh bash ksh sh5; do
23961	 case $as_dir in
23962	 /*)
23963	   if ("$as_dir/$as_base" -c '
23964  as_lineno_1=$LINENO
23965  as_lineno_2=$LINENO
23966  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23967  test "x$as_lineno_1" != "x$as_lineno_2" &&
23968  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23969	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23970	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23971	     CONFIG_SHELL=$as_dir/$as_base
23972	     export CONFIG_SHELL
23973	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23974	   fi;;
23975	 esac
23976       done
23977done
23978;;
23979  esac
23980
23981  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23982  # uniformly replaced by the line number.  The first 'sed' inserts a
23983  # line-number line before each line; the second 'sed' does the real
23984  # work.  The second script uses 'N' to pair each line-number line
23985  # with the numbered line, and appends trailing '-' during
23986  # substitution so that $LINENO is not a special case at line end.
23987  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23988  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23989  sed '=' <$as_myself |
23990    sed '
23991      N
23992      s,$,-,
23993      : loop
23994      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23995      t loop
23996      s,-$,,
23997      s,^['$as_cr_digits']*\n,,
23998    ' >$as_me.lineno &&
23999  chmod +x $as_me.lineno ||
24000    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24001echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24002   { (exit 1); exit 1; }; }
24003
24004  # Don't try to exec as it changes $[0], causing all sort of problems
24005  # (the dirname of $[0] is not the place where we might find the
24006  # original and so on.  Autoconf is especially sensible to this).
24007  . ./$as_me.lineno
24008  # Exit status is that of the last command.
24009  exit
24010}
24011
24012
24013case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24014  *c*,-n*) ECHO_N= ECHO_C='
24015' ECHO_T='	' ;;
24016  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24017  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24018esac
24019
24020if expr a : '\(a\)' >/dev/null 2>&1; then
24021  as_expr=expr
24022else
24023  as_expr=false
24024fi
24025
24026rm -f conf$$ conf$$.exe conf$$.file
24027echo >conf$$.file
24028if ln -s conf$$.file conf$$ 2>/dev/null; then
24029  # We could just check for DJGPP; but this test a) works b) is more generic
24030  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24031  if test -f conf$$.exe; then
24032    # Don't use ln at all; we don't have any links
24033    as_ln_s='cp -p'
24034  else
24035    as_ln_s='ln -s'
24036  fi
24037elif ln conf$$.file conf$$ 2>/dev/null; then
24038  as_ln_s=ln
24039else
24040  as_ln_s='cp -p'
24041fi
24042rm -f conf$$ conf$$.exe conf$$.file
24043
24044if mkdir -p . 2>/dev/null; then
24045  as_mkdir_p=:
24046else
24047  test -d ./-p && rmdir ./-p
24048  as_mkdir_p=false
24049fi
24050
24051as_executable_p="test -f"
24052
24053# Sed expression to map a string onto a valid CPP name.
24054as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24055
24056# Sed expression to map a string onto a valid variable name.
24057as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24058
24059
24060# IFS
24061# We need space, tab and new line, in precisely that order.
24062as_nl='
24063'
24064IFS=" 	$as_nl"
24065
24066# CDPATH.
24067$as_unset CDPATH
24068
24069exec 6>&1
24070
24071# Open the log real soon, to keep \$[0] and so on meaningful, and to
24072# report actual input values of CONFIG_FILES etc. instead of their
24073# values after options handling.  Logging --version etc. is OK.
24074exec 5>>config.log
24075{
24076  echo
24077  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24078## Running $as_me. ##
24079_ASBOX
24080} >&5
24081cat >&5 <<_CSEOF
24082
24083This file was extended by $as_me, which was
24084generated by GNU Autoconf 2.59.  Invocation command line was
24085
24086  CONFIG_FILES    = $CONFIG_FILES
24087  CONFIG_HEADERS  = $CONFIG_HEADERS
24088  CONFIG_LINKS    = $CONFIG_LINKS
24089  CONFIG_COMMANDS = $CONFIG_COMMANDS
24090  $ $0 $@
24091
24092_CSEOF
24093echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24094echo >&5
24095_ACEOF
24096
24097# Files that config.status was made for.
24098if test -n "$ac_config_files"; then
24099  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24100fi
24101
24102if test -n "$ac_config_headers"; then
24103  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24104fi
24105
24106if test -n "$ac_config_links"; then
24107  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24108fi
24109
24110if test -n "$ac_config_commands"; then
24111  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24112fi
24113
24114cat >>$CONFIG_STATUS <<\_ACEOF
24115
24116ac_cs_usage="\
24117\`$as_me' instantiates files from templates according to the
24118current configuration.
24119
24120Usage: $0 [OPTIONS] [FILE]...
24121
24122  -h, --help       print this help, then exit
24123  -V, --version    print version number, then exit
24124  -q, --quiet      do not print progress messages
24125  -d, --debug      don't remove temporary files
24126      --recheck    update $as_me by reconfiguring in the same conditions
24127  --file=FILE[:TEMPLATE]
24128		   instantiate the configuration file FILE
24129  --header=FILE[:TEMPLATE]
24130		   instantiate the configuration header FILE
24131
24132Configuration files:
24133$config_files
24134
24135Configuration headers:
24136$config_headers
24137
24138Configuration links:
24139$config_links
24140
24141Configuration commands:
24142$config_commands
24143
24144Report bugs to <bug-autoconf@gnu.org>."
24145_ACEOF
24146
24147cat >>$CONFIG_STATUS <<_ACEOF
24148ac_cs_version="\\
24149config.status
24150configured by $0, generated by GNU Autoconf 2.59,
24151  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24152
24153Copyright (C) 2003 Free Software Foundation, Inc.
24154This config.status script is free software; the Free Software Foundation
24155gives unlimited permission to copy, distribute and modify it."
24156srcdir=$srcdir
24157INSTALL="$INSTALL"
24158_ACEOF
24159
24160cat >>$CONFIG_STATUS <<\_ACEOF
24161# If no file are specified by the user, then we need to provide default
24162# value.  By we need to know if files were specified by the user.
24163ac_need_defaults=:
24164while test $# != 0
24165do
24166  case $1 in
24167  --*=*)
24168    ac_option=`expr "x$1" : 'x\([^=]*\)='`
24169    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24170    ac_shift=:
24171    ;;
24172  -*)
24173    ac_option=$1
24174    ac_optarg=$2
24175    ac_shift=shift
24176    ;;
24177  *) # This is not an option, so the user has probably given explicit
24178     # arguments.
24179     ac_option=$1
24180     ac_need_defaults=false;;
24181  esac
24182
24183  case $ac_option in
24184  # Handling of the options.
24185_ACEOF
24186cat >>$CONFIG_STATUS <<\_ACEOF
24187  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24188    ac_cs_recheck=: ;;
24189  --version | --vers* | -V )
24190    echo "$ac_cs_version"; exit 0 ;;
24191  --he | --h)
24192    # Conflict between --help and --header
24193    { { echo "$as_me:$LINENO: error: ambiguous option: $1
24194Try \`$0 --help' for more information." >&5
24195echo "$as_me: error: ambiguous option: $1
24196Try \`$0 --help' for more information." >&2;}
24197   { (exit 1); exit 1; }; };;
24198  --help | --hel | -h )
24199    echo "$ac_cs_usage"; exit 0 ;;
24200  --debug | --d* | -d )
24201    debug=: ;;
24202  --file | --fil | --fi | --f )
24203    $ac_shift
24204    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24205    ac_need_defaults=false;;
24206  --header | --heade | --head | --hea )
24207    $ac_shift
24208    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24209    ac_need_defaults=false;;
24210  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24211  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24212    ac_cs_silent=: ;;
24213
24214  # This is an error.
24215  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24216Try \`$0 --help' for more information." >&5
24217echo "$as_me: error: unrecognized option: $1
24218Try \`$0 --help' for more information." >&2;}
24219   { (exit 1); exit 1; }; } ;;
24220
24221  *) ac_config_targets="$ac_config_targets $1" ;;
24222
24223  esac
24224  shift
24225done
24226
24227ac_configure_extra_args=
24228
24229if $ac_cs_silent; then
24230  exec 6>/dev/null
24231  ac_configure_extra_args="$ac_configure_extra_args --silent"
24232fi
24233
24234_ACEOF
24235cat >>$CONFIG_STATUS <<_ACEOF
24236if \$ac_cs_recheck; then
24237  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24238  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24239fi
24240
24241_ACEOF
24242
24243cat >>$CONFIG_STATUS <<_ACEOF
24244#
24245# INIT-COMMANDS section.
24246#
24247
24248
24249GCC="$GCC"
24250CC="$CC"
24251acx_cv_header_stdint="$acx_cv_header_stdint"
24252acx_cv_type_int8_t="$acx_cv_type_int8_t"
24253acx_cv_type_int16_t="$acx_cv_type_int16_t"
24254acx_cv_type_int32_t="$acx_cv_type_int32_t"
24255acx_cv_type_int64_t="$acx_cv_type_int64_t"
24256acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24257ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24258ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24259ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24260ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24261ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24262ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24263ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24264ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24265
24266
24267gdb_host_cpu=$gdb_host_cpu
24268gdb_target_cpu=$gdb_target_cpu
24269nativefile=$nativefile
24270
24271
24272_ACEOF
24273
24274
24275
24276cat >>$CONFIG_STATUS <<\_ACEOF
24277for ac_config_target in $ac_config_targets
24278do
24279  case "$ac_config_target" in
24280  # Handling of arguments.
24281  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24282  ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24283  "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24284  "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24285  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24286  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
24287  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24288echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24289   { (exit 1); exit 1; }; };;
24290  esac
24291done
24292
24293# If the user did not use the arguments to specify the items to instantiate,
24294# then the envvar interface is used.  Set only those that are not.
24295# We use the long form for the default assignment because of an extremely
24296# bizarre bug on SunOS 4.1.3.
24297if $ac_need_defaults; then
24298  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24299  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24300  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24301  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24302fi
24303
24304# Have a temporary directory for convenience.  Make it in the build tree
24305# simply because there is no reason to put it here, and in addition,
24306# creating and moving files from /tmp can sometimes cause problems.
24307# Create a temporary directory, and hook for its removal unless debugging.
24308$debug ||
24309{
24310  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24311  trap '{ (exit 1); exit 1; }' 1 2 13 15
24312}
24313
24314# Create a (secure) tmp directory for tmp files.
24315
24316{
24317  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24318  test -n "$tmp" && test -d "$tmp"
24319}  ||
24320{
24321  tmp=./confstat$$-$RANDOM
24322  (umask 077 && mkdir $tmp)
24323} ||
24324{
24325   echo "$me: cannot create a temporary directory in ." >&2
24326   { (exit 1); exit 1; }
24327}
24328
24329_ACEOF
24330
24331cat >>$CONFIG_STATUS <<_ACEOF
24332
24333#
24334# CONFIG_FILES section.
24335#
24336
24337# No need to generate the scripts if there are no CONFIG_FILES.
24338# This happens for instance when ./config.status config.h
24339if test -n "\$CONFIG_FILES"; then
24340  # Protect against being on the right side of a sed subst in config.status.
24341  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24342   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24343s,@SHELL@,$SHELL,;t t
24344s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24345s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24346s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24347s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24348s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24349s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24350s,@exec_prefix@,$exec_prefix,;t t
24351s,@prefix@,$prefix,;t t
24352s,@program_transform_name@,$program_transform_name,;t t
24353s,@bindir@,$bindir,;t t
24354s,@sbindir@,$sbindir,;t t
24355s,@libexecdir@,$libexecdir,;t t
24356s,@datadir@,$datadir,;t t
24357s,@sysconfdir@,$sysconfdir,;t t
24358s,@sharedstatedir@,$sharedstatedir,;t t
24359s,@localstatedir@,$localstatedir,;t t
24360s,@libdir@,$libdir,;t t
24361s,@includedir@,$includedir,;t t
24362s,@oldincludedir@,$oldincludedir,;t t
24363s,@infodir@,$infodir,;t t
24364s,@mandir@,$mandir,;t t
24365s,@build_alias@,$build_alias,;t t
24366s,@host_alias@,$host_alias,;t t
24367s,@target_alias@,$target_alias,;t t
24368s,@DEFS@,$DEFS,;t t
24369s,@ECHO_C@,$ECHO_C,;t t
24370s,@ECHO_N@,$ECHO_N,;t t
24371s,@ECHO_T@,$ECHO_T,;t t
24372s,@LIBS@,$LIBS,;t t
24373s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24374s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24375s,@MAINT@,$MAINT,;t t
24376s,@CC@,$CC,;t t
24377s,@CFLAGS@,$CFLAGS,;t t
24378s,@LDFLAGS@,$LDFLAGS,;t t
24379s,@CPPFLAGS@,$CPPFLAGS,;t t
24380s,@ac_ct_CC@,$ac_ct_CC,;t t
24381s,@EXEEXT@,$EXEEXT,;t t
24382s,@OBJEXT@,$OBJEXT,;t t
24383s,@CPP@,$CPP,;t t
24384s,@EGREP@,$EGREP,;t t
24385s,@build@,$build,;t t
24386s,@build_cpu@,$build_cpu,;t t
24387s,@build_vendor@,$build_vendor,;t t
24388s,@build_os@,$build_os,;t t
24389s,@host@,$host,;t t
24390s,@host_cpu@,$host_cpu,;t t
24391s,@host_vendor@,$host_vendor,;t t
24392s,@host_os@,$host_os,;t t
24393s,@target@,$target,;t t
24394s,@target_cpu@,$target_cpu,;t t
24395s,@target_vendor@,$target_vendor,;t t
24396s,@target_os@,$target_os,;t t
24397s,@USE_NLS@,$USE_NLS,;t t
24398s,@LIBINTL@,$LIBINTL,;t t
24399s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24400s,@INCINTL@,$INCINTL,;t t
24401s,@XGETTEXT@,$XGETTEXT,;t t
24402s,@GMSGFMT@,$GMSGFMT,;t t
24403s,@POSUB@,$POSUB,;t t
24404s,@CATALOGS@,$CATALOGS,;t t
24405s,@DATADIRNAME@,$DATADIRNAME,;t t
24406s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24407s,@GENCAT@,$GENCAT,;t t
24408s,@CATOBJEXT@,$CATOBJEXT,;t t
24409s,@localedir@,$localedir,;t t
24410s,@PACKAGE@,$PACKAGE,;t t
24411s,@subdirs@,$subdirs,;t t
24412s,@AWK@,$AWK,;t t
24413s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24414s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24415s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24416s,@LN_S@,$LN_S,;t t
24417s,@RANLIB@,$RANLIB,;t t
24418s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24419s,@YACC@,$YACC,;t t
24420s,@AR@,$AR,;t t
24421s,@ac_ct_AR@,$ac_ct_AR,;t t
24422s,@DLLTOOL@,$DLLTOOL,;t t
24423s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24424s,@WINDRES@,$WINDRES,;t t
24425s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24426s,@MIG@,$MIG,;t t
24427s,@ac_ct_MIG@,$ac_ct_MIG,;t t
24428s,@READLINE@,$READLINE,;t t
24429s,@READLINE_DEPS@,$READLINE_DEPS,;t t
24430s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
24431s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24432s,@LIBEXPAT@,$LIBEXPAT,;t t
24433s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
24434s,@ALLOCA@,$ALLOCA,;t t
24435s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24436s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24437s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24438s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24439s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24440s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24441s,@WIN32LIBS@,$WIN32LIBS,;t t
24442s,@LIBGUI@,$LIBGUI,;t t
24443s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24444s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24445s,@TCL_VERSION@,$TCL_VERSION,;t t
24446s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24447s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24448s,@TCL_CC@,$TCL_CC,;t t
24449s,@TCL_DEFS@,$TCL_DEFS,;t t
24450s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24451s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24452s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24453s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24454s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24455s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24456s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24457s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24458s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24459s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24460s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24461s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24462s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24463s,@TK_VERSION@,$TK_VERSION,;t t
24464s,@TK_DEFS@,$TK_DEFS,;t t
24465s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24466s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24467s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24468s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24469s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24470s,@TCLHDIR@,$TCLHDIR,;t t
24471s,@TKHDIR@,$TKHDIR,;t t
24472s,@ITCLHDIR@,$ITCLHDIR,;t t
24473s,@ITKHDIR@,$ITKHDIR,;t t
24474s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24475s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24476s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24477s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24478s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24479s,@ITK_VERSION@,$ITK_VERSION,;t t
24480s,@ITK_DEFS@,$ITK_DEFS,;t t
24481s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24482s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24483s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24484s,@X_CFLAGS@,$X_CFLAGS,;t t
24485s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24486s,@X_LIBS@,$X_LIBS,;t t
24487s,@TCL_DEPS@,$TCL_DEPS,;t t
24488s,@TK_DEPS@,$TK_DEPS,;t t
24489s,@ITCLLIB@,$ITCLLIB,;t t
24490s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24491s,@ITKLIB@,$ITKLIB,;t t
24492s,@ITK_DEPS@,$ITK_DEPS,;t t
24493s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24494s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24495s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24496s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24497s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24498s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24499s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24500s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24501s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24502s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24503s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24504s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24505s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24506s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24507s,@target_subdir@,$target_subdir,;t t
24508s,@frags@,$frags,;t t
24509s,@xm_h@,$xm_h,;t t
24510s,@tm_h@,$tm_h,;t t
24511s,@nm_h@,$nm_h,;t t
24512s,@LIBICONV@,$LIBICONV,;t t
24513s,@LIBOBJS@,$LIBOBJS,;t t
24514s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24515/@host_makefile_frag@/r $host_makefile_frag
24516s,@host_makefile_frag@,,;t t
24517/@target_makefile_frag@/r $target_makefile_frag
24518s,@target_makefile_frag@,,;t t
24519CEOF
24520
24521_ACEOF
24522
24523  cat >>$CONFIG_STATUS <<\_ACEOF
24524  # Split the substitutions into bite-sized pieces for seds with
24525  # small command number limits, like on Digital OSF/1 and HP-UX.
24526  ac_max_sed_lines=48
24527  ac_sed_frag=1 # Number of current file.
24528  ac_beg=1 # First line for current file.
24529  ac_end=$ac_max_sed_lines # Line after last line for current file.
24530  ac_more_lines=:
24531  ac_sed_cmds=
24532  while $ac_more_lines; do
24533    if test $ac_beg -gt 1; then
24534      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24535    else
24536      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24537    fi
24538    if test ! -s $tmp/subs.frag; then
24539      ac_more_lines=false
24540    else
24541      # The purpose of the label and of the branching condition is to
24542      # speed up the sed processing (if there are no `@' at all, there
24543      # is no need to browse any of the substitutions).
24544      # These are the two extra sed commands mentioned above.
24545      (echo ':t
24546  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24547      if test -z "$ac_sed_cmds"; then
24548	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24549      else
24550	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24551      fi
24552      ac_sed_frag=`expr $ac_sed_frag + 1`
24553      ac_beg=$ac_end
24554      ac_end=`expr $ac_end + $ac_max_sed_lines`
24555    fi
24556  done
24557  if test -z "$ac_sed_cmds"; then
24558    ac_sed_cmds=cat
24559  fi
24560fi # test -n "$CONFIG_FILES"
24561
24562_ACEOF
24563cat >>$CONFIG_STATUS <<\_ACEOF
24564for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24565  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24566  case $ac_file in
24567  - | *:- | *:-:* ) # input from stdin
24568	cat >$tmp/stdin
24569	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24570	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24571  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24572	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24573  * )   ac_file_in=$ac_file.in ;;
24574  esac
24575
24576  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24577  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24578$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24579	 X"$ac_file" : 'X\(//\)[^/]' \| \
24580	 X"$ac_file" : 'X\(//\)$' \| \
24581	 X"$ac_file" : 'X\(/\)' \| \
24582	 .     : '\(.\)' 2>/dev/null ||
24583echo X"$ac_file" |
24584    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24585  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24586  	  /^X\(\/\/\)$/{ s//\1/; q; }
24587  	  /^X\(\/\).*/{ s//\1/; q; }
24588  	  s/.*/./; q'`
24589  { if $as_mkdir_p; then
24590    mkdir -p "$ac_dir"
24591  else
24592    as_dir="$ac_dir"
24593    as_dirs=
24594    while test ! -d "$as_dir"; do
24595      as_dirs="$as_dir $as_dirs"
24596      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24597$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24598	 X"$as_dir" : 'X\(//\)[^/]' \| \
24599	 X"$as_dir" : 'X\(//\)$' \| \
24600	 X"$as_dir" : 'X\(/\)' \| \
24601	 .     : '\(.\)' 2>/dev/null ||
24602echo X"$as_dir" |
24603    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24604  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24605  	  /^X\(\/\/\)$/{ s//\1/; q; }
24606  	  /^X\(\/\).*/{ s//\1/; q; }
24607  	  s/.*/./; q'`
24608    done
24609    test ! -n "$as_dirs" || mkdir $as_dirs
24610  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24611echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24612   { (exit 1); exit 1; }; }; }
24613
24614  ac_builddir=.
24615
24616if test "$ac_dir" != .; then
24617  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24618  # A "../" for each directory in $ac_dir_suffix.
24619  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24620else
24621  ac_dir_suffix= ac_top_builddir=
24622fi
24623
24624case $srcdir in
24625  .)  # No --srcdir option.  We are building in place.
24626    ac_srcdir=.
24627    if test -z "$ac_top_builddir"; then
24628       ac_top_srcdir=.
24629    else
24630       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24631    fi ;;
24632  [\\/]* | ?:[\\/]* )  # Absolute path.
24633    ac_srcdir=$srcdir$ac_dir_suffix;
24634    ac_top_srcdir=$srcdir ;;
24635  *) # Relative path.
24636    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24637    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24638esac
24639
24640# Do not use `cd foo && pwd` to compute absolute paths, because
24641# the directories may not exist.
24642case `pwd` in
24643.) ac_abs_builddir="$ac_dir";;
24644*)
24645  case "$ac_dir" in
24646  .) ac_abs_builddir=`pwd`;;
24647  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24648  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24649  esac;;
24650esac
24651case $ac_abs_builddir in
24652.) ac_abs_top_builddir=${ac_top_builddir}.;;
24653*)
24654  case ${ac_top_builddir}. in
24655  .) ac_abs_top_builddir=$ac_abs_builddir;;
24656  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24657  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24658  esac;;
24659esac
24660case $ac_abs_builddir in
24661.) ac_abs_srcdir=$ac_srcdir;;
24662*)
24663  case $ac_srcdir in
24664  .) ac_abs_srcdir=$ac_abs_builddir;;
24665  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24666  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24667  esac;;
24668esac
24669case $ac_abs_builddir in
24670.) ac_abs_top_srcdir=$ac_top_srcdir;;
24671*)
24672  case $ac_top_srcdir in
24673  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24674  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24675  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24676  esac;;
24677esac
24678
24679
24680  case $INSTALL in
24681  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24682  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24683  esac
24684
24685  if test x"$ac_file" != x-; then
24686    { echo "$as_me:$LINENO: creating $ac_file" >&5
24687echo "$as_me: creating $ac_file" >&6;}
24688    rm -f "$ac_file"
24689  fi
24690  # Let's still pretend it is `configure' which instantiates (i.e., don't
24691  # use $as_me), people would be surprised to read:
24692  #    /* config.h.  Generated by config.status.  */
24693  if test x"$ac_file" = x-; then
24694    configure_input=
24695  else
24696    configure_input="$ac_file.  "
24697  fi
24698  configure_input=$configure_input"Generated from `echo $ac_file_in |
24699				     sed 's,.*/,,'` by configure."
24700
24701  # First look for the input files in the build tree, otherwise in the
24702  # src tree.
24703  ac_file_inputs=`IFS=:
24704    for f in $ac_file_in; do
24705      case $f in
24706      -) echo $tmp/stdin ;;
24707      [\\/$]*)
24708	 # Absolute (can't be DOS-style, as IFS=:)
24709	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24710echo "$as_me: error: cannot find input file: $f" >&2;}
24711   { (exit 1); exit 1; }; }
24712	 echo "$f";;
24713      *) # Relative
24714	 if test -f "$f"; then
24715	   # Build tree
24716	   echo "$f"
24717	 elif test -f "$srcdir/$f"; then
24718	   # Source tree
24719	   echo "$srcdir/$f"
24720	 else
24721	   # /dev/null tree
24722	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24723echo "$as_me: error: cannot find input file: $f" >&2;}
24724   { (exit 1); exit 1; }; }
24725	 fi;;
24726      esac
24727    done` || { (exit 1); exit 1; }
24728_ACEOF
24729cat >>$CONFIG_STATUS <<_ACEOF
24730  sed "$ac_vpsub
24731$extrasub
24732_ACEOF
24733cat >>$CONFIG_STATUS <<\_ACEOF
24734:t
24735/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24736s,@configure_input@,$configure_input,;t t
24737s,@srcdir@,$ac_srcdir,;t t
24738s,@abs_srcdir@,$ac_abs_srcdir,;t t
24739s,@top_srcdir@,$ac_top_srcdir,;t t
24740s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24741s,@builddir@,$ac_builddir,;t t
24742s,@abs_builddir@,$ac_abs_builddir,;t t
24743s,@top_builddir@,$ac_top_builddir,;t t
24744s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24745s,@INSTALL@,$ac_INSTALL,;t t
24746" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24747  rm -f $tmp/stdin
24748  if test x"$ac_file" != x-; then
24749    mv $tmp/out $ac_file
24750  else
24751    cat $tmp/out
24752    rm -f $tmp/out
24753  fi
24754
24755done
24756_ACEOF
24757cat >>$CONFIG_STATUS <<\_ACEOF
24758
24759#
24760# CONFIG_HEADER section.
24761#
24762
24763# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24764# NAME is the cpp macro being defined and VALUE is the value it is being given.
24765#
24766# ac_d sets the value in "#define NAME VALUE" lines.
24767ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
24768ac_dB='[	 ].*$,\1#\2'
24769ac_dC=' '
24770ac_dD=',;t'
24771# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24772ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
24773ac_uB='$,\1#\2define\3'
24774ac_uC=' '
24775ac_uD=',;t'
24776
24777for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24778  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24779  case $ac_file in
24780  - | *:- | *:-:* ) # input from stdin
24781	cat >$tmp/stdin
24782	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24783	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24784  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24785	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24786  * )   ac_file_in=$ac_file.in ;;
24787  esac
24788
24789  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24790echo "$as_me: creating $ac_file" >&6;}
24791
24792  # First look for the input files in the build tree, otherwise in the
24793  # src tree.
24794  ac_file_inputs=`IFS=:
24795    for f in $ac_file_in; do
24796      case $f in
24797      -) echo $tmp/stdin ;;
24798      [\\/$]*)
24799	 # Absolute (can't be DOS-style, as IFS=:)
24800	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24801echo "$as_me: error: cannot find input file: $f" >&2;}
24802   { (exit 1); exit 1; }; }
24803	 # Do quote $f, to prevent DOS paths from being IFS'd.
24804	 echo "$f";;
24805      *) # Relative
24806	 if test -f "$f"; then
24807	   # Build tree
24808	   echo "$f"
24809	 elif test -f "$srcdir/$f"; then
24810	   # Source tree
24811	   echo "$srcdir/$f"
24812	 else
24813	   # /dev/null tree
24814	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24815echo "$as_me: error: cannot find input file: $f" >&2;}
24816   { (exit 1); exit 1; }; }
24817	 fi;;
24818      esac
24819    done` || { (exit 1); exit 1; }
24820  # Remove the trailing spaces.
24821  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
24822
24823_ACEOF
24824
24825# Transform confdefs.h into two sed scripts, `conftest.defines' and
24826# `conftest.undefs', that substitutes the proper values into
24827# config.h.in to produce config.h.  The first handles `#define'
24828# templates, and the second `#undef' templates.
24829# And first: Protect against being on the right side of a sed subst in
24830# config.status.  Protect against being in an unquoted here document
24831# in config.status.
24832rm -f conftest.defines conftest.undefs
24833# Using a here document instead of a string reduces the quoting nightmare.
24834# Putting comments in sed scripts is not portable.
24835#
24836# `end' is used to avoid that the second main sed command (meant for
24837# 0-ary CPP macros) applies to n-ary macro definitions.
24838# See the Autoconf documentation for `clear'.
24839cat >confdef2sed.sed <<\_ACEOF
24840s/[\\&,]/\\&/g
24841s,[\\$`],\\&,g
24842t clear
24843: clear
24844s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24845t end
24846s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24847: end
24848_ACEOF
24849# If some macros were called several times there might be several times
24850# the same #defines, which is useless.  Nevertheless, we may not want to
24851# sort them, since we want the *last* AC-DEFINE to be honored.
24852uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24853sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24854rm -f confdef2sed.sed
24855
24856# This sed command replaces #undef with comments.  This is necessary, for
24857# example, in the case of _POSIX_SOURCE, which is predefined and required
24858# on some systems where configure will not decide to define it.
24859cat >>conftest.undefs <<\_ACEOF
24860s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24861_ACEOF
24862
24863# Break up conftest.defines because some shells have a limit on the size
24864# of here documents, and old seds have small limits too (100 cmds).
24865echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24866echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24867echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24868echo '  :' >>$CONFIG_STATUS
24869rm -f conftest.tail
24870while grep . conftest.defines >/dev/null
24871do
24872  # Write a limited-size here document to $tmp/defines.sed.
24873  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24874  # Speed up: don't consider the non `#define' lines.
24875  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
24876  # Work around the forget-to-reset-the-flag bug.
24877  echo 't clr' >>$CONFIG_STATUS
24878  echo ': clr' >>$CONFIG_STATUS
24879  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24880  echo 'CEOF
24881  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24882  rm -f $tmp/in
24883  mv $tmp/out $tmp/in
24884' >>$CONFIG_STATUS
24885  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24886  rm -f conftest.defines
24887  mv conftest.tail conftest.defines
24888done
24889rm -f conftest.defines
24890echo '  fi # grep' >>$CONFIG_STATUS
24891echo >>$CONFIG_STATUS
24892
24893# Break up conftest.undefs because some shells have a limit on the size
24894# of here documents, and old seds have small limits too (100 cmds).
24895echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24896rm -f conftest.tail
24897while grep . conftest.undefs >/dev/null
24898do
24899  # Write a limited-size here document to $tmp/undefs.sed.
24900  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24901  # Speed up: don't consider the non `#undef'
24902  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
24903  # Work around the forget-to-reset-the-flag bug.
24904  echo 't clr' >>$CONFIG_STATUS
24905  echo ': clr' >>$CONFIG_STATUS
24906  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24907  echo 'CEOF
24908  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24909  rm -f $tmp/in
24910  mv $tmp/out $tmp/in
24911' >>$CONFIG_STATUS
24912  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24913  rm -f conftest.undefs
24914  mv conftest.tail conftest.undefs
24915done
24916rm -f conftest.undefs
24917
24918cat >>$CONFIG_STATUS <<\_ACEOF
24919  # Let's still pretend it is `configure' which instantiates (i.e., don't
24920  # use $as_me), people would be surprised to read:
24921  #    /* config.h.  Generated by config.status.  */
24922  if test x"$ac_file" = x-; then
24923    echo "/* Generated by configure.  */" >$tmp/config.h
24924  else
24925    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24926  fi
24927  cat $tmp/in >>$tmp/config.h
24928  rm -f $tmp/in
24929  if test x"$ac_file" != x-; then
24930    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24931      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24932echo "$as_me: $ac_file is unchanged" >&6;}
24933    else
24934      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24935$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24936	 X"$ac_file" : 'X\(//\)[^/]' \| \
24937	 X"$ac_file" : 'X\(//\)$' \| \
24938	 X"$ac_file" : 'X\(/\)' \| \
24939	 .     : '\(.\)' 2>/dev/null ||
24940echo X"$ac_file" |
24941    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24942  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24943  	  /^X\(\/\/\)$/{ s//\1/; q; }
24944  	  /^X\(\/\).*/{ s//\1/; q; }
24945  	  s/.*/./; q'`
24946      { if $as_mkdir_p; then
24947    mkdir -p "$ac_dir"
24948  else
24949    as_dir="$ac_dir"
24950    as_dirs=
24951    while test ! -d "$as_dir"; do
24952      as_dirs="$as_dir $as_dirs"
24953      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24955	 X"$as_dir" : 'X\(//\)[^/]' \| \
24956	 X"$as_dir" : 'X\(//\)$' \| \
24957	 X"$as_dir" : 'X\(/\)' \| \
24958	 .     : '\(.\)' 2>/dev/null ||
24959echo X"$as_dir" |
24960    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24961  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24962  	  /^X\(\/\/\)$/{ s//\1/; q; }
24963  	  /^X\(\/\).*/{ s//\1/; q; }
24964  	  s/.*/./; q'`
24965    done
24966    test ! -n "$as_dirs" || mkdir $as_dirs
24967  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24968echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24969   { (exit 1); exit 1; }; }; }
24970
24971      rm -f $ac_file
24972      mv $tmp/config.h $ac_file
24973    fi
24974  else
24975    cat $tmp/config.h
24976    rm -f $tmp/config.h
24977  fi
24978done
24979_ACEOF
24980cat >>$CONFIG_STATUS <<\_ACEOF
24981
24982#
24983# CONFIG_LINKS section.
24984#
24985
24986for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24987  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24988  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24989
24990  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24991echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24992
24993  if test ! -r $srcdir/$ac_source; then
24994    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24995echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24996   { (exit 1); exit 1; }; }
24997  fi
24998  rm -f $ac_dest
24999
25000  # Make relative symlinks.
25001  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25002$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25003	 X"$ac_dest" : 'X\(//\)[^/]' \| \
25004	 X"$ac_dest" : 'X\(//\)$' \| \
25005	 X"$ac_dest" : 'X\(/\)' \| \
25006	 .     : '\(.\)' 2>/dev/null ||
25007echo X"$ac_dest" |
25008    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25009  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25010  	  /^X\(\/\/\)$/{ s//\1/; q; }
25011  	  /^X\(\/\).*/{ s//\1/; q; }
25012  	  s/.*/./; q'`
25013  { if $as_mkdir_p; then
25014    mkdir -p "$ac_dest_dir"
25015  else
25016    as_dir="$ac_dest_dir"
25017    as_dirs=
25018    while test ! -d "$as_dir"; do
25019      as_dirs="$as_dir $as_dirs"
25020      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022	 X"$as_dir" : 'X\(//\)[^/]' \| \
25023	 X"$as_dir" : 'X\(//\)$' \| \
25024	 X"$as_dir" : 'X\(/\)' \| \
25025	 .     : '\(.\)' 2>/dev/null ||
25026echo X"$as_dir" |
25027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25028  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25029  	  /^X\(\/\/\)$/{ s//\1/; q; }
25030  	  /^X\(\/\).*/{ s//\1/; q; }
25031  	  s/.*/./; q'`
25032    done
25033    test ! -n "$as_dirs" || mkdir $as_dirs
25034  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25035echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25036   { (exit 1); exit 1; }; }; }
25037
25038  ac_builddir=.
25039
25040if test "$ac_dest_dir" != .; then
25041  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25042  # A "../" for each directory in $ac_dir_suffix.
25043  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25044else
25045  ac_dir_suffix= ac_top_builddir=
25046fi
25047
25048case $srcdir in
25049  .)  # No --srcdir option.  We are building in place.
25050    ac_srcdir=.
25051    if test -z "$ac_top_builddir"; then
25052       ac_top_srcdir=.
25053    else
25054       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25055    fi ;;
25056  [\\/]* | ?:[\\/]* )  # Absolute path.
25057    ac_srcdir=$srcdir$ac_dir_suffix;
25058    ac_top_srcdir=$srcdir ;;
25059  *) # Relative path.
25060    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25061    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25062esac
25063
25064# Do not use `cd foo && pwd` to compute absolute paths, because
25065# the directories may not exist.
25066case `pwd` in
25067.) ac_abs_builddir="$ac_dest_dir";;
25068*)
25069  case "$ac_dest_dir" in
25070  .) ac_abs_builddir=`pwd`;;
25071  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25072  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25073  esac;;
25074esac
25075case $ac_abs_builddir in
25076.) ac_abs_top_builddir=${ac_top_builddir}.;;
25077*)
25078  case ${ac_top_builddir}. in
25079  .) ac_abs_top_builddir=$ac_abs_builddir;;
25080  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25081  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25082  esac;;
25083esac
25084case $ac_abs_builddir in
25085.) ac_abs_srcdir=$ac_srcdir;;
25086*)
25087  case $ac_srcdir in
25088  .) ac_abs_srcdir=$ac_abs_builddir;;
25089  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25090  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25091  esac;;
25092esac
25093case $ac_abs_builddir in
25094.) ac_abs_top_srcdir=$ac_top_srcdir;;
25095*)
25096  case $ac_top_srcdir in
25097  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25098  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25099  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25100  esac;;
25101esac
25102
25103
25104  case $srcdir in
25105  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25106      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25107  esac
25108
25109  # Try a symlink, then a hard link, then a copy.
25110  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25111    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25112    cp -p $srcdir/$ac_source $ac_dest ||
25113    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25114echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25115   { (exit 1); exit 1; }; }
25116done
25117_ACEOF
25118cat >>$CONFIG_STATUS <<\_ACEOF
25119
25120#
25121# CONFIG_COMMANDS section.
25122#
25123for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25124  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25125  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25126  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25127$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25128	 X"$ac_dest" : 'X\(//\)[^/]' \| \
25129	 X"$ac_dest" : 'X\(//\)$' \| \
25130	 X"$ac_dest" : 'X\(/\)' \| \
25131	 .     : '\(.\)' 2>/dev/null ||
25132echo X"$ac_dest" |
25133    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25134  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25135  	  /^X\(\/\/\)$/{ s//\1/; q; }
25136  	  /^X\(\/\).*/{ s//\1/; q; }
25137  	  s/.*/./; q'`
25138  { if $as_mkdir_p; then
25139    mkdir -p "$ac_dir"
25140  else
25141    as_dir="$ac_dir"
25142    as_dirs=
25143    while test ! -d "$as_dir"; do
25144      as_dirs="$as_dir $as_dirs"
25145      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25147	 X"$as_dir" : 'X\(//\)[^/]' \| \
25148	 X"$as_dir" : 'X\(//\)$' \| \
25149	 X"$as_dir" : 'X\(/\)' \| \
25150	 .     : '\(.\)' 2>/dev/null ||
25151echo X"$as_dir" |
25152    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25153  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25154  	  /^X\(\/\/\)$/{ s//\1/; q; }
25155  	  /^X\(\/\).*/{ s//\1/; q; }
25156  	  s/.*/./; q'`
25157    done
25158    test ! -n "$as_dirs" || mkdir $as_dirs
25159  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25160echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25161   { (exit 1); exit 1; }; }; }
25162
25163  ac_builddir=.
25164
25165if test "$ac_dir" != .; then
25166  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25167  # A "../" for each directory in $ac_dir_suffix.
25168  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25169else
25170  ac_dir_suffix= ac_top_builddir=
25171fi
25172
25173case $srcdir in
25174  .)  # No --srcdir option.  We are building in place.
25175    ac_srcdir=.
25176    if test -z "$ac_top_builddir"; then
25177       ac_top_srcdir=.
25178    else
25179       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25180    fi ;;
25181  [\\/]* | ?:[\\/]* )  # Absolute path.
25182    ac_srcdir=$srcdir$ac_dir_suffix;
25183    ac_top_srcdir=$srcdir ;;
25184  *) # Relative path.
25185    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25186    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25187esac
25188
25189# Do not use `cd foo && pwd` to compute absolute paths, because
25190# the directories may not exist.
25191case `pwd` in
25192.) ac_abs_builddir="$ac_dir";;
25193*)
25194  case "$ac_dir" in
25195  .) ac_abs_builddir=`pwd`;;
25196  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25197  *) ac_abs_builddir=`pwd`/"$ac_dir";;
25198  esac;;
25199esac
25200case $ac_abs_builddir in
25201.) ac_abs_top_builddir=${ac_top_builddir}.;;
25202*)
25203  case ${ac_top_builddir}. in
25204  .) ac_abs_top_builddir=$ac_abs_builddir;;
25205  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25206  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25207  esac;;
25208esac
25209case $ac_abs_builddir in
25210.) ac_abs_srcdir=$ac_srcdir;;
25211*)
25212  case $ac_srcdir in
25213  .) ac_abs_srcdir=$ac_abs_builddir;;
25214  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25215  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25216  esac;;
25217esac
25218case $ac_abs_builddir in
25219.) ac_abs_top_srcdir=$ac_top_srcdir;;
25220*)
25221  case $ac_top_srcdir in
25222  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25223  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25224  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25225  esac;;
25226esac
25227
25228
25229  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25230echo "$as_me: executing $ac_dest commands" >&6;}
25231  case $ac_dest in
25232    gdb_stdint.h )
25233if test "$GCC" = yes; then
25234  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25235else
25236  echo "/* generated for $CC */" > tmp-stdint.h
25237fi
25238
25239sed 's/^ *//' >> tmp-stdint.h <<EOF
25240
25241  #ifndef GCC_GENERATED_STDINT_H
25242  #define GCC_GENERATED_STDINT_H 1
25243
25244  #include <sys/types.h>
25245EOF
25246
25247if test "$acx_cv_header_stdint" != stdint.h; then
25248  echo "#include <stddef.h>" >> tmp-stdint.h
25249fi
25250if test "$acx_cv_header_stdint" != stddef.h; then
25251  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25252fi
25253
25254sed 's/^ *//' >> tmp-stdint.h <<EOF
25255  /* glibc uses these symbols as guards to prevent redefinitions.  */
25256  #ifdef __int8_t_defined
25257  #define _INT8_T
25258  #define _INT16_T
25259  #define _INT32_T
25260  #endif
25261  #ifdef __uint32_t_defined
25262  #define _UINT32_T
25263  #endif
25264
25265EOF
25266
25267# ----------------- done header, emit basic int types -------------
25268if test "$acx_cv_header_stdint" = stddef.h; then
25269  sed 's/^ *//' >> tmp-stdint.h <<EOF
25270
25271    #ifndef _UINT8_T
25272    #define _UINT8_T
25273    #ifndef __uint8_t_defined
25274    #define __uint8_t_defined
25275    typedef unsigned $acx_cv_type_int8_t uint8_t;
25276    #endif
25277    #endif
25278
25279    #ifndef _UINT16_T
25280    #define _UINT16_T
25281    #ifndef __uint16_t_defined
25282    #define __uint16_t_defined
25283    typedef unsigned $acx_cv_type_int16_t uint16_t;
25284    #endif
25285    #endif
25286
25287    #ifndef _UINT32_T
25288    #define _UINT32_T
25289    #ifndef __uint32_t_defined
25290    #define __uint32_t_defined
25291    typedef unsigned $acx_cv_type_int32_t uint32_t;
25292    #endif
25293    #endif
25294
25295    #ifndef _INT8_T
25296    #define _INT8_T
25297    #ifndef __int8_t_defined
25298    #define __int8_t_defined
25299    typedef $acx_cv_type_int8_t int8_t;
25300    #endif
25301    #endif
25302
25303    #ifndef _INT16_T
25304    #define _INT16_T
25305    #ifndef __int16_t_defined
25306    #define __int16_t_defined
25307    typedef $acx_cv_type_int16_t int16_t;
25308    #endif
25309    #endif
25310
25311    #ifndef _INT32_T
25312    #define _INT32_T
25313    #ifndef __int32_t_defined
25314    #define __int32_t_defined
25315    typedef $acx_cv_type_int32_t int32_t;
25316    #endif
25317    #endif
25318EOF
25319elif test "$ac_cv_type_u_int32_t" = yes; then
25320  sed 's/^ *//' >> tmp-stdint.h <<EOF
25321
25322    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25323    #ifndef _INT8_T
25324    #define _INT8_T
25325    #endif
25326    #ifndef _INT16_T
25327    #define _INT16_T
25328    #endif
25329    #ifndef _INT32_T
25330    #define _INT32_T
25331    #endif
25332
25333    #ifndef _UINT8_T
25334    #define _UINT8_T
25335    #ifndef __uint8_t_defined
25336    #define __uint8_t_defined
25337    typedef u_int8_t uint8_t;
25338    #endif
25339    #endif
25340
25341    #ifndef _UINT16_T
25342    #define _UINT16_T
25343    #ifndef __uint16_t_defined
25344    #define __uint16_t_defined
25345    typedef u_int16_t uint16_t;
25346    #endif
25347    #endif
25348
25349    #ifndef _UINT32_T
25350    #define _UINT32_T
25351    #ifndef __uint32_t_defined
25352    #define __uint32_t_defined
25353    typedef u_int32_t uint32_t;
25354    #endif
25355    #endif
25356EOF
25357else
25358  sed 's/^ *//' >> tmp-stdint.h <<EOF
25359
25360    /* Some systems have guard macros to prevent redefinitions, define them.  */
25361    #ifndef _INT8_T
25362    #define _INT8_T
25363    #endif
25364    #ifndef _INT16_T
25365    #define _INT16_T
25366    #endif
25367    #ifndef _INT32_T
25368    #define _INT32_T
25369    #endif
25370    #ifndef _UINT8_T
25371    #define _UINT8_T
25372    #endif
25373    #ifndef _UINT16_T
25374    #define _UINT16_T
25375    #endif
25376    #ifndef _UINT32_T
25377    #define _UINT32_T
25378    #endif
25379EOF
25380fi
25381
25382# ------------- done basic int types, emit int64_t types ------------
25383if test "$ac_cv_type_uint64_t" = yes; then
25384  sed 's/^ *//' >> tmp-stdint.h <<EOF
25385
25386    /* system headers have good uint64_t and int64_t */
25387    #ifndef _INT64_T
25388    #define _INT64_T
25389    #endif
25390    #ifndef _UINT64_T
25391    #define _UINT64_T
25392    #endif
25393EOF
25394elif test "$ac_cv_type_u_int64_t" = yes; then
25395  sed 's/^ *//' >> tmp-stdint.h <<EOF
25396
25397    /* system headers have an u_int64_t (and int64_t) */
25398    #ifndef _INT64_T
25399    #define _INT64_T
25400    #endif
25401    #ifndef _UINT64_T
25402    #define _UINT64_T
25403    #ifndef __uint64_t_defined
25404    #define __uint64_t_defined
25405    typedef u_int64_t uint64_t;
25406    #endif
25407    #endif
25408EOF
25409elif test -n "$acx_cv_type_int64_t"; then
25410  sed 's/^ *//' >> tmp-stdint.h <<EOF
25411
25412    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25413    #ifndef _INT64_T
25414    #define _INT64_T
25415    typedef $acx_cv_type_int64_t int64_t;
25416    #endif
25417    #ifndef _UINT64_T
25418    #define _UINT64_T
25419    #ifndef __uint64_t_defined
25420    #define __uint64_t_defined
25421    typedef unsigned $acx_cv_type_int64_t uint64_t;
25422    #endif
25423    #endif
25424EOF
25425else
25426  sed 's/^ *//' >> tmp-stdint.h <<EOF
25427
25428    /* some common heuristics for int64_t, using compiler-specific tests */
25429    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25430    #ifndef _INT64_T
25431    #define _INT64_T
25432    #ifndef __int64_t_defined
25433    typedef long long int64_t;
25434    #endif
25435    #endif
25436    #ifndef _UINT64_T
25437    #define _UINT64_T
25438    typedef unsigned long long uint64_t;
25439    #endif
25440
25441    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25442    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25443       does not implement __extension__.  But that compiler doesn't define
25444       __GNUC_MINOR__.  */
25445    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25446    # define __extension__
25447    # endif
25448
25449    # ifndef _INT64_T
25450    # define _INT64_T
25451    __extension__ typedef long long int64_t;
25452    # endif
25453    # ifndef _UINT64_T
25454    # define _UINT64_T
25455    __extension__ typedef unsigned long long uint64_t;
25456    # endif
25457
25458    #elif !defined __STRICT_ANSI__
25459    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25460
25461    #  ifndef _INT64_T
25462    #  define _INT64_T
25463    typedef __int64 int64_t;
25464    #  endif
25465    #  ifndef _UINT64_T
25466    #  define _UINT64_T
25467    typedef unsigned __int64 uint64_t;
25468    #  endif
25469    # endif /* compiler */
25470
25471    #endif /* ANSI version */
25472EOF
25473fi
25474
25475# ------------- done int64_t types, emit intptr types ------------
25476if test "$ac_cv_type_uintptr_t" != yes; then
25477  sed 's/^ *//' >> tmp-stdint.h <<EOF
25478
25479    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25480    #ifndef __uintptr_t_defined
25481    typedef u$acx_cv_type_intptr_t uintptr_t;
25482    #endif
25483    #ifndef __intptr_t_defined
25484    typedef $acx_cv_type_intptr_t  intptr_t;
25485    #endif
25486EOF
25487fi
25488
25489# ------------- done intptr types, emit int_least types ------------
25490if test "$ac_cv_type_int_least32_t" != yes; then
25491  sed 's/^ *//' >> tmp-stdint.h <<EOF
25492
25493    /* Define int_least types */
25494    typedef int8_t     int_least8_t;
25495    typedef int16_t    int_least16_t;
25496    typedef int32_t    int_least32_t;
25497    #ifdef _INT64_T
25498    typedef int64_t    int_least64_t;
25499    #endif
25500
25501    typedef uint8_t    uint_least8_t;
25502    typedef uint16_t   uint_least16_t;
25503    typedef uint32_t   uint_least32_t;
25504    #ifdef _UINT64_T
25505    typedef uint64_t   uint_least64_t;
25506    #endif
25507EOF
25508fi
25509
25510# ------------- done intptr types, emit int_fast types ------------
25511if test "$ac_cv_type_int_fast32_t" != yes; then
25512      sed 's/^ *//' >> tmp-stdint.h <<EOF
25513
25514    /* Define int_fast types.  short is often slow */
25515    typedef int8_t       int_fast8_t;
25516    typedef int          int_fast16_t;
25517    typedef int32_t      int_fast32_t;
25518    #ifdef _INT64_T
25519    typedef int64_t      int_fast64_t;
25520    #endif
25521
25522    typedef uint8_t      uint_fast8_t;
25523    typedef unsigned int uint_fast16_t;
25524    typedef uint32_t     uint_fast32_t;
25525    #ifdef _UINT64_T
25526    typedef uint64_t     uint_fast64_t;
25527    #endif
25528EOF
25529fi
25530
25531if test "$ac_cv_type_uintmax_t" != yes; then
25532  sed 's/^ *//' >> tmp-stdint.h <<EOF
25533
25534    /* Define intmax based on what we found */
25535    #ifdef _INT64_T
25536    typedef int64_t       intmax_t;
25537    #else
25538    typedef long          intmax_t;
25539    #endif
25540    #ifdef _UINT64_T
25541    typedef uint64_t      uintmax_t;
25542    #else
25543    typedef unsigned long uintmax_t;
25544    #endif
25545EOF
25546fi
25547
25548sed 's/^ *//' >> tmp-stdint.h <<EOF
25549
25550  #endif /* GCC_GENERATED_STDINT_H */
25551EOF
25552
25553if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25554  rm -f tmp-stdint.h
25555else
25556  mv -f tmp-stdint.h gdb_stdint.h
25557fi
25558
25559 ;;
25560    default )
25561
25562sed -e '/^DEPRECATED_TM_FILE[ 	]*=/s,^DEPRECATED_TM_FILE[ 	]*=[ 	]*,&config/'"${gdb_target_cpu}"'/,
25563/^XM_FILE[ 	]*=/s,^XM_FILE[ 	]*=[ 	]*,&config/'"${gdb_host_cpu}"'/,
25564/^NAT_FILE[ 	]*=/s,^NAT_FILE[ 	]*=[ 	]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25565mv -f Makefile.tmp Makefile
25566
25567
25568case x$CONFIG_HEADERS in
25569xconfig.h:config.in)
25570echo > stamp-h ;;
25571esac
25572 ;;
25573  esac
25574done
25575_ACEOF
25576
25577cat >>$CONFIG_STATUS <<\_ACEOF
25578
25579{ (exit 0); exit 0; }
25580_ACEOF
25581chmod +x $CONFIG_STATUS
25582ac_clean_files=$ac_clean_files_save
25583
25584
25585# configure is writing to config.log, and then calls config.status.
25586# config.status does its own redirection, appending to config.log.
25587# Unfortunately, on DOS this fails, as config.log is still kept open
25588# by configure, so config.status won't be able to write to it; its
25589# output is simply discarded.  So we exec the FD to /dev/null,
25590# effectively closing config.log, so it can be properly (re)opened and
25591# appended to by config.status.  When coming back to configure, we
25592# need to make the FD available again.
25593if test "$no_create" != yes; then
25594  ac_cs_success=:
25595  ac_config_status_args=
25596  test "$silent" = yes &&
25597    ac_config_status_args="$ac_config_status_args --quiet"
25598  exec 5>/dev/null
25599  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25600  exec 5>>config.log
25601  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25602  # would make configure fail if this is the last instruction.
25603  $ac_cs_success || { (exit 1); exit 1; }
25604fi
25605
25606#
25607# CONFIG_SUBDIRS section.
25608#
25609if test "$no_recursion" != yes; then
25610
25611  # Remove --cache-file and --srcdir arguments so they do not pile up.
25612  ac_sub_configure_args=
25613  ac_prev=
25614  for ac_arg in $ac_configure_args; do
25615    if test -n "$ac_prev"; then
25616      ac_prev=
25617      continue
25618    fi
25619    case $ac_arg in
25620    -cache-file | --cache-file | --cache-fil | --cache-fi \
25621    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25622      ac_prev=cache_file ;;
25623    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25624    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25625    | --c=*)
25626      ;;
25627    --config-cache | -C)
25628      ;;
25629    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25630      ac_prev=srcdir ;;
25631    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25632      ;;
25633    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25634      ac_prev=prefix ;;
25635    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25636      ;;
25637    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25638    esac
25639  done
25640
25641  # Always prepend --prefix to ensure using the same prefix
25642  # in subdir configurations.
25643  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25644
25645  ac_popdir=`pwd`
25646  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25647
25648    # Do not complain, so a configure script can configure whichever
25649    # parts of a large source tree are present.
25650    test -d $srcdir/$ac_dir || continue
25651
25652    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25653echo "$as_me: configuring in $ac_dir" >&6;}
25654    { if $as_mkdir_p; then
25655    mkdir -p "$ac_dir"
25656  else
25657    as_dir="$ac_dir"
25658    as_dirs=
25659    while test ! -d "$as_dir"; do
25660      as_dirs="$as_dir $as_dirs"
25661      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25662$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25663	 X"$as_dir" : 'X\(//\)[^/]' \| \
25664	 X"$as_dir" : 'X\(//\)$' \| \
25665	 X"$as_dir" : 'X\(/\)' \| \
25666	 .     : '\(.\)' 2>/dev/null ||
25667echo X"$as_dir" |
25668    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25669  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25670  	  /^X\(\/\/\)$/{ s//\1/; q; }
25671  	  /^X\(\/\).*/{ s//\1/; q; }
25672  	  s/.*/./; q'`
25673    done
25674    test ! -n "$as_dirs" || mkdir $as_dirs
25675  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25676echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25677   { (exit 1); exit 1; }; }; }
25678
25679    ac_builddir=.
25680
25681if test "$ac_dir" != .; then
25682  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25683  # A "../" for each directory in $ac_dir_suffix.
25684  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25685else
25686  ac_dir_suffix= ac_top_builddir=
25687fi
25688
25689case $srcdir in
25690  .)  # No --srcdir option.  We are building in place.
25691    ac_srcdir=.
25692    if test -z "$ac_top_builddir"; then
25693       ac_top_srcdir=.
25694    else
25695       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25696    fi ;;
25697  [\\/]* | ?:[\\/]* )  # Absolute path.
25698    ac_srcdir=$srcdir$ac_dir_suffix;
25699    ac_top_srcdir=$srcdir ;;
25700  *) # Relative path.
25701    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25702    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25703esac
25704
25705# Do not use `cd foo && pwd` to compute absolute paths, because
25706# the directories may not exist.
25707case `pwd` in
25708.) ac_abs_builddir="$ac_dir";;
25709*)
25710  case "$ac_dir" in
25711  .) ac_abs_builddir=`pwd`;;
25712  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25713  *) ac_abs_builddir=`pwd`/"$ac_dir";;
25714  esac;;
25715esac
25716case $ac_abs_builddir in
25717.) ac_abs_top_builddir=${ac_top_builddir}.;;
25718*)
25719  case ${ac_top_builddir}. in
25720  .) ac_abs_top_builddir=$ac_abs_builddir;;
25721  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25722  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25723  esac;;
25724esac
25725case $ac_abs_builddir in
25726.) ac_abs_srcdir=$ac_srcdir;;
25727*)
25728  case $ac_srcdir in
25729  .) ac_abs_srcdir=$ac_abs_builddir;;
25730  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25731  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25732  esac;;
25733esac
25734case $ac_abs_builddir in
25735.) ac_abs_top_srcdir=$ac_top_srcdir;;
25736*)
25737  case $ac_top_srcdir in
25738  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25739  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25740  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25741  esac;;
25742esac
25743
25744
25745    cd $ac_dir
25746
25747    # Check for guested configure; otherwise get Cygnus style configure.
25748    if test -f $ac_srcdir/configure.gnu; then
25749      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25750    elif test -f $ac_srcdir/configure; then
25751      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25752    elif test -f $ac_srcdir/configure.in; then
25753      ac_sub_configure=$ac_configure
25754    else
25755      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25756echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25757      ac_sub_configure=
25758    fi
25759
25760    # The recursion is here.
25761    if test -n "$ac_sub_configure"; then
25762      # Make the cache file name correct relative to the subdirectory.
25763      case $cache_file in
25764      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25765      *) # Relative path.
25766	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25767      esac
25768
25769      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25770echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25771      # The eval makes quoting arguments work.
25772      eval $ac_sub_configure $ac_sub_configure_args \
25773	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25774	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25775echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25776   { (exit 1); exit 1; }; }
25777    fi
25778
25779    cd $ac_popdir
25780  done
25781fi
25782
25783
25784exit 0
25785