* configure.ac: Check for XML_StopParser.
[external/binutils.git] / gdb / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
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
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 ac_subdirs_all="$ac_subdirs_all doc testsuite"
276 # Factoring default headers for most tests.
277 ac_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
313 ac_subdirs_all="$ac_subdirs_all gdbtk"
314 ac_subdirs_all="$ac_subdirs_all multi-ice"
315 ac_subdirs_all="$ac_subdirs_all gdbserver"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 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'
317 ac_subst_files='host_makefile_frag target_makefile_frag'
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_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.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
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
631 Try \`$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
654 done
655
656 if test -n "$ac_prev"; then
657   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658   { echo "$as_me: error: missing argument to $ac_option" >&2
659    { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
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
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675               localstatedir libdir includedir oldincludedir infodir mandir
676 do
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
683 done
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.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694   if test "x$build_alias" = x; then
695     cross_compiling=maybe
696     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697     If a cross compiler is detected then cross compile mode will be used." >&2
698   elif test "x$build_alias" != "x$host_alias"; then
699     cross_compiling=yes
700   fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711   ac_srcdir_defaulted=yes
712   # Try the directory containing this script, then its parent.
713   ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715          X"$0" : 'X\(//\)[^/]' \| \
716          X"$0" : 'X\(//\)$' \| \
717          X"$0" : 'X\(/\)' \| \
718          .     : '\(.\)' 2>/dev/null ||
719 echo 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
729 else
730   ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733   if test "$ac_srcdir_defaulted" = yes; then
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735    { (exit 1); exit 1; }; }
736   else
737     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738    { (exit 1); exit 1; }; }
739   fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743    { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777
778 #
779 # Report the --help message.
780 #
781 if test "$ac_init_help" = "long"; then
782   # Omit some internal or obsolete options to make the list less imposing.
783   # This message is too long to be a string in the A/UX 3.1 sh.
784   cat <<_ACEOF
785 \`configure' configures this package to adapt to many kinds of systems.
786
787 Usage: $0 [OPTION]... [VAR=VALUE]...
788
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE.  See below for descriptions of some of the useful variables.
791
792 Defaults for the options are specified in brackets.
793
794 Configuration:
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
808 Installation 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
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
818
819 For better control, use the options below.
820
821 Fine tuning of the installation directories:
822   --bindir=DIR           user executables [EPREFIX/bin]
823   --sbindir=DIR          system admin executables [EPREFIX/sbin]
824   --libexecdir=DIR       program executables [EPREFIX/libexec]
825   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
826   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
827   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
828   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
829   --libdir=DIR           object code libraries [EPREFIX/lib]
830   --includedir=DIR       C header files [PREFIX/include]
831   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
832   --infodir=DIR          info documentation [PREFIX/info]
833   --mandir=DIR           man documentation [PREFIX/man]
834 _ACEOF
835
836   cat <<\_ACEOF
837
838 Program 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
843 X features:
844   --x-includes=DIR    X include files are in DIR
845   --x-libraries=DIR   X library files are in DIR
846
847 System 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
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional 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
875 Optional 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-gnu-ld           assume the C compiler uses GNU ld default=no
881   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
882   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
883   --without-included-regex don't use included regex; this is the default
884                           on systems with version 2 of the GNU C library
885                           (use with caution on other system)
886   --with-sysroot=DIR Search for usr/lib et al within DIR.
887   --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)
888   --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)
889   --with-tclinclude=DIR   Directory where tcl private headers are
890   --with-tkinclude=DIR    Directory where tk private headers are
891   --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)
892   --with-itkconfig        Directory containing itk configuration (itkConfig.sh)
893   --with-x                use the X Window System
894   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
895
896 Some influential environment variables:
897   CC          C compiler command
898   CFLAGS      C compiler flags
899   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
900               nonstandard directory <lib dir>
901   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
902               headers in a nonstandard directory <include dir>
903   CPP         C preprocessor
904
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
907
908 _ACEOF
909 fi
910
911 if test "$ac_init_help" = "recursive"; then
912   # If there are subdirs, report their specific --help.
913   ac_popdir=`pwd`
914   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915     test -d $ac_dir || continue
916     ac_builddir=.
917
918 if test "$ac_dir" != .; then
919   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920   # A "../" for each directory in $ac_dir_suffix.
921   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 else
923   ac_dir_suffix= ac_top_builddir=
924 fi
925
926 case $srcdir in
927   .)  # No --srcdir option.  We are building in place.
928     ac_srcdir=.
929     if test -z "$ac_top_builddir"; then
930        ac_top_srcdir=.
931     else
932        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933     fi ;;
934   [\\/]* | ?:[\\/]* )  # Absolute path.
935     ac_srcdir=$srcdir$ac_dir_suffix;
936     ac_top_srcdir=$srcdir ;;
937   *) # Relative path.
938     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939     ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 esac
941
942 # Do not use `cd foo && pwd` to compute absolute paths, because
943 # the directories may not exist.
944 case `pwd` in
945 .) ac_abs_builddir="$ac_dir";;
946 *)
947   case "$ac_dir" in
948   .) ac_abs_builddir=`pwd`;;
949   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950   *) ac_abs_builddir=`pwd`/"$ac_dir";;
951   esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_builddir=${ac_top_builddir}.;;
955 *)
956   case ${ac_top_builddir}. in
957   .) ac_abs_top_builddir=$ac_abs_builddir;;
958   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960   esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_srcdir=$ac_srcdir;;
964 *)
965   case $ac_srcdir in
966   .) ac_abs_srcdir=$ac_abs_builddir;;
967   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969   esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_top_srcdir=$ac_top_srcdir;;
973 *)
974   case $ac_top_srcdir in
975   .) ac_abs_top_srcdir=$ac_abs_builddir;;
976   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978   esac;;
979 esac
980
981     cd $ac_dir
982     # Check for guested configure; otherwise get Cygnus style configure.
983     if test -f $ac_srcdir/configure.gnu; then
984       echo
985       $SHELL $ac_srcdir/configure.gnu  --help=recursive
986     elif test -f $ac_srcdir/configure; then
987       echo
988       $SHELL $ac_srcdir/configure  --help=recursive
989     elif test -f $ac_srcdir/configure.ac ||
990            test -f $ac_srcdir/configure.in; then
991       echo
992       $ac_configure --help
993     else
994       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995     fi
996     cd $ac_popdir
997   done
998 fi
999
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1002   cat <<\_ACEOF
1003
1004 Copyright (C) 2003 Free Software Foundation, Inc.
1005 This configure script is free software; the Free Software Foundation
1006 gives unlimited permission to copy, distribute and modify it.
1007 _ACEOF
1008   exit 0
1009 fi
1010 exec 5>config.log
1011 cat >&5 <<_ACEOF
1012 This file contains any messages produced by compilers while
1013 running configure, to aid debugging if configure makes a mistake.
1014
1015 It was created by $as_me, which was
1016 generated by GNU Autoconf 2.59.  Invocation command line was
1017
1018   $ $0 $@
1019
1020 _ACEOF
1021 {
1022 cat <<_ASUNAME
1023 ## --------- ##
1024 ## Platform. ##
1025 ## --------- ##
1026
1027 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032
1033 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1035
1036 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1037 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1038 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1039 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1040 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1041 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1042 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1043
1044 _ASUNAME
1045
1046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1047 for as_dir in $PATH
1048 do
1049   IFS=$as_save_IFS
1050   test -z "$as_dir" && as_dir=.
1051   echo "PATH: $as_dir"
1052 done
1053
1054 } >&5
1055
1056 cat >&5 <<_ACEOF
1057
1058
1059 ## ----------- ##
1060 ## Core tests. ##
1061 ## ----------- ##
1062
1063 _ACEOF
1064
1065
1066 # Keep a trace of the command line.
1067 # Strip out --no-create and --no-recursion so they do not pile up.
1068 # Strip out --silent because we don't want to record it for future runs.
1069 # Also quote any args containing shell meta-characters.
1070 # Make two passes to allow for proper duplicate-argument suppression.
1071 ac_configure_args=
1072 ac_configure_args0=
1073 ac_configure_args1=
1074 ac_sep=
1075 ac_must_keep_next=false
1076 for ac_pass in 1 2
1077 do
1078   for ac_arg
1079   do
1080     case $ac_arg in
1081     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083     | -silent | --silent | --silen | --sile | --sil)
1084       continue ;;
1085     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1086       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087     esac
1088     case $ac_pass in
1089     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090     2)
1091       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092       if test $ac_must_keep_next = true; then
1093         ac_must_keep_next=false # Got value, back to normal.
1094       else
1095         case $ac_arg in
1096           *=* | --config-cache | -C | -disable-* | --disable-* \
1097           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099           | -with-* | --with-* | -without-* | --without-* | --x)
1100             case "$ac_configure_args0 " in
1101               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102             esac
1103             ;;
1104           -* ) ac_must_keep_next=true ;;
1105         esac
1106       fi
1107       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108       # Get rid of the leading space.
1109       ac_sep=" "
1110       ;;
1111     esac
1112   done
1113 done
1114 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116
1117 # When interrupted or exit'd, cleanup temporary files, and complete
1118 # config.log.  We remove comments because anyway the quotes in there
1119 # would cause problems or look ugly.
1120 # WARNING: Be sure not to use single quotes in there, as some shells,
1121 # such as our DU 5.0 friend, will then `close' the trap.
1122 trap 'exit_status=$?
1123   # Save into config.log some information that might help in debugging.
1124   {
1125     echo
1126
1127     cat <<\_ASBOX
1128 ## ---------------- ##
1129 ## Cache variables. ##
1130 ## ---------------- ##
1131 _ASBOX
1132     echo
1133     # The following way of writing the cache mishandles newlines in values,
1134 {
1135   (set) 2>&1 |
1136     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137     *ac_space=\ *)
1138       sed -n \
1139         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141       ;;
1142     *)
1143       sed -n \
1144         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1145       ;;
1146     esac;
1147 }
1148     echo
1149
1150     cat <<\_ASBOX
1151 ## ----------------- ##
1152 ## Output variables. ##
1153 ## ----------------- ##
1154 _ASBOX
1155     echo
1156     for ac_var in $ac_subst_vars
1157     do
1158       eval ac_val=$`echo $ac_var`
1159       echo "$ac_var='"'"'$ac_val'"'"'"
1160     done | sort
1161     echo
1162
1163     if test -n "$ac_subst_files"; then
1164       cat <<\_ASBOX
1165 ## ------------- ##
1166 ## Output files. ##
1167 ## ------------- ##
1168 _ASBOX
1169       echo
1170       for ac_var in $ac_subst_files
1171       do
1172         eval ac_val=$`echo $ac_var`
1173         echo "$ac_var='"'"'$ac_val'"'"'"
1174       done | sort
1175       echo
1176     fi
1177
1178     if test -s confdefs.h; then
1179       cat <<\_ASBOX
1180 ## ----------- ##
1181 ## confdefs.h. ##
1182 ## ----------- ##
1183 _ASBOX
1184       echo
1185       sed "/^$/d" confdefs.h | sort
1186       echo
1187     fi
1188     test "$ac_signal" != 0 &&
1189       echo "$as_me: caught signal $ac_signal"
1190     echo "$as_me: exit $exit_status"
1191   } >&5
1192   rm -f core *.core &&
1193   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1194     exit $exit_status
1195      ' 0
1196 for ac_signal in 1 2 13 15; do
1197   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1198 done
1199 ac_signal=0
1200
1201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1202 rm -rf conftest* confdefs.h
1203 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 echo >confdefs.h
1205
1206 # Predefined preprocessor variables.
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_NAME "$PACKAGE_NAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_STRING "$PACKAGE_STRING"
1225 _ACEOF
1226
1227
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1230 _ACEOF
1231
1232
1233 # Let the site file select an alternate cache file if it wants to.
1234 # Prefer explicitly selected file to automatically selected ones.
1235 if test -z "$CONFIG_SITE"; then
1236   if test "x$prefix" != xNONE; then
1237     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238   else
1239     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240   fi
1241 fi
1242 for ac_site_file in $CONFIG_SITE; do
1243   if test -r "$ac_site_file"; then
1244     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245 echo "$as_me: loading site script $ac_site_file" >&6;}
1246     sed 's/^/| /' "$ac_site_file" >&5
1247     . "$ac_site_file"
1248   fi
1249 done
1250
1251 if test -r "$cache_file"; then
1252   # Some versions of bash will fail to source /dev/null (special
1253   # files actually), so we avoid doing that.
1254   if test -f "$cache_file"; then
1255     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256 echo "$as_me: loading cache $cache_file" >&6;}
1257     case $cache_file in
1258       [\\/]* | ?:[\\/]* ) . $cache_file;;
1259       *)                      . ./$cache_file;;
1260     esac
1261   fi
1262 else
1263   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264 echo "$as_me: creating cache $cache_file" >&6;}
1265   >$cache_file
1266 fi
1267
1268 # Check that the precious variables saved in the cache have kept the same
1269 # value.
1270 ac_cache_corrupted=false
1271 for ac_var in `(set) 2>&1 |
1272                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1273   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274   eval ac_new_set=\$ac_env_${ac_var}_set
1275   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276   eval ac_new_val="\$ac_env_${ac_var}_value"
1277   case $ac_old_set,$ac_new_set in
1278     set,)
1279       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281       ac_cache_corrupted=: ;;
1282     ,set)
1283       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285       ac_cache_corrupted=: ;;
1286     ,);;
1287     *)
1288       if test "x$ac_old_val" != "x$ac_new_val"; then
1289         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1292 echo "$as_me:   former value:  $ac_old_val" >&2;}
1293         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1294 echo "$as_me:   current value: $ac_new_val" >&2;}
1295         ac_cache_corrupted=:
1296       fi;;
1297   esac
1298   # Pass precious variables to config.status.
1299   if test "$ac_new_set" = set; then
1300     case $ac_new_val in
1301     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1303     *) ac_arg=$ac_var=$ac_new_val ;;
1304     esac
1305     case " $ac_configure_args " in
1306       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1307       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1308     esac
1309   fi
1310 done
1311 if $ac_cache_corrupted; then
1312   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316    { (exit 1); exit 1; }; }
1317 fi
1318
1319 ac_ext=c
1320 ac_cpp='$CPP $CPPFLAGS'
1321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343           ac_config_headers="$ac_config_headers config.h:config.in"
1344
1345 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1346 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1347     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1348 if test "${enable_maintainer_mode+set}" = set; then
1349   enableval="$enable_maintainer_mode"
1350   USE_MAINTAINER_MODE=$enableval
1351 else
1352   USE_MAINTAINER_MODE=no
1353 fi;
1354   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1355 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1356
1357
1358 if test $USE_MAINTAINER_MODE = yes; then
1359   MAINTAINER_MODE_TRUE=
1360   MAINTAINER_MODE_FALSE='#'
1361 else
1362   MAINTAINER_MODE_TRUE='#'
1363   MAINTAINER_MODE_FALSE=
1364 fi
1365
1366   MAINT=$MAINTAINER_MODE_TRUE
1367
1368
1369
1370 ac_ext=c
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375 if test -n "$ac_tool_prefix"; then
1376   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_CC+set}" = set; then
1381   echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383   if test -n "$CC"; then
1384   ac_cv_prog_CC="$CC" # Let the user override the test.
1385 else
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389   IFS=$as_save_IFS
1390   test -z "$as_dir" && as_dir=.
1391   for ac_exec_ext in '' $ac_executable_extensions; do
1392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395     break 2
1396   fi
1397 done
1398 done
1399
1400 fi
1401 fi
1402 CC=$ac_cv_prog_CC
1403 if test -n "$CC"; then
1404   echo "$as_me:$LINENO: result: $CC" >&5
1405 echo "${ECHO_T}$CC" >&6
1406 else
1407   echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1409 fi
1410
1411 fi
1412 if test -z "$ac_cv_prog_CC"; then
1413   ac_ct_CC=$CC
1414   # Extract the first word of "gcc", so it can be a program name with args.
1415 set dummy gcc; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   if test -n "$ac_ct_CC"; then
1422   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1423 else
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 for as_dir in $PATH
1426 do
1427   IFS=$as_save_IFS
1428   test -z "$as_dir" && as_dir=.
1429   for ac_exec_ext in '' $ac_executable_extensions; do
1430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431     ac_cv_prog_ac_ct_CC="gcc"
1432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433     break 2
1434   fi
1435 done
1436 done
1437
1438 fi
1439 fi
1440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441 if test -n "$ac_ct_CC"; then
1442   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443 echo "${ECHO_T}$ac_ct_CC" >&6
1444 else
1445   echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1447 fi
1448
1449   CC=$ac_ct_CC
1450 else
1451   CC="$ac_cv_prog_CC"
1452 fi
1453
1454 if test -z "$CC"; then
1455   if test -n "$ac_tool_prefix"; then
1456   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1457 set dummy ${ac_tool_prefix}cc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_CC+set}" = set; then
1461   echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463   if test -n "$CC"; then
1464   ac_cv_prog_CC="$CC" # Let the user override the test.
1465 else
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469   IFS=$as_save_IFS
1470   test -z "$as_dir" && as_dir=.
1471   for ac_exec_ext in '' $ac_executable_extensions; do
1472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473     ac_cv_prog_CC="${ac_tool_prefix}cc"
1474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475     break 2
1476   fi
1477 done
1478 done
1479
1480 fi
1481 fi
1482 CC=$ac_cv_prog_CC
1483 if test -n "$CC"; then
1484   echo "$as_me:$LINENO: result: $CC" >&5
1485 echo "${ECHO_T}$CC" >&6
1486 else
1487   echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489 fi
1490
1491 fi
1492 if test -z "$ac_cv_prog_CC"; then
1493   ac_ct_CC=$CC
1494   # Extract the first word of "cc", so it can be a program name with args.
1495 set dummy cc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499   echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501   if test -n "$ac_ct_CC"; then
1502   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503 else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507   IFS=$as_save_IFS
1508   test -z "$as_dir" && as_dir=.
1509   for ac_exec_ext in '' $ac_executable_extensions; do
1510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511     ac_cv_prog_ac_ct_CC="cc"
1512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513     break 2
1514   fi
1515 done
1516 done
1517
1518 fi
1519 fi
1520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521 if test -n "$ac_ct_CC"; then
1522   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523 echo "${ECHO_T}$ac_ct_CC" >&6
1524 else
1525   echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529   CC=$ac_ct_CC
1530 else
1531   CC="$ac_cv_prog_CC"
1532 fi
1533
1534 fi
1535 if test -z "$CC"; then
1536   # Extract the first word of "cc", so it can be a program name with args.
1537 set dummy cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541   echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543   if test -n "$CC"; then
1544   ac_cv_prog_CC="$CC" # Let the user override the test.
1545 else
1546   ac_prog_rejected=no
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550   IFS=$as_save_IFS
1551   test -z "$as_dir" && as_dir=.
1552   for ac_exec_ext in '' $ac_executable_extensions; do
1553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555        ac_prog_rejected=yes
1556        continue
1557      fi
1558     ac_cv_prog_CC="cc"
1559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560     break 2
1561   fi
1562 done
1563 done
1564
1565 if test $ac_prog_rejected = yes; then
1566   # We found a bogon in the path, so make sure we never use it.
1567   set dummy $ac_cv_prog_CC
1568   shift
1569   if test $# != 0; then
1570     # We chose a different compiler from the bogus one.
1571     # However, it has the same basename, so the bogon will be chosen
1572     # first if we set CC to just the basename; use the full file name.
1573     shift
1574     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1575   fi
1576 fi
1577 fi
1578 fi
1579 CC=$ac_cv_prog_CC
1580 if test -n "$CC"; then
1581   echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588 fi
1589 if test -z "$CC"; then
1590   if test -n "$ac_tool_prefix"; then
1591   for ac_prog in cl
1592   do
1593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   if test -n "$CC"; then
1601   ac_cv_prog_CC="$CC" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   for ac_exec_ext in '' $ac_executable_extensions; do
1609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612     break 2
1613   fi
1614 done
1615 done
1616
1617 fi
1618 fi
1619 CC=$ac_cv_prog_CC
1620 if test -n "$CC"; then
1621   echo "$as_me:$LINENO: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1623 else
1624   echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628     test -n "$CC" && break
1629   done
1630 fi
1631 if test -z "$CC"; then
1632   ac_ct_CC=$CC
1633   for ac_prog in cl
1634 do
1635   # Extract the first word of "$ac_prog", so it can be a program name with args.
1636 set dummy $ac_prog; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$ac_ct_CC"; then
1643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_ac_ct_CC="$ac_prog"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670   test -n "$ac_ct_CC" && break
1671 done
1672
1673   CC=$ac_ct_CC
1674 fi
1675
1676 fi
1677
1678
1679 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&5
1681 echo "$as_me: error: no acceptable C compiler found in \$PATH
1682 See \`config.log' for more details." >&2;}
1683    { (exit 1); exit 1; }; }
1684
1685 # Provide some information about the compiler.
1686 echo "$as_me:$LINENO:" \
1687      "checking for C compiler version" >&5
1688 ac_compiler=`set X $ac_compile; echo $2`
1689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690   (eval $ac_compiler --version </dev/null >&5) 2>&5
1691   ac_status=$?
1692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693   (exit $ac_status); }
1694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695   (eval $ac_compiler -v </dev/null >&5) 2>&5
1696   ac_status=$?
1697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698   (exit $ac_status); }
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700   (eval $ac_compiler -V </dev/null >&5) 2>&5
1701   ac_status=$?
1702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703   (exit $ac_status); }
1704
1705 cat >conftest.$ac_ext <<_ACEOF
1706 /* confdefs.h.  */
1707 _ACEOF
1708 cat confdefs.h >>conftest.$ac_ext
1709 cat >>conftest.$ac_ext <<_ACEOF
1710 /* end confdefs.h.  */
1711
1712 int
1713 main ()
1714 {
1715
1716   ;
1717   return 0;
1718 }
1719 _ACEOF
1720 ac_clean_files_save=$ac_clean_files
1721 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1722 # Try to create an executable without -o first, disregard a.out.
1723 # It will help us diagnose broken compilers, and finding out an intuition
1724 # of exeext.
1725 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1726 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1727 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1729   (eval $ac_link_default) 2>&5
1730   ac_status=$?
1731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732   (exit $ac_status); }; then
1733   # Find the output, starting from the most likely.  This scheme is
1734 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1735 # resort.
1736
1737 # Be careful to initialize this variable, since it used to be cached.
1738 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1739 ac_cv_exeext=
1740 # b.out is created by i960 compilers.
1741 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1742 do
1743   test -f "$ac_file" || continue
1744   case $ac_file in
1745     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1746         ;;
1747     conftest.$ac_ext )
1748         # This is the source file.
1749         ;;
1750     [ab].out )
1751         # We found the default executable, but exeext='' is most
1752         # certainly right.
1753         break;;
1754     *.* )
1755         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756         # FIXME: I believe we export ac_cv_exeext for Libtool,
1757         # but it would be cool to find out if it's true.  Does anybody
1758         # maintain Libtool? --akim.
1759         export ac_cv_exeext
1760         break;;
1761     * )
1762         break;;
1763   esac
1764 done
1765 else
1766   echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1770 See \`config.log' for more details." >&5
1771 echo "$as_me: error: C compiler cannot create executables
1772 See \`config.log' for more details." >&2;}
1773    { (exit 77); exit 77; }; }
1774 fi
1775
1776 ac_exeext=$ac_cv_exeext
1777 echo "$as_me:$LINENO: result: $ac_file" >&5
1778 echo "${ECHO_T}$ac_file" >&6
1779
1780 # Check the compiler produces executables we can run.  If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785 # If not cross compiling, check that we can run a simple program.
1786 if test "$cross_compiling" != yes; then
1787   if { ac_try='./$ac_file'
1788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789   (eval $ac_try) 2>&5
1790   ac_status=$?
1791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792   (exit $ac_status); }; }; then
1793     cross_compiling=no
1794   else
1795     if test "$cross_compiling" = maybe; then
1796         cross_compiling=yes
1797     else
1798         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1799 If you meant to cross compile, use \`--host'.
1800 See \`config.log' for more details." >&5
1801 echo "$as_me: error: cannot run C compiled programs.
1802 If you meant to cross compile, use \`--host'.
1803 See \`config.log' for more details." >&2;}
1804    { (exit 1); exit 1; }; }
1805     fi
1806   fi
1807 fi
1808 echo "$as_me:$LINENO: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1810
1811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1812 ac_clean_files=$ac_clean_files_save
1813 # Check the compiler produces executables we can run.  If not, either
1814 # the compiler is broken, or we cross compile.
1815 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1817 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1818 echo "${ECHO_T}$cross_compiling" >&6
1819
1820 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1821 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1823   (eval $ac_link) 2>&5
1824   ac_status=$?
1825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826   (exit $ac_status); }; then
1827   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1828 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1829 # work properly (i.e., refer to `conftest.exe'), while it won't with
1830 # `rm'.
1831 for ac_file in conftest.exe conftest conftest.*; do
1832   test -f "$ac_file" || continue
1833   case $ac_file in
1834     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1835     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836           export ac_cv_exeext
1837           break;;
1838     * ) break;;
1839   esac
1840 done
1841 else
1842   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1843 See \`config.log' for more details." >&5
1844 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1845 See \`config.log' for more details." >&2;}
1846    { (exit 1); exit 1; }; }
1847 fi
1848
1849 rm -f conftest$ac_cv_exeext
1850 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1851 echo "${ECHO_T}$ac_cv_exeext" >&6
1852
1853 rm -f conftest.$ac_ext
1854 EXEEXT=$ac_cv_exeext
1855 ac_exeext=$EXEEXT
1856 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1857 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1858 if test "${ac_cv_objext+set}" = set; then
1859   echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861   cat >conftest.$ac_ext <<_ACEOF
1862 /* confdefs.h.  */
1863 _ACEOF
1864 cat confdefs.h >>conftest.$ac_ext
1865 cat >>conftest.$ac_ext <<_ACEOF
1866 /* end confdefs.h.  */
1867
1868 int
1869 main ()
1870 {
1871
1872   ;
1873   return 0;
1874 }
1875 _ACEOF
1876 rm -f conftest.o conftest.obj
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878   (eval $ac_compile) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); }; then
1882   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1883   case $ac_file in
1884     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1885     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1886        break;;
1887   esac
1888 done
1889 else
1890   echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1894 See \`config.log' for more details." >&5
1895 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1896 See \`config.log' for more details." >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1901 fi
1902 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1903 echo "${ECHO_T}$ac_cv_objext" >&6
1904 OBJEXT=$ac_cv_objext
1905 ac_objext=$OBJEXT
1906 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1909   echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911   cat >conftest.$ac_ext <<_ACEOF
1912 /* confdefs.h.  */
1913 _ACEOF
1914 cat confdefs.h >>conftest.$ac_ext
1915 cat >>conftest.$ac_ext <<_ACEOF
1916 /* end confdefs.h.  */
1917
1918 int
1919 main ()
1920 {
1921 #ifndef __GNUC__
1922        choke me
1923 #endif
1924
1925   ;
1926   return 0;
1927 }
1928 _ACEOF
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931   (eval $ac_compile) 2>conftest.er1
1932   ac_status=$?
1933   grep -v '^ *+' conftest.er1 >conftest.err
1934   rm -f conftest.er1
1935   cat conftest.err >&5
1936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937   (exit $ac_status); } &&
1938          { ac_try='test -z "$ac_c_werror_flag"
1939                          || test ! -s conftest.err'
1940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941   (eval $ac_try) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); }; } &&
1945          { ac_try='test -s conftest.$ac_objext'
1946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947   (eval $ac_try) 2>&5
1948   ac_status=$?
1949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950   (exit $ac_status); }; }; then
1951   ac_compiler_gnu=yes
1952 else
1953   echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 ac_compiler_gnu=no
1957 fi
1958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1959 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1960
1961 fi
1962 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1963 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1964 GCC=`test $ac_compiler_gnu = yes && echo yes`
1965 ac_test_CFLAGS=${CFLAGS+set}
1966 ac_save_CFLAGS=$CFLAGS
1967 CFLAGS="-g"
1968 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1969 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1970 if test "${ac_cv_prog_cc_g+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h.  */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h.  */
1979
1980 int
1981 main ()
1982 {
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990   (eval $ac_compile) 2>conftest.er1
1991   ac_status=$?
1992   grep -v '^ *+' conftest.er1 >conftest.err
1993   rm -f conftest.er1
1994   cat conftest.err >&5
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); } &&
1997          { ac_try='test -z "$ac_c_werror_flag"
1998                          || test ! -s conftest.err'
1999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000   (eval $ac_try) 2>&5
2001   ac_status=$?
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); }; } &&
2004          { ac_try='test -s conftest.$ac_objext'
2005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006   (eval $ac_try) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }; }; then
2010   ac_cv_prog_cc_g=yes
2011 else
2012   echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_cv_prog_cc_g=no
2016 fi
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 fi
2019 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2020 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2021 if test "$ac_test_CFLAGS" = set; then
2022   CFLAGS=$ac_save_CFLAGS
2023 elif test $ac_cv_prog_cc_g = yes; then
2024   if test "$GCC" = yes; then
2025     CFLAGS="-g -O2"
2026   else
2027     CFLAGS="-g"
2028   fi
2029 else
2030   if test "$GCC" = yes; then
2031     CFLAGS="-O2"
2032   else
2033     CFLAGS=
2034   fi
2035 fi
2036 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2037 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2038 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   ac_cv_prog_cc_stdc=no
2042 ac_save_CC=$CC
2043 cat >conftest.$ac_ext <<_ACEOF
2044 /* confdefs.h.  */
2045 _ACEOF
2046 cat confdefs.h >>conftest.$ac_ext
2047 cat >>conftest.$ac_ext <<_ACEOF
2048 /* end confdefs.h.  */
2049 #include <stdarg.h>
2050 #include <stdio.h>
2051 #include <sys/types.h>
2052 #include <sys/stat.h>
2053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2054 struct buf { int x; };
2055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2056 static char *e (p, i)
2057      char **p;
2058      int i;
2059 {
2060   return p[i];
2061 }
2062 static char *f (char * (*g) (char **, int), char **p, ...)
2063 {
2064   char *s;
2065   va_list v;
2066   va_start (v,p);
2067   s = g (p, va_arg (v,int));
2068   va_end (v);
2069   return s;
2070 }
2071
2072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2073    function prototypes and stuff, but not '\xHH' hex character constants.
2074    These don't provoke an error unfortunately, instead are silently treated
2075    as 'x'.  The following induces an error, until -std1 is added to get
2076    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2077    array size at least.  It's necessary to write '\x00'==0 to get something
2078    that's true only with -std1.  */
2079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2080
2081 int test (int i, double x);
2082 struct s1 {int (*f) (int a);};
2083 struct s2 {int (*f) (double a);};
2084 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2085 int argc;
2086 char **argv;
2087 int
2088 main ()
2089 {
2090 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 # Don't try gcc -ansi; that turns off useful extensions and
2096 # breaks some systems' header files.
2097 # AIX                   -qlanglvl=ansi
2098 # Ultrix and OSF/1      -std1
2099 # HP-UX 10.20 and later -Ae
2100 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2101 # SVR4                  -Xc -D__EXTENSIONS__
2102 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2103 do
2104   CC="$ac_save_CC $ac_arg"
2105   rm -f conftest.$ac_objext
2106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107   (eval $ac_compile) 2>conftest.er1
2108   ac_status=$?
2109   grep -v '^ *+' conftest.er1 >conftest.err
2110   rm -f conftest.er1
2111   cat conftest.err >&5
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); } &&
2114          { ac_try='test -z "$ac_c_werror_flag"
2115                          || test ! -s conftest.err'
2116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117   (eval $ac_try) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; } &&
2121          { ac_try='test -s conftest.$ac_objext'
2122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123   (eval $ac_try) 2>&5
2124   ac_status=$?
2125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126   (exit $ac_status); }; }; then
2127   ac_cv_prog_cc_stdc=$ac_arg
2128 break
2129 else
2130   echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2132
2133 fi
2134 rm -f conftest.err conftest.$ac_objext
2135 done
2136 rm -f conftest.$ac_ext conftest.$ac_objext
2137 CC=$ac_save_CC
2138
2139 fi
2140
2141 case "x$ac_cv_prog_cc_stdc" in
2142   x|xno)
2143     echo "$as_me:$LINENO: result: none needed" >&5
2144 echo "${ECHO_T}none needed" >&6 ;;
2145   *)
2146     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2147 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2148     CC="$CC $ac_cv_prog_cc_stdc" ;;
2149 esac
2150
2151 # Some people use a C++ compiler to compile C.  Since we use `exit',
2152 # in C++ we need to declare it.  In case someone uses the same compiler
2153 # for both compiling C and C++ we need to have the C++ compiler decide
2154 # the declaration of exit, since it's the most demanding environment.
2155 cat >conftest.$ac_ext <<_ACEOF
2156 #ifndef __cplusplus
2157   choke me
2158 #endif
2159 _ACEOF
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162   (eval $ac_compile) 2>conftest.er1
2163   ac_status=$?
2164   grep -v '^ *+' conftest.er1 >conftest.err
2165   rm -f conftest.er1
2166   cat conftest.err >&5
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); } &&
2169          { ac_try='test -z "$ac_c_werror_flag"
2170                          || test ! -s conftest.err'
2171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172   (eval $ac_try) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; } &&
2176          { ac_try='test -s conftest.$ac_objext'
2177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178   (eval $ac_try) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }; }; then
2182   for ac_declaration in \
2183    '' \
2184    'extern "C" void std::exit (int) throw (); using std::exit;' \
2185    'extern "C" void std::exit (int); using std::exit;' \
2186    'extern "C" void exit (int) throw ();' \
2187    'extern "C" void exit (int);' \
2188    'void exit (int);'
2189 do
2190   cat >conftest.$ac_ext <<_ACEOF
2191 /* confdefs.h.  */
2192 _ACEOF
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h.  */
2196 $ac_declaration
2197 #include <stdlib.h>
2198 int
2199 main ()
2200 {
2201 exit (42);
2202   ;
2203   return 0;
2204 }
2205 _ACEOF
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208   (eval $ac_compile) 2>conftest.er1
2209   ac_status=$?
2210   grep -v '^ *+' conftest.er1 >conftest.err
2211   rm -f conftest.er1
2212   cat conftest.err >&5
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); } &&
2215          { ac_try='test -z "$ac_c_werror_flag"
2216                          || test ! -s conftest.err'
2217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218   (eval $ac_try) 2>&5
2219   ac_status=$?
2220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221   (exit $ac_status); }; } &&
2222          { ac_try='test -s conftest.$ac_objext'
2223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224   (eval $ac_try) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); }; }; then
2228   :
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 continue
2234 fi
2235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2236   cat >conftest.$ac_ext <<_ACEOF
2237 /* confdefs.h.  */
2238 _ACEOF
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h.  */
2242 $ac_declaration
2243 int
2244 main ()
2245 {
2246 exit (42);
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253   (eval $ac_compile) 2>conftest.er1
2254   ac_status=$?
2255   grep -v '^ *+' conftest.er1 >conftest.err
2256   rm -f conftest.er1
2257   cat conftest.err >&5
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); } &&
2260          { ac_try='test -z "$ac_c_werror_flag"
2261                          || test ! -s conftest.err'
2262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263   (eval $ac_try) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   break
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280 done
2281 rm -f conftest*
2282 if test -n "$ac_declaration"; then
2283   echo '#ifdef __cplusplus' >>confdefs.h
2284   echo $ac_declaration      >>confdefs.h
2285   echo '#endif'             >>confdefs.h
2286 fi
2287
2288 else
2289   echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 fi
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 ac_ext=c
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301 cat >>confdefs.h <<\_ACEOF
2302 #define _GNU_SOURCE 1
2303 _ACEOF
2304
2305
2306
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2313 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2314 # On Suns, sometimes $CPP names a directory.
2315 if test -n "$CPP" && test -d "$CPP"; then
2316   CPP=
2317 fi
2318 if test -z "$CPP"; then
2319   if test "${ac_cv_prog_CPP+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322       # Double quotes because CPP needs to be expanded
2323     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2324     do
2325       ac_preproc_ok=false
2326 for ac_c_preproc_warn_flag in '' yes
2327 do
2328   # Use a header file that comes with gcc, so configuring glibc
2329   # with a fresh cross-compiler works.
2330   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331   # <limits.h> exists even on freestanding compilers.
2332   # On the NeXT, cc -E runs the code through the compiler's parser,
2333   # not just through cpp. "Syntax error" is here to catch this case.
2334   cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 #ifdef __STDC__
2341 # include <limits.h>
2342 #else
2343 # include <assert.h>
2344 #endif
2345                      Syntax error
2346 _ACEOF
2347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349   ac_status=$?
2350   grep -v '^ *+' conftest.er1 >conftest.err
2351   rm -f conftest.er1
2352   cat conftest.err >&5
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); } >/dev/null; then
2355   if test -s conftest.err; then
2356     ac_cpp_err=$ac_c_preproc_warn_flag
2357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2358   else
2359     ac_cpp_err=
2360   fi
2361 else
2362   ac_cpp_err=yes
2363 fi
2364 if test -z "$ac_cpp_err"; then
2365   :
2366 else
2367   echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370   # Broken: fails on valid input.
2371 continue
2372 fi
2373 rm -f conftest.err conftest.$ac_ext
2374
2375   # OK, works on sane cases.  Now check whether non-existent headers
2376   # can be detected and how.
2377   cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h.  */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h.  */
2383 #include <ac_nonexistent.h>
2384 _ACEOF
2385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2387   ac_status=$?
2388   grep -v '^ *+' conftest.er1 >conftest.err
2389   rm -f conftest.er1
2390   cat conftest.err >&5
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); } >/dev/null; then
2393   if test -s conftest.err; then
2394     ac_cpp_err=$ac_c_preproc_warn_flag
2395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2396   else
2397     ac_cpp_err=
2398   fi
2399 else
2400   ac_cpp_err=yes
2401 fi
2402 if test -z "$ac_cpp_err"; then
2403   # Broken: success on invalid input.
2404 continue
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409   # Passes both tests.
2410 ac_preproc_ok=:
2411 break
2412 fi
2413 rm -f conftest.err conftest.$ac_ext
2414
2415 done
2416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2417 rm -f conftest.err conftest.$ac_ext
2418 if $ac_preproc_ok; then
2419   break
2420 fi
2421
2422     done
2423     ac_cv_prog_CPP=$CPP
2424
2425 fi
2426   CPP=$ac_cv_prog_CPP
2427 else
2428   ac_cv_prog_CPP=$CPP
2429 fi
2430 echo "$as_me:$LINENO: result: $CPP" >&5
2431 echo "${ECHO_T}$CPP" >&6
2432 ac_preproc_ok=false
2433 for ac_c_preproc_warn_flag in '' yes
2434 do
2435   # Use a header file that comes with gcc, so configuring glibc
2436   # with a fresh cross-compiler works.
2437   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2438   # <limits.h> exists even on freestanding compilers.
2439   # On the NeXT, cc -E runs the code through the compiler's parser,
2440   # not just through cpp. "Syntax error" is here to catch this case.
2441   cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447 #ifdef __STDC__
2448 # include <limits.h>
2449 #else
2450 # include <assert.h>
2451 #endif
2452                      Syntax error
2453 _ACEOF
2454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456   ac_status=$?
2457   grep -v '^ *+' conftest.er1 >conftest.err
2458   rm -f conftest.er1
2459   cat conftest.err >&5
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); } >/dev/null; then
2462   if test -s conftest.err; then
2463     ac_cpp_err=$ac_c_preproc_warn_flag
2464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2465   else
2466     ac_cpp_err=
2467   fi
2468 else
2469   ac_cpp_err=yes
2470 fi
2471 if test -z "$ac_cpp_err"; then
2472   :
2473 else
2474   echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477   # Broken: fails on valid input.
2478 continue
2479 fi
2480 rm -f conftest.err conftest.$ac_ext
2481
2482   # OK, works on sane cases.  Now check whether non-existent headers
2483   # can be detected and how.
2484   cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h.  */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h.  */
2490 #include <ac_nonexistent.h>
2491 _ACEOF
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494   ac_status=$?
2495   grep -v '^ *+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } >/dev/null; then
2500   if test -s conftest.err; then
2501     ac_cpp_err=$ac_c_preproc_warn_flag
2502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2503   else
2504     ac_cpp_err=
2505   fi
2506 else
2507   ac_cpp_err=yes
2508 fi
2509 if test -z "$ac_cpp_err"; then
2510   # Broken: success on invalid input.
2511 continue
2512 else
2513   echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2515
2516   # Passes both tests.
2517 ac_preproc_ok=:
2518 break
2519 fi
2520 rm -f conftest.err conftest.$ac_ext
2521
2522 done
2523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2524 rm -f conftest.err conftest.$ac_ext
2525 if $ac_preproc_ok; then
2526   :
2527 else
2528   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2529 See \`config.log' for more details." >&5
2530 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2531 See \`config.log' for more details." >&2;}
2532    { (exit 1); exit 1; }; }
2533 fi
2534
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
2542 echo "$as_me:$LINENO: checking for egrep" >&5
2543 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2544 if test "${ac_cv_prog_egrep+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2548     then ac_cv_prog_egrep='grep -E'
2549     else ac_cv_prog_egrep='egrep'
2550     fi
2551 fi
2552 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2553 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2554  EGREP=$ac_cv_prog_egrep
2555
2556
2557
2558 echo "$as_me:$LINENO: checking for AIX" >&5
2559 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2560 cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h.  */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h.  */
2566 #ifdef _AIX
2567   yes
2568 #endif
2569
2570 _ACEOF
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2572   $EGREP "yes" >/dev/null 2>&1; then
2573   echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6
2575 cat >>confdefs.h <<\_ACEOF
2576 #define _ALL_SOURCE 1
2577 _ACEOF
2578
2579 else
2580   echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6
2582 fi
2583 rm -f conftest*
2584
2585
2586 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2587 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2588 if test "${ac_cv_search_strerror+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   ac_func_search_save_LIBS=$LIBS
2592 ac_cv_search_strerror=no
2593 cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h.  */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h.  */
2599
2600 /* Override any gcc2 internal prototype to avoid an error.  */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 /* We use char because int might match the return type of a gcc2
2605    builtin and then its argument prototype would still apply.  */
2606 char strerror ();
2607 int
2608 main ()
2609 {
2610 strerror ();
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617   (eval $ac_link) 2>conftest.er1
2618   ac_status=$?
2619   grep -v '^ *+' conftest.er1 >conftest.err
2620   rm -f conftest.er1
2621   cat conftest.err >&5
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } &&
2624          { ac_try='test -z "$ac_c_werror_flag"
2625                          || test ! -s conftest.err'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; } &&
2631          { ac_try='test -s conftest$ac_exeext'
2632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; }; then
2637   ac_cv_search_strerror="none required"
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 fi
2643 rm -f conftest.err conftest.$ac_objext \
2644       conftest$ac_exeext conftest.$ac_ext
2645 if test "$ac_cv_search_strerror" = no; then
2646   for ac_lib in cposix; do
2647     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2648     cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654
2655 /* Override any gcc2 internal prototype to avoid an error.  */
2656 #ifdef __cplusplus
2657 extern "C"
2658 #endif
2659 /* We use char because int might match the return type of a gcc2
2660    builtin and then its argument prototype would still apply.  */
2661 char strerror ();
2662 int
2663 main ()
2664 {
2665 strerror ();
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext conftest$ac_exeext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672   (eval $ac_link) 2>conftest.er1
2673   ac_status=$?
2674   grep -v '^ *+' conftest.er1 >conftest.err
2675   rm -f conftest.er1
2676   cat conftest.err >&5
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -z "$ac_c_werror_flag"
2680                          || test ! -s conftest.err'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; } &&
2686          { ac_try='test -s conftest$ac_exeext'
2687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }; }; then
2692   ac_cv_search_strerror="-l$ac_lib"
2693 break
2694 else
2695   echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 fi
2699 rm -f conftest.err conftest.$ac_objext \
2700       conftest$ac_exeext conftest.$ac_ext
2701   done
2702 fi
2703 LIBS=$ac_func_search_save_LIBS
2704 fi
2705 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2706 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2707 if test "$ac_cv_search_strerror" != no; then
2708   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2709
2710 fi
2711
2712
2713
2714
2715 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2716 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2717 if test "${am_cv_prog_cc_stdc+set}" = set; then
2718   echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720   am_cv_prog_cc_stdc=no
2721 ac_save_CC="$CC"
2722 # Don't try gcc -ansi; that turns off useful extensions and
2723 # breaks some systems' header files.
2724 # AIX                   -qlanglvl=ansi
2725 # Ultrix and OSF/1      -std1
2726 # HP-UX 10.20 and later -Ae
2727 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2728 # SVR4                  -Xc -D__EXTENSIONS__
2729 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 do
2731   CC="$ac_save_CC $ac_arg"
2732   cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 #include <stdarg.h>
2739 #include <stdio.h>
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2746      char **p;
2747      int i;
2748 {
2749   return p[i];
2750 }
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2752 {
2753   char *s;
2754   va_list v;
2755   va_start (v,p);
2756   s = g (p, va_arg (v,int));
2757   va_end (v);
2758   return s;
2759 }
2760 int test (int i, double x);
2761 struct s1 {int (*f) (int a);};
2762 struct s2 {int (*f) (double a);};
2763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764 int argc;
2765 char **argv;
2766
2767 int
2768 main ()
2769 {
2770
2771 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -z "$ac_c_werror_flag"
2787                          || test ! -s conftest.err'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   am_cv_prog_cc_stdc="$ac_arg"; break
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 fi
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 done
2807 CC="$ac_save_CC"
2808
2809 fi
2810
2811 if test -z "$am_cv_prog_cc_stdc"; then
2812   echo "$as_me:$LINENO: result: none needed" >&5
2813 echo "${ECHO_T}none needed" >&6
2814 else
2815   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2816 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2817 fi
2818 case "x$am_cv_prog_cc_stdc" in
2819   x|xno) ;;
2820   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2821 esac
2822
2823
2824 ac_aux_dir=
2825 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2826   if test -f $ac_dir/install-sh; then
2827     ac_aux_dir=$ac_dir
2828     ac_install_sh="$ac_aux_dir/install-sh -c"
2829     break
2830   elif test -f $ac_dir/install.sh; then
2831     ac_aux_dir=$ac_dir
2832     ac_install_sh="$ac_aux_dir/install.sh -c"
2833     break
2834   elif test -f $ac_dir/shtool; then
2835     ac_aux_dir=$ac_dir
2836     ac_install_sh="$ac_aux_dir/shtool install -c"
2837     break
2838   fi
2839 done
2840 if test -z "$ac_aux_dir"; then
2841   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2842 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2843    { (exit 1); exit 1; }; }
2844 fi
2845 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2846 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2847 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2848
2849 # Make sure we can run config.sub.
2850 $ac_config_sub sun4 >/dev/null 2>&1 ||
2851   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2852 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2853    { (exit 1); exit 1; }; }
2854
2855 echo "$as_me:$LINENO: checking build system type" >&5
2856 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2857 if test "${ac_cv_build+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   ac_cv_build_alias=$build_alias
2861 test -z "$ac_cv_build_alias" &&
2862   ac_cv_build_alias=`$ac_config_guess`
2863 test -z "$ac_cv_build_alias" &&
2864   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2865 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2866    { (exit 1); exit 1; }; }
2867 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2868   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2869 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2870    { (exit 1); exit 1; }; }
2871
2872 fi
2873 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2874 echo "${ECHO_T}$ac_cv_build" >&6
2875 build=$ac_cv_build
2876 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2877 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2878 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2879
2880
2881 echo "$as_me:$LINENO: checking host system type" >&5
2882 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2883 if test "${ac_cv_host+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   ac_cv_host_alias=$host_alias
2887 test -z "$ac_cv_host_alias" &&
2888   ac_cv_host_alias=$ac_cv_build_alias
2889 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2890   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2891 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2892    { (exit 1); exit 1; }; }
2893
2894 fi
2895 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2896 echo "${ECHO_T}$ac_cv_host" >&6
2897 host=$ac_cv_host
2898 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2899 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2900 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2901
2902
2903 echo "$as_me:$LINENO: checking target system type" >&5
2904 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2905 if test "${ac_cv_target+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   ac_cv_target_alias=$target_alias
2909 test "x$ac_cv_target_alias" = "x" &&
2910   ac_cv_target_alias=$ac_cv_host_alias
2911 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2912   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2913 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2914    { (exit 1); exit 1; }; }
2915
2916 fi
2917 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2918 echo "${ECHO_T}$ac_cv_target" >&6
2919 target=$ac_cv_target
2920 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2921 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2922 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2923
2924
2925 # The aliases save the names the user supplied, while $host etc.
2926 # will get canonicalized.
2927 test -n "$target_alias" &&
2928   test "$program_prefix$program_suffix$program_transform_name" = \
2929     NONENONEs,x,x, &&
2930   program_prefix=${target_alias}-
2931
2932
2933 CONFIG_OBS=
2934 CONFIG_DEPS=
2935 CONFIG_SRCS=
2936 ENABLE_CFLAGS=
2937
2938 CONFIG_ALL=
2939 CONFIG_CLEAN=
2940 CONFIG_INSTALL=
2941 CONFIG_UNINSTALL=
2942
2943 # If we haven't got the data from the intl directory,
2944 # assume NLS is disabled.
2945 USE_NLS=no
2946 LIBINTL=
2947 LIBINTL_DEP=
2948 INCINTL=
2949 XGETTEXT=
2950 GMSGFMT=
2951 POSUB=
2952
2953 if test -f  ../intl/config.intl; then
2954   .  ../intl/config.intl
2955 fi
2956 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2957 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2958 if test x"$USE_NLS" != xyes; then
2959   echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2961 else
2962   echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2964
2965 cat >>confdefs.h <<\_ACEOF
2966 #define ENABLE_NLS 1
2967 _ACEOF
2968
2969
2970   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2971 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2972   # Look for .po and .gmo files in the source directory.
2973   CATALOGS=
2974   XLINGUAS=
2975   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2976     # If there aren't any .gmo files the shell will give us the
2977     # literal string "../path/to/srcdir/po/*.gmo" which has to be
2978     # weeded out.
2979     case "$cat" in *\**)
2980       continue;;
2981     esac
2982     # The quadruple backslash is collapsed to a double backslash
2983     # by the backticks, then collapsed again by the double quotes,
2984     # leaving us with one backslash in the sed expression (right
2985     # before the dot that mustn't act as a wildcard).
2986     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2987     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2988     # The user is allowed to set LINGUAS to a list of languages to
2989     # install catalogs for.  If it's empty that means "all of them."
2990     if test "x$LINGUAS" = x; then
2991       CATALOGS="$CATALOGS $cat"
2992       XLINGUAS="$XLINGUAS $lang"
2993     else
2994       case "$LINGUAS" in *$lang*)
2995         CATALOGS="$CATALOGS $cat"
2996         XLINGUAS="$XLINGUAS $lang"
2997         ;;
2998       esac
2999     fi
3000   done
3001   LINGUAS="$XLINGUAS"
3002   echo "$as_me:$LINENO: result: $LINGUAS" >&5
3003 echo "${ECHO_T}$LINGUAS" >&6
3004
3005
3006     DATADIRNAME=share
3007
3008   INSTOBJEXT=.mo
3009
3010   GENCAT=gencat
3011
3012   CATOBJEXT=.gmo
3013
3014 fi
3015
3016 localedir='${datadir}/locale'
3017
3018
3019 if test x"$USE_NLS" = xyes; then
3020    CONFIG_ALL="$CONFIG_ALL all-po"
3021    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3022    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3023    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3024 fi
3025
3026 PACKAGE=gdb
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE "$PACKAGE"
3030 _ACEOF
3031
3032
3033
3034 debugdir=${libdir}/debug
3035
3036
3037 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3038 if test "${with_separate_debug_dir+set}" = set; then
3039   withval="$with_separate_debug_dir"
3040   debugdir="${withval}"
3041 fi;
3042
3043
3044   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3045   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3046   ac_define_dir=`eval echo $debugdir`
3047   ac_define_dir=`eval echo $ac_define_dir`
3048
3049 cat >>confdefs.h <<_ACEOF
3050 #define DEBUGDIR "$ac_define_dir"
3051 _ACEOF
3052
3053
3054 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3055
3056
3057
3058 subdirs="$subdirs doc testsuite"
3059
3060
3061 # Provide defaults for some variables set by the per-host and per-target
3062 # configuration.
3063 gdb_host_obs=posix-hdep.o
3064
3065 if test "${target}" = "${host}"; then
3066   gdb_native=yes
3067 else
3068   gdb_native=no
3069 fi
3070
3071 . $srcdir/configure.host
3072
3073 . $srcdir/configure.tgt
3074
3075 # Fetch the default architecture and default target vector from BFD.
3076 targ=$target; . $srcdir/../bfd/config.bfd
3077
3078 # We only want the first architecture, so strip off the others if
3079 # there is more than one.
3080 targ_archs=`echo $targ_archs | sed 's/ .*//'`
3081
3082 if test "x$targ_archs" != x; then
3083
3084 cat >>confdefs.h <<_ACEOF
3085 #define DEFAULT_BFD_ARCH $targ_archs
3086 _ACEOF
3087
3088 fi
3089 if test "x$targ_defvec" != x; then
3090
3091 cat >>confdefs.h <<_ACEOF
3092 #define DEFAULT_BFD_VEC $targ_defvec
3093 _ACEOF
3094
3095 fi
3096
3097 test "$program_prefix" != NONE &&
3098   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3099 # Use a double $ so make ignores it.
3100 test "$program_suffix" != NONE &&
3101   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3102 # Double any \ or $.  echo might interpret backslashes.
3103 # By default was `s,x,x', remove it if useless.
3104 cat <<\_ACEOF >conftest.sed
3105 s/[\\$]/&&/g;s/;s,x,x,$//
3106 _ACEOF
3107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3108 rm conftest.sed
3109
3110
3111 # The CLI cannot be disabled yet, but may be in the future.
3112
3113 # Enable CLI.
3114 # Check whether --enable-gdbcli or --disable-gdbcli was given.
3115 if test "${enable_gdbcli+set}" = set; then
3116   enableval="$enable_gdbcli"
3117   case $enableval in
3118     yes)
3119       ;;
3120     no)
3121       { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3122 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3123    { (exit 1); exit 1; }; } ;;
3124     *)
3125       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3126 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3127    { (exit 1); exit 1; }; } ;;
3128   esac
3129 else
3130   enable_gdbcli=yes
3131 fi;
3132 if test x"$enable_gdbcli" = xyes; then
3133   if test -d $srcdir/cli; then
3134     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3135     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3136     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3137     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3138   fi
3139 fi
3140
3141 # Enable MI.
3142 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3143 if test "${enable_gdbmi+set}" = set; then
3144   enableval="$enable_gdbmi"
3145   case $enableval in
3146     yes | no)
3147       ;;
3148     *)
3149       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3150 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3151    { (exit 1); exit 1; }; } ;;
3152   esac
3153 else
3154   enable_gdbmi=yes
3155 fi;
3156 if test x"$enable_gdbmi" = xyes; then
3157   if test -d $srcdir/mi; then
3158     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3159     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3160     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3161     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3162   fi
3163 fi
3164
3165 # Enable TUI.
3166 # Check whether --enable-tui or --disable-tui was given.
3167 if test "${enable_tui+set}" = set; then
3168   enableval="$enable_tui"
3169   case $enableval in
3170     yes | no)
3171       ;;
3172     *)
3173       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3174 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3175    { (exit 1); exit 1; }; } ;;
3176   esac
3177 else
3178   enable_tui=yes
3179 fi;
3180
3181 # Enable gdbtk.
3182 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3183 if test "${enable_gdbtk+set}" = set; then
3184   enableval="$enable_gdbtk"
3185   case $enableval in
3186     yes | no)
3187       ;;
3188     *)
3189       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3190 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3191    { (exit 1); exit 1; }; } ;;
3192   esac
3193 else
3194   if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3195     enable_gdbtk=yes
3196   else
3197     enable_gdbtk=no
3198   fi
3199 fi;
3200 # We unconditionally disable gdbtk tests on selected platforms.
3201 case $host_os in
3202   go32* | windows*)
3203     { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3204 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3205     enable_gdbtk=no ;;
3206 esac
3207
3208 # Libunwind support.
3209 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3211 if test "${ac_cv_header_stdc+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220 #include <stdlib.h>
3221 #include <stdarg.h>
3222 #include <string.h>
3223 #include <float.h>
3224
3225 int
3226 main ()
3227 {
3228
3229   ;
3230   return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235   (eval $ac_compile) 2>conftest.er1
3236   ac_status=$?
3237   grep -v '^ *+' conftest.er1 >conftest.err
3238   rm -f conftest.er1
3239   cat conftest.err >&5
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); } &&
3242          { ac_try='test -z "$ac_c_werror_flag"
3243                          || test ! -s conftest.err'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; } &&
3249          { ac_try='test -s conftest.$ac_objext'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_cv_header_stdc=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 ac_cv_header_stdc=no
3261 fi
3262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263
3264 if test $ac_cv_header_stdc = yes; then
3265   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <string.h>
3273
3274 _ACEOF
3275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276   $EGREP "memchr" >/dev/null 2>&1; then
3277   :
3278 else
3279   ac_cv_header_stdc=no
3280 fi
3281 rm -f conftest*
3282
3283 fi
3284
3285 if test $ac_cv_header_stdc = yes; then
3286   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3287   cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h.  */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h.  */
3293 #include <stdlib.h>
3294
3295 _ACEOF
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297   $EGREP "free" >/dev/null 2>&1; then
3298   :
3299 else
3300   ac_cv_header_stdc=no
3301 fi
3302 rm -f conftest*
3303
3304 fi
3305
3306 if test $ac_cv_header_stdc = yes; then
3307   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3308   if test "$cross_compiling" = yes; then
3309   :
3310 else
3311   cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h.  */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h.  */
3317 #include <ctype.h>
3318 #if ((' ' & 0x0FF) == 0x020)
3319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3321 #else
3322 # define ISLOWER(c) \
3323                    (('a' <= (c) && (c) <= 'i') \
3324                      || ('j' <= (c) && (c) <= 'r') \
3325                      || ('s' <= (c) && (c) <= 'z'))
3326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3327 #endif
3328
3329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3330 int
3331 main ()
3332 {
3333   int i;
3334   for (i = 0; i < 256; i++)
3335     if (XOR (islower (i), ISLOWER (i))
3336         || toupper (i) != TOUPPER (i))
3337       exit(2);
3338   exit (0);
3339 }
3340 _ACEOF
3341 rm -f conftest$ac_exeext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3343   (eval $ac_link) 2>&5
3344   ac_status=$?
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352   :
3353 else
3354   echo "$as_me: program exited with status $ac_status" >&5
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358 ( exit $ac_status )
3359 ac_cv_header_stdc=no
3360 fi
3361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3362 fi
3363 fi
3364 fi
3365 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3367 if test $ac_cv_header_stdc = yes; then
3368
3369 cat >>confdefs.h <<\_ACEOF
3370 #define STDC_HEADERS 1
3371 _ACEOF
3372
3373 fi
3374
3375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3386                   inttypes.h stdint.h unistd.h
3387 do
3388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3389 echo "$as_me:$LINENO: checking for $ac_header" >&5
3390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394   cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400 $ac_includes_default
3401
3402 #include <$ac_header>
3403 _ACEOF
3404 rm -f conftest.$ac_objext
3405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406   (eval $ac_compile) 2>conftest.er1
3407   ac_status=$?
3408   grep -v '^ *+' conftest.er1 >conftest.err
3409   rm -f conftest.er1
3410   cat conftest.err >&5
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); } &&
3413          { ac_try='test -z "$ac_c_werror_flag"
3414                          || test ! -s conftest.err'
3415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416   (eval $ac_try) 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }; } &&
3420          { ac_try='test -s conftest.$ac_objext'
3421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422   (eval $ac_try) 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; }; then
3426   eval "$as_ac_Header=yes"
3427 else
3428   echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 eval "$as_ac_Header=no"
3432 fi
3433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434 fi
3435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3438   cat >>confdefs.h <<_ACEOF
3439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3440 _ACEOF
3441
3442 fi
3443
3444 done
3445
3446
3447
3448 # Check whether --with-libunwind or --without-libunwind was given.
3449 if test "${with_libunwind+set}" = set; then
3450   withval="$with_libunwind"
3451   case "${withval}" in
3452   yes)  enable_libunwind=yes ;;
3453   no)   enable_libunwind=no ;;
3454   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3455 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3456    { (exit 1); exit 1; }; } ;;
3457 esac
3458 else
3459
3460
3461 for ac_header in libunwind.h
3462 do
3463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3465   echo "$as_me:$LINENO: checking for $ac_header" >&5
3466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 fi
3470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3472 else
3473   # Is the header compilable?
3474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482 $ac_includes_default
3483 #include <$ac_header>
3484 _ACEOF
3485 rm -f conftest.$ac_objext
3486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487   (eval $ac_compile) 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } &&
3494          { ac_try='test -z "$ac_c_werror_flag"
3495                          || test ! -s conftest.err'
3496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497   (eval $ac_try) 2>&5
3498   ac_status=$?
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); }; } &&
3501          { ac_try='test -s conftest.$ac_objext'
3502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503   (eval $ac_try) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }; }; then
3507   ac_header_compiler=yes
3508 else
3509   echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 ac_header_compiler=no
3513 fi
3514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3516 echo "${ECHO_T}$ac_header_compiler" >&6
3517
3518 # Is the header present?
3519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527 #include <$ac_header>
3528 _ACEOF
3529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3530   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3531   ac_status=$?
3532   grep -v '^ *+' conftest.er1 >conftest.err
3533   rm -f conftest.er1
3534   cat conftest.err >&5
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); } >/dev/null; then
3537   if test -s conftest.err; then
3538     ac_cpp_err=$ac_c_preproc_warn_flag
3539     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3540   else
3541     ac_cpp_err=
3542   fi
3543 else
3544   ac_cpp_err=yes
3545 fi
3546 if test -z "$ac_cpp_err"; then
3547   ac_header_preproc=yes
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552   ac_header_preproc=no
3553 fi
3554 rm -f conftest.err conftest.$ac_ext
3555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3556 echo "${ECHO_T}$ac_header_preproc" >&6
3557
3558 # So?  What about this header?
3559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3560   yes:no: )
3561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3565     ac_header_preproc=yes
3566     ;;
3567   no:yes:* )
3568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3570     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3571 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3572     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3574     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3575 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3578     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3580     (
3581       cat <<\_ASBOX
3582 ## ------------------------------------------ ##
3583 ## Report this to the AC_PACKAGE_NAME lists.  ##
3584 ## ------------------------------------------ ##
3585 _ASBOX
3586     ) |
3587       sed "s/^/$as_me: WARNING:     /" >&2
3588     ;;
3589 esac
3590 echo "$as_me:$LINENO: checking for $ac_header" >&5
3591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   eval "$as_ac_Header=\$ac_header_preproc"
3596 fi
3597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3599
3600 fi
3601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602   cat >>confdefs.h <<_ACEOF
3603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604 _ACEOF
3605
3606 fi
3607
3608 done
3609
3610
3611 for ac_header in libunwind-ia64.h
3612 do
3613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615   echo "$as_me:$LINENO: checking for $ac_header" >&5
3616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 fi
3620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3622 else
3623   # Is the header compilable?
3624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632 $ac_includes_default
3633 #include <$ac_header>
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637   (eval $ac_compile) 2>conftest.er1
3638   ac_status=$?
3639   grep -v '^ *+' conftest.er1 >conftest.err
3640   rm -f conftest.er1
3641   cat conftest.err >&5
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } &&
3644          { ac_try='test -z "$ac_c_werror_flag"
3645                          || test ! -s conftest.err'
3646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647   (eval $ac_try) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); }; } &&
3651          { ac_try='test -s conftest.$ac_objext'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   ac_header_compiler=yes
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_header_compiler=no
3663 fi
3664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3666 echo "${ECHO_T}$ac_header_compiler" >&6
3667
3668 # Is the header present?
3669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677 #include <$ac_header>
3678 _ACEOF
3679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3680   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3681   ac_status=$?
3682   grep -v '^ *+' conftest.er1 >conftest.err
3683   rm -f conftest.er1
3684   cat conftest.err >&5
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); } >/dev/null; then
3687   if test -s conftest.err; then
3688     ac_cpp_err=$ac_c_preproc_warn_flag
3689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3690   else
3691     ac_cpp_err=
3692   fi
3693 else
3694   ac_cpp_err=yes
3695 fi
3696 if test -z "$ac_cpp_err"; then
3697   ac_header_preproc=yes
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702   ac_header_preproc=no
3703 fi
3704 rm -f conftest.err conftest.$ac_ext
3705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3706 echo "${ECHO_T}$ac_header_preproc" >&6
3707
3708 # So?  What about this header?
3709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3710   yes:no: )
3711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3715     ac_header_preproc=yes
3716     ;;
3717   no:yes:* )
3718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3730     (
3731       cat <<\_ASBOX
3732 ## ------------------------------------------ ##
3733 ## Report this to the AC_PACKAGE_NAME lists.  ##
3734 ## ------------------------------------------ ##
3735 _ASBOX
3736     ) |
3737       sed "s/^/$as_me: WARNING:     /" >&2
3738     ;;
3739 esac
3740 echo "$as_me:$LINENO: checking for $ac_header" >&5
3741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   eval "$as_ac_Header=\$ac_header_preproc"
3746 fi
3747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3749
3750 fi
3751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3752   cat >>confdefs.h <<_ACEOF
3753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3754 _ACEOF
3755
3756 fi
3757
3758 done
3759
3760   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3761     enable_libunwind=yes;
3762   fi
3763
3764 fi;
3765
3766 if test x"$enable_libunwind" = xyes; then
3767
3768 for ac_header in libunwind.h
3769 do
3770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3772   echo "$as_me:$LINENO: checking for $ac_header" >&5
3773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 fi
3777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3779 else
3780   # Is the header compilable?
3781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3783 cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789 $ac_includes_default
3790 #include <$ac_header>
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794   (eval $ac_compile) 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } &&
3801          { ac_try='test -z "$ac_c_werror_flag"
3802                          || test ! -s conftest.err'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; } &&
3808          { ac_try='test -s conftest.$ac_objext'
3809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810   (eval $ac_try) 2>&5
3811   ac_status=$?
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); }; }; then
3814   ac_header_compiler=yes
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 ac_header_compiler=no
3820 fi
3821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3823 echo "${ECHO_T}$ac_header_compiler" >&6
3824
3825 # Is the header present?
3826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3828 cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h.  */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h.  */
3834 #include <$ac_header>
3835 _ACEOF
3836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3837   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3838   ac_status=$?
3839   grep -v '^ *+' conftest.er1 >conftest.err
3840   rm -f conftest.er1
3841   cat conftest.err >&5
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } >/dev/null; then
3844   if test -s conftest.err; then
3845     ac_cpp_err=$ac_c_preproc_warn_flag
3846     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3847   else
3848     ac_cpp_err=
3849   fi
3850 else
3851   ac_cpp_err=yes
3852 fi
3853 if test -z "$ac_cpp_err"; then
3854   ac_header_preproc=yes
3855 else
3856   echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859   ac_header_preproc=no
3860 fi
3861 rm -f conftest.err conftest.$ac_ext
3862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3863 echo "${ECHO_T}$ac_header_preproc" >&6
3864
3865 # So?  What about this header?
3866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3867   yes:no: )
3868     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3872     ac_header_preproc=yes
3873     ;;
3874   no:yes:* )
3875     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3877     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3878 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3879     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3881     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3882 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3885     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3887     (
3888       cat <<\_ASBOX
3889 ## ------------------------------------------ ##
3890 ## Report this to the AC_PACKAGE_NAME lists.  ##
3891 ## ------------------------------------------ ##
3892 _ASBOX
3893     ) |
3894       sed "s/^/$as_me: WARNING:     /" >&2
3895     ;;
3896 esac
3897 echo "$as_me:$LINENO: checking for $ac_header" >&5
3898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   eval "$as_ac_Header=\$ac_header_preproc"
3903 fi
3904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3906
3907 fi
3908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3909   cat >>confdefs.h <<_ACEOF
3910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3911 _ACEOF
3912
3913 fi
3914
3915 done
3916
3917
3918 for ac_header in libunwind-ia64.h
3919 do
3920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922   echo "$as_me:$LINENO: checking for $ac_header" >&5
3923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 fi
3927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3929 else
3930   # Is the header compilable?
3931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939 $ac_includes_default
3940 #include <$ac_header>
3941 _ACEOF
3942 rm -f conftest.$ac_objext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944   (eval $ac_compile) 2>conftest.er1
3945   ac_status=$?
3946   grep -v '^ *+' conftest.er1 >conftest.err
3947   rm -f conftest.er1
3948   cat conftest.err >&5
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); } &&
3951          { ac_try='test -z "$ac_c_werror_flag"
3952                          || test ! -s conftest.err'
3953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954   (eval $ac_try) 2>&5
3955   ac_status=$?
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); }; } &&
3958          { ac_try='test -s conftest.$ac_objext'
3959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960   (eval $ac_try) 2>&5
3961   ac_status=$?
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); }; }; then
3964   ac_header_compiler=yes
3965 else
3966   echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 ac_header_compiler=no
3970 fi
3971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3973 echo "${ECHO_T}$ac_header_compiler" >&6
3974
3975 # Is the header present?
3976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h.  */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h.  */
3984 #include <$ac_header>
3985 _ACEOF
3986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3988   ac_status=$?
3989   grep -v '^ *+' conftest.er1 >conftest.err
3990   rm -f conftest.er1
3991   cat conftest.err >&5
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } >/dev/null; then
3994   if test -s conftest.err; then
3995     ac_cpp_err=$ac_c_preproc_warn_flag
3996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3997   else
3998     ac_cpp_err=
3999   fi
4000 else
4001   ac_cpp_err=yes
4002 fi
4003 if test -z "$ac_cpp_err"; then
4004   ac_header_preproc=yes
4005 else
4006   echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009   ac_header_preproc=no
4010 fi
4011 rm -f conftest.err conftest.$ac_ext
4012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4013 echo "${ECHO_T}$ac_header_preproc" >&6
4014
4015 # So?  What about this header?
4016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4017   yes:no: )
4018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4022     ac_header_preproc=yes
4023     ;;
4024   no:yes:* )
4025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4037     (
4038       cat <<\_ASBOX
4039 ## ------------------------------------------ ##
4040 ## Report this to the AC_PACKAGE_NAME lists.  ##
4041 ## ------------------------------------------ ##
4042 _ASBOX
4043     ) |
4044       sed "s/^/$as_me: WARNING:     /" >&2
4045     ;;
4046 esac
4047 echo "$as_me:$LINENO: checking for $ac_header" >&5
4048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   eval "$as_ac_Header=\$ac_header_preproc"
4053 fi
4054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4056
4057 fi
4058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4059   cat >>confdefs.h <<_ACEOF
4060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061 _ACEOF
4062
4063 fi
4064
4065 done
4066
4067
4068 cat >>confdefs.h <<\_ACEOF
4069 #define HAVE_LIBUNWIND 1
4070 _ACEOF
4071
4072   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4073   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4074   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4075 fi
4076
4077 # Profiling support.
4078 # Check whether --enable-profiling or --disable-profiling was given.
4079 if test "${enable_profiling+set}" = set; then
4080   enableval="$enable_profiling"
4081   case $enableval in
4082     yes | no)
4083       ;;
4084     *)
4085       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4086 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4087    { (exit 1); exit 1; }; } ;;
4088   esac
4089 else
4090   enable_profiling=no
4091 fi;
4092
4093
4094
4095 for ac_func in monstartup _mcleanup
4096 do
4097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4098 echo "$as_me:$LINENO: checking for $ac_func" >&5
4099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4100 if eval "test \"\${$as_ac_var+set}\" = set"; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4111 #define $ac_func innocuous_$ac_func
4112
4113 /* System header to define __stub macros and hopefully few prototypes,
4114     which can conflict with char $ac_func (); below.
4115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116     <limits.h> exists even on freestanding compilers.  */
4117
4118 #ifdef __STDC__
4119 # include <limits.h>
4120 #else
4121 # include <assert.h>
4122 #endif
4123
4124 #undef $ac_func
4125
4126 /* Override any gcc2 internal prototype to avoid an error.  */
4127 #ifdef __cplusplus
4128 extern "C"
4129 {
4130 #endif
4131 /* We use char because int might match the return type of a gcc2
4132    builtin and then its argument prototype would still apply.  */
4133 char $ac_func ();
4134 /* The GNU C library defines this for functions which it implements
4135     to always fail with ENOSYS.  Some functions are actually named
4136     something starting with __ and the normal name is an alias.  */
4137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4138 choke me
4139 #else
4140 char (*f) () = $ac_func;
4141 #endif
4142 #ifdef __cplusplus
4143 }
4144 #endif
4145
4146 int
4147 main ()
4148 {
4149 return f != $ac_func;
4150   ;
4151   return 0;
4152 }
4153 _ACEOF
4154 rm -f conftest.$ac_objext conftest$ac_exeext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4156   (eval $ac_link) 2>conftest.er1
4157   ac_status=$?
4158   grep -v '^ *+' conftest.er1 >conftest.err
4159   rm -f conftest.er1
4160   cat conftest.err >&5
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); } &&
4163          { ac_try='test -z "$ac_c_werror_flag"
4164                          || test ! -s conftest.err'
4165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166   (eval $ac_try) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; } &&
4170          { ac_try='test -s conftest$ac_exeext'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; }; then
4176   eval "$as_ac_var=yes"
4177 else
4178   echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 eval "$as_ac_var=no"
4182 fi
4183 rm -f conftest.err conftest.$ac_objext \
4184       conftest$ac_exeext conftest.$ac_ext
4185 fi
4186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4188 if test `eval echo '${'$as_ac_var'}'` = yes; then
4189   cat >>confdefs.h <<_ACEOF
4190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4191 _ACEOF
4192
4193 fi
4194 done
4195
4196 echo "$as_me:$LINENO: checking for _etext" >&5
4197 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4198 if test "${ac_cv_var__etext+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 #include <stdlib.h>
4208 extern char _etext;
4209
4210 int
4211 main ()
4212 {
4213 free (&_etext);
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest.$ac_objext conftest$ac_exeext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220   (eval $ac_link) 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } &&
4227          { ac_try='test -z "$ac_c_werror_flag"
4228                          || test ! -s conftest.err'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; } &&
4234          { ac_try='test -s conftest$ac_exeext'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   ac_cv_var__etext=yes
4241 else
4242   echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 ac_cv_var__etext=no
4246 fi
4247 rm -f conftest.err conftest.$ac_objext \
4248       conftest$ac_exeext conftest.$ac_ext
4249 fi
4250 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4251 echo "${ECHO_T}$ac_cv_var__etext" >&6
4252 if test $ac_cv_var__etext = yes; then
4253
4254 cat >>confdefs.h <<\_ACEOF
4255 #define HAVE__ETEXT 1
4256 _ACEOF
4257
4258 fi
4259 if test "$enable_profiling" = yes ; then
4260   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4261     { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4262 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4263    { (exit 1); exit 1; }; }
4264   fi
4265   PROFILE_CFLAGS=-pg
4266   OLD_CFLAGS="$CFLAGS"
4267   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4268
4269   echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4270 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4271 if test "${ac_cv_cc_supports_pg+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280
4281 int
4282 main ()
4283 {
4284 int x;
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291   (eval $ac_compile) 2>conftest.er1
4292   ac_status=$?
4293   grep -v '^ *+' conftest.er1 >conftest.err
4294   rm -f conftest.er1
4295   cat conftest.err >&5
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); } &&
4298          { ac_try='test -z "$ac_c_werror_flag"
4299                          || test ! -s conftest.err'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; } &&
4305          { ac_try='test -s conftest.$ac_objext'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; }; then
4311   ac_cv_cc_supports_pg=yes
4312 else
4313   echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 ac_cv_cc_supports_pg=no
4317 fi
4318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319 fi
4320 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4321 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4322
4323   if test $ac_cv_cc_supports_pg = no; then
4324     { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4325 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4326    { (exit 1); exit 1; }; }
4327   fi
4328
4329   CFLAGS="$OLD_CFLAGS"
4330 fi
4331
4332 # --------------------- #
4333 # Checks for programs.  #
4334 # --------------------- #
4335
4336 for ac_prog in gawk mawk nawk awk
4337 do
4338   # Extract the first word of "$ac_prog", so it can be a program name with args.
4339 set dummy $ac_prog; ac_word=$2
4340 echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4342 if test "${ac_cv_prog_AWK+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345   if test -n "$AWK"; then
4346   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4347 else
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351   IFS=$as_save_IFS
4352   test -z "$as_dir" && as_dir=.
4353   for ac_exec_ext in '' $ac_executable_extensions; do
4354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4355     ac_cv_prog_AWK="$ac_prog"
4356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357     break 2
4358   fi
4359 done
4360 done
4361
4362 fi
4363 fi
4364 AWK=$ac_cv_prog_AWK
4365 if test -n "$AWK"; then
4366   echo "$as_me:$LINENO: result: $AWK" >&5
4367 echo "${ECHO_T}$AWK" >&6
4368 else
4369   echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6
4371 fi
4372
4373   test -n "$AWK" && break
4374 done
4375
4376 # Find a good install program.  We prefer a C program (faster),
4377 # so one script is as good as another.  But avoid the broken or
4378 # incompatible versions:
4379 # SysV /etc/install, /usr/sbin/install
4380 # SunOS /usr/etc/install
4381 # IRIX /sbin/install
4382 # AIX /bin/install
4383 # AmigaOS /C/install, which installs bootblocks on floppy discs
4384 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4385 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4386 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4387 # OS/2's system install, which has a completely different semantic
4388 # ./install, which can be erroneously created by make from ./install.sh.
4389 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4390 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4391 if test -z "$INSTALL"; then
4392 if test "${ac_cv_path_install+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400   # Account for people who put trailing slashes in PATH elements.
4401 case $as_dir/ in
4402   ./ | .// | /cC/* | \
4403   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4404   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4405   /usr/ucb/* ) ;;
4406   *)
4407     # OSF1 and SCO ODT 3.0 have their own names for install.
4408     # Don't use installbsd from OSF since it installs stuff as root
4409     # by default.
4410     for ac_prog in ginstall scoinst install; do
4411       for ac_exec_ext in '' $ac_executable_extensions; do
4412         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4413           if test $ac_prog = install &&
4414             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4415             # AIX install.  It has an incompatible calling convention.
4416             :
4417           elif test $ac_prog = install &&
4418             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4419             # program-specific install script used by HP pwplus--don't use.
4420             :
4421           else
4422             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4423             break 3
4424           fi
4425         fi
4426       done
4427     done
4428     ;;
4429 esac
4430 done
4431
4432
4433 fi
4434   if test "${ac_cv_path_install+set}" = set; then
4435     INSTALL=$ac_cv_path_install
4436   else
4437     # As a last resort, use the slow shell script.  We don't cache a
4438     # path for INSTALL within a source directory, because that will
4439     # break other packages using the cache if that directory is
4440     # removed, or if the path is relative.
4441     INSTALL=$ac_install_sh
4442   fi
4443 fi
4444 echo "$as_me:$LINENO: result: $INSTALL" >&5
4445 echo "${ECHO_T}$INSTALL" >&6
4446
4447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4448 # It thinks the first close brace ends the variable substitution.
4449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4450
4451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4452
4453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4454
4455 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4456 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4457 LN_S=$as_ln_s
4458 if test "$LN_S" = "ln -s"; then
4459   echo "$as_me:$LINENO: result: yes" >&5
4460 echo "${ECHO_T}yes" >&6
4461 else
4462   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4463 echo "${ECHO_T}no, using $LN_S" >&6
4464 fi
4465
4466 if test -n "$ac_tool_prefix"; then
4467   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_prog_RANLIB+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   if test -n "$RANLIB"; then
4475   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489 done
4490
4491 fi
4492 fi
4493 RANLIB=$ac_cv_prog_RANLIB
4494 if test -n "$RANLIB"; then
4495   echo "$as_me:$LINENO: result: $RANLIB" >&5
4496 echo "${ECHO_T}$RANLIB" >&6
4497 else
4498   echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4500 fi
4501
4502 fi
4503 if test -z "$ac_cv_prog_RANLIB"; then
4504   ac_ct_RANLIB=$RANLIB
4505   # Extract the first word of "ranlib", so it can be a program name with args.
4506 set dummy ranlib; ac_word=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   if test -n "$ac_ct_RANLIB"; then
4513   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518   IFS=$as_save_IFS
4519   test -z "$as_dir" && as_dir=.
4520   for ac_exec_ext in '' $ac_executable_extensions; do
4521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522     ac_cv_prog_ac_ct_RANLIB="ranlib"
4523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524     break 2
4525   fi
4526 done
4527 done
4528
4529   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4530 fi
4531 fi
4532 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4533 if test -n "$ac_ct_RANLIB"; then
4534   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4535 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4536 else
4537   echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4539 fi
4540
4541   RANLIB=$ac_ct_RANLIB
4542 else
4543   RANLIB="$ac_cv_prog_RANLIB"
4544 fi
4545
4546 for ac_prog in 'bison -y' byacc
4547 do
4548   # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_prog_YACC+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   if test -n "$YACC"; then
4556   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561   IFS=$as_save_IFS
4562   test -z "$as_dir" && as_dir=.
4563   for ac_exec_ext in '' $ac_executable_extensions; do
4564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565     ac_cv_prog_YACC="$ac_prog"
4566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567     break 2
4568   fi
4569 done
4570 done
4571
4572 fi
4573 fi
4574 YACC=$ac_cv_prog_YACC
4575 if test -n "$YACC"; then
4576   echo "$as_me:$LINENO: result: $YACC" >&5
4577 echo "${ECHO_T}$YACC" >&6
4578 else
4579   echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4581 fi
4582
4583   test -n "$YACC" && break
4584 done
4585 test -n "$YACC" || YACC="yacc"
4586
4587
4588 if test -n "$ac_tool_prefix"; then
4589   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4590 set dummy ${ac_tool_prefix}ar; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_AR+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   if test -n "$AR"; then
4597   ac_cv_prog_AR="$AR" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604   for ac_exec_ext in '' $ac_executable_extensions; do
4605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606     ac_cv_prog_AR="${ac_tool_prefix}ar"
4607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611 done
4612
4613 fi
4614 fi
4615 AR=$ac_cv_prog_AR
4616 if test -n "$AR"; then
4617   echo "$as_me:$LINENO: result: $AR" >&5
4618 echo "${ECHO_T}$AR" >&6
4619 else
4620   echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4622 fi
4623
4624 fi
4625 if test -z "$ac_cv_prog_AR"; then
4626   ac_ct_AR=$AR
4627   # Extract the first word of "ar", so it can be a program name with args.
4628 set dummy ar; ac_word=$2
4629 echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4631 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   if test -n "$ac_ct_AR"; then
4635   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642   for ac_exec_ext in '' $ac_executable_extensions; do
4643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644     ac_cv_prog_ac_ct_AR="ar"
4645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649 done
4650
4651 fi
4652 fi
4653 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4654 if test -n "$ac_ct_AR"; then
4655   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4656 echo "${ECHO_T}$ac_ct_AR" >&6
4657 else
4658   echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6
4660 fi
4661
4662   AR=$ac_ct_AR
4663 else
4664   AR="$ac_cv_prog_AR"
4665 fi
4666
4667 if test -n "$ac_tool_prefix"; then
4668   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4669 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4670 echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4672 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675   if test -n "$DLLTOOL"; then
4676   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683   for ac_exec_ext in '' $ac_executable_extensions; do
4684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690 done
4691
4692 fi
4693 fi
4694 DLLTOOL=$ac_cv_prog_DLLTOOL
4695 if test -n "$DLLTOOL"; then
4696   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4697 echo "${ECHO_T}$DLLTOOL" >&6
4698 else
4699   echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6
4701 fi
4702
4703 fi
4704 if test -z "$ac_cv_prog_DLLTOOL"; then
4705   ac_ct_DLLTOOL=$DLLTOOL
4706   # Extract the first word of "dlltool", so it can be a program name with args.
4707 set dummy dlltool; ac_word=$2
4708 echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   if test -n "$ac_ct_DLLTOOL"; then
4714   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_exec_ext in '' $ac_executable_extensions; do
4722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729
4730 fi
4731 fi
4732 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4733 if test -n "$ac_ct_DLLTOOL"; then
4734   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4735 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4736 else
4737   echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4739 fi
4740
4741   DLLTOOL=$ac_ct_DLLTOOL
4742 else
4743   DLLTOOL="$ac_cv_prog_DLLTOOL"
4744 fi
4745
4746 if test -n "$ac_tool_prefix"; then
4747   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4748 set dummy ${ac_tool_prefix}windres; ac_word=$2
4749 echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751 if test "${ac_cv_prog_WINDRES+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   if test -n "$WINDRES"; then
4755   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762   for ac_exec_ext in '' $ac_executable_extensions; do
4763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769 done
4770
4771 fi
4772 fi
4773 WINDRES=$ac_cv_prog_WINDRES
4774 if test -n "$WINDRES"; then
4775   echo "$as_me:$LINENO: result: $WINDRES" >&5
4776 echo "${ECHO_T}$WINDRES" >&6
4777 else
4778   echo "$as_me:$LINENO: result: no" >&5
4779 echo "${ECHO_T}no" >&6
4780 fi
4781
4782 fi
4783 if test -z "$ac_cv_prog_WINDRES"; then
4784   ac_ct_WINDRES=$WINDRES
4785   # Extract the first word of "windres", so it can be a program name with args.
4786 set dummy windres; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   if test -n "$ac_ct_WINDRES"; then
4793   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_prog_ac_ct_WINDRES="windres"
4803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808
4809 fi
4810 fi
4811 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4812 if test -n "$ac_ct_WINDRES"; then
4813   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4814 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4815 else
4816   echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4818 fi
4819
4820   WINDRES=$ac_ct_WINDRES
4821 else
4822   WINDRES="$ac_cv_prog_WINDRES"
4823 fi
4824
4825
4826 # Needed for GNU/Hurd.
4827 if test -n "$ac_tool_prefix"; then
4828   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}mig; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_MIG+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   if test -n "$MIG"; then
4836   ac_cv_prog_MIG="$MIG" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843   for ac_exec_ext in '' $ac_executable_extensions; do
4844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845     ac_cv_prog_MIG="${ac_tool_prefix}mig"
4846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850 done
4851
4852 fi
4853 fi
4854 MIG=$ac_cv_prog_MIG
4855 if test -n "$MIG"; then
4856   echo "$as_me:$LINENO: result: $MIG" >&5
4857 echo "${ECHO_T}$MIG" >&6
4858 else
4859   echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4861 fi
4862
4863 fi
4864 if test -z "$ac_cv_prog_MIG"; then
4865   ac_ct_MIG=$MIG
4866   # Extract the first word of "mig", so it can be a program name with args.
4867 set dummy mig; ac_word=$2
4868 echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   if test -n "$ac_ct_MIG"; then
4874   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883     ac_cv_prog_ac_ct_MIG="mig"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889
4890 fi
4891 fi
4892 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4893 if test -n "$ac_ct_MIG"; then
4894   echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4895 echo "${ECHO_T}$ac_ct_MIG" >&6
4896 else
4897   echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6
4899 fi
4900
4901   MIG=$ac_ct_MIG
4902 else
4903   MIG="$ac_cv_prog_MIG"
4904 fi
4905
4906
4907 # ---------------------- #
4908 # Checks for libraries.  #
4909 # ---------------------- #
4910
4911 # We might need to link with -lm; most simulators need it.
4912
4913 echo "$as_me:$LINENO: checking for main in -lm" >&5
4914 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4915 if test "${ac_cv_lib_m_main+set}" = set; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918   ac_check_lib_save_LIBS=$LIBS
4919 LIBS="-lm  $LIBS"
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h.  */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h.  */
4926
4927
4928 int
4929 main ()
4930 {
4931 main ();
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938   (eval $ac_link) 2>conftest.er1
4939   ac_status=$?
4940   grep -v '^ *+' conftest.er1 >conftest.err
4941   rm -f conftest.er1
4942   cat conftest.err >&5
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } &&
4945          { ac_try='test -z "$ac_c_werror_flag"
4946                          || test ! -s conftest.err'
4947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948   (eval $ac_try) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }; } &&
4952          { ac_try='test -s conftest$ac_exeext'
4953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954   (eval $ac_try) 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); }; }; then
4958   ac_cv_lib_m_main=yes
4959 else
4960   echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 ac_cv_lib_m_main=no
4964 fi
4965 rm -f conftest.err conftest.$ac_objext \
4966       conftest$ac_exeext conftest.$ac_ext
4967 LIBS=$ac_check_lib_save_LIBS
4968 fi
4969 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4970 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4971 if test $ac_cv_lib_m_main = yes; then
4972   cat >>confdefs.h <<_ACEOF
4973 #define HAVE_LIBM 1
4974 _ACEOF
4975
4976   LIBS="-lm $LIBS"
4977
4978 fi
4979
4980
4981 # We need to link with -lw to get `wctype' on Solaris before Solaris
4982 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
4983 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
4984 # is known to have this problem).  Therefore we avoid libw if we can.
4985 echo "$as_me:$LINENO: checking for wctype" >&5
4986 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
4987 if test "${ac_cv_func_wctype+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
4997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4998 #define wctype innocuous_wctype
4999
5000 /* System header to define __stub macros and hopefully few prototypes,
5001     which can conflict with char wctype (); below.
5002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003     <limits.h> exists even on freestanding compilers.  */
5004
5005 #ifdef __STDC__
5006 # include <limits.h>
5007 #else
5008 # include <assert.h>
5009 #endif
5010
5011 #undef wctype
5012
5013 /* Override any gcc2 internal prototype to avoid an error.  */
5014 #ifdef __cplusplus
5015 extern "C"
5016 {
5017 #endif
5018 /* We use char because int might match the return type of a gcc2
5019    builtin and then its argument prototype would still apply.  */
5020 char wctype ();
5021 /* The GNU C library defines this for functions which it implements
5022     to always fail with ENOSYS.  Some functions are actually named
5023     something starting with __ and the normal name is an alias.  */
5024 #if defined (__stub_wctype) || defined (__stub___wctype)
5025 choke me
5026 #else
5027 char (*f) () = wctype;
5028 #endif
5029 #ifdef __cplusplus
5030 }
5031 #endif
5032
5033 int
5034 main ()
5035 {
5036 return f != wctype;
5037   ;
5038   return 0;
5039 }
5040 _ACEOF
5041 rm -f conftest.$ac_objext conftest$ac_exeext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043   (eval $ac_link) 2>conftest.er1
5044   ac_status=$?
5045   grep -v '^ *+' conftest.er1 >conftest.err
5046   rm -f conftest.er1
5047   cat conftest.err >&5
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); } &&
5050          { ac_try='test -z "$ac_c_werror_flag"
5051                          || test ! -s conftest.err'
5052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053   (eval $ac_try) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }; } &&
5057          { ac_try='test -s conftest$ac_exeext'
5058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059   (eval $ac_try) 2>&5
5060   ac_status=$?
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); }; }; then
5063   ac_cv_func_wctype=yes
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 ac_cv_func_wctype=no
5069 fi
5070 rm -f conftest.err conftest.$ac_objext \
5071       conftest$ac_exeext conftest.$ac_ext
5072 fi
5073 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5074 echo "${ECHO_T}$ac_cv_func_wctype" >&6
5075 if test $ac_cv_func_wctype = yes; then
5076   :
5077 else
5078
5079 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5080 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5081 if test "${ac_cv_lib_w_wctype+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   ac_check_lib_save_LIBS=$LIBS
5085 LIBS="-lw  $LIBS"
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h.  */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h.  */
5092
5093 /* Override any gcc2 internal prototype to avoid an error.  */
5094 #ifdef __cplusplus
5095 extern "C"
5096 #endif
5097 /* We use char because int might match the return type of a gcc2
5098    builtin and then its argument prototype would still apply.  */
5099 char wctype ();
5100 int
5101 main ()
5102 {
5103 wctype ();
5104   ;
5105   return 0;
5106 }
5107 _ACEOF
5108 rm -f conftest.$ac_objext conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110   (eval $ac_link) 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } &&
5117          { ac_try='test -z "$ac_c_werror_flag"
5118                          || test ! -s conftest.err'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; } &&
5124          { ac_try='test -s conftest$ac_exeext'
5125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126   (eval $ac_try) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; }; then
5130   ac_cv_lib_w_wctype=yes
5131 else
5132   echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ac_cv_lib_w_wctype=no
5136 fi
5137 rm -f conftest.err conftest.$ac_objext \
5138       conftest$ac_exeext conftest.$ac_ext
5139 LIBS=$ac_check_lib_save_LIBS
5140 fi
5141 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5142 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5143 if test $ac_cv_lib_w_wctype = yes; then
5144   cat >>confdefs.h <<_ACEOF
5145 #define HAVE_LIBW 1
5146 _ACEOF
5147
5148   LIBS="-lw $LIBS"
5149
5150 fi
5151
5152 fi
5153
5154
5155 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5156 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5157 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5158 if test "${ac_cv_search_gethostbyname+set}" = set; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   ac_func_search_save_LIBS=$LIBS
5162 ac_cv_search_gethostbyname=no
5163 cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169
5170 /* Override any gcc2 internal prototype to avoid an error.  */
5171 #ifdef __cplusplus
5172 extern "C"
5173 #endif
5174 /* We use char because int might match the return type of a gcc2
5175    builtin and then its argument prototype would still apply.  */
5176 char gethostbyname ();
5177 int
5178 main ()
5179 {
5180 gethostbyname ();
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext conftest$ac_exeext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187   (eval $ac_link) 2>conftest.er1
5188   ac_status=$?
5189   grep -v '^ *+' conftest.er1 >conftest.err
5190   rm -f conftest.er1
5191   cat conftest.err >&5
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); } &&
5194          { ac_try='test -z "$ac_c_werror_flag"
5195                          || test ! -s conftest.err'
5196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197   (eval $ac_try) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }; } &&
5201          { ac_try='test -s conftest$ac_exeext'
5202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203   (eval $ac_try) 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); }; }; then
5207   ac_cv_search_gethostbyname="none required"
5208 else
5209   echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5211
5212 fi
5213 rm -f conftest.err conftest.$ac_objext \
5214       conftest$ac_exeext conftest.$ac_ext
5215 if test "$ac_cv_search_gethostbyname" = no; then
5216   for ac_lib in nsl; do
5217     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5218     cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h.  */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h.  */
5224
5225 /* Override any gcc2 internal prototype to avoid an error.  */
5226 #ifdef __cplusplus
5227 extern "C"
5228 #endif
5229 /* We use char because int might match the return type of a gcc2
5230    builtin and then its argument prototype would still apply.  */
5231 char gethostbyname ();
5232 int
5233 main ()
5234 {
5235 gethostbyname ();
5236   ;
5237   return 0;
5238 }
5239 _ACEOF
5240 rm -f conftest.$ac_objext conftest$ac_exeext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242   (eval $ac_link) 2>conftest.er1
5243   ac_status=$?
5244   grep -v '^ *+' conftest.er1 >conftest.err
5245   rm -f conftest.er1
5246   cat conftest.err >&5
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } &&
5249          { ac_try='test -z "$ac_c_werror_flag"
5250                          || test ! -s conftest.err'
5251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252   (eval $ac_try) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); }; } &&
5256          { ac_try='test -s conftest$ac_exeext'
5257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258   (eval $ac_try) 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); }; }; then
5262   ac_cv_search_gethostbyname="-l$ac_lib"
5263 break
5264 else
5265   echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268 fi
5269 rm -f conftest.err conftest.$ac_objext \
5270       conftest$ac_exeext conftest.$ac_ext
5271   done
5272 fi
5273 LIBS=$ac_func_search_save_LIBS
5274 fi
5275 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5276 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5277 if test "$ac_cv_search_gethostbyname" != no; then
5278   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5279
5280 fi
5281
5282
5283 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
5284 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5285 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5286 if test "${ac_cv_search_socketpair+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   ac_func_search_save_LIBS=$LIBS
5290 ac_cv_search_socketpair=no
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297
5298 /* Override any gcc2 internal prototype to avoid an error.  */
5299 #ifdef __cplusplus
5300 extern "C"
5301 #endif
5302 /* We use char because int might match the return type of a gcc2
5303    builtin and then its argument prototype would still apply.  */
5304 char socketpair ();
5305 int
5306 main ()
5307 {
5308 socketpair ();
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315   (eval $ac_link) 2>conftest.er1
5316   ac_status=$?
5317   grep -v '^ *+' conftest.er1 >conftest.err
5318   rm -f conftest.er1
5319   cat conftest.err >&5
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); } &&
5322          { ac_try='test -z "$ac_c_werror_flag"
5323                          || test ! -s conftest.err'
5324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325   (eval $ac_try) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }; } &&
5329          { ac_try='test -s conftest$ac_exeext'
5330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331   (eval $ac_try) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; }; then
5335   ac_cv_search_socketpair="none required"
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 fi
5341 rm -f conftest.err conftest.$ac_objext \
5342       conftest$ac_exeext conftest.$ac_ext
5343 if test "$ac_cv_search_socketpair" = no; then
5344   for ac_lib in socket; do
5345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5346     cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h.  */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h.  */
5352
5353 /* Override any gcc2 internal prototype to avoid an error.  */
5354 #ifdef __cplusplus
5355 extern "C"
5356 #endif
5357 /* We use char because int might match the return type of a gcc2
5358    builtin and then its argument prototype would still apply.  */
5359 char socketpair ();
5360 int
5361 main ()
5362 {
5363 socketpair ();
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370   (eval $ac_link) 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } &&
5377          { ac_try='test -z "$ac_c_werror_flag"
5378                          || test ! -s conftest.err'
5379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380   (eval $ac_try) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); }; } &&
5384          { ac_try='test -s conftest$ac_exeext'
5385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386   (eval $ac_try) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; }; then
5390   ac_cv_search_socketpair="-l$ac_lib"
5391 break
5392 else
5393   echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 fi
5397 rm -f conftest.err conftest.$ac_objext \
5398       conftest$ac_exeext conftest.$ac_ext
5399   done
5400 fi
5401 LIBS=$ac_func_search_save_LIBS
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5404 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5405 if test "$ac_cv_search_socketpair" != no; then
5406   test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5407
5408 fi
5409
5410
5411 # For the TUI, we need enhanced curses functionality.
5412 #
5413 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5414 # curses library because the latter might not provide all the
5415 # functionality we need.  However, this leads to problems on systems
5416 # where the linker searches /usr/local/lib, but the compiler doesn't
5417 # search /usr/local/include, if ncurses is installed in /usr/local.  A
5418 # default installation of ncurses on alpha*-dec-osf* will lead to such
5419 # a situation.
5420 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5421 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5422 if test "${ac_cv_search_waddstr+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   ac_func_search_save_LIBS=$LIBS
5426 ac_cv_search_waddstr=no
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h.  */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h.  */
5433
5434 /* Override any gcc2 internal prototype to avoid an error.  */
5435 #ifdef __cplusplus
5436 extern "C"
5437 #endif
5438 /* We use char because int might match the return type of a gcc2
5439    builtin and then its argument prototype would still apply.  */
5440 char waddstr ();
5441 int
5442 main ()
5443 {
5444 waddstr ();
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext conftest$ac_exeext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5451   (eval $ac_link) 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } &&
5458          { ac_try='test -z "$ac_c_werror_flag"
5459                          || test ! -s conftest.err'
5460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461   (eval $ac_try) 2>&5
5462   ac_status=$?
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); }; } &&
5465          { ac_try='test -s conftest$ac_exeext'
5466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467   (eval $ac_try) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }; }; then
5471   ac_cv_search_waddstr="none required"
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 fi
5477 rm -f conftest.err conftest.$ac_objext \
5478       conftest$ac_exeext conftest.$ac_ext
5479 if test "$ac_cv_search_waddstr" = no; then
5480   for ac_lib in ncurses cursesX curses; do
5481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5482     cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h.  */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h.  */
5488
5489 /* Override any gcc2 internal prototype to avoid an error.  */
5490 #ifdef __cplusplus
5491 extern "C"
5492 #endif
5493 /* We use char because int might match the return type of a gcc2
5494    builtin and then its argument prototype would still apply.  */
5495 char waddstr ();
5496 int
5497 main ()
5498 {
5499 waddstr ();
5500   ;
5501   return 0;
5502 }
5503 _ACEOF
5504 rm -f conftest.$ac_objext conftest$ac_exeext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506   (eval $ac_link) 2>conftest.er1
5507   ac_status=$?
5508   grep -v '^ *+' conftest.er1 >conftest.err
5509   rm -f conftest.er1
5510   cat conftest.err >&5
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); } &&
5513          { ac_try='test -z "$ac_c_werror_flag"
5514                          || test ! -s conftest.err'
5515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516   (eval $ac_try) 2>&5
5517   ac_status=$?
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); }; } &&
5520          { ac_try='test -s conftest$ac_exeext'
5521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522   (eval $ac_try) 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); }; }; then
5526   ac_cv_search_waddstr="-l$ac_lib"
5527 break
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 fi
5533 rm -f conftest.err conftest.$ac_objext \
5534       conftest$ac_exeext conftest.$ac_ext
5535   done
5536 fi
5537 LIBS=$ac_func_search_save_LIBS
5538 fi
5539 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5540 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5541 if test "$ac_cv_search_waddstr" != no; then
5542   test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5543
5544 fi
5545
5546
5547 # Since GDB uses Readline, we need termcap functionality.  In many
5548 # cases this will be provided by the curses library, but some systems
5549 # have a seperate termcap library, or no curses library at all.
5550
5551 case $host_os in
5552   cygwin*)
5553     if test -d $srcdir/libtermcap; then
5554       LIBS="../libtermcap/libtermcap.a $LIBS"
5555       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5556     fi ;;
5557   go32* | *djgpp*)
5558     ac_cv_search_tgetent="none required"
5559     ;;
5560   *mingw32*)
5561     ac_cv_search_tgetent="none required"
5562     CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5563     ;;
5564 esac
5565
5566 # These are the libraries checked by Readline.
5567 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5568 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5569 if test "${ac_cv_search_tgetent+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   ac_func_search_save_LIBS=$LIBS
5573 ac_cv_search_tgetent=no
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580
5581 /* Override any gcc2 internal prototype to avoid an error.  */
5582 #ifdef __cplusplus
5583 extern "C"
5584 #endif
5585 /* We use char because int might match the return type of a gcc2
5586    builtin and then its argument prototype would still apply.  */
5587 char tgetent ();
5588 int
5589 main ()
5590 {
5591 tgetent ();
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598   (eval $ac_link) 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } &&
5605          { ac_try='test -z "$ac_c_werror_flag"
5606                          || test ! -s conftest.err'
5607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608   (eval $ac_try) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; } &&
5612          { ac_try='test -s conftest$ac_exeext'
5613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614   (eval $ac_try) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }; }; then
5618   ac_cv_search_tgetent="none required"
5619 else
5620   echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 fi
5624 rm -f conftest.err conftest.$ac_objext \
5625       conftest$ac_exeext conftest.$ac_ext
5626 if test "$ac_cv_search_tgetent" = no; then
5627   for ac_lib in termcap tinfo curses ncurses; do
5628     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5629     cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635
5636 /* Override any gcc2 internal prototype to avoid an error.  */
5637 #ifdef __cplusplus
5638 extern "C"
5639 #endif
5640 /* We use char because int might match the return type of a gcc2
5641    builtin and then its argument prototype would still apply.  */
5642 char tgetent ();
5643 int
5644 main ()
5645 {
5646 tgetent ();
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 rm -f conftest.$ac_objext conftest$ac_exeext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653   (eval $ac_link) 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } &&
5660          { ac_try='test -z "$ac_c_werror_flag"
5661                          || test ! -s conftest.err'
5662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663   (eval $ac_try) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); }; } &&
5667          { ac_try='test -s conftest$ac_exeext'
5668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; }; then
5673   ac_cv_search_tgetent="-l$ac_lib"
5674 break
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 fi
5680 rm -f conftest.err conftest.$ac_objext \
5681       conftest$ac_exeext conftest.$ac_ext
5682   done
5683 fi
5684 LIBS=$ac_func_search_save_LIBS
5685 fi
5686 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5687 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5688 if test "$ac_cv_search_tgetent" != no; then
5689   test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5690
5691 fi
5692
5693
5694 if test "$ac_cv_search_tgetent" = no; then
5695   { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5696 echo "$as_me: error: no termcap library found" >&2;}
5697    { (exit 1); exit 1; }; }
5698 fi
5699
5700
5701       if test "X$prefix" = "XNONE"; then
5702     acl_final_prefix="$ac_default_prefix"
5703   else
5704     acl_final_prefix="$prefix"
5705   fi
5706   if test "X$exec_prefix" = "XNONE"; then
5707     acl_final_exec_prefix='${prefix}'
5708   else
5709     acl_final_exec_prefix="$exec_prefix"
5710   fi
5711   acl_save_prefix="$prefix"
5712   prefix="$acl_final_prefix"
5713   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5714   prefix="$acl_save_prefix"
5715
5716
5717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5718 if test "${with_gnu_ld+set}" = set; then
5719   withval="$with_gnu_ld"
5720   test "$withval" = no || with_gnu_ld=yes
5721 else
5722   with_gnu_ld=no
5723 fi;
5724 # Prepare PATH_SEPARATOR.
5725 # The user is always right.
5726 if test "${PATH_SEPARATOR+set}" != set; then
5727   echo "#! /bin/sh" >conf$$.sh
5728   echo  "exit 0"   >>conf$$.sh
5729   chmod +x conf$$.sh
5730   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5731     PATH_SEPARATOR=';'
5732   else
5733     PATH_SEPARATOR=:
5734   fi
5735   rm -f conf$$.sh
5736 fi
5737 ac_prog=ld
5738 if test "$GCC" = yes; then
5739   # Check if gcc -print-prog-name=ld gives a path.
5740   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5741 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5742   case $host in
5743   *-*-mingw*)
5744     # gcc leaves a trailing carriage return which upsets mingw
5745     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5746   *)
5747     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5748   esac
5749   case $ac_prog in
5750     # Accept absolute paths.
5751     [\\/]* | [A-Za-z]:[\\/]*)
5752       re_direlt='/[^/][^/]*/\.\./'
5753       # Canonicalize the path of ld
5754       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5755       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5756         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5757       done
5758       test -z "$LD" && LD="$ac_prog"
5759       ;;
5760   "")
5761     # If it fails, then pretend we aren't using GCC.
5762     ac_prog=ld
5763     ;;
5764   *)
5765     # If it is relative, then search for the first ld in PATH.
5766     with_gnu_ld=unknown
5767     ;;
5768   esac
5769 elif test "$with_gnu_ld" = yes; then
5770   echo "$as_me:$LINENO: checking for GNU ld" >&5
5771 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5772 else
5773   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5774 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5775 fi
5776 if test "${acl_cv_path_LD+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   if test -z "$LD"; then
5780   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5781   for ac_dir in $PATH; do
5782     test -z "$ac_dir" && ac_dir=.
5783     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5784       acl_cv_path_LD="$ac_dir/$ac_prog"
5785       # Check to see if the program is GNU ld.  I'd rather use --version,
5786       # but apparently some GNU ld's only accept -v.
5787       # Break only if it was the GNU/non-GNU ld that we prefer.
5788       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5789         test "$with_gnu_ld" != no && break
5790       else
5791         test "$with_gnu_ld" != yes && break
5792       fi
5793     fi
5794   done
5795   IFS="$ac_save_ifs"
5796 else
5797   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5798 fi
5799 fi
5800
5801 LD="$acl_cv_path_LD"
5802 if test -n "$LD"; then
5803   echo "$as_me:$LINENO: result: $LD" >&5
5804 echo "${ECHO_T}$LD" >&6
5805 else
5806   echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5808 fi
5809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5811    { (exit 1); exit 1; }; }
5812 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5814 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5818 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5819   acl_cv_prog_gnu_ld=yes
5820 else
5821   acl_cv_prog_gnu_ld=no
5822 fi
5823 fi
5824 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5825 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5826 with_gnu_ld=$acl_cv_prog_gnu_ld
5827
5828
5829
5830                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5831 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5832 if test "${acl_cv_rpath+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835
5836     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5837     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5838     . ./conftest.sh
5839     rm -f ./conftest.sh
5840     acl_cv_rpath=done
5841
5842 fi
5843 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5844 echo "${ECHO_T}$acl_cv_rpath" >&6
5845   wl="$acl_cv_wl"
5846   libext="$acl_cv_libext"
5847   shlibext="$acl_cv_shlibext"
5848   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5849   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5850   hardcode_direct="$acl_cv_hardcode_direct"
5851   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5852     # Check whether --enable-rpath or --disable-rpath was given.
5853 if test "${enable_rpath+set}" = set; then
5854   enableval="$enable_rpath"
5855   :
5856 else
5857   enable_rpath=yes
5858 fi;
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868     use_additional=yes
5869
5870   acl_save_prefix="$prefix"
5871   prefix="$acl_final_prefix"
5872   acl_save_exec_prefix="$exec_prefix"
5873   exec_prefix="$acl_final_exec_prefix"
5874
5875     eval additional_includedir=\"$includedir\"
5876     eval additional_libdir=\"$libdir\"
5877
5878   exec_prefix="$acl_save_exec_prefix"
5879   prefix="$acl_save_prefix"
5880
5881
5882 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5883 if test "${with_libexpat_prefix+set}" = set; then
5884   withval="$with_libexpat_prefix"
5885
5886     if test "X$withval" = "Xno"; then
5887       use_additional=no
5888     else
5889       if test "X$withval" = "X"; then
5890
5891   acl_save_prefix="$prefix"
5892   prefix="$acl_final_prefix"
5893   acl_save_exec_prefix="$exec_prefix"
5894   exec_prefix="$acl_final_exec_prefix"
5895
5896           eval additional_includedir=\"$includedir\"
5897           eval additional_libdir=\"$libdir\"
5898
5899   exec_prefix="$acl_save_exec_prefix"
5900   prefix="$acl_save_prefix"
5901
5902       else
5903         additional_includedir="$withval/include"
5904         additional_libdir="$withval/lib"
5905       fi
5906     fi
5907
5908 fi;
5909       LIBEXPAT=
5910   LTLIBEXPAT=
5911   INCEXPAT=
5912   rpathdirs=
5913   ltrpathdirs=
5914   names_already_handled=
5915   names_next_round='expat '
5916   while test -n "$names_next_round"; do
5917     names_this_round="$names_next_round"
5918     names_next_round=
5919     for name in $names_this_round; do
5920       already_handled=
5921       for n in $names_already_handled; do
5922         if test "$n" = "$name"; then
5923           already_handled=yes
5924           break
5925         fi
5926       done
5927       if test -z "$already_handled"; then
5928         names_already_handled="$names_already_handled $name"
5929                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5930         eval value=\"\$HAVE_LIB$uppername\"
5931         if test -n "$value"; then
5932           if test "$value" = yes; then
5933             eval value=\"\$LIB$uppername\"
5934             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5935             eval value=\"\$LTLIB$uppername\"
5936             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5937           else
5938                                     :
5939           fi
5940         else
5941                               found_dir=
5942           found_la=
5943           found_so=
5944           found_a=
5945           if test $use_additional = yes; then
5946             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5947               found_dir="$additional_libdir"
5948               found_so="$additional_libdir/lib$name.$shlibext"
5949               if test -f "$additional_libdir/lib$name.la"; then
5950                 found_la="$additional_libdir/lib$name.la"
5951               fi
5952             else
5953               if test -f "$additional_libdir/lib$name.$libext"; then
5954                 found_dir="$additional_libdir"
5955                 found_a="$additional_libdir/lib$name.$libext"
5956                 if test -f "$additional_libdir/lib$name.la"; then
5957                   found_la="$additional_libdir/lib$name.la"
5958                 fi
5959               fi
5960             fi
5961           fi
5962           if test "X$found_dir" = "X"; then
5963             for x in $LDFLAGS $LTLIBEXPAT; do
5964
5965   acl_save_prefix="$prefix"
5966   prefix="$acl_final_prefix"
5967   acl_save_exec_prefix="$exec_prefix"
5968   exec_prefix="$acl_final_exec_prefix"
5969   eval x=\"$x\"
5970   exec_prefix="$acl_save_exec_prefix"
5971   prefix="$acl_save_prefix"
5972
5973               case "$x" in
5974                 -L*)
5975                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5976                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5977                     found_dir="$dir"
5978                     found_so="$dir/lib$name.$shlibext"
5979                     if test -f "$dir/lib$name.la"; then
5980                       found_la="$dir/lib$name.la"
5981                     fi
5982                   else
5983                     if test -f "$dir/lib$name.$libext"; then
5984                       found_dir="$dir"
5985                       found_a="$dir/lib$name.$libext"
5986                       if test -f "$dir/lib$name.la"; then
5987                         found_la="$dir/lib$name.la"
5988                       fi
5989                     fi
5990                   fi
5991                   ;;
5992               esac
5993               if test "X$found_dir" != "X"; then
5994                 break
5995               fi
5996             done
5997           fi
5998           if test "X$found_dir" != "X"; then
5999                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6000             if test "X$found_so" != "X"; then
6001                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6002                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6003               else
6004                                                                                 haveit=
6005                 for x in $ltrpathdirs; do
6006                   if test "X$x" = "X$found_dir"; then
6007                     haveit=yes
6008                     break
6009                   fi
6010                 done
6011                 if test -z "$haveit"; then
6012                   ltrpathdirs="$ltrpathdirs $found_dir"
6013                 fi
6014                                 if test "$hardcode_direct" = yes; then
6015                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6016                 else
6017                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6018                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6019                                                             haveit=
6020                     for x in $rpathdirs; do
6021                       if test "X$x" = "X$found_dir"; then
6022                         haveit=yes
6023                         break
6024                       fi
6025                     done
6026                     if test -z "$haveit"; then
6027                       rpathdirs="$rpathdirs $found_dir"
6028                     fi
6029                   else
6030                                                                                 haveit=
6031                     for x in $LDFLAGS $LIBEXPAT; do
6032
6033   acl_save_prefix="$prefix"
6034   prefix="$acl_final_prefix"
6035   acl_save_exec_prefix="$exec_prefix"
6036   exec_prefix="$acl_final_exec_prefix"
6037   eval x=\"$x\"
6038   exec_prefix="$acl_save_exec_prefix"
6039   prefix="$acl_save_prefix"
6040
6041                       if test "X$x" = "X-L$found_dir"; then
6042                         haveit=yes
6043                         break
6044                       fi
6045                     done
6046                     if test -z "$haveit"; then
6047                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6048                     fi
6049                     if test "$hardcode_minus_L" != no; then
6050                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6051                     else
6052                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6053                     fi
6054                   fi
6055                 fi
6056               fi
6057             else
6058               if test "X$found_a" != "X"; then
6059                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6060               else
6061                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6062               fi
6063             fi
6064                         additional_includedir=
6065             case "$found_dir" in
6066               */lib | */lib/)
6067                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6068                 additional_includedir="$basedir/include"
6069                 ;;
6070             esac
6071             if test "X$additional_includedir" != "X"; then
6072                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6073                 haveit=
6074                 if test "X$additional_includedir" = "X/usr/local/include"; then
6075                   if test -n "$GCC"; then
6076                     case $host_os in
6077                       linux*) haveit=yes;;
6078                     esac
6079                   fi
6080                 fi
6081                 if test -z "$haveit"; then
6082                   for x in $CPPFLAGS $INCEXPAT; do
6083
6084   acl_save_prefix="$prefix"
6085   prefix="$acl_final_prefix"
6086   acl_save_exec_prefix="$exec_prefix"
6087   exec_prefix="$acl_final_exec_prefix"
6088   eval x=\"$x\"
6089   exec_prefix="$acl_save_exec_prefix"
6090   prefix="$acl_save_prefix"
6091
6092                     if test "X$x" = "X-I$additional_includedir"; then
6093                       haveit=yes
6094                       break
6095                     fi
6096                   done
6097                   if test -z "$haveit"; then
6098                     if test -d "$additional_includedir"; then
6099                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6100                     fi
6101                   fi
6102                 fi
6103               fi
6104             fi
6105                         if test -n "$found_la"; then
6106                                                         save_libdir="$libdir"
6107               case "$found_la" in
6108                 */* | *\\*) . "$found_la" ;;
6109                 *) . "./$found_la" ;;
6110               esac
6111               libdir="$save_libdir"
6112                             for dep in $dependency_libs; do
6113                 case "$dep" in
6114                   -L*)
6115                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6116                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6117                       haveit=
6118                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6119                         if test -n "$GCC"; then
6120                           case $host_os in
6121                             linux*) haveit=yes;;
6122                           esac
6123                         fi
6124                       fi
6125                       if test -z "$haveit"; then
6126                         haveit=
6127                         for x in $LDFLAGS $LIBEXPAT; do
6128
6129   acl_save_prefix="$prefix"
6130   prefix="$acl_final_prefix"
6131   acl_save_exec_prefix="$exec_prefix"
6132   exec_prefix="$acl_final_exec_prefix"
6133   eval x=\"$x\"
6134   exec_prefix="$acl_save_exec_prefix"
6135   prefix="$acl_save_prefix"
6136
6137                           if test "X$x" = "X-L$additional_libdir"; then
6138                             haveit=yes
6139                             break
6140                           fi
6141                         done
6142                         if test -z "$haveit"; then
6143                           if test -d "$additional_libdir"; then
6144                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6145                           fi
6146                         fi
6147                         haveit=
6148                         for x in $LDFLAGS $LTLIBEXPAT; do
6149
6150   acl_save_prefix="$prefix"
6151   prefix="$acl_final_prefix"
6152   acl_save_exec_prefix="$exec_prefix"
6153   exec_prefix="$acl_final_exec_prefix"
6154   eval x=\"$x\"
6155   exec_prefix="$acl_save_exec_prefix"
6156   prefix="$acl_save_prefix"
6157
6158                           if test "X$x" = "X-L$additional_libdir"; then
6159                             haveit=yes
6160                             break
6161                           fi
6162                         done
6163                         if test -z "$haveit"; then
6164                           if test -d "$additional_libdir"; then
6165                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6166                           fi
6167                         fi
6168                       fi
6169                     fi
6170                     ;;
6171                   -R*)
6172                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6173                     if test "$enable_rpath" != no; then
6174                                                                   haveit=
6175                       for x in $rpathdirs; do
6176                         if test "X$x" = "X$dir"; then
6177                           haveit=yes
6178                           break
6179                         fi
6180                       done
6181                       if test -z "$haveit"; then
6182                         rpathdirs="$rpathdirs $dir"
6183                       fi
6184                                                                   haveit=
6185                       for x in $ltrpathdirs; do
6186                         if test "X$x" = "X$dir"; then
6187                           haveit=yes
6188                           break
6189                         fi
6190                       done
6191                       if test -z "$haveit"; then
6192                         ltrpathdirs="$ltrpathdirs $dir"
6193                       fi
6194                     fi
6195                     ;;
6196                   -l*)
6197                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6198                     ;;
6199                   *.la)
6200                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6201                     ;;
6202                   *)
6203                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6204                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6205                     ;;
6206                 esac
6207               done
6208             fi
6209           else
6210                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6211             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6212           fi
6213         fi
6214       fi
6215     done
6216   done
6217   if test "X$rpathdirs" != "X"; then
6218     if test -n "$hardcode_libdir_separator"; then
6219                         alldirs=
6220       for found_dir in $rpathdirs; do
6221         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6222       done
6223             acl_save_libdir="$libdir"
6224       libdir="$alldirs"
6225       eval flag=\"$hardcode_libdir_flag_spec\"
6226       libdir="$acl_save_libdir"
6227       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6228     else
6229             for found_dir in $rpathdirs; do
6230         acl_save_libdir="$libdir"
6231         libdir="$found_dir"
6232         eval flag=\"$hardcode_libdir_flag_spec\"
6233         libdir="$acl_save_libdir"
6234         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6235       done
6236     fi
6237   fi
6238   if test "X$ltrpathdirs" != "X"; then
6239             for found_dir in $ltrpathdirs; do
6240       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6241     done
6242   fi
6243
6244
6245         ac_save_CPPFLAGS="$CPPFLAGS"
6246
6247   for element in $INCEXPAT; do
6248     haveit=
6249     for x in $CPPFLAGS; do
6250
6251   acl_save_prefix="$prefix"
6252   prefix="$acl_final_prefix"
6253   acl_save_exec_prefix="$exec_prefix"
6254   exec_prefix="$acl_final_exec_prefix"
6255   eval x=\"$x\"
6256   exec_prefix="$acl_save_exec_prefix"
6257   prefix="$acl_save_prefix"
6258
6259       if test "X$x" = "X$element"; then
6260         haveit=yes
6261         break
6262       fi
6263     done
6264     if test -z "$haveit"; then
6265       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6266     fi
6267   done
6268
6269
6270   echo "$as_me:$LINENO: checking for libexpat" >&5
6271 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6272 if test "${ac_cv_libexpat+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275
6276     ac_save_LIBS="$LIBS"
6277     LIBS="$LIBS $LIBEXPAT"
6278     cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284 #include "expat.h"
6285 int
6286 main ()
6287 {
6288 XML_Parser p = XML_ParserCreate (0);
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 rm -f conftest.$ac_objext conftest$ac_exeext
6294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6295   (eval $ac_link) 2>conftest.er1
6296   ac_status=$?
6297   grep -v '^ *+' conftest.er1 >conftest.err
6298   rm -f conftest.er1
6299   cat conftest.err >&5
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); } &&
6302          { ac_try='test -z "$ac_c_werror_flag"
6303                          || test ! -s conftest.err'
6304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305   (eval $ac_try) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; } &&
6309          { ac_try='test -s conftest$ac_exeext'
6310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311   (eval $ac_try) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; }; then
6315   ac_cv_libexpat=yes
6316 else
6317   echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ac_cv_libexpat=no
6321 fi
6322 rm -f conftest.err conftest.$ac_objext \
6323       conftest$ac_exeext conftest.$ac_ext
6324     LIBS="$ac_save_LIBS"
6325
6326 fi
6327 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6328 echo "${ECHO_T}$ac_cv_libexpat" >&6
6329   if test "$ac_cv_libexpat" = yes; then
6330     HAVE_LIBEXPAT=yes
6331
6332 cat >>confdefs.h <<\_ACEOF
6333 #define HAVE_LIBEXPAT 1
6334 _ACEOF
6335
6336     echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6337 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6338     echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6339 echo "${ECHO_T}$LIBEXPAT" >&6
6340   else
6341     HAVE_LIBEXPAT=no
6342             CPPFLAGS="$ac_save_CPPFLAGS"
6343     LIBEXPAT=
6344     LTLIBEXPAT=
6345   fi
6346
6347
6348
6349
6350
6351
6352 if test "$HAVE_LIBEXPAT" != yes; then
6353   { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6354 echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
6355 else
6356   save_LIBS=$LIBS
6357   LIBS="$LIBS $LIBEXPAT"
6358
6359 for ac_func in XML_StopParser
6360 do
6361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6362 echo "$as_me:$LINENO: checking for $ac_func" >&5
6363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_var+set}\" = set"; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h.  */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h.  */
6373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6375 #define $ac_func innocuous_$ac_func
6376
6377 /* System header to define __stub macros and hopefully few prototypes,
6378     which can conflict with char $ac_func (); below.
6379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6380     <limits.h> exists even on freestanding compilers.  */
6381
6382 #ifdef __STDC__
6383 # include <limits.h>
6384 #else
6385 # include <assert.h>
6386 #endif
6387
6388 #undef $ac_func
6389
6390 /* Override any gcc2 internal prototype to avoid an error.  */
6391 #ifdef __cplusplus
6392 extern "C"
6393 {
6394 #endif
6395 /* We use char because int might match the return type of a gcc2
6396    builtin and then its argument prototype would still apply.  */
6397 char $ac_func ();
6398 /* The GNU C library defines this for functions which it implements
6399     to always fail with ENOSYS.  Some functions are actually named
6400     something starting with __ and the normal name is an alias.  */
6401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6402 choke me
6403 #else
6404 char (*f) () = $ac_func;
6405 #endif
6406 #ifdef __cplusplus
6407 }
6408 #endif
6409
6410 int
6411 main ()
6412 {
6413 return f != $ac_func;
6414   ;
6415   return 0;
6416 }
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6420   (eval $ac_link) 2>conftest.er1
6421   ac_status=$?
6422   grep -v '^ *+' conftest.er1 >conftest.err
6423   rm -f conftest.er1
6424   cat conftest.err >&5
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); } &&
6427          { ac_try='test -z "$ac_c_werror_flag"
6428                          || test ! -s conftest.err'
6429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430   (eval $ac_try) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; } &&
6434          { ac_try='test -s conftest$ac_exeext'
6435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436   (eval $ac_try) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); }; }; then
6440   eval "$as_ac_var=yes"
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 eval "$as_ac_var=no"
6446 fi
6447 rm -f conftest.err conftest.$ac_objext \
6448       conftest$ac_exeext conftest.$ac_ext
6449 fi
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6452 if test `eval echo '${'$as_ac_var'}'` = yes; then
6453   cat >>confdefs.h <<_ACEOF
6454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6455 _ACEOF
6456
6457 fi
6458 done
6459
6460   LIBS=$save_LIBS
6461 fi
6462
6463 # ------------------------- #
6464 # Checks for header files.  #
6465 # ------------------------- #
6466
6467
6468
6469
6470
6471
6472 ac_header_dirent=no
6473 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6474   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6475 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6476 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h.  */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h.  */
6486 #include <sys/types.h>
6487 #include <$ac_hdr>
6488
6489 int
6490 main ()
6491 {
6492 if ((DIR *) 0)
6493 return 0;
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500   (eval $ac_compile) 2>conftest.er1
6501   ac_status=$?
6502   grep -v '^ *+' conftest.er1 >conftest.err
6503   rm -f conftest.er1
6504   cat conftest.err >&5
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); } &&
6507          { ac_try='test -z "$ac_c_werror_flag"
6508                          || test ! -s conftest.err'
6509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510   (eval $ac_try) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }; } &&
6514          { ac_try='test -s conftest.$ac_objext'
6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516   (eval $ac_try) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); }; }; then
6520   eval "$as_ac_Header=yes"
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 eval "$as_ac_Header=no"
6526 fi
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532   cat >>confdefs.h <<_ACEOF
6533 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6534 _ACEOF
6535
6536 ac_header_dirent=$ac_hdr; break
6537 fi
6538
6539 done
6540 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6541 if test $ac_header_dirent = dirent.h; then
6542   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6543 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6544 if test "${ac_cv_search_opendir+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   ac_func_search_save_LIBS=$LIBS
6548 ac_cv_search_opendir=no
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h.  */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h.  */
6555
6556 /* Override any gcc2 internal prototype to avoid an error.  */
6557 #ifdef __cplusplus
6558 extern "C"
6559 #endif
6560 /* We use char because int might match the return type of a gcc2
6561    builtin and then its argument prototype would still apply.  */
6562 char opendir ();
6563 int
6564 main ()
6565 {
6566 opendir ();
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573   (eval $ac_link) 2>conftest.er1
6574   ac_status=$?
6575   grep -v '^ *+' conftest.er1 >conftest.err
6576   rm -f conftest.er1
6577   cat conftest.err >&5
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); } &&
6580          { ac_try='test -z "$ac_c_werror_flag"
6581                          || test ! -s conftest.err'
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); }; } &&
6587          { ac_try='test -s conftest$ac_exeext'
6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589   (eval $ac_try) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); }; }; then
6593   ac_cv_search_opendir="none required"
6594 else
6595   echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 fi
6599 rm -f conftest.err conftest.$ac_objext \
6600       conftest$ac_exeext conftest.$ac_ext
6601 if test "$ac_cv_search_opendir" = no; then
6602   for ac_lib in dir; do
6603     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6604     cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h.  */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h.  */
6610
6611 /* Override any gcc2 internal prototype to avoid an error.  */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616    builtin and then its argument prototype would still apply.  */
6617 char opendir ();
6618 int
6619 main ()
6620 {
6621 opendir ();
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628   (eval $ac_link) 2>conftest.er1
6629   ac_status=$?
6630   grep -v '^ *+' conftest.er1 >conftest.err
6631   rm -f conftest.er1
6632   cat conftest.err >&5
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } &&
6635          { ac_try='test -z "$ac_c_werror_flag"
6636                          || test ! -s conftest.err'
6637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638   (eval $ac_try) 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; } &&
6642          { ac_try='test -s conftest$ac_exeext'
6643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644   (eval $ac_try) 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; }; then
6648   ac_cv_search_opendir="-l$ac_lib"
6649 break
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 fi
6655 rm -f conftest.err conftest.$ac_objext \
6656       conftest$ac_exeext conftest.$ac_ext
6657   done
6658 fi
6659 LIBS=$ac_func_search_save_LIBS
6660 fi
6661 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6662 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6663 if test "$ac_cv_search_opendir" != no; then
6664   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6665
6666 fi
6667
6668 else
6669   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6670 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6671 if test "${ac_cv_search_opendir+set}" = set; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   ac_func_search_save_LIBS=$LIBS
6675 ac_cv_search_opendir=no
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h.  */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h.  */
6682
6683 /* Override any gcc2 internal prototype to avoid an error.  */
6684 #ifdef __cplusplus
6685 extern "C"
6686 #endif
6687 /* We use char because int might match the return type of a gcc2
6688    builtin and then its argument prototype would still apply.  */
6689 char opendir ();
6690 int
6691 main ()
6692 {
6693 opendir ();
6694   ;
6695   return 0;
6696 }
6697 _ACEOF
6698 rm -f conftest.$ac_objext conftest$ac_exeext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700   (eval $ac_link) 2>conftest.er1
6701   ac_status=$?
6702   grep -v '^ *+' conftest.er1 >conftest.err
6703   rm -f conftest.er1
6704   cat conftest.err >&5
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } &&
6707          { ac_try='test -z "$ac_c_werror_flag"
6708                          || test ! -s conftest.err'
6709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710   (eval $ac_try) 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); }; } &&
6714          { ac_try='test -s conftest$ac_exeext'
6715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716   (eval $ac_try) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); }; }; then
6720   ac_cv_search_opendir="none required"
6721 else
6722   echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 fi
6726 rm -f conftest.err conftest.$ac_objext \
6727       conftest$ac_exeext conftest.$ac_ext
6728 if test "$ac_cv_search_opendir" = no; then
6729   for ac_lib in x; do
6730     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6731     cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h.  */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h.  */
6737
6738 /* Override any gcc2 internal prototype to avoid an error.  */
6739 #ifdef __cplusplus
6740 extern "C"
6741 #endif
6742 /* We use char because int might match the return type of a gcc2
6743    builtin and then its argument prototype would still apply.  */
6744 char opendir ();
6745 int
6746 main ()
6747 {
6748 opendir ();
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755   (eval $ac_link) 2>conftest.er1
6756   ac_status=$?
6757   grep -v '^ *+' conftest.er1 >conftest.err
6758   rm -f conftest.er1
6759   cat conftest.err >&5
6760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761   (exit $ac_status); } &&
6762          { ac_try='test -z "$ac_c_werror_flag"
6763                          || test ! -s conftest.err'
6764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765   (eval $ac_try) 2>&5
6766   ac_status=$?
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); }; } &&
6769          { ac_try='test -s conftest$ac_exeext'
6770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771   (eval $ac_try) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }; }; then
6775   ac_cv_search_opendir="-l$ac_lib"
6776 break
6777 else
6778   echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 fi
6782 rm -f conftest.err conftest.$ac_objext \
6783       conftest$ac_exeext conftest.$ac_ext
6784   done
6785 fi
6786 LIBS=$ac_func_search_save_LIBS
6787 fi
6788 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6789 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6790 if test "$ac_cv_search_opendir" != no; then
6791   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6792
6793 fi
6794
6795 fi
6796
6797 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6798 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6799 if test "${ac_cv_header_stat_broken+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808 #include <sys/types.h>
6809 #include <sys/stat.h>
6810
6811 #if defined(S_ISBLK) && defined(S_IFDIR)
6812 # if S_ISBLK (S_IFDIR)
6813 You lose.
6814 # endif
6815 #endif
6816
6817 #if defined(S_ISBLK) && defined(S_IFCHR)
6818 # if S_ISBLK (S_IFCHR)
6819 You lose.
6820 # endif
6821 #endif
6822
6823 #if defined(S_ISLNK) && defined(S_IFREG)
6824 # if S_ISLNK (S_IFREG)
6825 You lose.
6826 # endif
6827 #endif
6828
6829 #if defined(S_ISSOCK) && defined(S_IFREG)
6830 # if S_ISSOCK (S_IFREG)
6831 You lose.
6832 # endif
6833 #endif
6834
6835 _ACEOF
6836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837   $EGREP "You lose" >/dev/null 2>&1; then
6838   ac_cv_header_stat_broken=yes
6839 else
6840   ac_cv_header_stat_broken=no
6841 fi
6842 rm -f conftest*
6843
6844 fi
6845 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6846 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6847 if test $ac_cv_header_stat_broken = yes; then
6848
6849 cat >>confdefs.h <<\_ACEOF
6850 #define STAT_MACROS_BROKEN 1
6851 _ACEOF
6852
6853 fi
6854
6855 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6856 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6857 if test "${ac_cv_header_stdc+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h.  */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h.  */
6866 #include <stdlib.h>
6867 #include <stdarg.h>
6868 #include <string.h>
6869 #include <float.h>
6870
6871 int
6872 main ()
6873 {
6874
6875   ;
6876   return 0;
6877 }
6878 _ACEOF
6879 rm -f conftest.$ac_objext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881   (eval $ac_compile) 2>conftest.er1
6882   ac_status=$?
6883   grep -v '^ *+' conftest.er1 >conftest.err
6884   rm -f conftest.er1
6885   cat conftest.err >&5
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); } &&
6888          { ac_try='test -z "$ac_c_werror_flag"
6889                          || test ! -s conftest.err'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; } &&
6895          { ac_try='test -s conftest.$ac_objext'
6896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897   (eval $ac_try) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   ac_cv_header_stdc=yes
6902 else
6903   echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 ac_cv_header_stdc=no
6907 fi
6908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6909
6910 if test $ac_cv_header_stdc = yes; then
6911   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6912   cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h.  */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h.  */
6918 #include <string.h>
6919
6920 _ACEOF
6921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6922   $EGREP "memchr" >/dev/null 2>&1; then
6923   :
6924 else
6925   ac_cv_header_stdc=no
6926 fi
6927 rm -f conftest*
6928
6929 fi
6930
6931 if test $ac_cv_header_stdc = yes; then
6932   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6933   cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939 #include <stdlib.h>
6940
6941 _ACEOF
6942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943   $EGREP "free" >/dev/null 2>&1; then
6944   :
6945 else
6946   ac_cv_header_stdc=no
6947 fi
6948 rm -f conftest*
6949
6950 fi
6951
6952 if test $ac_cv_header_stdc = yes; then
6953   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6954   if test "$cross_compiling" = yes; then
6955   :
6956 else
6957   cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h.  */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h.  */
6963 #include <ctype.h>
6964 #if ((' ' & 0x0FF) == 0x020)
6965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6967 #else
6968 # define ISLOWER(c) \
6969                    (('a' <= (c) && (c) <= 'i') \
6970                      || ('j' <= (c) && (c) <= 'r') \
6971                      || ('s' <= (c) && (c) <= 'z'))
6972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6973 #endif
6974
6975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6976 int
6977 main ()
6978 {
6979   int i;
6980   for (i = 0; i < 256; i++)
6981     if (XOR (islower (i), ISLOWER (i))
6982         || toupper (i) != TOUPPER (i))
6983       exit(2);
6984   exit (0);
6985 }
6986 _ACEOF
6987 rm -f conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989   (eval $ac_link) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994   (eval $ac_try) 2>&5
6995   ac_status=$?
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); }; }; then
6998   :
6999 else
7000   echo "$as_me: program exited with status $ac_status" >&5
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 ( exit $ac_status )
7005 ac_cv_header_stdc=no
7006 fi
7007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7008 fi
7009 fi
7010 fi
7011 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7012 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7013 if test $ac_cv_header_stdc = yes; then
7014
7015 cat >>confdefs.h <<\_ACEOF
7016 #define STDC_HEADERS 1
7017 _ACEOF
7018
7019 fi
7020
7021
7022 for ac_header in nlist.h
7023 do
7024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7026   echo "$as_me:$LINENO: checking for $ac_header" >&5
7027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 fi
7031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7033 else
7034   # Is the header compilable?
7035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h.  */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h.  */
7043 $ac_includes_default
7044 #include <$ac_header>
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048   (eval $ac_compile) 2>conftest.er1
7049   ac_status=$?
7050   grep -v '^ *+' conftest.er1 >conftest.err
7051   rm -f conftest.er1
7052   cat conftest.err >&5
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); } &&
7055          { ac_try='test -z "$ac_c_werror_flag"
7056                          || test ! -s conftest.err'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; } &&
7062          { ac_try='test -s conftest.$ac_objext'
7063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064   (eval $ac_try) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; }; then
7068   ac_header_compiler=yes
7069 else
7070   echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7072
7073 ac_header_compiler=no
7074 fi
7075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7077 echo "${ECHO_T}$ac_header_compiler" >&6
7078
7079 # Is the header present?
7080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088 #include <$ac_header>
7089 _ACEOF
7090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7092   ac_status=$?
7093   grep -v '^ *+' conftest.er1 >conftest.err
7094   rm -f conftest.er1
7095   cat conftest.err >&5
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); } >/dev/null; then
7098   if test -s conftest.err; then
7099     ac_cpp_err=$ac_c_preproc_warn_flag
7100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7101   else
7102     ac_cpp_err=
7103   fi
7104 else
7105   ac_cpp_err=yes
7106 fi
7107 if test -z "$ac_cpp_err"; then
7108   ac_header_preproc=yes
7109 else
7110   echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7112
7113   ac_header_preproc=no
7114 fi
7115 rm -f conftest.err conftest.$ac_ext
7116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7117 echo "${ECHO_T}$ac_header_preproc" >&6
7118
7119 # So?  What about this header?
7120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7121   yes:no: )
7122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7126     ac_header_preproc=yes
7127     ;;
7128   no:yes:* )
7129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7141     (
7142       cat <<\_ASBOX
7143 ## ------------------------------------------ ##
7144 ## Report this to the AC_PACKAGE_NAME lists.  ##
7145 ## ------------------------------------------ ##
7146 _ASBOX
7147     ) |
7148       sed "s/^/$as_me: WARNING:     /" >&2
7149     ;;
7150 esac
7151 echo "$as_me:$LINENO: checking for $ac_header" >&5
7152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   eval "$as_ac_Header=\$ac_header_preproc"
7157 fi
7158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7160
7161 fi
7162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7163   cat >>confdefs.h <<_ACEOF
7164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165 _ACEOF
7166
7167 fi
7168
7169 done
7170
7171
7172 for ac_header in link.h
7173 do
7174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7175 echo "$as_me:$LINENO: checking for $ac_header" >&5
7176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h.  */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h.  */
7186 #if HAVE_SYS_TYPES_H
7187 # include <sys/types.h>
7188 #endif
7189 #if HAVE_NLIST_H
7190 # include <nlist.h>
7191 #endif
7192
7193
7194 #include <$ac_header>
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>conftest.er1
7199   ac_status=$?
7200   grep -v '^ *+' conftest.er1 >conftest.err
7201   rm -f conftest.er1
7202   cat conftest.err >&5
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } &&
7205          { ac_try='test -z "$ac_c_werror_flag"
7206                          || test ! -s conftest.err'
7207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208   (eval $ac_try) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; } &&
7212          { ac_try='test -s conftest.$ac_objext'
7213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214   (eval $ac_try) 2>&5
7215   ac_status=$?
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); }; }; then
7218   eval "$as_ac_Header=yes"
7219 else
7220   echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223 eval "$as_ac_Header=no"
7224 fi
7225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7229 if 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
7234 fi
7235
7236 done
7237
7238
7239 for ac_header in machine/reg.h
7240 do
7241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7243   echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 fi
7248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7250 else
7251   # Is the header compilable?
7252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7254 cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h.  */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h.  */
7260 $ac_includes_default
7261 #include <$ac_header>
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (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   ac_header_compiler=yes
7286 else
7287   echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290 ac_header_compiler=no
7291 fi
7292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7294 echo "${ECHO_T}$ac_header_compiler" >&6
7295
7296 # Is the header present?
7297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305 #include <$ac_header>
7306 _ACEOF
7307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7309   ac_status=$?
7310   grep -v '^ *+' conftest.er1 >conftest.err
7311   rm -f conftest.er1
7312   cat conftest.err >&5
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } >/dev/null; then
7315   if test -s conftest.err; then
7316     ac_cpp_err=$ac_c_preproc_warn_flag
7317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7318   else
7319     ac_cpp_err=
7320   fi
7321 else
7322   ac_cpp_err=yes
7323 fi
7324 if test -z "$ac_cpp_err"; then
7325   ac_header_preproc=yes
7326 else
7327   echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7329
7330   ac_header_preproc=no
7331 fi
7332 rm -f conftest.err conftest.$ac_ext
7333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7334 echo "${ECHO_T}$ac_header_preproc" >&6
7335
7336 # So?  What about this header?
7337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7338   yes:no: )
7339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7343     ac_header_preproc=yes
7344     ;;
7345   no:yes:* )
7346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7358     (
7359       cat <<\_ASBOX
7360 ## ------------------------------------------ ##
7361 ## Report this to the AC_PACKAGE_NAME lists.  ##
7362 ## ------------------------------------------ ##
7363 _ASBOX
7364     ) |
7365       sed "s/^/$as_me: WARNING:     /" >&2
7366     ;;
7367 esac
7368 echo "$as_me:$LINENO: checking for $ac_header" >&5
7369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7371   echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373   eval "$as_ac_Header=\$ac_header_preproc"
7374 fi
7375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7377
7378 fi
7379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7380   cat >>confdefs.h <<_ACEOF
7381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7382 _ACEOF
7383
7384 fi
7385
7386 done
7387
7388
7389
7390 for ac_header in poll.h sys/poll.h
7391 do
7392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7394   echo "$as_me:$LINENO: checking for $ac_header" >&5
7395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 fi
7399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7401 else
7402   # Is the header compilable?
7403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h.  */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h.  */
7411 $ac_includes_default
7412 #include <$ac_header>
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416   (eval $ac_compile) 2>conftest.er1
7417   ac_status=$?
7418   grep -v '^ *+' conftest.er1 >conftest.err
7419   rm -f conftest.er1
7420   cat conftest.err >&5
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } &&
7423          { ac_try='test -z "$ac_c_werror_flag"
7424                          || test ! -s conftest.err'
7425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426   (eval $ac_try) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; } &&
7430          { ac_try='test -s conftest.$ac_objext'
7431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432   (eval $ac_try) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }; }; then
7436   ac_header_compiler=yes
7437 else
7438   echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7440
7441 ac_header_compiler=no
7442 fi
7443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7445 echo "${ECHO_T}$ac_header_compiler" >&6
7446
7447 # Is the header present?
7448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456 #include <$ac_header>
7457 _ACEOF
7458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7460   ac_status=$?
7461   grep -v '^ *+' conftest.er1 >conftest.err
7462   rm -f conftest.er1
7463   cat conftest.err >&5
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); } >/dev/null; then
7466   if test -s conftest.err; then
7467     ac_cpp_err=$ac_c_preproc_warn_flag
7468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7469   else
7470     ac_cpp_err=
7471   fi
7472 else
7473   ac_cpp_err=yes
7474 fi
7475 if test -z "$ac_cpp_err"; then
7476   ac_header_preproc=yes
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481   ac_header_preproc=no
7482 fi
7483 rm -f conftest.err conftest.$ac_ext
7484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7485 echo "${ECHO_T}$ac_header_preproc" >&6
7486
7487 # So?  What about this header?
7488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7489   yes:no: )
7490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7494     ac_header_preproc=yes
7495     ;;
7496   no:yes:* )
7497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7509     (
7510       cat <<\_ASBOX
7511 ## ------------------------------------------ ##
7512 ## Report this to the AC_PACKAGE_NAME lists.  ##
7513 ## ------------------------------------------ ##
7514 _ASBOX
7515     ) |
7516       sed "s/^/$as_me: WARNING:     /" >&2
7517     ;;
7518 esac
7519 echo "$as_me:$LINENO: checking for $ac_header" >&5
7520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   eval "$as_ac_Header=\$ac_header_preproc"
7525 fi
7526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7528
7529 fi
7530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7531   cat >>confdefs.h <<_ACEOF
7532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7533 _ACEOF
7534
7535 fi
7536
7537 done
7538
7539
7540
7541
7542 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7543 do
7544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546   echo "$as_me:$LINENO: checking for $ac_header" >&5
7547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 fi
7551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7553 else
7554   # Is the header compilable?
7555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h.  */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h.  */
7563 $ac_includes_default
7564 #include <$ac_header>
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568   (eval $ac_compile) 2>conftest.er1
7569   ac_status=$?
7570   grep -v '^ *+' conftest.er1 >conftest.err
7571   rm -f conftest.er1
7572   cat conftest.err >&5
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); } &&
7575          { ac_try='test -z "$ac_c_werror_flag"
7576                          || test ! -s conftest.err'
7577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578   (eval $ac_try) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; } &&
7582          { ac_try='test -s conftest.$ac_objext'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; }; then
7588   ac_header_compiler=yes
7589 else
7590   echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7592
7593 ac_header_compiler=no
7594 fi
7595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7597 echo "${ECHO_T}$ac_header_compiler" >&6
7598
7599 # Is the header present?
7600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7602 cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h.  */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h.  */
7608 #include <$ac_header>
7609 _ACEOF
7610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7612   ac_status=$?
7613   grep -v '^ *+' conftest.er1 >conftest.err
7614   rm -f conftest.er1
7615   cat conftest.err >&5
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); } >/dev/null; then
7618   if test -s conftest.err; then
7619     ac_cpp_err=$ac_c_preproc_warn_flag
7620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7621   else
7622     ac_cpp_err=
7623   fi
7624 else
7625   ac_cpp_err=yes
7626 fi
7627 if test -z "$ac_cpp_err"; then
7628   ac_header_preproc=yes
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633   ac_header_preproc=no
7634 fi
7635 rm -f conftest.err conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7637 echo "${ECHO_T}$ac_header_preproc" >&6
7638
7639 # So?  What about this header?
7640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7641   yes:no: )
7642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7646     ac_header_preproc=yes
7647     ;;
7648   no:yes:* )
7649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7661     (
7662       cat <<\_ASBOX
7663 ## ------------------------------------------ ##
7664 ## Report this to the AC_PACKAGE_NAME lists.  ##
7665 ## ------------------------------------------ ##
7666 _ASBOX
7667     ) |
7668       sed "s/^/$as_me: WARNING:     /" >&2
7669     ;;
7670 esac
7671 echo "$as_me:$LINENO: checking for $ac_header" >&5
7672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   eval "$as_ac_Header=\$ac_header_preproc"
7677 fi
7678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7680
7681 fi
7682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7683   cat >>confdefs.h <<_ACEOF
7684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7685 _ACEOF
7686
7687 fi
7688
7689 done
7690
7691
7692 for ac_header in stddef.h
7693 do
7694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696   echo "$as_me:$LINENO: checking for $ac_header" >&5
7697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 fi
7701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7703 else
7704   # Is the header compilable?
7705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h.  */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h.  */
7713 $ac_includes_default
7714 #include <$ac_header>
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718   (eval $ac_compile) 2>conftest.er1
7719   ac_status=$?
7720   grep -v '^ *+' conftest.er1 >conftest.err
7721   rm -f conftest.er1
7722   cat conftest.err >&5
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } &&
7725          { ac_try='test -z "$ac_c_werror_flag"
7726                          || test ! -s conftest.err'
7727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728   (eval $ac_try) 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }; } &&
7732          { ac_try='test -s conftest.$ac_objext'
7733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734   (eval $ac_try) 2>&5
7735   ac_status=$?
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; }; then
7738   ac_header_compiler=yes
7739 else
7740   echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 ac_header_compiler=no
7744 fi
7745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7747 echo "${ECHO_T}$ac_header_compiler" >&6
7748
7749 # Is the header present?
7750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h.  */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h.  */
7758 #include <$ac_header>
7759 _ACEOF
7760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7762   ac_status=$?
7763   grep -v '^ *+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } >/dev/null; then
7768   if test -s conftest.err; then
7769     ac_cpp_err=$ac_c_preproc_warn_flag
7770     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7771   else
7772     ac_cpp_err=
7773   fi
7774 else
7775   ac_cpp_err=yes
7776 fi
7777 if test -z "$ac_cpp_err"; then
7778   ac_header_preproc=yes
7779 else
7780   echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783   ac_header_preproc=no
7784 fi
7785 rm -f conftest.err conftest.$ac_ext
7786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787 echo "${ECHO_T}$ac_header_preproc" >&6
7788
7789 # So?  What about this header?
7790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7791   yes:no: )
7792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7796     ac_header_preproc=yes
7797     ;;
7798   no:yes:* )
7799     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7801     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7802 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7803     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7805     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7806 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7809     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7811     (
7812       cat <<\_ASBOX
7813 ## ------------------------------------------ ##
7814 ## Report this to the AC_PACKAGE_NAME lists.  ##
7815 ## ------------------------------------------ ##
7816 _ASBOX
7817     ) |
7818       sed "s/^/$as_me: WARNING:     /" >&2
7819     ;;
7820 esac
7821 echo "$as_me:$LINENO: checking for $ac_header" >&5
7822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   eval "$as_ac_Header=\$ac_header_preproc"
7827 fi
7828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7830
7831 fi
7832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7833   cat >>confdefs.h <<_ACEOF
7834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7835 _ACEOF
7836
7837 fi
7838
7839 done
7840
7841
7842 for ac_header in stdlib.h
7843 do
7844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7846   echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 fi
7851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7853 else
7854   # Is the header compilable?
7855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7857 cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h.  */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h.  */
7863 $ac_includes_default
7864 #include <$ac_header>
7865 _ACEOF
7866 rm -f conftest.$ac_objext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868   (eval $ac_compile) 2>conftest.er1
7869   ac_status=$?
7870   grep -v '^ *+' conftest.er1 >conftest.err
7871   rm -f conftest.er1
7872   cat conftest.err >&5
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); } &&
7875          { ac_try='test -z "$ac_c_werror_flag"
7876                          || test ! -s conftest.err'
7877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878   (eval $ac_try) 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; } &&
7882          { ac_try='test -s conftest.$ac_objext'
7883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884   (eval $ac_try) 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; }; then
7888   ac_header_compiler=yes
7889 else
7890   echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 ac_header_compiler=no
7894 fi
7895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7897 echo "${ECHO_T}$ac_header_compiler" >&6
7898
7899 # Is the header present?
7900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h.  */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h.  */
7908 #include <$ac_header>
7909 _ACEOF
7910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7912   ac_status=$?
7913   grep -v '^ *+' conftest.er1 >conftest.err
7914   rm -f conftest.er1
7915   cat conftest.err >&5
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); } >/dev/null; then
7918   if test -s conftest.err; then
7919     ac_cpp_err=$ac_c_preproc_warn_flag
7920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7921   else
7922     ac_cpp_err=
7923   fi
7924 else
7925   ac_cpp_err=yes
7926 fi
7927 if test -z "$ac_cpp_err"; then
7928   ac_header_preproc=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933   ac_header_preproc=no
7934 fi
7935 rm -f conftest.err conftest.$ac_ext
7936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7937 echo "${ECHO_T}$ac_header_preproc" >&6
7938
7939 # So?  What about this header?
7940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7941   yes:no: )
7942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7946     ac_header_preproc=yes
7947     ;;
7948   no:yes:* )
7949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7961     (
7962       cat <<\_ASBOX
7963 ## ------------------------------------------ ##
7964 ## Report this to the AC_PACKAGE_NAME lists.  ##
7965 ## ------------------------------------------ ##
7966 _ASBOX
7967     ) |
7968       sed "s/^/$as_me: WARNING:     /" >&2
7969     ;;
7970 esac
7971 echo "$as_me:$LINENO: checking for $ac_header" >&5
7972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   eval "$as_ac_Header=\$ac_header_preproc"
7977 fi
7978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7980
7981 fi
7982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7983   cat >>confdefs.h <<_ACEOF
7984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7985 _ACEOF
7986
7987 fi
7988
7989 done
7990
7991
7992 for ac_header in stdint.h
7993 do
7994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7996   echo "$as_me:$LINENO: checking for $ac_header" >&5
7997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 fi
8001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8003 else
8004   # Is the header compilable?
8005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h.  */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h.  */
8013 $ac_includes_default
8014 #include <$ac_header>
8015 _ACEOF
8016 rm -f conftest.$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018   (eval $ac_compile) 2>conftest.er1
8019   ac_status=$?
8020   grep -v '^ *+' conftest.er1 >conftest.err
8021   rm -f conftest.er1
8022   cat conftest.err >&5
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); } &&
8025          { ac_try='test -z "$ac_c_werror_flag"
8026                          || test ! -s conftest.err'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; } &&
8032          { ac_try='test -s conftest.$ac_objext'
8033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034   (eval $ac_try) 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); }; }; then
8038   ac_header_compiler=yes
8039 else
8040   echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 ac_header_compiler=no
8044 fi
8045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8047 echo "${ECHO_T}$ac_header_compiler" >&6
8048
8049 # Is the header present?
8050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h.  */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h.  */
8058 #include <$ac_header>
8059 _ACEOF
8060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } >/dev/null; then
8068   if test -s conftest.err; then
8069     ac_cpp_err=$ac_c_preproc_warn_flag
8070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8071   else
8072     ac_cpp_err=
8073   fi
8074 else
8075   ac_cpp_err=yes
8076 fi
8077 if test -z "$ac_cpp_err"; then
8078   ac_header_preproc=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083   ac_header_preproc=no
8084 fi
8085 rm -f conftest.err conftest.$ac_ext
8086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8087 echo "${ECHO_T}$ac_header_preproc" >&6
8088
8089 # So?  What about this header?
8090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8091   yes:no: )
8092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8096     ac_header_preproc=yes
8097     ;;
8098   no:yes:* )
8099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8111     (
8112       cat <<\_ASBOX
8113 ## ------------------------------------------ ##
8114 ## Report this to the AC_PACKAGE_NAME lists.  ##
8115 ## ------------------------------------------ ##
8116 _ASBOX
8117     ) |
8118       sed "s/^/$as_me: WARNING:     /" >&2
8119     ;;
8120 esac
8121 echo "$as_me:$LINENO: checking for $ac_header" >&5
8122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8124   echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126   eval "$as_ac_Header=\$ac_header_preproc"
8127 fi
8128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8130
8131 fi
8132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8133   cat >>confdefs.h <<_ACEOF
8134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8135 _ACEOF
8136
8137 fi
8138
8139 done
8140
8141
8142
8143
8144 for ac_header in string.h memory.h strings.h
8145 do
8146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8148   echo "$as_me:$LINENO: checking for $ac_header" >&5
8149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 fi
8153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8155 else
8156   # Is the header compilable?
8157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h.  */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h.  */
8165 $ac_includes_default
8166 #include <$ac_header>
8167 _ACEOF
8168 rm -f conftest.$ac_objext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170   (eval $ac_compile) 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -z "$ac_c_werror_flag"
8178                          || test ! -s conftest.err'
8179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180   (eval $ac_try) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; } &&
8184          { ac_try='test -s conftest.$ac_objext'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   ac_header_compiler=yes
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_header_compiler=no
8196 fi
8197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8199 echo "${ECHO_T}$ac_header_compiler" >&6
8200
8201 # Is the header present?
8202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210 #include <$ac_header>
8211 _ACEOF
8212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8214   ac_status=$?
8215   grep -v '^ *+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } >/dev/null; then
8220   if test -s conftest.err; then
8221     ac_cpp_err=$ac_c_preproc_warn_flag
8222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8223   else
8224     ac_cpp_err=
8225   fi
8226 else
8227   ac_cpp_err=yes
8228 fi
8229 if test -z "$ac_cpp_err"; then
8230   ac_header_preproc=yes
8231 else
8232   echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8234
8235   ac_header_preproc=no
8236 fi
8237 rm -f conftest.err conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8239 echo "${ECHO_T}$ac_header_preproc" >&6
8240
8241 # So?  What about this header?
8242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8243   yes:no: )
8244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8248     ac_header_preproc=yes
8249     ;;
8250   no:yes:* )
8251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8263     (
8264       cat <<\_ASBOX
8265 ## ------------------------------------------ ##
8266 ## Report this to the AC_PACKAGE_NAME lists.  ##
8267 ## ------------------------------------------ ##
8268 _ASBOX
8269     ) |
8270       sed "s/^/$as_me: WARNING:     /" >&2
8271     ;;
8272 esac
8273 echo "$as_me:$LINENO: checking for $ac_header" >&5
8274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8276   echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278   eval "$as_ac_Header=\$ac_header_preproc"
8279 fi
8280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8282
8283 fi
8284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8285   cat >>confdefs.h <<_ACEOF
8286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8287 _ACEOF
8288
8289 fi
8290
8291 done
8292
8293
8294 for ac_header in sys/fault.h
8295 do
8296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8298   echo "$as_me:$LINENO: checking for $ac_header" >&5
8299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8301   echo $ECHO_N "(cached) $ECHO_C" >&6
8302 fi
8303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8305 else
8306   # Is the header compilable?
8307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h.  */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h.  */
8315 $ac_includes_default
8316 #include <$ac_header>
8317 _ACEOF
8318 rm -f conftest.$ac_objext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320   (eval $ac_compile) 2>conftest.er1
8321   ac_status=$?
8322   grep -v '^ *+' conftest.er1 >conftest.err
8323   rm -f conftest.er1
8324   cat conftest.err >&5
8325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); } &&
8327          { ac_try='test -z "$ac_c_werror_flag"
8328                          || test ! -s conftest.err'
8329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330   (eval $ac_try) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; } &&
8334          { ac_try='test -s conftest.$ac_objext'
8335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336   (eval $ac_try) 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; }; then
8340   ac_header_compiler=yes
8341 else
8342   echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 ac_header_compiler=no
8346 fi
8347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8349 echo "${ECHO_T}$ac_header_compiler" >&6
8350
8351 # Is the header present?
8352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360 #include <$ac_header>
8361 _ACEOF
8362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8364   ac_status=$?
8365   grep -v '^ *+' conftest.er1 >conftest.err
8366   rm -f conftest.er1
8367   cat conftest.err >&5
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } >/dev/null; then
8370   if test -s conftest.err; then
8371     ac_cpp_err=$ac_c_preproc_warn_flag
8372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8373   else
8374     ac_cpp_err=
8375   fi
8376 else
8377   ac_cpp_err=yes
8378 fi
8379 if test -z "$ac_cpp_err"; then
8380   ac_header_preproc=yes
8381 else
8382   echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385   ac_header_preproc=no
8386 fi
8387 rm -f conftest.err conftest.$ac_ext
8388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8389 echo "${ECHO_T}$ac_header_preproc" >&6
8390
8391 # So?  What about this header?
8392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8393   yes:no: )
8394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8398     ac_header_preproc=yes
8399     ;;
8400   no:yes:* )
8401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8403     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8404 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8405     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8407     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8408 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8411     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8413     (
8414       cat <<\_ASBOX
8415 ## ------------------------------------------ ##
8416 ## Report this to the AC_PACKAGE_NAME lists.  ##
8417 ## ------------------------------------------ ##
8418 _ASBOX
8419     ) |
8420       sed "s/^/$as_me: WARNING:     /" >&2
8421     ;;
8422 esac
8423 echo "$as_me:$LINENO: checking for $ac_header" >&5
8424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428   eval "$as_ac_Header=\$ac_header_preproc"
8429 fi
8430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8432
8433 fi
8434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8435   cat >>confdefs.h <<_ACEOF
8436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8437 _ACEOF
8438
8439 fi
8440
8441 done
8442
8443
8444 for ac_header in sys/file.h
8445 do
8446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8448   echo "$as_me:$LINENO: checking for $ac_header" >&5
8449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8451   echo $ECHO_N "(cached) $ECHO_C" >&6
8452 fi
8453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8455 else
8456   # Is the header compilable?
8457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8459 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465 $ac_includes_default
8466 #include <$ac_header>
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470   (eval $ac_compile) 2>conftest.er1
8471   ac_status=$?
8472   grep -v '^ *+' conftest.er1 >conftest.err
8473   rm -f conftest.er1
8474   cat conftest.err >&5
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -z "$ac_c_werror_flag"
8478                          || test ! -s conftest.err'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; } &&
8484          { ac_try='test -s conftest.$ac_objext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   ac_header_compiler=yes
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 ac_header_compiler=no
8496 fi
8497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8499 echo "${ECHO_T}$ac_header_compiler" >&6
8500
8501 # Is the header present?
8502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h.  */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h.  */
8510 #include <$ac_header>
8511 _ACEOF
8512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8514   ac_status=$?
8515   grep -v '^ *+' conftest.er1 >conftest.err
8516   rm -f conftest.er1
8517   cat conftest.err >&5
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } >/dev/null; then
8520   if test -s conftest.err; then
8521     ac_cpp_err=$ac_c_preproc_warn_flag
8522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8523   else
8524     ac_cpp_err=
8525   fi
8526 else
8527   ac_cpp_err=yes
8528 fi
8529 if test -z "$ac_cpp_err"; then
8530   ac_header_preproc=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535   ac_header_preproc=no
8536 fi
8537 rm -f conftest.err conftest.$ac_ext
8538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8539 echo "${ECHO_T}$ac_header_preproc" >&6
8540
8541 # So?  What about this header?
8542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8543   yes:no: )
8544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8548     ac_header_preproc=yes
8549     ;;
8550   no:yes:* )
8551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8563     (
8564       cat <<\_ASBOX
8565 ## ------------------------------------------ ##
8566 ## Report this to the AC_PACKAGE_NAME lists.  ##
8567 ## ------------------------------------------ ##
8568 _ASBOX
8569     ) |
8570       sed "s/^/$as_me: WARNING:     /" >&2
8571     ;;
8572 esac
8573 echo "$as_me:$LINENO: checking for $ac_header" >&5
8574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   eval "$as_ac_Header=\$ac_header_preproc"
8579 fi
8580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8582
8583 fi
8584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8585   cat >>confdefs.h <<_ACEOF
8586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8587 _ACEOF
8588
8589 fi
8590
8591 done
8592
8593
8594 for ac_header in sys/filio.h
8595 do
8596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598   echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 fi
8603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8605 else
8606   # Is the header compilable?
8607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615 $ac_includes_default
8616 #include <$ac_header>
8617 _ACEOF
8618 rm -f conftest.$ac_objext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8620   (eval $ac_compile) 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } &&
8627          { ac_try='test -z "$ac_c_werror_flag"
8628                          || test ! -s conftest.err'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; } &&
8634          { ac_try='test -s conftest.$ac_objext'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   ac_header_compiler=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 ac_header_compiler=no
8646 fi
8647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8649 echo "${ECHO_T}$ac_header_compiler" >&6
8650
8651 # Is the header present?
8652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660 #include <$ac_header>
8661 _ACEOF
8662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8664   ac_status=$?
8665   grep -v '^ *+' conftest.er1 >conftest.err
8666   rm -f conftest.er1
8667   cat conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } >/dev/null; then
8670   if test -s conftest.err; then
8671     ac_cpp_err=$ac_c_preproc_warn_flag
8672     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8673   else
8674     ac_cpp_err=
8675   fi
8676 else
8677   ac_cpp_err=yes
8678 fi
8679 if test -z "$ac_cpp_err"; then
8680   ac_header_preproc=yes
8681 else
8682   echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8684
8685   ac_header_preproc=no
8686 fi
8687 rm -f conftest.err conftest.$ac_ext
8688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8689 echo "${ECHO_T}$ac_header_preproc" >&6
8690
8691 # So?  What about this header?
8692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8693   yes:no: )
8694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8698     ac_header_preproc=yes
8699     ;;
8700   no:yes:* )
8701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8703     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8704 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8705     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8707     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8708 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8711     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8713     (
8714       cat <<\_ASBOX
8715 ## ------------------------------------------ ##
8716 ## Report this to the AC_PACKAGE_NAME lists.  ##
8717 ## ------------------------------------------ ##
8718 _ASBOX
8719     ) |
8720       sed "s/^/$as_me: WARNING:     /" >&2
8721     ;;
8722 esac
8723 echo "$as_me:$LINENO: checking for $ac_header" >&5
8724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   eval "$as_ac_Header=\$ac_header_preproc"
8729 fi
8730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8732
8733 fi
8734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8735   cat >>confdefs.h <<_ACEOF
8736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8737 _ACEOF
8738
8739 fi
8740
8741 done
8742
8743
8744 for ac_header in sys/ioctl.h
8745 do
8746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748   echo "$as_me:$LINENO: checking for $ac_header" >&5
8749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8751   echo $ECHO_N "(cached) $ECHO_C" >&6
8752 fi
8753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8755 else
8756   # Is the header compilable?
8757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h.  */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h.  */
8765 $ac_includes_default
8766 #include <$ac_header>
8767 _ACEOF
8768 rm -f conftest.$ac_objext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8770   (eval $ac_compile) 2>conftest.er1
8771   ac_status=$?
8772   grep -v '^ *+' conftest.er1 >conftest.err
8773   rm -f conftest.er1
8774   cat conftest.err >&5
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } &&
8777          { ac_try='test -z "$ac_c_werror_flag"
8778                          || test ! -s conftest.err'
8779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; } &&
8784          { ac_try='test -s conftest.$ac_objext'
8785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786   (eval $ac_try) 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; }; then
8790   ac_header_compiler=yes
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 ac_header_compiler=no
8796 fi
8797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8799 echo "${ECHO_T}$ac_header_compiler" >&6
8800
8801 # Is the header present?
8802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810 #include <$ac_header>
8811 _ACEOF
8812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8814   ac_status=$?
8815   grep -v '^ *+' conftest.er1 >conftest.err
8816   rm -f conftest.er1
8817   cat conftest.err >&5
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } >/dev/null; then
8820   if test -s conftest.err; then
8821     ac_cpp_err=$ac_c_preproc_warn_flag
8822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8823   else
8824     ac_cpp_err=
8825   fi
8826 else
8827   ac_cpp_err=yes
8828 fi
8829 if test -z "$ac_cpp_err"; then
8830   ac_header_preproc=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835   ac_header_preproc=no
8836 fi
8837 rm -f conftest.err conftest.$ac_ext
8838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8839 echo "${ECHO_T}$ac_header_preproc" >&6
8840
8841 # So?  What about this header?
8842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8843   yes:no: )
8844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8848     ac_header_preproc=yes
8849     ;;
8850   no:yes:* )
8851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8863     (
8864       cat <<\_ASBOX
8865 ## ------------------------------------------ ##
8866 ## Report this to the AC_PACKAGE_NAME lists.  ##
8867 ## ------------------------------------------ ##
8868 _ASBOX
8869     ) |
8870       sed "s/^/$as_me: WARNING:     /" >&2
8871     ;;
8872 esac
8873 echo "$as_me:$LINENO: checking for $ac_header" >&5
8874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8876   echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878   eval "$as_ac_Header=\$ac_header_preproc"
8879 fi
8880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8882
8883 fi
8884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8885   cat >>confdefs.h <<_ACEOF
8886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8887 _ACEOF
8888
8889 fi
8890
8891 done
8892
8893
8894 for ac_header in sys/param.h
8895 do
8896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8898   echo "$as_me:$LINENO: checking for $ac_header" >&5
8899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8901   echo $ECHO_N "(cached) $ECHO_C" >&6
8902 fi
8903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8905 else
8906   # Is the header compilable?
8907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8909 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h.  */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h.  */
8915 $ac_includes_default
8916 #include <$ac_header>
8917 _ACEOF
8918 rm -f conftest.$ac_objext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8920   (eval $ac_compile) 2>conftest.er1
8921   ac_status=$?
8922   grep -v '^ *+' conftest.er1 >conftest.err
8923   rm -f conftest.er1
8924   cat conftest.err >&5
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); } &&
8927          { ac_try='test -z "$ac_c_werror_flag"
8928                          || test ! -s conftest.err'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; } &&
8934          { ac_try='test -s conftest.$ac_objext'
8935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936   (eval $ac_try) 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; }; then
8940   ac_header_compiler=yes
8941 else
8942   echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 ac_header_compiler=no
8946 fi
8947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8949 echo "${ECHO_T}$ac_header_compiler" >&6
8950
8951 # Is the header present?
8952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960 #include <$ac_header>
8961 _ACEOF
8962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8964   ac_status=$?
8965   grep -v '^ *+' conftest.er1 >conftest.err
8966   rm -f conftest.er1
8967   cat conftest.err >&5
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); } >/dev/null; then
8970   if test -s conftest.err; then
8971     ac_cpp_err=$ac_c_preproc_warn_flag
8972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8973   else
8974     ac_cpp_err=
8975   fi
8976 else
8977   ac_cpp_err=yes
8978 fi
8979 if test -z "$ac_cpp_err"; then
8980   ac_header_preproc=yes
8981 else
8982   echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8984
8985   ac_header_preproc=no
8986 fi
8987 rm -f conftest.err conftest.$ac_ext
8988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8989 echo "${ECHO_T}$ac_header_preproc" >&6
8990
8991 # So?  What about this header?
8992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8993   yes:no: )
8994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8998     ac_header_preproc=yes
8999     ;;
9000   no:yes:* )
9001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9013     (
9014       cat <<\_ASBOX
9015 ## ------------------------------------------ ##
9016 ## Report this to the AC_PACKAGE_NAME lists.  ##
9017 ## ------------------------------------------ ##
9018 _ASBOX
9019     ) |
9020       sed "s/^/$as_me: WARNING:     /" >&2
9021     ;;
9022 esac
9023 echo "$as_me:$LINENO: checking for $ac_header" >&5
9024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9026   echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028   eval "$as_ac_Header=\$ac_header_preproc"
9029 fi
9030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9032
9033 fi
9034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9035   cat >>confdefs.h <<_ACEOF
9036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9037 _ACEOF
9038
9039 fi
9040
9041 done
9042
9043
9044 for ac_header in sys/proc.h
9045 do
9046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047 echo "$as_me:$LINENO: checking for $ac_header" >&5
9048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052   cat >conftest.$ac_ext <<_ACEOF
9053 /* confdefs.h.  */
9054 _ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h.  */
9058 #if HAVE_SYS_PARAM_H
9059 # include <sys/param.h>
9060 #endif
9061
9062
9063 #include <$ac_header>
9064 _ACEOF
9065 rm -f conftest.$ac_objext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067   (eval $ac_compile) 2>conftest.er1
9068   ac_status=$?
9069   grep -v '^ *+' conftest.er1 >conftest.err
9070   rm -f conftest.er1
9071   cat conftest.err >&5
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); } &&
9074          { ac_try='test -z "$ac_c_werror_flag"
9075                          || test ! -s conftest.err'
9076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077   (eval $ac_try) 2>&5
9078   ac_status=$?
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); }; } &&
9081          { ac_try='test -s conftest.$ac_objext'
9082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083   (eval $ac_try) 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); }; }; then
9087   eval "$as_ac_Header=yes"
9088 else
9089   echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9091
9092 eval "$as_ac_Header=no"
9093 fi
9094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9095 fi
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9099   cat >>confdefs.h <<_ACEOF
9100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9101 _ACEOF
9102
9103 fi
9104
9105 done
9106
9107
9108 for ac_header in sys/procfs.h
9109 do
9110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9112   echo "$as_me:$LINENO: checking for $ac_header" >&5
9113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 fi
9117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9119 else
9120   # Is the header compilable?
9121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h.  */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h.  */
9129 $ac_includes_default
9130 #include <$ac_header>
9131 _ACEOF
9132 rm -f conftest.$ac_objext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9134   (eval $ac_compile) 2>conftest.er1
9135   ac_status=$?
9136   grep -v '^ *+' conftest.er1 >conftest.err
9137   rm -f conftest.er1
9138   cat conftest.err >&5
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } &&
9141          { ac_try='test -z "$ac_c_werror_flag"
9142                          || test ! -s conftest.err'
9143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144   (eval $ac_try) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; } &&
9148          { ac_try='test -s conftest.$ac_objext'
9149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150   (eval $ac_try) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); }; }; then
9154   ac_header_compiler=yes
9155 else
9156   echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9158
9159 ac_header_compiler=no
9160 fi
9161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9163 echo "${ECHO_T}$ac_header_compiler" >&6
9164
9165 # Is the header present?
9166 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9168 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h.  */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h.  */
9174 #include <$ac_header>
9175 _ACEOF
9176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9178   ac_status=$?
9179   grep -v '^ *+' conftest.er1 >conftest.err
9180   rm -f conftest.er1
9181   cat conftest.err >&5
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); } >/dev/null; then
9184   if test -s conftest.err; then
9185     ac_cpp_err=$ac_c_preproc_warn_flag
9186     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9187   else
9188     ac_cpp_err=
9189   fi
9190 else
9191   ac_cpp_err=yes
9192 fi
9193 if test -z "$ac_cpp_err"; then
9194   ac_header_preproc=yes
9195 else
9196   echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199   ac_header_preproc=no
9200 fi
9201 rm -f conftest.err conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9203 echo "${ECHO_T}$ac_header_preproc" >&6
9204
9205 # So?  What about this header?
9206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9207   yes:no: )
9208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9212     ac_header_preproc=yes
9213     ;;
9214   no:yes:* )
9215     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9217     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9218 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9219     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9221     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9222 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9225     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9227     (
9228       cat <<\_ASBOX
9229 ## ------------------------------------------ ##
9230 ## Report this to the AC_PACKAGE_NAME lists.  ##
9231 ## ------------------------------------------ ##
9232 _ASBOX
9233     ) |
9234       sed "s/^/$as_me: WARNING:     /" >&2
9235     ;;
9236 esac
9237 echo "$as_me:$LINENO: checking for $ac_header" >&5
9238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   eval "$as_ac_Header=\$ac_header_preproc"
9243 fi
9244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9246
9247 fi
9248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9249   cat >>confdefs.h <<_ACEOF
9250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9251 _ACEOF
9252
9253 fi
9254
9255 done
9256
9257
9258
9259 for ac_header in sys/ptrace.h ptrace.h
9260 do
9261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263   echo "$as_me:$LINENO: checking for $ac_header" >&5
9264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 fi
9268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9270 else
9271   # Is the header compilable?
9272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h.  */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h.  */
9280 $ac_includes_default
9281 #include <$ac_header>
9282 _ACEOF
9283 rm -f conftest.$ac_objext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285   (eval $ac_compile) 2>conftest.er1
9286   ac_status=$?
9287   grep -v '^ *+' conftest.er1 >conftest.err
9288   rm -f conftest.er1
9289   cat conftest.err >&5
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); } &&
9292          { ac_try='test -z "$ac_c_werror_flag"
9293                          || test ! -s conftest.err'
9294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295   (eval $ac_try) 2>&5
9296   ac_status=$?
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); }; } &&
9299          { ac_try='test -s conftest.$ac_objext'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; }; then
9305   ac_header_compiler=yes
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310 ac_header_compiler=no
9311 fi
9312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9314 echo "${ECHO_T}$ac_header_compiler" >&6
9315
9316 # Is the header present?
9317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325 #include <$ac_header>
9326 _ACEOF
9327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9329   ac_status=$?
9330   grep -v '^ *+' conftest.er1 >conftest.err
9331   rm -f conftest.er1
9332   cat conftest.err >&5
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } >/dev/null; then
9335   if test -s conftest.err; then
9336     ac_cpp_err=$ac_c_preproc_warn_flag
9337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9338   else
9339     ac_cpp_err=
9340   fi
9341 else
9342   ac_cpp_err=yes
9343 fi
9344 if test -z "$ac_cpp_err"; then
9345   ac_header_preproc=yes
9346 else
9347   echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9349
9350   ac_header_preproc=no
9351 fi
9352 rm -f conftest.err conftest.$ac_ext
9353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9354 echo "${ECHO_T}$ac_header_preproc" >&6
9355
9356 # So?  What about this header?
9357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9358   yes:no: )
9359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9363     ac_header_preproc=yes
9364     ;;
9365   no:yes:* )
9366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9378     (
9379       cat <<\_ASBOX
9380 ## ------------------------------------------ ##
9381 ## Report this to the AC_PACKAGE_NAME lists.  ##
9382 ## ------------------------------------------ ##
9383 _ASBOX
9384     ) |
9385       sed "s/^/$as_me: WARNING:     /" >&2
9386     ;;
9387 esac
9388 echo "$as_me:$LINENO: checking for $ac_header" >&5
9389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9391   echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393   eval "$as_ac_Header=\$ac_header_preproc"
9394 fi
9395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9397
9398 fi
9399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9400   cat >>confdefs.h <<_ACEOF
9401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9402 _ACEOF
9403
9404 fi
9405
9406 done
9407
9408
9409
9410 for ac_header in sys/reg.h sys/debugreg.h
9411 do
9412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9414   echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 fi
9419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9421 else
9422   # Is the header compilable?
9423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h.  */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h.  */
9431 $ac_includes_default
9432 #include <$ac_header>
9433 _ACEOF
9434 rm -f conftest.$ac_objext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436   (eval $ac_compile) 2>conftest.er1
9437   ac_status=$?
9438   grep -v '^ *+' conftest.er1 >conftest.err
9439   rm -f conftest.er1
9440   cat conftest.err >&5
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); } &&
9443          { ac_try='test -z "$ac_c_werror_flag"
9444                          || test ! -s conftest.err'
9445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446   (eval $ac_try) 2>&5
9447   ac_status=$?
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); }; } &&
9450          { ac_try='test -s conftest.$ac_objext'
9451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452   (eval $ac_try) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); }; }; then
9456   ac_header_compiler=yes
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ac_header_compiler=no
9462 fi
9463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9465 echo "${ECHO_T}$ac_header_compiler" >&6
9466
9467 # Is the header present?
9468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h.  */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h.  */
9476 #include <$ac_header>
9477 _ACEOF
9478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9480   ac_status=$?
9481   grep -v '^ *+' conftest.er1 >conftest.err
9482   rm -f conftest.er1
9483   cat conftest.err >&5
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); } >/dev/null; then
9486   if test -s conftest.err; then
9487     ac_cpp_err=$ac_c_preproc_warn_flag
9488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9489   else
9490     ac_cpp_err=
9491   fi
9492 else
9493   ac_cpp_err=yes
9494 fi
9495 if test -z "$ac_cpp_err"; then
9496   ac_header_preproc=yes
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501   ac_header_preproc=no
9502 fi
9503 rm -f conftest.err conftest.$ac_ext
9504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9505 echo "${ECHO_T}$ac_header_preproc" >&6
9506
9507 # So?  What about this header?
9508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9509   yes:no: )
9510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9514     ac_header_preproc=yes
9515     ;;
9516   no:yes:* )
9517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9529     (
9530       cat <<\_ASBOX
9531 ## ------------------------------------------ ##
9532 ## Report this to the AC_PACKAGE_NAME lists.  ##
9533 ## ------------------------------------------ ##
9534 _ASBOX
9535     ) |
9536       sed "s/^/$as_me: WARNING:     /" >&2
9537     ;;
9538 esac
9539 echo "$as_me:$LINENO: checking for $ac_header" >&5
9540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   eval "$as_ac_Header=\$ac_header_preproc"
9545 fi
9546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9548
9549 fi
9550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9551   cat >>confdefs.h <<_ACEOF
9552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9553 _ACEOF
9554
9555 fi
9556
9557 done
9558
9559
9560 for ac_header in sys/select.h
9561 do
9562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9564   echo "$as_me:$LINENO: checking for $ac_header" >&5
9565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 fi
9569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9571 else
9572   # Is the header compilable?
9573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 $ac_includes_default
9582 #include <$ac_header>
9583 _ACEOF
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586   (eval $ac_compile) 2>conftest.er1
9587   ac_status=$?
9588   grep -v '^ *+' conftest.er1 >conftest.err
9589   rm -f conftest.er1
9590   cat conftest.err >&5
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } &&
9593          { ac_try='test -z "$ac_c_werror_flag"
9594                          || test ! -s conftest.err'
9595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596   (eval $ac_try) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; } &&
9600          { ac_try='test -s conftest.$ac_objext'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; }; then
9606   ac_header_compiler=yes
9607 else
9608   echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 ac_header_compiler=no
9612 fi
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9615 echo "${ECHO_T}$ac_header_compiler" >&6
9616
9617 # Is the header present?
9618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9620 cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626 #include <$ac_header>
9627 _ACEOF
9628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } >/dev/null; then
9636   if test -s conftest.err; then
9637     ac_cpp_err=$ac_c_preproc_warn_flag
9638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9639   else
9640     ac_cpp_err=
9641   fi
9642 else
9643   ac_cpp_err=yes
9644 fi
9645 if test -z "$ac_cpp_err"; then
9646   ac_header_preproc=yes
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651   ac_header_preproc=no
9652 fi
9653 rm -f conftest.err conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9655 echo "${ECHO_T}$ac_header_preproc" >&6
9656
9657 # So?  What about this header?
9658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9659   yes:no: )
9660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9664     ac_header_preproc=yes
9665     ;;
9666   no:yes:* )
9667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9679     (
9680       cat <<\_ASBOX
9681 ## ------------------------------------------ ##
9682 ## Report this to the AC_PACKAGE_NAME lists.  ##
9683 ## ------------------------------------------ ##
9684 _ASBOX
9685     ) |
9686       sed "s/^/$as_me: WARNING:     /" >&2
9687     ;;
9688 esac
9689 echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694   eval "$as_ac_Header=\$ac_header_preproc"
9695 fi
9696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9698
9699 fi
9700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9701   cat >>confdefs.h <<_ACEOF
9702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9703 _ACEOF
9704
9705 fi
9706
9707 done
9708
9709
9710 for ac_header in sys/syscall.h
9711 do
9712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714   echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717   echo $ECHO_N "(cached) $ECHO_C" >&6
9718 fi
9719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9721 else
9722   # Is the header compilable?
9723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731 $ac_includes_default
9732 #include <$ac_header>
9733 _ACEOF
9734 rm -f conftest.$ac_objext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736   (eval $ac_compile) 2>conftest.er1
9737   ac_status=$?
9738   grep -v '^ *+' conftest.er1 >conftest.err
9739   rm -f conftest.er1
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -z "$ac_c_werror_flag"
9744                          || test ! -s conftest.err'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; } &&
9750          { ac_try='test -s conftest.$ac_objext'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; }; then
9756   ac_header_compiler=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 ac_header_compiler=no
9762 fi
9763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9765 echo "${ECHO_T}$ac_header_compiler" >&6
9766
9767 # Is the header present?
9768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h.  */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h.  */
9776 #include <$ac_header>
9777 _ACEOF
9778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9780   ac_status=$?
9781   grep -v '^ *+' conftest.er1 >conftest.err
9782   rm -f conftest.er1
9783   cat conftest.err >&5
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } >/dev/null; then
9786   if test -s conftest.err; then
9787     ac_cpp_err=$ac_c_preproc_warn_flag
9788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9789   else
9790     ac_cpp_err=
9791   fi
9792 else
9793   ac_cpp_err=yes
9794 fi
9795 if test -z "$ac_cpp_err"; then
9796   ac_header_preproc=yes
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801   ac_header_preproc=no
9802 fi
9803 rm -f conftest.err conftest.$ac_ext
9804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9805 echo "${ECHO_T}$ac_header_preproc" >&6
9806
9807 # So?  What about this header?
9808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9809   yes:no: )
9810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9814     ac_header_preproc=yes
9815     ;;
9816   no:yes:* )
9817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9829     (
9830       cat <<\_ASBOX
9831 ## ------------------------------------------ ##
9832 ## Report this to the AC_PACKAGE_NAME lists.  ##
9833 ## ------------------------------------------ ##
9834 _ASBOX
9835     ) |
9836       sed "s/^/$as_me: WARNING:     /" >&2
9837     ;;
9838 esac
9839 echo "$as_me:$LINENO: checking for $ac_header" >&5
9840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   eval "$as_ac_Header=\$ac_header_preproc"
9845 fi
9846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9848
9849 fi
9850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9851   cat >>confdefs.h <<_ACEOF
9852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9853 _ACEOF
9854
9855 fi
9856
9857 done
9858
9859
9860 for ac_header in sys/types.h
9861 do
9862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9864   echo "$as_me:$LINENO: checking for $ac_header" >&5
9865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 fi
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9871 else
9872   # Is the header compilable?
9873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881 $ac_includes_default
9882 #include <$ac_header>
9883 _ACEOF
9884 rm -f conftest.$ac_objext
9885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886   (eval $ac_compile) 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } &&
9893          { ac_try='test -z "$ac_c_werror_flag"
9894                          || test ! -s conftest.err'
9895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896   (eval $ac_try) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; } &&
9900          { ac_try='test -s conftest.$ac_objext'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_header_compiler=yes
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ac_header_compiler=no
9912 fi
9913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9915 echo "${ECHO_T}$ac_header_compiler" >&6
9916
9917 # Is the header present?
9918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926 #include <$ac_header>
9927 _ACEOF
9928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9930   ac_status=$?
9931   grep -v '^ *+' conftest.er1 >conftest.err
9932   rm -f conftest.er1
9933   cat conftest.err >&5
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); } >/dev/null; then
9936   if test -s conftest.err; then
9937     ac_cpp_err=$ac_c_preproc_warn_flag
9938     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9939   else
9940     ac_cpp_err=
9941   fi
9942 else
9943   ac_cpp_err=yes
9944 fi
9945 if test -z "$ac_cpp_err"; then
9946   ac_header_preproc=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951   ac_header_preproc=no
9952 fi
9953 rm -f conftest.err conftest.$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9955 echo "${ECHO_T}$ac_header_preproc" >&6
9956
9957 # So?  What about this header?
9958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9959   yes:no: )
9960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9964     ac_header_preproc=yes
9965     ;;
9966   no:yes:* )
9967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9979     (
9980       cat <<\_ASBOX
9981 ## ------------------------------------------ ##
9982 ## Report this to the AC_PACKAGE_NAME lists.  ##
9983 ## ------------------------------------------ ##
9984 _ASBOX
9985     ) |
9986       sed "s/^/$as_me: WARNING:     /" >&2
9987     ;;
9988 esac
9989 echo "$as_me:$LINENO: checking for $ac_header" >&5
9990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   eval "$as_ac_Header=\$ac_header_preproc"
9995 fi
9996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9998
9999 fi
10000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10001   cat >>confdefs.h <<_ACEOF
10002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10003 _ACEOF
10004
10005 fi
10006
10007 done
10008
10009
10010 for ac_header in sys/user.h
10011 do
10012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10013 echo "$as_me:$LINENO: checking for $ac_header" >&5
10014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024 #if HAVE_SYS_PARAM_H
10025 # include <sys/param.h>
10026 #endif
10027
10028
10029 #include <$ac_header>
10030 _ACEOF
10031 rm -f conftest.$ac_objext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033   (eval $ac_compile) 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } &&
10040          { ac_try='test -z "$ac_c_werror_flag"
10041                          || test ! -s conftest.err'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; } &&
10047          { ac_try='test -s conftest.$ac_objext'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; }; then
10053   eval "$as_ac_Header=yes"
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 eval "$as_ac_Header=no"
10059 fi
10060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10061 fi
10062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10065   cat >>confdefs.h <<_ACEOF
10066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10067 _ACEOF
10068
10069 fi
10070
10071 done
10072
10073
10074
10075 for ac_header in sys/wait.h wait.h
10076 do
10077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10079   echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 fi
10084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10086 else
10087   # Is the header compilable?
10088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h.  */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h.  */
10096 $ac_includes_default
10097 #include <$ac_header>
10098 _ACEOF
10099 rm -f conftest.$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101   (eval $ac_compile) 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } &&
10108          { ac_try='test -z "$ac_c_werror_flag"
10109                          || test ! -s conftest.err'
10110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111   (eval $ac_try) 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); }; } &&
10115          { ac_try='test -s conftest.$ac_objext'
10116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117   (eval $ac_try) 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); }; }; then
10121   ac_header_compiler=yes
10122 else
10123   echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10125
10126 ac_header_compiler=no
10127 fi
10128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10130 echo "${ECHO_T}$ac_header_compiler" >&6
10131
10132 # Is the header present?
10133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h.  */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h.  */
10141 #include <$ac_header>
10142 _ACEOF
10143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } >/dev/null; then
10151   if test -s conftest.err; then
10152     ac_cpp_err=$ac_c_preproc_warn_flag
10153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10154   else
10155     ac_cpp_err=
10156   fi
10157 else
10158   ac_cpp_err=yes
10159 fi
10160 if test -z "$ac_cpp_err"; then
10161   ac_header_preproc=yes
10162 else
10163   echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166   ac_header_preproc=no
10167 fi
10168 rm -f conftest.err conftest.$ac_ext
10169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10170 echo "${ECHO_T}$ac_header_preproc" >&6
10171
10172 # So?  What about this header?
10173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10174   yes:no: )
10175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10179     ac_header_preproc=yes
10180     ;;
10181   no:yes:* )
10182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10194     (
10195       cat <<\_ASBOX
10196 ## ------------------------------------------ ##
10197 ## Report this to the AC_PACKAGE_NAME lists.  ##
10198 ## ------------------------------------------ ##
10199 _ASBOX
10200     ) |
10201       sed "s/^/$as_me: WARNING:     /" >&2
10202     ;;
10203 esac
10204 echo "$as_me:$LINENO: checking for $ac_header" >&5
10205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10207   echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209   eval "$as_ac_Header=\$ac_header_preproc"
10210 fi
10211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10213
10214 fi
10215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10216   cat >>confdefs.h <<_ACEOF
10217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10218 _ACEOF
10219
10220 fi
10221
10222 done
10223
10224
10225
10226
10227 for ac_header in termios.h termio.h sgtty.h
10228 do
10229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10231   echo "$as_me:$LINENO: checking for $ac_header" >&5
10232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10234   echo $ECHO_N "(cached) $ECHO_C" >&6
10235 fi
10236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10238 else
10239   # Is the header compilable?
10240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248 $ac_includes_default
10249 #include <$ac_header>
10250 _ACEOF
10251 rm -f conftest.$ac_objext
10252 if { (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
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 ac_header_compiler=no
10279 fi
10280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282 echo "${ECHO_T}$ac_header_compiler" >&6
10283
10284 # Is the header present?
10285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 #include <$ac_header>
10294 _ACEOF
10295 if { (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
10309 else
10310   ac_cpp_err=yes
10311 fi
10312 if test -z "$ac_cpp_err"; then
10313   ac_header_preproc=yes
10314 else
10315   echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318   ac_header_preproc=no
10319 fi
10320 rm -f conftest.err conftest.$ac_ext
10321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322 echo "${ECHO_T}$ac_header_preproc" >&6
10323
10324 # So?  What about this header?
10325 case $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
10328 echo "$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
10330 echo "$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
10335 echo "$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
10337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10339 echo "$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
10341 echo "$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
10343 echo "$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
10345 echo "$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     ;;
10355 esac
10356 echo "$as_me:$LINENO: checking for $ac_header" >&5
10357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10359   echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361   eval "$as_ac_Header=\$ac_header_preproc"
10362 fi
10363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10365
10366 fi
10367 if 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
10372 fi
10373
10374 done
10375
10376
10377 for ac_header in unistd.h
10378 do
10379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10381   echo "$as_me:$LINENO: checking for $ac_header" >&5
10382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 fi
10386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10388 else
10389   # Is the header compilable?
10390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398 $ac_includes_default
10399 #include <$ac_header>
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403   (eval $ac_compile) 2>conftest.er1
10404   ac_status=$?
10405   grep -v '^ *+' conftest.er1 >conftest.err
10406   rm -f conftest.er1
10407   cat conftest.err >&5
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); } &&
10410          { ac_try='test -z "$ac_c_werror_flag"
10411                          || test ! -s conftest.err'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; } &&
10417          { ac_try='test -s conftest.$ac_objext'
10418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419   (eval $ac_try) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); }; }; then
10423   ac_header_compiler=yes
10424 else
10425   echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10427
10428 ac_header_compiler=no
10429 fi
10430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10432 echo "${ECHO_T}$ac_header_compiler" >&6
10433
10434 # Is the header present?
10435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10437 cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443 #include <$ac_header>
10444 _ACEOF
10445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447   ac_status=$?
10448   grep -v '^ *+' conftest.er1 >conftest.err
10449   rm -f conftest.er1
10450   cat conftest.err >&5
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } >/dev/null; then
10453   if test -s conftest.err; then
10454     ac_cpp_err=$ac_c_preproc_warn_flag
10455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10456   else
10457     ac_cpp_err=
10458   fi
10459 else
10460   ac_cpp_err=yes
10461 fi
10462 if test -z "$ac_cpp_err"; then
10463   ac_header_preproc=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468   ac_header_preproc=no
10469 fi
10470 rm -f conftest.err conftest.$ac_ext
10471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10472 echo "${ECHO_T}$ac_header_preproc" >&6
10473
10474 # So?  What about this header?
10475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10476   yes:no: )
10477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10481     ac_header_preproc=yes
10482     ;;
10483   no:yes:* )
10484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10496     (
10497       cat <<\_ASBOX
10498 ## ------------------------------------------ ##
10499 ## Report this to the AC_PACKAGE_NAME lists.  ##
10500 ## ------------------------------------------ ##
10501 _ASBOX
10502     ) |
10503       sed "s/^/$as_me: WARNING:     /" >&2
10504     ;;
10505 esac
10506 echo "$as_me:$LINENO: checking for $ac_header" >&5
10507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10509   echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511   eval "$as_ac_Header=\$ac_header_preproc"
10512 fi
10513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10515
10516 fi
10517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10518   cat >>confdefs.h <<_ACEOF
10519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10520 _ACEOF
10521
10522 fi
10523
10524 done
10525
10526
10527 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10528 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10529 # think that we don't have <curses.h> if we're using GCC.
10530 case $host_os in
10531   solaris2.[789])
10532     if test "$GCC" = yes; then
10533
10534 cat >>confdefs.h <<\_ACEOF
10535 #define _MSE_INT_H 1
10536 _ACEOF
10537
10538     fi ;;
10539 esac
10540
10541
10542
10543
10544 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
10545 do
10546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10548   echo "$as_me:$LINENO: checking for $ac_header" >&5
10549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 fi
10553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10555 else
10556   # Is the header compilable?
10557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565 $ac_includes_default
10566 #include <$ac_header>
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10570   (eval $ac_compile) 2>conftest.er1
10571   ac_status=$?
10572   grep -v '^ *+' conftest.er1 >conftest.err
10573   rm -f conftest.er1
10574   cat conftest.err >&5
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); } &&
10577          { ac_try='test -z "$ac_c_werror_flag"
10578                          || test ! -s conftest.err'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; } &&
10584          { ac_try='test -s conftest.$ac_objext'
10585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586   (eval $ac_try) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; }; then
10590   ac_header_compiler=yes
10591 else
10592   echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 ac_header_compiler=no
10596 fi
10597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10599 echo "${ECHO_T}$ac_header_compiler" >&6
10600
10601 # Is the header present?
10602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10604 cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h.  */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h.  */
10610 #include <$ac_header>
10611 _ACEOF
10612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10614   ac_status=$?
10615   grep -v '^ *+' conftest.er1 >conftest.err
10616   rm -f conftest.er1
10617   cat conftest.err >&5
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } >/dev/null; then
10620   if test -s conftest.err; then
10621     ac_cpp_err=$ac_c_preproc_warn_flag
10622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10623   else
10624     ac_cpp_err=
10625   fi
10626 else
10627   ac_cpp_err=yes
10628 fi
10629 if test -z "$ac_cpp_err"; then
10630   ac_header_preproc=yes
10631 else
10632   echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635   ac_header_preproc=no
10636 fi
10637 rm -f conftest.err conftest.$ac_ext
10638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10639 echo "${ECHO_T}$ac_header_preproc" >&6
10640
10641 # So?  What about this header?
10642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10643   yes:no: )
10644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10648     ac_header_preproc=yes
10649     ;;
10650   no:yes:* )
10651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10663     (
10664       cat <<\_ASBOX
10665 ## ------------------------------------------ ##
10666 ## Report this to the AC_PACKAGE_NAME lists.  ##
10667 ## ------------------------------------------ ##
10668 _ASBOX
10669     ) |
10670       sed "s/^/$as_me: WARNING:     /" >&2
10671     ;;
10672 esac
10673 echo "$as_me:$LINENO: checking for $ac_header" >&5
10674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   eval "$as_ac_Header=\$ac_header_preproc"
10679 fi
10680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10682
10683 fi
10684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10685   cat >>confdefs.h <<_ACEOF
10686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10687 _ACEOF
10688
10689 fi
10690
10691 done
10692
10693
10694 for ac_header in ncurses/term.h
10695 do
10696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698   echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 fi
10703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10705 else
10706   # Is the header compilable?
10707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715 $ac_includes_default
10716 #include <$ac_header>
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720   (eval $ac_compile) 2>conftest.er1
10721   ac_status=$?
10722   grep -v '^ *+' conftest.er1 >conftest.err
10723   rm -f conftest.er1
10724   cat conftest.err >&5
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } &&
10727          { ac_try='test -z "$ac_c_werror_flag"
10728                          || test ! -s conftest.err'
10729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730   (eval $ac_try) 2>&5
10731   ac_status=$?
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); }; } &&
10734          { ac_try='test -s conftest.$ac_objext'
10735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736   (eval $ac_try) 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; }; then
10740   ac_header_compiler=yes
10741 else
10742   echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745 ac_header_compiler=no
10746 fi
10747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10749 echo "${ECHO_T}$ac_header_compiler" >&6
10750
10751 # Is the header present?
10752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h.  */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h.  */
10760 #include <$ac_header>
10761 _ACEOF
10762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10764   ac_status=$?
10765   grep -v '^ *+' conftest.er1 >conftest.err
10766   rm -f conftest.er1
10767   cat conftest.err >&5
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } >/dev/null; then
10770   if test -s conftest.err; then
10771     ac_cpp_err=$ac_c_preproc_warn_flag
10772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10773   else
10774     ac_cpp_err=
10775   fi
10776 else
10777   ac_cpp_err=yes
10778 fi
10779 if test -z "$ac_cpp_err"; then
10780   ac_header_preproc=yes
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785   ac_header_preproc=no
10786 fi
10787 rm -f conftest.err conftest.$ac_ext
10788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6
10790
10791 # So?  What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10793   yes:no: )
10794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798     ac_header_preproc=yes
10799     ;;
10800   no:yes:* )
10801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10813     (
10814       cat <<\_ASBOX
10815 ## ------------------------------------------ ##
10816 ## Report this to the AC_PACKAGE_NAME lists.  ##
10817 ## ------------------------------------------ ##
10818 _ASBOX
10819     ) |
10820       sed "s/^/$as_me: WARNING:     /" >&2
10821     ;;
10822 esac
10823 echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   eval "$as_ac_Header=\$ac_header_preproc"
10829 fi
10830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10832
10833 fi
10834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10835   cat >>confdefs.h <<_ACEOF
10836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837 _ACEOF
10838
10839 fi
10840
10841 done
10842
10843
10844 for ac_header in term.h
10845 do
10846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10847 echo "$as_me:$LINENO: checking for $ac_header" >&5
10848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858 #if HAVE_CURSES_H
10859 # include <curses.h>
10860 #endif
10861
10862
10863 #include <$ac_header>
10864 _ACEOF
10865 rm -f conftest.$ac_objext
10866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10867   (eval $ac_compile) 2>conftest.er1
10868   ac_status=$?
10869   grep -v '^ *+' conftest.er1 >conftest.err
10870   rm -f conftest.er1
10871   cat conftest.err >&5
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); } &&
10874          { ac_try='test -z "$ac_c_werror_flag"
10875                          || test ! -s conftest.err'
10876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877   (eval $ac_try) 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); }; } &&
10881          { ac_try='test -s conftest.$ac_objext'
10882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883   (eval $ac_try) 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   eval "$as_ac_Header=yes"
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 eval "$as_ac_Header=no"
10893 fi
10894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10895 fi
10896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899   cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 _ACEOF
10902
10903 fi
10904
10905 done
10906
10907
10908 # FIXME: kettenis/20030102: In most cases we include these
10909 # unconditionally, so what's the point in checking these?
10910
10911
10912 for ac_header in ctype.h time.h
10913 do
10914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916   echo "$as_me:$LINENO: checking for $ac_header" >&5
10917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 fi
10921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10923 else
10924   # Is the header compilable?
10925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h.  */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h.  */
10933 $ac_includes_default
10934 #include <$ac_header>
10935 _ACEOF
10936 rm -f conftest.$ac_objext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938   (eval $ac_compile) 2>conftest.er1
10939   ac_status=$?
10940   grep -v '^ *+' conftest.er1 >conftest.err
10941   rm -f conftest.er1
10942   cat conftest.err >&5
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); } &&
10945          { ac_try='test -z "$ac_c_werror_flag"
10946                          || test ! -s conftest.err'
10947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948   (eval $ac_try) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; } &&
10952          { ac_try='test -s conftest.$ac_objext'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; }; then
10958   ac_header_compiler=yes
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963 ac_header_compiler=no
10964 fi
10965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10967 echo "${ECHO_T}$ac_header_compiler" >&6
10968
10969 # Is the header present?
10970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10972 cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h.  */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h.  */
10978 #include <$ac_header>
10979 _ACEOF
10980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10982   ac_status=$?
10983   grep -v '^ *+' conftest.er1 >conftest.err
10984   rm -f conftest.er1
10985   cat conftest.err >&5
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } >/dev/null; then
10988   if test -s conftest.err; then
10989     ac_cpp_err=$ac_c_preproc_warn_flag
10990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10991   else
10992     ac_cpp_err=
10993   fi
10994 else
10995   ac_cpp_err=yes
10996 fi
10997 if test -z "$ac_cpp_err"; then
10998   ac_header_preproc=yes
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003   ac_header_preproc=no
11004 fi
11005 rm -f conftest.err conftest.$ac_ext
11006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11007 echo "${ECHO_T}$ac_header_preproc" >&6
11008
11009 # So?  What about this header?
11010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11011   yes:no: )
11012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11016     ac_header_preproc=yes
11017     ;;
11018   no:yes:* )
11019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11031     (
11032       cat <<\_ASBOX
11033 ## ------------------------------------------ ##
11034 ## Report this to the AC_PACKAGE_NAME lists.  ##
11035 ## ------------------------------------------ ##
11036 _ASBOX
11037     ) |
11038       sed "s/^/$as_me: WARNING:     /" >&2
11039     ;;
11040 esac
11041 echo "$as_me:$LINENO: checking for $ac_header" >&5
11042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   eval "$as_ac_Header=\$ac_header_preproc"
11047 fi
11048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11050
11051 fi
11052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11053   cat >>confdefs.h <<_ACEOF
11054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11055 _ACEOF
11056
11057 fi
11058
11059 done
11060
11061
11062 # Create a header we can use portably to get the standard integer types.
11063
11064
11065 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
11066
11067 acx_cv_header_stdint=stddef.h
11068 acx_cv_header_stdint_kind="(already complete)"
11069 for i in stdint.h $inttype_headers; do
11070   unset ac_cv_type_uintptr_t
11071   unset ac_cv_type_uintmax_t
11072   unset ac_cv_type_int_least32_t
11073   unset ac_cv_type_int_fast32_t
11074   unset ac_cv_type_uint64_t
11075   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
11076   echo "$as_me:$LINENO: checking for uintmax_t" >&5
11077 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11078 if test "${ac_cv_type_uintmax_t+set}" = set; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h.  */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h.  */
11087 #include <sys/types.h>
11088 #include <$i>
11089
11090 int
11091 main ()
11092 {
11093 if ((uintmax_t *) 0)
11094   return 0;
11095 if (sizeof (uintmax_t))
11096   return 0;
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103   (eval $ac_compile) 2>conftest.er1
11104   ac_status=$?
11105   grep -v '^ *+' conftest.er1 >conftest.err
11106   rm -f conftest.er1
11107   cat conftest.err >&5
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } &&
11110          { ac_try='test -z "$ac_c_werror_flag"
11111                          || test ! -s conftest.err'
11112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113   (eval $ac_try) 2>&5
11114   ac_status=$?
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); }; } &&
11117          { ac_try='test -s conftest.$ac_objext'
11118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119   (eval $ac_try) 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); }; }; then
11123   ac_cv_type_uintmax_t=yes
11124 else
11125   echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11127
11128 ac_cv_type_uintmax_t=no
11129 fi
11130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11131 fi
11132 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11133 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11134 if test $ac_cv_type_uintmax_t = yes; then
11135   acx_cv_header_stdint=$i
11136 else
11137   continue
11138 fi
11139
11140   echo "$as_me:$LINENO: checking for uintptr_t" >&5
11141 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11142 if test "${ac_cv_type_uintptr_t+set}" = set; then
11143   echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145   cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h.  */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h.  */
11151 #include <sys/types.h>
11152 #include <$i>
11153
11154 int
11155 main ()
11156 {
11157 if ((uintptr_t *) 0)
11158   return 0;
11159 if (sizeof (uintptr_t))
11160   return 0;
11161   ;
11162   return 0;
11163 }
11164 _ACEOF
11165 rm -f conftest.$ac_objext
11166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11167   (eval $ac_compile) 2>conftest.er1
11168   ac_status=$?
11169   grep -v '^ *+' conftest.er1 >conftest.err
11170   rm -f conftest.er1
11171   cat conftest.err >&5
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); } &&
11174          { ac_try='test -z "$ac_c_werror_flag"
11175                          || test ! -s conftest.err'
11176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177   (eval $ac_try) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; } &&
11181          { ac_try='test -s conftest.$ac_objext'
11182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183   (eval $ac_try) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; }; then
11187   ac_cv_type_uintptr_t=yes
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 ac_cv_type_uintptr_t=no
11193 fi
11194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11195 fi
11196 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11197 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11198 if test $ac_cv_type_uintptr_t = yes; then
11199   :
11200 else
11201   acx_cv_header_stdint_kind="(mostly complete)"
11202 fi
11203
11204   echo "$as_me:$LINENO: checking for int_least32_t" >&5
11205 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11206 if test "${ac_cv_type_int_least32_t+set}" = set; then
11207   echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209   cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h.  */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h.  */
11215 #include <sys/types.h>
11216 #include <$i>
11217
11218 int
11219 main ()
11220 {
11221 if ((int_least32_t *) 0)
11222   return 0;
11223 if (sizeof (int_least32_t))
11224   return 0;
11225   ;
11226   return 0;
11227 }
11228 _ACEOF
11229 rm -f conftest.$ac_objext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231   (eval $ac_compile) 2>conftest.er1
11232   ac_status=$?
11233   grep -v '^ *+' conftest.er1 >conftest.err
11234   rm -f conftest.er1
11235   cat conftest.err >&5
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); } &&
11238          { ac_try='test -z "$ac_c_werror_flag"
11239                          || test ! -s conftest.err'
11240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241   (eval $ac_try) 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); }; } &&
11245          { ac_try='test -s conftest.$ac_objext'
11246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247   (eval $ac_try) 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); }; }; then
11251   ac_cv_type_int_least32_t=yes
11252 else
11253   echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256 ac_cv_type_int_least32_t=no
11257 fi
11258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11259 fi
11260 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11261 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11262 if test $ac_cv_type_int_least32_t = yes; then
11263   :
11264 else
11265   acx_cv_header_stdint_kind="(mostly complete)"
11266 fi
11267
11268   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11269 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11270 if test "${ac_cv_type_int_fast32_t+set}" = set; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273   cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h.  */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h.  */
11279 #include <sys/types.h>
11280 #include <$i>
11281
11282 int
11283 main ()
11284 {
11285 if ((int_fast32_t *) 0)
11286   return 0;
11287 if (sizeof (int_fast32_t))
11288   return 0;
11289   ;
11290   return 0;
11291 }
11292 _ACEOF
11293 rm -f conftest.$ac_objext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295   (eval $ac_compile) 2>conftest.er1
11296   ac_status=$?
11297   grep -v '^ *+' conftest.er1 >conftest.err
11298   rm -f conftest.er1
11299   cat conftest.err >&5
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } &&
11302          { ac_try='test -z "$ac_c_werror_flag"
11303                          || test ! -s conftest.err'
11304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305   (eval $ac_try) 2>&5
11306   ac_status=$?
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); }; } &&
11309          { ac_try='test -s conftest.$ac_objext'
11310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311   (eval $ac_try) 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; }; then
11315   ac_cv_type_int_fast32_t=yes
11316 else
11317   echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11319
11320 ac_cv_type_int_fast32_t=no
11321 fi
11322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11323 fi
11324 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11325 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
11326 if test $ac_cv_type_int_fast32_t = yes; then
11327   :
11328 else
11329   acx_cv_header_stdint_kind="(mostly complete)"
11330 fi
11331
11332   echo "$as_me:$LINENO: checking for uint64_t" >&5
11333 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11334 if test "${ac_cv_type_uint64_t+set}" = set; then
11335   echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337   cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343 #include <sys/types.h>
11344 #include <$i>
11345
11346 int
11347 main ()
11348 {
11349 if ((uint64_t *) 0)
11350   return 0;
11351 if (sizeof (uint64_t))
11352   return 0;
11353   ;
11354   return 0;
11355 }
11356 _ACEOF
11357 rm -f conftest.$ac_objext
11358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359   (eval $ac_compile) 2>conftest.er1
11360   ac_status=$?
11361   grep -v '^ *+' conftest.er1 >conftest.err
11362   rm -f conftest.er1
11363   cat conftest.err >&5
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); } &&
11366          { ac_try='test -z "$ac_c_werror_flag"
11367                          || test ! -s conftest.err'
11368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369   (eval $ac_try) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); }; } &&
11373          { ac_try='test -s conftest.$ac_objext'
11374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375   (eval $ac_try) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; }; then
11379   ac_cv_type_uint64_t=yes
11380 else
11381   echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384 ac_cv_type_uint64_t=no
11385 fi
11386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11387 fi
11388 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11389 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11390 if test $ac_cv_type_uint64_t = yes; then
11391   :
11392 else
11393   acx_cv_header_stdint_kind="(lacks uint64_t)"
11394 fi
11395
11396   break
11397 done
11398 if test "$acx_cv_header_stdint" = stddef.h; then
11399   acx_cv_header_stdint_kind="(lacks uintmax_t)"
11400   for i in stdint.h $inttype_headers; do
11401     unset ac_cv_type_uintptr_t
11402     unset ac_cv_type_uint32_t
11403     unset ac_cv_type_uint64_t
11404     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
11405     echo "$as_me:$LINENO: checking for uint32_t" >&5
11406 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11407 if test "${ac_cv_type_uint32_t+set}" = set; then
11408   echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410   cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 #include <sys/types.h>
11417 #include <$i>
11418
11419 int
11420 main ()
11421 {
11422 if ((uint32_t *) 0)
11423   return 0;
11424 if (sizeof (uint32_t))
11425   return 0;
11426   ;
11427   return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11432   (eval $ac_compile) 2>conftest.er1
11433   ac_status=$?
11434   grep -v '^ *+' conftest.er1 >conftest.err
11435   rm -f conftest.er1
11436   cat conftest.err >&5
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); } &&
11439          { ac_try='test -z "$ac_c_werror_flag"
11440                          || test ! -s conftest.err'
11441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442   (eval $ac_try) 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }; } &&
11446          { ac_try='test -s conftest.$ac_objext'
11447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448   (eval $ac_try) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; }; then
11452   ac_cv_type_uint32_t=yes
11453 else
11454   echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11456
11457 ac_cv_type_uint32_t=no
11458 fi
11459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11460 fi
11461 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11462 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11463 if test $ac_cv_type_uint32_t = yes; then
11464   acx_cv_header_stdint=$i
11465 else
11466   continue
11467 fi
11468
11469     echo "$as_me:$LINENO: checking for uint64_t" >&5
11470 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11471 if test "${ac_cv_type_uint64_t+set}" = set; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474   cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 #include <sys/types.h>
11481 #include <$i>
11482
11483 int
11484 main ()
11485 {
11486 if ((uint64_t *) 0)
11487   return 0;
11488 if (sizeof (uint64_t))
11489   return 0;
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11496   (eval $ac_compile) 2>conftest.er1
11497   ac_status=$?
11498   grep -v '^ *+' conftest.er1 >conftest.err
11499   rm -f conftest.er1
11500   cat conftest.err >&5
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); } &&
11503          { ac_try='test -z "$ac_c_werror_flag"
11504                          || test ! -s conftest.err'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; } &&
11510          { ac_try='test -s conftest.$ac_objext'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   ac_cv_type_uint64_t=yes
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521 ac_cv_type_uint64_t=no
11522 fi
11523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11524 fi
11525 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11526 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11527
11528     echo "$as_me:$LINENO: checking for uintptr_t" >&5
11529 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11530 if test "${ac_cv_type_uintptr_t+set}" = set; then
11531   echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533   cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 #include <sys/types.h>
11540 #include <$i>
11541
11542 int
11543 main ()
11544 {
11545 if ((uintptr_t *) 0)
11546   return 0;
11547 if (sizeof (uintptr_t))
11548   return 0;
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 rm -f conftest.$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555   (eval $ac_compile) 2>conftest.er1
11556   ac_status=$?
11557   grep -v '^ *+' conftest.er1 >conftest.err
11558   rm -f conftest.er1
11559   cat conftest.err >&5
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } &&
11562          { ac_try='test -z "$ac_c_werror_flag"
11563                          || test ! -s conftest.err'
11564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565   (eval $ac_try) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; } &&
11569          { ac_try='test -s conftest.$ac_objext'
11570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571   (eval $ac_try) 2>&5
11572   ac_status=$?
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); }; }; then
11575   ac_cv_type_uintptr_t=yes
11576 else
11577   echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580 ac_cv_type_uintptr_t=no
11581 fi
11582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11583 fi
11584 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11585 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11586
11587     break
11588   done
11589 fi
11590 if test "$acx_cv_header_stdint" = stddef.h; then
11591   acx_cv_header_stdint_kind="(u_intXX_t style)"
11592   for i in sys/types.h $inttype_headers; do
11593     unset ac_cv_type_u_int32_t
11594     unset ac_cv_type_u_int64_t
11595     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
11596     echo "$as_me:$LINENO: checking for u_int32_t" >&5
11597 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11598 if test "${ac_cv_type_u_int32_t+set}" = set; then
11599   echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601   cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 #include <sys/types.h>
11608 #include <$i>
11609
11610 int
11611 main ()
11612 {
11613 if ((u_int32_t *) 0)
11614   return 0;
11615 if (sizeof (u_int32_t))
11616   return 0;
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623   (eval $ac_compile) 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -z "$ac_c_werror_flag"
11631                          || test ! -s conftest.err'
11632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633   (eval $ac_try) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; } &&
11637          { ac_try='test -s conftest.$ac_objext'
11638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639   (eval $ac_try) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); }; }; then
11643   ac_cv_type_u_int32_t=yes
11644 else
11645   echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_cv_type_u_int32_t=no
11649 fi
11650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11651 fi
11652 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11653 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11654 if test $ac_cv_type_u_int32_t = yes; then
11655   acx_cv_header_stdint=$i
11656 else
11657   continue
11658 fi
11659
11660     echo "$as_me:$LINENO: checking for u_int64_t" >&5
11661 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
11662 if test "${ac_cv_type_u_int64_t+set}" = set; then
11663   echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665   cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h.  */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h.  */
11671 #include <sys/types.h>
11672 #include <$i>
11673
11674 int
11675 main ()
11676 {
11677 if ((u_int64_t *) 0)
11678   return 0;
11679 if (sizeof (u_int64_t))
11680   return 0;
11681   ;
11682   return 0;
11683 }
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687   (eval $ac_compile) 2>conftest.er1
11688   ac_status=$?
11689   grep -v '^ *+' conftest.er1 >conftest.err
11690   rm -f conftest.er1
11691   cat conftest.err >&5
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } &&
11694          { ac_try='test -z "$ac_c_werror_flag"
11695                          || test ! -s conftest.err'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; } &&
11701          { ac_try='test -s conftest.$ac_objext'
11702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703   (eval $ac_try) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); }; }; then
11707   ac_cv_type_u_int64_t=yes
11708 else
11709   echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_cv_type_u_int64_t=no
11713 fi
11714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715 fi
11716 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11717 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
11718
11719     break
11720   done
11721 fi
11722 if test "$acx_cv_header_stdint" = stddef.h; then
11723   acx_cv_header_stdint_kind="(using manual detection)"
11724 fi
11725
11726 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11727 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11728 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11729 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11730 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11731
11732 # ----------------- Summarize what we found so far
11733
11734 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
11735 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
11736
11737 case `$as_basename gdb_stdint.h ||
11738 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
11739          Xgdb_stdint.h : 'X\(//\)$' \| \
11740          Xgdb_stdint.h : 'X\(/\)$' \| \
11741          .     : '\(.\)' 2>/dev/null ||
11742 echo X/gdb_stdint.h |
11743     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11744           /^X\/\(\/\/\)$/{ s//\1/; q; }
11745           /^X\/\(\/\).*/{ s//\1/; q; }
11746           s/.*/./; q'` in
11747   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11748 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11749   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11750 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11751   *) ;;
11752 esac
11753
11754 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11755 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
11756
11757 # ----------------- done included file, check C basic types --------
11758
11759 # Lacking an uintptr_t?  Test size of void *
11760 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11761   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
11762 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11763 if test "${ac_cv_type_void_p+set}" = set; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766   cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h.  */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h.  */
11772 $ac_includes_default
11773 int
11774 main ()
11775 {
11776 if ((void * *) 0)
11777   return 0;
11778 if (sizeof (void *))
11779   return 0;
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786   (eval $ac_compile) 2>conftest.er1
11787   ac_status=$?
11788   grep -v '^ *+' conftest.er1 >conftest.err
11789   rm -f conftest.er1
11790   cat conftest.err >&5
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } &&
11793          { ac_try='test -z "$ac_c_werror_flag"
11794                          || test ! -s conftest.err'
11795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796   (eval $ac_try) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; } &&
11800          { ac_try='test -s conftest.$ac_objext'
11801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802   (eval $ac_try) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; }; then
11806   ac_cv_type_void_p=yes
11807 else
11808   echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11810
11811 ac_cv_type_void_p=no
11812 fi
11813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814 fi
11815 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11816 echo "${ECHO_T}$ac_cv_type_void_p" >&6
11817
11818 echo "$as_me:$LINENO: checking size of void *" >&5
11819 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11820 if test "${ac_cv_sizeof_void_p+set}" = set; then
11821   echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823   if test "$ac_cv_type_void_p" = yes; then
11824   # The cast to unsigned long works around a bug in the HP C Compiler
11825   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11826   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11827   # This bug is HP SR number 8606223364.
11828   if test "$cross_compiling" = yes; then
11829   # Depending upon the size, compute the lo and hi bounds.
11830 cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h.  */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h.  */
11836 $ac_includes_default
11837 int
11838 main ()
11839 {
11840 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11841 test_array [0] = 0
11842
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849   (eval $ac_compile) 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } &&
11856          { ac_try='test -z "$ac_c_werror_flag"
11857                          || test ! -s conftest.err'
11858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859   (eval $ac_try) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }; } &&
11863          { ac_try='test -s conftest.$ac_objext'
11864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865   (eval $ac_try) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; }; then
11869   ac_lo=0 ac_mid=0
11870   while :; do
11871     cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h.  */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h.  */
11877 $ac_includes_default
11878 int
11879 main ()
11880 {
11881 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11882 test_array [0] = 0
11883
11884   ;
11885   return 0;
11886 }
11887 _ACEOF
11888 rm -f conftest.$ac_objext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890   (eval $ac_compile) 2>conftest.er1
11891   ac_status=$?
11892   grep -v '^ *+' conftest.er1 >conftest.err
11893   rm -f conftest.er1
11894   cat conftest.err >&5
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); } &&
11897          { ac_try='test -z "$ac_c_werror_flag"
11898                          || test ! -s conftest.err'
11899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900   (eval $ac_try) 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); }; } &&
11904          { ac_try='test -s conftest.$ac_objext'
11905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906   (eval $ac_try) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); }; }; then
11910   ac_hi=$ac_mid; break
11911 else
11912   echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 ac_lo=`expr $ac_mid + 1`
11916                     if test $ac_lo -le $ac_mid; then
11917                       ac_lo= ac_hi=
11918                       break
11919                     fi
11920                     ac_mid=`expr 2 '*' $ac_mid + 1`
11921 fi
11922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11923   done
11924 else
11925   echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h.  */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h.  */
11934 $ac_includes_default
11935 int
11936 main ()
11937 {
11938 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11939 test_array [0] = 0
11940
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 rm -f conftest.$ac_objext
11946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11947   (eval $ac_compile) 2>conftest.er1
11948   ac_status=$?
11949   grep -v '^ *+' conftest.er1 >conftest.err
11950   rm -f conftest.er1
11951   cat conftest.err >&5
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); } &&
11954          { ac_try='test -z "$ac_c_werror_flag"
11955                          || test ! -s conftest.err'
11956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957   (eval $ac_try) 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); }; } &&
11961          { ac_try='test -s conftest.$ac_objext'
11962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963   (eval $ac_try) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; }; then
11967   ac_hi=-1 ac_mid=-1
11968   while :; do
11969     cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h.  */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h.  */
11975 $ac_includes_default
11976 int
11977 main ()
11978 {
11979 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11980 test_array [0] = 0
11981
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11988   (eval $ac_compile) 2>conftest.er1
11989   ac_status=$?
11990   grep -v '^ *+' conftest.er1 >conftest.err
11991   rm -f conftest.er1
11992   cat conftest.err >&5
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); } &&
11995          { ac_try='test -z "$ac_c_werror_flag"
11996                          || test ! -s conftest.err'
11997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998   (eval $ac_try) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; } &&
12002          { ac_try='test -s conftest.$ac_objext'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; }; then
12008   ac_lo=$ac_mid; break
12009 else
12010   echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 ac_hi=`expr '(' $ac_mid ')' - 1`
12014                        if test $ac_mid -le $ac_hi; then
12015                          ac_lo= ac_hi=
12016                          break
12017                        fi
12018                        ac_mid=`expr 2 '*' $ac_mid`
12019 fi
12020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12021   done
12022 else
12023   echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026 ac_lo= ac_hi=
12027 fi
12028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12029 fi
12030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12031 # Binary search between lo and hi bounds.
12032 while test "x$ac_lo" != "x$ac_hi"; do
12033   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12034   cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040 $ac_includes_default
12041 int
12042 main ()
12043 {
12044 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12045 test_array [0] = 0
12046
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053   (eval $ac_compile) 2>conftest.er1
12054   ac_status=$?
12055   grep -v '^ *+' conftest.er1 >conftest.err
12056   rm -f conftest.er1
12057   cat conftest.err >&5
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } &&
12060          { ac_try='test -z "$ac_c_werror_flag"
12061                          || test ! -s conftest.err'
12062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063   (eval $ac_try) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; } &&
12067          { ac_try='test -s conftest.$ac_objext'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   ac_hi=$ac_mid
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 ac_lo=`expr '(' $ac_mid ')' + 1`
12079 fi
12080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081 done
12082 case $ac_lo in
12083 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12084 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12085 See \`config.log' for more details." >&5
12086 echo "$as_me: error: cannot compute sizeof (void *), 77
12087 See \`config.log' for more details." >&2;}
12088    { (exit 1); exit 1; }; } ;;
12089 esac
12090 else
12091   if test "$cross_compiling" = yes; then
12092   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12093 See \`config.log' for more details." >&5
12094 echo "$as_me: error: cannot run test program while cross compiling
12095 See \`config.log' for more details." >&2;}
12096    { (exit 1); exit 1; }; }
12097 else
12098   cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104 $ac_includes_default
12105 long longval () { return (long) (sizeof (void *)); }
12106 unsigned long ulongval () { return (long) (sizeof (void *)); }
12107 #include <stdio.h>
12108 #include <stdlib.h>
12109 int
12110 main ()
12111 {
12112
12113   FILE *f = fopen ("conftest.val", "w");
12114   if (! f)
12115     exit (1);
12116   if (((long) (sizeof (void *))) < 0)
12117     {
12118       long i = longval ();
12119       if (i != ((long) (sizeof (void *))))
12120         exit (1);
12121       fprintf (f, "%ld\n", i);
12122     }
12123   else
12124     {
12125       unsigned long i = ulongval ();
12126       if (i != ((long) (sizeof (void *))))
12127         exit (1);
12128       fprintf (f, "%lu\n", i);
12129     }
12130   exit (ferror (f) || fclose (f) != 0);
12131
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138   (eval $ac_link) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_sizeof_void_p=`cat conftest.val`
12148 else
12149   echo "$as_me: program exited with status $ac_status" >&5
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 ( exit $ac_status )
12154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12155 See \`config.log' for more details." >&5
12156 echo "$as_me: error: cannot compute sizeof (void *), 77
12157 See \`config.log' for more details." >&2;}
12158    { (exit 1); exit 1; }; }
12159 fi
12160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12161 fi
12162 fi
12163 rm -f conftest.val
12164 else
12165   ac_cv_sizeof_void_p=0
12166 fi
12167 fi
12168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12169 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12170 cat >>confdefs.h <<_ACEOF
12171 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12172 _ACEOF
12173
12174  ;;
12175 esac
12176
12177 # Lacking an uint64_t?  Test size of long
12178 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12179   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12180 echo $ECHO_N "checking for long... $ECHO_C" >&6
12181 if test "${ac_cv_type_long+set}" = set; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184   cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190 $ac_includes_default
12191 int
12192 main ()
12193 {
12194 if ((long *) 0)
12195   return 0;
12196 if (sizeof (long))
12197   return 0;
12198   ;
12199   return 0;
12200 }
12201 _ACEOF
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204   (eval $ac_compile) 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } &&
12211          { ac_try='test -z "$ac_c_werror_flag"
12212                          || test ! -s conftest.err'
12213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214   (eval $ac_try) 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; } &&
12218          { ac_try='test -s conftest.$ac_objext'
12219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220   (eval $ac_try) 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; }; then
12224   ac_cv_type_long=yes
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 ac_cv_type_long=no
12230 fi
12231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232 fi
12233 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12234 echo "${ECHO_T}$ac_cv_type_long" >&6
12235
12236 echo "$as_me:$LINENO: checking size of long" >&5
12237 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12238 if test "${ac_cv_sizeof_long+set}" = set; then
12239   echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241   if test "$ac_cv_type_long" = yes; then
12242   # The cast to unsigned long works around a bug in the HP C Compiler
12243   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12244   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12245   # This bug is HP SR number 8606223364.
12246   if test "$cross_compiling" = yes; then
12247   # Depending upon the size, compute the lo and hi bounds.
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h.  */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h.  */
12254 $ac_includes_default
12255 int
12256 main ()
12257 {
12258 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12259 test_array [0] = 0
12260
12261   ;
12262   return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267   (eval $ac_compile) 2>conftest.er1
12268   ac_status=$?
12269   grep -v '^ *+' conftest.er1 >conftest.err
12270   rm -f conftest.er1
12271   cat conftest.err >&5
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -z "$ac_c_werror_flag"
12275                          || test ! -s conftest.err'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; } &&
12281          { ac_try='test -s conftest.$ac_objext'
12282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283   (eval $ac_try) 2>&5
12284   ac_status=$?
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); }; }; then
12287   ac_lo=0 ac_mid=0
12288   while :; do
12289     cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h.  */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h.  */
12295 $ac_includes_default
12296 int
12297 main ()
12298 {
12299 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12300 test_array [0] = 0
12301
12302   ;
12303   return 0;
12304 }
12305 _ACEOF
12306 rm -f conftest.$ac_objext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12308   (eval $ac_compile) 2>conftest.er1
12309   ac_status=$?
12310   grep -v '^ *+' conftest.er1 >conftest.err
12311   rm -f conftest.er1
12312   cat conftest.err >&5
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } &&
12315          { ac_try='test -z "$ac_c_werror_flag"
12316                          || test ! -s conftest.err'
12317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318   (eval $ac_try) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; } &&
12322          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12328   ac_hi=$ac_mid; break
12329 else
12330   echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12332
12333 ac_lo=`expr $ac_mid + 1`
12334                     if test $ac_lo -le $ac_mid; then
12335                       ac_lo= ac_hi=
12336                       break
12337                     fi
12338                     ac_mid=`expr 2 '*' $ac_mid + 1`
12339 fi
12340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341   done
12342 else
12343   echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352 $ac_includes_default
12353 int
12354 main ()
12355 {
12356 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12357 test_array [0] = 0
12358
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365   (eval $ac_compile) 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } &&
12372          { ac_try='test -z "$ac_c_werror_flag"
12373                          || test ! -s conftest.err'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; } &&
12379          { ac_try='test -s conftest.$ac_objext'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; }; then
12385   ac_hi=-1 ac_mid=-1
12386   while :; do
12387     cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393 $ac_includes_default
12394 int
12395 main ()
12396 {
12397 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12398 test_array [0] = 0
12399
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 rm -f conftest.$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406   (eval $ac_compile) 2>conftest.er1
12407   ac_status=$?
12408   grep -v '^ *+' conftest.er1 >conftest.err
12409   rm -f conftest.er1
12410   cat conftest.err >&5
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); } &&
12413          { ac_try='test -z "$ac_c_werror_flag"
12414                          || test ! -s conftest.err'
12415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416   (eval $ac_try) 2>&5
12417   ac_status=$?
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); }; } &&
12420          { ac_try='test -s conftest.$ac_objext'
12421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422   (eval $ac_try) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); }; }; then
12426   ac_lo=$ac_mid; break
12427 else
12428   echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12430
12431 ac_hi=`expr '(' $ac_mid ')' - 1`
12432                        if test $ac_mid -le $ac_hi; then
12433                          ac_lo= ac_hi=
12434                          break
12435                        fi
12436                        ac_mid=`expr 2 '*' $ac_mid`
12437 fi
12438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439   done
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 ac_lo= ac_hi=
12445 fi
12446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12447 fi
12448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12449 # Binary search between lo and hi bounds.
12450 while test "x$ac_lo" != "x$ac_hi"; do
12451   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12452   cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h.  */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h.  */
12458 $ac_includes_default
12459 int
12460 main ()
12461 {
12462 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12463 test_array [0] = 0
12464
12465   ;
12466   return 0;
12467 }
12468 _ACEOF
12469 rm -f conftest.$ac_objext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471   (eval $ac_compile) 2>conftest.er1
12472   ac_status=$?
12473   grep -v '^ *+' conftest.er1 >conftest.err
12474   rm -f conftest.er1
12475   cat conftest.err >&5
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } &&
12478          { ac_try='test -z "$ac_c_werror_flag"
12479                          || test ! -s conftest.err'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; } &&
12485          { ac_try='test -s conftest.$ac_objext'
12486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487   (eval $ac_try) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; }; then
12491   ac_hi=$ac_mid
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496 ac_lo=`expr '(' $ac_mid ')' + 1`
12497 fi
12498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12499 done
12500 case $ac_lo in
12501 ?*) ac_cv_sizeof_long=$ac_lo;;
12502 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12503 See \`config.log' for more details." >&5
12504 echo "$as_me: error: cannot compute sizeof (long), 77
12505 See \`config.log' for more details." >&2;}
12506    { (exit 1); exit 1; }; } ;;
12507 esac
12508 else
12509   if test "$cross_compiling" = yes; then
12510   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12511 See \`config.log' for more details." >&5
12512 echo "$as_me: error: cannot run test program while cross compiling
12513 See \`config.log' for more details." >&2;}
12514    { (exit 1); exit 1; }; }
12515 else
12516   cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h.  */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h.  */
12522 $ac_includes_default
12523 long longval () { return (long) (sizeof (long)); }
12524 unsigned long ulongval () { return (long) (sizeof (long)); }
12525 #include <stdio.h>
12526 #include <stdlib.h>
12527 int
12528 main ()
12529 {
12530
12531   FILE *f = fopen ("conftest.val", "w");
12532   if (! f)
12533     exit (1);
12534   if (((long) (sizeof (long))) < 0)
12535     {
12536       long i = longval ();
12537       if (i != ((long) (sizeof (long))))
12538         exit (1);
12539       fprintf (f, "%ld\n", i);
12540     }
12541   else
12542     {
12543       unsigned long i = ulongval ();
12544       if (i != ((long) (sizeof (long))))
12545         exit (1);
12546       fprintf (f, "%lu\n", i);
12547     }
12548   exit (ferror (f) || fclose (f) != 0);
12549
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556   (eval $ac_link) 2>&5
12557   ac_status=$?
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561   (eval $ac_try) 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; }; then
12565   ac_cv_sizeof_long=`cat conftest.val`
12566 else
12567   echo "$as_me: program exited with status $ac_status" >&5
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571 ( exit $ac_status )
12572 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12573 See \`config.log' for more details." >&5
12574 echo "$as_me: error: cannot compute sizeof (long), 77
12575 See \`config.log' for more details." >&2;}
12576    { (exit 1); exit 1; }; }
12577 fi
12578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12579 fi
12580 fi
12581 rm -f conftest.val
12582 else
12583   ac_cv_sizeof_long=0
12584 fi
12585 fi
12586 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12587 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12588 cat >>confdefs.h <<_ACEOF
12589 #define SIZEOF_LONG $ac_cv_sizeof_long
12590 _ACEOF
12591
12592  ;;
12593 esac
12594
12595 if test $acx_cv_header_stdint = stddef.h; then
12596   # Lacking a good header?  Test size of everything and deduce all types.
12597   echo "$as_me:$LINENO: checking for int" >&5
12598 echo $ECHO_N "checking for int... $ECHO_C" >&6
12599 if test "${ac_cv_type_int+set}" = set; then
12600   echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602   cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608 $ac_includes_default
12609 int
12610 main ()
12611 {
12612 if ((int *) 0)
12613   return 0;
12614 if (sizeof (int))
12615   return 0;
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 rm -f conftest.$ac_objext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622   (eval $ac_compile) 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } &&
12629          { ac_try='test -z "$ac_c_werror_flag"
12630                          || test ! -s conftest.err'
12631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632   (eval $ac_try) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; } &&
12636          { ac_try='test -s conftest.$ac_objext'
12637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638   (eval $ac_try) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); }; }; then
12642   ac_cv_type_int=yes
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647 ac_cv_type_int=no
12648 fi
12649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12650 fi
12651 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12652 echo "${ECHO_T}$ac_cv_type_int" >&6
12653
12654 echo "$as_me:$LINENO: checking size of int" >&5
12655 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12656 if test "${ac_cv_sizeof_int+set}" = set; then
12657   echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659   if test "$ac_cv_type_int" = yes; then
12660   # The cast to unsigned long works around a bug in the HP C Compiler
12661   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12662   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12663   # This bug is HP SR number 8606223364.
12664   if test "$cross_compiling" = yes; then
12665   # Depending upon the size, compute the lo and hi bounds.
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672 $ac_includes_default
12673 int
12674 main ()
12675 {
12676 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12677 test_array [0] = 0
12678
12679   ;
12680   return 0;
12681 }
12682 _ACEOF
12683 rm -f conftest.$ac_objext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685   (eval $ac_compile) 2>conftest.er1
12686   ac_status=$?
12687   grep -v '^ *+' conftest.er1 >conftest.err
12688   rm -f conftest.er1
12689   cat conftest.err >&5
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } &&
12692          { ac_try='test -z "$ac_c_werror_flag"
12693                          || test ! -s conftest.err'
12694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695   (eval $ac_try) 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); }; } &&
12699          { ac_try='test -s conftest.$ac_objext'
12700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701   (eval $ac_try) 2>&5
12702   ac_status=$?
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); }; }; then
12705   ac_lo=0 ac_mid=0
12706   while :; do
12707     cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h.  */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h.  */
12713 $ac_includes_default
12714 int
12715 main ()
12716 {
12717 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12718 test_array [0] = 0
12719
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 rm -f conftest.$ac_objext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726   (eval $ac_compile) 2>conftest.er1
12727   ac_status=$?
12728   grep -v '^ *+' conftest.er1 >conftest.err
12729   rm -f conftest.er1
12730   cat conftest.err >&5
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); } &&
12733          { ac_try='test -z "$ac_c_werror_flag"
12734                          || test ! -s conftest.err'
12735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736   (eval $ac_try) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; } &&
12740          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12746   ac_hi=$ac_mid; break
12747 else
12748   echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 ac_lo=`expr $ac_mid + 1`
12752                     if test $ac_lo -le $ac_mid; then
12753                       ac_lo= ac_hi=
12754                       break
12755                     fi
12756                     ac_mid=`expr 2 '*' $ac_mid + 1`
12757 fi
12758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759   done
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h.  */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h.  */
12770 $ac_includes_default
12771 int
12772 main ()
12773 {
12774 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12775 test_array [0] = 0
12776
12777   ;
12778   return 0;
12779 }
12780 _ACEOF
12781 rm -f conftest.$ac_objext
12782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12783   (eval $ac_compile) 2>conftest.er1
12784   ac_status=$?
12785   grep -v '^ *+' conftest.er1 >conftest.err
12786   rm -f conftest.er1
12787   cat conftest.err >&5
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } &&
12790          { ac_try='test -z "$ac_c_werror_flag"
12791                          || test ! -s conftest.err'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; } &&
12797          { ac_try='test -s conftest.$ac_objext'
12798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799   (eval $ac_try) 2>&5
12800   ac_status=$?
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); }; }; then
12803   ac_hi=-1 ac_mid=-1
12804   while :; do
12805     cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h.  */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h.  */
12811 $ac_includes_default
12812 int
12813 main ()
12814 {
12815 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12816 test_array [0] = 0
12817
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 rm -f conftest.$ac_objext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824   (eval $ac_compile) 2>conftest.er1
12825   ac_status=$?
12826   grep -v '^ *+' conftest.er1 >conftest.err
12827   rm -f conftest.er1
12828   cat conftest.err >&5
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); } &&
12831          { ac_try='test -z "$ac_c_werror_flag"
12832                          || test ! -s conftest.err'
12833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834   (eval $ac_try) 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; } &&
12838          { ac_try='test -s conftest.$ac_objext'
12839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840   (eval $ac_try) 2>&5
12841   ac_status=$?
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); }; }; then
12844   ac_lo=$ac_mid; break
12845 else
12846   echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849 ac_hi=`expr '(' $ac_mid ')' - 1`
12850                        if test $ac_mid -le $ac_hi; then
12851                          ac_lo= ac_hi=
12852                          break
12853                        fi
12854                        ac_mid=`expr 2 '*' $ac_mid`
12855 fi
12856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12857   done
12858 else
12859   echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12861
12862 ac_lo= ac_hi=
12863 fi
12864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12865 fi
12866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12867 # Binary search between lo and hi bounds.
12868 while test "x$ac_lo" != "x$ac_hi"; do
12869   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12870   cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h.  */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h.  */
12876 $ac_includes_default
12877 int
12878 main ()
12879 {
12880 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12881 test_array [0] = 0
12882
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 rm -f conftest.$ac_objext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889   (eval $ac_compile) 2>conftest.er1
12890   ac_status=$?
12891   grep -v '^ *+' conftest.er1 >conftest.err
12892   rm -f conftest.er1
12893   cat conftest.err >&5
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); } &&
12896          { ac_try='test -z "$ac_c_werror_flag"
12897                          || test ! -s conftest.err'
12898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899   (eval $ac_try) 2>&5
12900   ac_status=$?
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); }; } &&
12903          { ac_try='test -s conftest.$ac_objext'
12904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905   (eval $ac_try) 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; }; then
12909   ac_hi=$ac_mid
12910 else
12911   echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914 ac_lo=`expr '(' $ac_mid ')' + 1`
12915 fi
12916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917 done
12918 case $ac_lo in
12919 ?*) ac_cv_sizeof_int=$ac_lo;;
12920 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12921 See \`config.log' for more details." >&5
12922 echo "$as_me: error: cannot compute sizeof (int), 77
12923 See \`config.log' for more details." >&2;}
12924    { (exit 1); exit 1; }; } ;;
12925 esac
12926 else
12927   if test "$cross_compiling" = yes; then
12928   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12929 See \`config.log' for more details." >&5
12930 echo "$as_me: error: cannot run test program while cross compiling
12931 See \`config.log' for more details." >&2;}
12932    { (exit 1); exit 1; }; }
12933 else
12934   cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h.  */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h.  */
12940 $ac_includes_default
12941 long longval () { return (long) (sizeof (int)); }
12942 unsigned long ulongval () { return (long) (sizeof (int)); }
12943 #include <stdio.h>
12944 #include <stdlib.h>
12945 int
12946 main ()
12947 {
12948
12949   FILE *f = fopen ("conftest.val", "w");
12950   if (! f)
12951     exit (1);
12952   if (((long) (sizeof (int))) < 0)
12953     {
12954       long i = longval ();
12955       if (i != ((long) (sizeof (int))))
12956         exit (1);
12957       fprintf (f, "%ld\n", i);
12958     }
12959   else
12960     {
12961       unsigned long i = ulongval ();
12962       if (i != ((long) (sizeof (int))))
12963         exit (1);
12964       fprintf (f, "%lu\n", i);
12965     }
12966   exit (ferror (f) || fclose (f) != 0);
12967
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 rm -f conftest$ac_exeext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974   (eval $ac_link) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979   (eval $ac_try) 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; }; then
12983   ac_cv_sizeof_int=`cat conftest.val`
12984 else
12985   echo "$as_me: program exited with status $ac_status" >&5
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 ( exit $ac_status )
12990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12991 See \`config.log' for more details." >&5
12992 echo "$as_me: error: cannot compute sizeof (int), 77
12993 See \`config.log' for more details." >&2;}
12994    { (exit 1); exit 1; }; }
12995 fi
12996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12997 fi
12998 fi
12999 rm -f conftest.val
13000 else
13001   ac_cv_sizeof_int=0
13002 fi
13003 fi
13004 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13005 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13006 cat >>confdefs.h <<_ACEOF
13007 #define SIZEOF_INT $ac_cv_sizeof_int
13008 _ACEOF
13009
13010
13011   echo "$as_me:$LINENO: checking for short" >&5
13012 echo $ECHO_N "checking for short... $ECHO_C" >&6
13013 if test "${ac_cv_type_short+set}" = set; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   cat >conftest.$ac_ext <<_ACEOF
13017 /* confdefs.h.  */
13018 _ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h.  */
13022 $ac_includes_default
13023 int
13024 main ()
13025 {
13026 if ((short *) 0)
13027   return 0;
13028 if (sizeof (short))
13029   return 0;
13030   ;
13031   return 0;
13032 }
13033 _ACEOF
13034 rm -f conftest.$ac_objext
13035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13036   (eval $ac_compile) 2>conftest.er1
13037   ac_status=$?
13038   grep -v '^ *+' conftest.er1 >conftest.err
13039   rm -f conftest.er1
13040   cat conftest.err >&5
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } &&
13043          { ac_try='test -z "$ac_c_werror_flag"
13044                          || test ! -s conftest.err'
13045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046   (eval $ac_try) 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); }; } &&
13050          { ac_try='test -s conftest.$ac_objext'
13051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052   (eval $ac_try) 2>&5
13053   ac_status=$?
13054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); }; }; then
13056   ac_cv_type_short=yes
13057 else
13058   echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13060
13061 ac_cv_type_short=no
13062 fi
13063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13064 fi
13065 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13066 echo "${ECHO_T}$ac_cv_type_short" >&6
13067
13068 echo "$as_me:$LINENO: checking size of short" >&5
13069 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13070 if test "${ac_cv_sizeof_short+set}" = set; then
13071   echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073   if test "$ac_cv_type_short" = yes; then
13074   # The cast to unsigned long works around a bug in the HP C Compiler
13075   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13076   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13077   # This bug is HP SR number 8606223364.
13078   if test "$cross_compiling" = yes; then
13079   # Depending upon the size, compute the lo and hi bounds.
13080 cat >conftest.$ac_ext <<_ACEOF
13081 /* confdefs.h.  */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h.  */
13086 $ac_includes_default
13087 int
13088 main ()
13089 {
13090 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13091 test_array [0] = 0
13092
13093   ;
13094   return 0;
13095 }
13096 _ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099   (eval $ac_compile) 2>conftest.er1
13100   ac_status=$?
13101   grep -v '^ *+' conftest.er1 >conftest.err
13102   rm -f conftest.er1
13103   cat conftest.err >&5
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); } &&
13106          { ac_try='test -z "$ac_c_werror_flag"
13107                          || test ! -s conftest.err'
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); }; } &&
13113          { ac_try='test -s conftest.$ac_objext'
13114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115   (eval $ac_try) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   ac_lo=0 ac_mid=0
13120   while :; do
13121     cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 $ac_includes_default
13128 int
13129 main ()
13130 {
13131 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13132 test_array [0] = 0
13133
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 rm -f conftest.$ac_objext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140   (eval $ac_compile) 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } &&
13147          { ac_try='test -z "$ac_c_werror_flag"
13148                          || test ! -s conftest.err'
13149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150   (eval $ac_try) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); }; } &&
13154          { ac_try='test -s conftest.$ac_objext'
13155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156   (eval $ac_try) 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }; }; then
13160   ac_hi=$ac_mid; break
13161 else
13162   echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 ac_lo=`expr $ac_mid + 1`
13166                     if test $ac_lo -le $ac_mid; then
13167                       ac_lo= ac_hi=
13168                       break
13169                     fi
13170                     ac_mid=`expr 2 '*' $ac_mid + 1`
13171 fi
13172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13173   done
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178 cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h.  */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h.  */
13184 $ac_includes_default
13185 int
13186 main ()
13187 {
13188 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13189 test_array [0] = 0
13190
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197   (eval $ac_compile) 2>conftest.er1
13198   ac_status=$?
13199   grep -v '^ *+' conftest.er1 >conftest.err
13200   rm -f conftest.er1
13201   cat conftest.err >&5
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } &&
13204          { ac_try='test -z "$ac_c_werror_flag"
13205                          || test ! -s conftest.err'
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); }; } &&
13211          { ac_try='test -s conftest.$ac_objext'
13212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213   (eval $ac_try) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); }; }; then
13217   ac_hi=-1 ac_mid=-1
13218   while :; do
13219     cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225 $ac_includes_default
13226 int
13227 main ()
13228 {
13229 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13230 test_array [0] = 0
13231
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>conftest.er1
13239   ac_status=$?
13240   grep -v '^ *+' conftest.er1 >conftest.err
13241   rm -f conftest.er1
13242   cat conftest.err >&5
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -z "$ac_c_werror_flag"
13246                          || test ! -s conftest.err'
13247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248   (eval $ac_try) 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; } &&
13252          { ac_try='test -s conftest.$ac_objext'
13253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254   (eval $ac_try) 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; }; then
13258   ac_lo=$ac_mid; break
13259 else
13260   echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13262
13263 ac_hi=`expr '(' $ac_mid ')' - 1`
13264                        if test $ac_mid -le $ac_hi; then
13265                          ac_lo= ac_hi=
13266                          break
13267                        fi
13268                        ac_mid=`expr 2 '*' $ac_mid`
13269 fi
13270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13271   done
13272 else
13273   echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13275
13276 ac_lo= ac_hi=
13277 fi
13278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13279 fi
13280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13281 # Binary search between lo and hi bounds.
13282 while test "x$ac_lo" != "x$ac_hi"; do
13283   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13284   cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290 $ac_includes_default
13291 int
13292 main ()
13293 {
13294 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13295 test_array [0] = 0
13296
13297   ;
13298   return 0;
13299 }
13300 _ACEOF
13301 rm -f conftest.$ac_objext
13302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13303   (eval $ac_compile) 2>conftest.er1
13304   ac_status=$?
13305   grep -v '^ *+' conftest.er1 >conftest.err
13306   rm -f conftest.er1
13307   cat conftest.err >&5
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); } &&
13310          { ac_try='test -z "$ac_c_werror_flag"
13311                          || test ! -s conftest.err'
13312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313   (eval $ac_try) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }; } &&
13317          { ac_try='test -s conftest.$ac_objext'
13318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319   (eval $ac_try) 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; }; then
13323   ac_hi=$ac_mid
13324 else
13325   echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328 ac_lo=`expr '(' $ac_mid ')' + 1`
13329 fi
13330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13331 done
13332 case $ac_lo in
13333 ?*) ac_cv_sizeof_short=$ac_lo;;
13334 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13335 See \`config.log' for more details." >&5
13336 echo "$as_me: error: cannot compute sizeof (short), 77
13337 See \`config.log' for more details." >&2;}
13338    { (exit 1); exit 1; }; } ;;
13339 esac
13340 else
13341   if test "$cross_compiling" = yes; then
13342   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13343 See \`config.log' for more details." >&5
13344 echo "$as_me: error: cannot run test program while cross compiling
13345 See \`config.log' for more details." >&2;}
13346    { (exit 1); exit 1; }; }
13347 else
13348   cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354 $ac_includes_default
13355 long longval () { return (long) (sizeof (short)); }
13356 unsigned long ulongval () { return (long) (sizeof (short)); }
13357 #include <stdio.h>
13358 #include <stdlib.h>
13359 int
13360 main ()
13361 {
13362
13363   FILE *f = fopen ("conftest.val", "w");
13364   if (! f)
13365     exit (1);
13366   if (((long) (sizeof (short))) < 0)
13367     {
13368       long i = longval ();
13369       if (i != ((long) (sizeof (short))))
13370         exit (1);
13371       fprintf (f, "%ld\n", i);
13372     }
13373   else
13374     {
13375       unsigned long i = ulongval ();
13376       if (i != ((long) (sizeof (short))))
13377         exit (1);
13378       fprintf (f, "%lu\n", i);
13379     }
13380   exit (ferror (f) || fclose (f) != 0);
13381
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388   (eval $ac_link) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393   (eval $ac_try) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; }; then
13397   ac_cv_sizeof_short=`cat conftest.val`
13398 else
13399   echo "$as_me: program exited with status $ac_status" >&5
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403 ( exit $ac_status )
13404 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13405 See \`config.log' for more details." >&5
13406 echo "$as_me: error: cannot compute sizeof (short), 77
13407 See \`config.log' for more details." >&2;}
13408    { (exit 1); exit 1; }; }
13409 fi
13410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13411 fi
13412 fi
13413 rm -f conftest.val
13414 else
13415   ac_cv_sizeof_short=0
13416 fi
13417 fi
13418 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13419 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13420 cat >>confdefs.h <<_ACEOF
13421 #define SIZEOF_SHORT $ac_cv_sizeof_short
13422 _ACEOF
13423
13424
13425   echo "$as_me:$LINENO: checking for char" >&5
13426 echo $ECHO_N "checking for char... $ECHO_C" >&6
13427 if test "${ac_cv_type_char+set}" = set; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436 $ac_includes_default
13437 int
13438 main ()
13439 {
13440 if ((char *) 0)
13441   return 0;
13442 if (sizeof (char))
13443   return 0;
13444   ;
13445   return 0;
13446 }
13447 _ACEOF
13448 rm -f conftest.$ac_objext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450   (eval $ac_compile) 2>conftest.er1
13451   ac_status=$?
13452   grep -v '^ *+' conftest.er1 >conftest.err
13453   rm -f conftest.er1
13454   cat conftest.err >&5
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); } &&
13457          { ac_try='test -z "$ac_c_werror_flag"
13458                          || test ! -s conftest.err'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; } &&
13464          { ac_try='test -s conftest.$ac_objext'
13465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466   (eval $ac_try) 2>&5
13467   ac_status=$?
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); }; }; then
13470   ac_cv_type_char=yes
13471 else
13472   echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475 ac_cv_type_char=no
13476 fi
13477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13478 fi
13479 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13480 echo "${ECHO_T}$ac_cv_type_char" >&6
13481
13482 echo "$as_me:$LINENO: checking size of char" >&5
13483 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13484 if test "${ac_cv_sizeof_char+set}" = set; then
13485   echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487   if test "$ac_cv_type_char" = yes; then
13488   # The cast to unsigned long works around a bug in the HP C Compiler
13489   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13490   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13491   # This bug is HP SR number 8606223364.
13492   if test "$cross_compiling" = yes; then
13493   # Depending upon the size, compute the lo and hi bounds.
13494 cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h.  */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h.  */
13500 $ac_includes_default
13501 int
13502 main ()
13503 {
13504 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13505 test_array [0] = 0
13506
13507   ;
13508   return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513   (eval $ac_compile) 2>conftest.er1
13514   ac_status=$?
13515   grep -v '^ *+' conftest.er1 >conftest.err
13516   rm -f conftest.er1
13517   cat conftest.err >&5
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); } &&
13520          { ac_try='test -z "$ac_c_werror_flag"
13521                          || test ! -s conftest.err'
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); }; } &&
13527          { ac_try='test -s conftest.$ac_objext'
13528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529   (eval $ac_try) 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); }; }; then
13533   ac_lo=0 ac_mid=0
13534   while :; do
13535     cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h.  */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h.  */
13541 $ac_includes_default
13542 int
13543 main ()
13544 {
13545 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13546 test_array [0] = 0
13547
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554   (eval $ac_compile) 2>conftest.er1
13555   ac_status=$?
13556   grep -v '^ *+' conftest.er1 >conftest.err
13557   rm -f conftest.er1
13558   cat conftest.err >&5
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } &&
13561          { ac_try='test -z "$ac_c_werror_flag"
13562                          || test ! -s conftest.err'
13563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564   (eval $ac_try) 2>&5
13565   ac_status=$?
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); }; } &&
13568          { ac_try='test -s conftest.$ac_objext'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; }; then
13574   ac_hi=$ac_mid; break
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 ac_lo=`expr $ac_mid + 1`
13580                     if test $ac_lo -le $ac_mid; then
13581                       ac_lo= ac_hi=
13582                       break
13583                     fi
13584                     ac_mid=`expr 2 '*' $ac_mid + 1`
13585 fi
13586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13587   done
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13598 $ac_includes_default
13599 int
13600 main ()
13601 {
13602 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13603 test_array [0] = 0
13604
13605   ;
13606   return 0;
13607 }
13608 _ACEOF
13609 rm -f conftest.$ac_objext
13610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13611   (eval $ac_compile) 2>conftest.er1
13612   ac_status=$?
13613   grep -v '^ *+' conftest.er1 >conftest.err
13614   rm -f conftest.er1
13615   cat conftest.err >&5
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); } &&
13618          { ac_try='test -z "$ac_c_werror_flag"
13619                          || test ! -s conftest.err'
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); }; } &&
13625          { ac_try='test -s conftest.$ac_objext'
13626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627   (eval $ac_try) 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); }; }; then
13631   ac_hi=-1 ac_mid=-1
13632   while :; do
13633     cat >conftest.$ac_ext <<_ACEOF
13634 /* confdefs.h.  */
13635 _ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h.  */
13639 $ac_includes_default
13640 int
13641 main ()
13642 {
13643 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13644 test_array [0] = 0
13645
13646   ;
13647   return 0;
13648 }
13649 _ACEOF
13650 rm -f conftest.$ac_objext
13651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13652   (eval $ac_compile) 2>conftest.er1
13653   ac_status=$?
13654   grep -v '^ *+' conftest.er1 >conftest.err
13655   rm -f conftest.er1
13656   cat conftest.err >&5
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); } &&
13659          { ac_try='test -z "$ac_c_werror_flag"
13660                          || test ! -s conftest.err'
13661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662   (eval $ac_try) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; } &&
13666          { ac_try='test -s conftest.$ac_objext'
13667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668   (eval $ac_try) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; }; then
13672   ac_lo=$ac_mid; break
13673 else
13674   echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 ac_hi=`expr '(' $ac_mid ')' - 1`
13678                        if test $ac_mid -le $ac_hi; then
13679                          ac_lo= ac_hi=
13680                          break
13681                        fi
13682                        ac_mid=`expr 2 '*' $ac_mid`
13683 fi
13684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13685   done
13686 else
13687   echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13689
13690 ac_lo= ac_hi=
13691 fi
13692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13693 fi
13694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695 # Binary search between lo and hi bounds.
13696 while test "x$ac_lo" != "x$ac_hi"; do
13697   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13698   cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704 $ac_includes_default
13705 int
13706 main ()
13707 {
13708 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13709 test_array [0] = 0
13710
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest.$ac_objext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717   (eval $ac_compile) 2>conftest.er1
13718   ac_status=$?
13719   grep -v '^ *+' conftest.er1 >conftest.err
13720   rm -f conftest.er1
13721   cat conftest.err >&5
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } &&
13724          { ac_try='test -z "$ac_c_werror_flag"
13725                          || test ! -s conftest.err'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; } &&
13731          { ac_try='test -s conftest.$ac_objext'
13732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733   (eval $ac_try) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; }; then
13737   ac_hi=$ac_mid
13738 else
13739   echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 ac_lo=`expr '(' $ac_mid ')' + 1`
13743 fi
13744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13745 done
13746 case $ac_lo in
13747 ?*) ac_cv_sizeof_char=$ac_lo;;
13748 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13749 See \`config.log' for more details." >&5
13750 echo "$as_me: error: cannot compute sizeof (char), 77
13751 See \`config.log' for more details." >&2;}
13752    { (exit 1); exit 1; }; } ;;
13753 esac
13754 else
13755   if test "$cross_compiling" = yes; then
13756   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13757 See \`config.log' for more details." >&5
13758 echo "$as_me: error: cannot run test program while cross compiling
13759 See \`config.log' for more details." >&2;}
13760    { (exit 1); exit 1; }; }
13761 else
13762   cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h.  */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h.  */
13768 $ac_includes_default
13769 long longval () { return (long) (sizeof (char)); }
13770 unsigned long ulongval () { return (long) (sizeof (char)); }
13771 #include <stdio.h>
13772 #include <stdlib.h>
13773 int
13774 main ()
13775 {
13776
13777   FILE *f = fopen ("conftest.val", "w");
13778   if (! f)
13779     exit (1);
13780   if (((long) (sizeof (char))) < 0)
13781     {
13782       long i = longval ();
13783       if (i != ((long) (sizeof (char))))
13784         exit (1);
13785       fprintf (f, "%ld\n", i);
13786     }
13787   else
13788     {
13789       unsigned long i = ulongval ();
13790       if (i != ((long) (sizeof (char))))
13791         exit (1);
13792       fprintf (f, "%lu\n", i);
13793     }
13794   exit (ferror (f) || fclose (f) != 0);
13795
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 rm -f conftest$ac_exeext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13802   (eval $ac_link) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807   (eval $ac_try) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; }; then
13811   ac_cv_sizeof_char=`cat conftest.val`
13812 else
13813   echo "$as_me: program exited with status $ac_status" >&5
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13816
13817 ( exit $ac_status )
13818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13819 See \`config.log' for more details." >&5
13820 echo "$as_me: error: cannot compute sizeof (char), 77
13821 See \`config.log' for more details." >&2;}
13822    { (exit 1); exit 1; }; }
13823 fi
13824 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13825 fi
13826 fi
13827 rm -f conftest.val
13828 else
13829   ac_cv_sizeof_char=0
13830 fi
13831 fi
13832 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13833 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13834 cat >>confdefs.h <<_ACEOF
13835 #define SIZEOF_CHAR $ac_cv_sizeof_char
13836 _ACEOF
13837
13838
13839
13840   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
13841 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
13842   case "$ac_cv_sizeof_char" in
13843     1) acx_cv_type_int8_t=char ;;
13844     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
13845 echo "$as_me: error: no 8-bit type" >&2;}
13846    { (exit please report a bug); exit please report a bug; }; }
13847   esac
13848   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
13849 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
13850
13851   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
13852 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
13853   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13854     2:*) acx_cv_type_int16_t=int ;;
13855     *:2) acx_cv_type_int16_t=short ;;
13856     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
13857 echo "$as_me: error: no 16-bit type" >&2;}
13858    { (exit please report a bug); exit please report a bug; }; }
13859   esac
13860   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
13861 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
13862
13863   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
13864 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
13865   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13866     4:*) acx_cv_type_int32_t=int ;;
13867     *:4) acx_cv_type_int32_t=long ;;
13868     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
13869 echo "$as_me: error: no 32-bit type" >&2;}
13870    { (exit please report a bug); exit please report a bug; }; }
13871   esac
13872   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
13873 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
13874 fi
13875
13876 # These tests are here to make the output prettier
13877
13878 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13879   case "$ac_cv_sizeof_long" in
13880     8) acx_cv_type_int64_t=long ;;
13881   esac
13882   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
13883 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
13884   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13885 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
13886 fi
13887
13888 # Now we can use the above types
13889
13890 if test "$ac_cv_type_uintptr_t" != yes; then
13891   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
13892 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
13893   case $ac_cv_sizeof_void_p in
13894     2) acx_cv_type_intptr_t=int16_t ;;
13895     4) acx_cv_type_intptr_t=int32_t ;;
13896     8) acx_cv_type_intptr_t=int64_t ;;
13897     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
13898 echo "$as_me: error: no equivalent for intptr_t" >&2;}
13899    { (exit please report a bug); exit please report a bug; }; }
13900   esac
13901   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
13902 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
13903 fi
13904
13905 # ----------------- done all checks, emit header -------------
13906           ac_config_commands="$ac_config_commands gdb_stdint.h"
13907
13908
13909
13910
13911 # ------------------------- #
13912 # Checks for declarations.  #
13913 # ------------------------- #
13914
13915 echo "$as_me:$LINENO: checking whether free is declared" >&5
13916 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13917 if test "${ac_cv_have_decl_free+set}" = set; then
13918   echo $ECHO_N "(cached) $ECHO_C" >&6
13919 else
13920   cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h.  */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h.  */
13926 $ac_includes_default
13927 int
13928 main ()
13929 {
13930 #ifndef free
13931   char *p = (char *) free;
13932 #endif
13933
13934   ;
13935   return 0;
13936 }
13937 _ACEOF
13938 rm -f conftest.$ac_objext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940   (eval $ac_compile) 2>conftest.er1
13941   ac_status=$?
13942   grep -v '^ *+' conftest.er1 >conftest.err
13943   rm -f conftest.er1
13944   cat conftest.err >&5
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); } &&
13947          { ac_try='test -z "$ac_c_werror_flag"
13948                          || test ! -s conftest.err'
13949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950   (eval $ac_try) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; } &&
13954          { ac_try='test -s conftest.$ac_objext'
13955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956   (eval $ac_try) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; }; then
13960   ac_cv_have_decl_free=yes
13961 else
13962   echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965 ac_cv_have_decl_free=no
13966 fi
13967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13968 fi
13969 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13970 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13971 if test $ac_cv_have_decl_free = yes; then
13972
13973 cat >>confdefs.h <<_ACEOF
13974 #define HAVE_DECL_FREE 1
13975 _ACEOF
13976
13977
13978 else
13979   cat >>confdefs.h <<_ACEOF
13980 #define HAVE_DECL_FREE 0
13981 _ACEOF
13982
13983
13984 fi
13985 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13986 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13987 if test "${ac_cv_have_decl_malloc+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   cat >conftest.$ac_ext <<_ACEOF
13991 /* confdefs.h.  */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h.  */
13996 $ac_includes_default
13997 int
13998 main ()
13999 {
14000 #ifndef malloc
14001   char *p = (char *) malloc;
14002 #endif
14003
14004   ;
14005   return 0;
14006 }
14007 _ACEOF
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010   (eval $ac_compile) 2>conftest.er1
14011   ac_status=$?
14012   grep -v '^ *+' conftest.er1 >conftest.err
14013   rm -f conftest.er1
14014   cat conftest.err >&5
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); } &&
14017          { ac_try='test -z "$ac_c_werror_flag"
14018                          || test ! -s conftest.err'
14019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020   (eval $ac_try) 2>&5
14021   ac_status=$?
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); }; } &&
14024          { ac_try='test -s conftest.$ac_objext'
14025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026   (eval $ac_try) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   ac_cv_have_decl_malloc=yes
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ac_cv_have_decl_malloc=no
14036 fi
14037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14038 fi
14039 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14040 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
14041 if test $ac_cv_have_decl_malloc = yes; then
14042
14043 cat >>confdefs.h <<_ACEOF
14044 #define HAVE_DECL_MALLOC 1
14045 _ACEOF
14046
14047
14048 else
14049   cat >>confdefs.h <<_ACEOF
14050 #define HAVE_DECL_MALLOC 0
14051 _ACEOF
14052
14053
14054 fi
14055 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14056 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
14057 if test "${ac_cv_have_decl_realloc+set}" = set; then
14058   echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060   cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h.  */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h.  */
14066 $ac_includes_default
14067 int
14068 main ()
14069 {
14070 #ifndef realloc
14071   char *p = (char *) realloc;
14072 #endif
14073
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080   (eval $ac_compile) 2>conftest.er1
14081   ac_status=$?
14082   grep -v '^ *+' conftest.er1 >conftest.err
14083   rm -f conftest.er1
14084   cat conftest.err >&5
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } &&
14087          { ac_try='test -z "$ac_c_werror_flag"
14088                          || test ! -s conftest.err'
14089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090   (eval $ac_try) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; } &&
14094          { ac_try='test -s conftest.$ac_objext'
14095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096   (eval $ac_try) 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); }; }; then
14100   ac_cv_have_decl_realloc=yes
14101 else
14102   echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14104
14105 ac_cv_have_decl_realloc=no
14106 fi
14107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14108 fi
14109 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14110 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14111 if test $ac_cv_have_decl_realloc = yes; then
14112
14113 cat >>confdefs.h <<_ACEOF
14114 #define HAVE_DECL_REALLOC 1
14115 _ACEOF
14116
14117
14118 else
14119   cat >>confdefs.h <<_ACEOF
14120 #define HAVE_DECL_REALLOC 0
14121 _ACEOF
14122
14123
14124 fi
14125
14126
14127 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14128 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14129 if test "${ac_cv_have_decl_strerror+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h.  */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h.  */
14138 $ac_includes_default
14139 int
14140 main ()
14141 {
14142 #ifndef strerror
14143   char *p = (char *) strerror;
14144 #endif
14145
14146   ;
14147   return 0;
14148 }
14149 _ACEOF
14150 rm -f conftest.$ac_objext
14151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14152   (eval $ac_compile) 2>conftest.er1
14153   ac_status=$?
14154   grep -v '^ *+' conftest.er1 >conftest.err
14155   rm -f conftest.er1
14156   cat conftest.err >&5
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); } &&
14159          { ac_try='test -z "$ac_c_werror_flag"
14160                          || test ! -s conftest.err'
14161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162   (eval $ac_try) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; } &&
14166          { ac_try='test -s conftest.$ac_objext'
14167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168   (eval $ac_try) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; }; then
14172   ac_cv_have_decl_strerror=yes
14173 else
14174   echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177 ac_cv_have_decl_strerror=no
14178 fi
14179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14180 fi
14181 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14182 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14183 if test $ac_cv_have_decl_strerror = yes; then
14184
14185 cat >>confdefs.h <<_ACEOF
14186 #define HAVE_DECL_STRERROR 1
14187 _ACEOF
14188
14189
14190 else
14191   cat >>confdefs.h <<_ACEOF
14192 #define HAVE_DECL_STRERROR 0
14193 _ACEOF
14194
14195
14196 fi
14197 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14198 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14199 if test "${ac_cv_have_decl_strstr+set}" = set; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202   cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h.  */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h.  */
14208 $ac_includes_default
14209 int
14210 main ()
14211 {
14212 #ifndef strstr
14213   char *p = (char *) strstr;
14214 #endif
14215
14216   ;
14217   return 0;
14218 }
14219 _ACEOF
14220 rm -f conftest.$ac_objext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222   (eval $ac_compile) 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } &&
14229          { ac_try='test -z "$ac_c_werror_flag"
14230                          || test ! -s conftest.err'
14231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232   (eval $ac_try) 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; } &&
14236          { ac_try='test -s conftest.$ac_objext'
14237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238   (eval $ac_try) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }; }; then
14242   ac_cv_have_decl_strstr=yes
14243 else
14244   echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14246
14247 ac_cv_have_decl_strstr=no
14248 fi
14249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14250 fi
14251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14252 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14253 if test $ac_cv_have_decl_strstr = yes; then
14254
14255 cat >>confdefs.h <<_ACEOF
14256 #define HAVE_DECL_STRSTR 1
14257 _ACEOF
14258
14259
14260 else
14261   cat >>confdefs.h <<_ACEOF
14262 #define HAVE_DECL_STRSTR 0
14263 _ACEOF
14264
14265
14266 fi
14267
14268
14269 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14270 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14271 if test "${ac_cv_have_decl_getopt+set}" = set; then
14272   echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274   cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280 $ac_includes_default
14281 int
14282 main ()
14283 {
14284 #ifndef getopt
14285   char *p = (char *) getopt;
14286 #endif
14287
14288   ;
14289   return 0;
14290 }
14291 _ACEOF
14292 rm -f conftest.$ac_objext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294   (eval $ac_compile) 2>conftest.er1
14295   ac_status=$?
14296   grep -v '^ *+' conftest.er1 >conftest.err
14297   rm -f conftest.er1
14298   cat conftest.err >&5
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); } &&
14301          { ac_try='test -z "$ac_c_werror_flag"
14302                          || test ! -s conftest.err'
14303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304   (eval $ac_try) 2>&5
14305   ac_status=$?
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); }; } &&
14308          { ac_try='test -s conftest.$ac_objext'
14309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310   (eval $ac_try) 2>&5
14311   ac_status=$?
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); }; }; then
14314   ac_cv_have_decl_getopt=yes
14315 else
14316   echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319 ac_cv_have_decl_getopt=no
14320 fi
14321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14322 fi
14323 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14324 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
14325 if test $ac_cv_have_decl_getopt = yes; then
14326
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_DECL_GETOPT 1
14329 _ACEOF
14330
14331
14332 else
14333   cat >>confdefs.h <<_ACEOF
14334 #define HAVE_DECL_GETOPT 0
14335 _ACEOF
14336
14337
14338 fi
14339 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14340 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14341 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14342   echo $ECHO_N "(cached) $ECHO_C" >&6
14343 else
14344   cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h.  */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h.  */
14350 $ac_includes_default
14351 int
14352 main ()
14353 {
14354 #ifndef snprintf
14355   char *p = (char *) snprintf;
14356 #endif
14357
14358   ;
14359   return 0;
14360 }
14361 _ACEOF
14362 rm -f conftest.$ac_objext
14363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364   (eval $ac_compile) 2>conftest.er1
14365   ac_status=$?
14366   grep -v '^ *+' conftest.er1 >conftest.err
14367   rm -f conftest.er1
14368   cat conftest.err >&5
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); } &&
14371          { ac_try='test -z "$ac_c_werror_flag"
14372                          || test ! -s conftest.err'
14373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374   (eval $ac_try) 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); }; } &&
14378          { ac_try='test -s conftest.$ac_objext'
14379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380   (eval $ac_try) 2>&5
14381   ac_status=$?
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); }; }; then
14384   ac_cv_have_decl_snprintf=yes
14385 else
14386   echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14388
14389 ac_cv_have_decl_snprintf=no
14390 fi
14391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14392 fi
14393 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14394 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14395 if test $ac_cv_have_decl_snprintf = yes; then
14396
14397 cat >>confdefs.h <<_ACEOF
14398 #define HAVE_DECL_SNPRINTF 1
14399 _ACEOF
14400
14401
14402 else
14403   cat >>confdefs.h <<_ACEOF
14404 #define HAVE_DECL_SNPRINTF 0
14405 _ACEOF
14406
14407
14408 fi
14409 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14410 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14411 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14412   echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414   cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420 $ac_includes_default
14421 int
14422 main ()
14423 {
14424 #ifndef vsnprintf
14425   char *p = (char *) vsnprintf;
14426 #endif
14427
14428   ;
14429   return 0;
14430 }
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434   (eval $ac_compile) 2>conftest.er1
14435   ac_status=$?
14436   grep -v '^ *+' conftest.er1 >conftest.err
14437   rm -f conftest.er1
14438   cat conftest.err >&5
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); } &&
14441          { ac_try='test -z "$ac_c_werror_flag"
14442                          || test ! -s conftest.err'
14443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444   (eval $ac_try) 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; } &&
14448          { ac_try='test -s conftest.$ac_objext'
14449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450   (eval $ac_try) 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454   ac_cv_have_decl_vsnprintf=yes
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459 ac_cv_have_decl_vsnprintf=no
14460 fi
14461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14462 fi
14463 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14464 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14465 if test $ac_cv_have_decl_vsnprintf = yes; then
14466
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_DECL_VSNPRINTF 1
14469 _ACEOF
14470
14471
14472 else
14473   cat >>confdefs.h <<_ACEOF
14474 #define HAVE_DECL_VSNPRINTF 0
14475 _ACEOF
14476
14477
14478 fi
14479
14480
14481
14482 # ----------------------- #
14483 # Checks for structures.  #
14484 # ----------------------- #
14485
14486 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14487 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14488 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491   cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h.  */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h.  */
14497 $ac_includes_default
14498 int
14499 main ()
14500 {
14501 static struct stat ac_aggr;
14502 if (ac_aggr.st_blocks)
14503 return 0;
14504   ;
14505   return 0;
14506 }
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510   (eval $ac_compile) 2>conftest.er1
14511   ac_status=$?
14512   grep -v '^ *+' conftest.er1 >conftest.err
14513   rm -f conftest.er1
14514   cat conftest.err >&5
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } &&
14517          { ac_try='test -z "$ac_c_werror_flag"
14518                          || test ! -s conftest.err'
14519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520   (eval $ac_try) 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; } &&
14524          { ac_try='test -s conftest.$ac_objext'
14525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526   (eval $ac_try) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); }; }; then
14530   ac_cv_member_struct_stat_st_blocks=yes
14531 else
14532   echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14534
14535 cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h.  */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h.  */
14541 $ac_includes_default
14542 int
14543 main ()
14544 {
14545 static struct stat ac_aggr;
14546 if (sizeof ac_aggr.st_blocks)
14547 return 0;
14548   ;
14549   return 0;
14550 }
14551 _ACEOF
14552 rm -f conftest.$ac_objext
14553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14554   (eval $ac_compile) 2>conftest.er1
14555   ac_status=$?
14556   grep -v '^ *+' conftest.er1 >conftest.err
14557   rm -f conftest.er1
14558   cat conftest.err >&5
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); } &&
14561          { ac_try='test -z "$ac_c_werror_flag"
14562                          || test ! -s conftest.err'
14563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564   (eval $ac_try) 2>&5
14565   ac_status=$?
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); }; } &&
14568          { ac_try='test -s conftest.$ac_objext'
14569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570   (eval $ac_try) 2>&5
14571   ac_status=$?
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); }; }; then
14574   ac_cv_member_struct_stat_st_blocks=yes
14575 else
14576   echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579 ac_cv_member_struct_stat_st_blocks=no
14580 fi
14581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14582 fi
14583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14584 fi
14585 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14586 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14587 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14588
14589 cat >>confdefs.h <<_ACEOF
14590 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14591 _ACEOF
14592
14593
14594 fi
14595
14596 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14597 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14598 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h.  */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h.  */
14607 $ac_includes_default
14608 int
14609 main ()
14610 {
14611 static struct stat ac_aggr;
14612 if (ac_aggr.st_blksize)
14613 return 0;
14614   ;
14615   return 0;
14616 }
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620   (eval $ac_compile) 2>conftest.er1
14621   ac_status=$?
14622   grep -v '^ *+' conftest.er1 >conftest.err
14623   rm -f conftest.er1
14624   cat conftest.err >&5
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } &&
14627          { ac_try='test -z "$ac_c_werror_flag"
14628                          || test ! -s conftest.err'
14629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630   (eval $ac_try) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; } &&
14634          { ac_try='test -s conftest.$ac_objext'
14635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636   (eval $ac_try) 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }; }; then
14640   ac_cv_member_struct_stat_st_blksize=yes
14641 else
14642   echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645 cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651 $ac_includes_default
14652 int
14653 main ()
14654 {
14655 static struct stat ac_aggr;
14656 if (sizeof ac_aggr.st_blksize)
14657 return 0;
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664   (eval $ac_compile) 2>conftest.er1
14665   ac_status=$?
14666   grep -v '^ *+' conftest.er1 >conftest.err
14667   rm -f conftest.er1
14668   cat conftest.err >&5
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } &&
14671          { ac_try='test -z "$ac_c_werror_flag"
14672                          || test ! -s conftest.err'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; } &&
14678          { ac_try='test -s conftest.$ac_objext'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; }; then
14684   ac_cv_member_struct_stat_st_blksize=yes
14685 else
14686   echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_cv_member_struct_stat_st_blksize=no
14690 fi
14691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692 fi
14693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694 fi
14695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14696 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14697 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14698
14699 cat >>confdefs.h <<_ACEOF
14700 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14701 _ACEOF
14702
14703
14704 fi
14705
14706
14707 # ------------------ #
14708 # Checks for types.  #
14709 # ------------------ #
14710
14711 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14712 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14713 if test "${ac_cv_type_signal+set}" = set; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716   cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h.  */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h.  */
14722 #include <sys/types.h>
14723 #include <signal.h>
14724 #ifdef signal
14725 # undef signal
14726 #endif
14727 #ifdef __cplusplus
14728 extern "C" void (*signal (int, void (*)(int)))(int);
14729 #else
14730 void (*signal ()) ();
14731 #endif
14732
14733 int
14734 main ()
14735 {
14736 int i;
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 rm -f conftest.$ac_objext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743   (eval $ac_compile) 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } &&
14750          { ac_try='test -z "$ac_c_werror_flag"
14751                          || test ! -s conftest.err'
14752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753   (eval $ac_try) 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; } &&
14757          { ac_try='test -s conftest.$ac_objext'
14758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759   (eval $ac_try) 2>&5
14760   ac_status=$?
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); }; }; then
14763   ac_cv_type_signal=void
14764 else
14765   echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_cv_type_signal=int
14769 fi
14770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14771 fi
14772 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14773 echo "${ECHO_T}$ac_cv_type_signal" >&6
14774
14775 cat >>confdefs.h <<_ACEOF
14776 #define RETSIGTYPE $ac_cv_type_signal
14777 _ACEOF
14778
14779
14780 echo "$as_me:$LINENO: checking for socklen_t" >&5
14781 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14782 if test "${ac_cv_type_socklen_t+set}" = set; then
14783   echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785   cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h.  */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h.  */
14791 #include <sys/types.h>
14792 #include <sys/socket.h>
14793
14794
14795 int
14796 main ()
14797 {
14798 if ((socklen_t *) 0)
14799   return 0;
14800 if (sizeof (socklen_t))
14801   return 0;
14802   ;
14803   return 0;
14804 }
14805 _ACEOF
14806 rm -f conftest.$ac_objext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808   (eval $ac_compile) 2>conftest.er1
14809   ac_status=$?
14810   grep -v '^ *+' conftest.er1 >conftest.err
14811   rm -f conftest.er1
14812   cat conftest.err >&5
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); } &&
14815          { ac_try='test -z "$ac_c_werror_flag"
14816                          || test ! -s conftest.err'
14817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818   (eval $ac_try) 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; } &&
14822          { ac_try='test -s conftest.$ac_objext'
14823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824   (eval $ac_try) 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); }; }; then
14828   ac_cv_type_socklen_t=yes
14829 else
14830   echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14832
14833 ac_cv_type_socklen_t=no
14834 fi
14835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14836 fi
14837 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14838 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14839 if test $ac_cv_type_socklen_t = yes; then
14840
14841 cat >>confdefs.h <<_ACEOF
14842 #define HAVE_SOCKLEN_T 1
14843 _ACEOF
14844
14845
14846 fi
14847
14848 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14849 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14850 if test "${ac_cv_type_uintptr_t+set}" = set; then
14851   echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853   cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859 #include <stdint.h>
14860
14861 int
14862 main ()
14863 {
14864 if ((uintptr_t *) 0)
14865   return 0;
14866 if (sizeof (uintptr_t))
14867   return 0;
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874   (eval $ac_compile) 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } &&
14881          { ac_try='test -z "$ac_c_werror_flag"
14882                          || test ! -s conftest.err'
14883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884   (eval $ac_try) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; } &&
14888          { ac_try='test -s conftest.$ac_objext'
14889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890   (eval $ac_try) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; }; then
14894   ac_cv_type_uintptr_t=yes
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899 ac_cv_type_uintptr_t=no
14900 fi
14901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14902 fi
14903 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14904 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14905 if test $ac_cv_type_uintptr_t = yes; then
14906
14907 cat >>confdefs.h <<_ACEOF
14908 #define HAVE_UINTPTR_T 1
14909 _ACEOF
14910
14911
14912 fi
14913
14914
14915 # ------------------------------------- #
14916 # Checks for compiler characteristics.  #
14917 # ------------------------------------- #
14918
14919 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14920 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14921 if test "${ac_cv_c_const+set}" = set; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924   cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930
14931 int
14932 main ()
14933 {
14934 /* FIXME: Include the comments suggested by Paul. */
14935 #ifndef __cplusplus
14936   /* Ultrix mips cc rejects this.  */
14937   typedef int charset[2];
14938   const charset x;
14939   /* SunOS 4.1.1 cc rejects this.  */
14940   char const *const *ccp;
14941   char **p;
14942   /* NEC SVR4.0.2 mips cc rejects this.  */
14943   struct point {int x, y;};
14944   static struct point const zero = {0,0};
14945   /* AIX XL C 1.02.0.0 rejects this.
14946      It does not let you subtract one const X* pointer from another in
14947      an arm of an if-expression whose if-part is not a constant
14948      expression */
14949   const char *g = "string";
14950   ccp = &g + (g ? g-g : 0);
14951   /* HPUX 7.0 cc rejects these. */
14952   ++ccp;
14953   p = (char**) ccp;
14954   ccp = (char const *const *) p;
14955   { /* SCO 3.2v4 cc rejects this.  */
14956     char *t;
14957     char const *s = 0 ? (char *) 0 : (char const *) 0;
14958
14959     *t++ = 0;
14960   }
14961   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14962     int x[] = {25, 17};
14963     const int *foo = &x[0];
14964     ++foo;
14965   }
14966   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14967     typedef const int *iptr;
14968     iptr p = 0;
14969     ++p;
14970   }
14971   { /* AIX XL C 1.02.0.0 rejects this saying
14972        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14973     struct s { int j; const int *ap[3]; };
14974     struct s *b; b->j = 5;
14975   }
14976   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14977     const int foo = 10;
14978   }
14979 #endif
14980
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext
14986 if { (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_c_const=yes
15008 else
15009   echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012 ac_cv_c_const=no
15013 fi
15014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15015 fi
15016 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15017 echo "${ECHO_T}$ac_cv_c_const" >&6
15018 if test $ac_cv_c_const = no; then
15019
15020 cat >>confdefs.h <<\_ACEOF
15021 #define const
15022 _ACEOF
15023
15024 fi
15025
15026 echo "$as_me:$LINENO: checking for inline" >&5
15027 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15028 if test "${ac_cv_c_inline+set}" = set; then
15029   echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031   ac_cv_c_inline=no
15032 for ac_kw in inline __inline__ __inline; do
15033   cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039 #ifndef __cplusplus
15040 typedef int foo_t;
15041 static $ac_kw foo_t static_foo () {return 0; }
15042 $ac_kw foo_t foo () {return 0; }
15043 #endif
15044
15045 _ACEOF
15046 rm -f conftest.$ac_objext
15047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15048   (eval $ac_compile) 2>conftest.er1
15049   ac_status=$?
15050   grep -v '^ *+' conftest.er1 >conftest.err
15051   rm -f conftest.er1
15052   cat conftest.err >&5
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); } &&
15055          { ac_try='test -z "$ac_c_werror_flag"
15056                          || test ! -s conftest.err'
15057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058   (eval $ac_try) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); }; } &&
15062          { ac_try='test -s conftest.$ac_objext'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; }; then
15068   ac_cv_c_inline=$ac_kw; break
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 fi
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15075 done
15076
15077 fi
15078 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15079 echo "${ECHO_T}$ac_cv_c_inline" >&6
15080
15081
15082 case $ac_cv_c_inline in
15083   inline | yes) ;;
15084   *)
15085     case $ac_cv_c_inline in
15086       no) ac_val=;;
15087       *) ac_val=$ac_cv_c_inline;;
15088     esac
15089     cat >>confdefs.h <<_ACEOF
15090 #ifndef __cplusplus
15091 #define inline $ac_val
15092 #endif
15093 _ACEOF
15094     ;;
15095 esac
15096
15097
15098 # ------------------------------ #
15099 # Checks for library functions.  #
15100 # ------------------------------ #
15101
15102 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15103 # for constant arguments.  Useless!
15104 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15105 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15106 if test "${ac_cv_working_alloca_h+set}" = set; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109   cat >conftest.$ac_ext <<_ACEOF
15110 /* confdefs.h.  */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h.  */
15115 #include <alloca.h>
15116 int
15117 main ()
15118 {
15119 char *p = (char *) alloca (2 * sizeof (int));
15120   ;
15121   return 0;
15122 }
15123 _ACEOF
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15126   (eval $ac_link) 2>conftest.er1
15127   ac_status=$?
15128   grep -v '^ *+' conftest.er1 >conftest.err
15129   rm -f conftest.er1
15130   cat conftest.err >&5
15131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132   (exit $ac_status); } &&
15133          { ac_try='test -z "$ac_c_werror_flag"
15134                          || test ! -s conftest.err'
15135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136   (eval $ac_try) 2>&5
15137   ac_status=$?
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); }; } &&
15140          { ac_try='test -s conftest$ac_exeext'
15141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142   (eval $ac_try) 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); }; }; then
15146   ac_cv_working_alloca_h=yes
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151 ac_cv_working_alloca_h=no
15152 fi
15153 rm -f conftest.err conftest.$ac_objext \
15154       conftest$ac_exeext conftest.$ac_ext
15155 fi
15156 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15157 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15158 if test $ac_cv_working_alloca_h = yes; then
15159
15160 cat >>confdefs.h <<\_ACEOF
15161 #define HAVE_ALLOCA_H 1
15162 _ACEOF
15163
15164 fi
15165
15166 echo "$as_me:$LINENO: checking for alloca" >&5
15167 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15168 if test "${ac_cv_func_alloca_works+set}" = set; then
15169   echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171   cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h.  */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h.  */
15177 #ifdef __GNUC__
15178 # define alloca __builtin_alloca
15179 #else
15180 # ifdef _MSC_VER
15181 #  include <malloc.h>
15182 #  define alloca _alloca
15183 # else
15184 #  if HAVE_ALLOCA_H
15185 #   include <alloca.h>
15186 #  else
15187 #   ifdef _AIX
15188  #pragma alloca
15189 #   else
15190 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15191 char *alloca ();
15192 #    endif
15193 #   endif
15194 #  endif
15195 # endif
15196 #endif
15197
15198 int
15199 main ()
15200 {
15201 char *p = (char *) alloca (1);
15202   ;
15203   return 0;
15204 }
15205 _ACEOF
15206 rm -f conftest.$ac_objext conftest$ac_exeext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15208   (eval $ac_link) 2>conftest.er1
15209   ac_status=$?
15210   grep -v '^ *+' conftest.er1 >conftest.err
15211   rm -f conftest.er1
15212   cat conftest.err >&5
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); } &&
15215          { ac_try='test -z "$ac_c_werror_flag"
15216                          || test ! -s conftest.err'
15217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218   (eval $ac_try) 2>&5
15219   ac_status=$?
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); }; } &&
15222          { ac_try='test -s conftest$ac_exeext'
15223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224   (eval $ac_try) 2>&5
15225   ac_status=$?
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); }; }; then
15228   ac_cv_func_alloca_works=yes
15229 else
15230   echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15232
15233 ac_cv_func_alloca_works=no
15234 fi
15235 rm -f conftest.err conftest.$ac_objext \
15236       conftest$ac_exeext conftest.$ac_ext
15237 fi
15238 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15239 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15240
15241 if test $ac_cv_func_alloca_works = yes; then
15242
15243 cat >>confdefs.h <<\_ACEOF
15244 #define HAVE_ALLOCA 1
15245 _ACEOF
15246
15247 else
15248   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15249 # that cause trouble.  Some versions do not even contain alloca or
15250 # contain a buggy version.  If you still want to use their alloca,
15251 # use ar to extract alloca.o from them instead of compiling alloca.c.
15252
15253 ALLOCA=alloca.$ac_objext
15254
15255 cat >>confdefs.h <<\_ACEOF
15256 #define C_ALLOCA 1
15257 _ACEOF
15258
15259
15260 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15261 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15262 if test "${ac_cv_os_cray+set}" = set; then
15263   echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265   cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h.  */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h.  */
15271 #if defined(CRAY) && ! defined(CRAY2)
15272 webecray
15273 #else
15274 wenotbecray
15275 #endif
15276
15277 _ACEOF
15278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15279   $EGREP "webecray" >/dev/null 2>&1; then
15280   ac_cv_os_cray=yes
15281 else
15282   ac_cv_os_cray=no
15283 fi
15284 rm -f conftest*
15285
15286 fi
15287 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15288 echo "${ECHO_T}$ac_cv_os_cray" >&6
15289 if test $ac_cv_os_cray = yes; then
15290   for ac_func in _getb67 GETB67 getb67; do
15291     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15292 echo "$as_me:$LINENO: checking for $ac_func" >&5
15293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15294 if eval "test \"\${$as_ac_var+set}\" = set"; then
15295   echo $ECHO_N "(cached) $ECHO_C" >&6
15296 else
15297   cat >conftest.$ac_ext <<_ACEOF
15298 /* confdefs.h.  */
15299 _ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h.  */
15303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15305 #define $ac_func innocuous_$ac_func
15306
15307 /* System header to define __stub macros and hopefully few prototypes,
15308     which can conflict with char $ac_func (); below.
15309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15310     <limits.h> exists even on freestanding compilers.  */
15311
15312 #ifdef __STDC__
15313 # include <limits.h>
15314 #else
15315 # include <assert.h>
15316 #endif
15317
15318 #undef $ac_func
15319
15320 /* Override any gcc2 internal prototype to avoid an error.  */
15321 #ifdef __cplusplus
15322 extern "C"
15323 {
15324 #endif
15325 /* We use char because int might match the return type of a gcc2
15326    builtin and then its argument prototype would still apply.  */
15327 char $ac_func ();
15328 /* The GNU C library defines this for functions which it implements
15329     to always fail with ENOSYS.  Some functions are actually named
15330     something starting with __ and the normal name is an alias.  */
15331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15332 choke me
15333 #else
15334 char (*f) () = $ac_func;
15335 #endif
15336 #ifdef __cplusplus
15337 }
15338 #endif
15339
15340 int
15341 main ()
15342 {
15343 return f != $ac_func;
15344   ;
15345   return 0;
15346 }
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350   (eval $ac_link) 2>conftest.er1
15351   ac_status=$?
15352   grep -v '^ *+' conftest.er1 >conftest.err
15353   rm -f conftest.er1
15354   cat conftest.err >&5
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); } &&
15357          { ac_try='test -z "$ac_c_werror_flag"
15358                          || test ! -s conftest.err'
15359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360   (eval $ac_try) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; } &&
15364          { ac_try='test -s conftest$ac_exeext'
15365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366   (eval $ac_try) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; }; then
15370   eval "$as_ac_var=yes"
15371 else
15372   echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375 eval "$as_ac_var=no"
15376 fi
15377 rm -f conftest.err conftest.$ac_objext \
15378       conftest$ac_exeext conftest.$ac_ext
15379 fi
15380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15382 if test `eval echo '${'$as_ac_var'}'` = yes; then
15383
15384 cat >>confdefs.h <<_ACEOF
15385 #define CRAY_STACKSEG_END $ac_func
15386 _ACEOF
15387
15388     break
15389 fi
15390
15391   done
15392 fi
15393
15394 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15395 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15396 if test "${ac_cv_c_stack_direction+set}" = set; then
15397   echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399   if test "$cross_compiling" = yes; then
15400   ac_cv_c_stack_direction=0
15401 else
15402   cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h.  */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h.  */
15408 int
15409 find_stack_direction ()
15410 {
15411   static char *addr = 0;
15412   auto char dummy;
15413   if (addr == 0)
15414     {
15415       addr = &dummy;
15416       return find_stack_direction ();
15417     }
15418   else
15419     return (&dummy > addr) ? 1 : -1;
15420 }
15421
15422 int
15423 main ()
15424 {
15425   exit (find_stack_direction () < 0);
15426 }
15427 _ACEOF
15428 rm -f conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430   (eval $ac_link) 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; }; then
15439   ac_cv_c_stack_direction=1
15440 else
15441   echo "$as_me: program exited with status $ac_status" >&5
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445 ( exit $ac_status )
15446 ac_cv_c_stack_direction=-1
15447 fi
15448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15449 fi
15450 fi
15451 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15452 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15453
15454 cat >>confdefs.h <<_ACEOF
15455 #define STACK_DIRECTION $ac_cv_c_stack_direction
15456 _ACEOF
15457
15458
15459 fi
15460
15461
15462
15463 for ac_header in stdlib.h unistd.h
15464 do
15465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15467   echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 fi
15472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15474 else
15475   # Is the header compilable?
15476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484 $ac_includes_default
15485 #include <$ac_header>
15486 _ACEOF
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489   (eval $ac_compile) 2>conftest.er1
15490   ac_status=$?
15491   grep -v '^ *+' conftest.er1 >conftest.err
15492   rm -f conftest.er1
15493   cat conftest.err >&5
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); } &&
15496          { ac_try='test -z "$ac_c_werror_flag"
15497                          || test ! -s conftest.err'
15498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499   (eval $ac_try) 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); }; } &&
15503          { ac_try='test -s conftest.$ac_objext'
15504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505   (eval $ac_try) 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; }; then
15509   ac_header_compiler=yes
15510 else
15511   echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514 ac_header_compiler=no
15515 fi
15516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6
15519
15520 # Is the header present?
15521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h.  */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h.  */
15529 #include <$ac_header>
15530 _ACEOF
15531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15533   ac_status=$?
15534   grep -v '^ *+' conftest.er1 >conftest.err
15535   rm -f conftest.er1
15536   cat conftest.err >&5
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); } >/dev/null; then
15539   if test -s conftest.err; then
15540     ac_cpp_err=$ac_c_preproc_warn_flag
15541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15542   else
15543     ac_cpp_err=
15544   fi
15545 else
15546   ac_cpp_err=yes
15547 fi
15548 if test -z "$ac_cpp_err"; then
15549   ac_header_preproc=yes
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554   ac_header_preproc=no
15555 fi
15556 rm -f conftest.err conftest.$ac_ext
15557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6
15559
15560 # So?  What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562   yes:no: )
15563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567     ac_header_preproc=yes
15568     ;;
15569   no:yes:* )
15570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15582     (
15583       cat <<\_ASBOX
15584 ## ------------------------------------------ ##
15585 ## Report this to the AC_PACKAGE_NAME lists.  ##
15586 ## ------------------------------------------ ##
15587 _ASBOX
15588     ) |
15589       sed "s/^/$as_me: WARNING:     /" >&2
15590     ;;
15591 esac
15592 echo "$as_me:$LINENO: checking for $ac_header" >&5
15593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15595   echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597   eval "$as_ac_Header=\$ac_header_preproc"
15598 fi
15599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15601
15602 fi
15603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15604   cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15606 _ACEOF
15607
15608 fi
15609
15610 done
15611
15612
15613 for ac_func in getpagesize
15614 do
15615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15616 echo "$as_me:$LINENO: checking for $ac_func" >&5
15617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15618 if eval "test \"\${$as_ac_var+set}\" = set"; then
15619   echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621   cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h.  */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h.  */
15627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15629 #define $ac_func innocuous_$ac_func
15630
15631 /* System header to define __stub macros and hopefully few prototypes,
15632     which can conflict with char $ac_func (); below.
15633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634     <limits.h> exists even on freestanding compilers.  */
15635
15636 #ifdef __STDC__
15637 # include <limits.h>
15638 #else
15639 # include <assert.h>
15640 #endif
15641
15642 #undef $ac_func
15643
15644 /* Override any gcc2 internal prototype to avoid an error.  */
15645 #ifdef __cplusplus
15646 extern "C"
15647 {
15648 #endif
15649 /* We use char because int might match the return type of a gcc2
15650    builtin and then its argument prototype would still apply.  */
15651 char $ac_func ();
15652 /* The GNU C library defines this for functions which it implements
15653     to always fail with ENOSYS.  Some functions are actually named
15654     something starting with __ and the normal name is an alias.  */
15655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15656 choke me
15657 #else
15658 char (*f) () = $ac_func;
15659 #endif
15660 #ifdef __cplusplus
15661 }
15662 #endif
15663
15664 int
15665 main ()
15666 {
15667 return f != $ac_func;
15668   ;
15669   return 0;
15670 }
15671 _ACEOF
15672 rm -f conftest.$ac_objext conftest$ac_exeext
15673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15674   (eval $ac_link) 2>conftest.er1
15675   ac_status=$?
15676   grep -v '^ *+' conftest.er1 >conftest.err
15677   rm -f conftest.er1
15678   cat conftest.err >&5
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); } &&
15681          { ac_try='test -z "$ac_c_werror_flag"
15682                          || test ! -s conftest.err'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; } &&
15688          { ac_try='test -s conftest$ac_exeext'
15689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690   (eval $ac_try) 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); }; }; then
15694   eval "$as_ac_var=yes"
15695 else
15696   echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699 eval "$as_ac_var=no"
15700 fi
15701 rm -f conftest.err conftest.$ac_objext \
15702       conftest$ac_exeext conftest.$ac_ext
15703 fi
15704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15706 if test `eval echo '${'$as_ac_var'}'` = yes; then
15707   cat >>confdefs.h <<_ACEOF
15708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15709 _ACEOF
15710
15711 fi
15712 done
15713
15714 echo "$as_me:$LINENO: checking for working mmap" >&5
15715 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15716 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15717   echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719   if test "$cross_compiling" = yes; then
15720   ac_cv_func_mmap_fixed_mapped=no
15721 else
15722   cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728 $ac_includes_default
15729 /* malloc might have been renamed as rpl_malloc. */
15730 #undef malloc
15731
15732 /* Thanks to Mike Haertel and Jim Avera for this test.
15733    Here is a matrix of mmap possibilities:
15734         mmap private not fixed
15735         mmap private fixed at somewhere currently unmapped
15736         mmap private fixed at somewhere already mapped
15737         mmap shared not fixed
15738         mmap shared fixed at somewhere currently unmapped
15739         mmap shared fixed at somewhere already mapped
15740    For private mappings, we should verify that changes cannot be read()
15741    back from the file, nor mmap's back from the file at a different
15742    address.  (There have been systems where private was not correctly
15743    implemented like the infamous i386 svr4.0, and systems where the
15744    VM page cache was not coherent with the file system buffer cache
15745    like early versions of FreeBSD and possibly contemporary NetBSD.)
15746    For shared mappings, we should conversely verify that changes get
15747    propagated back to all the places they're supposed to be.
15748
15749    Grep wants private fixed already mapped.
15750    The main things grep needs to know about mmap are:
15751    * does it exist and is it safe to write into the mmap'd area
15752    * how to use it (BSD variants)  */
15753
15754 #include <fcntl.h>
15755 #include <sys/mman.h>
15756
15757 #if !STDC_HEADERS && !HAVE_STDLIB_H
15758 char *malloc ();
15759 #endif
15760
15761 /* This mess was copied from the GNU getpagesize.h.  */
15762 #if !HAVE_GETPAGESIZE
15763 /* Assume that all systems that can run configure have sys/param.h.  */
15764 # if !HAVE_SYS_PARAM_H
15765 #  define HAVE_SYS_PARAM_H 1
15766 # endif
15767
15768 # ifdef _SC_PAGESIZE
15769 #  define getpagesize() sysconf(_SC_PAGESIZE)
15770 # else /* no _SC_PAGESIZE */
15771 #  if HAVE_SYS_PARAM_H
15772 #   include <sys/param.h>
15773 #   ifdef EXEC_PAGESIZE
15774 #    define getpagesize() EXEC_PAGESIZE
15775 #   else /* no EXEC_PAGESIZE */
15776 #    ifdef NBPG
15777 #     define getpagesize() NBPG * CLSIZE
15778 #     ifndef CLSIZE
15779 #      define CLSIZE 1
15780 #     endif /* no CLSIZE */
15781 #    else /* no NBPG */
15782 #     ifdef NBPC
15783 #      define getpagesize() NBPC
15784 #     else /* no NBPC */
15785 #      ifdef PAGESIZE
15786 #       define getpagesize() PAGESIZE
15787 #      endif /* PAGESIZE */
15788 #     endif /* no NBPC */
15789 #    endif /* no NBPG */
15790 #   endif /* no EXEC_PAGESIZE */
15791 #  else /* no HAVE_SYS_PARAM_H */
15792 #   define getpagesize() 8192   /* punt totally */
15793 #  endif /* no HAVE_SYS_PARAM_H */
15794 # endif /* no _SC_PAGESIZE */
15795
15796 #endif /* no HAVE_GETPAGESIZE */
15797
15798 int
15799 main ()
15800 {
15801   char *data, *data2, *data3;
15802   int i, pagesize;
15803   int fd;
15804
15805   pagesize = getpagesize ();
15806
15807   /* First, make a file with some known garbage in it. */
15808   data = (char *) malloc (pagesize);
15809   if (!data)
15810     exit (1);
15811   for (i = 0; i < pagesize; ++i)
15812     *(data + i) = rand ();
15813   umask (0);
15814   fd = creat ("conftest.mmap", 0600);
15815   if (fd < 0)
15816     exit (1);
15817   if (write (fd, data, pagesize) != pagesize)
15818     exit (1);
15819   close (fd);
15820
15821   /* Next, try to mmap the file at a fixed address which already has
15822      something else allocated at it.  If we can, also make sure that
15823      we see the same garbage.  */
15824   fd = open ("conftest.mmap", O_RDWR);
15825   if (fd < 0)
15826     exit (1);
15827   data2 = (char *) malloc (2 * pagesize);
15828   if (!data2)
15829     exit (1);
15830   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15831   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15832                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15833     exit (1);
15834   for (i = 0; i < pagesize; ++i)
15835     if (*(data + i) != *(data2 + i))
15836       exit (1);
15837
15838   /* Finally, make sure that changes to the mapped area do not
15839      percolate back to the file as seen by read().  (This is a bug on
15840      some variants of i386 svr4.0.)  */
15841   for (i = 0; i < pagesize; ++i)
15842     *(data2 + i) = *(data2 + i) + 1;
15843   data3 = (char *) malloc (pagesize);
15844   if (!data3)
15845     exit (1);
15846   if (read (fd, data3, pagesize) != pagesize)
15847     exit (1);
15848   for (i = 0; i < pagesize; ++i)
15849     if (*(data + i) != *(data3 + i))
15850       exit (1);
15851   close (fd);
15852   exit (0);
15853 }
15854 _ACEOF
15855 rm -f conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857   (eval $ac_link) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; }; then
15866   ac_cv_func_mmap_fixed_mapped=yes
15867 else
15868   echo "$as_me: program exited with status $ac_status" >&5
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15871
15872 ( exit $ac_status )
15873 ac_cv_func_mmap_fixed_mapped=no
15874 fi
15875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15876 fi
15877 fi
15878 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15879 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15880 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15881
15882 cat >>confdefs.h <<\_ACEOF
15883 #define HAVE_MMAP 1
15884 _ACEOF
15885
15886 fi
15887 rm -f conftest.mmap
15888
15889 echo "$as_me:$LINENO: checking for pid_t" >&5
15890 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15891 if test "${ac_cv_type_pid_t+set}" = set; then
15892   echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894   cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900 $ac_includes_default
15901 int
15902 main ()
15903 {
15904 if ((pid_t *) 0)
15905   return 0;
15906 if (sizeof (pid_t))
15907   return 0;
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 rm -f conftest.$ac_objext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15914   (eval $ac_compile) 2>conftest.er1
15915   ac_status=$?
15916   grep -v '^ *+' conftest.er1 >conftest.err
15917   rm -f conftest.er1
15918   cat conftest.err >&5
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); } &&
15921          { ac_try='test -z "$ac_c_werror_flag"
15922                          || test ! -s conftest.err'
15923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924   (eval $ac_try) 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; } &&
15928          { ac_try='test -s conftest.$ac_objext'
15929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930   (eval $ac_try) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; }; then
15934   ac_cv_type_pid_t=yes
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939 ac_cv_type_pid_t=no
15940 fi
15941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15942 fi
15943 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15944 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15945 if test $ac_cv_type_pid_t = yes; then
15946   :
15947 else
15948
15949 cat >>confdefs.h <<_ACEOF
15950 #define pid_t int
15951 _ACEOF
15952
15953 fi
15954
15955
15956
15957 for ac_header in unistd.h vfork.h
15958 do
15959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15961   echo "$as_me:$LINENO: checking for $ac_header" >&5
15962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15964   echo $ECHO_N "(cached) $ECHO_C" >&6
15965 fi
15966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15968 else
15969   # Is the header compilable?
15970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 $ac_includes_default
15979 #include <$ac_header>
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983   (eval $ac_compile) 2>conftest.er1
15984   ac_status=$?
15985   grep -v '^ *+' conftest.er1 >conftest.err
15986   rm -f conftest.er1
15987   cat conftest.err >&5
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); } &&
15990          { ac_try='test -z "$ac_c_werror_flag"
15991                          || test ! -s conftest.err'
15992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993   (eval $ac_try) 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; } &&
15997          { ac_try='test -s conftest.$ac_objext'
15998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999   (eval $ac_try) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; }; then
16003   ac_header_compiler=yes
16004 else
16005   echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 ac_header_compiler=no
16009 fi
16010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16012 echo "${ECHO_T}$ac_header_compiler" >&6
16013
16014 # Is the header present?
16015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16017 cat >conftest.$ac_ext <<_ACEOF
16018 /* confdefs.h.  */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h.  */
16023 #include <$ac_header>
16024 _ACEOF
16025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16027   ac_status=$?
16028   grep -v '^ *+' conftest.er1 >conftest.err
16029   rm -f conftest.er1
16030   cat conftest.err >&5
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); } >/dev/null; then
16033   if test -s conftest.err; then
16034     ac_cpp_err=$ac_c_preproc_warn_flag
16035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16036   else
16037     ac_cpp_err=
16038   fi
16039 else
16040   ac_cpp_err=yes
16041 fi
16042 if test -z "$ac_cpp_err"; then
16043   ac_header_preproc=yes
16044 else
16045   echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16047
16048   ac_header_preproc=no
16049 fi
16050 rm -f conftest.err conftest.$ac_ext
16051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16052 echo "${ECHO_T}$ac_header_preproc" >&6
16053
16054 # So?  What about this header?
16055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16056   yes:no: )
16057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16061     ac_header_preproc=yes
16062     ;;
16063   no:yes:* )
16064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16076     (
16077       cat <<\_ASBOX
16078 ## ------------------------------------------ ##
16079 ## Report this to the AC_PACKAGE_NAME lists.  ##
16080 ## ------------------------------------------ ##
16081 _ASBOX
16082     ) |
16083       sed "s/^/$as_me: WARNING:     /" >&2
16084     ;;
16085 esac
16086 echo "$as_me:$LINENO: checking for $ac_header" >&5
16087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16089   echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091   eval "$as_ac_Header=\$ac_header_preproc"
16092 fi
16093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16095
16096 fi
16097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16098   cat >>confdefs.h <<_ACEOF
16099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16100 _ACEOF
16101
16102 fi
16103
16104 done
16105
16106
16107
16108 for ac_func in fork vfork
16109 do
16110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16111 echo "$as_me:$LINENO: checking for $ac_func" >&5
16112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16113 if eval "test \"\${$as_ac_var+set}\" = set"; then
16114   echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116   cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h.  */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h.  */
16122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16124 #define $ac_func innocuous_$ac_func
16125
16126 /* System header to define __stub macros and hopefully few prototypes,
16127     which can conflict with char $ac_func (); below.
16128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16129     <limits.h> exists even on freestanding compilers.  */
16130
16131 #ifdef __STDC__
16132 # include <limits.h>
16133 #else
16134 # include <assert.h>
16135 #endif
16136
16137 #undef $ac_func
16138
16139 /* Override any gcc2 internal prototype to avoid an error.  */
16140 #ifdef __cplusplus
16141 extern "C"
16142 {
16143 #endif
16144 /* We use char because int might match the return type of a gcc2
16145    builtin and then its argument prototype would still apply.  */
16146 char $ac_func ();
16147 /* The GNU C library defines this for functions which it implements
16148     to always fail with ENOSYS.  Some functions are actually named
16149     something starting with __ and the normal name is an alias.  */
16150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16151 choke me
16152 #else
16153 char (*f) () = $ac_func;
16154 #endif
16155 #ifdef __cplusplus
16156 }
16157 #endif
16158
16159 int
16160 main ()
16161 {
16162 return f != $ac_func;
16163   ;
16164   return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext conftest$ac_exeext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16169   (eval $ac_link) 2>conftest.er1
16170   ac_status=$?
16171   grep -v '^ *+' conftest.er1 >conftest.err
16172   rm -f conftest.er1
16173   cat conftest.err >&5
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); } &&
16176          { ac_try='test -z "$ac_c_werror_flag"
16177                          || test ! -s conftest.err'
16178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179   (eval $ac_try) 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); }; } &&
16183          { ac_try='test -s conftest$ac_exeext'
16184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185   (eval $ac_try) 2>&5
16186   ac_status=$?
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); }; }; then
16189   eval "$as_ac_var=yes"
16190 else
16191   echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16193
16194 eval "$as_ac_var=no"
16195 fi
16196 rm -f conftest.err conftest.$ac_objext \
16197       conftest$ac_exeext conftest.$ac_ext
16198 fi
16199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16201 if test `eval echo '${'$as_ac_var'}'` = yes; then
16202   cat >>confdefs.h <<_ACEOF
16203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16204 _ACEOF
16205
16206 fi
16207 done
16208
16209 if test "x$ac_cv_func_fork" = xyes; then
16210   echo "$as_me:$LINENO: checking for working fork" >&5
16211 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16212 if test "${ac_cv_func_fork_works+set}" = set; then
16213   echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215   if test "$cross_compiling" = yes; then
16216   ac_cv_func_fork_works=cross
16217 else
16218   cat >conftest.$ac_ext <<_ACEOF
16219 /* By Ruediger Kuhlmann. */
16220       #include <sys/types.h>
16221       #if HAVE_UNISTD_H
16222       # include <unistd.h>
16223       #endif
16224       /* Some systems only have a dummy stub for fork() */
16225       int main ()
16226       {
16227         if (fork() < 0)
16228           exit (1);
16229         exit (0);
16230       }
16231 _ACEOF
16232 rm -f conftest$ac_exeext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16234   (eval $ac_link) 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239   (eval $ac_try) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; }; then
16243   ac_cv_func_fork_works=yes
16244 else
16245   echo "$as_me: program exited with status $ac_status" >&5
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249 ( exit $ac_status )
16250 ac_cv_func_fork_works=no
16251 fi
16252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16253 fi
16254 fi
16255 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16256 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16257
16258 else
16259   ac_cv_func_fork_works=$ac_cv_func_fork
16260 fi
16261 if test "x$ac_cv_func_fork_works" = xcross; then
16262   case $host in
16263     *-*-amigaos* | *-*-msdosdjgpp*)
16264       # Override, as these systems have only a dummy fork() stub
16265       ac_cv_func_fork_works=no
16266       ;;
16267     *)
16268       ac_cv_func_fork_works=yes
16269       ;;
16270   esac
16271   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16272 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16273 fi
16274 ac_cv_func_vfork_works=$ac_cv_func_vfork
16275 if test "x$ac_cv_func_vfork" = xyes; then
16276   echo "$as_me:$LINENO: checking for working vfork" >&5
16277 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16278 if test "${ac_cv_func_vfork_works+set}" = set; then
16279   echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281   if test "$cross_compiling" = yes; then
16282   ac_cv_func_vfork_works=cross
16283 else
16284   cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h.  */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h.  */
16290 /* Thanks to Paul Eggert for this test.  */
16291 #include <stdio.h>
16292 #include <stdlib.h>
16293 #include <sys/types.h>
16294 #include <sys/stat.h>
16295 #include <sys/wait.h>
16296 #if HAVE_UNISTD_H
16297 # include <unistd.h>
16298 #endif
16299 #if HAVE_VFORK_H
16300 # include <vfork.h>
16301 #endif
16302 /* On some sparc systems, changes by the child to local and incoming
16303    argument registers are propagated back to the parent.  The compiler
16304    is told about this with #include <vfork.h>, but some compilers
16305    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
16306    static variable whose address is put into a register that is
16307    clobbered by the vfork.  */
16308 static void
16309 #ifdef __cplusplus
16310 sparc_address_test (int arg)
16311 # else
16312 sparc_address_test (arg) int arg;
16313 #endif
16314 {
16315   static pid_t child;
16316   if (!child) {
16317     child = vfork ();
16318     if (child < 0) {
16319       perror ("vfork");
16320       _exit(2);
16321     }
16322     if (!child) {
16323       arg = getpid();
16324       write(-1, "", 0);
16325       _exit (arg);
16326     }
16327   }
16328 }
16329
16330 int
16331 main ()
16332 {
16333   pid_t parent = getpid ();
16334   pid_t child;
16335
16336   sparc_address_test (0);
16337
16338   child = vfork ();
16339
16340   if (child == 0) {
16341     /* Here is another test for sparc vfork register problems.  This
16342        test uses lots of local variables, at least as many local
16343        variables as main has allocated so far including compiler
16344        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
16345        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
16346        reuse the register of parent for one of the local variables,
16347        since it will think that parent can't possibly be used any more
16348        in this routine.  Assigning to the local variable will thus
16349        munge parent in the parent process.  */
16350     pid_t
16351       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16352       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16353     /* Convince the compiler that p..p7 are live; otherwise, it might
16354        use the same hardware register for all 8 local variables.  */
16355     if (p != p1 || p != p2 || p != p3 || p != p4
16356         || p != p5 || p != p6 || p != p7)
16357       _exit(1);
16358
16359     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16360        from child file descriptors.  If the child closes a descriptor
16361        before it execs or exits, this munges the parent's descriptor
16362        as well.  Test for this by closing stdout in the child.  */
16363     _exit(close(fileno(stdout)) != 0);
16364   } else {
16365     int status;
16366     struct stat st;
16367
16368     while (wait(&status) != child)
16369       ;
16370     exit(
16371          /* Was there some problem with vforking?  */
16372          child < 0
16373
16374          /* Did the child fail?  (This shouldn't happen.)  */
16375          || status
16376
16377          /* Did the vfork/compiler bug occur?  */
16378          || parent != getpid()
16379
16380          /* Did the file descriptor bug occur?  */
16381          || fstat(fileno(stdout), &st) != 0
16382          );
16383   }
16384 }
16385 _ACEOF
16386 rm -f conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388   (eval $ac_link) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393   (eval $ac_try) 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); }; }; then
16397   ac_cv_func_vfork_works=yes
16398 else
16399   echo "$as_me: program exited with status $ac_status" >&5
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 ( exit $ac_status )
16404 ac_cv_func_vfork_works=no
16405 fi
16406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16407 fi
16408 fi
16409 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16410 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16411
16412 fi;
16413 if test "x$ac_cv_func_fork_works" = xcross; then
16414   ac_cv_func_vfork_works=$ac_cv_func_vfork
16415   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16416 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16417 fi
16418
16419 if test "x$ac_cv_func_vfork_works" = xyes; then
16420
16421 cat >>confdefs.h <<\_ACEOF
16422 #define HAVE_WORKING_VFORK 1
16423 _ACEOF
16424
16425 else
16426
16427 cat >>confdefs.h <<\_ACEOF
16428 #define vfork fork
16429 _ACEOF
16430
16431 fi
16432 if test "x$ac_cv_func_fork_works" = xyes; then
16433
16434 cat >>confdefs.h <<\_ACEOF
16435 #define HAVE_WORKING_FORK 1
16436 _ACEOF
16437
16438 fi
16439
16440
16441
16442 for ac_func in canonicalize_file_name realpath
16443 do
16444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16445 echo "$as_me:$LINENO: checking for $ac_func" >&5
16446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16447 if eval "test \"\${$as_ac_var+set}\" = set"; then
16448   echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450   cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h.  */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h.  */
16456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16458 #define $ac_func innocuous_$ac_func
16459
16460 /* System header to define __stub macros and hopefully few prototypes,
16461     which can conflict with char $ac_func (); below.
16462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16463     <limits.h> exists even on freestanding compilers.  */
16464
16465 #ifdef __STDC__
16466 # include <limits.h>
16467 #else
16468 # include <assert.h>
16469 #endif
16470
16471 #undef $ac_func
16472
16473 /* Override any gcc2 internal prototype to avoid an error.  */
16474 #ifdef __cplusplus
16475 extern "C"
16476 {
16477 #endif
16478 /* We use char because int might match the return type of a gcc2
16479    builtin and then its argument prototype would still apply.  */
16480 char $ac_func ();
16481 /* The GNU C library defines this for functions which it implements
16482     to always fail with ENOSYS.  Some functions are actually named
16483     something starting with __ and the normal name is an alias.  */
16484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485 choke me
16486 #else
16487 char (*f) () = $ac_func;
16488 #endif
16489 #ifdef __cplusplus
16490 }
16491 #endif
16492
16493 int
16494 main ()
16495 {
16496 return f != $ac_func;
16497   ;
16498   return 0;
16499 }
16500 _ACEOF
16501 rm -f conftest.$ac_objext conftest$ac_exeext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16503   (eval $ac_link) 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -z "$ac_c_werror_flag"
16511                          || test ! -s conftest.err'
16512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513   (eval $ac_try) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; } &&
16517          { ac_try='test -s conftest$ac_exeext'
16518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519   (eval $ac_try) 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; }; then
16523   eval "$as_ac_var=yes"
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528 eval "$as_ac_var=no"
16529 fi
16530 rm -f conftest.err conftest.$ac_objext \
16531       conftest$ac_exeext conftest.$ac_ext
16532 fi
16533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16535 if test `eval echo '${'$as_ac_var'}'` = yes; then
16536   cat >>confdefs.h <<_ACEOF
16537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16538 _ACEOF
16539
16540 fi
16541 done
16542
16543
16544
16545 for ac_func in getuid getgid
16546 do
16547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16548 echo "$as_me:$LINENO: checking for $ac_func" >&5
16549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16550 if eval "test \"\${$as_ac_var+set}\" = set"; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h.  */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h.  */
16559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16561 #define $ac_func innocuous_$ac_func
16562
16563 /* System header to define __stub macros and hopefully few prototypes,
16564     which can conflict with char $ac_func (); below.
16565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566     <limits.h> exists even on freestanding compilers.  */
16567
16568 #ifdef __STDC__
16569 # include <limits.h>
16570 #else
16571 # include <assert.h>
16572 #endif
16573
16574 #undef $ac_func
16575
16576 /* Override any gcc2 internal prototype to avoid an error.  */
16577 #ifdef __cplusplus
16578 extern "C"
16579 {
16580 #endif
16581 /* We use char because int might match the return type of a gcc2
16582    builtin and then its argument prototype would still apply.  */
16583 char $ac_func ();
16584 /* The GNU C library defines this for functions which it implements
16585     to always fail with ENOSYS.  Some functions are actually named
16586     something starting with __ and the normal name is an alias.  */
16587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16588 choke me
16589 #else
16590 char (*f) () = $ac_func;
16591 #endif
16592 #ifdef __cplusplus
16593 }
16594 #endif
16595
16596 int
16597 main ()
16598 {
16599 return f != $ac_func;
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606   (eval $ac_link) 2>conftest.er1
16607   ac_status=$?
16608   grep -v '^ *+' conftest.er1 >conftest.err
16609   rm -f conftest.er1
16610   cat conftest.err >&5
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); } &&
16613          { ac_try='test -z "$ac_c_werror_flag"
16614                          || test ! -s conftest.err'
16615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616   (eval $ac_try) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; } &&
16620          { ac_try='test -s conftest$ac_exeext'
16621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622   (eval $ac_try) 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   eval "$as_ac_var=yes"
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 eval "$as_ac_var=no"
16632 fi
16633 rm -f conftest.err conftest.$ac_objext \
16634       conftest$ac_exeext conftest.$ac_ext
16635 fi
16636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16638 if test `eval echo '${'$as_ac_var'}'` = yes; then
16639   cat >>confdefs.h <<_ACEOF
16640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16641 _ACEOF
16642
16643 fi
16644 done
16645
16646
16647 for ac_func in poll
16648 do
16649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16650 echo "$as_me:$LINENO: checking for $ac_func" >&5
16651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16652 if eval "test \"\${$as_ac_var+set}\" = set"; then
16653   echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655   cat >conftest.$ac_ext <<_ACEOF
16656 /* confdefs.h.  */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h.  */
16661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16663 #define $ac_func innocuous_$ac_func
16664
16665 /* System header to define __stub macros and hopefully few prototypes,
16666     which can conflict with char $ac_func (); below.
16667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16668     <limits.h> exists even on freestanding compilers.  */
16669
16670 #ifdef __STDC__
16671 # include <limits.h>
16672 #else
16673 # include <assert.h>
16674 #endif
16675
16676 #undef $ac_func
16677
16678 /* Override any gcc2 internal prototype to avoid an error.  */
16679 #ifdef __cplusplus
16680 extern "C"
16681 {
16682 #endif
16683 /* We use char because int might match the return type of a gcc2
16684    builtin and then its argument prototype would still apply.  */
16685 char $ac_func ();
16686 /* The GNU C library defines this for functions which it implements
16687     to always fail with ENOSYS.  Some functions are actually named
16688     something starting with __ and the normal name is an alias.  */
16689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16690 choke me
16691 #else
16692 char (*f) () = $ac_func;
16693 #endif
16694 #ifdef __cplusplus
16695 }
16696 #endif
16697
16698 int
16699 main ()
16700 {
16701 return f != $ac_func;
16702   ;
16703   return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16708   (eval $ac_link) 2>conftest.er1
16709   ac_status=$?
16710   grep -v '^ *+' conftest.er1 >conftest.err
16711   rm -f conftest.er1
16712   cat conftest.err >&5
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } &&
16715          { ac_try='test -z "$ac_c_werror_flag"
16716                          || test ! -s conftest.err'
16717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718   (eval $ac_try) 2>&5
16719   ac_status=$?
16720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); }; } &&
16722          { ac_try='test -s conftest$ac_exeext'
16723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724   (eval $ac_try) 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); }; }; then
16728   eval "$as_ac_var=yes"
16729 else
16730   echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733 eval "$as_ac_var=no"
16734 fi
16735 rm -f conftest.err conftest.$ac_objext \
16736       conftest$ac_exeext conftest.$ac_ext
16737 fi
16738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741   cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743 _ACEOF
16744
16745 fi
16746 done
16747
16748
16749 for ac_func in pread64
16750 do
16751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16752 echo "$as_me:$LINENO: checking for $ac_func" >&5
16753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16754 if eval "test \"\${$as_ac_var+set}\" = set"; then
16755   echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757   cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h.  */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h.  */
16763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16765 #define $ac_func innocuous_$ac_func
16766
16767 /* System header to define __stub macros and hopefully few prototypes,
16768     which can conflict with char $ac_func (); below.
16769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770     <limits.h> exists even on freestanding compilers.  */
16771
16772 #ifdef __STDC__
16773 # include <limits.h>
16774 #else
16775 # include <assert.h>
16776 #endif
16777
16778 #undef $ac_func
16779
16780 /* Override any gcc2 internal prototype to avoid an error.  */
16781 #ifdef __cplusplus
16782 extern "C"
16783 {
16784 #endif
16785 /* We use char because int might match the return type of a gcc2
16786    builtin and then its argument prototype would still apply.  */
16787 char $ac_func ();
16788 /* The GNU C library defines this for functions which it implements
16789     to always fail with ENOSYS.  Some functions are actually named
16790     something starting with __ and the normal name is an alias.  */
16791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16792 choke me
16793 #else
16794 char (*f) () = $ac_func;
16795 #endif
16796 #ifdef __cplusplus
16797 }
16798 #endif
16799
16800 int
16801 main ()
16802 {
16803 return f != $ac_func;
16804   ;
16805   return 0;
16806 }
16807 _ACEOF
16808 rm -f conftest.$ac_objext conftest$ac_exeext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16810   (eval $ac_link) 2>conftest.er1
16811   ac_status=$?
16812   grep -v '^ *+' conftest.er1 >conftest.err
16813   rm -f conftest.er1
16814   cat conftest.err >&5
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); } &&
16817          { ac_try='test -z "$ac_c_werror_flag"
16818                          || test ! -s conftest.err'
16819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820   (eval $ac_try) 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; } &&
16824          { ac_try='test -s conftest$ac_exeext'
16825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826   (eval $ac_try) 2>&5
16827   ac_status=$?
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); }; }; then
16830   eval "$as_ac_var=yes"
16831 else
16832   echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16834
16835 eval "$as_ac_var=no"
16836 fi
16837 rm -f conftest.err conftest.$ac_objext \
16838       conftest$ac_exeext conftest.$ac_ext
16839 fi
16840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16842 if test `eval echo '${'$as_ac_var'}'` = yes; then
16843   cat >>confdefs.h <<_ACEOF
16844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16845 _ACEOF
16846
16847 fi
16848 done
16849
16850
16851 for ac_func in sbrk
16852 do
16853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16854 echo "$as_me:$LINENO: checking for $ac_func" >&5
16855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16856 if eval "test \"\${$as_ac_var+set}\" = set"; then
16857   echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859   cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16867 #define $ac_func innocuous_$ac_func
16868
16869 /* System header to define __stub macros and hopefully few prototypes,
16870     which can conflict with char $ac_func (); below.
16871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16872     <limits.h> exists even on freestanding compilers.  */
16873
16874 #ifdef __STDC__
16875 # include <limits.h>
16876 #else
16877 # include <assert.h>
16878 #endif
16879
16880 #undef $ac_func
16881
16882 /* Override any gcc2 internal prototype to avoid an error.  */
16883 #ifdef __cplusplus
16884 extern "C"
16885 {
16886 #endif
16887 /* We use char because int might match the return type of a gcc2
16888    builtin and then its argument prototype would still apply.  */
16889 char $ac_func ();
16890 /* The GNU C library defines this for functions which it implements
16891     to always fail with ENOSYS.  Some functions are actually named
16892     something starting with __ and the normal name is an alias.  */
16893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16894 choke me
16895 #else
16896 char (*f) () = $ac_func;
16897 #endif
16898 #ifdef __cplusplus
16899 }
16900 #endif
16901
16902 int
16903 main ()
16904 {
16905 return f != $ac_func;
16906   ;
16907   return 0;
16908 }
16909 _ACEOF
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912   (eval $ac_link) 2>conftest.er1
16913   ac_status=$?
16914   grep -v '^ *+' conftest.er1 >conftest.err
16915   rm -f conftest.er1
16916   cat conftest.err >&5
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); } &&
16919          { ac_try='test -z "$ac_c_werror_flag"
16920                          || test ! -s conftest.err'
16921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922   (eval $ac_try) 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); }; } &&
16926          { ac_try='test -s conftest$ac_exeext'
16927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928   (eval $ac_try) 2>&5
16929   ac_status=$?
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); }; }; then
16932   eval "$as_ac_var=yes"
16933 else
16934   echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 eval "$as_ac_var=no"
16938 fi
16939 rm -f conftest.err conftest.$ac_objext \
16940       conftest$ac_exeext conftest.$ac_ext
16941 fi
16942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16944 if test `eval echo '${'$as_ac_var'}'` = yes; then
16945   cat >>confdefs.h <<_ACEOF
16946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16947 _ACEOF
16948
16949 fi
16950 done
16951
16952
16953
16954 for ac_func in setpgid setpgrp
16955 do
16956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16957 echo "$as_me:$LINENO: checking for $ac_func" >&5
16958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16959 if eval "test \"\${$as_ac_var+set}\" = set"; then
16960   echo $ECHO_N "(cached) $ECHO_C" >&6
16961 else
16962   cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h.  */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h.  */
16968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16970 #define $ac_func innocuous_$ac_func
16971
16972 /* System header to define __stub macros and hopefully few prototypes,
16973     which can conflict with char $ac_func (); below.
16974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16975     <limits.h> exists even on freestanding compilers.  */
16976
16977 #ifdef __STDC__
16978 # include <limits.h>
16979 #else
16980 # include <assert.h>
16981 #endif
16982
16983 #undef $ac_func
16984
16985 /* Override any gcc2 internal prototype to avoid an error.  */
16986 #ifdef __cplusplus
16987 extern "C"
16988 {
16989 #endif
16990 /* We use char because int might match the return type of a gcc2
16991    builtin and then its argument prototype would still apply.  */
16992 char $ac_func ();
16993 /* The GNU C library defines this for functions which it implements
16994     to always fail with ENOSYS.  Some functions are actually named
16995     something starting with __ and the normal name is an alias.  */
16996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16997 choke me
16998 #else
16999 char (*f) () = $ac_func;
17000 #endif
17001 #ifdef __cplusplus
17002 }
17003 #endif
17004
17005 int
17006 main ()
17007 {
17008 return f != $ac_func;
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015   (eval $ac_link) 2>conftest.er1
17016   ac_status=$?
17017   grep -v '^ *+' conftest.er1 >conftest.err
17018   rm -f conftest.er1
17019   cat conftest.err >&5
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); } &&
17022          { ac_try='test -z "$ac_c_werror_flag"
17023                          || test ! -s conftest.err'
17024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025   (eval $ac_try) 2>&5
17026   ac_status=$?
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); }; } &&
17029          { ac_try='test -s conftest$ac_exeext'
17030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031   (eval $ac_try) 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; }; then
17035   eval "$as_ac_var=yes"
17036 else
17037   echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 eval "$as_ac_var=no"
17041 fi
17042 rm -f conftest.err conftest.$ac_objext \
17043       conftest$ac_exeext conftest.$ac_ext
17044 fi
17045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17047 if test `eval echo '${'$as_ac_var'}'` = yes; then
17048   cat >>confdefs.h <<_ACEOF
17049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17050 _ACEOF
17051
17052 fi
17053 done
17054
17055
17056
17057
17058 for ac_func in sigaction sigprocmask sigsetmask
17059 do
17060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17061 echo "$as_me:$LINENO: checking for $ac_func" >&5
17062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17063 if eval "test \"\${$as_ac_var+set}\" = set"; then
17064   echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066   cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17074 #define $ac_func innocuous_$ac_func
17075
17076 /* System header to define __stub macros and hopefully few prototypes,
17077     which can conflict with char $ac_func (); below.
17078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079     <limits.h> exists even on freestanding compilers.  */
17080
17081 #ifdef __STDC__
17082 # include <limits.h>
17083 #else
17084 # include <assert.h>
17085 #endif
17086
17087 #undef $ac_func
17088
17089 /* Override any gcc2 internal prototype to avoid an error.  */
17090 #ifdef __cplusplus
17091 extern "C"
17092 {
17093 #endif
17094 /* We use char because int might match the return type of a gcc2
17095    builtin and then its argument prototype would still apply.  */
17096 char $ac_func ();
17097 /* The GNU C library defines this for functions which it implements
17098     to always fail with ENOSYS.  Some functions are actually named
17099     something starting with __ and the normal name is an alias.  */
17100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17101 choke me
17102 #else
17103 char (*f) () = $ac_func;
17104 #endif
17105 #ifdef __cplusplus
17106 }
17107 #endif
17108
17109 int
17110 main ()
17111 {
17112 return f != $ac_func;
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119   (eval $ac_link) 2>conftest.er1
17120   ac_status=$?
17121   grep -v '^ *+' conftest.er1 >conftest.err
17122   rm -f conftest.er1
17123   cat conftest.err >&5
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } &&
17126          { ac_try='test -z "$ac_c_werror_flag"
17127                          || test ! -s conftest.err'
17128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; } &&
17133          { ac_try='test -s conftest$ac_exeext'
17134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135   (eval $ac_try) 2>&5
17136   ac_status=$?
17137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); }; }; then
17139   eval "$as_ac_var=yes"
17140 else
17141   echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144 eval "$as_ac_var=no"
17145 fi
17146 rm -f conftest.err conftest.$ac_objext \
17147       conftest$ac_exeext conftest.$ac_ext
17148 fi
17149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17151 if test `eval echo '${'$as_ac_var'}'` = yes; then
17152   cat >>confdefs.h <<_ACEOF
17153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17154 _ACEOF
17155
17156 fi
17157 done
17158
17159
17160 for ac_func in socketpair
17161 do
17162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163 echo "$as_me:$LINENO: checking for $ac_func" >&5
17164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17165 if eval "test \"\${$as_ac_var+set}\" = set"; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168   cat >conftest.$ac_ext <<_ACEOF
17169 /* confdefs.h.  */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h.  */
17174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17176 #define $ac_func innocuous_$ac_func
17177
17178 /* System header to define __stub macros and hopefully few prototypes,
17179     which can conflict with char $ac_func (); below.
17180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17181     <limits.h> exists even on freestanding compilers.  */
17182
17183 #ifdef __STDC__
17184 # include <limits.h>
17185 #else
17186 # include <assert.h>
17187 #endif
17188
17189 #undef $ac_func
17190
17191 /* Override any gcc2 internal prototype to avoid an error.  */
17192 #ifdef __cplusplus
17193 extern "C"
17194 {
17195 #endif
17196 /* We use char because int might match the return type of a gcc2
17197    builtin and then its argument prototype would still apply.  */
17198 char $ac_func ();
17199 /* The GNU C library defines this for functions which it implements
17200     to always fail with ENOSYS.  Some functions are actually named
17201     something starting with __ and the normal name is an alias.  */
17202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17203 choke me
17204 #else
17205 char (*f) () = $ac_func;
17206 #endif
17207 #ifdef __cplusplus
17208 }
17209 #endif
17210
17211 int
17212 main ()
17213 {
17214 return f != $ac_func;
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17221   (eval $ac_link) 2>conftest.er1
17222   ac_status=$?
17223   grep -v '^ *+' conftest.er1 >conftest.err
17224   rm -f conftest.er1
17225   cat conftest.err >&5
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); } &&
17228          { ac_try='test -z "$ac_c_werror_flag"
17229                          || test ! -s conftest.err'
17230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231   (eval $ac_try) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest$ac_exeext'
17236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237   (eval $ac_try) 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; }; then
17241   eval "$as_ac_var=yes"
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246 eval "$as_ac_var=no"
17247 fi
17248 rm -f conftest.err conftest.$ac_objext \
17249       conftest$ac_exeext conftest.$ac_ext
17250 fi
17251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17253 if test `eval echo '${'$as_ac_var'}'` = yes; then
17254   cat >>confdefs.h <<_ACEOF
17255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17256 _ACEOF
17257
17258 fi
17259 done
17260
17261
17262 for ac_func in syscall
17263 do
17264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17265 echo "$as_me:$LINENO: checking for $ac_func" >&5
17266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17267 if eval "test \"\${$as_ac_var+set}\" = set"; then
17268   echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270   cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17278 #define $ac_func innocuous_$ac_func
17279
17280 /* System header to define __stub macros and hopefully few prototypes,
17281     which can conflict with char $ac_func (); below.
17282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17283     <limits.h> exists even on freestanding compilers.  */
17284
17285 #ifdef __STDC__
17286 # include <limits.h>
17287 #else
17288 # include <assert.h>
17289 #endif
17290
17291 #undef $ac_func
17292
17293 /* Override any gcc2 internal prototype to avoid an error.  */
17294 #ifdef __cplusplus
17295 extern "C"
17296 {
17297 #endif
17298 /* We use char because int might match the return type of a gcc2
17299    builtin and then its argument prototype would still apply.  */
17300 char $ac_func ();
17301 /* The GNU C library defines this for functions which it implements
17302     to always fail with ENOSYS.  Some functions are actually named
17303     something starting with __ and the normal name is an alias.  */
17304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17305 choke me
17306 #else
17307 char (*f) () = $ac_func;
17308 #endif
17309 #ifdef __cplusplus
17310 }
17311 #endif
17312
17313 int
17314 main ()
17315 {
17316 return f != $ac_func;
17317   ;
17318   return 0;
17319 }
17320 _ACEOF
17321 rm -f conftest.$ac_objext conftest$ac_exeext
17322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17323   (eval $ac_link) 2>conftest.er1
17324   ac_status=$?
17325   grep -v '^ *+' conftest.er1 >conftest.err
17326   rm -f conftest.er1
17327   cat conftest.err >&5
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); } &&
17330          { ac_try='test -z "$ac_c_werror_flag"
17331                          || test ! -s conftest.err'
17332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333   (eval $ac_try) 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); }; } &&
17337          { ac_try='test -s conftest$ac_exeext'
17338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339   (eval $ac_try) 2>&5
17340   ac_status=$?
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); }; }; then
17343   eval "$as_ac_var=yes"
17344 else
17345   echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348 eval "$as_ac_var=no"
17349 fi
17350 rm -f conftest.err conftest.$ac_objext \
17351       conftest$ac_exeext conftest.$ac_ext
17352 fi
17353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17355 if test `eval echo '${'$as_ac_var'}'` = yes; then
17356   cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17358 _ACEOF
17359
17360 fi
17361 done
17362
17363
17364 for ac_func in ttrace
17365 do
17366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17367 echo "$as_me:$LINENO: checking for $ac_func" >&5
17368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17369 if eval "test \"\${$as_ac_var+set}\" = set"; then
17370   echo $ECHO_N "(cached) $ECHO_C" >&6
17371 else
17372   cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h.  */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h.  */
17378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17380 #define $ac_func innocuous_$ac_func
17381
17382 /* System header to define __stub macros and hopefully few prototypes,
17383     which can conflict with char $ac_func (); below.
17384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17385     <limits.h> exists even on freestanding compilers.  */
17386
17387 #ifdef __STDC__
17388 # include <limits.h>
17389 #else
17390 # include <assert.h>
17391 #endif
17392
17393 #undef $ac_func
17394
17395 /* Override any gcc2 internal prototype to avoid an error.  */
17396 #ifdef __cplusplus
17397 extern "C"
17398 {
17399 #endif
17400 /* We use char because int might match the return type of a gcc2
17401    builtin and then its argument prototype would still apply.  */
17402 char $ac_func ();
17403 /* The GNU C library defines this for functions which it implements
17404     to always fail with ENOSYS.  Some functions are actually named
17405     something starting with __ and the normal name is an alias.  */
17406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17407 choke me
17408 #else
17409 char (*f) () = $ac_func;
17410 #endif
17411 #ifdef __cplusplus
17412 }
17413 #endif
17414
17415 int
17416 main ()
17417 {
17418 return f != $ac_func;
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425   (eval $ac_link) 2>conftest.er1
17426   ac_status=$?
17427   grep -v '^ *+' conftest.er1 >conftest.err
17428   rm -f conftest.er1
17429   cat conftest.err >&5
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } &&
17432          { ac_try='test -z "$ac_c_werror_flag"
17433                          || test ! -s conftest.err'
17434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435   (eval $ac_try) 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; } &&
17439          { ac_try='test -s conftest$ac_exeext'
17440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441   (eval $ac_try) 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); }; }; then
17445   eval "$as_ac_var=yes"
17446 else
17447   echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450 eval "$as_ac_var=no"
17451 fi
17452 rm -f conftest.err conftest.$ac_objext \
17453       conftest$ac_exeext conftest.$ac_ext
17454 fi
17455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17457 if test `eval echo '${'$as_ac_var'}'` = yes; then
17458   cat >>confdefs.h <<_ACEOF
17459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17460 _ACEOF
17461
17462 fi
17463 done
17464
17465
17466 for ac_func in wborder
17467 do
17468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17469 echo "$as_me:$LINENO: checking for $ac_func" >&5
17470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17471 if eval "test \"\${$as_ac_var+set}\" = set"; then
17472   echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474   cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17482 #define $ac_func innocuous_$ac_func
17483
17484 /* System header to define __stub macros and hopefully few prototypes,
17485     which can conflict with char $ac_func (); below.
17486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17487     <limits.h> exists even on freestanding compilers.  */
17488
17489 #ifdef __STDC__
17490 # include <limits.h>
17491 #else
17492 # include <assert.h>
17493 #endif
17494
17495 #undef $ac_func
17496
17497 /* Override any gcc2 internal prototype to avoid an error.  */
17498 #ifdef __cplusplus
17499 extern "C"
17500 {
17501 #endif
17502 /* We use char because int might match the return type of a gcc2
17503    builtin and then its argument prototype would still apply.  */
17504 char $ac_func ();
17505 /* The GNU C library defines this for functions which it implements
17506     to always fail with ENOSYS.  Some functions are actually named
17507     something starting with __ and the normal name is an alias.  */
17508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17509 choke me
17510 #else
17511 char (*f) () = $ac_func;
17512 #endif
17513 #ifdef __cplusplus
17514 }
17515 #endif
17516
17517 int
17518 main ()
17519 {
17520 return f != $ac_func;
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527   (eval $ac_link) 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } &&
17534          { ac_try='test -z "$ac_c_werror_flag"
17535                          || test ! -s conftest.err'
17536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537   (eval $ac_try) 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; } &&
17541          { ac_try='test -s conftest$ac_exeext'
17542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543   (eval $ac_try) 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; }; then
17547   eval "$as_ac_var=yes"
17548 else
17549   echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552 eval "$as_ac_var=no"
17553 fi
17554 rm -f conftest.err conftest.$ac_objext \
17555       conftest$ac_exeext conftest.$ac_ext
17556 fi
17557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17559 if test `eval echo '${'$as_ac_var'}'` = yes; then
17560   cat >>confdefs.h <<_ACEOF
17561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17562 _ACEOF
17563
17564 fi
17565 done
17566
17567
17568 # Check the return and argument types of ptrace.  No canned test for
17569 # this, so roll our own.
17570 gdb_ptrace_headers='
17571 #if HAVE_SYS_TYPES_H
17572 # include <sys/types.h>
17573 #endif
17574 #if HAVE_SYS_PTRACE_H
17575 # include <sys/ptrace.h>
17576 #endif
17577 #if HAVE_UNISTD_H
17578 # include <unistd.h>
17579 #endif
17580 '
17581 # There is no point in checking if we don't have a prototype.
17582 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
17583 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
17584 if test "${ac_cv_have_decl_ptrace+set}" = set; then
17585   echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587   cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593 $gdb_ptrace_headers
17594
17595 int
17596 main ()
17597 {
17598 #ifndef ptrace
17599   char *p = (char *) ptrace;
17600 #endif
17601
17602   ;
17603   return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext
17607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17608   (eval $ac_compile) 2>conftest.er1
17609   ac_status=$?
17610   grep -v '^ *+' conftest.er1 >conftest.err
17611   rm -f conftest.er1
17612   cat conftest.err >&5
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); } &&
17615          { ac_try='test -z "$ac_c_werror_flag"
17616                          || test ! -s conftest.err'
17617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618   (eval $ac_try) 2>&5
17619   ac_status=$?
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); }; } &&
17622          { ac_try='test -s conftest.$ac_objext'
17623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624   (eval $ac_try) 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; }; then
17628   ac_cv_have_decl_ptrace=yes
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633 ac_cv_have_decl_ptrace=no
17634 fi
17635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17636 fi
17637 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
17638 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
17639 if test $ac_cv_have_decl_ptrace = yes; then
17640
17641 cat >>confdefs.h <<_ACEOF
17642 #define HAVE_DECL_PTRACE 1
17643 _ACEOF
17644
17645
17646 else
17647   cat >>confdefs.h <<_ACEOF
17648 #define HAVE_DECL_PTRACE 0
17649 _ACEOF
17650
17651
17652   : ${gdb_cv_func_ptrace_ret='int'}
17653   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17654
17655 fi
17656
17657
17658 # Check return type.
17659 echo "$as_me:$LINENO: checking return type of ptrace" >&5
17660 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
17661 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
17662   echo $ECHO_N "(cached) $ECHO_C" >&6
17663 else
17664   cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h.  */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h.  */
17670 $gdb_ptrace_headers
17671 int
17672 main ()
17673 {
17674 extern int ptrace ();
17675   ;
17676   return 0;
17677 }
17678 _ACEOF
17679 rm -f conftest.$ac_objext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681   (eval $ac_compile) 2>conftest.er1
17682   ac_status=$?
17683   grep -v '^ *+' conftest.er1 >conftest.err
17684   rm -f conftest.er1
17685   cat conftest.err >&5
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } &&
17688          { ac_try='test -z "$ac_c_werror_flag"
17689                          || test ! -s conftest.err'
17690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691   (eval $ac_try) 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); }; } &&
17695          { ac_try='test -s conftest.$ac_objext'
17696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697   (eval $ac_try) 2>&5
17698   ac_status=$?
17699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700   (exit $ac_status); }; }; then
17701   gdb_cv_func_ptrace_ret='int'
17702 else
17703   echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17705
17706 gdb_cv_func_ptrace_ret='long'
17707 fi
17708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17709 fi
17710 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
17711 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
17712
17713 cat >>confdefs.h <<_ACEOF
17714 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
17715 _ACEOF
17716
17717 # Check argument types.
17718 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
17719 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
17720 if test "${gdb_cv_func_ptrace_args+set}" = set; then
17721   echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723
17724 for gdb_arg1 in 'int' 'long'; do
17725  for gdb_arg2 in 'pid_t' 'int' 'long'; do
17726   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
17727    for gdb_arg4 in 'int' 'long'; do
17728      cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h.  */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h.  */
17734 $gdb_ptrace_headers
17735 int
17736 main ()
17737 {
17738
17739 extern $gdb_cv_func_ptrace_ret
17740   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
17741
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 rm -f conftest.$ac_objext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17748   (eval $ac_compile) 2>conftest.er1
17749   ac_status=$?
17750   grep -v '^ *+' conftest.er1 >conftest.err
17751   rm -f conftest.er1
17752   cat conftest.err >&5
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } &&
17755          { ac_try='test -z "$ac_c_werror_flag"
17756                          || test ! -s conftest.err'
17757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758   (eval $ac_try) 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; } &&
17762          { ac_try='test -s conftest.$ac_objext'
17763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764   (eval $ac_try) 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; }; then
17768   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
17769     break 4;
17770 else
17771   echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 fi
17775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17776     for gdb_arg5 in 'int *' 'int' 'long'; do
17777      cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783 $gdb_ptrace_headers
17784 int
17785 main ()
17786 {
17787
17788 extern $gdb_cv_func_ptrace_ret
17789   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
17790
17791   ;
17792   return 0;
17793 }
17794 _ACEOF
17795 rm -f conftest.$ac_objext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797   (eval $ac_compile) 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } &&
17804          { ac_try='test -z "$ac_c_werror_flag"
17805                          || test ! -s conftest.err'
17806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807   (eval $ac_try) 2>&5
17808   ac_status=$?
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); }; } &&
17811          { ac_try='test -s conftest.$ac_objext'
17812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813   (eval $ac_try) 2>&5
17814   ac_status=$?
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); }; }; then
17817
17818 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
17819     break 5;
17820 else
17821   echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824 fi
17825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17826     done
17827    done
17828   done
17829  done
17830 done
17831 # Provide a safe default value.
17832 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17833
17834 fi
17835 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
17836 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
17837 ac_save_IFS=$IFS; IFS=','
17838 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
17839 IFS=$ac_save_IFS
17840 shift
17841
17842 cat >>confdefs.h <<_ACEOF
17843 #define PTRACE_TYPE_ARG3 $3
17844 _ACEOF
17845
17846 if test -n "$5"; then
17847
17848 cat >>confdefs.h <<_ACEOF
17849 #define PTRACE_TYPE_ARG5 $5
17850 _ACEOF
17851
17852 fi
17853
17854 if test "$cross_compiling" = no; then
17855   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17856 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17857 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17858   echo $ECHO_N "(cached) $ECHO_C" >&6
17859 else
17860   if test "$cross_compiling" = yes; then
17861   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17862 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17863    { (exit 1); exit 1; }; }
17864 else
17865   cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h.  */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h.  */
17871 #if HAVE_UNISTD_H
17872 # include <unistd.h>
17873 #endif
17874
17875 int
17876 main ()
17877 {
17878 /* If this system has a BSD-style setpgrp which takes arguments,
17879   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17880   exit successfully. */
17881   exit (setpgrp (1,1) == -1 ? 0 : 1);
17882   ;
17883   return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888   (eval $ac_link) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893   (eval $ac_try) 2>&5
17894   ac_status=$?
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); }; }; then
17897   ac_cv_func_setpgrp_void=no
17898 else
17899   echo "$as_me: program exited with status $ac_status" >&5
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903 ( exit $ac_status )
17904 ac_cv_func_setpgrp_void=yes
17905 fi
17906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17907 fi
17908 fi
17909 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17910 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17911 if test $ac_cv_func_setpgrp_void = yes; then
17912
17913 cat >>confdefs.h <<\_ACEOF
17914 #define SETPGRP_VOID 1
17915 _ACEOF
17916
17917 fi
17918
17919 else
17920   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17921 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17922 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17923   echo $ECHO_N "(cached) $ECHO_C" >&6
17924 else
17925   cat >conftest.$ac_ext <<_ACEOF
17926 /* confdefs.h.  */
17927 _ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h.  */
17931
17932 #include <unistd.h>
17933
17934 int
17935 main ()
17936 {
17937
17938   if (setpgrp(1,1) == -1)
17939     exit (0);
17940   else
17941     exit (1);
17942
17943   ;
17944   return 0;
17945 }
17946 _ACEOF
17947 rm -f conftest.$ac_objext
17948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17949   (eval $ac_compile) 2>conftest.er1
17950   ac_status=$?
17951   grep -v '^ *+' conftest.er1 >conftest.err
17952   rm -f conftest.er1
17953   cat conftest.err >&5
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); } &&
17956          { ac_try='test -z "$ac_c_werror_flag"
17957                          || test ! -s conftest.err'
17958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959   (eval $ac_try) 2>&5
17960   ac_status=$?
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); }; } &&
17963          { ac_try='test -s conftest.$ac_objext'
17964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965   (eval $ac_try) 2>&5
17966   ac_status=$?
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); }; }; then
17969   ac_cv_func_setpgrp_void=no
17970 else
17971   echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17973
17974 ac_cv_func_setpgrp_void=yes
17975 fi
17976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17977 fi
17978 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17979 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17980 if test $ac_cv_func_setpgrp_void = yes; then
17981   cat >>confdefs.h <<\_ACEOF
17982 #define SETPGRP_VOID 1
17983 _ACEOF
17984
17985 fi
17986 fi
17987
17988 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
17989 # since sigsetjmp might only be defined as a macro.
17990 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17991 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17992 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
17993   echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995   cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h.  */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h.  */
18001
18002 #include <setjmp.h>
18003
18004 int
18005 main ()
18006 {
18007 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 rm -f conftest.$ac_objext
18013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18014   (eval $ac_compile) 2>conftest.er1
18015   ac_status=$?
18016   grep -v '^ *+' conftest.er1 >conftest.err
18017   rm -f conftest.er1
18018   cat conftest.err >&5
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); } &&
18021          { ac_try='test -z "$ac_c_werror_flag"
18022                          || test ! -s conftest.err'
18023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024   (eval $ac_try) 2>&5
18025   ac_status=$?
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); }; } &&
18028          { ac_try='test -s conftest.$ac_objext'
18029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030   (eval $ac_try) 2>&5
18031   ac_status=$?
18032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033   (exit $ac_status); }; }; then
18034   gdb_cv_func_sigsetjmp=yes
18035 else
18036   echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18038
18039 gdb_cv_func_sigsetjmp=no
18040 fi
18041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18042 fi
18043 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18044 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
18045 if test $gdb_cv_func_sigsetjmp = yes; then
18046
18047 cat >>confdefs.h <<\_ACEOF
18048 #define HAVE_SIGSETJMP 1
18049 _ACEOF
18050
18051 fi
18052
18053 # Assume we'll default to using the included libiberty regex.
18054 gdb_use_included_regex=yes
18055
18056 # However, if the system regex is GNU regex, then default to *not*
18057 # using the included regex.
18058 echo "$as_me:$LINENO: checking for GNU regex" >&5
18059 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
18060 if test "${gdb_cv_have_gnu_regex+set}" = set; then
18061   echo $ECHO_N "(cached) $ECHO_C" >&6
18062 else
18063   cat >conftest.$ac_ext <<_ACEOF
18064 /* confdefs.h.  */
18065 _ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h.  */
18069 #include <gnu-versions.h>
18070 int
18071 main ()
18072 {
18073 #define REGEX_INTERFACE_VERSION 1
18074 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18075 # error "Version mismatch"
18076 #endif
18077   ;
18078   return 0;
18079 }
18080 _ACEOF
18081 rm -f conftest.$ac_objext
18082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18083   (eval $ac_compile) 2>conftest.er1
18084   ac_status=$?
18085   grep -v '^ *+' conftest.er1 >conftest.err
18086   rm -f conftest.er1
18087   cat conftest.err >&5
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); } &&
18090          { ac_try='test -z "$ac_c_werror_flag"
18091                          || test ! -s conftest.err'
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); }; } &&
18097          { ac_try='test -s conftest.$ac_objext'
18098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099   (eval $ac_try) 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }; }; then
18103   gdb_cv_have_gnu_regex=yes
18104 else
18105   echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108 gdb_cv_have_gnu_regex=no
18109 fi
18110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18111 fi
18112 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18113 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
18114 if test $gdb_cv_have_gnu_regex = yes; then
18115   gdb_use_included_regex=no
18116 fi
18117
18118
18119 # Check whether --with-included-regex or --without-included-regex was given.
18120 if test "${with_included_regex+set}" = set; then
18121   withval="$with_included_regex"
18122   gdb_with_regex=$withval
18123 else
18124   gdb_with_regex=$gdb_use_included_regex
18125 fi;
18126 if test "$gdb_with_regex" = yes; then
18127
18128 cat >>confdefs.h <<\_ACEOF
18129 #define USE_INCLUDED_REGEX 1
18130 _ACEOF
18131
18132 fi
18133
18134 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
18135 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18136 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
18137 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 #include <sys/param.h>
18147 #include <sys/proc.h>
18148
18149
18150 int
18151 main ()
18152 {
18153 static struct thread ac_aggr;
18154 if (ac_aggr.td_pcb)
18155 return 0;
18156   ;
18157   return 0;
18158 }
18159 _ACEOF
18160 rm -f conftest.$ac_objext
18161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18162   (eval $ac_compile) 2>conftest.er1
18163   ac_status=$?
18164   grep -v '^ *+' conftest.er1 >conftest.err
18165   rm -f conftest.er1
18166   cat conftest.err >&5
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); } &&
18169          { ac_try='test -z "$ac_c_werror_flag"
18170                          || test ! -s conftest.err'
18171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172   (eval $ac_try) 2>&5
18173   ac_status=$?
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); }; } &&
18176          { ac_try='test -s conftest.$ac_objext'
18177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178   (eval $ac_try) 2>&5
18179   ac_status=$?
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); }; }; then
18182   ac_cv_member_struct_thread_td_pcb=yes
18183 else
18184   echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18186
18187 cat >conftest.$ac_ext <<_ACEOF
18188 /* confdefs.h.  */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h.  */
18193 #include <sys/param.h>
18194 #include <sys/proc.h>
18195
18196
18197 int
18198 main ()
18199 {
18200 static struct thread ac_aggr;
18201 if (sizeof ac_aggr.td_pcb)
18202 return 0;
18203   ;
18204   return 0;
18205 }
18206 _ACEOF
18207 rm -f conftest.$ac_objext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209   (eval $ac_compile) 2>conftest.er1
18210   ac_status=$?
18211   grep -v '^ *+' conftest.er1 >conftest.err
18212   rm -f conftest.er1
18213   cat conftest.err >&5
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); } &&
18216          { ac_try='test -z "$ac_c_werror_flag"
18217                          || test ! -s conftest.err'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; } &&
18223          { ac_try='test -s conftest.$ac_objext'
18224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225   (eval $ac_try) 2>&5
18226   ac_status=$?
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); }; }; then
18229   ac_cv_member_struct_thread_td_pcb=yes
18230 else
18231   echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234 ac_cv_member_struct_thread_td_pcb=no
18235 fi
18236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18237 fi
18238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18239 fi
18240 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18241 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
18242 if test $ac_cv_member_struct_thread_td_pcb = yes; then
18243
18244 cat >>confdefs.h <<_ACEOF
18245 #define HAVE_STRUCT_THREAD_TD_PCB 1
18246 _ACEOF
18247
18248
18249 fi
18250
18251
18252 # See if <sys/lwp.h> defines `struct lwp`.
18253 echo "$as_me:$LINENO: checking for struct lwp" >&5
18254 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
18255 if test "${gdb_cv_struct_lwp+set}" = set; then
18256   echo $ECHO_N "(cached) $ECHO_C" >&6
18257 else
18258   cat >conftest.$ac_ext <<_ACEOF
18259 /* confdefs.h.  */
18260 _ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h.  */
18264 #include <sys/param.h>
18265 #include <sys/lwp.h>
18266 int
18267 main ()
18268 {
18269 struct lwp l;
18270   ;
18271   return 0;
18272 }
18273 _ACEOF
18274 rm -f conftest.$ac_objext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276   (eval $ac_compile) 2>conftest.er1
18277   ac_status=$?
18278   grep -v '^ *+' conftest.er1 >conftest.err
18279   rm -f conftest.er1
18280   cat conftest.err >&5
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); } &&
18283          { ac_try='test -z "$ac_c_werror_flag"
18284                          || test ! -s conftest.err'
18285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286   (eval $ac_try) 2>&5
18287   ac_status=$?
18288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); }; } &&
18290          { ac_try='test -s conftest.$ac_objext'
18291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292   (eval $ac_try) 2>&5
18293   ac_status=$?
18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295   (exit $ac_status); }; }; then
18296   gdb_cv_struct_lwp=yes
18297 else
18298   echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18300
18301 gdb_cv_struct_lwp=no
18302 fi
18303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18304 fi
18305 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18306 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
18307 if test $gdb_cv_struct_lwp = yes; then
18308
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_STRUCT_LWP 1
18311 _ACEOF
18312
18313 fi
18314
18315 # See if <machine/reg.h> degines `struct reg'.
18316 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18317 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
18318 if test "${gdb_cv_struct_reg+set}" = set; then
18319   echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321   cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h.  */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h.  */
18327 #include <sys/types.h>
18328 #include <machine/reg.h>
18329 int
18330 main ()
18331 {
18332 struct reg r;
18333   ;
18334   return 0;
18335 }
18336 _ACEOF
18337 rm -f conftest.$ac_objext
18338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18339   (eval $ac_compile) 2>conftest.er1
18340   ac_status=$?
18341   grep -v '^ *+' conftest.er1 >conftest.err
18342   rm -f conftest.er1
18343   cat conftest.err >&5
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); } &&
18346          { ac_try='test -z "$ac_c_werror_flag"
18347                          || test ! -s conftest.err'
18348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349   (eval $ac_try) 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; } &&
18353          { ac_try='test -s conftest.$ac_objext'
18354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355   (eval $ac_try) 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); }; }; then
18359   gdb_cv_struct_reg=yes
18360 else
18361   echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 gdb_cv_struct_reg=no
18365 fi
18366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18367 fi
18368 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18369 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
18370 if test $gdb_cv_struct_reg = yes; then
18371
18372 cat >>confdefs.h <<\_ACEOF
18373 #define HAVE_STRUCT_REG 1
18374 _ACEOF
18375
18376 fi
18377
18378 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18379 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
18380 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18381 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
18382 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
18383   echo $ECHO_N "(cached) $ECHO_C" >&6
18384 else
18385   cat >conftest.$ac_ext <<_ACEOF
18386 /* confdefs.h.  */
18387 _ACEOF
18388 cat confdefs.h >>conftest.$ac_ext
18389 cat >>conftest.$ac_ext <<_ACEOF
18390 /* end confdefs.h.  */
18391 #include <machine/reg.h>
18392
18393 int
18394 main ()
18395 {
18396 static struct reg ac_aggr;
18397 if (ac_aggr.r_fs)
18398 return 0;
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 rm -f conftest.$ac_objext
18404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18405   (eval $ac_compile) 2>conftest.er1
18406   ac_status=$?
18407   grep -v '^ *+' conftest.er1 >conftest.err
18408   rm -f conftest.er1
18409   cat conftest.err >&5
18410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411   (exit $ac_status); } &&
18412          { ac_try='test -z "$ac_c_werror_flag"
18413                          || test ! -s conftest.err'
18414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415   (eval $ac_try) 2>&5
18416   ac_status=$?
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); }; } &&
18419          { ac_try='test -s conftest.$ac_objext'
18420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421   (eval $ac_try) 2>&5
18422   ac_status=$?
18423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424   (exit $ac_status); }; }; then
18425   ac_cv_member_struct_reg_r_fs=yes
18426 else
18427   echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18429
18430 cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h.  */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h.  */
18436 #include <machine/reg.h>
18437
18438 int
18439 main ()
18440 {
18441 static struct reg ac_aggr;
18442 if (sizeof ac_aggr.r_fs)
18443 return 0;
18444   ;
18445   return 0;
18446 }
18447 _ACEOF
18448 rm -f conftest.$ac_objext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450   (eval $ac_compile) 2>conftest.er1
18451   ac_status=$?
18452   grep -v '^ *+' conftest.er1 >conftest.err
18453   rm -f conftest.er1
18454   cat conftest.err >&5
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } &&
18457          { ac_try='test -z "$ac_c_werror_flag"
18458                          || test ! -s conftest.err'
18459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460   (eval $ac_try) 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; } &&
18464          { ac_try='test -s conftest.$ac_objext'
18465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466   (eval $ac_try) 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; }; then
18470   ac_cv_member_struct_reg_r_fs=yes
18471 else
18472   echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18474
18475 ac_cv_member_struct_reg_r_fs=no
18476 fi
18477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18478 fi
18479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18480 fi
18481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18482 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
18483 if test $ac_cv_member_struct_reg_r_fs = yes; then
18484
18485 cat >>confdefs.h <<_ACEOF
18486 #define HAVE_STRUCT_REG_R_FS 1
18487 _ACEOF
18488
18489
18490 fi
18491 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18492 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
18493 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
18494   echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496   cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h.  */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h.  */
18502 #include <machine/reg.h>
18503
18504 int
18505 main ()
18506 {
18507 static struct reg ac_aggr;
18508 if (ac_aggr.r_gs)
18509 return 0;
18510   ;
18511   return 0;
18512 }
18513 _ACEOF
18514 rm -f conftest.$ac_objext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516   (eval $ac_compile) 2>conftest.er1
18517   ac_status=$?
18518   grep -v '^ *+' conftest.er1 >conftest.err
18519   rm -f conftest.er1
18520   cat conftest.err >&5
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); } &&
18523          { ac_try='test -z "$ac_c_werror_flag"
18524                          || test ! -s conftest.err'
18525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526   (eval $ac_try) 2>&5
18527   ac_status=$?
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); }; } &&
18530          { ac_try='test -s conftest.$ac_objext'
18531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532   (eval $ac_try) 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); }; }; then
18536   ac_cv_member_struct_reg_r_gs=yes
18537 else
18538   echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541 cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h.  */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h.  */
18547 #include <machine/reg.h>
18548
18549 int
18550 main ()
18551 {
18552 static struct reg ac_aggr;
18553 if (sizeof ac_aggr.r_gs)
18554 return 0;
18555   ;
18556   return 0;
18557 }
18558 _ACEOF
18559 rm -f conftest.$ac_objext
18560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18561   (eval $ac_compile) 2>conftest.er1
18562   ac_status=$?
18563   grep -v '^ *+' conftest.er1 >conftest.err
18564   rm -f conftest.er1
18565   cat conftest.err >&5
18566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); } &&
18568          { ac_try='test -z "$ac_c_werror_flag"
18569                          || test ! -s conftest.err'
18570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571   (eval $ac_try) 2>&5
18572   ac_status=$?
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); }; } &&
18575          { ac_try='test -s conftest.$ac_objext'
18576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577   (eval $ac_try) 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; }; then
18581   ac_cv_member_struct_reg_r_gs=yes
18582 else
18583   echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 ac_cv_member_struct_reg_r_gs=no
18587 fi
18588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18589 fi
18590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18591 fi
18592 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
18593 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
18594 if test $ac_cv_member_struct_reg_r_gs = yes; then
18595
18596 cat >>confdefs.h <<_ACEOF
18597 #define HAVE_STRUCT_REG_R_GS 1
18598 _ACEOF
18599
18600
18601 fi
18602
18603
18604 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
18605 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
18606 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
18607 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
18608   echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610   cat >conftest.$ac_ext <<_ACEOF
18611 /* confdefs.h.  */
18612 _ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h.  */
18616 #include <sys/ptrace.h>
18617 int
18618 main ()
18619 {
18620 PTRACE_GETREGS;
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627   (eval $ac_compile) 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } &&
18634          { ac_try='test -z "$ac_c_werror_flag"
18635                          || test ! -s conftest.err'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; } &&
18641          { ac_try='test -s conftest.$ac_objext'
18642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643   (eval $ac_try) 2>&5
18644   ac_status=$?
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); }; }; then
18647   gdb_cv_have_ptrace_getregs=yes
18648 else
18649   echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 gdb_cv_have_ptrace_getregs=no
18653 fi
18654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18655 fi
18656
18657 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
18658 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
18659 if test $gdb_cv_have_ptrace_getregs = yes; then
18660
18661 cat >>confdefs.h <<\_ACEOF
18662 #define HAVE_PTRACE_GETREGS 1
18663 _ACEOF
18664
18665 fi
18666
18667 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
18668 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
18669 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
18670 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673   cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h.  */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h.  */
18679 #include <sys/ptrace.h>
18680 int
18681 main ()
18682 {
18683 PTRACE_GETFPXREGS;
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18690   (eval $ac_compile) 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_c_werror_flag"
18698                          || test ! -s conftest.err'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; } &&
18704          { ac_try='test -s conftest.$ac_objext'
18705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706   (eval $ac_try) 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   gdb_cv_have_ptrace_getfpxregs=yes
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 gdb_cv_have_ptrace_getfpxregs=no
18716 fi
18717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18718 fi
18719
18720 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
18721 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
18722 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
18723
18724 cat >>confdefs.h <<\_ACEOF
18725 #define HAVE_PTRACE_GETFPXREGS 1
18726 _ACEOF
18727
18728 fi
18729
18730 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
18731 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
18732 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
18733 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
18734   echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
18736   cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h.  */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h.  */
18742 #include <sys/types.h>
18743 #include <sys/ptrace.h>
18744 int
18745 main ()
18746 {
18747 PT_GETDBREGS;
18748   ;
18749   return 0;
18750 }
18751 _ACEOF
18752 rm -f conftest.$ac_objext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18754   (eval $ac_compile) 2>conftest.er1
18755   ac_status=$?
18756   grep -v '^ *+' conftest.er1 >conftest.err
18757   rm -f conftest.er1
18758   cat conftest.err >&5
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); } &&
18761          { ac_try='test -z "$ac_c_werror_flag"
18762                          || test ! -s conftest.err'
18763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764   (eval $ac_try) 2>&5
18765   ac_status=$?
18766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); }; } &&
18768          { ac_try='test -s conftest.$ac_objext'
18769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770   (eval $ac_try) 2>&5
18771   ac_status=$?
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); }; }; then
18774   gdb_cv_have_pt_getdbregs=yes
18775 else
18776   echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779 gdb_cv_have_pt_getdbregs=no
18780 fi
18781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18782 fi
18783
18784 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
18785 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
18786 if test $gdb_cv_have_pt_getdbregs = yes; then
18787
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_PT_GETDBREGS 1
18790 _ACEOF
18791
18792 fi
18793
18794 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
18795 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
18796 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
18797 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
18798   echo $ECHO_N "(cached) $ECHO_C" >&6
18799 else
18800   cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h.  */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h.  */
18806 #include <sys/types.h>
18807 #include <sys/ptrace.h>
18808 int
18809 main ()
18810 {
18811 PT_GETXMMREGS;
18812   ;
18813   return 0;
18814 }
18815 _ACEOF
18816 rm -f conftest.$ac_objext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18818   (eval $ac_compile) 2>conftest.er1
18819   ac_status=$?
18820   grep -v '^ *+' conftest.er1 >conftest.err
18821   rm -f conftest.er1
18822   cat conftest.err >&5
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); } &&
18825          { ac_try='test -z "$ac_c_werror_flag"
18826                          || test ! -s conftest.err'
18827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828   (eval $ac_try) 2>&5
18829   ac_status=$?
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); }; } &&
18832          { ac_try='test -s conftest.$ac_objext'
18833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834   (eval $ac_try) 2>&5
18835   ac_status=$?
18836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); }; }; then
18838   gdb_cv_have_pt_getxmmregs=yes
18839 else
18840   echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18842
18843 gdb_cv_have_pt_getxmmregs=no
18844 fi
18845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18846 fi
18847
18848 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
18849 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
18850 if test $gdb_cv_have_pt_getxmmregs = yes; then
18851
18852 cat >>confdefs.h <<\_ACEOF
18853 #define HAVE_PT_GETXMMREGS 1
18854 _ACEOF
18855
18856 fi
18857
18858 # If we are configured native on GNU/Linux, work around problems with
18859 # sys/procfs.h
18860 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
18861
18862 if test "${target}" = "${host}"; then
18863   case "${host}" in
18864   i[3456]86-*-linux*)
18865
18866 cat >>confdefs.h <<\_ACEOF
18867 #define START_INFERIOR_TRAPS_EXPECTED 2
18868 _ACEOF
18869
18870
18871 cat >>confdefs.h <<\_ACEOF
18872 #define sys_quotactl 1
18873 _ACEOF
18874
18875         ;;
18876   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
18877
18878 cat >>confdefs.h <<\_ACEOF
18879 #define NEW_PROC_API 1
18880 _ACEOF
18881
18882       ;;
18883   *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
18884
18885 cat >>confdefs.h <<\_ACEOF
18886 #define NEW_PROC_API 1
18887 _ACEOF
18888
18889       ;;
18890   mips-sgi-irix5*)
18891       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
18892
18893 cat >>confdefs.h <<\_ACEOF
18894 #define _KMEMUSER 1
18895 _ACEOF
18896
18897       ;;
18898   esac
18899 fi
18900
18901 if test "$ac_cv_header_sys_procfs_h" = yes; then
18902   echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18903 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18904  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18905   echo $ECHO_N "(cached) $ECHO_C" >&6
18906 else
18907   cat >conftest.$ac_ext <<_ACEOF
18908 /* confdefs.h.  */
18909 _ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h.  */
18913
18914 #define _SYSCALL32
18915 #include <sys/procfs.h>
18916 int
18917 main ()
18918 {
18919 pstatus_t avar
18920   ;
18921   return 0;
18922 }
18923 _ACEOF
18924 rm -f conftest.$ac_objext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18926   (eval $ac_compile) 2>conftest.er1
18927   ac_status=$?
18928   grep -v '^ *+' conftest.er1 >conftest.err
18929   rm -f conftest.er1
18930   cat conftest.err >&5
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); } &&
18933          { ac_try='test -z "$ac_c_werror_flag"
18934                          || test ! -s conftest.err'
18935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936   (eval $ac_try) 2>&5
18937   ac_status=$?
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); }; } &&
18940          { ac_try='test -s conftest.$ac_objext'
18941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942   (eval $ac_try) 2>&5
18943   ac_status=$?
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); }; }; then
18946   bfd_cv_have_sys_procfs_type_pstatus_t=yes
18947 else
18948   echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951 bfd_cv_have_sys_procfs_type_pstatus_t=no
18952
18953 fi
18954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18955 fi
18956
18957  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18958
18959 cat >>confdefs.h <<\_ACEOF
18960 #define HAVE_PSTATUS_T 1
18961 _ACEOF
18962
18963  fi
18964  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18965 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18966
18967   echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
18968 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
18969  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h.  */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h.  */
18978
18979 #define _SYSCALL32
18980 #include <sys/procfs.h>
18981 int
18982 main ()
18983 {
18984 prrun_t avar
18985   ;
18986   return 0;
18987 }
18988 _ACEOF
18989 rm -f conftest.$ac_objext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991   (eval $ac_compile) 2>conftest.er1
18992   ac_status=$?
18993   grep -v '^ *+' conftest.er1 >conftest.err
18994   rm -f conftest.er1
18995   cat conftest.err >&5
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); } &&
18998          { ac_try='test -z "$ac_c_werror_flag"
18999                          || test ! -s conftest.err'
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); }; } &&
19005          { ac_try='test -s conftest.$ac_objext'
19006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007   (eval $ac_try) 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); }; }; then
19011   bfd_cv_have_sys_procfs_type_prrun_t=yes
19012 else
19013   echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19015
19016 bfd_cv_have_sys_procfs_type_prrun_t=no
19017
19018 fi
19019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19020 fi
19021
19022  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
19023
19024 cat >>confdefs.h <<\_ACEOF
19025 #define HAVE_PRRUN_T 1
19026 _ACEOF
19027
19028  fi
19029  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19030 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
19031
19032   echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19033 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
19034  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19035   echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037   cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h.  */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h.  */
19043
19044 #define _SYSCALL32
19045 #include <sys/procfs.h>
19046 int
19047 main ()
19048 {
19049 gregset_t avar
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056   (eval $ac_compile) 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } &&
19063          { ac_try='test -z "$ac_c_werror_flag"
19064                          || test ! -s conftest.err'
19065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066   (eval $ac_try) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; } &&
19070          { ac_try='test -s conftest.$ac_objext'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; }; then
19076   bfd_cv_have_sys_procfs_type_gregset_t=yes
19077 else
19078   echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 bfd_cv_have_sys_procfs_type_gregset_t=no
19082
19083 fi
19084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19085 fi
19086
19087  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
19088
19089 cat >>confdefs.h <<\_ACEOF
19090 #define HAVE_GREGSET_T 1
19091 _ACEOF
19092
19093  fi
19094  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19095 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
19096
19097   echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19098 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
19099  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19100   echo $ECHO_N "(cached) $ECHO_C" >&6
19101 else
19102   cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108
19109 #define _SYSCALL32
19110 #include <sys/procfs.h>
19111 int
19112 main ()
19113 {
19114 fpregset_t avar
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest.$ac_objext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121   (eval $ac_compile) 2>conftest.er1
19122   ac_status=$?
19123   grep -v '^ *+' conftest.er1 >conftest.err
19124   rm -f conftest.er1
19125   cat conftest.err >&5
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } &&
19128          { ac_try='test -z "$ac_c_werror_flag"
19129                          || test ! -s conftest.err'
19130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131   (eval $ac_try) 2>&5
19132   ac_status=$?
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); }; } &&
19135          { ac_try='test -s conftest.$ac_objext'
19136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137   (eval $ac_try) 2>&5
19138   ac_status=$?
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); }; }; then
19141   bfd_cv_have_sys_procfs_type_fpregset_t=yes
19142 else
19143   echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146 bfd_cv_have_sys_procfs_type_fpregset_t=no
19147
19148 fi
19149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19150 fi
19151
19152  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
19153
19154 cat >>confdefs.h <<\_ACEOF
19155 #define HAVE_FPREGSET_T 1
19156 _ACEOF
19157
19158  fi
19159  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19160 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
19161
19162   echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19163 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
19164  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19165   echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167   cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h.  */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h.  */
19173
19174 #define _SYSCALL32
19175 #include <sys/procfs.h>
19176 int
19177 main ()
19178 {
19179 prgregset_t avar
19180   ;
19181   return 0;
19182 }
19183 _ACEOF
19184 rm -f conftest.$ac_objext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19186   (eval $ac_compile) 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } &&
19193          { ac_try='test -z "$ac_c_werror_flag"
19194                          || test ! -s conftest.err'
19195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196   (eval $ac_try) 2>&5
19197   ac_status=$?
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); }; } &&
19200          { ac_try='test -s conftest.$ac_objext'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; }; then
19206   bfd_cv_have_sys_procfs_type_prgregset_t=yes
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 bfd_cv_have_sys_procfs_type_prgregset_t=no
19212
19213 fi
19214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19215 fi
19216
19217  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
19218
19219 cat >>confdefs.h <<\_ACEOF
19220 #define HAVE_PRGREGSET_T 1
19221 _ACEOF
19222
19223  fi
19224  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19225 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
19226
19227   echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19228 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
19229  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19230   echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232   cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h.  */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h.  */
19238
19239 #define _SYSCALL32
19240 #include <sys/procfs.h>
19241 int
19242 main ()
19243 {
19244 prfpregset_t avar
19245   ;
19246   return 0;
19247 }
19248 _ACEOF
19249 rm -f conftest.$ac_objext
19250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19251   (eval $ac_compile) 2>conftest.er1
19252   ac_status=$?
19253   grep -v '^ *+' conftest.er1 >conftest.err
19254   rm -f conftest.er1
19255   cat conftest.err >&5
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); } &&
19258          { ac_try='test -z "$ac_c_werror_flag"
19259                          || test ! -s conftest.err'
19260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261   (eval $ac_try) 2>&5
19262   ac_status=$?
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); }; } &&
19265          { ac_try='test -s conftest.$ac_objext'
19266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267   (eval $ac_try) 2>&5
19268   ac_status=$?
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); }; }; then
19271   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
19272 else
19273   echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276 bfd_cv_have_sys_procfs_type_prfpregset_t=no
19277
19278 fi
19279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19280 fi
19281
19282  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19283
19284 cat >>confdefs.h <<\_ACEOF
19285 #define HAVE_PRFPREGSET_T 1
19286 _ACEOF
19287
19288  fi
19289  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19290 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
19291
19292   echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19293 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
19294  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19295   echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297   cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h.  */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h.  */
19303
19304 #define _SYSCALL32
19305 #include <sys/procfs.h>
19306 int
19307 main ()
19308 {
19309 prgregset32_t avar
19310   ;
19311   return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316   (eval $ac_compile) 2>conftest.er1
19317   ac_status=$?
19318   grep -v '^ *+' conftest.er1 >conftest.err
19319   rm -f conftest.er1
19320   cat conftest.err >&5
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); } &&
19323          { ac_try='test -z "$ac_c_werror_flag"
19324                          || test ! -s conftest.err'
19325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326   (eval $ac_try) 2>&5
19327   ac_status=$?
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); }; } &&
19330          { ac_try='test -s conftest.$ac_objext'
19331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332   (eval $ac_try) 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; }; then
19336   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
19337 else
19338   echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19340
19341 bfd_cv_have_sys_procfs_type_prgregset32_t=no
19342
19343 fi
19344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19345 fi
19346
19347  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
19348
19349 cat >>confdefs.h <<\_ACEOF
19350 #define HAVE_PRGREGSET32_T 1
19351 _ACEOF
19352
19353  fi
19354  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19355 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
19356
19357   echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19358 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
19359  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368
19369 #define _SYSCALL32
19370 #include <sys/procfs.h>
19371 int
19372 main ()
19373 {
19374 prfpregset32_t avar
19375   ;
19376   return 0;
19377 }
19378 _ACEOF
19379 rm -f conftest.$ac_objext
19380 if { (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_prfpregset32_t=yes
19402 else
19403   echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19405
19406 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
19407
19408 fi
19409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 fi
19411
19412  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
19413
19414 cat >>confdefs.h <<\_ACEOF
19415 #define HAVE_PRFPREGSET32_T 1
19416 _ACEOF
19417
19418  fi
19419  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19420 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
19421
19422   echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19423 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
19424  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19425   echo $ECHO_N "(cached) $ECHO_C" >&6
19426 else
19427   cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433
19434 #define _SYSCALL32
19435 #include <sys/procfs.h>
19436 int
19437 main ()
19438 {
19439 lwpid_t avar
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext
19445 if { (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_lwpid_t=yes
19467 else
19468   echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471 bfd_cv_have_sys_procfs_type_lwpid_t=no
19472
19473 fi
19474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19475 fi
19476
19477  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
19478
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_LWPID_T 1
19481 _ACEOF
19482
19483  fi
19484  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19485 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
19486
19487   echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19488 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
19489  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19490   echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492   cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h.  */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h.  */
19498
19499 #define _SYSCALL32
19500 #include <sys/procfs.h>
19501 int
19502 main ()
19503 {
19504 psaddr_t avar
19505   ;
19506   return 0;
19507 }
19508 _ACEOF
19509 rm -f conftest.$ac_objext
19510 if { (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_psaddr_t=yes
19532 else
19533   echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19535
19536 bfd_cv_have_sys_procfs_type_psaddr_t=no
19537
19538 fi
19539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19540 fi
19541
19542  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
19543
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE_PSADDR_T 1
19546 _ACEOF
19547
19548  fi
19549  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19550 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
19551
19552   echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19553 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
19554  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19555   echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557   cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h.  */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h.  */
19563
19564 #define _SYSCALL32
19565 #include <sys/procfs.h>
19566 int
19567 main ()
19568 {
19569 prsysent_t avar
19570   ;
19571   return 0;
19572 }
19573 _ACEOF
19574 rm -f conftest.$ac_objext
19575 if { (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_prsysent_t=yes
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 bfd_cv_have_sys_procfs_type_prsysent_t=no
19602
19603 fi
19604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19605 fi
19606
19607  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
19608
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE_PRSYSENT_T 1
19611 _ACEOF
19612
19613  fi
19614  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
19615 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
19616
19617   echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
19618 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
19619  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628
19629 #define _SYSCALL32
19630 #include <sys/procfs.h>
19631 int
19632 main ()
19633 {
19634 pr_sigset_t avar
19635   ;
19636   return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext
19640 if { (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_pr_sigset_t=yes
19662 else
19663   echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
19667
19668 fi
19669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19670 fi
19671
19672  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
19673
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE_PR_SIGSET_T 1
19676 _ACEOF
19677
19678  fi
19679  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
19680 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
19681
19682   echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
19683 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
19684  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
19685   echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687   cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h.  */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h.  */
19693
19694 #define _SYSCALL32
19695 #include <sys/procfs.h>
19696 int
19697 main ()
19698 {
19699 pr_sigaction64_t avar
19700   ;
19701   return 0;
19702 }
19703 _ACEOF
19704 rm -f conftest.$ac_objext
19705 if { (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_pr_sigaction64_t=yes
19727 else
19728   echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
19732
19733 fi
19734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19735 fi
19736
19737  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
19738
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_PR_SIGACTION64_T 1
19741 _ACEOF
19742
19743  fi
19744  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
19745 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
19746
19747   echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
19748 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
19749  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
19750   echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752   cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h.  */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h.  */
19758
19759 #define _SYSCALL32
19760 #include <sys/procfs.h>
19761 int
19762 main ()
19763 {
19764 pr_siginfo64_t avar
19765   ;
19766   return 0;
19767 }
19768 _ACEOF
19769 rm -f conftest.$ac_objext
19770 if { (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_pr_siginfo64_t=yes
19792 else
19793   echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19795
19796 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
19797
19798 fi
19799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19800 fi
19801
19802  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
19803
19804 cat >>confdefs.h <<\_ACEOF
19805 #define HAVE_PR_SIGINFO64_T 1
19806 _ACEOF
19807
19808  fi
19809  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
19810 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
19811
19812
19813
19814
19815
19816   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19817     echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
19818 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
19819     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822   if test "$cross_compiling" = yes; then
19823   gdb_cv_prfpregset_t_broken=yes
19824 else
19825   cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831 #include <sys/procfs.h>
19832        int main ()
19833        {
19834          if (sizeof (prfpregset_t) == sizeof (void *))
19835            return 1;
19836          return 0;
19837        }
19838 _ACEOF
19839 rm -f conftest$ac_exeext
19840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19841   (eval $ac_link) 2>&5
19842   ac_status=$?
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
19850   gdb_cv_prfpregset_t_broken=no
19851 else
19852   echo "$as_me: program exited with status $ac_status" >&5
19853 echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19855
19856 ( exit $ac_status )
19857 gdb_cv_prfpregset_t_broken=yes
19858 fi
19859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19860 fi
19861 fi
19862
19863     echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
19864 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
19865     if test $gdb_cv_prfpregset_t_broken = yes; then
19866
19867 cat >>confdefs.h <<\_ACEOF
19868 #define PRFPREGSET_T_BROKEN 1
19869 _ACEOF
19870
19871     fi
19872   fi
19873
19874
19875   echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
19876 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
19877   if test "${gdb_cv_have_procfs_piocset+set}" = set; then
19878   echo $ECHO_N "(cached) $ECHO_C" >&6
19879 else
19880   cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h.  */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h.  */
19886 #include <unistd.h>
19887 #include <sys/types.h>
19888 #include <sys/procfs.h>
19889
19890 int
19891 main ()
19892 {
19893
19894     int dummy;;
19895     dummy = ioctl(0, PIOCSET, &dummy);
19896
19897   ;
19898   return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903   (eval $ac_compile) 2>conftest.er1
19904   ac_status=$?
19905   grep -v '^ *+' conftest.er1 >conftest.err
19906   rm -f conftest.er1
19907   cat conftest.err >&5
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); } &&
19910          { ac_try='test -z "$ac_c_werror_flag"
19911                          || test ! -s conftest.err'
19912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913   (eval $ac_try) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; } &&
19917          { ac_try='test -s conftest.$ac_objext'
19918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919   (eval $ac_try) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); }; }; then
19923   gdb_cv_have_procfs_piocset=yes
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 gdb_cv_have_procfs_piocset=no
19929 fi
19930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19931 fi
19932
19933   echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
19934 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
19935   if test $gdb_cv_have_procfs_piocset = yes; then
19936
19937 cat >>confdefs.h <<\_ACEOF
19938 #define HAVE_PROCFS_PIOCSET 1
19939 _ACEOF
19940
19941   fi
19942 fi
19943
19944 if test ${host} = ${target} ; then
19945
19946   echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
19947 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
19948   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
19949   echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951   cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h.  */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h.  */
19957 #include <link.h>
19958 int
19959 main ()
19960 {
19961 struct link_map lm; (void) lm.l_addr;
19962   ;
19963   return 0;
19964 }
19965 _ACEOF
19966 rm -f conftest.$ac_objext
19967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19968   (eval $ac_compile) 2>conftest.er1
19969   ac_status=$?
19970   grep -v '^ *+' conftest.er1 >conftest.err
19971   rm -f conftest.er1
19972   cat conftest.err >&5
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); } &&
19975          { ac_try='test -z "$ac_c_werror_flag"
19976                          || test ! -s conftest.err'
19977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978   (eval $ac_try) 2>&5
19979   ac_status=$?
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); }; } &&
19982          { ac_try='test -s conftest.$ac_objext'
19983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984   (eval $ac_try) 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); }; }; then
19988   gdb_cv_have_struct_link_map_with_l_members=yes
19989 else
19990   echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19992
19993 gdb_cv_have_struct_link_map_with_l_members=no
19994 fi
19995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19996 fi
19997
19998   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19999 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
20000   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
20001
20002 cat >>confdefs.h <<\_ACEOF
20003 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
20004 _ACEOF
20005
20006   fi
20007
20008
20009   echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20010 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
20011   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20012   echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014   cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h.  */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h.  */
20020 #include <sys/types.h>
20021 #include <link.h>
20022 int
20023 main ()
20024 {
20025 struct link_map lm; (void) lm.lm_addr;
20026   ;
20027   return 0;
20028 }
20029 _ACEOF
20030 rm -f conftest.$ac_objext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032   (eval $ac_compile) 2>conftest.er1
20033   ac_status=$?
20034   grep -v '^ *+' conftest.er1 >conftest.err
20035   rm -f conftest.er1
20036   cat conftest.err >&5
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); } &&
20039          { ac_try='test -z "$ac_c_werror_flag"
20040                          || test ! -s conftest.err'
20041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042   (eval $ac_try) 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; } &&
20046          { ac_try='test -s conftest.$ac_objext'
20047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048   (eval $ac_try) 2>&5
20049   ac_status=$?
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); }; }; then
20052   gdb_cv_have_struct_link_map_with_lm_members=yes
20053 else
20054   echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 gdb_cv_have_struct_link_map_with_lm_members=no
20058 fi
20059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20060 fi
20061
20062   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20063 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
20064   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
20065
20066 cat >>confdefs.h <<\_ACEOF
20067 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
20068 _ACEOF
20069
20070   fi
20071
20072
20073   echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20074 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
20075   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20076   echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078   cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h.  */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h.  */
20084 #include <sys/types.h>
20085 #ifdef HAVE_NLIST_H
20086 #include <nlist.h>
20087 #endif
20088 #include <link.h>
20089 int
20090 main ()
20091 {
20092 struct so_map lm; (void) lm.som_addr;
20093   ;
20094   return 0;
20095 }
20096 _ACEOF
20097 rm -f conftest.$ac_objext
20098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20099   (eval $ac_compile) 2>conftest.er1
20100   ac_status=$?
20101   grep -v '^ *+' conftest.er1 >conftest.err
20102   rm -f conftest.er1
20103   cat conftest.err >&5
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); } &&
20106          { ac_try='test -z "$ac_c_werror_flag"
20107                          || test ! -s conftest.err'
20108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109   (eval $ac_try) 2>&5
20110   ac_status=$?
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); }; } &&
20113          { ac_try='test -s conftest.$ac_objext'
20114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115   (eval $ac_try) 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); }; }; then
20119   gdb_cv_have_struct_so_map_with_som_members=yes
20120 else
20121   echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124 gdb_cv_have_struct_so_map_with_som_members=no
20125 fi
20126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20127 fi
20128
20129   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20130 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
20131   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
20132
20133 cat >>confdefs.h <<\_ACEOF
20134 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
20135 _ACEOF
20136
20137   fi
20138
20139
20140   echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20141 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
20142   if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20143   echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145   cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151 #define _SYSCALL32
20152 #include <sys/link.h>
20153 int
20154 main ()
20155 {
20156 struct link_map32 l;
20157   ;
20158   return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163   (eval $ac_compile) 2>conftest.er1
20164   ac_status=$?
20165   grep -v '^ *+' conftest.er1 >conftest.err
20166   rm -f conftest.er1
20167   cat conftest.err >&5
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); } &&
20170          { ac_try='test -z "$ac_c_werror_flag"
20171                          || test ! -s conftest.err'
20172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173   (eval $ac_try) 2>&5
20174   ac_status=$?
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); }; } &&
20177          { ac_try='test -s conftest.$ac_objext'
20178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179   (eval $ac_try) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; }; then
20183   gdb_cv_have_struct_link_map32=yes
20184 else
20185   echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188 gdb_cv_have_struct_link_map32=no
20189 fi
20190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20191 fi
20192
20193   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20194 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
20195   if test $gdb_cv_have_struct_link_map32 = yes; then
20196
20197 cat >>confdefs.h <<\_ACEOF
20198 #define HAVE_STRUCT_LINK_MAP32 1
20199 _ACEOF
20200
20201
20202 cat >>confdefs.h <<\_ACEOF
20203 #define _SYSCALL32 1
20204 _ACEOF
20205
20206   fi
20207 fi
20208
20209 # Check if the compiler supports the `long long' type.
20210
20211 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20212 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
20213 if test "${gdb_cv_c_long_long+set}" = set; then
20214   echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216   cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222 extern long long foo;
20223 int
20224 main ()
20225 {
20226 switch (foo & 2) { case 0: return 1; }
20227   ;
20228   return 0;
20229 }
20230 _ACEOF
20231 rm -f conftest.$ac_objext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20233   (eval $ac_compile) 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } &&
20240          { ac_try='test -z "$ac_c_werror_flag"
20241                          || test ! -s conftest.err'
20242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243   (eval $ac_try) 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); }; } &&
20247          { ac_try='test -s conftest.$ac_objext'
20248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249   (eval $ac_try) 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; }; then
20253   gdb_cv_c_long_long=yes
20254 else
20255   echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20257
20258 gdb_cv_c_long_long=no
20259 fi
20260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20261 fi
20262 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20263 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
20264 if test $gdb_cv_c_long_long = yes; then
20265
20266 cat >>confdefs.h <<\_ACEOF
20267 #define CC_HAS_LONG_LONG 1
20268 _ACEOF
20269
20270 fi
20271
20272 # Check if the compiler and runtime support printing long longs.
20273
20274 echo "$as_me:$LINENO: checking for long long support in printf" >&5
20275 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
20276 if test "${gdb_cv_printf_has_long_long+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279   if test "$cross_compiling" = yes; then
20280   gdb_cv_printf_has_long_long=no
20281 else
20282   cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288 $ac_includes_default
20289 int
20290 main ()
20291 {
20292 char buf[32];
20293   long long l = 0;
20294   l = (l << 16) + 0x0123;
20295   l = (l << 16) + 0x4567;
20296   l = (l << 16) + 0x89ab;
20297   l = (l << 16) + 0xcdef;
20298   sprintf (buf, "0x%016llx", l);
20299   return (strcmp ("0x0123456789abcdef", buf));
20300   ;
20301   return 0;
20302 }
20303 _ACEOF
20304 rm -f conftest$ac_exeext
20305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20306   (eval $ac_link) 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311   (eval $ac_try) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; }; then
20315   gdb_cv_printf_has_long_long=yes
20316 else
20317   echo "$as_me: program exited with status $ac_status" >&5
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20320
20321 ( exit $ac_status )
20322 gdb_cv_printf_has_long_long=no
20323 fi
20324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20325 fi
20326 fi
20327 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20328 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
20329 if test $gdb_cv_printf_has_long_long = yes; then
20330
20331 cat >>confdefs.h <<\_ACEOF
20332 #define PRINTF_HAS_LONG_LONG 1
20333 _ACEOF
20334
20335 fi
20336
20337 # Check if the compiler supports the `long double' type.  We can't use
20338 # AC_C_LONG_DOUBLE because that one does additional checks on the
20339 # constants defined in <float.h> that fail on some systems,
20340 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
20341
20342 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20343 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
20344 if test "${gdb_cv_c_long_double+set}" = set; then
20345   echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347   cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353 long double foo;
20354 _ACEOF
20355 rm -f conftest.$ac_objext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357   (eval $ac_compile) 2>conftest.er1
20358   ac_status=$?
20359   grep -v '^ *+' conftest.er1 >conftest.err
20360   rm -f conftest.er1
20361   cat conftest.err >&5
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); } &&
20364          { ac_try='test -z "$ac_c_werror_flag"
20365                          || test ! -s conftest.err'
20366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367   (eval $ac_try) 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); }; } &&
20371          { ac_try='test -s conftest.$ac_objext'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; }; then
20377   gdb_cv_c_long_double=yes
20378 else
20379   echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 gdb_cv_c_long_double=no
20383 fi
20384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20385 fi
20386 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20387 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
20388 if test $gdb_cv_c_long_double = yes; then
20389
20390 cat >>confdefs.h <<\_ACEOF
20391 #define HAVE_LONG_DOUBLE 1
20392 _ACEOF
20393
20394 fi
20395
20396 # Check if the compiler and runtime support printing long doubles.
20397
20398 echo "$as_me:$LINENO: checking for long double support in printf" >&5
20399 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
20400 if test "${gdb_cv_printf_has_long_double+set}" = set; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403   if test "$cross_compiling" = yes; then
20404   gdb_cv_printf_has_long_double=no
20405 else
20406   cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h.  */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h.  */
20412 $ac_includes_default
20413 int
20414 main ()
20415 {
20416 char buf[16];
20417   long double f = 3.141592653;
20418   sprintf (buf, "%Lg", f);
20419   return (strncmp ("3.14159", buf, 7));
20420   ;
20421   return 0;
20422 }
20423 _ACEOF
20424 rm -f conftest$ac_exeext
20425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20426   (eval $ac_link) 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431   (eval $ac_try) 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); }; }; then
20435   gdb_cv_printf_has_long_double=yes
20436 else
20437   echo "$as_me: program exited with status $ac_status" >&5
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441 ( exit $ac_status )
20442 gdb_cv_printf_has_long_double=no
20443 fi
20444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20445 fi
20446 fi
20447 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20448 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
20449 if test $gdb_cv_printf_has_long_double = yes; then
20450
20451 cat >>confdefs.h <<\_ACEOF
20452 #define PRINTF_HAS_LONG_DOUBLE 1
20453 _ACEOF
20454
20455 fi
20456
20457 # Check if the compiler and runtime support scanning long doubles.
20458
20459 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20460 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
20461 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464   if test "$cross_compiling" = yes; then
20465   gdb_cv_scanf_has_long_double=no
20466 else
20467   cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h.  */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h.  */
20473 #include <stdio.h>
20474 int
20475 main ()
20476 {
20477 char *buf = "3.141592653";
20478   long double f = 0;
20479   sscanf (buf, "%Lg", &f);
20480   return !(f > 3.14159 && f < 3.14160);
20481   ;
20482   return 0;
20483 }
20484 _ACEOF
20485 rm -f conftest$ac_exeext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20487   (eval $ac_link) 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492   (eval $ac_try) 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); }; }; then
20496   gdb_cv_scanf_has_long_double=yes
20497 else
20498   echo "$as_me: program exited with status $ac_status" >&5
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502 ( exit $ac_status )
20503 gdb_cv_scanf_has_long_double=no
20504 fi
20505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20506 fi
20507 fi
20508 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20509 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
20510 if test $gdb_cv_scanf_has_long_double = yes; then
20511
20512 cat >>confdefs.h <<\_ACEOF
20513 #define SCANF_HAS_LONG_DOUBLE 1
20514 _ACEOF
20515
20516 fi
20517
20518 case ${host_os} in
20519 aix*)
20520   echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20521 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
20522 if test "${gdb_cv_bigtoc+set}" = set; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 else
20525
20526     SAVE_LDFLAGS=$LDFLAGS
20527
20528     case $GCC in
20529     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20530     *) gdb_cv_bigtoc=-bbigtoc ;;
20531     esac
20532
20533     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
20534     cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540
20541 int
20542 main ()
20543 {
20544 int i;
20545   ;
20546   return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20551   (eval $ac_link) 2>conftest.er1
20552   ac_status=$?
20553   grep -v '^ *+' conftest.er1 >conftest.err
20554   rm -f conftest.er1
20555   cat conftest.err >&5
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } &&
20558          { ac_try='test -z "$ac_c_werror_flag"
20559                          || test ! -s conftest.err'
20560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561   (eval $ac_try) 2>&5
20562   ac_status=$?
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); }; } &&
20565          { ac_try='test -s conftest$ac_exeext'
20566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567   (eval $ac_try) 2>&5
20568   ac_status=$?
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); }; }; then
20571   :
20572 else
20573   echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20575
20576 gdb_cv_bigtoc=
20577 fi
20578 rm -f conftest.err conftest.$ac_objext \
20579       conftest$ac_exeext conftest.$ac_ext
20580     LDFLAGS="${SAVE_LDFLAGS}"
20581
20582 fi
20583 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
20584 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
20585   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
20586   ;;
20587 esac
20588
20589
20590
20591 if test ${build} = ${host} -a ${host} = ${target} ; then
20592    case ${host_os} in
20593    hpux*)
20594       echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
20595 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
20596       if test -f /usr/include/dce/cma_config.h ; then
20597          if test "$GCC" = "yes" ; then
20598             echo "$as_me:$LINENO: result: yes" >&5
20599 echo "${ECHO_T}yes" >&6
20600
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE_HPUX_THREAD_SUPPORT 1
20603 _ACEOF
20604
20605             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
20606             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
20607          else
20608             echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
20609 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
20610          fi
20611       else
20612          echo "$as_me:$LINENO: result: no" >&5
20613 echo "${ECHO_T}no" >&6
20614       fi
20615       ;;
20616    solaris*)
20617       # See if thread_db library is around for Solaris thread debugging.
20618       # Note that we must explicitly test for version 1 of the library
20619       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
20620       # the same API.
20621       echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
20622 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
20623       if test -f /usr/lib/libthread_db.so.1 ; then
20624          echo "$as_me:$LINENO: result: yes" >&5
20625 echo "${ECHO_T}yes" >&6
20626
20627 cat >>confdefs.h <<\_ACEOF
20628 #define HAVE_THREAD_DB_LIB 1
20629 _ACEOF
20630
20631          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
20632          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
20633
20634 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20635 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20636 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639   ac_check_lib_save_LIBS=$LIBS
20640 LIBS="-ldl  $LIBS"
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h.  */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h.  */
20647
20648 /* Override any gcc2 internal prototype to avoid an error.  */
20649 #ifdef __cplusplus
20650 extern "C"
20651 #endif
20652 /* We use char because int might match the return type of a gcc2
20653    builtin and then its argument prototype would still apply.  */
20654 char dlopen ();
20655 int
20656 main ()
20657 {
20658 dlopen ();
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665   (eval $ac_link) 2>conftest.er1
20666   ac_status=$?
20667   grep -v '^ *+' conftest.er1 >conftest.err
20668   rm -f conftest.er1
20669   cat conftest.err >&5
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); } &&
20672          { ac_try='test -z "$ac_c_werror_flag"
20673                          || test ! -s conftest.err'
20674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675   (eval $ac_try) 2>&5
20676   ac_status=$?
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); }; } &&
20679          { ac_try='test -s conftest$ac_exeext'
20680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681   (eval $ac_try) 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; }; then
20685   ac_cv_lib_dl_dlopen=yes
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 ac_cv_lib_dl_dlopen=no
20691 fi
20692 rm -f conftest.err conftest.$ac_objext \
20693       conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20695 fi
20696 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20697 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20698 if test $ac_cv_lib_dl_dlopen = yes; then
20699   cat >>confdefs.h <<_ACEOF
20700 #define HAVE_LIBDL 1
20701 _ACEOF
20702
20703   LIBS="-ldl $LIBS"
20704
20705 fi
20706
20707          if test "$GCC" = "yes" ; then
20708             # The GNU linker requires the -export-dynamic option to make
20709             # all symbols visible in the dynamic symbol table.
20710             hold_ldflags=$LDFLAGS
20711             echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
20712 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
20713             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
20714             cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720
20721 int
20722 main ()
20723 {
20724 int i;
20725   ;
20726   return 0;
20727 }
20728 _ACEOF
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20731   (eval $ac_link) 2>conftest.er1
20732   ac_status=$?
20733   grep -v '^ *+' conftest.er1 >conftest.err
20734   rm -f conftest.er1
20735   cat conftest.err >&5
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); } &&
20738          { ac_try='test -z "$ac_c_werror_flag"
20739                          || test ! -s conftest.err'
20740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741   (eval $ac_try) 2>&5
20742   ac_status=$?
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); }; } &&
20745          { ac_try='test -s conftest$ac_exeext'
20746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747   (eval $ac_try) 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; }; then
20751   found=yes
20752 else
20753   echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756 found=no
20757 fi
20758 rm -f conftest.err conftest.$ac_objext \
20759       conftest$ac_exeext conftest.$ac_ext
20760             LDFLAGS=$hold_ldflags
20761             echo "$as_me:$LINENO: result: $found" >&5
20762 echo "${ECHO_T}$found" >&6
20763             if test $found = yes; then
20764                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
20765             fi
20766          fi
20767          # Sun randomly tweaked the prototypes in <proc_service.h>
20768          # at one point.
20769          echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
20770 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
20771          if test "${gdb_cv_proc_service_is_old+set}" = set; then
20772   echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774
20775             cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h.  */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h.  */
20781
20782                 #include <proc_service.h>
20783                 ps_err_e ps_pdwrite
20784                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
20785
20786 int
20787 main ()
20788 {
20789
20790   ;
20791   return 0;
20792 }
20793 _ACEOF
20794 rm -f conftest.$ac_objext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796   (eval $ac_compile) 2>conftest.er1
20797   ac_status=$?
20798   grep -v '^ *+' conftest.er1 >conftest.err
20799   rm -f conftest.er1
20800   cat conftest.err >&5
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); } &&
20803          { ac_try='test -z "$ac_c_werror_flag"
20804                          || test ! -s conftest.err'
20805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806   (eval $ac_try) 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; } &&
20810          { ac_try='test -s conftest.$ac_objext'
20811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812   (eval $ac_try) 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); }; }; then
20816   gdb_cv_proc_service_is_old=no
20817 else
20818   echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821 gdb_cv_proc_service_is_old=yes
20822 fi
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20824
20825 fi
20826
20827          echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
20828 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
20829          if test $gdb_cv_proc_service_is_old = yes; then
20830
20831 cat >>confdefs.h <<\_ACEOF
20832 #define PROC_SERVICE_IS_OLD 1
20833 _ACEOF
20834
20835          fi
20836       else
20837          echo "$as_me:$LINENO: result: no" >&5
20838 echo "${ECHO_T}no" >&6
20839       fi
20840       ;;
20841    aix*)
20842       echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
20843 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
20844       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
20845   echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847   cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h.  */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h.  */
20853 #include <sys/pthdebug.h>
20854 int
20855 main ()
20856 {
20857 #ifndef PTHDB_VERSION_3
20858                                     #error
20859                                     #endif
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20866   (eval $ac_compile) 2>conftest.er1
20867   ac_status=$?
20868   grep -v '^ *+' conftest.er1 >conftest.err
20869   rm -f conftest.er1
20870   cat conftest.err >&5
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); } &&
20873          { ac_try='test -z "$ac_c_werror_flag"
20874                          || test ! -s conftest.err'
20875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876   (eval $ac_try) 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); }; } &&
20880          { ac_try='test -s conftest.$ac_objext'
20881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882   (eval $ac_try) 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); }; }; then
20886   gdb_cv_have_aix_thread_debug=yes
20887 else
20888   echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891 gdb_cv_have_aix_thread_debug=no
20892 fi
20893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20894 fi
20895
20896       echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
20897 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
20898       if test $gdb_cv_have_aix_thread_debug = yes; then
20899          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
20900          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
20901          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
20902       fi
20903       ;;
20904    esac
20905
20906 fi
20907
20908 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
20909    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
20910 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
20911 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
20912   echo $ECHO_N "(cached) $ECHO_C" >&6
20913 else
20914   cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h.  */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h.  */
20920 #include <thread_db.h>
20921 int
20922 main ()
20923 {
20924 int i = TD_NOTALLOC;
20925   ;
20926   return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931   (eval $ac_compile) 2>conftest.er1
20932   ac_status=$?
20933   grep -v '^ *+' conftest.er1 >conftest.err
20934   rm -f conftest.er1
20935   cat conftest.err >&5
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); } &&
20938          { ac_try='test -z "$ac_c_werror_flag"
20939                          || test ! -s conftest.err'
20940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941   (eval $ac_try) 2>&5
20942   ac_status=$?
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); }; } &&
20945          { ac_try='test -s conftest.$ac_objext'
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_thread_db_h_has_td_notalloc=yes
20952 else
20953   echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956 gdb_cv_thread_db_h_has_td_notalloc=no
20957
20958 fi
20959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20960
20961 fi
20962 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
20963 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
20964    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
20965 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
20966 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
20967   echo $ECHO_N "(cached) $ECHO_C" >&6
20968 else
20969   cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h.  */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h.  */
20975 #include <thread_db.h>
20976 int
20977 main ()
20978 {
20979 int i = TD_VERSION;
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20986   (eval $ac_compile) 2>conftest.er1
20987   ac_status=$?
20988   grep -v '^ *+' conftest.er1 >conftest.err
20989   rm -f conftest.er1
20990   cat conftest.err >&5
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); } &&
20993          { ac_try='test -z "$ac_c_werror_flag"
20994                          || test ! -s conftest.err'
20995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996   (eval $ac_try) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; } &&
21000          { ac_try='test -s conftest.$ac_objext'
21001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002   (eval $ac_try) 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); }; }; then
21006   gdb_cv_thread_db_h_has_td_version=yes
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011 gdb_cv_thread_db_h_has_td_version=no
21012
21013 fi
21014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21015
21016 fi
21017 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21018 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21019    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21020 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21021 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21022   echo $ECHO_N "(cached) $ECHO_C" >&6
21023 else
21024   cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h.  */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h.  */
21030 #include <thread_db.h>
21031 int
21032 main ()
21033 {
21034 int i = TD_NOTLS;
21035   ;
21036   return 0;
21037 }
21038 _ACEOF
21039 rm -f conftest.$ac_objext
21040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21041   (eval $ac_compile) 2>conftest.er1
21042   ac_status=$?
21043   grep -v '^ *+' conftest.er1 >conftest.err
21044   rm -f conftest.er1
21045   cat conftest.err >&5
21046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047   (exit $ac_status); } &&
21048          { ac_try='test -z "$ac_c_werror_flag"
21049                          || test ! -s conftest.err'
21050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051   (eval $ac_try) 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); }; } &&
21055          { ac_try='test -s conftest.$ac_objext'
21056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057   (eval $ac_try) 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; }; then
21061   gdb_cv_thread_db_h_has_td_notls=yes
21062 else
21063   echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21065
21066 gdb_cv_thread_db_h_has_td_notls=no
21067
21068 fi
21069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21070
21071 fi
21072 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21073 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
21074 fi
21075 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
21076
21077 cat >>confdefs.h <<\_ACEOF
21078 #define THREAD_DB_HAS_TD_NOTALLOC 1
21079 _ACEOF
21080
21081 fi
21082 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21083
21084 cat >>confdefs.h <<\_ACEOF
21085 #define THREAD_DB_HAS_TD_VERSION 1
21086 _ACEOF
21087
21088 fi
21089 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21090
21091 cat >>confdefs.h <<\_ACEOF
21092 #define THREAD_DB_HAS_TD_NOTLS 1
21093 _ACEOF
21094
21095 fi
21096
21097 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
21098    echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21099 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
21100 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21101   echo $ECHO_N "(cached) $ECHO_C" >&6
21102 else
21103   cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h.  */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h.  */
21109 #include <sys/syscall.h>
21110 int
21111 main ()
21112 {
21113 int i = __NR_tkill;
21114   ;
21115   return 0;
21116 }
21117 _ACEOF
21118 rm -f conftest.$ac_objext
21119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21120   (eval $ac_compile) 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_objext'
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   gdb_cv_sys_syscall_h_has_tkill=yes
21141 else
21142   echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145 gdb_cv_sys_syscall_h_has_tkill=no
21146
21147 fi
21148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21149
21150 fi
21151 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21152 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
21153 fi
21154 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
21155
21156 cat >>confdefs.h <<\_ACEOF
21157 #define HAVE_TKILL_SYSCALL 1
21158 _ACEOF
21159
21160 fi
21161
21162
21163
21164 # Check whether --with-sysroot or --without-sysroot was given.
21165 if test "${with_sysroot+set}" = set; then
21166   withval="$with_sysroot"
21167
21168  case ${with_sysroot} in
21169  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
21170  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21171  esac
21172
21173  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21174
21175  if test "x$exec_prefix" = xNONE; then
21176   if test "x$prefix" = xNONE; then
21177    test_prefix=/usr/local
21178   else
21179    test_prefix=$prefix
21180   fi
21181  else
21182   test_prefix=$exec_prefix
21183  fi
21184  case ${TARGET_SYSTEM_ROOT} in
21185  "${test_prefix}"|"${test_prefix}/"*|\
21186  '${exec_prefix}'|'${exec_prefix}/'*)
21187    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21188    TARGET_SYSTEM_ROOT_DEFINE="$t"
21189    ;;
21190  esac
21191
21192 else
21193
21194  TARGET_SYSTEM_ROOT=
21195  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21196
21197 fi;
21198
21199
21200
21201 # Check whether --enable-werror or --disable-werror was given.
21202 if test "${enable_werror+set}" = set; then
21203   enableval="$enable_werror"
21204   case "${enableval}" in
21205      yes | y) ERROR_ON_WARNING="yes" ;;
21206      no | n)  ERROR_ON_WARNING="no" ;;
21207      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21208 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21209    { (exit 1); exit 1; }; } ;;
21210    esac
21211 fi;
21212
21213 # Enable -Werror by default when using gcc
21214 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21215     ERROR_ON_WARNING=yes
21216 fi
21217
21218 WERROR_CFLAGS=""
21219 if test "${ERROR_ON_WARNING}" = yes ; then
21220     WERROR_CFLAGS="-Werror"
21221 fi
21222
21223 # The entries after -Wno-pointer-sign are disabled warnings which may
21224 # be enabled in the future, which can not currently be used to build
21225 # GDB.
21226 # NOTE: If you change this list, remember to update
21227 # gdb/doc/gdbint.texinfo.
21228 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21229 -Wformat-nonliteral -Wno-pointer-sign \
21230 -Wno-unused -Wno-switch"
21231
21232 # Check whether --enable-build-warnings or --disable-build-warnings was given.
21233 if test "${enable_build_warnings+set}" = set; then
21234   enableval="$enable_build_warnings"
21235   case "${enableval}" in
21236   yes)  ;;
21237   no)   build_warnings="-w";;
21238   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
21239         build_warnings="${build_warnings} ${t}";;
21240   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
21241         build_warnings="${t} ${build_warnings}";;
21242   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21243 esac
21244 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21245   echo "Setting compiler warning flags = $build_warnings" 6>&1
21246 fi
21247 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
21248 if test "${enable_gdb_build_warnings+set}" = set; then
21249   enableval="$enable_gdb_build_warnings"
21250   case "${enableval}" in
21251   yes)  ;;
21252   no)   build_warnings="-w";;
21253   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
21254         build_warnings="${build_warnings} ${t}";;
21255   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
21256         build_warnings="${t} ${build_warnings}";;
21257   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21258 esac
21259 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21260   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21261 fi
21262 fi; WARN_CFLAGS=""
21263 if test "x${build_warnings}" != x -a "x$GCC" = xyes
21264 then
21265     echo "$as_me:$LINENO: checking compiler warning flags" >&5
21266 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
21267     # Separate out the -Werror flag as some files just cannot be
21268     # compiled with it enabled.
21269     for w in ${build_warnings}; do
21270         case $w in
21271         -Werr*) WERROR_CFLAGS=-Werror ;;
21272         *) # Check that GCC accepts it
21273             saved_CFLAGS="$CFLAGS"
21274             CFLAGS="$CFLAGS $w"
21275             cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281
21282 int
21283 main ()
21284 {
21285
21286   ;
21287   return 0;
21288 }
21289 _ACEOF
21290 rm -f conftest.$ac_objext
21291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292   (eval $ac_compile) 2>conftest.er1
21293   ac_status=$?
21294   grep -v '^ *+' conftest.er1 >conftest.err
21295   rm -f conftest.er1
21296   cat conftest.err >&5
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } &&
21299          { ac_try='test -z "$ac_c_werror_flag"
21300                          || test ! -s conftest.err'
21301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302   (eval $ac_try) 2>&5
21303   ac_status=$?
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); }; } &&
21306          { ac_try='test -s conftest.$ac_objext'
21307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308   (eval $ac_try) 2>&5
21309   ac_status=$?
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); }; }; then
21312   WARN_CFLAGS="${WARN_CFLAGS} $w"
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317 fi
21318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319             CFLAGS="$saved_CFLAGS"
21320         esac
21321     done
21322     echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21323 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
21324 fi
21325
21326
21327
21328 # In the Cygwin environment, we need some additional flags.
21329 echo "$as_me:$LINENO: checking for cygwin" >&5
21330 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
21331 if test "${gdb_cv_os_cygwin+set}" = set; then
21332   echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334   cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h.  */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h.  */
21340
21341 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
21342 lose
21343 #endif
21344 _ACEOF
21345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21346   $EGREP "lose" >/dev/null 2>&1; then
21347   gdb_cv_os_cygwin=yes
21348 else
21349   gdb_cv_os_cygwin=no
21350 fi
21351 rm -f conftest*
21352
21353 fi
21354 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21355 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
21356
21357
21358 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
21359 case ${host} in
21360   *go32* ) SER_HARDWIRE=ser-go32.o ;;
21361   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
21362   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
21363 esac
21364
21365
21366 # libreadline needs libuser32.a in a cygwin environment
21367 WIN32LIBS=
21368 if test x$gdb_cv_os_cygwin = xyes; then
21369     WIN32LIBS="-luser32"
21370     case "${target}" in
21371         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21372         ;;
21373     esac
21374 fi
21375
21376 # The ser-tcp.c module requires sockets.
21377 case ${host} in
21378   *mingw32*)
21379
21380 cat >>confdefs.h <<\_ACEOF
21381 #define USE_WIN32API 1
21382 _ACEOF
21383
21384     WIN32LIBS="$WIN32LIBS -lws2_32"
21385     ;;
21386 esac
21387
21388
21389 # Add any host-specific objects to GDB.
21390 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21391
21392 LIBGUI="../libgui/src/libgui.a"
21393 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21394
21395
21396
21397 WIN32LDAPP=
21398
21399
21400
21401 case "${host}" in
21402 *-*-cygwin*)
21403     configdir="win"
21404     ;;
21405 *)
21406     configdir="unix"
21407     ;;
21408 esac
21409
21410 GDBTKLIBS=
21411 if test "${enable_gdbtk}" = "yes"; then
21412
21413     # Gdbtk must have an absolute path to srcdir in order to run
21414     # properly when not installed.
21415     here=`pwd`
21416     cd ${srcdir}
21417     GDBTK_SRC_DIR=`pwd`
21418     cd $here
21419
21420
21421 #
21422 # Ok, lets find the tcl configuration
21423 # First, look for one uninstalled.
21424 # the alternative search directory is invoked by --with-tclconfig
21425 #
21426
21427 if test x"${no_tcl}" = x ; then
21428   # we reset no_tcl in case something fails here
21429   no_tcl=true
21430
21431 # Check whether --with-tclconfig or --without-tclconfig was given.
21432 if test "${with_tclconfig+set}" = set; then
21433   withval="$with_tclconfig"
21434   with_tclconfig=${withval}
21435 fi;
21436   echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21437 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
21438   if test "${ac_cv_c_tclconfig+set}" = set; then
21439   echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21441
21442
21443   # First check to see if --with-tclconfig was specified.
21444   if test x"${with_tclconfig}" != x ; then
21445     if test -f "${with_tclconfig}/tclConfig.sh" ; then
21446       ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21447     else
21448       { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21449 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21450    { (exit 1); exit 1; }; }
21451     fi
21452   fi
21453
21454   # then check for a private Tcl installation
21455   if test x"${ac_cv_c_tclconfig}" = x ; then
21456     for i in \
21457                 ../tcl \
21458                 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21459                 ../../tcl \
21460                 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21461                 ../../../tcl \
21462                 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21463       if test -f "$i/${configdir}/tclConfig.sh" ; then
21464         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21465         break
21466       fi
21467     done
21468   fi
21469   # check in a few common install locations
21470   if test x"${ac_cv_c_tclconfig}" = x ; then
21471     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21472       if test -f "$i/tclConfig.sh" ; then
21473         ac_cv_c_tclconfig=`(cd $i; pwd)`
21474         break
21475       fi
21476     done
21477   fi
21478   # check in a few other private locations
21479   if test x"${ac_cv_c_tclconfig}" = x ; then
21480     for i in \
21481                 ${srcdir}/../tcl \
21482                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21483       if test -f "$i/${configdir}/tclConfig.sh" ; then
21484         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21485         break
21486       fi
21487     done
21488   fi
21489
21490 fi
21491
21492   if test x"${ac_cv_c_tclconfig}" = x ; then
21493     TCLCONFIG="# no Tcl configs found"
21494     { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21495 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
21496   else
21497     no_tcl=
21498     TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
21499     echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21500 echo "${ECHO_T}found $TCLCONFIG" >&6
21501   fi
21502 fi
21503
21504     if test -z "${no_tcl}"; then
21505
21506     . $TCLCONFIG
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534 #
21535 # Ok, lets find the tk configuration
21536 # First, look for one uninstalled.
21537 # the alternative search directory is invoked by --with-tkconfig
21538 #
21539
21540 if test x"${no_tk}" = x ; then
21541   # we reset no_tk in case something fails here
21542   no_tk=true
21543
21544 # Check whether --with-tkconfig or --without-tkconfig was given.
21545 if test "${with_tkconfig+set}" = set; then
21546   withval="$with_tkconfig"
21547   with_tkconfig=${withval}
21548 fi;
21549   echo "$as_me:$LINENO: checking for Tk configuration" >&5
21550 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
21551   if test "${ac_cv_c_tkconfig+set}" = set; then
21552   echo $ECHO_N "(cached) $ECHO_C" >&6
21553 else
21554
21555
21556   # First check to see if --with-tkconfig was specified.
21557   if test x"${with_tkconfig}" != x ; then
21558     if test -f "${with_tkconfig}/tkConfig.sh" ; then
21559       ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21560     else
21561       { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21562 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21563    { (exit 1); exit 1; }; }
21564     fi
21565   fi
21566
21567   # then check for a private Tk library
21568   if test x"${ac_cv_c_tkconfig}" = x ; then
21569     for i in \
21570                 ../tk \
21571                 `ls -dr ../tk[4-9]* 2>/dev/null` \
21572                 ../../tk \
21573                 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21574                 ../../../tk \
21575                 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21576       if test -f "$i/${configdir}/tkConfig.sh" ; then
21577         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21578         break
21579       fi
21580     done
21581   fi
21582   # check in a few common install locations
21583   if test x"${ac_cv_c_tkconfig}" = x ; then
21584     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21585       if test -f "$i/tkConfig.sh" ; then
21586         ac_cv_c_tkconfig=`(cd $i; pwd)`
21587         break
21588       fi
21589     done
21590   fi
21591   # check in a few other private locations
21592   if test x"${ac_cv_c_tkconfig}" = x ; then
21593     for i in \
21594                 ${srcdir}/../tk \
21595                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
21596       if test -f "$i/${configdir}/tkConfig.sh" ; then
21597         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21598         break
21599       fi
21600     done
21601   fi
21602
21603 fi
21604
21605   if test x"${ac_cv_c_tkconfig}" = x ; then
21606     TKCONFIG="# no Tk configs found"
21607     { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
21608 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
21609   else
21610     no_tk=
21611     TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
21612     echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
21613 echo "${ECHO_T}found $TKCONFIG" >&6
21614   fi
21615 fi
21616
21617
21618
21619         # now look for Tcl library stuff
21620
21621         tcldir="../tcl/${configdir}/"
21622
21623         TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
21624
21625         # If $no_tk is nonempty, then we can't do Tk, and there is no
21626         # point to doing Tcl.
21627         if test -z "${no_tk}"; then
21628
21629     if test -f "$TKCONFIG" ; then
21630       . $TKCONFIG
21631     fi
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646 #
21647 # Ok, lets find the tcl source trees so we can use the headers
21648 # Warning: transition of version 9 to 10 will break this algorithm
21649 # because 10 sorts before 9. We also look for just tcl. We have to
21650 # be careful that we don't match stuff like tclX by accident.
21651 # the alternative search directory is involked by --with-tclinclude
21652 #
21653
21654 no_tcl=true
21655 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
21656 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
21657
21658 # Check whether --with-tclinclude or --without-tclinclude was given.
21659 if test "${with_tclinclude+set}" = set; then
21660   withval="$with_tclinclude"
21661   with_tclinclude=${withval}
21662 fi;
21663 if test "${ac_cv_c_tclh+set}" = set; then
21664   echo $ECHO_N "(cached) $ECHO_C" >&6
21665 else
21666
21667 # first check to see if --with-tclinclude was specified
21668 if test x"${with_tclinclude}" != x ; then
21669   if test -f ${with_tclinclude}/tclInt.h ; then
21670     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
21671   elif test -f ${with_tclinclude}/generic/tclInt.h ; then
21672     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
21673   else
21674     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
21675 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
21676    { (exit 1); exit 1; }; }
21677   fi
21678 fi
21679
21680 # next check if it came with Tcl configuration file
21681 if test x"${ac_cv_c_tclconfig}" = x ; then
21682   if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
21683     ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
21684   fi
21685 fi
21686
21687 # next check in private source directory
21688 #
21689 # since ls returns lowest version numbers first, reverse its output
21690 if test x"${ac_cv_c_tclh}" = x ; then
21691   for i in \
21692                 ${srcdir}/../tcl \
21693                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
21694                 ${srcdir}/../../tcl \
21695                 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
21696                 ${srcdir}/../../../tcl \
21697                 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
21698     if test -f $i/generic/tclInt.h ; then
21699       ac_cv_c_tclh=`(cd $i/generic; pwd)`
21700       break
21701     fi
21702   done
21703 fi
21704 # finally check in a few common install locations
21705 #
21706 # since ls returns lowest version numbers first, reverse its output
21707 if test x"${ac_cv_c_tclh}" = x ; then
21708   for i in \
21709                 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
21710                 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
21711                 /usr/local/src/tcl \
21712                 /usr/local/lib/tcl \
21713                 ${prefix}/include ; do
21714     if test -f $i/generic/tclInt.h ; then
21715       ac_cv_c_tclh=`(cd $i/generic; pwd)`
21716       break
21717     fi
21718   done
21719 fi
21720 # see if one is installed
21721 if test x"${ac_cv_c_tclh}" = x ; then
21722    if test "${ac_cv_header_tclInt_h+set}" = set; then
21723   echo "$as_me:$LINENO: checking for tclInt.h" >&5
21724 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
21725 if test "${ac_cv_header_tclInt_h+set}" = set; then
21726   echo $ECHO_N "(cached) $ECHO_C" >&6
21727 fi
21728 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21729 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
21730 else
21731   # Is the header compilable?
21732 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
21733 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
21734 cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h.  */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h.  */
21740 $ac_includes_default
21741 #include <tclInt.h>
21742 _ACEOF
21743 rm -f conftest.$ac_objext
21744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21745   (eval $ac_compile) 2>conftest.er1
21746   ac_status=$?
21747   grep -v '^ *+' conftest.er1 >conftest.err
21748   rm -f conftest.er1
21749   cat conftest.err >&5
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } &&
21752          { ac_try='test -z "$ac_c_werror_flag"
21753                          || test ! -s conftest.err'
21754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755   (eval $ac_try) 2>&5
21756   ac_status=$?
21757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758   (exit $ac_status); }; } &&
21759          { ac_try='test -s conftest.$ac_objext'
21760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761   (eval $ac_try) 2>&5
21762   ac_status=$?
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); }; }; then
21765   ac_header_compiler=yes
21766 else
21767   echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21769
21770 ac_header_compiler=no
21771 fi
21772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21774 echo "${ECHO_T}$ac_header_compiler" >&6
21775
21776 # Is the header present?
21777 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
21778 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
21779 cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h.  */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h.  */
21785 #include <tclInt.h>
21786 _ACEOF
21787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21789   ac_status=$?
21790   grep -v '^ *+' conftest.er1 >conftest.err
21791   rm -f conftest.er1
21792   cat conftest.err >&5
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); } >/dev/null; then
21795   if test -s conftest.err; then
21796     ac_cpp_err=$ac_c_preproc_warn_flag
21797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21798   else
21799     ac_cpp_err=
21800   fi
21801 else
21802   ac_cpp_err=yes
21803 fi
21804 if test -z "$ac_cpp_err"; then
21805   ac_header_preproc=yes
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810   ac_header_preproc=no
21811 fi
21812 rm -f conftest.err conftest.$ac_ext
21813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21814 echo "${ECHO_T}$ac_header_preproc" >&6
21815
21816 # So?  What about this header?
21817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21818   yes:no: )
21819     { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21820 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21821     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
21822 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
21823     ac_header_preproc=yes
21824     ;;
21825   no:yes:* )
21826     { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
21827 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
21828     { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
21829 echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
21830     { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
21831 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
21832     { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
21833 echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21834     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
21835 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
21836     { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
21837 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
21838     (
21839       cat <<\_ASBOX
21840 ## ------------------------------------------ ##
21841 ## Report this to the AC_PACKAGE_NAME lists.  ##
21842 ## ------------------------------------------ ##
21843 _ASBOX
21844     ) |
21845       sed "s/^/$as_me: WARNING:     /" >&2
21846     ;;
21847 esac
21848 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21849 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
21850 if test "${ac_cv_header_tclInt_h+set}" = set; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853   ac_cv_header_tclInt_h=$ac_header_preproc
21854 fi
21855 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21856 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
21857
21858 fi
21859 if test $ac_cv_header_tclInt_h = yes; then
21860   ac_cv_c_tclh=installed
21861 else
21862   ac_cv_c_tclh=""
21863 fi
21864
21865
21866 fi
21867
21868 fi
21869
21870 if test x"${ac_cv_c_tclh}" = x ; then
21871   TCLHDIR="# no Tcl private headers found"
21872   { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
21873 echo "$as_me: error: Can't find Tcl private headers" >&2;}
21874    { (exit 1); exit 1; }; }
21875 fi
21876 if test x"${ac_cv_c_tclh}" != x ; then
21877   no_tcl=""
21878   if test x"${ac_cv_c_tclh}" = x"installed" ; then
21879     echo "$as_me:$LINENO: result: is installed" >&5
21880 echo "${ECHO_T}is installed" >&6
21881     TCLHDIR=""
21882   else
21883     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
21884 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
21885     # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
21886     TCLHDIR="-I${ac_cv_c_tclh}"
21887   fi
21888 fi
21889
21890
21891
21892
21893 #
21894 # Ok, lets find the tk source trees so we can use the headers
21895 # If the directory (presumably symlink) named "tk" exists, use that one
21896 # in preference to any others.  Same logic is used when choosing library
21897 # and again with Tcl. The search order is the best place to look first, then in
21898 # decreasing significance. The loop breaks if the trigger file is found.
21899 # Note the gross little conversion here of srcdir by cd'ing to the found
21900 # directory. This converts the path from a relative to an absolute, so
21901 # recursive cache variables for the path will work right. We check all
21902 # the possible paths in one loop rather than many seperate loops to speed
21903 # things up.
21904 # the alternative search directory is involked by --with-tkinclude
21905 #
21906 no_tk=true
21907 echo "$as_me:$LINENO: checking for Tk private headers" >&5
21908 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
21909
21910 # Check whether --with-tkinclude or --without-tkinclude was given.
21911 if test "${with_tkinclude+set}" = set; then
21912   withval="$with_tkinclude"
21913   with_tkinclude=${withval}
21914 fi;
21915 if test "${ac_cv_c_tkh+set}" = set; then
21916   echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918
21919 # first check to see if --with-tkinclude was specified
21920 if test x"${with_tkinclude}" != x ; then
21921   if test -f ${with_tkinclude}/tk.h ; then
21922     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
21923   elif test -f ${with_tkinclude}/generic/tk.h ; then
21924     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
21925   else
21926     { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
21927 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
21928    { (exit 1); exit 1; }; }
21929   fi
21930 fi
21931
21932 # next check if it came with Tk configuration file
21933 if test x"${ac_cv_c_tkconfig}" = x ; then
21934   if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
21935     ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
21936   fi
21937 fi
21938
21939 # next check in private source directory
21940 #
21941 # since ls returns lowest version numbers first, reverse its output
21942 if test x"${ac_cv_c_tkh}" = x ; then
21943   for i in \
21944                 ${srcdir}/../tk \
21945                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
21946                 ${srcdir}/../../tk \
21947                 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
21948                 ${srcdir}/../../../tk \
21949                 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
21950     if test -f $i/generic/tk.h ; then
21951       ac_cv_c_tkh=`(cd $i/generic; pwd)`
21952       break
21953     fi
21954   done
21955 fi
21956 # finally check in a few common install locations
21957 #
21958 # since ls returns lowest version numbers first, reverse its output
21959 if test x"${ac_cv_c_tkh}" = x ; then
21960   for i in \
21961                 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
21962                 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
21963                 /usr/local/src/tk \
21964                 /usr/local/lib/tk \
21965                 ${prefix}/include ; do
21966     if test -f $i/generic/tk.h ; then
21967       ac_cv_c_tkh=`(cd $i/generic; pwd)`
21968       break
21969     fi
21970   done
21971 fi
21972 # see if one is installed
21973 if test x"${ac_cv_c_tkh}" = x ; then
21974    if test "${ac_cv_header_tk_h+set}" = set; then
21975   echo "$as_me:$LINENO: checking for tk.h" >&5
21976 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
21977 if test "${ac_cv_header_tk_h+set}" = set; then
21978   echo $ECHO_N "(cached) $ECHO_C" >&6
21979 fi
21980 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21981 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21982 else
21983   # Is the header compilable?
21984 echo "$as_me:$LINENO: checking tk.h usability" >&5
21985 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
21986 cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h.  */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h.  */
21992 $ac_includes_default
21993 #include <tk.h>
21994 _ACEOF
21995 rm -f conftest.$ac_objext
21996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21997   (eval $ac_compile) 2>conftest.er1
21998   ac_status=$?
21999   grep -v '^ *+' conftest.er1 >conftest.err
22000   rm -f conftest.er1
22001   cat conftest.err >&5
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); } &&
22004          { ac_try='test -z "$ac_c_werror_flag"
22005                          || test ! -s conftest.err'
22006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007   (eval $ac_try) 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; } &&
22011          { ac_try='test -s conftest.$ac_objext'
22012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013   (eval $ac_try) 2>&5
22014   ac_status=$?
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); }; }; then
22017   ac_header_compiler=yes
22018 else
22019   echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22021
22022 ac_header_compiler=no
22023 fi
22024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22026 echo "${ECHO_T}$ac_header_compiler" >&6
22027
22028 # Is the header present?
22029 echo "$as_me:$LINENO: checking tk.h presence" >&5
22030 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
22031 cat >conftest.$ac_ext <<_ACEOF
22032 /* confdefs.h.  */
22033 _ACEOF
22034 cat confdefs.h >>conftest.$ac_ext
22035 cat >>conftest.$ac_ext <<_ACEOF
22036 /* end confdefs.h.  */
22037 #include <tk.h>
22038 _ACEOF
22039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22041   ac_status=$?
22042   grep -v '^ *+' conftest.er1 >conftest.err
22043   rm -f conftest.er1
22044   cat conftest.err >&5
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); } >/dev/null; then
22047   if test -s conftest.err; then
22048     ac_cpp_err=$ac_c_preproc_warn_flag
22049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22050   else
22051     ac_cpp_err=
22052   fi
22053 else
22054   ac_cpp_err=yes
22055 fi
22056 if test -z "$ac_cpp_err"; then
22057   ac_header_preproc=yes
22058 else
22059   echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22061
22062   ac_header_preproc=no
22063 fi
22064 rm -f conftest.err conftest.$ac_ext
22065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22066 echo "${ECHO_T}$ac_header_preproc" >&6
22067
22068 # So?  What about this header?
22069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22070   yes:no: )
22071     { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22072 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22073     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22074 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22075     ac_header_preproc=yes
22076     ;;
22077   no:yes:* )
22078     { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22079 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22080     { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
22081 echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
22082     { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22083 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22084     { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
22085 echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22086     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22087 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22088     { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22089 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
22090     (
22091       cat <<\_ASBOX
22092 ## ------------------------------------------ ##
22093 ## Report this to the AC_PACKAGE_NAME lists.  ##
22094 ## ------------------------------------------ ##
22095 _ASBOX
22096     ) |
22097       sed "s/^/$as_me: WARNING:     /" >&2
22098     ;;
22099 esac
22100 echo "$as_me:$LINENO: checking for tk.h" >&5
22101 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22102 if test "${ac_cv_header_tk_h+set}" = set; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105   ac_cv_header_tk_h=$ac_header_preproc
22106 fi
22107 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22108 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22109
22110 fi
22111 if test $ac_cv_header_tk_h = yes; then
22112   ac_cv_c_tkh=installed
22113 else
22114   ac_cv_c_tkh=""
22115 fi
22116
22117
22118 fi
22119
22120 fi
22121
22122 if test x"${ac_cv_c_tkh}" != x ; then
22123   no_tk=""
22124   if test x"${ac_cv_c_tkh}" = x"installed" ; then
22125     echo "$as_me:$LINENO: result: is installed" >&5
22126 echo "${ECHO_T}is installed" >&6
22127     TKHDIR=""
22128   else
22129     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22130 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
22131     # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22132     TKHDIR="-I${ac_cv_c_tkh}"
22133   fi
22134 else
22135   TKHDIR="# no Tk directory found"
22136   { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22137 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
22138   no_tk=true
22139 fi
22140
22141
22142
22143
22144 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22145 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
22146 if test x"${ac_cv_c_itclh}" = x ; then
22147   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22148     if test -f $i/generic/itcl.h ; then
22149       ac_cv_c_itclh=`(cd $i/generic; pwd)`
22150       break
22151     fi
22152   done
22153 fi
22154 if test x"${ac_cv_c_itclh}" = x ; then
22155   ITCLHDIR="# no Itcl private headers found"
22156   { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22157 echo "$as_me: error: Can't find Itcl private headers" >&2;}
22158    { (exit 1); exit 1; }; }
22159 fi
22160 if test x"${ac_cv_c_itclh}" != x ; then
22161      ITCLHDIR="-I${ac_cv_c_itclh}"
22162 fi
22163 # should always be here
22164 #     ITCLLIB="../itcl/itcl/unix/libitcl.a"
22165
22166 #AC_SUBST(ITCLLIB)
22167
22168
22169 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22170 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
22171 if test x"${ac_cv_c_itkh}" = x ; then
22172   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22173     if test -f $i/generic/itk.h ; then
22174       ac_cv_c_itkh=`(cd $i/generic; pwd)`
22175       break
22176     fi
22177   done
22178 fi
22179 if test x"${ac_cv_c_itkh}" = x ; then
22180   ITKHDIR="# no Itk private headers found"
22181   { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22182 echo "$as_me: error: Can't find Itk private headers" >&2;}
22183    { (exit 1); exit 1; }; }
22184 fi
22185 if test x"${ac_cv_c_itkh}" != x ; then
22186      ITKHDIR="-I${ac_cv_c_itkh}"
22187 fi
22188 # should always be here
22189 #     ITKLIB="../itcl/itk/unix/libitk.a"
22190
22191 #AC_SUBST(ITKLIB)
22192
22193
22194
22195            # now look for Tk library stuff
22196
22197            tkdir="../tk/${configdir}/"
22198
22199            TK_DEPS="${tkdir}${TK_LIB_FILE}"
22200
22201            # now look for Itcl library stuff
22202
22203
22204 #
22205 # Ok, lets find the itcl configuration
22206 # First, look for one uninstalled.
22207 # the alternative search directory is invoked by --with-itclconfig
22208 #
22209
22210 if test x"${no_itcl}" = x ; then
22211   # we reset no_itcl in case something fails here
22212   no_itcl=true
22213
22214 # Check whether --with-itclconfig or --without-itclconfig was given.
22215 if test "${with_itclconfig+set}" = set; then
22216   withval="$with_itclconfig"
22217   with_itclconfig=${withval}
22218 fi;
22219   echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22220 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
22221   if test "${ac_cv_c_itclconfig+set}" = set; then
22222   echo $ECHO_N "(cached) $ECHO_C" >&6
22223 else
22224
22225
22226   # First check to see if --with-itclconfig was specified.
22227   if test x"${with_itclconfig}" != x ; then
22228     if test -f "${with_itclconfig}/itclConfig.sh" ; then
22229       ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22230     else
22231       { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22232 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22233    { (exit 1); exit 1; }; }
22234     fi
22235   fi
22236
22237   # then check for a private Itcl library
22238   if test x"${ac_cv_c_itclconfig}" = x ; then
22239     for i in \
22240                 ../itcl/itcl \
22241                 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22242                 ../../itcl \
22243                 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22244                 ../../../itcl \
22245                 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22246       if test -f "$i/itclConfig.sh" ; then
22247         ac_cv_c_itclconfig=`(cd $i; pwd)`
22248         break
22249       fi
22250     done
22251   fi
22252   # check in a few common install locations
22253   if test x"${ac_cv_c_itclconfig}" = x ; then
22254     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22255       if test -f "$i/itclConfig.sh" ; then
22256         ac_cv_c_itclconfig=`(cd $i; pwd)`
22257         break
22258       fi
22259     done
22260   fi
22261   # check in a few other private locations
22262   if test x"${ac_cv_c_itclconfig}" = x ; then
22263     for i in \
22264                 ${srcdir}/../itcl/itcl \
22265                 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22266       if test -f "$i/itclConfig.sh" ; then
22267         ac_cv_c_itclconfig=`(cd $i; pwd)`
22268         break
22269       fi
22270     done
22271   fi
22272
22273 fi
22274
22275   if test x"${ac_cv_c_itclconfig}" = x ; then
22276     ITCLCONFIG="# no Itcl configs found"
22277     { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22278 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
22279   else
22280     no_itcl=
22281     ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
22282     echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22283 echo "${ECHO_T}found $ITCLCONFIG" >&6
22284   fi
22285 fi
22286
22287            if test -z "${no_itcl}"; then
22288
22289     if test -f "$ITCLCONFIG" ; then
22290       . $ITCLCONFIG
22291     fi
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304              ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
22305              ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
22306            fi
22307
22308
22309            # now look for Itk library stuff
22310
22311 #
22312 # Ok, lets find the itk configuration
22313 # First, look for one uninstalled.
22314 # the alternative search directory is invoked by --with-itkconfig
22315 #
22316
22317 if test x"${no_itk}" = x ; then
22318   # we reset no_itk in case something fails here
22319   no_itk=true
22320
22321 # Check whether --with-itkconfig or --without-itkconfig was given.
22322 if test "${with_itkconfig+set}" = set; then
22323   withval="$with_itkconfig"
22324   with_itkconfig=${withval}
22325 fi;
22326   echo "$as_me:$LINENO: checking for Itk configuration" >&5
22327 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
22328   if test "${ac_cv_c_itkconfig+set}" = set; then
22329   echo $ECHO_N "(cached) $ECHO_C" >&6
22330 else
22331
22332
22333   # First check to see if --with-itkconfig was specified.
22334   if test x"${with_itkconfig}" != x ; then
22335     if test -f "${with_itkconfig}/itkConfig.sh" ; then
22336       ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22337     else
22338       { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22339 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22340    { (exit 1); exit 1; }; }
22341     fi
22342   fi
22343
22344   # then check for a private Itk library
22345   if test x"${ac_cv_c_itkconfig}" = x ; then
22346     for i in \
22347                 ../itcl/itk \
22348                 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22349                 ../../itk \
22350                 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22351                 ../../../itk \
22352                 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22353       if test -f "$i/itkConfig.sh" ; then
22354         ac_cv_c_itkconfig=`(cd $i; pwd)`
22355         break
22356       fi
22357     done
22358   fi
22359   # check in a few common install locations
22360   if test x"${ac_cv_c_itkconfig}" = x ; then
22361     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22362       if test -f "$i/itkConfig.sh" ; then
22363         ac_cv_c_itkconfig=`(cd $i; pwd)`
22364         break
22365       fi
22366     done
22367   fi
22368   # check in a few other private locations
22369   if test x"${ac_cv_c_itkconfig}" = x ; then
22370     for i in \
22371                 ${srcdir}/../itcl/itk \
22372                 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22373       if test -f "$i/itkConfig.sh" ; then
22374         ac_cv_c_itkconfig=`(cd $i; pwd)`
22375         break
22376       fi
22377     done
22378   fi
22379
22380 fi
22381
22382   if test x"${ac_cv_c_itkconfig}" = x ; then
22383     ITKCONFIG="# no Itk configs found"
22384     { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22385 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
22386   else
22387     no_itk=
22388     ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
22389     echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22390 echo "${ECHO_T}found $ITKCONFIG" >&6
22391   fi
22392 fi
22393
22394
22395            if test -z "${no_itcl}"; then
22396
22397     if test -f "$ITKCONFIG" ; then
22398       . $ITKCONFIG
22399     fi
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412              ITKLIB="${ITK_BUILD_LIB_SPEC}"
22413              ITK_DEPS="${ITK_LIB_FULL_PATH}"
22414            fi
22415
22416            ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
22417
22418            # Include some libraries that Tcl and Tk want.
22419            TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
22420            # Yes, the ordering seems wrong here.  But it isn't.
22421            # TK_LIBS is the list of libraries that need to be linked
22422            # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
22423            # were in LIBS then any link tests after this point would
22424            # try to include things like `$(LIBGUI)', which wouldn't work.
22425            GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
22426
22427            CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22428            CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22429            CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
22430            CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22431            CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22432            CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22433            CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
22434
22435            if test x$gdb_cv_os_cygwin = xyes; then
22436               WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22437               WIN32LDAPP="-Wl,--subsystem,console"
22438               CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22439            fi
22440         fi
22441     fi
22442
22443
22444
22445 subdirs="$subdirs gdbtk"
22446
22447 fi
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462 echo "$as_me:$LINENO: checking for X" >&5
22463 echo $ECHO_N "checking for X... $ECHO_C" >&6
22464
22465
22466 # Check whether --with-x or --without-x was given.
22467 if test "${with_x+set}" = set; then
22468   withval="$with_x"
22469
22470 fi;
22471 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22472 if test "x$with_x" = xno; then
22473   # The user explicitly disabled X.
22474   have_x=disabled
22475 else
22476   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22477     # Both variables are already set.
22478     have_x=yes
22479   else
22480     if test "${ac_cv_have_x+set}" = set; then
22481   echo $ECHO_N "(cached) $ECHO_C" >&6
22482 else
22483   # One or both of the vars are not set, and there is no cached value.
22484 ac_x_includes=no ac_x_libraries=no
22485 rm -fr conftest.dir
22486 if mkdir conftest.dir; then
22487   cd conftest.dir
22488   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22489   cat >Imakefile <<'_ACEOF'
22490 acfindx:
22491         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22492 _ACEOF
22493   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22494     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22495     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22496     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22497     for ac_extension in a so sl; do
22498       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22499          test -f $ac_im_libdir/libX11.$ac_extension; then
22500         ac_im_usrlibdir=$ac_im_libdir; break
22501       fi
22502     done
22503     # Screen out bogus values from the imake configuration.  They are
22504     # bogus both because they are the default anyway, and because
22505     # using them would break gcc on systems where it needs fixed includes.
22506     case $ac_im_incroot in
22507         /usr/include) ;;
22508         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22509     esac
22510     case $ac_im_usrlibdir in
22511         /usr/lib | /lib) ;;
22512         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22513     esac
22514   fi
22515   cd ..
22516   rm -fr conftest.dir
22517 fi
22518
22519 # Standard set of common directories for X headers.
22520 # Check X11 before X11Rn because it is often a symlink to the current release.
22521 ac_x_header_dirs='
22522 /usr/X11/include
22523 /usr/X11R6/include
22524 /usr/X11R5/include
22525 /usr/X11R4/include
22526
22527 /usr/include/X11
22528 /usr/include/X11R6
22529 /usr/include/X11R5
22530 /usr/include/X11R4
22531
22532 /usr/local/X11/include
22533 /usr/local/X11R6/include
22534 /usr/local/X11R5/include
22535 /usr/local/X11R4/include
22536
22537 /usr/local/include/X11
22538 /usr/local/include/X11R6
22539 /usr/local/include/X11R5
22540 /usr/local/include/X11R4
22541
22542 /usr/X386/include
22543 /usr/x386/include
22544 /usr/XFree86/include/X11
22545
22546 /usr/include
22547 /usr/local/include
22548 /usr/unsupported/include
22549 /usr/athena/include
22550 /usr/local/x11r5/include
22551 /usr/lpp/Xamples/include
22552
22553 /usr/openwin/include
22554 /usr/openwin/share/include'
22555
22556 if test "$ac_x_includes" = no; then
22557   # Guess where to find include files, by looking for Intrinsic.h.
22558   # First, try using that file with no special directory specified.
22559   cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h.  */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h.  */
22565 #include <X11/Intrinsic.h>
22566 _ACEOF
22567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } >/dev/null; then
22575   if test -s conftest.err; then
22576     ac_cpp_err=$ac_c_preproc_warn_flag
22577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22578   else
22579     ac_cpp_err=
22580   fi
22581 else
22582   ac_cpp_err=yes
22583 fi
22584 if test -z "$ac_cpp_err"; then
22585   # We can compile using X headers with no special include directory.
22586 ac_x_includes=
22587 else
22588   echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591   for ac_dir in $ac_x_header_dirs; do
22592   if test -r "$ac_dir/X11/Intrinsic.h"; then
22593     ac_x_includes=$ac_dir
22594     break
22595   fi
22596 done
22597 fi
22598 rm -f conftest.err conftest.$ac_ext
22599 fi # $ac_x_includes = no
22600
22601 if test "$ac_x_libraries" = no; then
22602   # Check for the libraries.
22603   # See if we find them without any special options.
22604   # Don't add to $LIBS permanently.
22605   ac_save_LIBS=$LIBS
22606   LIBS="-lXt $LIBS"
22607   cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h.  */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h.  */
22613 #include <X11/Intrinsic.h>
22614 int
22615 main ()
22616 {
22617 XtMalloc (0)
22618   ;
22619   return 0;
22620 }
22621 _ACEOF
22622 rm -f conftest.$ac_objext conftest$ac_exeext
22623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624   (eval $ac_link) 2>conftest.er1
22625   ac_status=$?
22626   grep -v '^ *+' conftest.er1 >conftest.err
22627   rm -f conftest.er1
22628   cat conftest.err >&5
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); } &&
22631          { ac_try='test -z "$ac_c_werror_flag"
22632                          || test ! -s conftest.err'
22633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634   (eval $ac_try) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; } &&
22638          { ac_try='test -s conftest$ac_exeext'
22639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640   (eval $ac_try) 2>&5
22641   ac_status=$?
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); }; }; then
22644   LIBS=$ac_save_LIBS
22645 # We can link X programs with no special library path.
22646 ac_x_libraries=
22647 else
22648   echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651 LIBS=$ac_save_LIBS
22652 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22653 do
22654   # Don't even attempt the hair of trying to link an X program!
22655   for ac_extension in a so sl; do
22656     if test -r $ac_dir/libXt.$ac_extension; then
22657       ac_x_libraries=$ac_dir
22658       break 2
22659     fi
22660   done
22661 done
22662 fi
22663 rm -f conftest.err conftest.$ac_objext \
22664       conftest$ac_exeext conftest.$ac_ext
22665 fi # $ac_x_libraries = no
22666
22667 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22668   # Didn't find X anywhere.  Cache the known absence of X.
22669   ac_cv_have_x="have_x=no"
22670 else
22671   # Record where we found X for the cache.
22672   ac_cv_have_x="have_x=yes \
22673                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22674 fi
22675 fi
22676
22677   fi
22678   eval "$ac_cv_have_x"
22679 fi # $with_x != no
22680
22681 if test "$have_x" != yes; then
22682   echo "$as_me:$LINENO: result: $have_x" >&5
22683 echo "${ECHO_T}$have_x" >&6
22684   no_x=yes
22685 else
22686   # If each of the values was on the command line, it overrides each guess.
22687   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22688   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22689   # Update the cache value to reflect the command line values.
22690   ac_cv_have_x="have_x=yes \
22691                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22692   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22693 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22694 fi
22695
22696
22697 # Check whether we should enable the TUI, but only do so if we really
22698 # can.
22699 if test x"$enable_tui" = xyes; then
22700   if test -d $srcdir/tui; then
22701     if test "$ac_cv_search_waddstr" != no; then
22702       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22703       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22704       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22705       CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
22706       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22707       CONFIG_ALL="${CONFIG_ALL} all-tui"
22708       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
22709       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
22710       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
22711     else
22712       { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
22713 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
22714     fi
22715   fi
22716 fi
22717
22718 # Unlike the sim directory, whether a simulator is linked is controlled by
22719 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
22720 # This code just checks for a few cases where we'd like to ignore those
22721 # definitions, even when they're present in the '.mt' file.  These cases
22722 # are when --disable-sim is specified, or if the simulator directory is
22723 # not part of the source tree.
22724 #
22725 # Check whether --enable-sim or --disable-sim was given.
22726 if test "${enable_sim+set}" = set; then
22727   enableval="$enable_sim"
22728   echo "enable_sim = $enable_sim";
22729  echo "enableval = ${enableval}";
22730  case "${enableval}" in
22731   yes) ignore_sim=false ;;
22732   no)  ignore_sim=true ;;
22733   *)   ignore_sim=false ;;
22734  esac
22735 else
22736   ignore_sim=false
22737 fi;
22738
22739 if test ! -d "${srcdir}/../sim"; then
22740   ignore_sim=true
22741 fi
22742
22743 if test "${ignore_sim}" = "true"; then
22744     IGNORE_SIM="SIM="
22745     IGNORE_SIM_OBS="SIM_OBS="
22746 else
22747     IGNORE_SIM=""
22748     IGNORE_SIM_OBS=""
22749
22750 cat >>confdefs.h <<\_ACEOF
22751 #define WITH_SIM 1
22752 _ACEOF
22753
22754 fi
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769 # List of host floatformats.
22770
22771 cat >>confdefs.h <<_ACEOF
22772 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
22773 _ACEOF
22774
22775
22776 cat >>confdefs.h <<_ACEOF
22777 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
22778 _ACEOF
22779
22780
22781 cat >>confdefs.h <<_ACEOF
22782 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
22783 _ACEOF
22784
22785
22786 # target_subdir is used by the testsuite to find the target libraries.
22787 target_subdir=
22788 if test "${host}" != "${target}"; then
22789     target_subdir="${target_alias}/"
22790 fi
22791
22792
22793 frags=
22794 if test "${gdb_native}" = "yes"; then
22795   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
22796   if test ! -f ${host_makefile_frag}; then
22797     { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
22798 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
22799    { (exit 1); exit 1; }; }
22800   fi
22801   frags="$frags $host_makefile_frag"
22802 else
22803   host_makefile_frag=/dev/null
22804 fi
22805
22806 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
22807 if test ! -f ${target_makefile_frag}; then
22808   { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
22809 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
22810    { (exit 1); exit 1; }; }
22811 fi
22812 frags="$frags $target_makefile_frag"
22813
22814
22815
22816
22817
22818 hostfile=`sed -n '
22819 s/XM_FILE[      ]*=[    ]*\([^  ]*\)/\1/p
22820 ' ${host_makefile_frag}`
22821
22822 targetfile=`sed -n '
22823 s/^[    ]*DEPRECATED_TM_FILE[   ]*=[    ]*\([^  ]*\)/\1/p
22824 ' ${target_makefile_frag}`
22825
22826 if test "${gdb_native}" = "yes"; then
22827 # We pick this up from the host configuration file (.mh) because we
22828 # do not have a native configuration Makefile fragment.
22829 nativefile=`sed -n '
22830 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
22831 ' ${host_makefile_frag}`
22832 fi
22833
22834
22835 if test x"${gdb_osabi}" != x ; then
22836
22837 cat >>confdefs.h <<_ACEOF
22838 #define GDB_OSABI_DEFAULT $gdb_osabi
22839 _ACEOF
22840
22841 fi
22842
22843 # Enable multi-ice-gdb-server.
22844 # Check whether --enable-multi-ice or --disable-multi-ice was given.
22845 if test "${enable_multi_ice+set}" = set; then
22846   enableval="$enable_multi_ice"
22847   case $enableval in
22848     yes | no)
22849       ;;
22850     *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
22851 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
22852    { (exit 1); exit 1; }; } ;;
22853   esac
22854 fi;
22855 if test "x$enable_multi_ice" = xyes; then
22856
22857
22858 subdirs="$subdirs multi-ice"
22859
22860 fi
22861
22862 # We only build gdbserver automatically in a native configuration.
22863 if test "$gdb_native" = "yes"; then
22864   echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
22865 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
22866   if test "x$build_gdbserver" = xyes; then
22867     echo "$as_me:$LINENO: result: yes" >&5
22868 echo "${ECHO_T}yes" >&6
22869
22870
22871 subdirs="$subdirs gdbserver"
22872
22873   else
22874     echo "$as_me:$LINENO: result: no" >&5
22875 echo "${ECHO_T}no" >&6
22876   fi
22877 fi
22878
22879 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
22880 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
22881 # to an empty version.
22882
22883 files=
22884 links=
22885
22886 rm -f xm.h
22887 xm_h=""
22888 if test "${hostfile}" != ""; then
22889     xm_h=xm.h
22890     case "${hostfile}" in
22891       xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
22892       * ) GDB_XM_FILE="${hostfile}"
22893     esac
22894     files="${files} ${GDB_XM_FILE}"
22895     links="${links} xm.h"
22896
22897 cat >>confdefs.h <<_ACEOF
22898 #define GDB_XM_FILE "${GDB_XM_FILE}"
22899 _ACEOF
22900
22901 fi
22902
22903
22904 rm -f tm.h
22905 tm_h=""
22906 if test "${targetfile}" != ""; then
22907     tm_h=tm.h
22908     case "${targetfile}" in
22909       tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
22910       * ) GDB_TM_FILE="${targetfile}"
22911     esac
22912     files="${files} ${GDB_TM_FILE}"
22913     links="${links} tm.h"
22914
22915 cat >>confdefs.h <<_ACEOF
22916 #define GDB_TM_FILE "${GDB_TM_FILE}"
22917 _ACEOF
22918
22919 fi
22920
22921
22922 rm -f nm.h
22923 nm_h=""
22924 if test "${nativefile}" != ""; then
22925     nm_h=nm.h
22926     case "${nativefile}" in
22927       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
22928       * ) GDB_NM_FILE="${nativefile}"
22929     esac
22930     files="${files} ${GDB_NM_FILE}"
22931     links="${links} nm.h"
22932
22933 cat >>confdefs.h <<_ACEOF
22934 #define GDB_NM_FILE "${GDB_NM_FILE}"
22935 _ACEOF
22936
22937 fi
22938
22939
22940 ac_sources="$files"
22941 ac_dests="$links"
22942 while test -n "$ac_sources"; do
22943   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22944   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22945   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22946 done
22947           ac_config_links="$ac_config_links $ac_config_links_1"
22948
22949
22950
22951
22952
22953
22954 cat >>confdefs.h <<\_ACEOF
22955 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
22956 _ACEOF
22957
22958
22959
22960
22961
22962 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22963 if test "${with_libiconv_prefix+set}" = set; then
22964   withval="$with_libiconv_prefix"
22965
22966     for dir in `echo "$withval" | tr : ' '`; do
22967       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
22968       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
22969     done
22970
22971 fi;
22972
22973   echo "$as_me:$LINENO: checking for iconv" >&5
22974 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22975 if test "${am_cv_func_iconv+set}" = set; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978
22979     am_cv_func_iconv="no, consider installing GNU libiconv"
22980     am_cv_lib_iconv=no
22981     cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h.  */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h.  */
22987 #include <stdlib.h>
22988 #include <iconv.h>
22989 int
22990 main ()
22991 {
22992 iconv_t cd = iconv_open("","");
22993        iconv(cd,NULL,NULL,NULL,NULL);
22994        iconv_close(cd);
22995   ;
22996   return 0;
22997 }
22998 _ACEOF
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23001   (eval $ac_link) 2>conftest.er1
23002   ac_status=$?
23003   grep -v '^ *+' conftest.er1 >conftest.err
23004   rm -f conftest.er1
23005   cat conftest.err >&5
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); } &&
23008          { ac_try='test -z "$ac_c_werror_flag"
23009                          || test ! -s conftest.err'
23010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011   (eval $ac_try) 2>&5
23012   ac_status=$?
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); }; } &&
23015          { ac_try='test -s conftest$ac_exeext'
23016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017   (eval $ac_try) 2>&5
23018   ac_status=$?
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); }; }; then
23021   am_cv_func_iconv=yes
23022 else
23023   echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 fi
23027 rm -f conftest.err conftest.$ac_objext \
23028       conftest$ac_exeext conftest.$ac_ext
23029     if test "$am_cv_func_iconv" != yes; then
23030       am_save_LIBS="$LIBS"
23031       LIBS="$LIBS -liconv"
23032       cat >conftest.$ac_ext <<_ACEOF
23033 /* confdefs.h.  */
23034 _ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h.  */
23038 #include <stdlib.h>
23039 #include <iconv.h>
23040 int
23041 main ()
23042 {
23043 iconv_t cd = iconv_open("","");
23044          iconv(cd,NULL,NULL,NULL,NULL);
23045          iconv_close(cd);
23046   ;
23047   return 0;
23048 }
23049 _ACEOF
23050 rm -f conftest.$ac_objext conftest$ac_exeext
23051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23052   (eval $ac_link) 2>conftest.er1
23053   ac_status=$?
23054   grep -v '^ *+' conftest.er1 >conftest.err
23055   rm -f conftest.er1
23056   cat conftest.err >&5
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); } &&
23059          { ac_try='test -z "$ac_c_werror_flag"
23060                          || test ! -s conftest.err'
23061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062   (eval $ac_try) 2>&5
23063   ac_status=$?
23064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065   (exit $ac_status); }; } &&
23066          { ac_try='test -s conftest$ac_exeext'
23067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068   (eval $ac_try) 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); }; }; then
23072   am_cv_lib_iconv=yes
23073         am_cv_func_iconv=yes
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078 fi
23079 rm -f conftest.err conftest.$ac_objext \
23080       conftest$ac_exeext conftest.$ac_ext
23081       LIBS="$am_save_LIBS"
23082     fi
23083
23084 fi
23085 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23086 echo "${ECHO_T}$am_cv_func_iconv" >&6
23087   if test "$am_cv_func_iconv" = yes; then
23088
23089 cat >>confdefs.h <<\_ACEOF
23090 #define HAVE_ICONV 1
23091 _ACEOF
23092
23093     echo "$as_me:$LINENO: checking for iconv declaration" >&5
23094 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
23095     if test "${am_cv_proto_iconv+set}" = set; then
23096   echo $ECHO_N "(cached) $ECHO_C" >&6
23097 else
23098
23099       cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105
23106 #include <stdlib.h>
23107 #include <iconv.h>
23108 extern
23109 #ifdef __cplusplus
23110 "C"
23111 #endif
23112 #if defined(__STDC__) || defined(__cplusplus)
23113 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23114 #else
23115 size_t iconv();
23116 #endif
23117
23118 int
23119 main ()
23120 {
23121
23122   ;
23123   return 0;
23124 }
23125 _ACEOF
23126 rm -f conftest.$ac_objext
23127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23128   (eval $ac_compile) 2>conftest.er1
23129   ac_status=$?
23130   grep -v '^ *+' conftest.er1 >conftest.err
23131   rm -f conftest.er1
23132   cat conftest.err >&5
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); } &&
23135          { ac_try='test -z "$ac_c_werror_flag"
23136                          || test ! -s conftest.err'
23137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138   (eval $ac_try) 2>&5
23139   ac_status=$?
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); }; } &&
23142          { ac_try='test -s conftest.$ac_objext'
23143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144   (eval $ac_try) 2>&5
23145   ac_status=$?
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); }; }; then
23148   am_cv_proto_iconv_arg1=""
23149 else
23150   echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153 am_cv_proto_iconv_arg1="const"
23154 fi
23155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23156       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);"
23157 fi
23158
23159     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23160     echo "$as_me:$LINENO: result: ${ac_t:-
23161          }$am_cv_proto_iconv" >&5
23162 echo "${ECHO_T}${ac_t:-
23163          }$am_cv_proto_iconv" >&6
23164
23165 cat >>confdefs.h <<_ACEOF
23166 #define ICONV_CONST $am_cv_proto_iconv_arg1
23167 _ACEOF
23168
23169   fi
23170   LIBICONV=
23171   if test "$am_cv_lib_iconv" = yes; then
23172     LIBICONV="-liconv"
23173   fi
23174
23175
23176
23177                     ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23178           ac_config_commands="$ac_config_commands default"
23179 cat >confcache <<\_ACEOF
23180 # This file is a shell script that caches the results of configure
23181 # tests run on this system so they can be shared between configure
23182 # scripts and configure runs, see configure's option --config-cache.
23183 # It is not useful on other systems.  If it contains results you don't
23184 # want to keep, you may remove or edit it.
23185 #
23186 # config.status only pays attention to the cache file if you give it
23187 # the --recheck option to rerun configure.
23188 #
23189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23191 # following values.
23192
23193 _ACEOF
23194
23195 # The following way of writing the cache mishandles newlines in values,
23196 # but we know of no workaround that is simple, portable, and efficient.
23197 # So, don't put newlines in cache variables' values.
23198 # Ultrix sh set writes to stderr and can't be redirected directly,
23199 # and sets the high bit in the cache file unless we assign to the vars.
23200 {
23201   (set) 2>&1 |
23202     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23203     *ac_space=\ *)
23204       # `set' does not quote correctly, so add quotes (double-quote
23205       # substitution turns \\\\ into \\, and sed turns \\ into \).
23206       sed -n \
23207         "s/'/'\\\\''/g;
23208           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23209       ;;
23210     *)
23211       # `set' quotes correctly as required by POSIX, so do not add quotes.
23212       sed -n \
23213         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23214       ;;
23215     esac;
23216 } |
23217   sed '
23218      t clear
23219      : clear
23220      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23221      t end
23222      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23223      : end' >>confcache
23224 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23225   if test -w $cache_file; then
23226     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23227     cat confcache >$cache_file
23228   else
23229     echo "not updating unwritable cache $cache_file"
23230   fi
23231 fi
23232 rm -f confcache
23233
23234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23235 # Let make expand exec_prefix.
23236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23237
23238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23240 # trailing colons and then remove the whole line if VPATH becomes empty
23241 # (actually we leave an empty line to preserve line numbers).
23242 if test "x$srcdir" = x.; then
23243   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23244 s/:*\$(srcdir):*/:/;
23245 s/:*\${srcdir}:*/:/;
23246 s/:*@srcdir@:*/:/;
23247 s/^\([^=]*=[     ]*\):*/\1/;
23248 s/:*$//;
23249 s/^[^=]*=[       ]*$//;
23250 }'
23251 fi
23252
23253 DEFS=-DHAVE_CONFIG_H
23254
23255 ac_libobjs=
23256 ac_ltlibobjs=
23257 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23258   # 1. Remove the extension, and $U if already installed.
23259   ac_i=`echo "$ac_i" |
23260          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23261   # 2. Add them.
23262   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23263   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23264 done
23265 LIBOBJS=$ac_libobjs
23266
23267 LTLIBOBJS=$ac_ltlibobjs
23268
23269
23270 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23271   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23272 Usually this means the macro was only invoked conditionally." >&5
23273 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23274 Usually this means the macro was only invoked conditionally." >&2;}
23275    { (exit 1); exit 1; }; }
23276 fi
23277
23278 : ${CONFIG_STATUS=./config.status}
23279 ac_clean_files_save=$ac_clean_files
23280 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23281 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23282 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23283 cat >$CONFIG_STATUS <<_ACEOF
23284 #! $SHELL
23285 # Generated by $as_me.
23286 # Run this file to recreate the current configuration.
23287 # Compiler output produced by configure, useful for debugging
23288 # configure, is in config.log if it exists.
23289
23290 debug=false
23291 ac_cs_recheck=false
23292 ac_cs_silent=false
23293 SHELL=\${CONFIG_SHELL-$SHELL}
23294 _ACEOF
23295
23296 cat >>$CONFIG_STATUS <<\_ACEOF
23297 ## --------------------- ##
23298 ## M4sh Initialization.  ##
23299 ## --------------------- ##
23300
23301 # Be Bourne compatible
23302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23303   emulate sh
23304   NULLCMD=:
23305   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23306   # is contrary to our usage.  Disable this feature.
23307   alias -g '${1+"$@"}'='"$@"'
23308 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23309   set -o posix
23310 fi
23311 DUALCASE=1; export DUALCASE # for MKS sh
23312
23313 # Support unset when possible.
23314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23315   as_unset=unset
23316 else
23317   as_unset=false
23318 fi
23319
23320
23321 # Work around bugs in pre-3.0 UWIN ksh.
23322 $as_unset ENV MAIL MAILPATH
23323 PS1='$ '
23324 PS2='> '
23325 PS4='+ '
23326
23327 # NLS nuisances.
23328 for as_var in \
23329   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23330   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23331   LC_TELEPHONE LC_TIME
23332 do
23333   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23334     eval $as_var=C; export $as_var
23335   else
23336     $as_unset $as_var
23337   fi
23338 done
23339
23340 # Required to use basename.
23341 if expr a : '\(a\)' >/dev/null 2>&1; then
23342   as_expr=expr
23343 else
23344   as_expr=false
23345 fi
23346
23347 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23348   as_basename=basename
23349 else
23350   as_basename=false
23351 fi
23352
23353
23354 # Name of the executable.
23355 as_me=`$as_basename "$0" ||
23356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23357          X"$0" : 'X\(//\)$' \| \
23358          X"$0" : 'X\(/\)$' \| \
23359          .     : '\(.\)' 2>/dev/null ||
23360 echo X/"$0" |
23361     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23362           /^X\/\(\/\/\)$/{ s//\1/; q; }
23363           /^X\/\(\/\).*/{ s//\1/; q; }
23364           s/.*/./; q'`
23365
23366
23367 # PATH needs CR, and LINENO needs CR and PATH.
23368 # Avoid depending upon Character Ranges.
23369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23372 as_cr_digits='0123456789'
23373 as_cr_alnum=$as_cr_Letters$as_cr_digits
23374
23375 # The user is always right.
23376 if test "${PATH_SEPARATOR+set}" != set; then
23377   echo "#! /bin/sh" >conf$$.sh
23378   echo  "exit 0"   >>conf$$.sh
23379   chmod +x conf$$.sh
23380   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23381     PATH_SEPARATOR=';'
23382   else
23383     PATH_SEPARATOR=:
23384   fi
23385   rm -f conf$$.sh
23386 fi
23387
23388
23389   as_lineno_1=$LINENO
23390   as_lineno_2=$LINENO
23391   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23392   test "x$as_lineno_1" != "x$as_lineno_2" &&
23393   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23394   # Find who we are.  Look in the path if we contain no path at all
23395   # relative or not.
23396   case $0 in
23397     *[\\/]* ) as_myself=$0 ;;
23398     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23399 for as_dir in $PATH
23400 do
23401   IFS=$as_save_IFS
23402   test -z "$as_dir" && as_dir=.
23403   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23404 done
23405
23406        ;;
23407   esac
23408   # We did not find ourselves, most probably we were run as `sh COMMAND'
23409   # in which case we are not to be found in the path.
23410   if test "x$as_myself" = x; then
23411     as_myself=$0
23412   fi
23413   if test ! -f "$as_myself"; then
23414     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23415 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23416    { (exit 1); exit 1; }; }
23417   fi
23418   case $CONFIG_SHELL in
23419   '')
23420     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23421 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23422 do
23423   IFS=$as_save_IFS
23424   test -z "$as_dir" && as_dir=.
23425   for as_base in sh bash ksh sh5; do
23426          case $as_dir in
23427          /*)
23428            if ("$as_dir/$as_base" -c '
23429   as_lineno_1=$LINENO
23430   as_lineno_2=$LINENO
23431   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23432   test "x$as_lineno_1" != "x$as_lineno_2" &&
23433   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23434              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23435              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23436              CONFIG_SHELL=$as_dir/$as_base
23437              export CONFIG_SHELL
23438              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23439            fi;;
23440          esac
23441        done
23442 done
23443 ;;
23444   esac
23445
23446   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23447   # uniformly replaced by the line number.  The first 'sed' inserts a
23448   # line-number line before each line; the second 'sed' does the real
23449   # work.  The second script uses 'N' to pair each line-number line
23450   # with the numbered line, and appends trailing '-' during
23451   # substitution so that $LINENO is not a special case at line end.
23452   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23453   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23454   sed '=' <$as_myself |
23455     sed '
23456       N
23457       s,$,-,
23458       : loop
23459       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23460       t loop
23461       s,-$,,
23462       s,^['$as_cr_digits']*\n,,
23463     ' >$as_me.lineno &&
23464   chmod +x $as_me.lineno ||
23465     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23466 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23467    { (exit 1); exit 1; }; }
23468
23469   # Don't try to exec as it changes $[0], causing all sort of problems
23470   # (the dirname of $[0] is not the place where we might find the
23471   # original and so on.  Autoconf is especially sensible to this).
23472   . ./$as_me.lineno
23473   # Exit status is that of the last command.
23474   exit
23475 }
23476
23477
23478 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23479   *c*,-n*) ECHO_N= ECHO_C='
23480 ' ECHO_T='      ' ;;
23481   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23482   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23483 esac
23484
23485 if expr a : '\(a\)' >/dev/null 2>&1; then
23486   as_expr=expr
23487 else
23488   as_expr=false
23489 fi
23490
23491 rm -f conf$$ conf$$.exe conf$$.file
23492 echo >conf$$.file
23493 if ln -s conf$$.file conf$$ 2>/dev/null; then
23494   # We could just check for DJGPP; but this test a) works b) is more generic
23495   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23496   if test -f conf$$.exe; then
23497     # Don't use ln at all; we don't have any links
23498     as_ln_s='cp -p'
23499   else
23500     as_ln_s='ln -s'
23501   fi
23502 elif ln conf$$.file conf$$ 2>/dev/null; then
23503   as_ln_s=ln
23504 else
23505   as_ln_s='cp -p'
23506 fi
23507 rm -f conf$$ conf$$.exe conf$$.file
23508
23509 if mkdir -p . 2>/dev/null; then
23510   as_mkdir_p=:
23511 else
23512   test -d ./-p && rmdir ./-p
23513   as_mkdir_p=false
23514 fi
23515
23516 as_executable_p="test -f"
23517
23518 # Sed expression to map a string onto a valid CPP name.
23519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23520
23521 # Sed expression to map a string onto a valid variable name.
23522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23523
23524
23525 # IFS
23526 # We need space, tab and new line, in precisely that order.
23527 as_nl='
23528 '
23529 IFS="   $as_nl"
23530
23531 # CDPATH.
23532 $as_unset CDPATH
23533
23534 exec 6>&1
23535
23536 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23537 # report actual input values of CONFIG_FILES etc. instead of their
23538 # values after options handling.  Logging --version etc. is OK.
23539 exec 5>>config.log
23540 {
23541   echo
23542   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23543 ## Running $as_me. ##
23544 _ASBOX
23545 } >&5
23546 cat >&5 <<_CSEOF
23547
23548 This file was extended by $as_me, which was
23549 generated by GNU Autoconf 2.59.  Invocation command line was
23550
23551   CONFIG_FILES    = $CONFIG_FILES
23552   CONFIG_HEADERS  = $CONFIG_HEADERS
23553   CONFIG_LINKS    = $CONFIG_LINKS
23554   CONFIG_COMMANDS = $CONFIG_COMMANDS
23555   $ $0 $@
23556
23557 _CSEOF
23558 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23559 echo >&5
23560 _ACEOF
23561
23562 # Files that config.status was made for.
23563 if test -n "$ac_config_files"; then
23564   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23565 fi
23566
23567 if test -n "$ac_config_headers"; then
23568   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23569 fi
23570
23571 if test -n "$ac_config_links"; then
23572   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23573 fi
23574
23575 if test -n "$ac_config_commands"; then
23576   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23577 fi
23578
23579 cat >>$CONFIG_STATUS <<\_ACEOF
23580
23581 ac_cs_usage="\
23582 \`$as_me' instantiates files from templates according to the
23583 current configuration.
23584
23585 Usage: $0 [OPTIONS] [FILE]...
23586
23587   -h, --help       print this help, then exit
23588   -V, --version    print version number, then exit
23589   -q, --quiet      do not print progress messages
23590   -d, --debug      don't remove temporary files
23591       --recheck    update $as_me by reconfiguring in the same conditions
23592   --file=FILE[:TEMPLATE]
23593                    instantiate the configuration file FILE
23594   --header=FILE[:TEMPLATE]
23595                    instantiate the configuration header FILE
23596
23597 Configuration files:
23598 $config_files
23599
23600 Configuration headers:
23601 $config_headers
23602
23603 Configuration links:
23604 $config_links
23605
23606 Configuration commands:
23607 $config_commands
23608
23609 Report bugs to <bug-autoconf@gnu.org>."
23610 _ACEOF
23611
23612 cat >>$CONFIG_STATUS <<_ACEOF
23613 ac_cs_version="\\
23614 config.status
23615 configured by $0, generated by GNU Autoconf 2.59,
23616   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23617
23618 Copyright (C) 2003 Free Software Foundation, Inc.
23619 This config.status script is free software; the Free Software Foundation
23620 gives unlimited permission to copy, distribute and modify it."
23621 srcdir=$srcdir
23622 INSTALL="$INSTALL"
23623 _ACEOF
23624
23625 cat >>$CONFIG_STATUS <<\_ACEOF
23626 # If no file are specified by the user, then we need to provide default
23627 # value.  By we need to know if files were specified by the user.
23628 ac_need_defaults=:
23629 while test $# != 0
23630 do
23631   case $1 in
23632   --*=*)
23633     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23634     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23635     ac_shift=:
23636     ;;
23637   -*)
23638     ac_option=$1
23639     ac_optarg=$2
23640     ac_shift=shift
23641     ;;
23642   *) # This is not an option, so the user has probably given explicit
23643      # arguments.
23644      ac_option=$1
23645      ac_need_defaults=false;;
23646   esac
23647
23648   case $ac_option in
23649   # Handling of the options.
23650 _ACEOF
23651 cat >>$CONFIG_STATUS <<\_ACEOF
23652   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23653     ac_cs_recheck=: ;;
23654   --version | --vers* | -V )
23655     echo "$ac_cs_version"; exit 0 ;;
23656   --he | --h)
23657     # Conflict between --help and --header
23658     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23659 Try \`$0 --help' for more information." >&5
23660 echo "$as_me: error: ambiguous option: $1
23661 Try \`$0 --help' for more information." >&2;}
23662    { (exit 1); exit 1; }; };;
23663   --help | --hel | -h )
23664     echo "$ac_cs_usage"; exit 0 ;;
23665   --debug | --d* | -d )
23666     debug=: ;;
23667   --file | --fil | --fi | --f )
23668     $ac_shift
23669     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23670     ac_need_defaults=false;;
23671   --header | --heade | --head | --hea )
23672     $ac_shift
23673     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23674     ac_need_defaults=false;;
23675   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23676   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23677     ac_cs_silent=: ;;
23678
23679   # This is an error.
23680   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23681 Try \`$0 --help' for more information." >&5
23682 echo "$as_me: error: unrecognized option: $1
23683 Try \`$0 --help' for more information." >&2;}
23684    { (exit 1); exit 1; }; } ;;
23685
23686   *) ac_config_targets="$ac_config_targets $1" ;;
23687
23688   esac
23689   shift
23690 done
23691
23692 ac_configure_extra_args=
23693
23694 if $ac_cs_silent; then
23695   exec 6>/dev/null
23696   ac_configure_extra_args="$ac_configure_extra_args --silent"
23697 fi
23698
23699 _ACEOF
23700 cat >>$CONFIG_STATUS <<_ACEOF
23701 if \$ac_cs_recheck; then
23702   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23703   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23704 fi
23705
23706 _ACEOF
23707
23708 cat >>$CONFIG_STATUS <<_ACEOF
23709 #
23710 # INIT-COMMANDS section.
23711 #
23712
23713
23714 GCC="$GCC"
23715 CC="$CC"
23716 acx_cv_header_stdint="$acx_cv_header_stdint"
23717 acx_cv_type_int8_t="$acx_cv_type_int8_t"
23718 acx_cv_type_int16_t="$acx_cv_type_int16_t"
23719 acx_cv_type_int32_t="$acx_cv_type_int32_t"
23720 acx_cv_type_int64_t="$acx_cv_type_int64_t"
23721 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23722 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23723 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23724 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23725 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23726 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23727 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23728 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23729 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23730
23731
23732 gdb_host_cpu=$gdb_host_cpu
23733 gdb_target_cpu=$gdb_target_cpu
23734 nativefile=$nativefile
23735
23736
23737 _ACEOF
23738
23739
23740
23741 cat >>$CONFIG_STATUS <<\_ACEOF
23742 for ac_config_target in $ac_config_targets
23743 do
23744   case "$ac_config_target" in
23745   # Handling of arguments.
23746   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23747   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
23748   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
23749   "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
23750   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23751   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23752   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23753 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23754    { (exit 1); exit 1; }; };;
23755   esac
23756 done
23757
23758 # If the user did not use the arguments to specify the items to instantiate,
23759 # then the envvar interface is used.  Set only those that are not.
23760 # We use the long form for the default assignment because of an extremely
23761 # bizarre bug on SunOS 4.1.3.
23762 if $ac_need_defaults; then
23763   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23764   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23765   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23766   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23767 fi
23768
23769 # Have a temporary directory for convenience.  Make it in the build tree
23770 # simply because there is no reason to put it here, and in addition,
23771 # creating and moving files from /tmp can sometimes cause problems.
23772 # Create a temporary directory, and hook for its removal unless debugging.
23773 $debug ||
23774 {
23775   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23776   trap '{ (exit 1); exit 1; }' 1 2 13 15
23777 }
23778
23779 # Create a (secure) tmp directory for tmp files.
23780
23781 {
23782   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23783   test -n "$tmp" && test -d "$tmp"
23784 }  ||
23785 {
23786   tmp=./confstat$$-$RANDOM
23787   (umask 077 && mkdir $tmp)
23788 } ||
23789 {
23790    echo "$me: cannot create a temporary directory in ." >&2
23791    { (exit 1); exit 1; }
23792 }
23793
23794 _ACEOF
23795
23796 cat >>$CONFIG_STATUS <<_ACEOF
23797
23798 #
23799 # CONFIG_FILES section.
23800 #
23801
23802 # No need to generate the scripts if there are no CONFIG_FILES.
23803 # This happens for instance when ./config.status config.h
23804 if test -n "\$CONFIG_FILES"; then
23805   # Protect against being on the right side of a sed subst in config.status.
23806   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23807    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23808 s,@SHELL@,$SHELL,;t t
23809 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23810 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23811 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23812 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23813 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23814 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23815 s,@exec_prefix@,$exec_prefix,;t t
23816 s,@prefix@,$prefix,;t t
23817 s,@program_transform_name@,$program_transform_name,;t t
23818 s,@bindir@,$bindir,;t t
23819 s,@sbindir@,$sbindir,;t t
23820 s,@libexecdir@,$libexecdir,;t t
23821 s,@datadir@,$datadir,;t t
23822 s,@sysconfdir@,$sysconfdir,;t t
23823 s,@sharedstatedir@,$sharedstatedir,;t t
23824 s,@localstatedir@,$localstatedir,;t t
23825 s,@libdir@,$libdir,;t t
23826 s,@includedir@,$includedir,;t t
23827 s,@oldincludedir@,$oldincludedir,;t t
23828 s,@infodir@,$infodir,;t t
23829 s,@mandir@,$mandir,;t t
23830 s,@build_alias@,$build_alias,;t t
23831 s,@host_alias@,$host_alias,;t t
23832 s,@target_alias@,$target_alias,;t t
23833 s,@DEFS@,$DEFS,;t t
23834 s,@ECHO_C@,$ECHO_C,;t t
23835 s,@ECHO_N@,$ECHO_N,;t t
23836 s,@ECHO_T@,$ECHO_T,;t t
23837 s,@LIBS@,$LIBS,;t t
23838 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23839 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23840 s,@MAINT@,$MAINT,;t t
23841 s,@CC@,$CC,;t t
23842 s,@CFLAGS@,$CFLAGS,;t t
23843 s,@LDFLAGS@,$LDFLAGS,;t t
23844 s,@CPPFLAGS@,$CPPFLAGS,;t t
23845 s,@ac_ct_CC@,$ac_ct_CC,;t t
23846 s,@EXEEXT@,$EXEEXT,;t t
23847 s,@OBJEXT@,$OBJEXT,;t t
23848 s,@CPP@,$CPP,;t t
23849 s,@EGREP@,$EGREP,;t t
23850 s,@build@,$build,;t t
23851 s,@build_cpu@,$build_cpu,;t t
23852 s,@build_vendor@,$build_vendor,;t t
23853 s,@build_os@,$build_os,;t t
23854 s,@host@,$host,;t t
23855 s,@host_cpu@,$host_cpu,;t t
23856 s,@host_vendor@,$host_vendor,;t t
23857 s,@host_os@,$host_os,;t t
23858 s,@target@,$target,;t t
23859 s,@target_cpu@,$target_cpu,;t t
23860 s,@target_vendor@,$target_vendor,;t t
23861 s,@target_os@,$target_os,;t t
23862 s,@USE_NLS@,$USE_NLS,;t t
23863 s,@LIBINTL@,$LIBINTL,;t t
23864 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23865 s,@INCINTL@,$INCINTL,;t t
23866 s,@XGETTEXT@,$XGETTEXT,;t t
23867 s,@GMSGFMT@,$GMSGFMT,;t t
23868 s,@POSUB@,$POSUB,;t t
23869 s,@CATALOGS@,$CATALOGS,;t t
23870 s,@DATADIRNAME@,$DATADIRNAME,;t t
23871 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23872 s,@GENCAT@,$GENCAT,;t t
23873 s,@CATOBJEXT@,$CATOBJEXT,;t t
23874 s,@localedir@,$localedir,;t t
23875 s,@PACKAGE@,$PACKAGE,;t t
23876 s,@subdirs@,$subdirs,;t t
23877 s,@AWK@,$AWK,;t t
23878 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23879 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23880 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23881 s,@LN_S@,$LN_S,;t t
23882 s,@RANLIB@,$RANLIB,;t t
23883 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23884 s,@YACC@,$YACC,;t t
23885 s,@AR@,$AR,;t t
23886 s,@ac_ct_AR@,$ac_ct_AR,;t t
23887 s,@DLLTOOL@,$DLLTOOL,;t t
23888 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23889 s,@WINDRES@,$WINDRES,;t t
23890 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
23891 s,@MIG@,$MIG,;t t
23892 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
23893 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
23894 s,@LIBEXPAT@,$LIBEXPAT,;t t
23895 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
23896 s,@ALLOCA@,$ALLOCA,;t t
23897 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
23898 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
23899 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
23900 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23901 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
23902 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
23903 s,@WIN32LIBS@,$WIN32LIBS,;t t
23904 s,@LIBGUI@,$LIBGUI,;t t
23905 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
23906 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
23907 s,@TCL_VERSION@,$TCL_VERSION,;t t
23908 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
23909 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
23910 s,@TCL_CC@,$TCL_CC,;t t
23911 s,@TCL_DEFS@,$TCL_DEFS,;t t
23912 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
23913 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
23914 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23915 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
23916 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
23917 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
23918 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
23919 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
23920 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
23921 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
23922 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
23923 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23924 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
23925 s,@TK_VERSION@,$TK_VERSION,;t t
23926 s,@TK_DEFS@,$TK_DEFS,;t t
23927 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
23928 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
23929 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
23930 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
23931 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
23932 s,@TCLHDIR@,$TCLHDIR,;t t
23933 s,@TKHDIR@,$TKHDIR,;t t
23934 s,@ITCLHDIR@,$ITCLHDIR,;t t
23935 s,@ITKHDIR@,$ITKHDIR,;t t
23936 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
23937 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
23938 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
23939 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
23940 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
23941 s,@ITK_VERSION@,$ITK_VERSION,;t t
23942 s,@ITK_DEFS@,$ITK_DEFS,;t t
23943 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
23944 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
23945 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
23946 s,@X_CFLAGS@,$X_CFLAGS,;t t
23947 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
23948 s,@X_LIBS@,$X_LIBS,;t t
23949 s,@TCL_DEPS@,$TCL_DEPS,;t t
23950 s,@TK_DEPS@,$TK_DEPS,;t t
23951 s,@ITCLLIB@,$ITCLLIB,;t t
23952 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
23953 s,@ITKLIB@,$ITKLIB,;t t
23954 s,@ITK_DEPS@,$ITK_DEPS,;t t
23955 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
23956 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
23957 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
23958 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
23959 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
23960 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
23961 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
23962 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
23963 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
23964 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
23965 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
23966 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
23967 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
23968 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
23969 s,@target_subdir@,$target_subdir,;t t
23970 s,@frags@,$frags,;t t
23971 s,@xm_h@,$xm_h,;t t
23972 s,@tm_h@,$tm_h,;t t
23973 s,@nm_h@,$nm_h,;t t
23974 s,@LIBICONV@,$LIBICONV,;t t
23975 s,@LIBOBJS@,$LIBOBJS,;t t
23976 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23977 /@host_makefile_frag@/r $host_makefile_frag
23978 s,@host_makefile_frag@,,;t t
23979 /@target_makefile_frag@/r $target_makefile_frag
23980 s,@target_makefile_frag@,,;t t
23981 CEOF
23982
23983 _ACEOF
23984
23985   cat >>$CONFIG_STATUS <<\_ACEOF
23986   # Split the substitutions into bite-sized pieces for seds with
23987   # small command number limits, like on Digital OSF/1 and HP-UX.
23988   ac_max_sed_lines=48
23989   ac_sed_frag=1 # Number of current file.
23990   ac_beg=1 # First line for current file.
23991   ac_end=$ac_max_sed_lines # Line after last line for current file.
23992   ac_more_lines=:
23993   ac_sed_cmds=
23994   while $ac_more_lines; do
23995     if test $ac_beg -gt 1; then
23996       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23997     else
23998       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23999     fi
24000     if test ! -s $tmp/subs.frag; then
24001       ac_more_lines=false
24002     else
24003       # The purpose of the label and of the branching condition is to
24004       # speed up the sed processing (if there are no `@' at all, there
24005       # is no need to browse any of the substitutions).
24006       # These are the two extra sed commands mentioned above.
24007       (echo ':t
24008   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24009       if test -z "$ac_sed_cmds"; then
24010         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24011       else
24012         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24013       fi
24014       ac_sed_frag=`expr $ac_sed_frag + 1`
24015       ac_beg=$ac_end
24016       ac_end=`expr $ac_end + $ac_max_sed_lines`
24017     fi
24018   done
24019   if test -z "$ac_sed_cmds"; then
24020     ac_sed_cmds=cat
24021   fi
24022 fi # test -n "$CONFIG_FILES"
24023
24024 _ACEOF
24025 cat >>$CONFIG_STATUS <<\_ACEOF
24026 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24027   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24028   case $ac_file in
24029   - | *:- | *:-:* ) # input from stdin
24030         cat >$tmp/stdin
24031         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24032         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24033   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24034         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24035   * )   ac_file_in=$ac_file.in ;;
24036   esac
24037
24038   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24039   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24041          X"$ac_file" : 'X\(//\)[^/]' \| \
24042          X"$ac_file" : 'X\(//\)$' \| \
24043          X"$ac_file" : 'X\(/\)' \| \
24044          .     : '\(.\)' 2>/dev/null ||
24045 echo X"$ac_file" |
24046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24047           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24048           /^X\(\/\/\)$/{ s//\1/; q; }
24049           /^X\(\/\).*/{ s//\1/; q; }
24050           s/.*/./; q'`
24051   { if $as_mkdir_p; then
24052     mkdir -p "$ac_dir"
24053   else
24054     as_dir="$ac_dir"
24055     as_dirs=
24056     while test ! -d "$as_dir"; do
24057       as_dirs="$as_dir $as_dirs"
24058       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24060          X"$as_dir" : 'X\(//\)[^/]' \| \
24061          X"$as_dir" : 'X\(//\)$' \| \
24062          X"$as_dir" : 'X\(/\)' \| \
24063          .     : '\(.\)' 2>/dev/null ||
24064 echo X"$as_dir" |
24065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24066           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24067           /^X\(\/\/\)$/{ s//\1/; q; }
24068           /^X\(\/\).*/{ s//\1/; q; }
24069           s/.*/./; q'`
24070     done
24071     test ! -n "$as_dirs" || mkdir $as_dirs
24072   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24073 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24074    { (exit 1); exit 1; }; }; }
24075
24076   ac_builddir=.
24077
24078 if test "$ac_dir" != .; then
24079   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24080   # A "../" for each directory in $ac_dir_suffix.
24081   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24082 else
24083   ac_dir_suffix= ac_top_builddir=
24084 fi
24085
24086 case $srcdir in
24087   .)  # No --srcdir option.  We are building in place.
24088     ac_srcdir=.
24089     if test -z "$ac_top_builddir"; then
24090        ac_top_srcdir=.
24091     else
24092        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24093     fi ;;
24094   [\\/]* | ?:[\\/]* )  # Absolute path.
24095     ac_srcdir=$srcdir$ac_dir_suffix;
24096     ac_top_srcdir=$srcdir ;;
24097   *) # Relative path.
24098     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24099     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24100 esac
24101
24102 # Do not use `cd foo && pwd` to compute absolute paths, because
24103 # the directories may not exist.
24104 case `pwd` in
24105 .) ac_abs_builddir="$ac_dir";;
24106 *)
24107   case "$ac_dir" in
24108   .) ac_abs_builddir=`pwd`;;
24109   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24110   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24111   esac;;
24112 esac
24113 case $ac_abs_builddir in
24114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24115 *)
24116   case ${ac_top_builddir}. in
24117   .) ac_abs_top_builddir=$ac_abs_builddir;;
24118   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24119   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24120   esac;;
24121 esac
24122 case $ac_abs_builddir in
24123 .) ac_abs_srcdir=$ac_srcdir;;
24124 *)
24125   case $ac_srcdir in
24126   .) ac_abs_srcdir=$ac_abs_builddir;;
24127   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24128   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24129   esac;;
24130 esac
24131 case $ac_abs_builddir in
24132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24133 *)
24134   case $ac_top_srcdir in
24135   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24136   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24137   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24138   esac;;
24139 esac
24140
24141
24142   case $INSTALL in
24143   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24144   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24145   esac
24146
24147   if test x"$ac_file" != x-; then
24148     { echo "$as_me:$LINENO: creating $ac_file" >&5
24149 echo "$as_me: creating $ac_file" >&6;}
24150     rm -f "$ac_file"
24151   fi
24152   # Let's still pretend it is `configure' which instantiates (i.e., don't
24153   # use $as_me), people would be surprised to read:
24154   #    /* config.h.  Generated by config.status.  */
24155   if test x"$ac_file" = x-; then
24156     configure_input=
24157   else
24158     configure_input="$ac_file.  "
24159   fi
24160   configure_input=$configure_input"Generated from `echo $ac_file_in |
24161                                      sed 's,.*/,,'` by configure."
24162
24163   # First look for the input files in the build tree, otherwise in the
24164   # src tree.
24165   ac_file_inputs=`IFS=:
24166     for f in $ac_file_in; do
24167       case $f in
24168       -) echo $tmp/stdin ;;
24169       [\\/$]*)
24170          # Absolute (can't be DOS-style, as IFS=:)
24171          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24172 echo "$as_me: error: cannot find input file: $f" >&2;}
24173    { (exit 1); exit 1; }; }
24174          echo "$f";;
24175       *) # Relative
24176          if test -f "$f"; then
24177            # Build tree
24178            echo "$f"
24179          elif test -f "$srcdir/$f"; then
24180            # Source tree
24181            echo "$srcdir/$f"
24182          else
24183            # /dev/null tree
24184            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24185 echo "$as_me: error: cannot find input file: $f" >&2;}
24186    { (exit 1); exit 1; }; }
24187          fi;;
24188       esac
24189     done` || { (exit 1); exit 1; }
24190 _ACEOF
24191 cat >>$CONFIG_STATUS <<_ACEOF
24192   sed "$ac_vpsub
24193 $extrasub
24194 _ACEOF
24195 cat >>$CONFIG_STATUS <<\_ACEOF
24196 :t
24197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24198 s,@configure_input@,$configure_input,;t t
24199 s,@srcdir@,$ac_srcdir,;t t
24200 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24201 s,@top_srcdir@,$ac_top_srcdir,;t t
24202 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24203 s,@builddir@,$ac_builddir,;t t
24204 s,@abs_builddir@,$ac_abs_builddir,;t t
24205 s,@top_builddir@,$ac_top_builddir,;t t
24206 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24207 s,@INSTALL@,$ac_INSTALL,;t t
24208 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24209   rm -f $tmp/stdin
24210   if test x"$ac_file" != x-; then
24211     mv $tmp/out $ac_file
24212   else
24213     cat $tmp/out
24214     rm -f $tmp/out
24215   fi
24216
24217 done
24218 _ACEOF
24219 cat >>$CONFIG_STATUS <<\_ACEOF
24220
24221 #
24222 # CONFIG_HEADER section.
24223 #
24224
24225 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24226 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24227 #
24228 # ac_d sets the value in "#define NAME VALUE" lines.
24229 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24230 ac_dB='[         ].*$,\1#\2'
24231 ac_dC=' '
24232 ac_dD=',;t'
24233 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24234 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24235 ac_uB='$,\1#\2define\3'
24236 ac_uC=' '
24237 ac_uD=',;t'
24238
24239 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24240   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24241   case $ac_file in
24242   - | *:- | *:-:* ) # input from stdin
24243         cat >$tmp/stdin
24244         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24245         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24246   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24247         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24248   * )   ac_file_in=$ac_file.in ;;
24249   esac
24250
24251   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24252 echo "$as_me: creating $ac_file" >&6;}
24253
24254   # First look for the input files in the build tree, otherwise in the
24255   # src tree.
24256   ac_file_inputs=`IFS=:
24257     for f in $ac_file_in; do
24258       case $f in
24259       -) echo $tmp/stdin ;;
24260       [\\/$]*)
24261          # Absolute (can't be DOS-style, as IFS=:)
24262          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24263 echo "$as_me: error: cannot find input file: $f" >&2;}
24264    { (exit 1); exit 1; }; }
24265          # Do quote $f, to prevent DOS paths from being IFS'd.
24266          echo "$f";;
24267       *) # Relative
24268          if test -f "$f"; then
24269            # Build tree
24270            echo "$f"
24271          elif test -f "$srcdir/$f"; then
24272            # Source tree
24273            echo "$srcdir/$f"
24274          else
24275            # /dev/null tree
24276            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24277 echo "$as_me: error: cannot find input file: $f" >&2;}
24278    { (exit 1); exit 1; }; }
24279          fi;;
24280       esac
24281     done` || { (exit 1); exit 1; }
24282   # Remove the trailing spaces.
24283   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24284
24285 _ACEOF
24286
24287 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24288 # `conftest.undefs', that substitutes the proper values into
24289 # config.h.in to produce config.h.  The first handles `#define'
24290 # templates, and the second `#undef' templates.
24291 # And first: Protect against being on the right side of a sed subst in
24292 # config.status.  Protect against being in an unquoted here document
24293 # in config.status.
24294 rm -f conftest.defines conftest.undefs
24295 # Using a here document instead of a string reduces the quoting nightmare.
24296 # Putting comments in sed scripts is not portable.
24297 #
24298 # `end' is used to avoid that the second main sed command (meant for
24299 # 0-ary CPP macros) applies to n-ary macro definitions.
24300 # See the Autoconf documentation for `clear'.
24301 cat >confdef2sed.sed <<\_ACEOF
24302 s/[\\&,]/\\&/g
24303 s,[\\$`],\\&,g
24304 t clear
24305 : clear
24306 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24307 t end
24308 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24309 : end
24310 _ACEOF
24311 # If some macros were called several times there might be several times
24312 # the same #defines, which is useless.  Nevertheless, we may not want to
24313 # sort them, since we want the *last* AC-DEFINE to be honored.
24314 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24315 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24316 rm -f confdef2sed.sed
24317
24318 # This sed command replaces #undef with comments.  This is necessary, for
24319 # example, in the case of _POSIX_SOURCE, which is predefined and required
24320 # on some systems where configure will not decide to define it.
24321 cat >>conftest.undefs <<\_ACEOF
24322 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24323 _ACEOF
24324
24325 # Break up conftest.defines because some shells have a limit on the size
24326 # of here documents, and old seds have small limits too (100 cmds).
24327 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24328 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24329 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24330 echo '  :' >>$CONFIG_STATUS
24331 rm -f conftest.tail
24332 while grep . conftest.defines >/dev/null
24333 do
24334   # Write a limited-size here document to $tmp/defines.sed.
24335   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24336   # Speed up: don't consider the non `#define' lines.
24337   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24338   # Work around the forget-to-reset-the-flag bug.
24339   echo 't clr' >>$CONFIG_STATUS
24340   echo ': clr' >>$CONFIG_STATUS
24341   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24342   echo 'CEOF
24343   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24344   rm -f $tmp/in
24345   mv $tmp/out $tmp/in
24346 ' >>$CONFIG_STATUS
24347   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24348   rm -f conftest.defines
24349   mv conftest.tail conftest.defines
24350 done
24351 rm -f conftest.defines
24352 echo '  fi # grep' >>$CONFIG_STATUS
24353 echo >>$CONFIG_STATUS
24354
24355 # Break up conftest.undefs because some shells have a limit on the size
24356 # of here documents, and old seds have small limits too (100 cmds).
24357 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24358 rm -f conftest.tail
24359 while grep . conftest.undefs >/dev/null
24360 do
24361   # Write a limited-size here document to $tmp/undefs.sed.
24362   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24363   # Speed up: don't consider the non `#undef'
24364   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24365   # Work around the forget-to-reset-the-flag bug.
24366   echo 't clr' >>$CONFIG_STATUS
24367   echo ': clr' >>$CONFIG_STATUS
24368   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24369   echo 'CEOF
24370   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24371   rm -f $tmp/in
24372   mv $tmp/out $tmp/in
24373 ' >>$CONFIG_STATUS
24374   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24375   rm -f conftest.undefs
24376   mv conftest.tail conftest.undefs
24377 done
24378 rm -f conftest.undefs
24379
24380 cat >>$CONFIG_STATUS <<\_ACEOF
24381   # Let's still pretend it is `configure' which instantiates (i.e., don't
24382   # use $as_me), people would be surprised to read:
24383   #    /* config.h.  Generated by config.status.  */
24384   if test x"$ac_file" = x-; then
24385     echo "/* Generated by configure.  */" >$tmp/config.h
24386   else
24387     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24388   fi
24389   cat $tmp/in >>$tmp/config.h
24390   rm -f $tmp/in
24391   if test x"$ac_file" != x-; then
24392     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24393       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24394 echo "$as_me: $ac_file is unchanged" >&6;}
24395     else
24396       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24398          X"$ac_file" : 'X\(//\)[^/]' \| \
24399          X"$ac_file" : 'X\(//\)$' \| \
24400          X"$ac_file" : 'X\(/\)' \| \
24401          .     : '\(.\)' 2>/dev/null ||
24402 echo X"$ac_file" |
24403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24404           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24405           /^X\(\/\/\)$/{ s//\1/; q; }
24406           /^X\(\/\).*/{ s//\1/; q; }
24407           s/.*/./; q'`
24408       { if $as_mkdir_p; then
24409     mkdir -p "$ac_dir"
24410   else
24411     as_dir="$ac_dir"
24412     as_dirs=
24413     while test ! -d "$as_dir"; do
24414       as_dirs="$as_dir $as_dirs"
24415       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24417          X"$as_dir" : 'X\(//\)[^/]' \| \
24418          X"$as_dir" : 'X\(//\)$' \| \
24419          X"$as_dir" : 'X\(/\)' \| \
24420          .     : '\(.\)' 2>/dev/null ||
24421 echo X"$as_dir" |
24422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24423           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24424           /^X\(\/\/\)$/{ s//\1/; q; }
24425           /^X\(\/\).*/{ s//\1/; q; }
24426           s/.*/./; q'`
24427     done
24428     test ! -n "$as_dirs" || mkdir $as_dirs
24429   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24430 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24431    { (exit 1); exit 1; }; }; }
24432
24433       rm -f $ac_file
24434       mv $tmp/config.h $ac_file
24435     fi
24436   else
24437     cat $tmp/config.h
24438     rm -f $tmp/config.h
24439   fi
24440 done
24441 _ACEOF
24442 cat >>$CONFIG_STATUS <<\_ACEOF
24443
24444 #
24445 # CONFIG_LINKS section.
24446 #
24447
24448 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24449   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24450   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24451
24452   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24453 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24454
24455   if test ! -r $srcdir/$ac_source; then
24456     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24457 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24458    { (exit 1); exit 1; }; }
24459   fi
24460   rm -f $ac_dest
24461
24462   # Make relative symlinks.
24463   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24464 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24465          X"$ac_dest" : 'X\(//\)[^/]' \| \
24466          X"$ac_dest" : 'X\(//\)$' \| \
24467          X"$ac_dest" : 'X\(/\)' \| \
24468          .     : '\(.\)' 2>/dev/null ||
24469 echo X"$ac_dest" |
24470     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24471           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24472           /^X\(\/\/\)$/{ s//\1/; q; }
24473           /^X\(\/\).*/{ s//\1/; q; }
24474           s/.*/./; q'`
24475   { if $as_mkdir_p; then
24476     mkdir -p "$ac_dest_dir"
24477   else
24478     as_dir="$ac_dest_dir"
24479     as_dirs=
24480     while test ! -d "$as_dir"; do
24481       as_dirs="$as_dir $as_dirs"
24482       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24484          X"$as_dir" : 'X\(//\)[^/]' \| \
24485          X"$as_dir" : 'X\(//\)$' \| \
24486          X"$as_dir" : 'X\(/\)' \| \
24487          .     : '\(.\)' 2>/dev/null ||
24488 echo X"$as_dir" |
24489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24490           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24491           /^X\(\/\/\)$/{ s//\1/; q; }
24492           /^X\(\/\).*/{ s//\1/; q; }
24493           s/.*/./; q'`
24494     done
24495     test ! -n "$as_dirs" || mkdir $as_dirs
24496   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24497 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24498    { (exit 1); exit 1; }; }; }
24499
24500   ac_builddir=.
24501
24502 if test "$ac_dest_dir" != .; then
24503   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24504   # A "../" for each directory in $ac_dir_suffix.
24505   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24506 else
24507   ac_dir_suffix= ac_top_builddir=
24508 fi
24509
24510 case $srcdir in
24511   .)  # No --srcdir option.  We are building in place.
24512     ac_srcdir=.
24513     if test -z "$ac_top_builddir"; then
24514        ac_top_srcdir=.
24515     else
24516        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24517     fi ;;
24518   [\\/]* | ?:[\\/]* )  # Absolute path.
24519     ac_srcdir=$srcdir$ac_dir_suffix;
24520     ac_top_srcdir=$srcdir ;;
24521   *) # Relative path.
24522     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24523     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24524 esac
24525
24526 # Do not use `cd foo && pwd` to compute absolute paths, because
24527 # the directories may not exist.
24528 case `pwd` in
24529 .) ac_abs_builddir="$ac_dest_dir";;
24530 *)
24531   case "$ac_dest_dir" in
24532   .) ac_abs_builddir=`pwd`;;
24533   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24534   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24535   esac;;
24536 esac
24537 case $ac_abs_builddir in
24538 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24539 *)
24540   case ${ac_top_builddir}. in
24541   .) ac_abs_top_builddir=$ac_abs_builddir;;
24542   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24543   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24544   esac;;
24545 esac
24546 case $ac_abs_builddir in
24547 .) ac_abs_srcdir=$ac_srcdir;;
24548 *)
24549   case $ac_srcdir in
24550   .) ac_abs_srcdir=$ac_abs_builddir;;
24551   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24552   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24553   esac;;
24554 esac
24555 case $ac_abs_builddir in
24556 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24557 *)
24558   case $ac_top_srcdir in
24559   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24560   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24561   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24562   esac;;
24563 esac
24564
24565
24566   case $srcdir in
24567   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24568       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24569   esac
24570
24571   # Try a symlink, then a hard link, then a copy.
24572   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24573     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24574     cp -p $srcdir/$ac_source $ac_dest ||
24575     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24576 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24577    { (exit 1); exit 1; }; }
24578 done
24579 _ACEOF
24580 cat >>$CONFIG_STATUS <<\_ACEOF
24581
24582 #
24583 # CONFIG_COMMANDS section.
24584 #
24585 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24586   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24587   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24588   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24589 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24590          X"$ac_dest" : 'X\(//\)[^/]' \| \
24591          X"$ac_dest" : 'X\(//\)$' \| \
24592          X"$ac_dest" : 'X\(/\)' \| \
24593          .     : '\(.\)' 2>/dev/null ||
24594 echo X"$ac_dest" |
24595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24597           /^X\(\/\/\)$/{ s//\1/; q; }
24598           /^X\(\/\).*/{ s//\1/; q; }
24599           s/.*/./; q'`
24600   { if $as_mkdir_p; then
24601     mkdir -p "$ac_dir"
24602   else
24603     as_dir="$ac_dir"
24604     as_dirs=
24605     while test ! -d "$as_dir"; do
24606       as_dirs="$as_dir $as_dirs"
24607       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24609          X"$as_dir" : 'X\(//\)[^/]' \| \
24610          X"$as_dir" : 'X\(//\)$' \| \
24611          X"$as_dir" : 'X\(/\)' \| \
24612          .     : '\(.\)' 2>/dev/null ||
24613 echo X"$as_dir" |
24614     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24615           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24616           /^X\(\/\/\)$/{ s//\1/; q; }
24617           /^X\(\/\).*/{ s//\1/; q; }
24618           s/.*/./; q'`
24619     done
24620     test ! -n "$as_dirs" || mkdir $as_dirs
24621   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24622 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24623    { (exit 1); exit 1; }; }; }
24624
24625   ac_builddir=.
24626
24627 if test "$ac_dir" != .; then
24628   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24629   # A "../" for each directory in $ac_dir_suffix.
24630   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24631 else
24632   ac_dir_suffix= ac_top_builddir=
24633 fi
24634
24635 case $srcdir in
24636   .)  # No --srcdir option.  We are building in place.
24637     ac_srcdir=.
24638     if test -z "$ac_top_builddir"; then
24639        ac_top_srcdir=.
24640     else
24641        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24642     fi ;;
24643   [\\/]* | ?:[\\/]* )  # Absolute path.
24644     ac_srcdir=$srcdir$ac_dir_suffix;
24645     ac_top_srcdir=$srcdir ;;
24646   *) # Relative path.
24647     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24648     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24649 esac
24650
24651 # Do not use `cd foo && pwd` to compute absolute paths, because
24652 # the directories may not exist.
24653 case `pwd` in
24654 .) ac_abs_builddir="$ac_dir";;
24655 *)
24656   case "$ac_dir" in
24657   .) ac_abs_builddir=`pwd`;;
24658   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24659   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24660   esac;;
24661 esac
24662 case $ac_abs_builddir in
24663 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24664 *)
24665   case ${ac_top_builddir}. in
24666   .) ac_abs_top_builddir=$ac_abs_builddir;;
24667   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24668   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24669   esac;;
24670 esac
24671 case $ac_abs_builddir in
24672 .) ac_abs_srcdir=$ac_srcdir;;
24673 *)
24674   case $ac_srcdir in
24675   .) ac_abs_srcdir=$ac_abs_builddir;;
24676   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24677   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24678   esac;;
24679 esac
24680 case $ac_abs_builddir in
24681 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24682 *)
24683   case $ac_top_srcdir in
24684   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24685   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24686   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24687   esac;;
24688 esac
24689
24690
24691   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24692 echo "$as_me: executing $ac_dest commands" >&6;}
24693   case $ac_dest in
24694     gdb_stdint.h )
24695 if test "$GCC" = yes; then
24696   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24697 else
24698   echo "/* generated for $CC */" > tmp-stdint.h
24699 fi
24700
24701 sed 's/^ *//' >> tmp-stdint.h <<EOF
24702
24703   #ifndef GCC_GENERATED_STDINT_H
24704   #define GCC_GENERATED_STDINT_H 1
24705
24706   #include <sys/types.h>
24707 EOF
24708
24709 if test "$acx_cv_header_stdint" != stdint.h; then
24710   echo "#include <stddef.h>" >> tmp-stdint.h
24711 fi
24712 if test "$acx_cv_header_stdint" != stddef.h; then
24713   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24714 fi
24715
24716 sed 's/^ *//' >> tmp-stdint.h <<EOF
24717   /* glibc uses these symbols as guards to prevent redefinitions.  */
24718   #ifdef __int8_t_defined
24719   #define _INT8_T
24720   #define _INT16_T
24721   #define _INT32_T
24722   #endif
24723   #ifdef __uint32_t_defined
24724   #define _UINT32_T
24725   #endif
24726
24727 EOF
24728
24729 # ----------------- done header, emit basic int types -------------
24730 if test "$acx_cv_header_stdint" = stddef.h; then
24731   sed 's/^ *//' >> tmp-stdint.h <<EOF
24732
24733     #ifndef _UINT8_T
24734     #define _UINT8_T
24735     typedef unsigned $acx_cv_type_int8_t uint8_t;
24736     #endif
24737
24738     #ifndef _UINT16_T
24739     #define _UINT16_T
24740     typedef unsigned $acx_cv_type_int16_t uint16_t;
24741     #endif
24742
24743     #ifndef _UINT32_T
24744     #define _UINT32_T
24745     typedef unsigned $acx_cv_type_int32_t uint32_t;
24746     #endif
24747
24748     #ifndef _INT8_T
24749     #define _INT8_T
24750     typedef $acx_cv_type_int8_t int8_t;
24751     #endif
24752
24753     #ifndef _INT16_T
24754     #define _INT16_T
24755     typedef $acx_cv_type_int16_t int16_t;
24756     #endif
24757
24758     #ifndef _INT32_T
24759     #define _INT32_T
24760     typedef $acx_cv_type_int32_t int32_t;
24761     #endif
24762 EOF
24763 elif test "$ac_cv_type_u_int32_t" = yes; then
24764   sed 's/^ *//' >> tmp-stdint.h <<EOF
24765
24766     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24767     #ifndef _INT8_T
24768     #define _INT8_T
24769     #endif
24770     #ifndef _INT16_T
24771     #define _INT16_T
24772     #endif
24773     #ifndef _INT32_T
24774     #define _INT32_T
24775     #endif
24776
24777     #ifndef _UINT8_T
24778     #define _UINT8_T
24779     typedef u_int8_t uint8_t;
24780     #endif
24781
24782     #ifndef _UINT16_T
24783     #define _UINT16_T
24784     typedef u_int16_t uint16_t;
24785     #endif
24786
24787     #ifndef _UINT32_T
24788     #define _UINT32_T
24789     typedef u_int32_t uint32_t;
24790     #endif
24791 EOF
24792 else
24793   sed 's/^ *//' >> tmp-stdint.h <<EOF
24794
24795     /* Some systems have guard macros to prevent redefinitions, define them.  */
24796     #ifndef _INT8_T
24797     #define _INT8_T
24798     #endif
24799     #ifndef _INT16_T
24800     #define _INT16_T
24801     #endif
24802     #ifndef _INT32_T
24803     #define _INT32_T
24804     #endif
24805     #ifndef _UINT8_T
24806     #define _UINT8_T
24807     #endif
24808     #ifndef _UINT16_T
24809     #define _UINT16_T
24810     #endif
24811     #ifndef _UINT32_T
24812     #define _UINT32_T
24813     #endif
24814 EOF
24815 fi
24816
24817 # ------------- done basic int types, emit int64_t types ------------
24818 if test "$ac_cv_type_uint64_t" = yes; then
24819   sed 's/^ *//' >> tmp-stdint.h <<EOF
24820
24821     /* system headers have good uint64_t and int64_t */
24822     #ifndef _INT64_T
24823     #define _INT64_T
24824     #endif
24825     #ifndef _UINT64_T
24826     #define _UINT64_T
24827     #endif
24828 EOF
24829 elif test "$ac_cv_type_u_int64_t" = yes; then
24830   sed 's/^ *//' >> tmp-stdint.h <<EOF
24831
24832     /* system headers have an u_int64_t (and int64_t) */
24833     #ifndef _INT64_T
24834     #define _INT64_T
24835     #endif
24836     #ifndef _UINT64_T
24837     #define _UINT64_T
24838     typedef u_int64_t uint64_t;
24839     #endif
24840 EOF
24841 elif test -n "$acx_cv_type_int64_t"; then
24842   sed 's/^ *//' >> tmp-stdint.h <<EOF
24843
24844     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24845     #ifndef _INT64_T
24846     #define _INT64_T
24847     typedef $acx_cv_type_int64_t int64_t;
24848     #endif
24849     #ifndef _UINT64_T
24850     #define _UINT64_T
24851     typedef unsigned $acx_cv_type_int64_t uint64_t;
24852     #endif
24853 EOF
24854 else
24855   sed 's/^ *//' >> tmp-stdint.h <<EOF
24856
24857     /* some common heuristics for int64_t, using compiler-specific tests */
24858     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24859     #ifndef _INT64_T
24860     #define _INT64_T
24861     typedef long long int64_t;
24862     #endif
24863     #ifndef _UINT64_T
24864     #define _UINT64_T
24865     typedef unsigned long long uint64_t;
24866     #endif
24867
24868     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24869     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24870        does not implement __extension__.  But that compiler doesn't define
24871        __GNUC_MINOR__.  */
24872     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24873     # define __extension__
24874     # endif
24875
24876     # ifndef _INT64_T
24877     # define _INT64_T
24878     __extension__ typedef long long int64_t;
24879     # endif
24880     # ifndef _UINT64_T
24881     # define _UINT64_T
24882     __extension__ typedef unsigned long long uint64_t;
24883     # endif
24884
24885     #elif !defined __STRICT_ANSI__
24886     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24887
24888     #  ifndef _INT64_T
24889     #  define _INT64_T
24890     typedef __int64 int64_t;
24891     #  endif
24892     #  ifndef _UINT64_T
24893     #  define _UINT64_T
24894     typedef unsigned __int64 uint64_t;
24895     #  endif
24896     # endif /* compiler */
24897
24898     #endif /* ANSI version */
24899 EOF
24900 fi
24901
24902 # ------------- done int64_t types, emit intptr types ------------
24903 if test "$ac_cv_type_uintptr_t" != yes; then
24904   sed 's/^ *//' >> tmp-stdint.h <<EOF
24905
24906     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24907     typedef u$acx_cv_type_intptr_t uintptr_t;
24908     typedef $acx_cv_type_intptr_t  intptr_t;
24909 EOF
24910 fi
24911
24912 # ------------- done intptr types, emit int_least types ------------
24913 if test "$ac_cv_type_int_least32_t" != yes; then
24914   sed 's/^ *//' >> tmp-stdint.h <<EOF
24915
24916     /* Define int_least types */
24917     typedef int8_t     int_least8_t;
24918     typedef int16_t    int_least16_t;
24919     typedef int32_t    int_least32_t;
24920     #ifdef _INT64_T
24921     typedef int64_t    int_least64_t;
24922     #endif
24923
24924     typedef uint8_t    uint_least8_t;
24925     typedef uint16_t   uint_least16_t;
24926     typedef uint32_t   uint_least32_t;
24927     #ifdef _UINT64_T
24928     typedef uint64_t   uint_least64_t;
24929     #endif
24930 EOF
24931 fi
24932
24933 # ------------- done intptr types, emit int_fast types ------------
24934 if test "$ac_cv_type_int_fast32_t" != yes; then
24935       sed 's/^ *//' >> tmp-stdint.h <<EOF
24936
24937     /* Define int_fast types.  short is often slow */
24938     typedef int8_t       int_fast8_t;
24939     typedef int          int_fast16_t;
24940     typedef int32_t      int_fast32_t;
24941     #ifdef _INT64_T
24942     typedef int64_t      int_fast64_t;
24943     #endif
24944
24945     typedef uint8_t      uint_fast8_t;
24946     typedef unsigned int uint_fast16_t;
24947     typedef uint32_t     uint_fast32_t;
24948     #ifdef _UINT64_T
24949     typedef uint64_t     uint_fast64_t;
24950     #endif
24951 EOF
24952 fi
24953
24954 if test "$ac_cv_type_uintmax_t" != yes; then
24955   sed 's/^ *//' >> tmp-stdint.h <<EOF
24956
24957     /* Define intmax based on what we found */
24958     #ifdef _INT64_T
24959     typedef int64_t       intmax_t;
24960     #else
24961     typedef long          intmax_t;
24962     #endif
24963     #ifdef _UINT64_T
24964     typedef uint64_t      uintmax_t;
24965     #else
24966     typedef unsigned long uintmax_t;
24967     #endif
24968 EOF
24969 fi
24970
24971 sed 's/^ *//' >> tmp-stdint.h <<EOF
24972
24973   #endif /* GCC_GENERATED_STDINT_H */
24974 EOF
24975
24976 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
24977   rm -f tmp-stdint.h
24978 else
24979   mv -f tmp-stdint.h gdb_stdint.h
24980 fi
24981
24982  ;;
24983     default )
24984
24985 sed -e '/^DEPRECATED_TM_FILE[   ]*=/s,^DEPRECATED_TM_FILE[      ]*=[    ]*,&config/'"${gdb_target_cpu}"'/,
24986 /^XM_FILE[      ]*=/s,^XM_FILE[         ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,
24987 /^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
24988 mv -f Makefile.tmp Makefile
24989
24990
24991 case x$CONFIG_HEADERS in
24992 xconfig.h:config.in)
24993 echo > stamp-h ;;
24994 esac
24995  ;;
24996   esac
24997 done
24998 _ACEOF
24999
25000 cat >>$CONFIG_STATUS <<\_ACEOF
25001
25002 { (exit 0); exit 0; }
25003 _ACEOF
25004 chmod +x $CONFIG_STATUS
25005 ac_clean_files=$ac_clean_files_save
25006
25007
25008 # configure is writing to config.log, and then calls config.status.
25009 # config.status does its own redirection, appending to config.log.
25010 # Unfortunately, on DOS this fails, as config.log is still kept open
25011 # by configure, so config.status won't be able to write to it; its
25012 # output is simply discarded.  So we exec the FD to /dev/null,
25013 # effectively closing config.log, so it can be properly (re)opened and
25014 # appended to by config.status.  When coming back to configure, we
25015 # need to make the FD available again.
25016 if test "$no_create" != yes; then
25017   ac_cs_success=:
25018   ac_config_status_args=
25019   test "$silent" = yes &&
25020     ac_config_status_args="$ac_config_status_args --quiet"
25021   exec 5>/dev/null
25022   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25023   exec 5>>config.log
25024   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25025   # would make configure fail if this is the last instruction.
25026   $ac_cs_success || { (exit 1); exit 1; }
25027 fi
25028
25029 #
25030 # CONFIG_SUBDIRS section.
25031 #
25032 if test "$no_recursion" != yes; then
25033
25034   # Remove --cache-file and --srcdir arguments so they do not pile up.
25035   ac_sub_configure_args=
25036   ac_prev=
25037   for ac_arg in $ac_configure_args; do
25038     if test -n "$ac_prev"; then
25039       ac_prev=
25040       continue
25041     fi
25042     case $ac_arg in
25043     -cache-file | --cache-file | --cache-fil | --cache-fi \
25044     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25045       ac_prev=cache_file ;;
25046     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25047     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25048     | --c=*)
25049       ;;
25050     --config-cache | -C)
25051       ;;
25052     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25053       ac_prev=srcdir ;;
25054     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25055       ;;
25056     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25057       ac_prev=prefix ;;
25058     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25059       ;;
25060     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25061     esac
25062   done
25063
25064   # Always prepend --prefix to ensure using the same prefix
25065   # in subdir configurations.
25066   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25067
25068   ac_popdir=`pwd`
25069   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25070
25071     # Do not complain, so a configure script can configure whichever
25072     # parts of a large source tree are present.
25073     test -d $srcdir/$ac_dir || continue
25074
25075     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25076 echo "$as_me: configuring in $ac_dir" >&6;}
25077     { if $as_mkdir_p; then
25078     mkdir -p "$ac_dir"
25079   else
25080     as_dir="$ac_dir"
25081     as_dirs=
25082     while test ! -d "$as_dir"; do
25083       as_dirs="$as_dir $as_dirs"
25084       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25086          X"$as_dir" : 'X\(//\)[^/]' \| \
25087          X"$as_dir" : 'X\(//\)$' \| \
25088          X"$as_dir" : 'X\(/\)' \| \
25089          .     : '\(.\)' 2>/dev/null ||
25090 echo X"$as_dir" |
25091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25092           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25093           /^X\(\/\/\)$/{ s//\1/; q; }
25094           /^X\(\/\).*/{ s//\1/; q; }
25095           s/.*/./; q'`
25096     done
25097     test ! -n "$as_dirs" || mkdir $as_dirs
25098   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25099 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25100    { (exit 1); exit 1; }; }; }
25101
25102     ac_builddir=.
25103
25104 if test "$ac_dir" != .; then
25105   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25106   # A "../" for each directory in $ac_dir_suffix.
25107   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25108 else
25109   ac_dir_suffix= ac_top_builddir=
25110 fi
25111
25112 case $srcdir in
25113   .)  # No --srcdir option.  We are building in place.
25114     ac_srcdir=.
25115     if test -z "$ac_top_builddir"; then
25116        ac_top_srcdir=.
25117     else
25118        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25119     fi ;;
25120   [\\/]* | ?:[\\/]* )  # Absolute path.
25121     ac_srcdir=$srcdir$ac_dir_suffix;
25122     ac_top_srcdir=$srcdir ;;
25123   *) # Relative path.
25124     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25125     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25126 esac
25127
25128 # Do not use `cd foo && pwd` to compute absolute paths, because
25129 # the directories may not exist.
25130 case `pwd` in
25131 .) ac_abs_builddir="$ac_dir";;
25132 *)
25133   case "$ac_dir" in
25134   .) ac_abs_builddir=`pwd`;;
25135   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25136   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25137   esac;;
25138 esac
25139 case $ac_abs_builddir in
25140 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25141 *)
25142   case ${ac_top_builddir}. in
25143   .) ac_abs_top_builddir=$ac_abs_builddir;;
25144   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25145   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25146   esac;;
25147 esac
25148 case $ac_abs_builddir in
25149 .) ac_abs_srcdir=$ac_srcdir;;
25150 *)
25151   case $ac_srcdir in
25152   .) ac_abs_srcdir=$ac_abs_builddir;;
25153   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25154   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25155   esac;;
25156 esac
25157 case $ac_abs_builddir in
25158 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25159 *)
25160   case $ac_top_srcdir in
25161   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25162   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25163   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25164   esac;;
25165 esac
25166
25167
25168     cd $ac_dir
25169
25170     # Check for guested configure; otherwise get Cygnus style configure.
25171     if test -f $ac_srcdir/configure.gnu; then
25172       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25173     elif test -f $ac_srcdir/configure; then
25174       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25175     elif test -f $ac_srcdir/configure.in; then
25176       ac_sub_configure=$ac_configure
25177     else
25178       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25179 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25180       ac_sub_configure=
25181     fi
25182
25183     # The recursion is here.
25184     if test -n "$ac_sub_configure"; then
25185       # Make the cache file name correct relative to the subdirectory.
25186       case $cache_file in
25187       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25188       *) # Relative path.
25189         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25190       esac
25191
25192       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25193 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25194       # The eval makes quoting arguments work.
25195       eval $ac_sub_configure $ac_sub_configure_args \
25196            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25197         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25198 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25199    { (exit 1); exit 1; }; }
25200     fi
25201
25202     cd $ac_popdir
25203   done
25204 fi
25205
25206
25207 exit 0