* configure.ac: Provide prerequisite headers when checking
[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 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subdirs_all="$ac_subdirs_all doc testsuite"
313 ac_subdirs_all="$ac_subdirs_all gdbtk"
314 ac_subdirs_all="$ac_subdirs_all multi-ice"
315 ac_subdirs_all="$ac_subdirs_all gdbserver"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os RANLIB ac_ct_RANLIB SET_MAKE ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
317 ac_subst_files='host_makefile_frag target_makefile_frag'
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-nls           do not use Native Language Support
864   --disable-gdbcli        disable command-line interface (CLI)
865   --disable-gdbmi         disable machine-interface (MI)
866   --enable-tui            enable full-screen terminal user interface (TUI)
867   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
868   --enable-profiling      enable profiling of GDB
869   --enable-build-warnings Enable build-time compiler warnings if gcc is used
870   --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
871   --enable-sim            Link gdb with simulator
872   --enable-multi-ice      build the multi-ice-gdb-server
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-included-gettext use the GNU gettext library included here
878   --with-separate-debug-dir=path   Look for global separate debug info in this path LIBDIR/debug
879   --with-libunwind            Use libunwind frame unwinding support
880   --without-included-regex don't use included regex; this is the default
881                           on systems with version 2 of the GNU C library
882                           (use with caution on other system)
883   --with-sysroot=DIR Search for usr/lib et al within DIR.
884   --with-tclconfig=DIR    Directory containing tcl configuration (tclConfig.sh)
885   --with-tkconfig=DIR     Directory containing tk configuration (tkConfig.sh)
886   --with-tclinclude=DIR   Directory where tcl private headers are
887   --with-tkinclude=DIR    Directory where tk private headers are
888   --with-itclconfig       Directory containing itcl configuration (itclConfig.sh)
889   --with-itkconfig        Directory containing itk configuration (itkConfig.sh)
890   --with-x                use the X Window System
891   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
892
893 Some influential environment variables:
894   CC          C compiler command
895   CFLAGS      C compiler flags
896   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
897               nonstandard directory <lib dir>
898   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
899               headers in a nonstandard directory <include dir>
900   CPP         C preprocessor
901
902 Use these variables to override the choices made by `configure' or to help
903 it to find libraries and programs with nonstandard names/locations.
904
905 _ACEOF
906 fi
907
908 if test "$ac_init_help" = "recursive"; then
909   # If there are subdirs, report their specific --help.
910   ac_popdir=`pwd`
911   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
912     test -d $ac_dir || continue
913     ac_builddir=.
914
915 if test "$ac_dir" != .; then
916   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
917   # A "../" for each directory in $ac_dir_suffix.
918   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
919 else
920   ac_dir_suffix= ac_top_builddir=
921 fi
922
923 case $srcdir in
924   .)  # No --srcdir option.  We are building in place.
925     ac_srcdir=.
926     if test -z "$ac_top_builddir"; then
927        ac_top_srcdir=.
928     else
929        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
930     fi ;;
931   [\\/]* | ?:[\\/]* )  # Absolute path.
932     ac_srcdir=$srcdir$ac_dir_suffix;
933     ac_top_srcdir=$srcdir ;;
934   *) # Relative path.
935     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
936     ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 esac
938
939 # Do not use `cd foo && pwd` to compute absolute paths, because
940 # the directories may not exist.
941 case `pwd` in
942 .) ac_abs_builddir="$ac_dir";;
943 *)
944   case "$ac_dir" in
945   .) ac_abs_builddir=`pwd`;;
946   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
947   *) ac_abs_builddir=`pwd`/"$ac_dir";;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_builddir=${ac_top_builddir}.;;
952 *)
953   case ${ac_top_builddir}. in
954   .) ac_abs_top_builddir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
956   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_srcdir=$ac_srcdir;;
961 *)
962   case $ac_srcdir in
963   .) ac_abs_srcdir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
965   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966   esac;;
967 esac
968 case $ac_abs_builddir in
969 .) ac_abs_top_srcdir=$ac_top_srcdir;;
970 *)
971   case $ac_top_srcdir in
972   .) ac_abs_top_srcdir=$ac_abs_builddir;;
973   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
974   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
975   esac;;
976 esac
977
978     cd $ac_dir
979     # Check for guested configure; otherwise get Cygnus style configure.
980     if test -f $ac_srcdir/configure.gnu; then
981       echo
982       $SHELL $ac_srcdir/configure.gnu  --help=recursive
983     elif test -f $ac_srcdir/configure; then
984       echo
985       $SHELL $ac_srcdir/configure  --help=recursive
986     elif test -f $ac_srcdir/configure.ac ||
987            test -f $ac_srcdir/configure.in; then
988       echo
989       $ac_configure --help
990     else
991       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992     fi
993     cd $ac_popdir
994   done
995 fi
996
997 test -n "$ac_init_help" && exit 0
998 if $ac_init_version; then
999   cat <<\_ACEOF
1000
1001 Copyright (C) 2003 Free Software Foundation, Inc.
1002 This configure script is free software; the Free Software Foundation
1003 gives unlimited permission to copy, distribute and modify it.
1004 _ACEOF
1005   exit 0
1006 fi
1007 exec 5>config.log
1008 cat >&5 <<_ACEOF
1009 This file contains any messages produced by compilers while
1010 running configure, to aid debugging if configure makes a mistake.
1011
1012 It was created by $as_me, which was
1013 generated by GNU Autoconf 2.59.  Invocation command line was
1014
1015   $ $0 $@
1016
1017 _ACEOF
1018 {
1019 cat <<_ASUNAME
1020 ## --------- ##
1021 ## Platform. ##
1022 ## --------- ##
1023
1024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1029
1030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1031 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1032
1033 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1034 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1036 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1037 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1038 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1039 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1040
1041 _ASUNAME
1042
1043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1044 for as_dir in $PATH
1045 do
1046   IFS=$as_save_IFS
1047   test -z "$as_dir" && as_dir=.
1048   echo "PATH: $as_dir"
1049 done
1050
1051 } >&5
1052
1053 cat >&5 <<_ACEOF
1054
1055
1056 ## ----------- ##
1057 ## Core tests. ##
1058 ## ----------- ##
1059
1060 _ACEOF
1061
1062
1063 # Keep a trace of the command line.
1064 # Strip out --no-create and --no-recursion so they do not pile up.
1065 # Strip out --silent because we don't want to record it for future runs.
1066 # Also quote any args containing shell meta-characters.
1067 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_configure_args=
1069 ac_configure_args0=
1070 ac_configure_args1=
1071 ac_sep=
1072 ac_must_keep_next=false
1073 for ac_pass in 1 2
1074 do
1075   for ac_arg
1076   do
1077     case $ac_arg in
1078     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1079     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080     | -silent | --silent | --silen | --sile | --sil)
1081       continue ;;
1082     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1083       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1084     esac
1085     case $ac_pass in
1086     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1087     2)
1088       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1089       if test $ac_must_keep_next = true; then
1090         ac_must_keep_next=false # Got value, back to normal.
1091       else
1092         case $ac_arg in
1093           *=* | --config-cache | -C | -disable-* | --disable-* \
1094           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1095           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1096           | -with-* | --with-* | -without-* | --without-* | --x)
1097             case "$ac_configure_args0 " in
1098               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099             esac
1100             ;;
1101           -* ) ac_must_keep_next=true ;;
1102         esac
1103       fi
1104       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1105       # Get rid of the leading space.
1106       ac_sep=" "
1107       ;;
1108     esac
1109   done
1110 done
1111 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1112 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1113
1114 # When interrupted or exit'd, cleanup temporary files, and complete
1115 # config.log.  We remove comments because anyway the quotes in there
1116 # would cause problems or look ugly.
1117 # WARNING: Be sure not to use single quotes in there, as some shells,
1118 # such as our DU 5.0 friend, will then `close' the trap.
1119 trap 'exit_status=$?
1120   # Save into config.log some information that might help in debugging.
1121   {
1122     echo
1123
1124     cat <<\_ASBOX
1125 ## ---------------- ##
1126 ## Cache variables. ##
1127 ## ---------------- ##
1128 _ASBOX
1129     echo
1130     # The following way of writing the cache mishandles newlines in values,
1131 {
1132   (set) 2>&1 |
1133     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134     *ac_space=\ *)
1135       sed -n \
1136         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1137           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138       ;;
1139     *)
1140       sed -n \
1141         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142       ;;
1143     esac;
1144 }
1145     echo
1146
1147     cat <<\_ASBOX
1148 ## ----------------- ##
1149 ## Output variables. ##
1150 ## ----------------- ##
1151 _ASBOX
1152     echo
1153     for ac_var in $ac_subst_vars
1154     do
1155       eval ac_val=$`echo $ac_var`
1156       echo "$ac_var='"'"'$ac_val'"'"'"
1157     done | sort
1158     echo
1159
1160     if test -n "$ac_subst_files"; then
1161       cat <<\_ASBOX
1162 ## ------------- ##
1163 ## Output files. ##
1164 ## ------------- ##
1165 _ASBOX
1166       echo
1167       for ac_var in $ac_subst_files
1168       do
1169         eval ac_val=$`echo $ac_var`
1170         echo "$ac_var='"'"'$ac_val'"'"'"
1171       done | sort
1172       echo
1173     fi
1174
1175     if test -s confdefs.h; then
1176       cat <<\_ASBOX
1177 ## ----------- ##
1178 ## confdefs.h. ##
1179 ## ----------- ##
1180 _ASBOX
1181       echo
1182       sed "/^$/d" confdefs.h | sort
1183       echo
1184     fi
1185     test "$ac_signal" != 0 &&
1186       echo "$as_me: caught signal $ac_signal"
1187     echo "$as_me: exit $exit_status"
1188   } >&5
1189   rm -f core *.core &&
1190   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1191     exit $exit_status
1192      ' 0
1193 for ac_signal in 1 2 13 15; do
1194   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1195 done
1196 ac_signal=0
1197
1198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1199 rm -rf conftest* confdefs.h
1200 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 echo >confdefs.h
1202
1203 # Predefined preprocessor variables.
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_NAME "$PACKAGE_NAME"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_STRING "$PACKAGE_STRING"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1227 _ACEOF
1228
1229
1230 # Let the site file select an alternate cache file if it wants to.
1231 # Prefer explicitly selected file to automatically selected ones.
1232 if test -z "$CONFIG_SITE"; then
1233   if test "x$prefix" != xNONE; then
1234     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1235   else
1236     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237   fi
1238 fi
1239 for ac_site_file in $CONFIG_SITE; do
1240   if test -r "$ac_site_file"; then
1241     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1242 echo "$as_me: loading site script $ac_site_file" >&6;}
1243     sed 's/^/| /' "$ac_site_file" >&5
1244     . "$ac_site_file"
1245   fi
1246 done
1247
1248 if test -r "$cache_file"; then
1249   # Some versions of bash will fail to source /dev/null (special
1250   # files actually), so we avoid doing that.
1251   if test -f "$cache_file"; then
1252     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1253 echo "$as_me: loading cache $cache_file" >&6;}
1254     case $cache_file in
1255       [\\/]* | ?:[\\/]* ) . $cache_file;;
1256       *)                      . ./$cache_file;;
1257     esac
1258   fi
1259 else
1260   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1261 echo "$as_me: creating cache $cache_file" >&6;}
1262   >$cache_file
1263 fi
1264
1265 # Check that the precious variables saved in the cache have kept the same
1266 # value.
1267 ac_cache_corrupted=false
1268 for ac_var in `(set) 2>&1 |
1269                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1270   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1271   eval ac_new_set=\$ac_env_${ac_var}_set
1272   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1273   eval ac_new_val="\$ac_env_${ac_var}_value"
1274   case $ac_old_set,$ac_new_set in
1275     set,)
1276       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1278       ac_cache_corrupted=: ;;
1279     ,set)
1280       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1282       ac_cache_corrupted=: ;;
1283     ,);;
1284     *)
1285       if test "x$ac_old_val" != "x$ac_new_val"; then
1286         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1287 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1288         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1289 echo "$as_me:   former value:  $ac_old_val" >&2;}
1290         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1291 echo "$as_me:   current value: $ac_new_val" >&2;}
1292         ac_cache_corrupted=:
1293       fi;;
1294   esac
1295   # Pass precious variables to config.status.
1296   if test "$ac_new_set" = set; then
1297     case $ac_new_val in
1298     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1299       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1300     *) ac_arg=$ac_var=$ac_new_val ;;
1301     esac
1302     case " $ac_configure_args " in
1303       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1304       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1305     esac
1306   fi
1307 done
1308 if $ac_cache_corrupted; then
1309   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1310 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1311   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1312 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1313    { (exit 1); exit 1; }; }
1314 fi
1315
1316 ac_ext=c
1317 ac_cpp='$CPP $CPPFLAGS'
1318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340           ac_config_headers="$ac_config_headers config.h:config.in"
1341
1342 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1343 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1344     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1345 if test "${enable_maintainer_mode+set}" = set; then
1346   enableval="$enable_maintainer_mode"
1347   USE_MAINTAINER_MODE=$enableval
1348 else
1349   USE_MAINTAINER_MODE=no
1350 fi;
1351   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1352 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1353
1354
1355 if test $USE_MAINTAINER_MODE = yes; then
1356   MAINTAINER_MODE_TRUE=
1357   MAINTAINER_MODE_FALSE='#'
1358 else
1359   MAINTAINER_MODE_TRUE='#'
1360   MAINTAINER_MODE_FALSE=
1361 fi
1362   MAINT=$MAINTAINER_MODE_TRUE
1363
1364
1365
1366 ac_ext=c
1367 ac_cpp='$CPP $CPPFLAGS'
1368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371 if test -n "$ac_tool_prefix"; then
1372   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1373 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1374 echo "$as_me:$LINENO: checking for $ac_word" >&5
1375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376 if test "${ac_cv_prog_CC+set}" = set; then
1377   echo $ECHO_N "(cached) $ECHO_C" >&6
1378 else
1379   if test -n "$CC"; then
1380   ac_cv_prog_CC="$CC" # Let the user override the test.
1381 else
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385   IFS=$as_save_IFS
1386   test -z "$as_dir" && as_dir=.
1387   for ac_exec_ext in '' $ac_executable_extensions; do
1388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391     break 2
1392   fi
1393 done
1394 done
1395
1396 fi
1397 fi
1398 CC=$ac_cv_prog_CC
1399 if test -n "$CC"; then
1400   echo "$as_me:$LINENO: result: $CC" >&5
1401 echo "${ECHO_T}$CC" >&6
1402 else
1403   echo "$as_me:$LINENO: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1405 fi
1406
1407 fi
1408 if test -z "$ac_cv_prog_CC"; then
1409   ac_ct_CC=$CC
1410   # Extract the first word of "gcc", so it can be a program name with args.
1411 set dummy gcc; ac_word=$2
1412 echo "$as_me:$LINENO: checking for $ac_word" >&5
1413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1415   echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417   if test -n "$ac_ct_CC"; then
1418   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1419 else
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 for as_dir in $PATH
1422 do
1423   IFS=$as_save_IFS
1424   test -z "$as_dir" && as_dir=.
1425   for ac_exec_ext in '' $ac_executable_extensions; do
1426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427     ac_cv_prog_ac_ct_CC="gcc"
1428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1429     break 2
1430   fi
1431 done
1432 done
1433
1434 fi
1435 fi
1436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1437 if test -n "$ac_ct_CC"; then
1438   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1439 echo "${ECHO_T}$ac_ct_CC" >&6
1440 else
1441   echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1443 fi
1444
1445   CC=$ac_ct_CC
1446 else
1447   CC="$ac_cv_prog_CC"
1448 fi
1449
1450 if test -z "$CC"; then
1451   if test -n "$ac_tool_prefix"; then
1452   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1453 set dummy ${ac_tool_prefix}cc; ac_word=$2
1454 echo "$as_me:$LINENO: checking for $ac_word" >&5
1455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456 if test "${ac_cv_prog_CC+set}" = set; then
1457   echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459   if test -n "$CC"; then
1460   ac_cv_prog_CC="$CC" # Let the user override the test.
1461 else
1462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463 for as_dir in $PATH
1464 do
1465   IFS=$as_save_IFS
1466   test -z "$as_dir" && as_dir=.
1467   for ac_exec_ext in '' $ac_executable_extensions; do
1468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1469     ac_cv_prog_CC="${ac_tool_prefix}cc"
1470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1471     break 2
1472   fi
1473 done
1474 done
1475
1476 fi
1477 fi
1478 CC=$ac_cv_prog_CC
1479 if test -n "$CC"; then
1480   echo "$as_me:$LINENO: result: $CC" >&5
1481 echo "${ECHO_T}$CC" >&6
1482 else
1483   echo "$as_me:$LINENO: result: no" >&5
1484 echo "${ECHO_T}no" >&6
1485 fi
1486
1487 fi
1488 if test -z "$ac_cv_prog_CC"; then
1489   ac_ct_CC=$CC
1490   # Extract the first word of "cc", so it can be a program name with args.
1491 set dummy cc; ac_word=$2
1492 echo "$as_me:$LINENO: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495   echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497   if test -n "$ac_ct_CC"; then
1498   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1499 else
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   for ac_exec_ext in '' $ac_executable_extensions; do
1506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507     ac_cv_prog_ac_ct_CC="cc"
1508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509     break 2
1510   fi
1511 done
1512 done
1513
1514 fi
1515 fi
1516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1517 if test -n "$ac_ct_CC"; then
1518   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1519 echo "${ECHO_T}$ac_ct_CC" >&6
1520 else
1521   echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1523 fi
1524
1525   CC=$ac_ct_CC
1526 else
1527   CC="$ac_cv_prog_CC"
1528 fi
1529
1530 fi
1531 if test -z "$CC"; then
1532   # Extract the first word of "cc", so it can be a program name with args.
1533 set dummy cc; ac_word=$2
1534 echo "$as_me:$LINENO: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_CC+set}" = set; then
1537   echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539   if test -n "$CC"; then
1540   ac_cv_prog_CC="$CC" # Let the user override the test.
1541 else
1542   ac_prog_rejected=no
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
1547   test -z "$as_dir" && as_dir=.
1548   for ac_exec_ext in '' $ac_executable_extensions; do
1549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1551        ac_prog_rejected=yes
1552        continue
1553      fi
1554     ac_cv_prog_CC="cc"
1555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556     break 2
1557   fi
1558 done
1559 done
1560
1561 if test $ac_prog_rejected = yes; then
1562   # We found a bogon in the path, so make sure we never use it.
1563   set dummy $ac_cv_prog_CC
1564   shift
1565   if test $# != 0; then
1566     # We chose a different compiler from the bogus one.
1567     # However, it has the same basename, so the bogon will be chosen
1568     # first if we set CC to just the basename; use the full file name.
1569     shift
1570     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1571   fi
1572 fi
1573 fi
1574 fi
1575 CC=$ac_cv_prog_CC
1576 if test -n "$CC"; then
1577   echo "$as_me:$LINENO: result: $CC" >&5
1578 echo "${ECHO_T}$CC" >&6
1579 else
1580   echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584 fi
1585 if test -z "$CC"; then
1586   if test -n "$ac_tool_prefix"; then
1587   for ac_prog in cl
1588   do
1589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594   echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596   if test -n "$CC"; then
1597   ac_cv_prog_CC="$CC" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   for ac_exec_ext in '' $ac_executable_extensions; do
1605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608     break 2
1609   fi
1610 done
1611 done
1612
1613 fi
1614 fi
1615 CC=$ac_cv_prog_CC
1616 if test -n "$CC"; then
1617   echo "$as_me:$LINENO: result: $CC" >&5
1618 echo "${ECHO_T}$CC" >&6
1619 else
1620   echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622 fi
1623
1624     test -n "$CC" && break
1625   done
1626 fi
1627 if test -z "$CC"; then
1628   ac_ct_CC=$CC
1629   for ac_prog in cl
1630 do
1631   # Extract the first word of "$ac_prog", so it can be a program name with args.
1632 set dummy $ac_prog; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   if test -n "$ac_ct_CC"; then
1639   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   for ac_exec_ext in '' $ac_executable_extensions; do
1647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648     ac_cv_prog_ac_ct_CC="$ac_prog"
1649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650     break 2
1651   fi
1652 done
1653 done
1654
1655 fi
1656 fi
1657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658 if test -n "$ac_ct_CC"; then
1659   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660 echo "${ECHO_T}$ac_ct_CC" >&6
1661 else
1662   echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1664 fi
1665
1666   test -n "$ac_ct_CC" && break
1667 done
1668
1669   CC=$ac_ct_CC
1670 fi
1671
1672 fi
1673
1674
1675 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1676 See \`config.log' for more details." >&5
1677 echo "$as_me: error: no acceptable C compiler found in \$PATH
1678 See \`config.log' for more details." >&2;}
1679    { (exit 1); exit 1; }; }
1680
1681 # Provide some information about the compiler.
1682 echo "$as_me:$LINENO:" \
1683      "checking for C compiler version" >&5
1684 ac_compiler=`set X $ac_compile; echo $2`
1685 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1686   (eval $ac_compiler --version </dev/null >&5) 2>&5
1687   ac_status=$?
1688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1689   (exit $ac_status); }
1690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1691   (eval $ac_compiler -v </dev/null >&5) 2>&5
1692   ac_status=$?
1693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694   (exit $ac_status); }
1695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1696   (eval $ac_compiler -V </dev/null >&5) 2>&5
1697   ac_status=$?
1698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699   (exit $ac_status); }
1700
1701 cat >conftest.$ac_ext <<_ACEOF
1702 /* confdefs.h.  */
1703 _ACEOF
1704 cat confdefs.h >>conftest.$ac_ext
1705 cat >>conftest.$ac_ext <<_ACEOF
1706 /* end confdefs.h.  */
1707
1708 int
1709 main ()
1710 {
1711
1712   ;
1713   return 0;
1714 }
1715 _ACEOF
1716 ac_clean_files_save=$ac_clean_files
1717 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1718 # Try to create an executable without -o first, disregard a.out.
1719 # It will help us diagnose broken compilers, and finding out an intuition
1720 # of exeext.
1721 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1722 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1724 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1725   (eval $ac_link_default) 2>&5
1726   ac_status=$?
1727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728   (exit $ac_status); }; then
1729   # Find the output, starting from the most likely.  This scheme is
1730 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1731 # resort.
1732
1733 # Be careful to initialize this variable, since it used to be cached.
1734 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1735 ac_cv_exeext=
1736 # b.out is created by i960 compilers.
1737 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1738 do
1739   test -f "$ac_file" || continue
1740   case $ac_file in
1741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1742         ;;
1743     conftest.$ac_ext )
1744         # This is the source file.
1745         ;;
1746     [ab].out )
1747         # We found the default executable, but exeext='' is most
1748         # certainly right.
1749         break;;
1750     *.* )
1751         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1752         # FIXME: I believe we export ac_cv_exeext for Libtool,
1753         # but it would be cool to find out if it's true.  Does anybody
1754         # maintain Libtool? --akim.
1755         export ac_cv_exeext
1756         break;;
1757     * )
1758         break;;
1759   esac
1760 done
1761 else
1762   echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1766 See \`config.log' for more details." >&5
1767 echo "$as_me: error: C compiler cannot create executables
1768 See \`config.log' for more details." >&2;}
1769    { (exit 77); exit 77; }; }
1770 fi
1771
1772 ac_exeext=$ac_cv_exeext
1773 echo "$as_me:$LINENO: result: $ac_file" >&5
1774 echo "${ECHO_T}$ac_file" >&6
1775
1776 # Check the compiler produces executables we can run.  If not, either
1777 # the compiler is broken, or we cross compile.
1778 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781 # If not cross compiling, check that we can run a simple program.
1782 if test "$cross_compiling" != yes; then
1783   if { ac_try='./$ac_file'
1784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785   (eval $ac_try) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); }; }; then
1789     cross_compiling=no
1790   else
1791     if test "$cross_compiling" = maybe; then
1792         cross_compiling=yes
1793     else
1794         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'.
1796 See \`config.log' for more details." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'.
1799 See \`config.log' for more details." >&2;}
1800    { (exit 1); exit 1; }; }
1801     fi
1802   fi
1803 fi
1804 echo "$as_me:$LINENO: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1806
1807 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1808 ac_clean_files=$ac_clean_files_save
1809 # Check the compiler produces executables we can run.  If not, either
1810 # the compiler is broken, or we cross compile.
1811 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1812 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1813 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1814 echo "${ECHO_T}$cross_compiling" >&6
1815
1816 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1817 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1819   (eval $ac_link) 2>&5
1820   ac_status=$?
1821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822   (exit $ac_status); }; then
1823   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1824 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1825 # work properly (i.e., refer to `conftest.exe'), while it won't with
1826 # `rm'.
1827 for ac_file in conftest.exe conftest conftest.*; do
1828   test -f "$ac_file" || continue
1829   case $ac_file in
1830     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1831     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1832           export ac_cv_exeext
1833           break;;
1834     * ) break;;
1835   esac
1836 done
1837 else
1838   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1839 See \`config.log' for more details." >&5
1840 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1841 See \`config.log' for more details." >&2;}
1842    { (exit 1); exit 1; }; }
1843 fi
1844
1845 rm -f conftest$ac_cv_exeext
1846 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1847 echo "${ECHO_T}$ac_cv_exeext" >&6
1848
1849 rm -f conftest.$ac_ext
1850 EXEEXT=$ac_cv_exeext
1851 ac_exeext=$EXEEXT
1852 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1853 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1854 if test "${ac_cv_objext+set}" = set; then
1855   echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857   cat >conftest.$ac_ext <<_ACEOF
1858 /* confdefs.h.  */
1859 _ACEOF
1860 cat confdefs.h >>conftest.$ac_ext
1861 cat >>conftest.$ac_ext <<_ACEOF
1862 /* end confdefs.h.  */
1863
1864 int
1865 main ()
1866 {
1867
1868   ;
1869   return 0;
1870 }
1871 _ACEOF
1872 rm -f conftest.o conftest.obj
1873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1874   (eval $ac_compile) 2>&5
1875   ac_status=$?
1876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877   (exit $ac_status); }; then
1878   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1879   case $ac_file in
1880     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1881     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1882        break;;
1883   esac
1884 done
1885 else
1886   echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1892 See \`config.log' for more details." >&2;}
1893    { (exit 1); exit 1; }; }
1894 fi
1895
1896 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1897 fi
1898 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1899 echo "${ECHO_T}$ac_cv_objext" >&6
1900 OBJEXT=$ac_cv_objext
1901 ac_objext=$OBJEXT
1902 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1903 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1904 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1905   echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907   cat >conftest.$ac_ext <<_ACEOF
1908 /* confdefs.h.  */
1909 _ACEOF
1910 cat confdefs.h >>conftest.$ac_ext
1911 cat >>conftest.$ac_ext <<_ACEOF
1912 /* end confdefs.h.  */
1913
1914 int
1915 main ()
1916 {
1917 #ifndef __GNUC__
1918        choke me
1919 #endif
1920
1921   ;
1922   return 0;
1923 }
1924 _ACEOF
1925 rm -f conftest.$ac_objext
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927   (eval $ac_compile) 2>conftest.er1
1928   ac_status=$?
1929   grep -v '^ *+' conftest.er1 >conftest.err
1930   rm -f conftest.er1
1931   cat conftest.err >&5
1932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933   (exit $ac_status); } &&
1934          { ac_try='test -z "$ac_c_werror_flag"
1935                          || test ! -s conftest.err'
1936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937   (eval $ac_try) 2>&5
1938   ac_status=$?
1939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940   (exit $ac_status); }; } &&
1941          { ac_try='test -s conftest.$ac_objext'
1942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943   (eval $ac_try) 2>&5
1944   ac_status=$?
1945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946   (exit $ac_status); }; }; then
1947   ac_compiler_gnu=yes
1948 else
1949   echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 ac_compiler_gnu=no
1953 fi
1954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1956
1957 fi
1958 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1960 GCC=`test $ac_compiler_gnu = yes && echo yes`
1961 ac_test_CFLAGS=${CFLAGS+set}
1962 ac_save_CFLAGS=$CFLAGS
1963 CFLAGS="-g"
1964 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1965 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1966 if test "${ac_cv_prog_cc_g+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h.  */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h.  */
1975
1976 int
1977 main ()
1978 {
1979
1980   ;
1981   return 0;
1982 }
1983 _ACEOF
1984 rm -f conftest.$ac_objext
1985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1986   (eval $ac_compile) 2>conftest.er1
1987   ac_status=$?
1988   grep -v '^ *+' conftest.er1 >conftest.err
1989   rm -f conftest.er1
1990   cat conftest.err >&5
1991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992   (exit $ac_status); } &&
1993          { ac_try='test -z "$ac_c_werror_flag"
1994                          || test ! -s conftest.err'
1995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996   (eval $ac_try) 2>&5
1997   ac_status=$?
1998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999   (exit $ac_status); }; } &&
2000          { ac_try='test -s conftest.$ac_objext'
2001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002   (eval $ac_try) 2>&5
2003   ac_status=$?
2004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005   (exit $ac_status); }; }; then
2006   ac_cv_prog_cc_g=yes
2007 else
2008   echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011 ac_cv_prog_cc_g=no
2012 fi
2013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2014 fi
2015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2017 if test "$ac_test_CFLAGS" = set; then
2018   CFLAGS=$ac_save_CFLAGS
2019 elif test $ac_cv_prog_cc_g = yes; then
2020   if test "$GCC" = yes; then
2021     CFLAGS="-g -O2"
2022   else
2023     CFLAGS="-g"
2024   fi
2025 else
2026   if test "$GCC" = yes; then
2027     CFLAGS="-O2"
2028   else
2029     CFLAGS=
2030   fi
2031 fi
2032 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2033 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2034 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   ac_cv_prog_cc_stdc=no
2038 ac_save_CC=$CC
2039 cat >conftest.$ac_ext <<_ACEOF
2040 /* confdefs.h.  */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h.  */
2045 #include <stdarg.h>
2046 #include <stdio.h>
2047 #include <sys/types.h>
2048 #include <sys/stat.h>
2049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2050 struct buf { int x; };
2051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2052 static char *e (p, i)
2053      char **p;
2054      int i;
2055 {
2056   return p[i];
2057 }
2058 static char *f (char * (*g) (char **, int), char **p, ...)
2059 {
2060   char *s;
2061   va_list v;
2062   va_start (v,p);
2063   s = g (p, va_arg (v,int));
2064   va_end (v);
2065   return s;
2066 }
2067
2068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2069    function prototypes and stuff, but not '\xHH' hex character constants.
2070    These don't provoke an error unfortunately, instead are silently treated
2071    as 'x'.  The following induces an error, until -std1 is added to get
2072    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2073    array size at least.  It's necessary to write '\x00'==0 to get something
2074    that's true only with -std1.  */
2075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2076
2077 int test (int i, double x);
2078 struct s1 {int (*f) (int a);};
2079 struct s2 {int (*f) (double a);};
2080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081 int argc;
2082 char **argv;
2083 int
2084 main ()
2085 {
2086 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 # Don't try gcc -ansi; that turns off useful extensions and
2092 # breaks some systems' header files.
2093 # AIX                   -qlanglvl=ansi
2094 # Ultrix and OSF/1      -std1
2095 # HP-UX 10.20 and later -Ae
2096 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2097 # SVR4                  -Xc -D__EXTENSIONS__
2098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099 do
2100   CC="$ac_save_CC $ac_arg"
2101   rm -f conftest.$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103   (eval $ac_compile) 2>conftest.er1
2104   ac_status=$?
2105   grep -v '^ *+' conftest.er1 >conftest.err
2106   rm -f conftest.er1
2107   cat conftest.err >&5
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); } &&
2110          { ac_try='test -z "$ac_c_werror_flag"
2111                          || test ! -s conftest.err'
2112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113   (eval $ac_try) 2>&5
2114   ac_status=$?
2115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116   (exit $ac_status); }; } &&
2117          { ac_try='test -s conftest.$ac_objext'
2118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119   (eval $ac_try) 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }; }; then
2123   ac_cv_prog_cc_stdc=$ac_arg
2124 break
2125 else
2126   echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 fi
2130 rm -f conftest.err conftest.$ac_objext
2131 done
2132 rm -f conftest.$ac_ext conftest.$ac_objext
2133 CC=$ac_save_CC
2134
2135 fi
2136
2137 case "x$ac_cv_prog_cc_stdc" in
2138   x|xno)
2139     echo "$as_me:$LINENO: result: none needed" >&5
2140 echo "${ECHO_T}none needed" >&6 ;;
2141   *)
2142     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2143 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2144     CC="$CC $ac_cv_prog_cc_stdc" ;;
2145 esac
2146
2147 # Some people use a C++ compiler to compile C.  Since we use `exit',
2148 # in C++ we need to declare it.  In case someone uses the same compiler
2149 # for both compiling C and C++ we need to have the C++ compiler decide
2150 # the declaration of exit, since it's the most demanding environment.
2151 cat >conftest.$ac_ext <<_ACEOF
2152 #ifndef __cplusplus
2153   choke me
2154 #endif
2155 _ACEOF
2156 rm -f conftest.$ac_objext
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158   (eval $ac_compile) 2>conftest.er1
2159   ac_status=$?
2160   grep -v '^ *+' conftest.er1 >conftest.err
2161   rm -f conftest.er1
2162   cat conftest.err >&5
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); } &&
2165          { ac_try='test -z "$ac_c_werror_flag"
2166                          || test ! -s conftest.err'
2167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168   (eval $ac_try) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; } &&
2172          { ac_try='test -s conftest.$ac_objext'
2173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174   (eval $ac_try) 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }; }; then
2178   for ac_declaration in \
2179    '' \
2180    'extern "C" void std::exit (int) throw (); using std::exit;' \
2181    'extern "C" void std::exit (int); using std::exit;' \
2182    'extern "C" void exit (int) throw ();' \
2183    'extern "C" void exit (int);' \
2184    'void exit (int);'
2185 do
2186   cat >conftest.$ac_ext <<_ACEOF
2187 /* confdefs.h.  */
2188 _ACEOF
2189 cat confdefs.h >>conftest.$ac_ext
2190 cat >>conftest.$ac_ext <<_ACEOF
2191 /* end confdefs.h.  */
2192 $ac_declaration
2193 #include <stdlib.h>
2194 int
2195 main ()
2196 {
2197 exit (42);
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 rm -f conftest.$ac_objext
2203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204   (eval $ac_compile) 2>conftest.er1
2205   ac_status=$?
2206   grep -v '^ *+' conftest.er1 >conftest.err
2207   rm -f conftest.er1
2208   cat conftest.err >&5
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); } &&
2211          { ac_try='test -z "$ac_c_werror_flag"
2212                          || test ! -s conftest.err'
2213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214   (eval $ac_try) 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }; } &&
2218          { ac_try='test -s conftest.$ac_objext'
2219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220   (eval $ac_try) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }; }; then
2224   :
2225 else
2226   echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 continue
2230 fi
2231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232   cat >conftest.$ac_ext <<_ACEOF
2233 /* confdefs.h.  */
2234 _ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h.  */
2238 $ac_declaration
2239 int
2240 main ()
2241 {
2242 exit (42);
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249   (eval $ac_compile) 2>conftest.er1
2250   ac_status=$?
2251   grep -v '^ *+' conftest.er1 >conftest.err
2252   rm -f conftest.er1
2253   cat conftest.err >&5
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); } &&
2256          { ac_try='test -z "$ac_c_werror_flag"
2257                          || test ! -s conftest.err'
2258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259   (eval $ac_try) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; } &&
2263          { ac_try='test -s conftest.$ac_objext'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269   break
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 fi
2275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276 done
2277 rm -f conftest*
2278 if test -n "$ac_declaration"; then
2279   echo '#ifdef __cplusplus' >>confdefs.h
2280   echo $ac_declaration      >>confdefs.h
2281   echo '#endif'             >>confdefs.h
2282 fi
2283
2284 else
2285   echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 ac_ext=c
2291 ac_cpp='$CPP $CPPFLAGS'
2292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295
2296 cat >>confdefs.h <<\_ACEOF
2297 #define _GNU_SOURCE 1
2298 _ACEOF
2299
2300
2301
2302 ac_ext=c
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2308 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2309 # On Suns, sometimes $CPP names a directory.
2310 if test -n "$CPP" && test -d "$CPP"; then
2311   CPP=
2312 fi
2313 if test -z "$CPP"; then
2314   if test "${ac_cv_prog_CPP+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317       # Double quotes because CPP needs to be expanded
2318     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2319     do
2320       ac_preproc_ok=false
2321 for ac_c_preproc_warn_flag in '' yes
2322 do
2323   # Use a header file that comes with gcc, so configuring glibc
2324   # with a fresh cross-compiler works.
2325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2326   # <limits.h> exists even on freestanding compilers.
2327   # On the NeXT, cc -E runs the code through the compiler's parser,
2328   # not just through cpp. "Syntax error" is here to catch this case.
2329   cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h.  */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h.  */
2335 #ifdef __STDC__
2336 # include <limits.h>
2337 #else
2338 # include <assert.h>
2339 #endif
2340                      Syntax error
2341 _ACEOF
2342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2344   ac_status=$?
2345   grep -v '^ *+' conftest.er1 >conftest.err
2346   rm -f conftest.er1
2347   cat conftest.err >&5
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); } >/dev/null; then
2350   if test -s conftest.err; then
2351     ac_cpp_err=$ac_c_preproc_warn_flag
2352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2353   else
2354     ac_cpp_err=
2355   fi
2356 else
2357   ac_cpp_err=yes
2358 fi
2359 if test -z "$ac_cpp_err"; then
2360   :
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365   # Broken: fails on valid input.
2366 continue
2367 fi
2368 rm -f conftest.err conftest.$ac_ext
2369
2370   # OK, works on sane cases.  Now check whether non-existent headers
2371   # can be detected and how.
2372   cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h.  */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h.  */
2378 #include <ac_nonexistent.h>
2379 _ACEOF
2380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } >/dev/null; then
2388   if test -s conftest.err; then
2389     ac_cpp_err=$ac_c_preproc_warn_flag
2390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2391   else
2392     ac_cpp_err=
2393   fi
2394 else
2395   ac_cpp_err=yes
2396 fi
2397 if test -z "$ac_cpp_err"; then
2398   # Broken: success on invalid input.
2399 continue
2400 else
2401   echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404   # Passes both tests.
2405 ac_preproc_ok=:
2406 break
2407 fi
2408 rm -f conftest.err conftest.$ac_ext
2409
2410 done
2411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2412 rm -f conftest.err conftest.$ac_ext
2413 if $ac_preproc_ok; then
2414   break
2415 fi
2416
2417     done
2418     ac_cv_prog_CPP=$CPP
2419
2420 fi
2421   CPP=$ac_cv_prog_CPP
2422 else
2423   ac_cv_prog_CPP=$CPP
2424 fi
2425 echo "$as_me:$LINENO: result: $CPP" >&5
2426 echo "${ECHO_T}$CPP" >&6
2427 ac_preproc_ok=false
2428 for ac_c_preproc_warn_flag in '' yes
2429 do
2430   # Use a header file that comes with gcc, so configuring glibc
2431   # with a fresh cross-compiler works.
2432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2433   # <limits.h> exists even on freestanding compilers.
2434   # On the NeXT, cc -E runs the code through the compiler's parser,
2435   # not just through cpp. "Syntax error" is here to catch this case.
2436   cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h.  */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h.  */
2442 #ifdef __STDC__
2443 # include <limits.h>
2444 #else
2445 # include <assert.h>
2446 #endif
2447                      Syntax error
2448 _ACEOF
2449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2451   ac_status=$?
2452   grep -v '^ *+' conftest.er1 >conftest.err
2453   rm -f conftest.er1
2454   cat conftest.err >&5
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } >/dev/null; then
2457   if test -s conftest.err; then
2458     ac_cpp_err=$ac_c_preproc_warn_flag
2459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2460   else
2461     ac_cpp_err=
2462   fi
2463 else
2464   ac_cpp_err=yes
2465 fi
2466 if test -z "$ac_cpp_err"; then
2467   :
2468 else
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472   # Broken: fails on valid input.
2473 continue
2474 fi
2475 rm -f conftest.err conftest.$ac_ext
2476
2477   # OK, works on sane cases.  Now check whether non-existent headers
2478   # can be detected and how.
2479   cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h.  */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h.  */
2485 #include <ac_nonexistent.h>
2486 _ACEOF
2487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489   ac_status=$?
2490   grep -v '^ *+' conftest.er1 >conftest.err
2491   rm -f conftest.er1
2492   cat conftest.err >&5
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } >/dev/null; then
2495   if test -s conftest.err; then
2496     ac_cpp_err=$ac_c_preproc_warn_flag
2497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2498   else
2499     ac_cpp_err=
2500   fi
2501 else
2502   ac_cpp_err=yes
2503 fi
2504 if test -z "$ac_cpp_err"; then
2505   # Broken: success on invalid input.
2506 continue
2507 else
2508   echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511   # Passes both tests.
2512 ac_preproc_ok=:
2513 break
2514 fi
2515 rm -f conftest.err conftest.$ac_ext
2516
2517 done
2518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2519 rm -f conftest.err conftest.$ac_ext
2520 if $ac_preproc_ok; then
2521   :
2522 else
2523   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2526 See \`config.log' for more details." >&2;}
2527    { (exit 1); exit 1; }; }
2528 fi
2529
2530 ac_ext=c
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535
2536
2537 echo "$as_me:$LINENO: checking for egrep" >&5
2538 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2539 if test "${ac_cv_prog_egrep+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2543     then ac_cv_prog_egrep='grep -E'
2544     else ac_cv_prog_egrep='egrep'
2545     fi
2546 fi
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2548 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2549  EGREP=$ac_cv_prog_egrep
2550
2551
2552
2553 echo "$as_me:$LINENO: checking for AIX" >&5
2554 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2555 cat >conftest.$ac_ext <<_ACEOF
2556 /* confdefs.h.  */
2557 _ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h.  */
2561 #ifdef _AIX
2562   yes
2563 #endif
2564
2565 _ACEOF
2566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2567   $EGREP "yes" >/dev/null 2>&1; then
2568   echo "$as_me:$LINENO: result: yes" >&5
2569 echo "${ECHO_T}yes" >&6
2570 cat >>confdefs.h <<\_ACEOF
2571 #define _ALL_SOURCE 1
2572 _ACEOF
2573
2574 else
2575   echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2577 fi
2578 rm -f conftest*
2579
2580
2581 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2582 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2583 if test "${ac_cv_search_strerror+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   ac_func_search_save_LIBS=$LIBS
2587 ac_cv_search_strerror=no
2588 cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h.  */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h.  */
2594
2595 /* Override any gcc2 internal prototype to avoid an error.  */
2596 #ifdef __cplusplus
2597 extern "C"
2598 #endif
2599 /* We use char because int might match the return type of a gcc2
2600    builtin and then its argument prototype would still apply.  */
2601 char strerror ();
2602 int
2603 main ()
2604 {
2605 strerror ();
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext conftest$ac_exeext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2612   (eval $ac_link) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"
2620                          || test ! -s conftest.err'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; } &&
2626          { ac_try='test -s conftest$ac_exeext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   ac_cv_search_strerror="none required"
2633 else
2634   echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 fi
2638 rm -f conftest.err conftest.$ac_objext \
2639       conftest$ac_exeext conftest.$ac_ext
2640 if test "$ac_cv_search_strerror" = no; then
2641   for ac_lib in cposix; do
2642     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2643     cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649
2650 /* Override any gcc2 internal prototype to avoid an error.  */
2651 #ifdef __cplusplus
2652 extern "C"
2653 #endif
2654 /* We use char because int might match the return type of a gcc2
2655    builtin and then its argument prototype would still apply.  */
2656 char strerror ();
2657 int
2658 main ()
2659 {
2660 strerror ();
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext conftest$ac_exeext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2667   (eval $ac_link) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_c_werror_flag"
2675                          || test ! -s conftest.err'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest$ac_exeext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   ac_cv_search_strerror="-l$ac_lib"
2688 break
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 fi
2694 rm -f conftest.err conftest.$ac_objext \
2695       conftest$ac_exeext conftest.$ac_ext
2696   done
2697 fi
2698 LIBS=$ac_func_search_save_LIBS
2699 fi
2700 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2701 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2702 if test "$ac_cv_search_strerror" != no; then
2703   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2704
2705 fi
2706
2707
2708
2709
2710 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2711 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2712 if test "${am_cv_prog_cc_stdc+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   am_cv_prog_cc_stdc=no
2716 ac_save_CC="$CC"
2717 # Don't try gcc -ansi; that turns off useful extensions and
2718 # breaks some systems' header files.
2719 # AIX                   -qlanglvl=ansi
2720 # Ultrix and OSF/1      -std1
2721 # HP-UX 10.20 and later -Ae
2722 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2723 # SVR4                  -Xc -D__EXTENSIONS__
2724 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726   CC="$ac_save_CC $ac_arg"
2727   cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733 #include <stdarg.h>
2734 #include <stdio.h>
2735 #include <sys/types.h>
2736 #include <sys/stat.h>
2737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2738 struct buf { int x; };
2739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740 static char *e (p, i)
2741      char **p;
2742      int i;
2743 {
2744   return p[i];
2745 }
2746 static char *f (char * (*g) (char **, int), char **p, ...)
2747 {
2748   char *s;
2749   va_list v;
2750   va_start (v,p);
2751   s = g (p, va_arg (v,int));
2752   va_end (v);
2753   return s;
2754 }
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759 int argc;
2760 char **argv;
2761
2762 int
2763 main ()
2764 {
2765
2766 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2767
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_c_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   am_cv_prog_cc_stdc="$ac_arg"; break
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 fi
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 done
2802 CC="$ac_save_CC"
2803
2804 fi
2805
2806 if test -z "$am_cv_prog_cc_stdc"; then
2807   echo "$as_me:$LINENO: result: none needed" >&5
2808 echo "${ECHO_T}none needed" >&6
2809 else
2810   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2811 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2812 fi
2813 case "x$am_cv_prog_cc_stdc" in
2814   x|xno) ;;
2815   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2816 esac
2817
2818
2819 ac_aux_dir=
2820 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2821   if test -f $ac_dir/install-sh; then
2822     ac_aux_dir=$ac_dir
2823     ac_install_sh="$ac_aux_dir/install-sh -c"
2824     break
2825   elif test -f $ac_dir/install.sh; then
2826     ac_aux_dir=$ac_dir
2827     ac_install_sh="$ac_aux_dir/install.sh -c"
2828     break
2829   elif test -f $ac_dir/shtool; then
2830     ac_aux_dir=$ac_dir
2831     ac_install_sh="$ac_aux_dir/shtool install -c"
2832     break
2833   fi
2834 done
2835 if test -z "$ac_aux_dir"; then
2836   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2837 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2838    { (exit 1); exit 1; }; }
2839 fi
2840 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2841 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2842 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2843
2844 # Make sure we can run config.sub.
2845 $ac_config_sub sun4 >/dev/null 2>&1 ||
2846   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2847 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2848    { (exit 1); exit 1; }; }
2849
2850 echo "$as_me:$LINENO: checking build system type" >&5
2851 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2852 if test "${ac_cv_build+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   ac_cv_build_alias=$build_alias
2856 test -z "$ac_cv_build_alias" &&
2857   ac_cv_build_alias=`$ac_config_guess`
2858 test -z "$ac_cv_build_alias" &&
2859   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2860 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2861    { (exit 1); exit 1; }; }
2862 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2863   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2864 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2865    { (exit 1); exit 1; }; }
2866
2867 fi
2868 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2869 echo "${ECHO_T}$ac_cv_build" >&6
2870 build=$ac_cv_build
2871 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2872 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2873 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2874
2875
2876 echo "$as_me:$LINENO: checking host system type" >&5
2877 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2878 if test "${ac_cv_host+set}" = set; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881   ac_cv_host_alias=$host_alias
2882 test -z "$ac_cv_host_alias" &&
2883   ac_cv_host_alias=$ac_cv_build_alias
2884 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2885   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2886 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2887    { (exit 1); exit 1; }; }
2888
2889 fi
2890 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2891 echo "${ECHO_T}$ac_cv_host" >&6
2892 host=$ac_cv_host
2893 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2894 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2895 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2896
2897
2898 echo "$as_me:$LINENO: checking target system type" >&5
2899 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2900 if test "${ac_cv_target+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   ac_cv_target_alias=$target_alias
2904 test "x$ac_cv_target_alias" = "x" &&
2905   ac_cv_target_alias=$ac_cv_host_alias
2906 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2907   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2908 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2909    { (exit 1); exit 1; }; }
2910
2911 fi
2912 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2913 echo "${ECHO_T}$ac_cv_target" >&6
2914 target=$ac_cv_target
2915 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2916 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2917 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2918
2919
2920 # The aliases save the names the user supplied, while $host etc.
2921 # will get canonicalized.
2922 test -n "$target_alias" &&
2923   test "$program_prefix$program_suffix$program_transform_name" = \
2924     NONENONEs,x,x, &&
2925   program_prefix=${target_alias}-
2926
2927 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
2928 # doesn't support cross-compilation, but the one from Autoconf 2.5x
2929 # does.  Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
2930 # deal with the lossage.  Note that CY_GNU_GETTEXT currently calls
2931 # AC_PROG_RANLIB.  This can be removed when we switch to Autoconf
2932 # 2.5x.
2933 if test -n "$ac_tool_prefix"; then
2934   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2936 echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_prog_RANLIB+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   if test -n "$RANLIB"; then
2942   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949   for ac_exec_ext in '' $ac_executable_extensions; do
2950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953     break 2
2954   fi
2955 done
2956 done
2957
2958 fi
2959 fi
2960 RANLIB=$ac_cv_prog_RANLIB
2961 if test -n "$RANLIB"; then
2962   echo "$as_me:$LINENO: result: $RANLIB" >&5
2963 echo "${ECHO_T}$RANLIB" >&6
2964 else
2965   echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2967 fi
2968
2969 fi
2970 if test -z "$ac_cv_prog_RANLIB"; then
2971   ac_ct_RANLIB=$RANLIB
2972   # Extract the first word of "ranlib", so it can be a program name with args.
2973 set dummy ranlib; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$ac_ct_RANLIB"; then
2980   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987   for ac_exec_ext in '' $ac_executable_extensions; do
2988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989     ac_cv_prog_ac_ct_RANLIB="ranlib"
2990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994 done
2995
2996   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2997 fi
2998 fi
2999 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3000 if test -n "$ac_ct_RANLIB"; then
3001   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3002 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3003 else
3004   echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6
3006 fi
3007
3008   RANLIB=$ac_ct_RANLIB
3009 else
3010   RANLIB="$ac_cv_prog_RANLIB"
3011 fi
3012
3013
3014
3015 CONFIG_OBS=
3016 CONFIG_DEPS=
3017 CONFIG_SRCS=
3018 ENABLE_CFLAGS=
3019
3020 CONFIG_ALL=
3021 CONFIG_CLEAN=
3022 CONFIG_INSTALL=
3023 CONFIG_UNINSTALL=
3024
3025
3026 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3027 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3028 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3029 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3030   echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032   cat >conftest.make <<\_ACEOF
3033 all:
3034         @echo 'ac_maketemp="$(MAKE)"'
3035 _ACEOF
3036 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3037 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3038 if test -n "$ac_maketemp"; then
3039   eval ac_cv_prog_make_${ac_make}_set=yes
3040 else
3041   eval ac_cv_prog_make_${ac_make}_set=no
3042 fi
3043 rm -f conftest.make
3044 fi
3045 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3046   echo "$as_me:$LINENO: result: yes" >&5
3047 echo "${ECHO_T}yes" >&6
3048   SET_MAKE=
3049 else
3050   echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3052   SET_MAKE="MAKE=${MAKE-make}"
3053 fi
3054
3055 if test -n "$ac_tool_prefix"; then
3056   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_prog_RANLIB+set}" = set; then
3061   echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063   if test -n "$RANLIB"; then
3064   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071   for ac_exec_ext in '' $ac_executable_extensions; do
3072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075     break 2
3076   fi
3077 done
3078 done
3079
3080 fi
3081 fi
3082 RANLIB=$ac_cv_prog_RANLIB
3083 if test -n "$RANLIB"; then
3084   echo "$as_me:$LINENO: result: $RANLIB" >&5
3085 echo "${ECHO_T}$RANLIB" >&6
3086 else
3087   echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3089 fi
3090
3091 fi
3092 if test -z "$ac_cv_prog_RANLIB"; then
3093   ac_ct_RANLIB=$RANLIB
3094   # Extract the first word of "ranlib", so it can be a program name with args.
3095 set dummy ranlib; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3099   echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101   if test -n "$ac_ct_RANLIB"; then
3102   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109   for ac_exec_ext in '' $ac_executable_extensions; do
3110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111     ac_cv_prog_ac_ct_RANLIB="ranlib"
3112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116 done
3117
3118   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3119 fi
3120 fi
3121 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3122 if test -n "$ac_ct_RANLIB"; then
3123   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3124 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3125 else
3126   echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3128 fi
3129
3130   RANLIB=$ac_ct_RANLIB
3131 else
3132   RANLIB="$ac_cv_prog_RANLIB"
3133 fi
3134
3135 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3136 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3137 if test "${ac_cv_header_stdc+set}" = set; then
3138   echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140   cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146 #include <stdlib.h>
3147 #include <stdarg.h>
3148 #include <string.h>
3149 #include <float.h>
3150
3151 int
3152 main ()
3153 {
3154
3155   ;
3156   return 0;
3157 }
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161   (eval $ac_compile) 2>conftest.er1
3162   ac_status=$?
3163   grep -v '^ *+' conftest.er1 >conftest.err
3164   rm -f conftest.er1
3165   cat conftest.err >&5
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); } &&
3168          { ac_try='test -z "$ac_c_werror_flag"
3169                          || test ! -s conftest.err'
3170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171   (eval $ac_try) 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; } &&
3175          { ac_try='test -s conftest.$ac_objext'
3176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177   (eval $ac_try) 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; }; then
3181   ac_cv_header_stdc=yes
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186 ac_cv_header_stdc=no
3187 fi
3188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3189
3190 if test $ac_cv_header_stdc = yes; then
3191   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3192   cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198 #include <string.h>
3199
3200 _ACEOF
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202   $EGREP "memchr" >/dev/null 2>&1; then
3203   :
3204 else
3205   ac_cv_header_stdc=no
3206 fi
3207 rm -f conftest*
3208
3209 fi
3210
3211 if test $ac_cv_header_stdc = yes; then
3212   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3213   cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219 #include <stdlib.h>
3220
3221 _ACEOF
3222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223   $EGREP "free" >/dev/null 2>&1; then
3224   :
3225 else
3226   ac_cv_header_stdc=no
3227 fi
3228 rm -f conftest*
3229
3230 fi
3231
3232 if test $ac_cv_header_stdc = yes; then
3233   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3234   if test "$cross_compiling" = yes; then
3235   :
3236 else
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #include <ctype.h>
3244 #if ((' ' & 0x0FF) == 0x020)
3245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3247 #else
3248 # define ISLOWER(c) \
3249                    (('a' <= (c) && (c) <= 'i') \
3250                      || ('j' <= (c) && (c) <= 'r') \
3251                      || ('s' <= (c) && (c) <= 'z'))
3252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3253 #endif
3254
3255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3256 int
3257 main ()
3258 {
3259   int i;
3260   for (i = 0; i < 256; i++)
3261     if (XOR (islower (i), ISLOWER (i))
3262         || toupper (i) != TOUPPER (i))
3263       exit(2);
3264   exit (0);
3265 }
3266 _ACEOF
3267 rm -f conftest$ac_exeext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269   (eval $ac_link) 2>&5
3270   ac_status=$?
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274   (eval $ac_try) 2>&5
3275   ac_status=$?
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }; }; then
3278   :
3279 else
3280   echo "$as_me: program exited with status $ac_status" >&5
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 ( exit $ac_status )
3285 ac_cv_header_stdc=no
3286 fi
3287 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3288 fi
3289 fi
3290 fi
3291 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3292 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3293 if test $ac_cv_header_stdc = yes; then
3294
3295 cat >>confdefs.h <<\_ACEOF
3296 #define STDC_HEADERS 1
3297 _ACEOF
3298
3299 fi
3300
3301 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3302 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3303 if test "${ac_cv_c_const+set}" = set; then
3304   echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306   cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312
3313 int
3314 main ()
3315 {
3316 /* FIXME: Include the comments suggested by Paul. */
3317 #ifndef __cplusplus
3318   /* Ultrix mips cc rejects this.  */
3319   typedef int charset[2];
3320   const charset x;
3321   /* SunOS 4.1.1 cc rejects this.  */
3322   char const *const *ccp;
3323   char **p;
3324   /* NEC SVR4.0.2 mips cc rejects this.  */
3325   struct point {int x, y;};
3326   static struct point const zero = {0,0};
3327   /* AIX XL C 1.02.0.0 rejects this.
3328      It does not let you subtract one const X* pointer from another in
3329      an arm of an if-expression whose if-part is not a constant
3330      expression */
3331   const char *g = "string";
3332   ccp = &g + (g ? g-g : 0);
3333   /* HPUX 7.0 cc rejects these. */
3334   ++ccp;
3335   p = (char**) ccp;
3336   ccp = (char const *const *) p;
3337   { /* SCO 3.2v4 cc rejects this.  */
3338     char *t;
3339     char const *s = 0 ? (char *) 0 : (char const *) 0;
3340
3341     *t++ = 0;
3342   }
3343   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3344     int x[] = {25, 17};
3345     const int *foo = &x[0];
3346     ++foo;
3347   }
3348   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3349     typedef const int *iptr;
3350     iptr p = 0;
3351     ++p;
3352   }
3353   { /* AIX XL C 1.02.0.0 rejects this saying
3354        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3355     struct s { int j; const int *ap[3]; };
3356     struct s *b; b->j = 5;
3357   }
3358   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3359     const int foo = 10;
3360   }
3361 #endif
3362
3363   ;
3364   return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369   (eval $ac_compile) 2>conftest.er1
3370   ac_status=$?
3371   grep -v '^ *+' conftest.er1 >conftest.err
3372   rm -f conftest.er1
3373   cat conftest.err >&5
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } &&
3376          { ac_try='test -z "$ac_c_werror_flag"
3377                          || test ! -s conftest.err'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; } &&
3383          { ac_try='test -s conftest.$ac_objext'
3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; }; then
3389   ac_cv_c_const=yes
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 ac_cv_c_const=no
3395 fi
3396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397 fi
3398 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3399 echo "${ECHO_T}$ac_cv_c_const" >&6
3400 if test $ac_cv_c_const = no; then
3401
3402 cat >>confdefs.h <<\_ACEOF
3403 #define const
3404 _ACEOF
3405
3406 fi
3407
3408 echo "$as_me:$LINENO: checking for inline" >&5
3409 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3410 if test "${ac_cv_c_inline+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   ac_cv_c_inline=no
3414 for ac_kw in inline __inline__ __inline; do
3415   cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 #ifndef __cplusplus
3422 typedef int foo_t;
3423 static $ac_kw foo_t static_foo () {return 0; }
3424 $ac_kw foo_t foo () {return 0; }
3425 #endif
3426
3427 _ACEOF
3428 rm -f conftest.$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430   (eval $ac_compile) 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } &&
3437          { ac_try='test -z "$ac_c_werror_flag"
3438                          || test ! -s conftest.err'
3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440   (eval $ac_try) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }; } &&
3444          { ac_try='test -s conftest.$ac_objext'
3445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446   (eval $ac_try) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; }; then
3450   ac_cv_c_inline=$ac_kw; break
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 fi
3456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3457 done
3458
3459 fi
3460 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3461 echo "${ECHO_T}$ac_cv_c_inline" >&6
3462
3463
3464 case $ac_cv_c_inline in
3465   inline | yes) ;;
3466   *)
3467     case $ac_cv_c_inline in
3468       no) ac_val=;;
3469       *) ac_val=$ac_cv_c_inline;;
3470     esac
3471     cat >>confdefs.h <<_ACEOF
3472 #ifndef __cplusplus
3473 #define inline $ac_val
3474 #endif
3475 _ACEOF
3476     ;;
3477 esac
3478
3479 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3490                   inttypes.h stdint.h unistd.h
3491 do
3492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3493 echo "$as_me:$LINENO: checking for $ac_header" >&5
3494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 $ac_includes_default
3505
3506 #include <$ac_header>
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510   (eval $ac_compile) 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } &&
3517          { ac_try='test -z "$ac_c_werror_flag"
3518                          || test ! -s conftest.err'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; } &&
3524          { ac_try='test -s conftest.$ac_objext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   eval "$as_ac_Header=yes"
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 eval "$as_ac_Header=no"
3536 fi
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3542   cat >>confdefs.h <<_ACEOF
3543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3544 _ACEOF
3545
3546 fi
3547
3548 done
3549
3550
3551 echo "$as_me:$LINENO: checking for off_t" >&5
3552 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3553 if test "${ac_cv_type_off_t+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 $ac_includes_default
3563 int
3564 main ()
3565 {
3566 if ((off_t *) 0)
3567   return 0;
3568 if (sizeof (off_t))
3569   return 0;
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576   (eval $ac_compile) 2>conftest.er1
3577   ac_status=$?
3578   grep -v '^ *+' conftest.er1 >conftest.err
3579   rm -f conftest.er1
3580   cat conftest.err >&5
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } &&
3583          { ac_try='test -z "$ac_c_werror_flag"
3584                          || test ! -s conftest.err'
3585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586   (eval $ac_try) 2>&5
3587   ac_status=$?
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); }; } &&
3590          { ac_try='test -s conftest.$ac_objext'
3591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592   (eval $ac_try) 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; }; then
3596   ac_cv_type_off_t=yes
3597 else
3598   echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 ac_cv_type_off_t=no
3602 fi
3603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604 fi
3605 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3606 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3607 if test $ac_cv_type_off_t = yes; then
3608   :
3609 else
3610
3611 cat >>confdefs.h <<_ACEOF
3612 #define off_t long
3613 _ACEOF
3614
3615 fi
3616
3617 echo "$as_me:$LINENO: checking for size_t" >&5
3618 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3619 if test "${ac_cv_type_size_t+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h.  */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h.  */
3628 $ac_includes_default
3629 int
3630 main ()
3631 {
3632 if ((size_t *) 0)
3633   return 0;
3634 if (sizeof (size_t))
3635   return 0;
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642   (eval $ac_compile) 2>conftest.er1
3643   ac_status=$?
3644   grep -v '^ *+' conftest.er1 >conftest.err
3645   rm -f conftest.er1
3646   cat conftest.err >&5
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } &&
3649          { ac_try='test -z "$ac_c_werror_flag"
3650                          || test ! -s conftest.err'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; } &&
3656          { ac_try='test -s conftest.$ac_objext'
3657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658   (eval $ac_try) 2>&5
3659   ac_status=$?
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); }; }; then
3662   ac_cv_type_size_t=yes
3663 else
3664   echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 ac_cv_type_size_t=no
3668 fi
3669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3670 fi
3671 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3672 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3673 if test $ac_cv_type_size_t = yes; then
3674   :
3675 else
3676
3677 cat >>confdefs.h <<_ACEOF
3678 #define size_t unsigned
3679 _ACEOF
3680
3681 fi
3682
3683 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3684 # for constant arguments.  Useless!
3685 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3686 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3687 if test "${ac_cv_working_alloca_h+set}" = set; then
3688   echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690   cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 #include <alloca.h>
3697 int
3698 main ()
3699 {
3700 char *p = (char *) alloca (2 * sizeof (int));
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 rm -f conftest.$ac_objext conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707   (eval $ac_link) 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } &&
3714          { ac_try='test -z "$ac_c_werror_flag"
3715                          || test ! -s conftest.err'
3716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717   (eval $ac_try) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }; } &&
3721          { ac_try='test -s conftest$ac_exeext'
3722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723   (eval $ac_try) 2>&5
3724   ac_status=$?
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); }; }; then
3727   ac_cv_working_alloca_h=yes
3728 else
3729   echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 ac_cv_working_alloca_h=no
3733 fi
3734 rm -f conftest.err conftest.$ac_objext \
3735       conftest$ac_exeext conftest.$ac_ext
3736 fi
3737 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3738 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3739 if test $ac_cv_working_alloca_h = yes; then
3740
3741 cat >>confdefs.h <<\_ACEOF
3742 #define HAVE_ALLOCA_H 1
3743 _ACEOF
3744
3745 fi
3746
3747 echo "$as_me:$LINENO: checking for alloca" >&5
3748 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3749 if test "${ac_cv_func_alloca_works+set}" = set; then
3750   echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752   cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h.  */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h.  */
3758 #ifdef __GNUC__
3759 # define alloca __builtin_alloca
3760 #else
3761 # ifdef _MSC_VER
3762 #  include <malloc.h>
3763 #  define alloca _alloca
3764 # else
3765 #  if HAVE_ALLOCA_H
3766 #   include <alloca.h>
3767 #  else
3768 #   ifdef _AIX
3769  #pragma alloca
3770 #   else
3771 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3772 char *alloca ();
3773 #    endif
3774 #   endif
3775 #  endif
3776 # endif
3777 #endif
3778
3779 int
3780 main ()
3781 {
3782 char *p = (char *) alloca (1);
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 rm -f conftest.$ac_objext conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789   (eval $ac_link) 2>conftest.er1
3790   ac_status=$?
3791   grep -v '^ *+' conftest.er1 >conftest.err
3792   rm -f conftest.er1
3793   cat conftest.err >&5
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); } &&
3796          { ac_try='test -z "$ac_c_werror_flag"
3797                          || test ! -s conftest.err'
3798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799   (eval $ac_try) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); }; } &&
3803          { ac_try='test -s conftest$ac_exeext'
3804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805   (eval $ac_try) 2>&5
3806   ac_status=$?
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); }; }; then
3809   ac_cv_func_alloca_works=yes
3810 else
3811   echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 ac_cv_func_alloca_works=no
3815 fi
3816 rm -f conftest.err conftest.$ac_objext \
3817       conftest$ac_exeext conftest.$ac_ext
3818 fi
3819 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3820 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3821
3822 if test $ac_cv_func_alloca_works = yes; then
3823
3824 cat >>confdefs.h <<\_ACEOF
3825 #define HAVE_ALLOCA 1
3826 _ACEOF
3827
3828 else
3829   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3830 # that cause trouble.  Some versions do not even contain alloca or
3831 # contain a buggy version.  If you still want to use their alloca,
3832 # use ar to extract alloca.o from them instead of compiling alloca.c.
3833
3834 ALLOCA=alloca.$ac_objext
3835
3836 cat >>confdefs.h <<\_ACEOF
3837 #define C_ALLOCA 1
3838 _ACEOF
3839
3840
3841 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3842 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3843 if test "${ac_cv_os_cray+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852 #if defined(CRAY) && ! defined(CRAY2)
3853 webecray
3854 #else
3855 wenotbecray
3856 #endif
3857
3858 _ACEOF
3859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3860   $EGREP "webecray" >/dev/null 2>&1; then
3861   ac_cv_os_cray=yes
3862 else
3863   ac_cv_os_cray=no
3864 fi
3865 rm -f conftest*
3866
3867 fi
3868 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3869 echo "${ECHO_T}$ac_cv_os_cray" >&6
3870 if test $ac_cv_os_cray = yes; then
3871   for ac_func in _getb67 GETB67 getb67; do
3872     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3873 echo "$as_me:$LINENO: checking for $ac_func" >&5
3874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3875 if eval "test \"\${$as_ac_var+set}\" = set"; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3886 #define $ac_func innocuous_$ac_func
3887
3888 /* System header to define __stub macros and hopefully few prototypes,
3889     which can conflict with char $ac_func (); below.
3890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3891     <limits.h> exists even on freestanding compilers.  */
3892
3893 #ifdef __STDC__
3894 # include <limits.h>
3895 #else
3896 # include <assert.h>
3897 #endif
3898
3899 #undef $ac_func
3900
3901 /* Override any gcc2 internal prototype to avoid an error.  */
3902 #ifdef __cplusplus
3903 extern "C"
3904 {
3905 #endif
3906 /* We use char because int might match the return type of a gcc2
3907    builtin and then its argument prototype would still apply.  */
3908 char $ac_func ();
3909 /* The GNU C library defines this for functions which it implements
3910     to always fail with ENOSYS.  Some functions are actually named
3911     something starting with __ and the normal name is an alias.  */
3912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3913 choke me
3914 #else
3915 char (*f) () = $ac_func;
3916 #endif
3917 #ifdef __cplusplus
3918 }
3919 #endif
3920
3921 int
3922 main ()
3923 {
3924 return f != $ac_func;
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest.$ac_objext conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931   (eval $ac_link) 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } &&
3938          { ac_try='test -z "$ac_c_werror_flag"
3939                          || test ! -s conftest.err'
3940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941   (eval $ac_try) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; } &&
3945          { ac_try='test -s conftest$ac_exeext'
3946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947   (eval $ac_try) 2>&5
3948   ac_status=$?
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); }; }; then
3951   eval "$as_ac_var=yes"
3952 else
3953   echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 eval "$as_ac_var=no"
3957 fi
3958 rm -f conftest.err conftest.$ac_objext \
3959       conftest$ac_exeext conftest.$ac_ext
3960 fi
3961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3963 if test `eval echo '${'$as_ac_var'}'` = yes; then
3964
3965 cat >>confdefs.h <<_ACEOF
3966 #define CRAY_STACKSEG_END $ac_func
3967 _ACEOF
3968
3969     break
3970 fi
3971
3972   done
3973 fi
3974
3975 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3976 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3977 if test "${ac_cv_c_stack_direction+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980   if test "$cross_compiling" = yes; then
3981   ac_cv_c_stack_direction=0
3982 else
3983   cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h.  */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h.  */
3989 int
3990 find_stack_direction ()
3991 {
3992   static char *addr = 0;
3993   auto char dummy;
3994   if (addr == 0)
3995     {
3996       addr = &dummy;
3997       return find_stack_direction ();
3998     }
3999   else
4000     return (&dummy > addr) ? 1 : -1;
4001 }
4002
4003 int
4004 main ()
4005 {
4006   exit (find_stack_direction () < 0);
4007 }
4008 _ACEOF
4009 rm -f conftest$ac_exeext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011   (eval $ac_link) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016   (eval $ac_try) 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; }; then
4020   ac_cv_c_stack_direction=1
4021 else
4022   echo "$as_me: program exited with status $ac_status" >&5
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 ( exit $ac_status )
4027 ac_cv_c_stack_direction=-1
4028 fi
4029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4030 fi
4031 fi
4032 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4033 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4034
4035 cat >>confdefs.h <<_ACEOF
4036 #define STACK_DIRECTION $ac_cv_c_stack_direction
4037 _ACEOF
4038
4039
4040 fi
4041
4042
4043
4044 for ac_header in stdlib.h unistd.h
4045 do
4046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4048   echo "$as_me:$LINENO: checking for $ac_header" >&5
4049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 fi
4053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4055 else
4056   # Is the header compilable?
4057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 $ac_includes_default
4066 #include <$ac_header>
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070   (eval $ac_compile) 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } &&
4077          { ac_try='test -z "$ac_c_werror_flag"
4078                          || test ! -s conftest.err'
4079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080   (eval $ac_try) 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); }; } &&
4084          { ac_try='test -s conftest.$ac_objext'
4085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086   (eval $ac_try) 2>&5
4087   ac_status=$?
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); }; }; then
4090   ac_header_compiler=yes
4091 else
4092   echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095 ac_header_compiler=no
4096 fi
4097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4099 echo "${ECHO_T}$ac_header_compiler" >&6
4100
4101 # Is the header present?
4102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h.  */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h.  */
4110 #include <$ac_header>
4111 _ACEOF
4112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4114   ac_status=$?
4115   grep -v '^ *+' conftest.er1 >conftest.err
4116   rm -f conftest.er1
4117   cat conftest.err >&5
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); } >/dev/null; then
4120   if test -s conftest.err; then
4121     ac_cpp_err=$ac_c_preproc_warn_flag
4122     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4123   else
4124     ac_cpp_err=
4125   fi
4126 else
4127   ac_cpp_err=yes
4128 fi
4129 if test -z "$ac_cpp_err"; then
4130   ac_header_preproc=yes
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135   ac_header_preproc=no
4136 fi
4137 rm -f conftest.err conftest.$ac_ext
4138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4139 echo "${ECHO_T}$ac_header_preproc" >&6
4140
4141 # So?  What about this header?
4142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4143   yes:no: )
4144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4148     ac_header_preproc=yes
4149     ;;
4150   no:yes:* )
4151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4163     (
4164       cat <<\_ASBOX
4165 ## ------------------------------------------ ##
4166 ## Report this to the AC_PACKAGE_NAME lists.  ##
4167 ## ------------------------------------------ ##
4168 _ASBOX
4169     ) |
4170       sed "s/^/$as_me: WARNING:     /" >&2
4171     ;;
4172 esac
4173 echo "$as_me:$LINENO: checking for $ac_header" >&5
4174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   eval "$as_ac_Header=\$ac_header_preproc"
4179 fi
4180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4182
4183 fi
4184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4185   cat >>confdefs.h <<_ACEOF
4186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4187 _ACEOF
4188
4189 fi
4190
4191 done
4192
4193
4194 for ac_func in getpagesize
4195 do
4196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4197 echo "$as_me:$LINENO: checking for $ac_func" >&5
4198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4199 if eval "test \"\${$as_ac_var+set}\" = set"; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4210 #define $ac_func innocuous_$ac_func
4211
4212 /* System header to define __stub macros and hopefully few prototypes,
4213     which can conflict with char $ac_func (); below.
4214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215     <limits.h> exists even on freestanding compilers.  */
4216
4217 #ifdef __STDC__
4218 # include <limits.h>
4219 #else
4220 # include <assert.h>
4221 #endif
4222
4223 #undef $ac_func
4224
4225 /* Override any gcc2 internal prototype to avoid an error.  */
4226 #ifdef __cplusplus
4227 extern "C"
4228 {
4229 #endif
4230 /* We use char because int might match the return type of a gcc2
4231    builtin and then its argument prototype would still apply.  */
4232 char $ac_func ();
4233 /* The GNU C library defines this for functions which it implements
4234     to always fail with ENOSYS.  Some functions are actually named
4235     something starting with __ and the normal name is an alias.  */
4236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4237 choke me
4238 #else
4239 char (*f) () = $ac_func;
4240 #endif
4241 #ifdef __cplusplus
4242 }
4243 #endif
4244
4245 int
4246 main ()
4247 {
4248 return f != $ac_func;
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255   (eval $ac_link) 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -z "$ac_c_werror_flag"
4263                          || test ! -s conftest.err'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest$ac_exeext'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   eval "$as_ac_var=yes"
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 eval "$as_ac_var=no"
4281 fi
4282 rm -f conftest.err conftest.$ac_objext \
4283       conftest$ac_exeext conftest.$ac_ext
4284 fi
4285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4287 if test `eval echo '${'$as_ac_var'}'` = yes; then
4288   cat >>confdefs.h <<_ACEOF
4289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4290 _ACEOF
4291
4292 fi
4293 done
4294
4295 echo "$as_me:$LINENO: checking for working mmap" >&5
4296 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4297 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   if test "$cross_compiling" = yes; then
4301   ac_cv_func_mmap_fixed_mapped=no
4302 else
4303   cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309 $ac_includes_default
4310 /* malloc might have been renamed as rpl_malloc. */
4311 #undef malloc
4312
4313 /* Thanks to Mike Haertel and Jim Avera for this test.
4314    Here is a matrix of mmap possibilities:
4315         mmap private not fixed
4316         mmap private fixed at somewhere currently unmapped
4317         mmap private fixed at somewhere already mapped
4318         mmap shared not fixed
4319         mmap shared fixed at somewhere currently unmapped
4320         mmap shared fixed at somewhere already mapped
4321    For private mappings, we should verify that changes cannot be read()
4322    back from the file, nor mmap's back from the file at a different
4323    address.  (There have been systems where private was not correctly
4324    implemented like the infamous i386 svr4.0, and systems where the
4325    VM page cache was not coherent with the file system buffer cache
4326    like early versions of FreeBSD and possibly contemporary NetBSD.)
4327    For shared mappings, we should conversely verify that changes get
4328    propagated back to all the places they're supposed to be.
4329
4330    Grep wants private fixed already mapped.
4331    The main things grep needs to know about mmap are:
4332    * does it exist and is it safe to write into the mmap'd area
4333    * how to use it (BSD variants)  */
4334
4335 #include <fcntl.h>
4336 #include <sys/mman.h>
4337
4338 #if !STDC_HEADERS && !HAVE_STDLIB_H
4339 char *malloc ();
4340 #endif
4341
4342 /* This mess was copied from the GNU getpagesize.h.  */
4343 #if !HAVE_GETPAGESIZE
4344 /* Assume that all systems that can run configure have sys/param.h.  */
4345 # if !HAVE_SYS_PARAM_H
4346 #  define HAVE_SYS_PARAM_H 1
4347 # endif
4348
4349 # ifdef _SC_PAGESIZE
4350 #  define getpagesize() sysconf(_SC_PAGESIZE)
4351 # else /* no _SC_PAGESIZE */
4352 #  if HAVE_SYS_PARAM_H
4353 #   include <sys/param.h>
4354 #   ifdef EXEC_PAGESIZE
4355 #    define getpagesize() EXEC_PAGESIZE
4356 #   else /* no EXEC_PAGESIZE */
4357 #    ifdef NBPG
4358 #     define getpagesize() NBPG * CLSIZE
4359 #     ifndef CLSIZE
4360 #      define CLSIZE 1
4361 #     endif /* no CLSIZE */
4362 #    else /* no NBPG */
4363 #     ifdef NBPC
4364 #      define getpagesize() NBPC
4365 #     else /* no NBPC */
4366 #      ifdef PAGESIZE
4367 #       define getpagesize() PAGESIZE
4368 #      endif /* PAGESIZE */
4369 #     endif /* no NBPC */
4370 #    endif /* no NBPG */
4371 #   endif /* no EXEC_PAGESIZE */
4372 #  else /* no HAVE_SYS_PARAM_H */
4373 #   define getpagesize() 8192   /* punt totally */
4374 #  endif /* no HAVE_SYS_PARAM_H */
4375 # endif /* no _SC_PAGESIZE */
4376
4377 #endif /* no HAVE_GETPAGESIZE */
4378
4379 int
4380 main ()
4381 {
4382   char *data, *data2, *data3;
4383   int i, pagesize;
4384   int fd;
4385
4386   pagesize = getpagesize ();
4387
4388   /* First, make a file with some known garbage in it. */
4389   data = (char *) malloc (pagesize);
4390   if (!data)
4391     exit (1);
4392   for (i = 0; i < pagesize; ++i)
4393     *(data + i) = rand ();
4394   umask (0);
4395   fd = creat ("conftest.mmap", 0600);
4396   if (fd < 0)
4397     exit (1);
4398   if (write (fd, data, pagesize) != pagesize)
4399     exit (1);
4400   close (fd);
4401
4402   /* Next, try to mmap the file at a fixed address which already has
4403      something else allocated at it.  If we can, also make sure that
4404      we see the same garbage.  */
4405   fd = open ("conftest.mmap", O_RDWR);
4406   if (fd < 0)
4407     exit (1);
4408   data2 = (char *) malloc (2 * pagesize);
4409   if (!data2)
4410     exit (1);
4411   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4412   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4413                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4414     exit (1);
4415   for (i = 0; i < pagesize; ++i)
4416     if (*(data + i) != *(data2 + i))
4417       exit (1);
4418
4419   /* Finally, make sure that changes to the mapped area do not
4420      percolate back to the file as seen by read().  (This is a bug on
4421      some variants of i386 svr4.0.)  */
4422   for (i = 0; i < pagesize; ++i)
4423     *(data2 + i) = *(data2 + i) + 1;
4424   data3 = (char *) malloc (pagesize);
4425   if (!data3)
4426     exit (1);
4427   if (read (fd, data3, pagesize) != pagesize)
4428     exit (1);
4429   for (i = 0; i < pagesize; ++i)
4430     if (*(data + i) != *(data3 + i))
4431       exit (1);
4432   close (fd);
4433   exit (0);
4434 }
4435 _ACEOF
4436 rm -f conftest$ac_exeext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4438   (eval $ac_link) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443   (eval $ac_try) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; }; then
4447   ac_cv_func_mmap_fixed_mapped=yes
4448 else
4449   echo "$as_me: program exited with status $ac_status" >&5
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 ( exit $ac_status )
4454 ac_cv_func_mmap_fixed_mapped=no
4455 fi
4456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4457 fi
4458 fi
4459 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4460 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4461 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4462
4463 cat >>confdefs.h <<\_ACEOF
4464 #define HAVE_MMAP 1
4465 _ACEOF
4466
4467 fi
4468 rm -f conftest.mmap
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4481 unistd.h values.h sys/param.h
4482 do
4483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4485   echo "$as_me:$LINENO: checking for $ac_header" >&5
4486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 fi
4490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4492 else
4493   # Is the header compilable?
4494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h.  */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h.  */
4502 $ac_includes_default
4503 #include <$ac_header>
4504 _ACEOF
4505 rm -f conftest.$ac_objext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507   (eval $ac_compile) 2>conftest.er1
4508   ac_status=$?
4509   grep -v '^ *+' conftest.er1 >conftest.err
4510   rm -f conftest.er1
4511   cat conftest.err >&5
4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513   (exit $ac_status); } &&
4514          { ac_try='test -z "$ac_c_werror_flag"
4515                          || test ! -s conftest.err'
4516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517   (eval $ac_try) 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; } &&
4521          { ac_try='test -s conftest.$ac_objext'
4522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523   (eval $ac_try) 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); }; }; then
4527   ac_header_compiler=yes
4528 else
4529   echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532 ac_header_compiler=no
4533 fi
4534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4536 echo "${ECHO_T}$ac_header_compiler" >&6
4537
4538 # Is the header present?
4539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4541 cat >conftest.$ac_ext <<_ACEOF
4542 /* confdefs.h.  */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h.  */
4547 #include <$ac_header>
4548 _ACEOF
4549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } >/dev/null; then
4557   if test -s conftest.err; then
4558     ac_cpp_err=$ac_c_preproc_warn_flag
4559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4560   else
4561     ac_cpp_err=
4562   fi
4563 else
4564   ac_cpp_err=yes
4565 fi
4566 if test -z "$ac_cpp_err"; then
4567   ac_header_preproc=yes
4568 else
4569   echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572   ac_header_preproc=no
4573 fi
4574 rm -f conftest.err conftest.$ac_ext
4575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4576 echo "${ECHO_T}$ac_header_preproc" >&6
4577
4578 # So?  What about this header?
4579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4580   yes:no: )
4581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4585     ac_header_preproc=yes
4586     ;;
4587   no:yes:* )
4588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4600     (
4601       cat <<\_ASBOX
4602 ## ------------------------------------------ ##
4603 ## Report this to the AC_PACKAGE_NAME lists.  ##
4604 ## ------------------------------------------ ##
4605 _ASBOX
4606     ) |
4607       sed "s/^/$as_me: WARNING:     /" >&2
4608     ;;
4609 esac
4610 echo "$as_me:$LINENO: checking for $ac_header" >&5
4611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   eval "$as_ac_Header=\$ac_header_preproc"
4616 fi
4617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4619
4620 fi
4621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4622   cat >>confdefs.h <<_ACEOF
4623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4624 _ACEOF
4625
4626 fi
4627
4628 done
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4641 __argz_count __argz_stringify __argz_next
4642 do
4643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4644 echo "$as_me:$LINENO: checking for $ac_func" >&5
4645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4646 if eval "test \"\${$as_ac_var+set}\" = set"; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h.  */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h.  */
4655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4657 #define $ac_func innocuous_$ac_func
4658
4659 /* System header to define __stub macros and hopefully few prototypes,
4660     which can conflict with char $ac_func (); below.
4661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4662     <limits.h> exists even on freestanding compilers.  */
4663
4664 #ifdef __STDC__
4665 # include <limits.h>
4666 #else
4667 # include <assert.h>
4668 #endif
4669
4670 #undef $ac_func
4671
4672 /* Override any gcc2 internal prototype to avoid an error.  */
4673 #ifdef __cplusplus
4674 extern "C"
4675 {
4676 #endif
4677 /* We use char because int might match the return type of a gcc2
4678    builtin and then its argument prototype would still apply.  */
4679 char $ac_func ();
4680 /* The GNU C library defines this for functions which it implements
4681     to always fail with ENOSYS.  Some functions are actually named
4682     something starting with __ and the normal name is an alias.  */
4683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4684 choke me
4685 #else
4686 char (*f) () = $ac_func;
4687 #endif
4688 #ifdef __cplusplus
4689 }
4690 #endif
4691
4692 int
4693 main ()
4694 {
4695 return f != $ac_func;
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702   (eval $ac_link) 2>conftest.er1
4703   ac_status=$?
4704   grep -v '^ *+' conftest.er1 >conftest.err
4705   rm -f conftest.er1
4706   cat conftest.err >&5
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); } &&
4709          { ac_try='test -z "$ac_c_werror_flag"
4710                          || test ! -s conftest.err'
4711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712   (eval $ac_try) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }; } &&
4716          { ac_try='test -s conftest$ac_exeext'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; }; then
4722   eval "$as_ac_var=yes"
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 eval "$as_ac_var=no"
4728 fi
4729 rm -f conftest.err conftest.$ac_objext \
4730       conftest$ac_exeext conftest.$ac_ext
4731 fi
4732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4734 if test `eval echo '${'$as_ac_var'}'` = yes; then
4735   cat >>confdefs.h <<_ACEOF
4736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4737 _ACEOF
4738
4739 fi
4740 done
4741
4742
4743    if test "${ac_cv_func_stpcpy+set}" != "set"; then
4744
4745 for ac_func in stpcpy
4746 do
4747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4748 echo "$as_me:$LINENO: checking for $ac_func" >&5
4749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4750 if eval "test \"\${$as_ac_var+set}\" = set"; then
4751   echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753   cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4761 #define $ac_func innocuous_$ac_func
4762
4763 /* System header to define __stub macros and hopefully few prototypes,
4764     which can conflict with char $ac_func (); below.
4765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766     <limits.h> exists even on freestanding compilers.  */
4767
4768 #ifdef __STDC__
4769 # include <limits.h>
4770 #else
4771 # include <assert.h>
4772 #endif
4773
4774 #undef $ac_func
4775
4776 /* Override any gcc2 internal prototype to avoid an error.  */
4777 #ifdef __cplusplus
4778 extern "C"
4779 {
4780 #endif
4781 /* We use char because int might match the return type of a gcc2
4782    builtin and then its argument prototype would still apply.  */
4783 char $ac_func ();
4784 /* The GNU C library defines this for functions which it implements
4785     to always fail with ENOSYS.  Some functions are actually named
4786     something starting with __ and the normal name is an alias.  */
4787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4788 choke me
4789 #else
4790 char (*f) () = $ac_func;
4791 #endif
4792 #ifdef __cplusplus
4793 }
4794 #endif
4795
4796 int
4797 main ()
4798 {
4799 return f != $ac_func;
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804 rm -f conftest.$ac_objext conftest$ac_exeext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806   (eval $ac_link) 2>conftest.er1
4807   ac_status=$?
4808   grep -v '^ *+' conftest.er1 >conftest.err
4809   rm -f conftest.er1
4810   cat conftest.err >&5
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); } &&
4813          { ac_try='test -z "$ac_c_werror_flag"
4814                          || test ! -s conftest.err'
4815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816   (eval $ac_try) 2>&5
4817   ac_status=$?
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); }; } &&
4820          { ac_try='test -s conftest$ac_exeext'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; }; then
4826   eval "$as_ac_var=yes"
4827 else
4828   echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4830
4831 eval "$as_ac_var=no"
4832 fi
4833 rm -f conftest.err conftest.$ac_objext \
4834       conftest$ac_exeext conftest.$ac_ext
4835 fi
4836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4838 if test `eval echo '${'$as_ac_var'}'` = yes; then
4839   cat >>confdefs.h <<_ACEOF
4840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4841 _ACEOF
4842
4843 fi
4844 done
4845
4846    fi
4847    if test "${ac_cv_func_stpcpy}" = "yes"; then
4848
4849 cat >>confdefs.h <<\_ACEOF
4850 #define HAVE_STPCPY 1
4851 _ACEOF
4852
4853    fi
4854
4855    if test $ac_cv_header_locale_h = yes; then
4856     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4857 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4858 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h.  */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h.  */
4867 #include <locale.h>
4868 int
4869 main ()
4870 {
4871 return LC_MESSAGES
4872   ;
4873   return 0;
4874 }
4875 _ACEOF
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878   (eval $ac_link) 2>conftest.er1
4879   ac_status=$?
4880   grep -v '^ *+' conftest.er1 >conftest.err
4881   rm -f conftest.er1
4882   cat conftest.err >&5
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); } &&
4885          { ac_try='test -z "$ac_c_werror_flag"
4886                          || test ! -s conftest.err'
4887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888   (eval $ac_try) 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); }; } &&
4892          { ac_try='test -s conftest$ac_exeext'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; }; then
4898   am_cv_val_LC_MESSAGES=yes
4899 else
4900   echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 am_cv_val_LC_MESSAGES=no
4904 fi
4905 rm -f conftest.err conftest.$ac_objext \
4906       conftest$ac_exeext conftest.$ac_ext
4907 fi
4908 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4909 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4910     if test $am_cv_val_LC_MESSAGES = yes; then
4911
4912 cat >>confdefs.h <<\_ACEOF
4913 #define HAVE_LC_MESSAGES 1
4914 _ACEOF
4915
4916     fi
4917   fi
4918    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4919 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4920         # Check whether --enable-nls or --disable-nls was given.
4921 if test "${enable_nls+set}" = set; then
4922   enableval="$enable_nls"
4923   USE_NLS=$enableval
4924 else
4925   USE_NLS=yes
4926 fi;
4927     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4928 echo "${ECHO_T}$USE_NLS" >&6
4929
4930
4931     USE_INCLUDED_LIBINTL=no
4932
4933         if test "$USE_NLS" = "yes"; then
4934
4935 cat >>confdefs.h <<\_ACEOF
4936 #define ENABLE_NLS 1
4937 _ACEOF
4938
4939       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4940 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4941
4942 # Check whether --with-included-gettext or --without-included-gettext was given.
4943 if test "${with_included_gettext+set}" = set; then
4944   withval="$with_included_gettext"
4945   nls_cv_force_use_gnu_gettext=$withval
4946 else
4947   nls_cv_force_use_gnu_gettext=no
4948 fi;
4949       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4950 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4951
4952       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4953       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4954                                         nls_cv_header_intl=
4955         nls_cv_header_libgt=
4956         CATOBJEXT=NONE
4957
4958         if test "${ac_cv_header_libintl_h+set}" = set; then
4959   echo "$as_me:$LINENO: checking for libintl.h" >&5
4960 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4961 if test "${ac_cv_header_libintl_h+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 fi
4964 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4965 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4966 else
4967   # Is the header compilable?
4968 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4969 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h.  */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h.  */
4976 $ac_includes_default
4977 #include <libintl.h>
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981   (eval $ac_compile) 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } &&
4988          { ac_try='test -z "$ac_c_werror_flag"
4989                          || test ! -s conftest.err'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; } &&
4995          { ac_try='test -s conftest.$ac_objext'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; }; then
5001   ac_header_compiler=yes
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_header_compiler=no
5007 fi
5008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5010 echo "${ECHO_T}$ac_header_compiler" >&6
5011
5012 # Is the header present?
5013 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5014 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5015 cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h.  */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h.  */
5021 #include <libintl.h>
5022 _ACEOF
5023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5025   ac_status=$?
5026   grep -v '^ *+' conftest.er1 >conftest.err
5027   rm -f conftest.er1
5028   cat conftest.err >&5
5029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030   (exit $ac_status); } >/dev/null; then
5031   if test -s conftest.err; then
5032     ac_cpp_err=$ac_c_preproc_warn_flag
5033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5034   else
5035     ac_cpp_err=
5036   fi
5037 else
5038   ac_cpp_err=yes
5039 fi
5040 if test -z "$ac_cpp_err"; then
5041   ac_header_preproc=yes
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046   ac_header_preproc=no
5047 fi
5048 rm -f conftest.err conftest.$ac_ext
5049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5050 echo "${ECHO_T}$ac_header_preproc" >&6
5051
5052 # So?  What about this header?
5053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5054   yes:no: )
5055     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5056 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5057     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5058 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5059     ac_header_preproc=yes
5060     ;;
5061   no:yes:* )
5062     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5063 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5064     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
5065 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
5066     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5067 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5068     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
5069 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5070     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5071 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5072     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5073 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5074     (
5075       cat <<\_ASBOX
5076 ## ------------------------------------------ ##
5077 ## Report this to the AC_PACKAGE_NAME lists.  ##
5078 ## ------------------------------------------ ##
5079 _ASBOX
5080     ) |
5081       sed "s/^/$as_me: WARNING:     /" >&2
5082     ;;
5083 esac
5084 echo "$as_me:$LINENO: checking for libintl.h" >&5
5085 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5086 if test "${ac_cv_header_libintl_h+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   ac_cv_header_libintl_h=$ac_header_preproc
5090 fi
5091 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5092 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5093
5094 fi
5095 if test $ac_cv_header_libintl_h = yes; then
5096   echo "$as_me:$LINENO: checking for gettext in libc" >&5
5097 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5098 if test "${gt_cv_func_gettext_libc+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 #include <libintl.h>
5108 int
5109 main ()
5110 {
5111 return (int) gettext ("")
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118   (eval $ac_link) 2>conftest.er1
5119   ac_status=$?
5120   grep -v '^ *+' conftest.er1 >conftest.err
5121   rm -f conftest.er1
5122   cat conftest.err >&5
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); } &&
5125          { ac_try='test -z "$ac_c_werror_flag"
5126                          || test ! -s conftest.err'
5127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128   (eval $ac_try) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; } &&
5132          { ac_try='test -s conftest$ac_exeext'
5133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134   (eval $ac_try) 2>&5
5135   ac_status=$?
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); }; }; then
5138   gt_cv_func_gettext_libc=yes
5139 else
5140   echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 gt_cv_func_gettext_libc=no
5144 fi
5145 rm -f conftest.err conftest.$ac_objext \
5146       conftest$ac_exeext conftest.$ac_ext
5147 fi
5148 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5149 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5150
5151            if test "$gt_cv_func_gettext_libc" != "yes"; then
5152              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5153 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5154 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   ac_check_lib_save_LIBS=$LIBS
5158 LIBS="-lintl  $LIBS"
5159 cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h.  */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h.  */
5165
5166 /* Override any gcc2 internal prototype to avoid an error.  */
5167 #ifdef __cplusplus
5168 extern "C"
5169 #endif
5170 /* We use char because int might match the return type of a gcc2
5171    builtin and then its argument prototype would still apply.  */
5172 char bindtextdomain ();
5173 int
5174 main ()
5175 {
5176 bindtextdomain ();
5177   ;
5178   return 0;
5179 }
5180 _ACEOF
5181 rm -f conftest.$ac_objext conftest$ac_exeext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183   (eval $ac_link) 2>conftest.er1
5184   ac_status=$?
5185   grep -v '^ *+' conftest.er1 >conftest.err
5186   rm -f conftest.er1
5187   cat conftest.err >&5
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); } &&
5190          { ac_try='test -z "$ac_c_werror_flag"
5191                          || test ! -s conftest.err'
5192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193   (eval $ac_try) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); }; } &&
5197          { ac_try='test -s conftest$ac_exeext'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; }; then
5203   ac_cv_lib_intl_bindtextdomain=yes
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 ac_cv_lib_intl_bindtextdomain=no
5209 fi
5210 rm -f conftest.err conftest.$ac_objext \
5211       conftest$ac_exeext conftest.$ac_ext
5212 LIBS=$ac_check_lib_save_LIBS
5213 fi
5214 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5215 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5216 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5217   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5218 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5219 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228
5229 int
5230 main ()
5231 {
5232 return (int) gettext ("")
5233   ;
5234   return 0;
5235 }
5236 _ACEOF
5237 rm -f conftest.$ac_objext conftest$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239   (eval $ac_link) 2>conftest.er1
5240   ac_status=$?
5241   grep -v '^ *+' conftest.er1 >conftest.err
5242   rm -f conftest.er1
5243   cat conftest.err >&5
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); } &&
5246          { ac_try='test -z "$ac_c_werror_flag"
5247                          || test ! -s conftest.err'
5248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249   (eval $ac_try) 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); }; } &&
5253          { ac_try='test -s conftest$ac_exeext'
5254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255   (eval $ac_try) 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }; }; then
5259   gt_cv_func_gettext_libintl=yes
5260 else
5261   echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264 gt_cv_func_gettext_libintl=no
5265 fi
5266 rm -f conftest.err conftest.$ac_objext \
5267       conftest$ac_exeext conftest.$ac_ext
5268 fi
5269 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5270 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5271 fi
5272
5273            fi
5274
5275            if test "$gt_cv_func_gettext_libc" = "yes" \
5276               || test "$gt_cv_func_gettext_libintl" = "yes"; then
5277
5278 cat >>confdefs.h <<\_ACEOF
5279 #define HAVE_GETTEXT 1
5280 _ACEOF
5281
5282               # Extract the first word of "msgfmt", so it can be a program name with args.
5283 set dummy msgfmt; ac_word=$2
5284 echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_path_MSGFMT+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   case "$MSGFMT" in
5290   /*)
5291   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5292   ;;
5293   *)
5294   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5295   for ac_dir in $PATH; do
5296     test -z "$ac_dir" && ac_dir=.
5297     if test -f $ac_dir/$ac_word; then
5298       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5299         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5300         break
5301       fi
5302     fi
5303   done
5304   IFS="$ac_save_ifs"
5305   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5306   ;;
5307 esac
5308 fi
5309 MSGFMT="$ac_cv_path_MSGFMT"
5310 if test -n "$MSGFMT"; then
5311   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5312 echo "${ECHO_T}$MSGFMT" >&6
5313 else
5314   echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5316 fi
5317               if test "$MSGFMT" != "no"; then
5318
5319 for ac_func in dcgettext
5320 do
5321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5322 echo "$as_me:$LINENO: checking for $ac_func" >&5
5323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5324 if eval "test \"\${$as_ac_var+set}\" = set"; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5335 #define $ac_func innocuous_$ac_func
5336
5337 /* System header to define __stub macros and hopefully few prototypes,
5338     which can conflict with char $ac_func (); below.
5339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340     <limits.h> exists even on freestanding compilers.  */
5341
5342 #ifdef __STDC__
5343 # include <limits.h>
5344 #else
5345 # include <assert.h>
5346 #endif
5347
5348 #undef $ac_func
5349
5350 /* Override any gcc2 internal prototype to avoid an error.  */
5351 #ifdef __cplusplus
5352 extern "C"
5353 {
5354 #endif
5355 /* We use char because int might match the return type of a gcc2
5356    builtin and then its argument prototype would still apply.  */
5357 char $ac_func ();
5358 /* The GNU C library defines this for functions which it implements
5359     to always fail with ENOSYS.  Some functions are actually named
5360     something starting with __ and the normal name is an alias.  */
5361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5362 choke me
5363 #else
5364 char (*f) () = $ac_func;
5365 #endif
5366 #ifdef __cplusplus
5367 }
5368 #endif
5369
5370 int
5371 main ()
5372 {
5373 return f != $ac_func;
5374   ;
5375   return 0;
5376 }
5377 _ACEOF
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380   (eval $ac_link) 2>conftest.er1
5381   ac_status=$?
5382   grep -v '^ *+' conftest.er1 >conftest.err
5383   rm -f conftest.er1
5384   cat conftest.err >&5
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); } &&
5387          { ac_try='test -z "$ac_c_werror_flag"
5388                          || test ! -s conftest.err'
5389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390   (eval $ac_try) 2>&5
5391   ac_status=$?
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); }; } &&
5394          { ac_try='test -s conftest$ac_exeext'
5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396   (eval $ac_try) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; }; then
5400   eval "$as_ac_var=yes"
5401 else
5402   echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 eval "$as_ac_var=no"
5406 fi
5407 rm -f conftest.err conftest.$ac_objext \
5408       conftest$ac_exeext conftest.$ac_ext
5409 fi
5410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5412 if test `eval echo '${'$as_ac_var'}'` = yes; then
5413   cat >>confdefs.h <<_ACEOF
5414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5415 _ACEOF
5416
5417 fi
5418 done
5419
5420                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5421 set dummy gmsgfmt; ac_word=$2
5422 echo "$as_me:$LINENO: checking for $ac_word" >&5
5423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5424 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5425   echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427   case $GMSGFMT in
5428   [\\/]* | ?:[\\/]*)
5429   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5430   ;;
5431   *)
5432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437   for ac_exec_ext in '' $ac_executable_extensions; do
5438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444 done
5445
5446   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5447   ;;
5448 esac
5449 fi
5450 GMSGFMT=$ac_cv_path_GMSGFMT
5451
5452 if test -n "$GMSGFMT"; then
5453   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5454 echo "${ECHO_T}$GMSGFMT" >&6
5455 else
5456   echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6
5458 fi
5459
5460                 # Extract the first word of "xgettext", so it can be a program name with args.
5461 set dummy xgettext; ac_word=$2
5462 echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   case "$XGETTEXT" in
5468   /*)
5469   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5470   ;;
5471   *)
5472   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5473   for ac_dir in $PATH; do
5474     test -z "$ac_dir" && ac_dir=.
5475     if test -f $ac_dir/$ac_word; then
5476       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5477         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5478         break
5479       fi
5480     fi
5481   done
5482   IFS="$ac_save_ifs"
5483   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5484   ;;
5485 esac
5486 fi
5487 XGETTEXT="$ac_cv_path_XGETTEXT"
5488 if test -n "$XGETTEXT"; then
5489   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5490 echo "${ECHO_T}$XGETTEXT" >&6
5491 else
5492   echo "$as_me:$LINENO: result: no" >&5
5493 echo "${ECHO_T}no" >&6
5494 fi
5495
5496                 cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502
5503 int
5504 main ()
5505 {
5506 extern int _nl_msg_cat_cntr;
5507                                return _nl_msg_cat_cntr
5508   ;
5509   return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514   (eval $ac_link) 2>conftest.er1
5515   ac_status=$?
5516   grep -v '^ *+' conftest.er1 >conftest.err
5517   rm -f conftest.er1
5518   cat conftest.err >&5
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); } &&
5521          { ac_try='test -z "$ac_c_werror_flag"
5522                          || test ! -s conftest.err'
5523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524   (eval $ac_try) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); }; } &&
5528          { ac_try='test -s conftest$ac_exeext'
5529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530   (eval $ac_try) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; }; then
5534   CATOBJEXT=.gmo
5535                    DATADIRNAME=share
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540 CATOBJEXT=.mo
5541                    DATADIRNAME=lib
5542 fi
5543 rm -f conftest.err conftest.$ac_objext \
5544       conftest$ac_exeext conftest.$ac_ext
5545                 INSTOBJEXT=.mo
5546               fi
5547             fi
5548
5549 fi
5550
5551
5552
5553
5554         if test "$CATOBJEXT" = "NONE"; then
5555                           nls_cv_use_gnu_gettext=yes
5556         fi
5557       fi
5558
5559       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5560                 INTLOBJS="\$(GETTOBJS)"
5561         # Extract the first word of "msgfmt", so it can be a program name with args.
5562 set dummy msgfmt; ac_word=$2
5563 echo "$as_me:$LINENO: checking for $ac_word" >&5
5564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565 if test "${ac_cv_path_MSGFMT+set}" = set; then
5566   echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568   case "$MSGFMT" in
5569   /*)
5570   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5571   ;;
5572   *)
5573   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5574   for ac_dir in $PATH; do
5575     test -z "$ac_dir" && ac_dir=.
5576     if test -f $ac_dir/$ac_word; then
5577       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5578         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5579         break
5580       fi
5581     fi
5582   done
5583   IFS="$ac_save_ifs"
5584   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5585   ;;
5586 esac
5587 fi
5588 MSGFMT="$ac_cv_path_MSGFMT"
5589 if test -n "$MSGFMT"; then
5590   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5591 echo "${ECHO_T}$MSGFMT" >&6
5592 else
5593   echo "$as_me:$LINENO: result: no" >&5
5594 echo "${ECHO_T}no" >&6
5595 fi
5596
5597         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5598 set dummy gmsgfmt; ac_word=$2
5599 echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604   case $GMSGFMT in
5605   [\\/]* | ?:[\\/]*)
5606   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5607   ;;
5608   *)
5609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614   for ac_exec_ext in '' $ac_executable_extensions; do
5615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621 done
5622
5623   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5624   ;;
5625 esac
5626 fi
5627 GMSGFMT=$ac_cv_path_GMSGFMT
5628
5629 if test -n "$GMSGFMT"; then
5630   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5631 echo "${ECHO_T}$GMSGFMT" >&6
5632 else
5633   echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6
5635 fi
5636
5637         # Extract the first word of "xgettext", so it can be a program name with args.
5638 set dummy xgettext; ac_word=$2
5639 echo "$as_me:$LINENO: checking for $ac_word" >&5
5640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5641 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   case "$XGETTEXT" in
5645   /*)
5646   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5647   ;;
5648   *)
5649   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5650   for ac_dir in $PATH; do
5651     test -z "$ac_dir" && ac_dir=.
5652     if test -f $ac_dir/$ac_word; then
5653       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5654         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5655         break
5656       fi
5657     fi
5658   done
5659   IFS="$ac_save_ifs"
5660   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5661   ;;
5662 esac
5663 fi
5664 XGETTEXT="$ac_cv_path_XGETTEXT"
5665 if test -n "$XGETTEXT"; then
5666   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5667 echo "${ECHO_T}$XGETTEXT" >&6
5668 else
5669   echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6
5671 fi
5672
5673
5674         USE_INCLUDED_LIBINTL=yes
5675         CATOBJEXT=.gmo
5676         INSTOBJEXT=.mo
5677         DATADIRNAME=share
5678         INTLDEPS='$(top_builddir)/../intl/libintl.a'
5679         INTLLIBS=$INTLDEPS
5680         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5681         nls_cv_header_intl=libintl.h
5682         nls_cv_header_libgt=libgettext.h
5683       fi
5684
5685             if test "$XGETTEXT" != ":"; then
5686                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5687           : ;
5688         else
5689           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5690 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5691           XGETTEXT=":"
5692         fi
5693       fi
5694
5695       # We need to process the po/ directory.
5696       POSUB=po
5697     else
5698       DATADIRNAME=share
5699       nls_cv_header_intl=libintl.h
5700       nls_cv_header_libgt=libgettext.h
5701     fi
5702
5703     # If this is used in GNU gettext we have to set USE_NLS to `yes'
5704     # because some of the sources are only built for this goal.
5705     if test "$PACKAGE" = gettext; then
5706       USE_NLS=yes
5707       USE_INCLUDED_LIBINTL=yes
5708     fi
5709
5710                 for lang in $ALL_LINGUAS; do
5711       GMOFILES="$GMOFILES $lang.gmo"
5712       POFILES="$POFILES $lang.po"
5713     done
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728    if test "x$CATOBJEXT" != "x"; then
5729      if test "x$ALL_LINGUAS" = "x"; then
5730        LINGUAS=
5731      else
5732        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5733 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5734        NEW_LINGUAS=
5735        for lang in ${LINGUAS=$ALL_LINGUAS}; do
5736          case "$ALL_LINGUAS" in
5737           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5738          esac
5739        done
5740        LINGUAS=$NEW_LINGUAS
5741        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5742 echo "${ECHO_T}$LINGUAS" >&6
5743      fi
5744
5745           if test -n "$LINGUAS"; then
5746        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5747      fi
5748    fi
5749
5750             if test $ac_cv_header_locale_h = yes; then
5751      INCLUDE_LOCALE_H="#include <locale.h>"
5752    else
5753      INCLUDE_LOCALE_H="\
5754 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
5755    fi
5756
5757
5758             if test -f $srcdir/po2tbl.sed.in; then
5759       if test "$CATOBJEXT" = ".cat"; then
5760          if test "${ac_cv_header_linux_version_h+set}" = set; then
5761   echo "$as_me:$LINENO: checking for linux/version.h" >&5
5762 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5763 if test "${ac_cv_header_linux_version_h+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 fi
5766 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5767 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5768 else
5769   # Is the header compilable?
5770 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5771 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h.  */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h.  */
5778 $ac_includes_default
5779 #include <linux/version.h>
5780 _ACEOF
5781 rm -f conftest.$ac_objext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783   (eval $ac_compile) 2>conftest.er1
5784   ac_status=$?
5785   grep -v '^ *+' conftest.er1 >conftest.err
5786   rm -f conftest.er1
5787   cat conftest.err >&5
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } &&
5790          { ac_try='test -z "$ac_c_werror_flag"
5791                          || test ! -s conftest.err'
5792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793   (eval $ac_try) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); }; } &&
5797          { ac_try='test -s conftest.$ac_objext'
5798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799   (eval $ac_try) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); }; }; then
5803   ac_header_compiler=yes
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 ac_header_compiler=no
5809 fi
5810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5812 echo "${ECHO_T}$ac_header_compiler" >&6
5813
5814 # Is the header present?
5815 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5816 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5817 cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h.  */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h.  */
5823 #include <linux/version.h>
5824 _ACEOF
5825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5827   ac_status=$?
5828   grep -v '^ *+' conftest.er1 >conftest.err
5829   rm -f conftest.er1
5830   cat conftest.err >&5
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); } >/dev/null; then
5833   if test -s conftest.err; then
5834     ac_cpp_err=$ac_c_preproc_warn_flag
5835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5836   else
5837     ac_cpp_err=
5838   fi
5839 else
5840   ac_cpp_err=yes
5841 fi
5842 if test -z "$ac_cpp_err"; then
5843   ac_header_preproc=yes
5844 else
5845   echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5847
5848   ac_header_preproc=no
5849 fi
5850 rm -f conftest.err conftest.$ac_ext
5851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5852 echo "${ECHO_T}$ac_header_preproc" >&6
5853
5854 # So?  What about this header?
5855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5856   yes:no: )
5857     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5858 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5859     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5860 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5861     ac_header_preproc=yes
5862     ;;
5863   no:yes:* )
5864     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5865 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5866     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
5867 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
5868     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5869 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5870     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
5871 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5872     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5873 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5874     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5875 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5876     (
5877       cat <<\_ASBOX
5878 ## ------------------------------------------ ##
5879 ## Report this to the AC_PACKAGE_NAME lists.  ##
5880 ## ------------------------------------------ ##
5881 _ASBOX
5882     ) |
5883       sed "s/^/$as_me: WARNING:     /" >&2
5884     ;;
5885 esac
5886 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5887 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5888 if test "${ac_cv_header_linux_version_h+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   ac_cv_header_linux_version_h=$ac_header_preproc
5892 fi
5893 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5894 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5895
5896 fi
5897 if test $ac_cv_header_linux_version_h = yes; then
5898   msgformat=linux
5899 else
5900   msgformat=xopen
5901 fi
5902
5903
5904
5905                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5906       fi
5907             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5908          $srcdir/po2tbl.sed.in > po2tbl.sed
5909    fi
5910
5911             if test "$PACKAGE" = "gettext"; then
5912      GT_NO="#NO#"
5913      GT_YES=
5914    else
5915      GT_NO=
5916      GT_YES="#YES#"
5917    fi
5918
5919
5920
5921    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5922
5923
5924       l=
5925
5926
5927             if test -f $srcdir/po/POTFILES.in; then
5928       test -d po || mkdir po
5929       if test "x$srcdir" != "x."; then
5930          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5931             posrcprefix="$srcdir/"
5932          else
5933             posrcprefix="../$srcdir/"
5934          fi
5935       else
5936          posrcprefix="../"
5937       fi
5938       rm -f po/POTFILES
5939       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5940          < $srcdir/po/POTFILES.in > po/POTFILES
5941    fi
5942
5943
5944 localedir='${datadir}/locale'
5945
5946
5947 if test "x$POSUB" != x; then
5948
5949     echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5950 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5951   # Look for .po and .gmo files in the source directory.
5952   CATALOGS=
5953   XLINGUAS=
5954   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5955     # If there aren't any .gmo files the shell will give us the
5956     # literal string "../path/to/srcdir/po/*.gmo" which has to be
5957     # weeded out.
5958     case "$cat" in *\**)
5959       continue;;
5960     esac
5961     # The quadruple backslash is collapsed to a double backslash
5962     # by the backticks, then collapsed again by the double quotes,
5963     # leaving us with one backslash in the sed expression (right
5964     # before the dot that mustn't act as a wildcard).
5965     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5966     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5967     # The user is allowed to set LINGUAS to a list of languages to
5968     # install catalogs for.  If it's empty that means "all of them."
5969     if test "x$LINGUAS" = x; then
5970       CATALOGS="$CATALOGS $cat"
5971       XLINGUAS="$XLINGUAS $lang"
5972     else
5973       case "$LINGUAS" in *$lang*)
5974         CATALOGS="$CATALOGS $cat"
5975         XLINGUAS="$XLINGUAS $lang"
5976         ;;
5977       esac
5978     fi
5979   done
5980   LINGUAS="$XLINGUAS"
5981   echo "$as_me:$LINENO: result: $LINGUAS" >&5
5982 echo "${ECHO_T}$LINGUAS" >&6
5983
5984    CONFIG_ALL="$CONFIG_ALL all-po"
5985    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5986    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5987    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5988 fi
5989
5990 PACKAGE=gdb
5991
5992 cat >>confdefs.h <<_ACEOF
5993 #define PACKAGE "$PACKAGE"
5994 _ACEOF
5995
5996
5997
5998 debugdir=${libdir}/debug
5999
6000
6001 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6002 if test "${with_separate_debug_dir+set}" = set; then
6003   withval="$with_separate_debug_dir"
6004   debugdir="${withval}"
6005 fi;
6006
6007
6008   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6009   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6010   ac_define_dir=`eval echo $debugdir`
6011   ac_define_dir=`eval echo $ac_define_dir`
6012
6013 cat >>confdefs.h <<_ACEOF
6014 #define DEBUGDIR "$ac_define_dir"
6015 _ACEOF
6016
6017
6018 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6019
6020
6021
6022 subdirs="$subdirs doc testsuite"
6023
6024
6025 . $srcdir/configure.host
6026
6027 . $srcdir/configure.tgt
6028
6029 # Fetch the default architecture and default target vector from BFD.
6030 targ=$target; . $srcdir/../bfd/config.bfd
6031
6032 # We only want the first architecture, so strip off the others if
6033 # there is more than one.
6034 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6035
6036 if test "x$targ_archs" != x; then
6037
6038 cat >>confdefs.h <<_ACEOF
6039 #define DEFAULT_BFD_ARCH $targ_archs
6040 _ACEOF
6041
6042 fi
6043 if test "x$targ_defvec" != x; then
6044
6045 cat >>confdefs.h <<_ACEOF
6046 #define DEFAULT_BFD_VEC $targ_defvec
6047 _ACEOF
6048
6049 fi
6050
6051 test "$program_prefix" != NONE &&
6052   program_transform_name="s,^,$program_prefix,;$program_transform_name"
6053 # Use a double $ so make ignores it.
6054 test "$program_suffix" != NONE &&
6055   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6056 # Double any \ or $.  echo might interpret backslashes.
6057 # By default was `s,x,x', remove it if useless.
6058 cat <<\_ACEOF >conftest.sed
6059 s/[\\$]/&&/g;s/;s,x,x,$//
6060 _ACEOF
6061 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6062 rm conftest.sed
6063
6064
6065 # The CLI cannot be disabled yet, but may be in the future.
6066
6067 # Enable CLI.
6068 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6069 if test "${enable_gdbcli+set}" = set; then
6070   enableval="$enable_gdbcli"
6071   case $enableval in
6072     yes)
6073       ;;
6074     no)
6075       { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6076 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6077    { (exit 1); exit 1; }; } ;;
6078     *)
6079       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6080 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6081    { (exit 1); exit 1; }; } ;;
6082   esac
6083 else
6084   enable_gdbcli=yes
6085 fi;
6086 if test x"$enable_gdbcli" = xyes; then
6087   if test -d $srcdir/cli; then
6088     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6089     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6090     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6091     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6092   fi
6093 fi
6094
6095 # Enable MI.
6096 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6097 if test "${enable_gdbmi+set}" = set; then
6098   enableval="$enable_gdbmi"
6099   case $enableval in
6100     yes | no)
6101       ;;
6102     *)
6103       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6104 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6105    { (exit 1); exit 1; }; } ;;
6106   esac
6107 else
6108   enable_gdbmi=yes
6109 fi;
6110 if test x"$enable_gdbmi" = xyes; then
6111   if test -d $srcdir/mi; then
6112     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6113     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6114     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6115     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6116   fi
6117 fi
6118
6119 # Enable TUI.
6120 # Check whether --enable-tui or --disable-tui was given.
6121 if test "${enable_tui+set}" = set; then
6122   enableval="$enable_tui"
6123   case $enableval in
6124     yes | no)
6125       ;;
6126     *)
6127       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6128 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6129    { (exit 1); exit 1; }; } ;;
6130   esac
6131 else
6132   enable_tui=yes
6133 fi;
6134
6135 # Enable gdbtk.
6136 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6137 if test "${enable_gdbtk+set}" = set; then
6138   enableval="$enable_gdbtk"
6139   case $enableval in
6140     yes | no)
6141       ;;
6142     *)
6143       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6144 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6145    { (exit 1); exit 1; }; } ;;
6146   esac
6147 else
6148   if test -d $srcdir/gdbtk; then
6149     enable_gdbtk=yes
6150   else
6151     enable_gdbtk=no
6152   fi
6153 fi;
6154 # We unconditionally disable gdbtk tests on selected platforms.
6155 case $host_os in
6156   go32* | windows*)
6157     { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6158 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6159     enable_gdbtk=no ;;
6160 esac
6161
6162 # Libunwind support.
6163
6164 # Check whether --with-libunwind or --without-libunwind was given.
6165 if test "${with_libunwind+set}" = set; then
6166   withval="$with_libunwind"
6167   case "${withval}" in
6168   yes)  enable_libunwind=yes ;;
6169   no)   enable_libunwind=no ;;
6170   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6171 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6172    { (exit 1); exit 1; }; } ;;
6173 esac
6174 else
6175
6176
6177 for ac_header in libunwind.h
6178 do
6179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6181   echo "$as_me:$LINENO: checking for $ac_header" >&5
6182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 fi
6186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6188 else
6189   # Is the header compilable?
6190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h.  */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h.  */
6198 $ac_includes_default
6199 #include <$ac_header>
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203   (eval $ac_compile) 2>conftest.er1
6204   ac_status=$?
6205   grep -v '^ *+' conftest.er1 >conftest.err
6206   rm -f conftest.er1
6207   cat conftest.err >&5
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); } &&
6210          { ac_try='test -z "$ac_c_werror_flag"
6211                          || test ! -s conftest.err'
6212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213   (eval $ac_try) 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; } &&
6217          { ac_try='test -s conftest.$ac_objext'
6218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219   (eval $ac_try) 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); }; }; then
6223   ac_header_compiler=yes
6224 else
6225   echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 ac_header_compiler=no
6229 fi
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6232 echo "${ECHO_T}$ac_header_compiler" >&6
6233
6234 # Is the header present?
6235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6237 cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h.  */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h.  */
6243 #include <$ac_header>
6244 _ACEOF
6245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6247   ac_status=$?
6248   grep -v '^ *+' conftest.er1 >conftest.err
6249   rm -f conftest.er1
6250   cat conftest.err >&5
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); } >/dev/null; then
6253   if test -s conftest.err; then
6254     ac_cpp_err=$ac_c_preproc_warn_flag
6255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6256   else
6257     ac_cpp_err=
6258   fi
6259 else
6260   ac_cpp_err=yes
6261 fi
6262 if test -z "$ac_cpp_err"; then
6263   ac_header_preproc=yes
6264 else
6265   echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6267
6268   ac_header_preproc=no
6269 fi
6270 rm -f conftest.err conftest.$ac_ext
6271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6272 echo "${ECHO_T}$ac_header_preproc" >&6
6273
6274 # So?  What about this header?
6275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6276   yes:no: )
6277     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6281     ac_header_preproc=yes
6282     ;;
6283   no:yes:* )
6284     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6286     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6287 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6288     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6290     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6291 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6294     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6296     (
6297       cat <<\_ASBOX
6298 ## ------------------------------------------ ##
6299 ## Report this to the AC_PACKAGE_NAME lists.  ##
6300 ## ------------------------------------------ ##
6301 _ASBOX
6302     ) |
6303       sed "s/^/$as_me: WARNING:     /" >&2
6304     ;;
6305 esac
6306 echo "$as_me:$LINENO: checking for $ac_header" >&5
6307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309   echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311   eval "$as_ac_Header=\$ac_header_preproc"
6312 fi
6313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6315
6316 fi
6317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6318   cat >>confdefs.h <<_ACEOF
6319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6320 _ACEOF
6321
6322 fi
6323
6324 done
6325
6326
6327 for ac_header in libunwind-ia64.h
6328 do
6329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6331   echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 fi
6336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6338 else
6339   # Is the header compilable?
6340 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h.  */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h.  */
6348 $ac_includes_default
6349 #include <$ac_header>
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353   (eval $ac_compile) 2>conftest.er1
6354   ac_status=$?
6355   grep -v '^ *+' conftest.er1 >conftest.err
6356   rm -f conftest.er1
6357   cat conftest.err >&5
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); } &&
6360          { ac_try='test -z "$ac_c_werror_flag"
6361                          || test ! -s conftest.err'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; } &&
6367          { ac_try='test -s conftest.$ac_objext'
6368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369   (eval $ac_try) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; }; then
6373   ac_header_compiler=yes
6374 else
6375   echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 ac_header_compiler=no
6379 fi
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6382 echo "${ECHO_T}$ac_header_compiler" >&6
6383
6384 # Is the header present?
6385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h.  */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h.  */
6393 #include <$ac_header>
6394 _ACEOF
6395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6397   ac_status=$?
6398   grep -v '^ *+' conftest.er1 >conftest.err
6399   rm -f conftest.er1
6400   cat conftest.err >&5
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); } >/dev/null; then
6403   if test -s conftest.err; then
6404     ac_cpp_err=$ac_c_preproc_warn_flag
6405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6406   else
6407     ac_cpp_err=
6408   fi
6409 else
6410   ac_cpp_err=yes
6411 fi
6412 if test -z "$ac_cpp_err"; then
6413   ac_header_preproc=yes
6414 else
6415   echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6417
6418   ac_header_preproc=no
6419 fi
6420 rm -f conftest.err conftest.$ac_ext
6421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6422 echo "${ECHO_T}$ac_header_preproc" >&6
6423
6424 # So?  What about this header?
6425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6426   yes:no: )
6427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6431     ac_header_preproc=yes
6432     ;;
6433   no:yes:* )
6434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6436     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6437 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6438     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6440     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6441 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6444     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6446     (
6447       cat <<\_ASBOX
6448 ## ------------------------------------------ ##
6449 ## Report this to the AC_PACKAGE_NAME lists.  ##
6450 ## ------------------------------------------ ##
6451 _ASBOX
6452     ) |
6453       sed "s/^/$as_me: WARNING:     /" >&2
6454     ;;
6455 esac
6456 echo "$as_me:$LINENO: checking for $ac_header" >&5
6457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   eval "$as_ac_Header=\$ac_header_preproc"
6462 fi
6463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6465
6466 fi
6467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6468   cat >>confdefs.h <<_ACEOF
6469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6470 _ACEOF
6471
6472 fi
6473
6474 done
6475
6476   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6477     enable_libunwind=yes;
6478   fi
6479
6480 fi;
6481
6482 if test x"$enable_libunwind" = xyes; then
6483
6484 for ac_header in libunwind.h
6485 do
6486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6488   echo "$as_me:$LINENO: checking for $ac_header" >&5
6489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 fi
6493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6495 else
6496   # Is the header compilable?
6497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6499 cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h.  */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h.  */
6505 $ac_includes_default
6506 #include <$ac_header>
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510   (eval $ac_compile) 2>conftest.er1
6511   ac_status=$?
6512   grep -v '^ *+' conftest.er1 >conftest.err
6513   rm -f conftest.er1
6514   cat conftest.err >&5
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } &&
6517          { ac_try='test -z "$ac_c_werror_flag"
6518                          || test ! -s conftest.err'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; } &&
6524          { ac_try='test -s conftest.$ac_objext'
6525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526   (eval $ac_try) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; }; then
6530   ac_header_compiler=yes
6531 else
6532   echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 ac_header_compiler=no
6536 fi
6537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6539 echo "${ECHO_T}$ac_header_compiler" >&6
6540
6541 # Is the header present?
6542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6544 cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h.  */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h.  */
6550 #include <$ac_header>
6551 _ACEOF
6552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6554   ac_status=$?
6555   grep -v '^ *+' conftest.er1 >conftest.err
6556   rm -f conftest.er1
6557   cat conftest.err >&5
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } >/dev/null; then
6560   if test -s conftest.err; then
6561     ac_cpp_err=$ac_c_preproc_warn_flag
6562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6563   else
6564     ac_cpp_err=
6565   fi
6566 else
6567   ac_cpp_err=yes
6568 fi
6569 if test -z "$ac_cpp_err"; then
6570   ac_header_preproc=yes
6571 else
6572   echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575   ac_header_preproc=no
6576 fi
6577 rm -f conftest.err conftest.$ac_ext
6578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6579 echo "${ECHO_T}$ac_header_preproc" >&6
6580
6581 # So?  What about this header?
6582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6583   yes:no: )
6584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6588     ac_header_preproc=yes
6589     ;;
6590   no:yes:* )
6591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6603     (
6604       cat <<\_ASBOX
6605 ## ------------------------------------------ ##
6606 ## Report this to the AC_PACKAGE_NAME lists.  ##
6607 ## ------------------------------------------ ##
6608 _ASBOX
6609     ) |
6610       sed "s/^/$as_me: WARNING:     /" >&2
6611     ;;
6612 esac
6613 echo "$as_me:$LINENO: checking for $ac_header" >&5
6614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   eval "$as_ac_Header=\$ac_header_preproc"
6619 fi
6620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6622
6623 fi
6624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6625   cat >>confdefs.h <<_ACEOF
6626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6627 _ACEOF
6628
6629 fi
6630
6631 done
6632
6633
6634 for ac_header in libunwind-ia64.h
6635 do
6636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6638   echo "$as_me:$LINENO: checking for $ac_header" >&5
6639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 fi
6643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6645 else
6646   # Is the header compilable?
6647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h.  */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h.  */
6655 $ac_includes_default
6656 #include <$ac_header>
6657 _ACEOF
6658 rm -f conftest.$ac_objext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660   (eval $ac_compile) 2>conftest.er1
6661   ac_status=$?
6662   grep -v '^ *+' conftest.er1 >conftest.err
6663   rm -f conftest.er1
6664   cat conftest.err >&5
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); } &&
6667          { ac_try='test -z "$ac_c_werror_flag"
6668                          || test ! -s conftest.err'
6669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670   (eval $ac_try) 2>&5
6671   ac_status=$?
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); }; } &&
6674          { ac_try='test -s conftest.$ac_objext'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; }; then
6680   ac_header_compiler=yes
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685 ac_header_compiler=no
6686 fi
6687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6689 echo "${ECHO_T}$ac_header_compiler" >&6
6690
6691 # Is the header present?
6692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h.  */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h.  */
6700 #include <$ac_header>
6701 _ACEOF
6702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6704   ac_status=$?
6705   grep -v '^ *+' conftest.er1 >conftest.err
6706   rm -f conftest.er1
6707   cat conftest.err >&5
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); } >/dev/null; then
6710   if test -s conftest.err; then
6711     ac_cpp_err=$ac_c_preproc_warn_flag
6712     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6713   else
6714     ac_cpp_err=
6715   fi
6716 else
6717   ac_cpp_err=yes
6718 fi
6719 if test -z "$ac_cpp_err"; then
6720   ac_header_preproc=yes
6721 else
6722   echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725   ac_header_preproc=no
6726 fi
6727 rm -f conftest.err conftest.$ac_ext
6728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6729 echo "${ECHO_T}$ac_header_preproc" >&6
6730
6731 # So?  What about this header?
6732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6733   yes:no: )
6734     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6738     ac_header_preproc=yes
6739     ;;
6740   no:yes:* )
6741     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6743     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6744 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6745     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6747     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6748 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6751     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6753     (
6754       cat <<\_ASBOX
6755 ## ------------------------------------------ ##
6756 ## Report this to the AC_PACKAGE_NAME lists.  ##
6757 ## ------------------------------------------ ##
6758 _ASBOX
6759     ) |
6760       sed "s/^/$as_me: WARNING:     /" >&2
6761     ;;
6762 esac
6763 echo "$as_me:$LINENO: checking for $ac_header" >&5
6764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   eval "$as_ac_Header=\$ac_header_preproc"
6769 fi
6770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6772
6773 fi
6774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6775   cat >>confdefs.h <<_ACEOF
6776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6777 _ACEOF
6778
6779 fi
6780
6781 done
6782
6783   cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_LIBUNWIND 1
6785 _ACEOF
6786
6787   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6788   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6789   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6790 fi
6791
6792 # Profiling support.
6793 # Check whether --enable-profiling or --disable-profiling was given.
6794 if test "${enable_profiling+set}" = set; then
6795   enableval="$enable_profiling"
6796   case $enableval in
6797     yes | no)
6798       ;;
6799     *)
6800       { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6801 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6802    { (exit 1); exit 1; }; } ;;
6803   esac
6804 else
6805   enable_profiling=no
6806 fi;
6807
6808
6809
6810 for ac_func in monstartup _mcleanup
6811 do
6812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6813 echo "$as_me:$LINENO: checking for $ac_func" >&5
6814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6815 if eval "test \"\${$as_ac_var+set}\" = set"; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h.  */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h.  */
6824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6826 #define $ac_func innocuous_$ac_func
6827
6828 /* System header to define __stub macros and hopefully few prototypes,
6829     which can conflict with char $ac_func (); below.
6830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6831     <limits.h> exists even on freestanding compilers.  */
6832
6833 #ifdef __STDC__
6834 # include <limits.h>
6835 #else
6836 # include <assert.h>
6837 #endif
6838
6839 #undef $ac_func
6840
6841 /* Override any gcc2 internal prototype to avoid an error.  */
6842 #ifdef __cplusplus
6843 extern "C"
6844 {
6845 #endif
6846 /* We use char because int might match the return type of a gcc2
6847    builtin and then its argument prototype would still apply.  */
6848 char $ac_func ();
6849 /* The GNU C library defines this for functions which it implements
6850     to always fail with ENOSYS.  Some functions are actually named
6851     something starting with __ and the normal name is an alias.  */
6852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6853 choke me
6854 #else
6855 char (*f) () = $ac_func;
6856 #endif
6857 #ifdef __cplusplus
6858 }
6859 #endif
6860
6861 int
6862 main ()
6863 {
6864 return f != $ac_func;
6865   ;
6866   return 0;
6867 }
6868 _ACEOF
6869 rm -f conftest.$ac_objext conftest$ac_exeext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6871   (eval $ac_link) 2>conftest.er1
6872   ac_status=$?
6873   grep -v '^ *+' conftest.er1 >conftest.err
6874   rm -f conftest.er1
6875   cat conftest.err >&5
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); } &&
6878          { ac_try='test -z "$ac_c_werror_flag"
6879                          || test ! -s conftest.err'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; } &&
6885          { ac_try='test -s conftest$ac_exeext'
6886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887   (eval $ac_try) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; }; then
6891   eval "$as_ac_var=yes"
6892 else
6893   echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 eval "$as_ac_var=no"
6897 fi
6898 rm -f conftest.err conftest.$ac_objext \
6899       conftest$ac_exeext conftest.$ac_ext
6900 fi
6901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6903 if test `eval echo '${'$as_ac_var'}'` = yes; then
6904   cat >>confdefs.h <<_ACEOF
6905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6906 _ACEOF
6907
6908 fi
6909 done
6910
6911 echo "$as_me:$LINENO: checking for _etext" >&5
6912 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6913 if test "${ac_cv_var__etext+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h.  */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h.  */
6922 #include <stdlib.h>
6923 extern char _etext;
6924
6925 int
6926 main ()
6927 {
6928 free (&_etext);
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935   (eval $ac_link) 2>conftest.er1
6936   ac_status=$?
6937   grep -v '^ *+' conftest.er1 >conftest.err
6938   rm -f conftest.er1
6939   cat conftest.err >&5
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); } &&
6942          { ac_try='test -z "$ac_c_werror_flag"
6943                          || test ! -s conftest.err'
6944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945   (eval $ac_try) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); }; } &&
6949          { ac_try='test -s conftest$ac_exeext'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; }; then
6955   ac_cv_var__etext=yes
6956 else
6957   echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 ac_cv_var__etext=no
6961 fi
6962 rm -f conftest.err conftest.$ac_objext \
6963       conftest$ac_exeext conftest.$ac_ext
6964 fi
6965 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6966 echo "${ECHO_T}$ac_cv_var__etext" >&6
6967 if test $ac_cv_var__etext = yes; then
6968
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE__ETEXT 1
6971 _ACEOF
6972
6973 fi
6974 if test "$enable_profiling" = yes ; then
6975   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6976     { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6977 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6978    { (exit 1); exit 1; }; }
6979   fi
6980   PROFILE_CFLAGS=-pg
6981   OLD_CFLAGS="$CFLAGS"
6982   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6983
6984   echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6985 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6986 if test "${ac_cv_cc_supports_pg+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h.  */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h.  */
6995
6996 int
6997 main ()
6998 {
6999 int x;
7000   ;
7001   return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006   (eval $ac_compile) 2>conftest.er1
7007   ac_status=$?
7008   grep -v '^ *+' conftest.er1 >conftest.err
7009   rm -f conftest.er1
7010   cat conftest.err >&5
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } &&
7013          { ac_try='test -z "$ac_c_werror_flag"
7014                          || test ! -s conftest.err'
7015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016   (eval $ac_try) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; } &&
7020          { ac_try='test -s conftest.$ac_objext'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; }; then
7026   ac_cv_cc_supports_pg=yes
7027 else
7028   echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 ac_cv_cc_supports_pg=no
7032 fi
7033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034 fi
7035 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7036 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
7037
7038   if test $ac_cv_cc_supports_pg = no; then
7039     { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7040 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7041    { (exit 1); exit 1; }; }
7042   fi
7043
7044   CFLAGS="$OLD_CFLAGS"
7045 fi
7046
7047 # --------------------- #
7048 # Checks for programs.  #
7049 # --------------------- #
7050
7051 for ac_prog in gawk mawk nawk awk
7052 do
7053   # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7057 if test "${ac_cv_prog_AWK+set}" = set; then
7058   echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060   if test -n "$AWK"; then
7061   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066   IFS=$as_save_IFS
7067   test -z "$as_dir" && as_dir=.
7068   for ac_exec_ext in '' $ac_executable_extensions; do
7069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070     ac_cv_prog_AWK="$ac_prog"
7071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072     break 2
7073   fi
7074 done
7075 done
7076
7077 fi
7078 fi
7079 AWK=$ac_cv_prog_AWK
7080 if test -n "$AWK"; then
7081   echo "$as_me:$LINENO: result: $AWK" >&5
7082 echo "${ECHO_T}$AWK" >&6
7083 else
7084   echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6
7086 fi
7087
7088   test -n "$AWK" && break
7089 done
7090
7091 # Find a good install program.  We prefer a C program (faster),
7092 # so one script is as good as another.  But avoid the broken or
7093 # incompatible versions:
7094 # SysV /etc/install, /usr/sbin/install
7095 # SunOS /usr/etc/install
7096 # IRIX /sbin/install
7097 # AIX /bin/install
7098 # AmigaOS /C/install, which installs bootblocks on floppy discs
7099 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7100 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7101 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7102 # OS/2's system install, which has a completely different semantic
7103 # ./install, which can be erroneously created by make from ./install.sh.
7104 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7105 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7106 if test -z "$INSTALL"; then
7107 if test "${ac_cv_path_install+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115   # Account for people who put trailing slashes in PATH elements.
7116 case $as_dir/ in
7117   ./ | .// | /cC/* | \
7118   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7119   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7120   /usr/ucb/* ) ;;
7121   *)
7122     # OSF1 and SCO ODT 3.0 have their own names for install.
7123     # Don't use installbsd from OSF since it installs stuff as root
7124     # by default.
7125     for ac_prog in ginstall scoinst install; do
7126       for ac_exec_ext in '' $ac_executable_extensions; do
7127         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7128           if test $ac_prog = install &&
7129             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7130             # AIX install.  It has an incompatible calling convention.
7131             :
7132           elif test $ac_prog = install &&
7133             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7134             # program-specific install script used by HP pwplus--don't use.
7135             :
7136           else
7137             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7138             break 3
7139           fi
7140         fi
7141       done
7142     done
7143     ;;
7144 esac
7145 done
7146
7147
7148 fi
7149   if test "${ac_cv_path_install+set}" = set; then
7150     INSTALL=$ac_cv_path_install
7151   else
7152     # As a last resort, use the slow shell script.  We don't cache a
7153     # path for INSTALL within a source directory, because that will
7154     # break other packages using the cache if that directory is
7155     # removed, or if the path is relative.
7156     INSTALL=$ac_install_sh
7157   fi
7158 fi
7159 echo "$as_me:$LINENO: result: $INSTALL" >&5
7160 echo "${ECHO_T}$INSTALL" >&6
7161
7162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7163 # It thinks the first close brace ends the variable substitution.
7164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7165
7166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7167
7168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7169
7170 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7171 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7172 LN_S=$as_ln_s
7173 if test "$LN_S" = "ln -s"; then
7174   echo "$as_me:$LINENO: result: yes" >&5
7175 echo "${ECHO_T}yes" >&6
7176 else
7177   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7178 echo "${ECHO_T}no, using $LN_S" >&6
7179 fi
7180
7181 if test -n "$ac_tool_prefix"; then
7182   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7184 echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186 if test "${ac_cv_prog_RANLIB+set}" = set; then
7187   echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189   if test -n "$RANLIB"; then
7190   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197   for ac_exec_ext in '' $ac_executable_extensions; do
7198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204 done
7205
7206 fi
7207 fi
7208 RANLIB=$ac_cv_prog_RANLIB
7209 if test -n "$RANLIB"; then
7210   echo "$as_me:$LINENO: result: $RANLIB" >&5
7211 echo "${ECHO_T}$RANLIB" >&6
7212 else
7213   echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7215 fi
7216
7217 fi
7218 if test -z "$ac_cv_prog_RANLIB"; then
7219   ac_ct_RANLIB=$RANLIB
7220   # Extract the first word of "ranlib", so it can be a program name with args.
7221 set dummy ranlib; ac_word=$2
7222 echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7224 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   if test -n "$ac_ct_RANLIB"; then
7228   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235   for ac_exec_ext in '' $ac_executable_extensions; do
7236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237     ac_cv_prog_ac_ct_RANLIB="ranlib"
7238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242 done
7243
7244   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7245 fi
7246 fi
7247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7248 if test -n "$ac_ct_RANLIB"; then
7249   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7250 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7251 else
7252   echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6
7254 fi
7255
7256   RANLIB=$ac_ct_RANLIB
7257 else
7258   RANLIB="$ac_cv_prog_RANLIB"
7259 fi
7260
7261 for ac_prog in 'bison -y' byacc
7262 do
7263   # Extract the first word of "$ac_prog", so it can be a program name with args.
7264 set dummy $ac_prog; ac_word=$2
7265 echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267 if test "${ac_cv_prog_YACC+set}" = set; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   if test -n "$YACC"; then
7271   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278   for ac_exec_ext in '' $ac_executable_extensions; do
7279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280     ac_cv_prog_YACC="$ac_prog"
7281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285 done
7286
7287 fi
7288 fi
7289 YACC=$ac_cv_prog_YACC
7290 if test -n "$YACC"; then
7291   echo "$as_me:$LINENO: result: $YACC" >&5
7292 echo "${ECHO_T}$YACC" >&6
7293 else
7294   echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6
7296 fi
7297
7298   test -n "$YACC" && break
7299 done
7300 test -n "$YACC" || YACC="yacc"
7301
7302
7303 if test -n "$ac_tool_prefix"; then
7304   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}ar; ac_word=$2
7306 echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_prog_AR+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   if test -n "$AR"; then
7312   ac_cv_prog_AR="$AR" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317   IFS=$as_save_IFS
7318   test -z "$as_dir" && as_dir=.
7319   for ac_exec_ext in '' $ac_executable_extensions; do
7320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321     ac_cv_prog_AR="${ac_tool_prefix}ar"
7322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326 done
7327
7328 fi
7329 fi
7330 AR=$ac_cv_prog_AR
7331 if test -n "$AR"; then
7332   echo "$as_me:$LINENO: result: $AR" >&5
7333 echo "${ECHO_T}$AR" >&6
7334 else
7335   echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6
7337 fi
7338
7339 fi
7340 if test -z "$ac_cv_prog_AR"; then
7341   ac_ct_AR=$AR
7342   # Extract the first word of "ar", so it can be a program name with args.
7343 set dummy ar; ac_word=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   if test -n "$ac_ct_AR"; then
7350   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357   for ac_exec_ext in '' $ac_executable_extensions; do
7358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359     ac_cv_prog_ac_ct_AR="ar"
7360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364 done
7365
7366 fi
7367 fi
7368 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7369 if test -n "$ac_ct_AR"; then
7370   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7371 echo "${ECHO_T}$ac_ct_AR" >&6
7372 else
7373   echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7375 fi
7376
7377   AR=$ac_ct_AR
7378 else
7379   AR="$ac_cv_prog_AR"
7380 fi
7381
7382 if test -n "$ac_tool_prefix"; then
7383   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7385 echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390   if test -n "$DLLTOOL"; then
7391   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398   for ac_exec_ext in '' $ac_executable_extensions; do
7399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405 done
7406
7407 fi
7408 fi
7409 DLLTOOL=$ac_cv_prog_DLLTOOL
7410 if test -n "$DLLTOOL"; then
7411   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7412 echo "${ECHO_T}$DLLTOOL" >&6
7413 else
7414   echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6
7416 fi
7417
7418 fi
7419 if test -z "$ac_cv_prog_DLLTOOL"; then
7420   ac_ct_DLLTOOL=$DLLTOOL
7421   # Extract the first word of "dlltool", so it can be a program name with args.
7422 set dummy dlltool; ac_word=$2
7423 echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   if test -n "$ac_ct_DLLTOOL"; then
7429   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436   for ac_exec_ext in '' $ac_executable_extensions; do
7437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443 done
7444
7445 fi
7446 fi
7447 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7448 if test -n "$ac_ct_DLLTOOL"; then
7449   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7450 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7451 else
7452   echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6
7454 fi
7455
7456   DLLTOOL=$ac_ct_DLLTOOL
7457 else
7458   DLLTOOL="$ac_cv_prog_DLLTOOL"
7459 fi
7460
7461 if test -n "$ac_tool_prefix"; then
7462   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}windres; ac_word=$2
7464 echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7466 if test "${ac_cv_prog_WINDRES+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   if test -n "$WINDRES"; then
7470   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477   for ac_exec_ext in '' $ac_executable_extensions; do
7478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484 done
7485
7486 fi
7487 fi
7488 WINDRES=$ac_cv_prog_WINDRES
7489 if test -n "$WINDRES"; then
7490   echo "$as_me:$LINENO: result: $WINDRES" >&5
7491 echo "${ECHO_T}$WINDRES" >&6
7492 else
7493   echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6
7495 fi
7496
7497 fi
7498 if test -z "$ac_cv_prog_WINDRES"; then
7499   ac_ct_WINDRES=$WINDRES
7500   # Extract the first word of "windres", so it can be a program name with args.
7501 set dummy windres; ac_word=$2
7502 echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   if test -n "$ac_ct_WINDRES"; then
7508   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515   for ac_exec_ext in '' $ac_executable_extensions; do
7516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517     ac_cv_prog_ac_ct_WINDRES="windres"
7518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522 done
7523
7524 fi
7525 fi
7526 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7527 if test -n "$ac_ct_WINDRES"; then
7528   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7529 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7530 else
7531   echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7533 fi
7534
7535   WINDRES=$ac_ct_WINDRES
7536 else
7537   WINDRES="$ac_cv_prog_WINDRES"
7538 fi
7539
7540
7541 # Needed for GNU/Hurd.
7542 if test -n "$ac_tool_prefix"; then
7543   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7544 set dummy ${ac_tool_prefix}mig; ac_word=$2
7545 echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547 if test "${ac_cv_prog_MIG+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   if test -n "$MIG"; then
7551   ac_cv_prog_MIG="$MIG" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560     ac_cv_prog_MIG="${ac_tool_prefix}mig"
7561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565 done
7566
7567 fi
7568 fi
7569 MIG=$ac_cv_prog_MIG
7570 if test -n "$MIG"; then
7571   echo "$as_me:$LINENO: result: $MIG" >&5
7572 echo "${ECHO_T}$MIG" >&6
7573 else
7574   echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7576 fi
7577
7578 fi
7579 if test -z "$ac_cv_prog_MIG"; then
7580   ac_ct_MIG=$MIG
7581   # Extract the first word of "mig", so it can be a program name with args.
7582 set dummy mig; ac_word=$2
7583 echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7585 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   if test -n "$ac_ct_MIG"; then
7589   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596   for ac_exec_ext in '' $ac_executable_extensions; do
7597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598     ac_cv_prog_ac_ct_MIG="mig"
7599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603 done
7604
7605 fi
7606 fi
7607 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7608 if test -n "$ac_ct_MIG"; then
7609   echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7610 echo "${ECHO_T}$ac_ct_MIG" >&6
7611 else
7612   echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6
7614 fi
7615
7616   MIG=$ac_ct_MIG
7617 else
7618   MIG="$ac_cv_prog_MIG"
7619 fi
7620
7621
7622 # ---------------------- #
7623 # Checks for libraries.  #
7624 # ---------------------- #
7625
7626 # We might need to link with -lm; most simulators need it.
7627
7628 echo "$as_me:$LINENO: checking for main in -lm" >&5
7629 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7630 if test "${ac_cv_lib_m_main+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633   ac_check_lib_save_LIBS=$LIBS
7634 LIBS="-lm  $LIBS"
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h.  */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h.  */
7641
7642
7643 int
7644 main ()
7645 {
7646 main ();
7647   ;
7648   return 0;
7649 }
7650 _ACEOF
7651 rm -f conftest.$ac_objext conftest$ac_exeext
7652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7653   (eval $ac_link) 2>conftest.er1
7654   ac_status=$?
7655   grep -v '^ *+' conftest.er1 >conftest.err
7656   rm -f conftest.er1
7657   cat conftest.err >&5
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } &&
7660          { ac_try='test -z "$ac_c_werror_flag"
7661                          || test ! -s conftest.err'
7662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663   (eval $ac_try) 2>&5
7664   ac_status=$?
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); }; } &&
7667          { ac_try='test -s conftest$ac_exeext'
7668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669   (eval $ac_try) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); }; }; then
7673   ac_cv_lib_m_main=yes
7674 else
7675   echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 ac_cv_lib_m_main=no
7679 fi
7680 rm -f conftest.err conftest.$ac_objext \
7681       conftest$ac_exeext conftest.$ac_ext
7682 LIBS=$ac_check_lib_save_LIBS
7683 fi
7684 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7685 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7686 if test $ac_cv_lib_m_main = yes; then
7687   cat >>confdefs.h <<_ACEOF
7688 #define HAVE_LIBM 1
7689 _ACEOF
7690
7691   LIBS="-lm $LIBS"
7692
7693 fi
7694
7695
7696 # We need to link with -lw to get `wctype' on Solaris before Solaris
7697 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
7698 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7699 # is known to have this problem).  Therefore we avoid libw if we can.
7700 echo "$as_me:$LINENO: checking for wctype" >&5
7701 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7702 if test "${ac_cv_func_wctype+set}" = set; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705   cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h.  */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h.  */
7711 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7713 #define wctype innocuous_wctype
7714
7715 /* System header to define __stub macros and hopefully few prototypes,
7716     which can conflict with char wctype (); below.
7717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7718     <limits.h> exists even on freestanding compilers.  */
7719
7720 #ifdef __STDC__
7721 # include <limits.h>
7722 #else
7723 # include <assert.h>
7724 #endif
7725
7726 #undef wctype
7727
7728 /* Override any gcc2 internal prototype to avoid an error.  */
7729 #ifdef __cplusplus
7730 extern "C"
7731 {
7732 #endif
7733 /* We use char because int might match the return type of a gcc2
7734    builtin and then its argument prototype would still apply.  */
7735 char wctype ();
7736 /* The GNU C library defines this for functions which it implements
7737     to always fail with ENOSYS.  Some functions are actually named
7738     something starting with __ and the normal name is an alias.  */
7739 #if defined (__stub_wctype) || defined (__stub___wctype)
7740 choke me
7741 #else
7742 char (*f) () = wctype;
7743 #endif
7744 #ifdef __cplusplus
7745 }
7746 #endif
7747
7748 int
7749 main ()
7750 {
7751 return f != wctype;
7752   ;
7753   return 0;
7754 }
7755 _ACEOF
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758   (eval $ac_link) 2>conftest.er1
7759   ac_status=$?
7760   grep -v '^ *+' conftest.er1 >conftest.err
7761   rm -f conftest.er1
7762   cat conftest.err >&5
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } &&
7765          { ac_try='test -z "$ac_c_werror_flag"
7766                          || test ! -s conftest.err'
7767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768   (eval $ac_try) 2>&5
7769   ac_status=$?
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); }; } &&
7772          { ac_try='test -s conftest$ac_exeext'
7773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774   (eval $ac_try) 2>&5
7775   ac_status=$?
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); }; }; then
7778   ac_cv_func_wctype=yes
7779 else
7780   echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 ac_cv_func_wctype=no
7784 fi
7785 rm -f conftest.err conftest.$ac_objext \
7786       conftest$ac_exeext conftest.$ac_ext
7787 fi
7788 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7789 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7790 if test $ac_cv_func_wctype = yes; then
7791   :
7792 else
7793
7794 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7795 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7796 if test "${ac_cv_lib_w_wctype+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   ac_check_lib_save_LIBS=$LIBS
7800 LIBS="-lw  $LIBS"
7801 cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h.  */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h.  */
7807
7808 /* Override any gcc2 internal prototype to avoid an error.  */
7809 #ifdef __cplusplus
7810 extern "C"
7811 #endif
7812 /* We use char because int might match the return type of a gcc2
7813    builtin and then its argument prototype would still apply.  */
7814 char wctype ();
7815 int
7816 main ()
7817 {
7818 wctype ();
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825   (eval $ac_link) 2>conftest.er1
7826   ac_status=$?
7827   grep -v '^ *+' conftest.er1 >conftest.err
7828   rm -f conftest.er1
7829   cat conftest.err >&5
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } &&
7832          { ac_try='test -z "$ac_c_werror_flag"
7833                          || test ! -s conftest.err'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; } &&
7839          { ac_try='test -s conftest$ac_exeext'
7840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841   (eval $ac_try) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); }; }; then
7845   ac_cv_lib_w_wctype=yes
7846 else
7847   echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7849
7850 ac_cv_lib_w_wctype=no
7851 fi
7852 rm -f conftest.err conftest.$ac_objext \
7853       conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS
7855 fi
7856 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7857 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7858 if test $ac_cv_lib_w_wctype = yes; then
7859   cat >>confdefs.h <<_ACEOF
7860 #define HAVE_LIBW 1
7861 _ACEOF
7862
7863   LIBS="-lw $LIBS"
7864
7865 fi
7866
7867 fi
7868
7869
7870 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7871 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7872 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7873 if test "${ac_cv_search_gethostbyname+set}" = set; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876   ac_func_search_save_LIBS=$LIBS
7877 ac_cv_search_gethostbyname=no
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884
7885 /* Override any gcc2 internal prototype to avoid an error.  */
7886 #ifdef __cplusplus
7887 extern "C"
7888 #endif
7889 /* We use char because int might match the return type of a gcc2
7890    builtin and then its argument prototype would still apply.  */
7891 char gethostbyname ();
7892 int
7893 main ()
7894 {
7895 gethostbyname ();
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902   (eval $ac_link) 2>conftest.er1
7903   ac_status=$?
7904   grep -v '^ *+' conftest.er1 >conftest.err
7905   rm -f conftest.er1
7906   cat conftest.err >&5
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } &&
7909          { ac_try='test -z "$ac_c_werror_flag"
7910                          || test ! -s conftest.err'
7911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912   (eval $ac_try) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; } &&
7916          { ac_try='test -s conftest$ac_exeext'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   ac_cv_search_gethostbyname="none required"
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927 fi
7928 rm -f conftest.err conftest.$ac_objext \
7929       conftest$ac_exeext conftest.$ac_ext
7930 if test "$ac_cv_search_gethostbyname" = no; then
7931   for ac_lib in nsl; do
7932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7933     cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h.  */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h.  */
7939
7940 /* Override any gcc2 internal prototype to avoid an error.  */
7941 #ifdef __cplusplus
7942 extern "C"
7943 #endif
7944 /* We use char because int might match the return type of a gcc2
7945    builtin and then its argument prototype would still apply.  */
7946 char gethostbyname ();
7947 int
7948 main ()
7949 {
7950 gethostbyname ();
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957   (eval $ac_link) 2>conftest.er1
7958   ac_status=$?
7959   grep -v '^ *+' conftest.er1 >conftest.err
7960   rm -f conftest.er1
7961   cat conftest.err >&5
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); } &&
7964          { ac_try='test -z "$ac_c_werror_flag"
7965                          || test ! -s conftest.err'
7966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967   (eval $ac_try) 2>&5
7968   ac_status=$?
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); }; } &&
7971          { ac_try='test -s conftest$ac_exeext'
7972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973   (eval $ac_try) 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); }; }; then
7977   ac_cv_search_gethostbyname="-l$ac_lib"
7978 break
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 fi
7984 rm -f conftest.err conftest.$ac_objext \
7985       conftest$ac_exeext conftest.$ac_ext
7986   done
7987 fi
7988 LIBS=$ac_func_search_save_LIBS
7989 fi
7990 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7991 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7992 if test "$ac_cv_search_gethostbyname" != no; then
7993   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7994
7995 fi
7996
7997
7998 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7999 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8000 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8001 if test "${ac_cv_search_socketpair+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   ac_func_search_save_LIBS=$LIBS
8005 ac_cv_search_socketpair=no
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012
8013 /* Override any gcc2 internal prototype to avoid an error.  */
8014 #ifdef __cplusplus
8015 extern "C"
8016 #endif
8017 /* We use char because int might match the return type of a gcc2
8018    builtin and then its argument prototype would still apply.  */
8019 char socketpair ();
8020 int
8021 main ()
8022 {
8023 socketpair ();
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030   (eval $ac_link) 2>conftest.er1
8031   ac_status=$?
8032   grep -v '^ *+' conftest.er1 >conftest.err
8033   rm -f conftest.er1
8034   cat conftest.err >&5
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } &&
8037          { ac_try='test -z "$ac_c_werror_flag"
8038                          || test ! -s conftest.err'
8039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040   (eval $ac_try) 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; } &&
8044          { ac_try='test -s conftest$ac_exeext'
8045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046   (eval $ac_try) 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; }; then
8050   ac_cv_search_socketpair="none required"
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055 fi
8056 rm -f conftest.err conftest.$ac_objext \
8057       conftest$ac_exeext conftest.$ac_ext
8058 if test "$ac_cv_search_socketpair" = no; then
8059   for ac_lib in socket; do
8060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8061     cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h.  */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h.  */
8067
8068 /* Override any gcc2 internal prototype to avoid an error.  */
8069 #ifdef __cplusplus
8070 extern "C"
8071 #endif
8072 /* We use char because int might match the return type of a gcc2
8073    builtin and then its argument prototype would still apply.  */
8074 char socketpair ();
8075 int
8076 main ()
8077 {
8078 socketpair ();
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085   (eval $ac_link) 2>conftest.er1
8086   ac_status=$?
8087   grep -v '^ *+' conftest.er1 >conftest.err
8088   rm -f conftest.er1
8089   cat conftest.err >&5
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } &&
8092          { ac_try='test -z "$ac_c_werror_flag"
8093                          || test ! -s conftest.err'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; } &&
8099          { ac_try='test -s conftest$ac_exeext'
8100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101   (eval $ac_try) 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; }; then
8105   ac_cv_search_socketpair="-l$ac_lib"
8106 break
8107 else
8108   echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 fi
8112 rm -f conftest.err conftest.$ac_objext \
8113       conftest$ac_exeext conftest.$ac_ext
8114   done
8115 fi
8116 LIBS=$ac_func_search_save_LIBS
8117 fi
8118 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8119 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8120 if test "$ac_cv_search_socketpair" != no; then
8121   test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8122
8123 fi
8124
8125
8126 # For the TUI, we need enhanced curses functionality.
8127 #
8128 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8129 # curses library because the latter might not provide all the
8130 # functionality we need.  However, this leads to problems on systems
8131 # where the linker searches /usr/local/lib, but the compiler doesn't
8132 # search /usr/local/include, if ncurses is installed in /usr/local.  A
8133 # default installation of ncurses on alpha*-dec-osf* will lead to such
8134 # a situation.
8135 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8136 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8137 if test "${ac_cv_search_waddstr+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   ac_func_search_save_LIBS=$LIBS
8141 ac_cv_search_waddstr=no
8142 cat >conftest.$ac_ext <<_ACEOF
8143 /* confdefs.h.  */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h.  */
8148
8149 /* Override any gcc2 internal prototype to avoid an error.  */
8150 #ifdef __cplusplus
8151 extern "C"
8152 #endif
8153 /* We use char because int might match the return type of a gcc2
8154    builtin and then its argument prototype would still apply.  */
8155 char waddstr ();
8156 int
8157 main ()
8158 {
8159 waddstr ();
8160   ;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166   (eval $ac_link) 2>conftest.er1
8167   ac_status=$?
8168   grep -v '^ *+' conftest.er1 >conftest.err
8169   rm -f conftest.er1
8170   cat conftest.err >&5
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); } &&
8173          { ac_try='test -z "$ac_c_werror_flag"
8174                          || test ! -s conftest.err'
8175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176   (eval $ac_try) 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); }; } &&
8180          { ac_try='test -s conftest$ac_exeext'
8181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182   (eval $ac_try) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }; }; then
8186   ac_cv_search_waddstr="none required"
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 fi
8192 rm -f conftest.err conftest.$ac_objext \
8193       conftest$ac_exeext conftest.$ac_ext
8194 if test "$ac_cv_search_waddstr" = no; then
8195   for ac_lib in ncurses cursesX curses; do
8196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8197     cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203
8204 /* Override any gcc2 internal prototype to avoid an error.  */
8205 #ifdef __cplusplus
8206 extern "C"
8207 #endif
8208 /* We use char because int might match the return type of a gcc2
8209    builtin and then its argument prototype would still apply.  */
8210 char waddstr ();
8211 int
8212 main ()
8213 {
8214 waddstr ();
8215   ;
8216   return 0;
8217 }
8218 _ACEOF
8219 rm -f conftest.$ac_objext conftest$ac_exeext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221   (eval $ac_link) 2>conftest.er1
8222   ac_status=$?
8223   grep -v '^ *+' conftest.er1 >conftest.err
8224   rm -f conftest.er1
8225   cat conftest.err >&5
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); } &&
8228          { ac_try='test -z "$ac_c_werror_flag"
8229                          || test ! -s conftest.err'
8230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231   (eval $ac_try) 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; } &&
8235          { ac_try='test -s conftest$ac_exeext'
8236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237   (eval $ac_try) 2>&5
8238   ac_status=$?
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); }; }; then
8241   ac_cv_search_waddstr="-l$ac_lib"
8242 break
8243 else
8244   echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247 fi
8248 rm -f conftest.err conftest.$ac_objext \
8249       conftest$ac_exeext conftest.$ac_ext
8250   done
8251 fi
8252 LIBS=$ac_func_search_save_LIBS
8253 fi
8254 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8255 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8256 if test "$ac_cv_search_waddstr" != no; then
8257   test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8258
8259 fi
8260
8261
8262 # Since GDB uses Readline, we need termcap functionality.  In many
8263 # cases this will be provided by the curses library, but some systems
8264 # have a seperate termcap library, or no curses library at all.
8265
8266 case $host_os in
8267   cygwin*)
8268     if test -d $srcdir/libtermcap; then
8269       LIBS="../libtermcap/libtermcap.a $LIBS"
8270       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8271     fi ;;
8272   go32* | *djgpp*)
8273     ac_cv_search_tgetent="none required"
8274     ;;
8275 esac
8276
8277 # These are the libraries checked by Readline.
8278 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8279 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8280 if test "${ac_cv_search_tgetent+set}" = set; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   ac_func_search_save_LIBS=$LIBS
8284 ac_cv_search_tgetent=no
8285 cat >conftest.$ac_ext <<_ACEOF
8286 /* confdefs.h.  */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h.  */
8291
8292 /* Override any gcc2 internal prototype to avoid an error.  */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297    builtin and then its argument prototype would still apply.  */
8298 char tgetent ();
8299 int
8300 main ()
8301 {
8302 tgetent ();
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309   (eval $ac_link) 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } &&
8316          { ac_try='test -z "$ac_c_werror_flag"
8317                          || test ! -s conftest.err'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; } &&
8323          { ac_try='test -s conftest$ac_exeext'
8324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325   (eval $ac_try) 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); }; }; then
8329   ac_cv_search_tgetent="none required"
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8333
8334 fi
8335 rm -f conftest.err conftest.$ac_objext \
8336       conftest$ac_exeext conftest.$ac_ext
8337 if test "$ac_cv_search_tgetent" = no; then
8338   for ac_lib in termcap tinfo curses ncurses; do
8339     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8340     cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346
8347 /* Override any gcc2 internal prototype to avoid an error.  */
8348 #ifdef __cplusplus
8349 extern "C"
8350 #endif
8351 /* We use char because int might match the return type of a gcc2
8352    builtin and then its argument prototype would still apply.  */
8353 char tgetent ();
8354 int
8355 main ()
8356 {
8357 tgetent ();
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 rm -f conftest.$ac_objext conftest$ac_exeext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8364   (eval $ac_link) 2>conftest.er1
8365   ac_status=$?
8366   grep -v '^ *+' conftest.er1 >conftest.err
8367   rm -f conftest.er1
8368   cat conftest.err >&5
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -z "$ac_c_werror_flag"
8372                          || test ! -s conftest.err'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; } &&
8378          { ac_try='test -s conftest$ac_exeext'
8379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380   (eval $ac_try) 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; }; then
8384   ac_cv_search_tgetent="-l$ac_lib"
8385 break
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 fi
8391 rm -f conftest.err conftest.$ac_objext \
8392       conftest$ac_exeext conftest.$ac_ext
8393   done
8394 fi
8395 LIBS=$ac_func_search_save_LIBS
8396 fi
8397 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8398 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8399 if test "$ac_cv_search_tgetent" != no; then
8400   test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8401
8402 fi
8403
8404
8405 if test "$ac_cv_search_tgetent" = no; then
8406   { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8407 echo "$as_me: error: no termcap library found" >&2;}
8408    { (exit 1); exit 1; }; }
8409 fi
8410
8411 # ------------------------- #
8412 # Checks for header files.  #
8413 # ------------------------- #
8414
8415
8416
8417
8418
8419
8420 ac_header_dirent=no
8421 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8422   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8423 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8424 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428   cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434 #include <sys/types.h>
8435 #include <$ac_hdr>
8436
8437 int
8438 main ()
8439 {
8440 if ((DIR *) 0)
8441 return 0;
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448   (eval $ac_compile) 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } &&
8455          { ac_try='test -z "$ac_c_werror_flag"
8456                          || test ! -s conftest.err'
8457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458   (eval $ac_try) 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; } &&
8462          { ac_try='test -s conftest.$ac_objext'
8463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464   (eval $ac_try) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; }; then
8468   eval "$as_ac_Header=yes"
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473 eval "$as_ac_Header=no"
8474 fi
8475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8476 fi
8477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8480   cat >>confdefs.h <<_ACEOF
8481 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8482 _ACEOF
8483
8484 ac_header_dirent=$ac_hdr; break
8485 fi
8486
8487 done
8488 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8489 if test $ac_header_dirent = dirent.h; then
8490   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8491 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8492 if test "${ac_cv_search_opendir+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   ac_func_search_save_LIBS=$LIBS
8496 ac_cv_search_opendir=no
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503
8504 /* Override any gcc2 internal prototype to avoid an error.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 /* We use char because int might match the return type of a gcc2
8509    builtin and then its argument prototype would still apply.  */
8510 char opendir ();
8511 int
8512 main ()
8513 {
8514 opendir ();
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521   (eval $ac_link) 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -z "$ac_c_werror_flag"
8529                          || test ! -s conftest.err'
8530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531   (eval $ac_try) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; } &&
8535          { ac_try='test -s conftest$ac_exeext'
8536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537   (eval $ac_try) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); }; }; then
8541   ac_cv_search_opendir="none required"
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 fi
8547 rm -f conftest.err conftest.$ac_objext \
8548       conftest$ac_exeext conftest.$ac_ext
8549 if test "$ac_cv_search_opendir" = no; then
8550   for ac_lib in dir; do
8551     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8552     cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h.  */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h.  */
8558
8559 /* Override any gcc2 internal prototype to avoid an error.  */
8560 #ifdef __cplusplus
8561 extern "C"
8562 #endif
8563 /* We use char because int might match the return type of a gcc2
8564    builtin and then its argument prototype would still apply.  */
8565 char opendir ();
8566 int
8567 main ()
8568 {
8569 opendir ();
8570   ;
8571   return 0;
8572 }
8573 _ACEOF
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576   (eval $ac_link) 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } &&
8583          { ac_try='test -z "$ac_c_werror_flag"
8584                          || test ! -s conftest.err'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; } &&
8590          { ac_try='test -s conftest$ac_exeext'
8591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592   (eval $ac_try) 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); }; }; then
8596   ac_cv_search_opendir="-l$ac_lib"
8597 break
8598 else
8599   echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 fi
8603 rm -f conftest.err conftest.$ac_objext \
8604       conftest$ac_exeext conftest.$ac_ext
8605   done
8606 fi
8607 LIBS=$ac_func_search_save_LIBS
8608 fi
8609 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8610 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8611 if test "$ac_cv_search_opendir" != no; then
8612   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8613
8614 fi
8615
8616 else
8617   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8618 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8619 if test "${ac_cv_search_opendir+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   ac_func_search_save_LIBS=$LIBS
8623 ac_cv_search_opendir=no
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630
8631 /* Override any gcc2 internal prototype to avoid an error.  */
8632 #ifdef __cplusplus
8633 extern "C"
8634 #endif
8635 /* We use char because int might match the return type of a gcc2
8636    builtin and then its argument prototype would still apply.  */
8637 char opendir ();
8638 int
8639 main ()
8640 {
8641 opendir ();
8642   ;
8643   return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648   (eval $ac_link) 2>conftest.er1
8649   ac_status=$?
8650   grep -v '^ *+' conftest.er1 >conftest.err
8651   rm -f conftest.er1
8652   cat conftest.err >&5
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); } &&
8655          { ac_try='test -z "$ac_c_werror_flag"
8656                          || test ! -s conftest.err'
8657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658   (eval $ac_try) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; } &&
8662          { ac_try='test -s conftest$ac_exeext'
8663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664   (eval $ac_try) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; }; then
8668   ac_cv_search_opendir="none required"
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 fi
8674 rm -f conftest.err conftest.$ac_objext \
8675       conftest$ac_exeext conftest.$ac_ext
8676 if test "$ac_cv_search_opendir" = no; then
8677   for ac_lib in x; do
8678     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8679     cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h.  */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h.  */
8685
8686 /* Override any gcc2 internal prototype to avoid an error.  */
8687 #ifdef __cplusplus
8688 extern "C"
8689 #endif
8690 /* We use char because int might match the return type of a gcc2
8691    builtin and then its argument prototype would still apply.  */
8692 char opendir ();
8693 int
8694 main ()
8695 {
8696 opendir ();
8697   ;
8698   return 0;
8699 }
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703   (eval $ac_link) 2>conftest.er1
8704   ac_status=$?
8705   grep -v '^ *+' conftest.er1 >conftest.err
8706   rm -f conftest.er1
8707   cat conftest.err >&5
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); } &&
8710          { ac_try='test -z "$ac_c_werror_flag"
8711                          || test ! -s conftest.err'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; } &&
8717          { ac_try='test -s conftest$ac_exeext'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; }; then
8723   ac_cv_search_opendir="-l$ac_lib"
8724 break
8725 else
8726   echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8728
8729 fi
8730 rm -f conftest.err conftest.$ac_objext \
8731       conftest$ac_exeext conftest.$ac_ext
8732   done
8733 fi
8734 LIBS=$ac_func_search_save_LIBS
8735 fi
8736 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8737 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8738 if test "$ac_cv_search_opendir" != no; then
8739   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8740
8741 fi
8742
8743 fi
8744
8745 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8746 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8747 if test "${ac_cv_header_stat_broken+set}" = set; then
8748   echo $ECHO_N "(cached) $ECHO_C" >&6
8749 else
8750   cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h.  */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h.  */
8756 #include <sys/types.h>
8757 #include <sys/stat.h>
8758
8759 #if defined(S_ISBLK) && defined(S_IFDIR)
8760 # if S_ISBLK (S_IFDIR)
8761 You lose.
8762 # endif
8763 #endif
8764
8765 #if defined(S_ISBLK) && defined(S_IFCHR)
8766 # if S_ISBLK (S_IFCHR)
8767 You lose.
8768 # endif
8769 #endif
8770
8771 #if defined(S_ISLNK) && defined(S_IFREG)
8772 # if S_ISLNK (S_IFREG)
8773 You lose.
8774 # endif
8775 #endif
8776
8777 #if defined(S_ISSOCK) && defined(S_IFREG)
8778 # if S_ISSOCK (S_IFREG)
8779 You lose.
8780 # endif
8781 #endif
8782
8783 _ACEOF
8784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8785   $EGREP "You lose" >/dev/null 2>&1; then
8786   ac_cv_header_stat_broken=yes
8787 else
8788   ac_cv_header_stat_broken=no
8789 fi
8790 rm -f conftest*
8791
8792 fi
8793 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8794 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8795 if test $ac_cv_header_stat_broken = yes; then
8796
8797 cat >>confdefs.h <<\_ACEOF
8798 #define STAT_MACROS_BROKEN 1
8799 _ACEOF
8800
8801 fi
8802
8803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8805 if test "${ac_cv_header_stdc+set}" = set; then
8806   echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808   cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814 #include <stdlib.h>
8815 #include <stdarg.h>
8816 #include <string.h>
8817 #include <float.h>
8818
8819 int
8820 main ()
8821 {
8822
8823   ;
8824   return 0;
8825 }
8826 _ACEOF
8827 rm -f conftest.$ac_objext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829   (eval $ac_compile) 2>conftest.er1
8830   ac_status=$?
8831   grep -v '^ *+' conftest.er1 >conftest.err
8832   rm -f conftest.er1
8833   cat conftest.err >&5
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); } &&
8836          { ac_try='test -z "$ac_c_werror_flag"
8837                          || test ! -s conftest.err'
8838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839   (eval $ac_try) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); }; } &&
8843          { ac_try='test -s conftest.$ac_objext'
8844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845   (eval $ac_try) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; }; then
8849   ac_cv_header_stdc=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 ac_cv_header_stdc=no
8855 fi
8856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8857
8858 if test $ac_cv_header_stdc = yes; then
8859   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8860   cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866 #include <string.h>
8867
8868 _ACEOF
8869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8870   $EGREP "memchr" >/dev/null 2>&1; then
8871   :
8872 else
8873   ac_cv_header_stdc=no
8874 fi
8875 rm -f conftest*
8876
8877 fi
8878
8879 if test $ac_cv_header_stdc = yes; then
8880   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8881   cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887 #include <stdlib.h>
8888
8889 _ACEOF
8890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8891   $EGREP "free" >/dev/null 2>&1; then
8892   :
8893 else
8894   ac_cv_header_stdc=no
8895 fi
8896 rm -f conftest*
8897
8898 fi
8899
8900 if test $ac_cv_header_stdc = yes; then
8901   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8902   if test "$cross_compiling" = yes; then
8903   :
8904 else
8905   cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911 #include <ctype.h>
8912 #if ((' ' & 0x0FF) == 0x020)
8913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8915 #else
8916 # define ISLOWER(c) \
8917                    (('a' <= (c) && (c) <= 'i') \
8918                      || ('j' <= (c) && (c) <= 'r') \
8919                      || ('s' <= (c) && (c) <= 'z'))
8920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8921 #endif
8922
8923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8924 int
8925 main ()
8926 {
8927   int i;
8928   for (i = 0; i < 256; i++)
8929     if (XOR (islower (i), ISLOWER (i))
8930         || toupper (i) != TOUPPER (i))
8931       exit(2);
8932   exit (0);
8933 }
8934 _ACEOF
8935 rm -f conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937   (eval $ac_link) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942   (eval $ac_try) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; }; then
8946   :
8947 else
8948   echo "$as_me: program exited with status $ac_status" >&5
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 ( exit $ac_status )
8953 ac_cv_header_stdc=no
8954 fi
8955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8956 fi
8957 fi
8958 fi
8959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8961 if test $ac_cv_header_stdc = yes; then
8962
8963 cat >>confdefs.h <<\_ACEOF
8964 #define STDC_HEADERS 1
8965 _ACEOF
8966
8967 fi
8968
8969
8970 for ac_header in nlist.h
8971 do
8972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8974   echo "$as_me:$LINENO: checking for $ac_header" >&5
8975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 fi
8979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8981 else
8982   # Is the header compilable?
8983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8985 cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h.  */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h.  */
8991 $ac_includes_default
8992 #include <$ac_header>
8993 _ACEOF
8994 rm -f conftest.$ac_objext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8996   (eval $ac_compile) 2>conftest.er1
8997   ac_status=$?
8998   grep -v '^ *+' conftest.er1 >conftest.err
8999   rm -f conftest.er1
9000   cat conftest.err >&5
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } &&
9003          { ac_try='test -z "$ac_c_werror_flag"
9004                          || test ! -s conftest.err'
9005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006   (eval $ac_try) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); }; } &&
9010          { ac_try='test -s conftest.$ac_objext'
9011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012   (eval $ac_try) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); }; }; then
9016   ac_header_compiler=yes
9017 else
9018   echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 ac_header_compiler=no
9022 fi
9023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9025 echo "${ECHO_T}$ac_header_compiler" >&6
9026
9027 # Is the header present?
9028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h.  */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h.  */
9036 #include <$ac_header>
9037 _ACEOF
9038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } >/dev/null; then
9046   if test -s conftest.err; then
9047     ac_cpp_err=$ac_c_preproc_warn_flag
9048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9049   else
9050     ac_cpp_err=
9051   fi
9052 else
9053   ac_cpp_err=yes
9054 fi
9055 if test -z "$ac_cpp_err"; then
9056   ac_header_preproc=yes
9057 else
9058   echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9060
9061   ac_header_preproc=no
9062 fi
9063 rm -f conftest.err conftest.$ac_ext
9064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9065 echo "${ECHO_T}$ac_header_preproc" >&6
9066
9067 # So?  What about this header?
9068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9069   yes:no: )
9070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9074     ac_header_preproc=yes
9075     ;;
9076   no:yes:* )
9077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9089     (
9090       cat <<\_ASBOX
9091 ## ------------------------------------------ ##
9092 ## Report this to the AC_PACKAGE_NAME lists.  ##
9093 ## ------------------------------------------ ##
9094 _ASBOX
9095     ) |
9096       sed "s/^/$as_me: WARNING:     /" >&2
9097     ;;
9098 esac
9099 echo "$as_me:$LINENO: checking for $ac_header" >&5
9100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104   eval "$as_ac_Header=\$ac_header_preproc"
9105 fi
9106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9108
9109 fi
9110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9111   cat >>confdefs.h <<_ACEOF
9112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9113 _ACEOF
9114
9115 fi
9116
9117 done
9118
9119
9120 for ac_header in link.h
9121 do
9122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9123 echo "$as_me:$LINENO: checking for $ac_header" >&5
9124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9126   echo $ECHO_N "(cached) $ECHO_C" >&6
9127 else
9128   cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h.  */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h.  */
9134 #if HAVE_SYS_TYPES_H
9135 # include <sys/types.h>
9136 #endif
9137 #if HAVE_NLIST_H
9138 # include <nlist.h>
9139 #endif
9140
9141
9142 #include <$ac_header>
9143 _ACEOF
9144 rm -f conftest.$ac_objext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9146   (eval $ac_compile) 2>conftest.er1
9147   ac_status=$?
9148   grep -v '^ *+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } &&
9153          { ac_try='test -z "$ac_c_werror_flag"
9154                          || test ! -s conftest.err'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; } &&
9160          { ac_try='test -s conftest.$ac_objext'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   eval "$as_ac_Header=yes"
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 eval "$as_ac_Header=no"
9172 fi
9173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9174 fi
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9178   cat >>confdefs.h <<_ACEOF
9179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180 _ACEOF
9181
9182 fi
9183
9184 done
9185
9186
9187 for ac_header in machine/reg.h
9188 do
9189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191   echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 fi
9196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9198 else
9199   # Is the header compilable?
9200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208 $ac_includes_default
9209 #include <$ac_header>
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213   (eval $ac_compile) 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -z "$ac_c_werror_flag"
9221                          || test ! -s conftest.err'
9222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; }; then
9233   ac_header_compiler=yes
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_header_compiler=no
9239 fi
9240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9242 echo "${ECHO_T}$ac_header_compiler" >&6
9243
9244 # Is the header present?
9245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9247 cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h.  */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h.  */
9253 #include <$ac_header>
9254 _ACEOF
9255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9257   ac_status=$?
9258   grep -v '^ *+' conftest.er1 >conftest.err
9259   rm -f conftest.er1
9260   cat conftest.err >&5
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } >/dev/null; then
9263   if test -s conftest.err; then
9264     ac_cpp_err=$ac_c_preproc_warn_flag
9265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9266   else
9267     ac_cpp_err=
9268   fi
9269 else
9270   ac_cpp_err=yes
9271 fi
9272 if test -z "$ac_cpp_err"; then
9273   ac_header_preproc=yes
9274 else
9275   echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278   ac_header_preproc=no
9279 fi
9280 rm -f conftest.err conftest.$ac_ext
9281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9282 echo "${ECHO_T}$ac_header_preproc" >&6
9283
9284 # So?  What about this header?
9285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9286   yes:no: )
9287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9291     ac_header_preproc=yes
9292     ;;
9293   no:yes:* )
9294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9306     (
9307       cat <<\_ASBOX
9308 ## ------------------------------------------ ##
9309 ## Report this to the AC_PACKAGE_NAME lists.  ##
9310 ## ------------------------------------------ ##
9311 _ASBOX
9312     ) |
9313       sed "s/^/$as_me: WARNING:     /" >&2
9314     ;;
9315 esac
9316 echo "$as_me:$LINENO: checking for $ac_header" >&5
9317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   eval "$as_ac_Header=\$ac_header_preproc"
9322 fi
9323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9325
9326 fi
9327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9328   cat >>confdefs.h <<_ACEOF
9329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9330 _ACEOF
9331
9332 fi
9333
9334 done
9335
9336
9337
9338 for ac_header in poll.h sys/poll.h
9339 do
9340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9342   echo "$as_me:$LINENO: checking for $ac_header" >&5
9343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 fi
9347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9349 else
9350   # Is the header compilable?
9351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359 $ac_includes_default
9360 #include <$ac_header>
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364   (eval $ac_compile) 2>conftest.er1
9365   ac_status=$?
9366   grep -v '^ *+' conftest.er1 >conftest.err
9367   rm -f conftest.er1
9368   cat conftest.err >&5
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } &&
9371          { ac_try='test -z "$ac_c_werror_flag"
9372                          || test ! -s conftest.err'
9373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374   (eval $ac_try) 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); }; } &&
9378          { ac_try='test -s conftest.$ac_objext'
9379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380   (eval $ac_try) 2>&5
9381   ac_status=$?
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); }; }; then
9384   ac_header_compiler=yes
9385 else
9386   echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9388
9389 ac_header_compiler=no
9390 fi
9391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9393 echo "${ECHO_T}$ac_header_compiler" >&6
9394
9395 # Is the header present?
9396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9398 cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h.  */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h.  */
9404 #include <$ac_header>
9405 _ACEOF
9406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9408   ac_status=$?
9409   grep -v '^ *+' conftest.er1 >conftest.err
9410   rm -f conftest.er1
9411   cat conftest.err >&5
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); } >/dev/null; then
9414   if test -s conftest.err; then
9415     ac_cpp_err=$ac_c_preproc_warn_flag
9416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9417   else
9418     ac_cpp_err=
9419   fi
9420 else
9421   ac_cpp_err=yes
9422 fi
9423 if test -z "$ac_cpp_err"; then
9424   ac_header_preproc=yes
9425 else
9426   echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429   ac_header_preproc=no
9430 fi
9431 rm -f conftest.err conftest.$ac_ext
9432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9433 echo "${ECHO_T}$ac_header_preproc" >&6
9434
9435 # So?  What about this header?
9436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9437   yes:no: )
9438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9442     ac_header_preproc=yes
9443     ;;
9444   no:yes:* )
9445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9457     (
9458       cat <<\_ASBOX
9459 ## ------------------------------------------ ##
9460 ## Report this to the AC_PACKAGE_NAME lists.  ##
9461 ## ------------------------------------------ ##
9462 _ASBOX
9463     ) |
9464       sed "s/^/$as_me: WARNING:     /" >&2
9465     ;;
9466 esac
9467 echo "$as_me:$LINENO: checking for $ac_header" >&5
9468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   eval "$as_ac_Header=\$ac_header_preproc"
9473 fi
9474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9476
9477 fi
9478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9479   cat >>confdefs.h <<_ACEOF
9480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9481 _ACEOF
9482
9483 fi
9484
9485 done
9486
9487
9488
9489
9490 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9491 do
9492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9494   echo "$as_me:$LINENO: checking for $ac_header" >&5
9495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497   echo $ECHO_N "(cached) $ECHO_C" >&6
9498 fi
9499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9501 else
9502   # Is the header compilable?
9503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h.  */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h.  */
9511 $ac_includes_default
9512 #include <$ac_header>
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516   (eval $ac_compile) 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } &&
9523          { ac_try='test -z "$ac_c_werror_flag"
9524                          || test ! -s conftest.err'
9525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526   (eval $ac_try) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; } &&
9530          { ac_try='test -s conftest.$ac_objext'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; }; then
9536   ac_header_compiler=yes
9537 else
9538   echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 ac_header_compiler=no
9542 fi
9543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9545 echo "${ECHO_T}$ac_header_compiler" >&6
9546
9547 # Is the header present?
9548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556 #include <$ac_header>
9557 _ACEOF
9558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9560   ac_status=$?
9561   grep -v '^ *+' conftest.er1 >conftest.err
9562   rm -f conftest.er1
9563   cat conftest.err >&5
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } >/dev/null; then
9566   if test -s conftest.err; then
9567     ac_cpp_err=$ac_c_preproc_warn_flag
9568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9569   else
9570     ac_cpp_err=
9571   fi
9572 else
9573   ac_cpp_err=yes
9574 fi
9575 if test -z "$ac_cpp_err"; then
9576   ac_header_preproc=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581   ac_header_preproc=no
9582 fi
9583 rm -f conftest.err conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9585 echo "${ECHO_T}$ac_header_preproc" >&6
9586
9587 # So?  What about this header?
9588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9589   yes:no: )
9590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9594     ac_header_preproc=yes
9595     ;;
9596   no:yes:* )
9597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9609     (
9610       cat <<\_ASBOX
9611 ## ------------------------------------------ ##
9612 ## Report this to the AC_PACKAGE_NAME lists.  ##
9613 ## ------------------------------------------ ##
9614 _ASBOX
9615     ) |
9616       sed "s/^/$as_me: WARNING:     /" >&2
9617     ;;
9618 esac
9619 echo "$as_me:$LINENO: checking for $ac_header" >&5
9620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   eval "$as_ac_Header=\$ac_header_preproc"
9625 fi
9626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9628
9629 fi
9630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9631   cat >>confdefs.h <<_ACEOF
9632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9633 _ACEOF
9634
9635 fi
9636
9637 done
9638
9639
9640 for ac_header in stddef.h
9641 do
9642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9644   echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 fi
9649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9651 else
9652   # Is the header compilable?
9653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h.  */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h.  */
9661 $ac_includes_default
9662 #include <$ac_header>
9663 _ACEOF
9664 rm -f conftest.$ac_objext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666   (eval $ac_compile) 2>conftest.er1
9667   ac_status=$?
9668   grep -v '^ *+' conftest.er1 >conftest.err
9669   rm -f conftest.er1
9670   cat conftest.err >&5
9671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); } &&
9673          { ac_try='test -z "$ac_c_werror_flag"
9674                          || test ! -s conftest.err'
9675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676   (eval $ac_try) 2>&5
9677   ac_status=$?
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); }; } &&
9680          { ac_try='test -s conftest.$ac_objext'
9681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682   (eval $ac_try) 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; }; then
9686   ac_header_compiler=yes
9687 else
9688   echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_header_compiler=no
9692 fi
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9695 echo "${ECHO_T}$ac_header_compiler" >&6
9696
9697 # Is the header present?
9698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h.  */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h.  */
9706 #include <$ac_header>
9707 _ACEOF
9708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9710   ac_status=$?
9711   grep -v '^ *+' conftest.er1 >conftest.err
9712   rm -f conftest.er1
9713   cat conftest.err >&5
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } >/dev/null; then
9716   if test -s conftest.err; then
9717     ac_cpp_err=$ac_c_preproc_warn_flag
9718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9719   else
9720     ac_cpp_err=
9721   fi
9722 else
9723   ac_cpp_err=yes
9724 fi
9725 if test -z "$ac_cpp_err"; then
9726   ac_header_preproc=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731   ac_header_preproc=no
9732 fi
9733 rm -f conftest.err conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9735 echo "${ECHO_T}$ac_header_preproc" >&6
9736
9737 # So?  What about this header?
9738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9739   yes:no: )
9740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9744     ac_header_preproc=yes
9745     ;;
9746   no:yes:* )
9747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9759     (
9760       cat <<\_ASBOX
9761 ## ------------------------------------------ ##
9762 ## Report this to the AC_PACKAGE_NAME lists.  ##
9763 ## ------------------------------------------ ##
9764 _ASBOX
9765     ) |
9766       sed "s/^/$as_me: WARNING:     /" >&2
9767     ;;
9768 esac
9769 echo "$as_me:$LINENO: checking for $ac_header" >&5
9770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   eval "$as_ac_Header=\$ac_header_preproc"
9775 fi
9776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9778
9779 fi
9780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9781   cat >>confdefs.h <<_ACEOF
9782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783 _ACEOF
9784
9785 fi
9786
9787 done
9788
9789
9790 for ac_header in stdlib.h
9791 do
9792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9794   echo "$as_me:$LINENO: checking for $ac_header" >&5
9795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 fi
9799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9801 else
9802   # Is the header compilable?
9803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h.  */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h.  */
9811 $ac_includes_default
9812 #include <$ac_header>
9813 _ACEOF
9814 rm -f conftest.$ac_objext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816   (eval $ac_compile) 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag"
9824                          || test ! -s conftest.err'
9825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; } &&
9830          { ac_try='test -s conftest.$ac_objext'
9831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832   (eval $ac_try) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; }; then
9836   ac_header_compiler=yes
9837 else
9838   echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9840
9841 ac_header_compiler=no
9842 fi
9843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9845 echo "${ECHO_T}$ac_header_compiler" >&6
9846
9847 # Is the header present?
9848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h.  */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h.  */
9856 #include <$ac_header>
9857 _ACEOF
9858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9860   ac_status=$?
9861   grep -v '^ *+' conftest.er1 >conftest.err
9862   rm -f conftest.er1
9863   cat conftest.err >&5
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); } >/dev/null; then
9866   if test -s conftest.err; then
9867     ac_cpp_err=$ac_c_preproc_warn_flag
9868     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9869   else
9870     ac_cpp_err=
9871   fi
9872 else
9873   ac_cpp_err=yes
9874 fi
9875 if test -z "$ac_cpp_err"; then
9876   ac_header_preproc=yes
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881   ac_header_preproc=no
9882 fi
9883 rm -f conftest.err conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9885 echo "${ECHO_T}$ac_header_preproc" >&6
9886
9887 # So?  What about this header?
9888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9889   yes:no: )
9890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9894     ac_header_preproc=yes
9895     ;;
9896   no:yes:* )
9897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9899     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9900 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9901     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9903     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9904 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9907     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9909     (
9910       cat <<\_ASBOX
9911 ## ------------------------------------------ ##
9912 ## Report this to the AC_PACKAGE_NAME lists.  ##
9913 ## ------------------------------------------ ##
9914 _ASBOX
9915     ) |
9916       sed "s/^/$as_me: WARNING:     /" >&2
9917     ;;
9918 esac
9919 echo "$as_me:$LINENO: checking for $ac_header" >&5
9920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   eval "$as_ac_Header=\$ac_header_preproc"
9925 fi
9926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9928
9929 fi
9930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9931   cat >>confdefs.h <<_ACEOF
9932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9933 _ACEOF
9934
9935 fi
9936
9937 done
9938
9939
9940 for ac_header in stdint.h
9941 do
9942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9944   echo "$as_me:$LINENO: checking for $ac_header" >&5
9945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 fi
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9951 else
9952   # Is the header compilable?
9953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h.  */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h.  */
9961 $ac_includes_default
9962 #include <$ac_header>
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966   (eval $ac_compile) 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } &&
9973          { ac_try='test -z "$ac_c_werror_flag"
9974                          || test ! -s conftest.err'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; } &&
9980          { ac_try='test -s conftest.$ac_objext'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; }; then
9986   ac_header_compiler=yes
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 ac_header_compiler=no
9992 fi
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9995 echo "${ECHO_T}$ac_header_compiler" >&6
9996
9997 # Is the header present?
9998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006 #include <$ac_header>
10007 _ACEOF
10008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10010   ac_status=$?
10011   grep -v '^ *+' conftest.er1 >conftest.err
10012   rm -f conftest.er1
10013   cat conftest.err >&5
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } >/dev/null; then
10016   if test -s conftest.err; then
10017     ac_cpp_err=$ac_c_preproc_warn_flag
10018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10019   else
10020     ac_cpp_err=
10021   fi
10022 else
10023   ac_cpp_err=yes
10024 fi
10025 if test -z "$ac_cpp_err"; then
10026   ac_header_preproc=yes
10027 else
10028   echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10030
10031   ac_header_preproc=no
10032 fi
10033 rm -f conftest.err conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10035 echo "${ECHO_T}$ac_header_preproc" >&6
10036
10037 # So?  What about this header?
10038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10039   yes:no: )
10040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10044     ac_header_preproc=yes
10045     ;;
10046   no:yes:* )
10047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10059     (
10060       cat <<\_ASBOX
10061 ## ------------------------------------------ ##
10062 ## Report this to the AC_PACKAGE_NAME lists.  ##
10063 ## ------------------------------------------ ##
10064 _ASBOX
10065     ) |
10066       sed "s/^/$as_me: WARNING:     /" >&2
10067     ;;
10068 esac
10069 echo "$as_me:$LINENO: checking for $ac_header" >&5
10070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074   eval "$as_ac_Header=\$ac_header_preproc"
10075 fi
10076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10078
10079 fi
10080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10081   cat >>confdefs.h <<_ACEOF
10082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10083 _ACEOF
10084
10085 fi
10086
10087 done
10088
10089
10090
10091
10092 for ac_header in string.h memory.h strings.h
10093 do
10094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10096   echo "$as_me:$LINENO: checking for $ac_header" >&5
10097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 fi
10101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10103 else
10104   # Is the header compilable?
10105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h.  */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h.  */
10113 $ac_includes_default
10114 #include <$ac_header>
10115 _ACEOF
10116 rm -f conftest.$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118   (eval $ac_compile) 2>conftest.er1
10119   ac_status=$?
10120   grep -v '^ *+' conftest.er1 >conftest.err
10121   rm -f conftest.er1
10122   cat conftest.err >&5
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } &&
10125          { ac_try='test -z "$ac_c_werror_flag"
10126                          || test ! -s conftest.err'
10127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128   (eval $ac_try) 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; } &&
10132          { ac_try='test -s conftest.$ac_objext'
10133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134   (eval $ac_try) 2>&5
10135   ac_status=$?
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); }; }; then
10138   ac_header_compiler=yes
10139 else
10140   echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10142
10143 ac_header_compiler=no
10144 fi
10145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10147 echo "${ECHO_T}$ac_header_compiler" >&6
10148
10149 # Is the header present?
10150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h.  */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h.  */
10158 #include <$ac_header>
10159 _ACEOF
10160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10162   ac_status=$?
10163   grep -v '^ *+' conftest.er1 >conftest.err
10164   rm -f conftest.er1
10165   cat conftest.err >&5
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); } >/dev/null; then
10168   if test -s conftest.err; then
10169     ac_cpp_err=$ac_c_preproc_warn_flag
10170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10171   else
10172     ac_cpp_err=
10173   fi
10174 else
10175   ac_cpp_err=yes
10176 fi
10177 if test -z "$ac_cpp_err"; then
10178   ac_header_preproc=yes
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183   ac_header_preproc=no
10184 fi
10185 rm -f conftest.err conftest.$ac_ext
10186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10187 echo "${ECHO_T}$ac_header_preproc" >&6
10188
10189 # So?  What about this header?
10190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10191   yes:no: )
10192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10196     ac_header_preproc=yes
10197     ;;
10198   no:yes:* )
10199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10201     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10202 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10203     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10205     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10206 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10209     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10211     (
10212       cat <<\_ASBOX
10213 ## ------------------------------------------ ##
10214 ## Report this to the AC_PACKAGE_NAME lists.  ##
10215 ## ------------------------------------------ ##
10216 _ASBOX
10217     ) |
10218       sed "s/^/$as_me: WARNING:     /" >&2
10219     ;;
10220 esac
10221 echo "$as_me:$LINENO: checking for $ac_header" >&5
10222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   eval "$as_ac_Header=\$ac_header_preproc"
10227 fi
10228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10230
10231 fi
10232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10233   cat >>confdefs.h <<_ACEOF
10234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10235 _ACEOF
10236
10237 fi
10238
10239 done
10240
10241
10242 for ac_header in sys/fault.h
10243 do
10244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10246   echo "$as_me:$LINENO: checking for $ac_header" >&5
10247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10249   echo $ECHO_N "(cached) $ECHO_C" >&6
10250 fi
10251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10253 else
10254   # Is the header compilable?
10255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10257 cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h.  */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h.  */
10263 $ac_includes_default
10264 #include <$ac_header>
10265 _ACEOF
10266 rm -f conftest.$ac_objext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10268   (eval $ac_compile) 2>conftest.er1
10269   ac_status=$?
10270   grep -v '^ *+' conftest.er1 >conftest.err
10271   rm -f conftest.er1
10272   cat conftest.err >&5
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } &&
10275          { ac_try='test -z "$ac_c_werror_flag"
10276                          || test ! -s conftest.err'
10277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278   (eval $ac_try) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; } &&
10282          { ac_try='test -s conftest.$ac_objext'
10283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284   (eval $ac_try) 2>&5
10285   ac_status=$?
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); }; }; then
10288   ac_header_compiler=yes
10289 else
10290   echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 ac_header_compiler=no
10294 fi
10295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10297 echo "${ECHO_T}$ac_header_compiler" >&6
10298
10299 # Is the header present?
10300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 #include <$ac_header>
10309 _ACEOF
10310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } >/dev/null; then
10318   if test -s conftest.err; then
10319     ac_cpp_err=$ac_c_preproc_warn_flag
10320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10321   else
10322     ac_cpp_err=
10323   fi
10324 else
10325   ac_cpp_err=yes
10326 fi
10327 if test -z "$ac_cpp_err"; then
10328   ac_header_preproc=yes
10329 else
10330   echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333   ac_header_preproc=no
10334 fi
10335 rm -f conftest.err conftest.$ac_ext
10336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10337 echo "${ECHO_T}$ac_header_preproc" >&6
10338
10339 # So?  What about this header?
10340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10341   yes:no: )
10342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10346     ac_header_preproc=yes
10347     ;;
10348   no:yes:* )
10349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10361     (
10362       cat <<\_ASBOX
10363 ## ------------------------------------------ ##
10364 ## Report this to the AC_PACKAGE_NAME lists.  ##
10365 ## ------------------------------------------ ##
10366 _ASBOX
10367     ) |
10368       sed "s/^/$as_me: WARNING:     /" >&2
10369     ;;
10370 esac
10371 echo "$as_me:$LINENO: checking for $ac_header" >&5
10372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376   eval "$as_ac_Header=\$ac_header_preproc"
10377 fi
10378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10380
10381 fi
10382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10383   cat >>confdefs.h <<_ACEOF
10384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10385 _ACEOF
10386
10387 fi
10388
10389 done
10390
10391
10392 for ac_header in sys/file.h
10393 do
10394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10396   echo "$as_me:$LINENO: checking for $ac_header" >&5
10397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 fi
10401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10403 else
10404   # Is the header compilable?
10405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10407 cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 $ac_includes_default
10414 #include <$ac_header>
10415 _ACEOF
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418   (eval $ac_compile) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag"
10426                          || test ! -s conftest.err'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; } &&
10432          { ac_try='test -s conftest.$ac_objext'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   ac_header_compiler=yes
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 ac_header_compiler=no
10444 fi
10445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10447 echo "${ECHO_T}$ac_header_compiler" >&6
10448
10449 # Is the header present?
10450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10452 cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h.  */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h.  */
10458 #include <$ac_header>
10459 _ACEOF
10460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10462   ac_status=$?
10463   grep -v '^ *+' conftest.er1 >conftest.err
10464   rm -f conftest.er1
10465   cat conftest.err >&5
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); } >/dev/null; then
10468   if test -s conftest.err; then
10469     ac_cpp_err=$ac_c_preproc_warn_flag
10470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10471   else
10472     ac_cpp_err=
10473   fi
10474 else
10475   ac_cpp_err=yes
10476 fi
10477 if test -z "$ac_cpp_err"; then
10478   ac_header_preproc=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483   ac_header_preproc=no
10484 fi
10485 rm -f conftest.err conftest.$ac_ext
10486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10487 echo "${ECHO_T}$ac_header_preproc" >&6
10488
10489 # So?  What about this header?
10490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10491   yes:no: )
10492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10496     ac_header_preproc=yes
10497     ;;
10498   no:yes:* )
10499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10511     (
10512       cat <<\_ASBOX
10513 ## ------------------------------------------ ##
10514 ## Report this to the AC_PACKAGE_NAME lists.  ##
10515 ## ------------------------------------------ ##
10516 _ASBOX
10517     ) |
10518       sed "s/^/$as_me: WARNING:     /" >&2
10519     ;;
10520 esac
10521 echo "$as_me:$LINENO: checking for $ac_header" >&5
10522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524   echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526   eval "$as_ac_Header=\$ac_header_preproc"
10527 fi
10528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10530
10531 fi
10532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10533   cat >>confdefs.h <<_ACEOF
10534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10535 _ACEOF
10536
10537 fi
10538
10539 done
10540
10541
10542 for ac_header in sys/filio.h
10543 do
10544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10546   echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 fi
10551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10553 else
10554   # Is the header compilable?
10555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563 $ac_includes_default
10564 #include <$ac_header>
10565 _ACEOF
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568   (eval $ac_compile) 2>conftest.er1
10569   ac_status=$?
10570   grep -v '^ *+' conftest.er1 >conftest.err
10571   rm -f conftest.er1
10572   cat conftest.err >&5
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -z "$ac_c_werror_flag"
10576                          || test ! -s conftest.err'
10577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578   (eval $ac_try) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; } &&
10582          { ac_try='test -s conftest.$ac_objext'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; }; then
10588   ac_header_compiler=yes
10589 else
10590   echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 ac_header_compiler=no
10594 fi
10595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10597 echo "${ECHO_T}$ac_header_compiler" >&6
10598
10599 # Is the header present?
10600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10602 cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 #include <$ac_header>
10609 _ACEOF
10610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10612   ac_status=$?
10613   grep -v '^ *+' conftest.er1 >conftest.err
10614   rm -f conftest.er1
10615   cat conftest.err >&5
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); } >/dev/null; then
10618   if test -s conftest.err; then
10619     ac_cpp_err=$ac_c_preproc_warn_flag
10620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10621   else
10622     ac_cpp_err=
10623   fi
10624 else
10625   ac_cpp_err=yes
10626 fi
10627 if test -z "$ac_cpp_err"; then
10628   ac_header_preproc=yes
10629 else
10630   echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633   ac_header_preproc=no
10634 fi
10635 rm -f conftest.err conftest.$ac_ext
10636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10637 echo "${ECHO_T}$ac_header_preproc" >&6
10638
10639 # So?  What about this header?
10640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10641   yes:no: )
10642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10646     ac_header_preproc=yes
10647     ;;
10648   no:yes:* )
10649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10661     (
10662       cat <<\_ASBOX
10663 ## ------------------------------------------ ##
10664 ## Report this to the AC_PACKAGE_NAME lists.  ##
10665 ## ------------------------------------------ ##
10666 _ASBOX
10667     ) |
10668       sed "s/^/$as_me: WARNING:     /" >&2
10669     ;;
10670 esac
10671 echo "$as_me:$LINENO: checking for $ac_header" >&5
10672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10674   echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676   eval "$as_ac_Header=\$ac_header_preproc"
10677 fi
10678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10680
10681 fi
10682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10683   cat >>confdefs.h <<_ACEOF
10684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10685 _ACEOF
10686
10687 fi
10688
10689 done
10690
10691
10692 for ac_header in sys/ioctl.h
10693 do
10694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10696   echo "$as_me:$LINENO: checking for $ac_header" >&5
10697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 fi
10701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10703 else
10704   # Is the header compilable?
10705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10707 cat >conftest.$ac_ext <<_ACEOF
10708 /* confdefs.h.  */
10709 _ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h.  */
10713 $ac_includes_default
10714 #include <$ac_header>
10715 _ACEOF
10716 rm -f conftest.$ac_objext
10717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718   (eval $ac_compile) 2>conftest.er1
10719   ac_status=$?
10720   grep -v '^ *+' conftest.er1 >conftest.err
10721   rm -f conftest.er1
10722   cat conftest.err >&5
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); } &&
10725          { ac_try='test -z "$ac_c_werror_flag"
10726                          || test ! -s conftest.err'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; } &&
10732          { ac_try='test -s conftest.$ac_objext'
10733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734   (eval $ac_try) 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; }; then
10738   ac_header_compiler=yes
10739 else
10740   echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_header_compiler=no
10744 fi
10745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10747 echo "${ECHO_T}$ac_header_compiler" >&6
10748
10749 # Is the header present?
10750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758 #include <$ac_header>
10759 _ACEOF
10760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10762   ac_status=$?
10763   grep -v '^ *+' conftest.er1 >conftest.err
10764   rm -f conftest.er1
10765   cat conftest.err >&5
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); } >/dev/null; then
10768   if test -s conftest.err; then
10769     ac_cpp_err=$ac_c_preproc_warn_flag
10770     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10771   else
10772     ac_cpp_err=
10773   fi
10774 else
10775   ac_cpp_err=yes
10776 fi
10777 if test -z "$ac_cpp_err"; then
10778   ac_header_preproc=yes
10779 else
10780   echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783   ac_header_preproc=no
10784 fi
10785 rm -f conftest.err conftest.$ac_ext
10786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10787 echo "${ECHO_T}$ac_header_preproc" >&6
10788
10789 # So?  What about this header?
10790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10791   yes:no: )
10792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10796     ac_header_preproc=yes
10797     ;;
10798   no:yes:* )
10799     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10801     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10802 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10805     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10806 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10809     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10811     (
10812       cat <<\_ASBOX
10813 ## ------------------------------------------ ##
10814 ## Report this to the AC_PACKAGE_NAME lists.  ##
10815 ## ------------------------------------------ ##
10816 _ASBOX
10817     ) |
10818       sed "s/^/$as_me: WARNING:     /" >&2
10819     ;;
10820 esac
10821 echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826   eval "$as_ac_Header=\$ac_header_preproc"
10827 fi
10828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10830
10831 fi
10832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10833   cat >>confdefs.h <<_ACEOF
10834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10835 _ACEOF
10836
10837 fi
10838
10839 done
10840
10841
10842 for ac_header in sys/param.h
10843 do
10844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10846   echo "$as_me:$LINENO: checking for $ac_header" >&5
10847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 fi
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10853 else
10854   # Is the header compilable?
10855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10863 $ac_includes_default
10864 #include <$ac_header>
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868   (eval $ac_compile) 2>conftest.er1
10869   ac_status=$?
10870   grep -v '^ *+' conftest.er1 >conftest.err
10871   rm -f conftest.er1
10872   cat conftest.err >&5
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); } &&
10875          { ac_try='test -z "$ac_c_werror_flag"
10876                          || test ! -s conftest.err'
10877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878   (eval $ac_try) 2>&5
10879   ac_status=$?
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); }; } &&
10882          { ac_try='test -s conftest.$ac_objext'
10883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884   (eval $ac_try) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; }; then
10888   ac_header_compiler=yes
10889 else
10890   echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 ac_header_compiler=no
10894 fi
10895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10897 echo "${ECHO_T}$ac_header_compiler" >&6
10898
10899 # Is the header present?
10900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h.  */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h.  */
10908 #include <$ac_header>
10909 _ACEOF
10910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10912   ac_status=$?
10913   grep -v '^ *+' conftest.er1 >conftest.err
10914   rm -f conftest.er1
10915   cat conftest.err >&5
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } >/dev/null; then
10918   if test -s conftest.err; then
10919     ac_cpp_err=$ac_c_preproc_warn_flag
10920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10921   else
10922     ac_cpp_err=
10923   fi
10924 else
10925   ac_cpp_err=yes
10926 fi
10927 if test -z "$ac_cpp_err"; then
10928   ac_header_preproc=yes
10929 else
10930   echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10932
10933   ac_header_preproc=no
10934 fi
10935 rm -f conftest.err conftest.$ac_ext
10936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10937 echo "${ECHO_T}$ac_header_preproc" >&6
10938
10939 # So?  What about this header?
10940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10941   yes:no: )
10942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10946     ac_header_preproc=yes
10947     ;;
10948   no:yes:* )
10949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10961     (
10962       cat <<\_ASBOX
10963 ## ------------------------------------------ ##
10964 ## Report this to the AC_PACKAGE_NAME lists.  ##
10965 ## ------------------------------------------ ##
10966 _ASBOX
10967     ) |
10968       sed "s/^/$as_me: WARNING:     /" >&2
10969     ;;
10970 esac
10971 echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976   eval "$as_ac_Header=\$ac_header_preproc"
10977 fi
10978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10980
10981 fi
10982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10983   cat >>confdefs.h <<_ACEOF
10984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10985 _ACEOF
10986
10987 fi
10988
10989 done
10990
10991
10992 for ac_header in sys/proc.h
10993 do
10994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10995 echo "$as_me:$LINENO: checking for $ac_header" >&5
10996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006 #if HAVE_SYS_PARAM_H
11007 # include <sys/param.h>
11008 #endif
11009
11010
11011 #include <$ac_header>
11012 _ACEOF
11013 rm -f conftest.$ac_objext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015   (eval $ac_compile) 2>conftest.er1
11016   ac_status=$?
11017   grep -v '^ *+' conftest.er1 >conftest.err
11018   rm -f conftest.er1
11019   cat conftest.err >&5
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } &&
11022          { ac_try='test -z "$ac_c_werror_flag"
11023                          || test ! -s conftest.err'
11024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025   (eval $ac_try) 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; } &&
11029          { ac_try='test -s conftest.$ac_objext'
11030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031   (eval $ac_try) 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); }; }; then
11035   eval "$as_ac_Header=yes"
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040 eval "$as_ac_Header=no"
11041 fi
11042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11043 fi
11044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11047   cat >>confdefs.h <<_ACEOF
11048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11049 _ACEOF
11050
11051 fi
11052
11053 done
11054
11055
11056 for ac_header in sys/procfs.h
11057 do
11058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11060   echo "$as_me:$LINENO: checking for $ac_header" >&5
11061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063   echo $ECHO_N "(cached) $ECHO_C" >&6
11064 fi
11065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11067 else
11068   # Is the header compilable?
11069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h.  */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h.  */
11077 $ac_includes_default
11078 #include <$ac_header>
11079 _ACEOF
11080 rm -f conftest.$ac_objext
11081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11082   (eval $ac_compile) 2>conftest.er1
11083   ac_status=$?
11084   grep -v '^ *+' conftest.er1 >conftest.err
11085   rm -f conftest.er1
11086   cat conftest.err >&5
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } &&
11089          { ac_try='test -z "$ac_c_werror_flag"
11090                          || test ! -s conftest.err'
11091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092   (eval $ac_try) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; } &&
11096          { ac_try='test -s conftest.$ac_objext'
11097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098   (eval $ac_try) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; }; then
11102   ac_header_compiler=yes
11103 else
11104   echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11106
11107 ac_header_compiler=no
11108 fi
11109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11111 echo "${ECHO_T}$ac_header_compiler" >&6
11112
11113 # Is the header present?
11114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h.  */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h.  */
11122 #include <$ac_header>
11123 _ACEOF
11124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } >/dev/null; then
11132   if test -s conftest.err; then
11133     ac_cpp_err=$ac_c_preproc_warn_flag
11134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11135   else
11136     ac_cpp_err=
11137   fi
11138 else
11139   ac_cpp_err=yes
11140 fi
11141 if test -z "$ac_cpp_err"; then
11142   ac_header_preproc=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147   ac_header_preproc=no
11148 fi
11149 rm -f conftest.err conftest.$ac_ext
11150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11151 echo "${ECHO_T}$ac_header_preproc" >&6
11152
11153 # So?  What about this header?
11154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11155   yes:no: )
11156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11160     ac_header_preproc=yes
11161     ;;
11162   no:yes:* )
11163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11165     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11166 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11167     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11169     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11170 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11173     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11175     (
11176       cat <<\_ASBOX
11177 ## ------------------------------------------ ##
11178 ## Report this to the AC_PACKAGE_NAME lists.  ##
11179 ## ------------------------------------------ ##
11180 _ASBOX
11181     ) |
11182       sed "s/^/$as_me: WARNING:     /" >&2
11183     ;;
11184 esac
11185 echo "$as_me:$LINENO: checking for $ac_header" >&5
11186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190   eval "$as_ac_Header=\$ac_header_preproc"
11191 fi
11192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11194
11195 fi
11196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11197   cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11199 _ACEOF
11200
11201 fi
11202
11203 done
11204
11205
11206
11207 for ac_header in sys/ptrace.h ptrace.h
11208 do
11209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11211   echo "$as_me:$LINENO: checking for $ac_header" >&5
11212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11214   echo $ECHO_N "(cached) $ECHO_C" >&6
11215 fi
11216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11218 else
11219   # Is the header compilable?
11220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11222 cat >conftest.$ac_ext <<_ACEOF
11223 /* confdefs.h.  */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h.  */
11228 $ac_includes_default
11229 #include <$ac_header>
11230 _ACEOF
11231 rm -f conftest.$ac_objext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233   (eval $ac_compile) 2>conftest.er1
11234   ac_status=$?
11235   grep -v '^ *+' conftest.er1 >conftest.err
11236   rm -f conftest.er1
11237   cat conftest.err >&5
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); } &&
11240          { ac_try='test -z "$ac_c_werror_flag"
11241                          || test ! -s conftest.err'
11242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243   (eval $ac_try) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }; } &&
11247          { ac_try='test -s conftest.$ac_objext'
11248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249   (eval $ac_try) 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; }; then
11253   ac_header_compiler=yes
11254 else
11255   echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 ac_header_compiler=no
11259 fi
11260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11262 echo "${ECHO_T}$ac_header_compiler" >&6
11263
11264 # Is the header present?
11265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h.  */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h.  */
11273 #include <$ac_header>
11274 _ACEOF
11275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11277   ac_status=$?
11278   grep -v '^ *+' conftest.er1 >conftest.err
11279   rm -f conftest.er1
11280   cat conftest.err >&5
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } >/dev/null; then
11283   if test -s conftest.err; then
11284     ac_cpp_err=$ac_c_preproc_warn_flag
11285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286   else
11287     ac_cpp_err=
11288   fi
11289 else
11290   ac_cpp_err=yes
11291 fi
11292 if test -z "$ac_cpp_err"; then
11293   ac_header_preproc=yes
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298   ac_header_preproc=no
11299 fi
11300 rm -f conftest.err conftest.$ac_ext
11301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11302 echo "${ECHO_T}$ac_header_preproc" >&6
11303
11304 # So?  What about this header?
11305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11306   yes:no: )
11307     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11311     ac_header_preproc=yes
11312     ;;
11313   no:yes:* )
11314     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11316     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11317 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11318     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11320     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11321 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11324     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11326     (
11327       cat <<\_ASBOX
11328 ## ------------------------------------------ ##
11329 ## Report this to the AC_PACKAGE_NAME lists.  ##
11330 ## ------------------------------------------ ##
11331 _ASBOX
11332     ) |
11333       sed "s/^/$as_me: WARNING:     /" >&2
11334     ;;
11335 esac
11336 echo "$as_me:$LINENO: checking for $ac_header" >&5
11337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11339   echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341   eval "$as_ac_Header=\$ac_header_preproc"
11342 fi
11343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11345
11346 fi
11347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348   cat >>confdefs.h <<_ACEOF
11349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350 _ACEOF
11351
11352 fi
11353
11354 done
11355
11356
11357
11358 for ac_header in sys/reg.h sys/debugreg.h
11359 do
11360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11362   echo "$as_me:$LINENO: checking for $ac_header" >&5
11363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11366 fi
11367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11369 else
11370   # Is the header compilable?
11371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h.  */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h.  */
11379 $ac_includes_default
11380 #include <$ac_header>
11381 _ACEOF
11382 rm -f conftest.$ac_objext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384   (eval $ac_compile) 2>conftest.er1
11385   ac_status=$?
11386   grep -v '^ *+' conftest.er1 >conftest.err
11387   rm -f conftest.er1
11388   cat conftest.err >&5
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); } &&
11391          { ac_try='test -z "$ac_c_werror_flag"
11392                          || test ! -s conftest.err'
11393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394   (eval $ac_try) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); }; } &&
11398          { ac_try='test -s conftest.$ac_objext'
11399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400   (eval $ac_try) 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); }; }; then
11404   ac_header_compiler=yes
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_header_compiler=no
11410 fi
11411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11413 echo "${ECHO_T}$ac_header_compiler" >&6
11414
11415 # Is the header present?
11416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11418 cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h.  */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h.  */
11424 #include <$ac_header>
11425 _ACEOF
11426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11428   ac_status=$?
11429   grep -v '^ *+' conftest.er1 >conftest.err
11430   rm -f conftest.er1
11431   cat conftest.err >&5
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } >/dev/null; then
11434   if test -s conftest.err; then
11435     ac_cpp_err=$ac_c_preproc_warn_flag
11436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11437   else
11438     ac_cpp_err=
11439   fi
11440 else
11441   ac_cpp_err=yes
11442 fi
11443 if test -z "$ac_cpp_err"; then
11444   ac_header_preproc=yes
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449   ac_header_preproc=no
11450 fi
11451 rm -f conftest.err conftest.$ac_ext
11452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11453 echo "${ECHO_T}$ac_header_preproc" >&6
11454
11455 # So?  What about this header?
11456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11457   yes:no: )
11458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11462     ac_header_preproc=yes
11463     ;;
11464   no:yes:* )
11465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11477     (
11478       cat <<\_ASBOX
11479 ## ------------------------------------------ ##
11480 ## Report this to the AC_PACKAGE_NAME lists.  ##
11481 ## ------------------------------------------ ##
11482 _ASBOX
11483     ) |
11484       sed "s/^/$as_me: WARNING:     /" >&2
11485     ;;
11486 esac
11487 echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492   eval "$as_ac_Header=\$ac_header_preproc"
11493 fi
11494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11496
11497 fi
11498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11499   cat >>confdefs.h <<_ACEOF
11500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11501 _ACEOF
11502
11503 fi
11504
11505 done
11506
11507
11508 for ac_header in sys/select.h
11509 do
11510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11512   echo "$as_me:$LINENO: checking for $ac_header" >&5
11513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11515   echo $ECHO_N "(cached) $ECHO_C" >&6
11516 fi
11517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11519 else
11520   # Is the header compilable?
11521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11523 cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 $ac_includes_default
11530 #include <$ac_header>
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534   (eval $ac_compile) 2>conftest.er1
11535   ac_status=$?
11536   grep -v '^ *+' conftest.er1 >conftest.err
11537   rm -f conftest.er1
11538   cat conftest.err >&5
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); } &&
11541          { ac_try='test -z "$ac_c_werror_flag"
11542                          || test ! -s conftest.err'
11543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544   (eval $ac_try) 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); }; } &&
11548          { ac_try='test -s conftest.$ac_objext'
11549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550   (eval $ac_try) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; }; then
11554   ac_header_compiler=yes
11555 else
11556   echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559 ac_header_compiler=no
11560 fi
11561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6
11564
11565 # Is the header present?
11566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h.  */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h.  */
11574 #include <$ac_header>
11575 _ACEOF
11576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11578   ac_status=$?
11579   grep -v '^ *+' conftest.er1 >conftest.err
11580   rm -f conftest.er1
11581   cat conftest.err >&5
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } >/dev/null; then
11584   if test -s conftest.err; then
11585     ac_cpp_err=$ac_c_preproc_warn_flag
11586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11587   else
11588     ac_cpp_err=
11589   fi
11590 else
11591   ac_cpp_err=yes
11592 fi
11593 if test -z "$ac_cpp_err"; then
11594   ac_header_preproc=yes
11595 else
11596   echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599   ac_header_preproc=no
11600 fi
11601 rm -f conftest.err conftest.$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11603 echo "${ECHO_T}$ac_header_preproc" >&6
11604
11605 # So?  What about this header?
11606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11607   yes:no: )
11608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11612     ac_header_preproc=yes
11613     ;;
11614   no:yes:* )
11615     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11617     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11618 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11619     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11621     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11622 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11625     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11627     (
11628       cat <<\_ASBOX
11629 ## ------------------------------------------ ##
11630 ## Report this to the AC_PACKAGE_NAME lists.  ##
11631 ## ------------------------------------------ ##
11632 _ASBOX
11633     ) |
11634       sed "s/^/$as_me: WARNING:     /" >&2
11635     ;;
11636 esac
11637 echo "$as_me:$LINENO: checking for $ac_header" >&5
11638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   eval "$as_ac_Header=\$ac_header_preproc"
11643 fi
11644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11646
11647 fi
11648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11649   cat >>confdefs.h <<_ACEOF
11650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11651 _ACEOF
11652
11653 fi
11654
11655 done
11656
11657
11658 for ac_header in sys/syscall.h
11659 do
11660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11662   echo "$as_me:$LINENO: checking for $ac_header" >&5
11663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11665   echo $ECHO_N "(cached) $ECHO_C" >&6
11666 fi
11667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11669 else
11670   # Is the header compilable?
11671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11673 cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h.  */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h.  */
11679 $ac_includes_default
11680 #include <$ac_header>
11681 _ACEOF
11682 rm -f conftest.$ac_objext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684   (eval $ac_compile) 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } &&
11691          { ac_try='test -z "$ac_c_werror_flag"
11692                          || test ! -s conftest.err'
11693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694   (eval $ac_try) 2>&5
11695   ac_status=$?
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); }; } &&
11698          { ac_try='test -s conftest.$ac_objext'
11699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700   (eval $ac_try) 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; }; then
11704   ac_header_compiler=yes
11705 else
11706   echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709 ac_header_compiler=no
11710 fi
11711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11713 echo "${ECHO_T}$ac_header_compiler" >&6
11714
11715 # Is the header present?
11716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724 #include <$ac_header>
11725 _ACEOF
11726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11728   ac_status=$?
11729   grep -v '^ *+' conftest.er1 >conftest.err
11730   rm -f conftest.er1
11731   cat conftest.err >&5
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } >/dev/null; then
11734   if test -s conftest.err; then
11735     ac_cpp_err=$ac_c_preproc_warn_flag
11736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11737   else
11738     ac_cpp_err=
11739   fi
11740 else
11741   ac_cpp_err=yes
11742 fi
11743 if test -z "$ac_cpp_err"; then
11744   ac_header_preproc=yes
11745 else
11746   echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11748
11749   ac_header_preproc=no
11750 fi
11751 rm -f conftest.err conftest.$ac_ext
11752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11753 echo "${ECHO_T}$ac_header_preproc" >&6
11754
11755 # So?  What about this header?
11756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11757   yes:no: )
11758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11762     ac_header_preproc=yes
11763     ;;
11764   no:yes:* )
11765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11777     (
11778       cat <<\_ASBOX
11779 ## ------------------------------------------ ##
11780 ## Report this to the AC_PACKAGE_NAME lists.  ##
11781 ## ------------------------------------------ ##
11782 _ASBOX
11783     ) |
11784       sed "s/^/$as_me: WARNING:     /" >&2
11785     ;;
11786 esac
11787 echo "$as_me:$LINENO: checking for $ac_header" >&5
11788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792   eval "$as_ac_Header=\$ac_header_preproc"
11793 fi
11794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11796
11797 fi
11798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11799   cat >>confdefs.h <<_ACEOF
11800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11801 _ACEOF
11802
11803 fi
11804
11805 done
11806
11807
11808 for ac_header in sys/types.h
11809 do
11810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11812   echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 fi
11817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11819 else
11820   # Is the header compilable?
11821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h.  */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h.  */
11829 $ac_includes_default
11830 #include <$ac_header>
11831 _ACEOF
11832 rm -f conftest.$ac_objext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834   (eval $ac_compile) 2>conftest.er1
11835   ac_status=$?
11836   grep -v '^ *+' conftest.er1 >conftest.err
11837   rm -f conftest.er1
11838   cat conftest.err >&5
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); } &&
11841          { ac_try='test -z "$ac_c_werror_flag"
11842                          || test ! -s conftest.err'
11843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844   (eval $ac_try) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; } &&
11848          { ac_try='test -s conftest.$ac_objext'
11849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850   (eval $ac_try) 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; }; then
11854   ac_header_compiler=yes
11855 else
11856   echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ac_header_compiler=no
11860 fi
11861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11863 echo "${ECHO_T}$ac_header_compiler" >&6
11864
11865 # Is the header present?
11866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11868 cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h.  */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h.  */
11874 #include <$ac_header>
11875 _ACEOF
11876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11878   ac_status=$?
11879   grep -v '^ *+' conftest.er1 >conftest.err
11880   rm -f conftest.er1
11881   cat conftest.err >&5
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } >/dev/null; then
11884   if test -s conftest.err; then
11885     ac_cpp_err=$ac_c_preproc_warn_flag
11886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11887   else
11888     ac_cpp_err=
11889   fi
11890 else
11891   ac_cpp_err=yes
11892 fi
11893 if test -z "$ac_cpp_err"; then
11894   ac_header_preproc=yes
11895 else
11896   echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899   ac_header_preproc=no
11900 fi
11901 rm -f conftest.err conftest.$ac_ext
11902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11903 echo "${ECHO_T}$ac_header_preproc" >&6
11904
11905 # So?  What about this header?
11906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11907   yes:no: )
11908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11912     ac_header_preproc=yes
11913     ;;
11914   no:yes:* )
11915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11927     (
11928       cat <<\_ASBOX
11929 ## ------------------------------------------ ##
11930 ## Report this to the AC_PACKAGE_NAME lists.  ##
11931 ## ------------------------------------------ ##
11932 _ASBOX
11933     ) |
11934       sed "s/^/$as_me: WARNING:     /" >&2
11935     ;;
11936 esac
11937 echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   eval "$as_ac_Header=\$ac_header_preproc"
11943 fi
11944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11946
11947 fi
11948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11949   cat >>confdefs.h <<_ACEOF
11950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11951 _ACEOF
11952
11953 fi
11954
11955 done
11956
11957
11958 for ac_header in sys/user.h
11959 do
11960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11961 echo "$as_me:$LINENO: checking for $ac_header" >&5
11962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11964   echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966   cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h.  */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h.  */
11972 #if HAVE_SYS_PARAM_H
11973 # include <sys/param.h>
11974 #endif
11975
11976
11977 #include <$ac_header>
11978 _ACEOF
11979 rm -f conftest.$ac_objext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981   (eval $ac_compile) 2>conftest.er1
11982   ac_status=$?
11983   grep -v '^ *+' conftest.er1 >conftest.err
11984   rm -f conftest.er1
11985   cat conftest.err >&5
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } &&
11988          { ac_try='test -z "$ac_c_werror_flag"
11989                          || test ! -s conftest.err'
11990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991   (eval $ac_try) 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; } &&
11995          { ac_try='test -s conftest.$ac_objext'
11996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997   (eval $ac_try) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; }; then
12001   eval "$as_ac_Header=yes"
12002 else
12003   echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12005
12006 eval "$as_ac_Header=no"
12007 fi
12008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12009 fi
12010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12013   cat >>confdefs.h <<_ACEOF
12014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12015 _ACEOF
12016
12017 fi
12018
12019 done
12020
12021
12022
12023 for ac_header in sys/wait.h wait.h
12024 do
12025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12027   echo "$as_me:$LINENO: checking for $ac_header" >&5
12028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030   echo $ECHO_N "(cached) $ECHO_C" >&6
12031 fi
12032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12034 else
12035   # Is the header compilable?
12036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12038 cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h.  */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h.  */
12044 $ac_includes_default
12045 #include <$ac_header>
12046 _ACEOF
12047 rm -f conftest.$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049   (eval $ac_compile) 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -z "$ac_c_werror_flag"
12057                          || test ! -s conftest.err'
12058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059   (eval $ac_try) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; } &&
12063          { ac_try='test -s conftest.$ac_objext'
12064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065   (eval $ac_try) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); }; }; then
12069   ac_header_compiler=yes
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 ac_header_compiler=no
12075 fi
12076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12078 echo "${ECHO_T}$ac_header_compiler" >&6
12079
12080 # Is the header present?
12081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h.  */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h.  */
12089 #include <$ac_header>
12090 _ACEOF
12091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12093   ac_status=$?
12094   grep -v '^ *+' conftest.er1 >conftest.err
12095   rm -f conftest.er1
12096   cat conftest.err >&5
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); } >/dev/null; then
12099   if test -s conftest.err; then
12100     ac_cpp_err=$ac_c_preproc_warn_flag
12101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12102   else
12103     ac_cpp_err=
12104   fi
12105 else
12106   ac_cpp_err=yes
12107 fi
12108 if test -z "$ac_cpp_err"; then
12109   ac_header_preproc=yes
12110 else
12111   echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12113
12114   ac_header_preproc=no
12115 fi
12116 rm -f conftest.err conftest.$ac_ext
12117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12118 echo "${ECHO_T}$ac_header_preproc" >&6
12119
12120 # So?  What about this header?
12121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12122   yes:no: )
12123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12127     ac_header_preproc=yes
12128     ;;
12129   no:yes:* )
12130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12142     (
12143       cat <<\_ASBOX
12144 ## ------------------------------------------ ##
12145 ## Report this to the AC_PACKAGE_NAME lists.  ##
12146 ## ------------------------------------------ ##
12147 _ASBOX
12148     ) |
12149       sed "s/^/$as_me: WARNING:     /" >&2
12150     ;;
12151 esac
12152 echo "$as_me:$LINENO: checking for $ac_header" >&5
12153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12155   echo $ECHO_N "(cached) $ECHO_C" >&6
12156 else
12157   eval "$as_ac_Header=\$ac_header_preproc"
12158 fi
12159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12161
12162 fi
12163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12164   cat >>confdefs.h <<_ACEOF
12165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12166 _ACEOF
12167
12168 fi
12169
12170 done
12171
12172
12173
12174
12175 for ac_header in termios.h termio.h sgtty.h
12176 do
12177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12179   echo "$as_me:$LINENO: checking for $ac_header" >&5
12180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 fi
12184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12186 else
12187   # Is the header compilable?
12188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 $ac_includes_default
12197 #include <$ac_header>
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201   (eval $ac_compile) 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -z "$ac_c_werror_flag"
12209                          || test ! -s conftest.err'
12210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211   (eval $ac_try) 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); }; } &&
12215          { ac_try='test -s conftest.$ac_objext'
12216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217   (eval $ac_try) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; }; then
12221   ac_header_compiler=yes
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_header_compiler=no
12227 fi
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230 echo "${ECHO_T}$ac_header_compiler" >&6
12231
12232 # Is the header present?
12233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241 #include <$ac_header>
12242 _ACEOF
12243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } >/dev/null; then
12251   if test -s conftest.err; then
12252     ac_cpp_err=$ac_c_preproc_warn_flag
12253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12254   else
12255     ac_cpp_err=
12256   fi
12257 else
12258   ac_cpp_err=yes
12259 fi
12260 if test -z "$ac_cpp_err"; then
12261   ac_header_preproc=yes
12262 else
12263   echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266   ac_header_preproc=no
12267 fi
12268 rm -f conftest.err conftest.$ac_ext
12269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270 echo "${ECHO_T}$ac_header_preproc" >&6
12271
12272 # So?  What about this header?
12273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274   yes:no: )
12275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279     ac_header_preproc=yes
12280     ;;
12281   no:yes:* )
12282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12294     (
12295       cat <<\_ASBOX
12296 ## ------------------------------------------ ##
12297 ## Report this to the AC_PACKAGE_NAME lists.  ##
12298 ## ------------------------------------------ ##
12299 _ASBOX
12300     ) |
12301       sed "s/^/$as_me: WARNING:     /" >&2
12302     ;;
12303 esac
12304 echo "$as_me:$LINENO: checking for $ac_header" >&5
12305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   eval "$as_ac_Header=\$ac_header_preproc"
12310 fi
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12313
12314 fi
12315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12316   cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12318 _ACEOF
12319
12320 fi
12321
12322 done
12323
12324
12325 for ac_header in unistd.h
12326 do
12327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12329   echo "$as_me:$LINENO: checking for $ac_header" >&5
12330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332   echo $ECHO_N "(cached) $ECHO_C" >&6
12333 fi
12334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12336 else
12337   # Is the header compilable?
12338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 $ac_includes_default
12347 #include <$ac_header>
12348 _ACEOF
12349 rm -f conftest.$ac_objext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12351   (eval $ac_compile) 2>conftest.er1
12352   ac_status=$?
12353   grep -v '^ *+' conftest.er1 >conftest.err
12354   rm -f conftest.er1
12355   cat conftest.err >&5
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } &&
12358          { ac_try='test -z "$ac_c_werror_flag"
12359                          || test ! -s conftest.err'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest.$ac_objext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_header_compiler=yes
12372 else
12373   echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 ac_header_compiler=no
12377 fi
12378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12380 echo "${ECHO_T}$ac_header_compiler" >&6
12381
12382 # Is the header present?
12383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h.  */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h.  */
12391 #include <$ac_header>
12392 _ACEOF
12393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12395   ac_status=$?
12396   grep -v '^ *+' conftest.er1 >conftest.err
12397   rm -f conftest.er1
12398   cat conftest.err >&5
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } >/dev/null; then
12401   if test -s conftest.err; then
12402     ac_cpp_err=$ac_c_preproc_warn_flag
12403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12404   else
12405     ac_cpp_err=
12406   fi
12407 else
12408   ac_cpp_err=yes
12409 fi
12410 if test -z "$ac_cpp_err"; then
12411   ac_header_preproc=yes
12412 else
12413   echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416   ac_header_preproc=no
12417 fi
12418 rm -f conftest.err conftest.$ac_ext
12419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420 echo "${ECHO_T}$ac_header_preproc" >&6
12421
12422 # So?  What about this header?
12423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12424   yes:no: )
12425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12429     ac_header_preproc=yes
12430     ;;
12431   no:yes:* )
12432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12444     (
12445       cat <<\_ASBOX
12446 ## ------------------------------------------ ##
12447 ## Report this to the AC_PACKAGE_NAME lists.  ##
12448 ## ------------------------------------------ ##
12449 _ASBOX
12450     ) |
12451       sed "s/^/$as_me: WARNING:     /" >&2
12452     ;;
12453 esac
12454 echo "$as_me:$LINENO: checking for $ac_header" >&5
12455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459   eval "$as_ac_Header=\$ac_header_preproc"
12460 fi
12461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12463
12464 fi
12465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12466   cat >>confdefs.h <<_ACEOF
12467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12468 _ACEOF
12469
12470 fi
12471
12472 done
12473
12474
12475 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12476 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12477 # think that we don't have <curses.h> if we're using GCC.
12478 case $host_os in
12479   solaris2.[789])
12480     if test "$GCC" = yes; then
12481
12482 cat >>confdefs.h <<\_ACEOF
12483 #define _MSE_INT_H 1
12484 _ACEOF
12485
12486     fi ;;
12487 esac
12488
12489
12490
12491
12492 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12493 do
12494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12496   echo "$as_me:$LINENO: checking for $ac_header" >&5
12497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499   echo $ECHO_N "(cached) $ECHO_C" >&6
12500 fi
12501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12503 else
12504   # Is the header compilable?
12505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h.  */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h.  */
12513 $ac_includes_default
12514 #include <$ac_header>
12515 _ACEOF
12516 rm -f conftest.$ac_objext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518   (eval $ac_compile) 2>conftest.er1
12519   ac_status=$?
12520   grep -v '^ *+' conftest.er1 >conftest.err
12521   rm -f conftest.er1
12522   cat conftest.err >&5
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); } &&
12525          { ac_try='test -z "$ac_c_werror_flag"
12526                          || test ! -s conftest.err'
12527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528   (eval $ac_try) 2>&5
12529   ac_status=$?
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); }; } &&
12532          { ac_try='test -s conftest.$ac_objext'
12533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534   (eval $ac_try) 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; }; then
12538   ac_header_compiler=yes
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543 ac_header_compiler=no
12544 fi
12545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 echo "${ECHO_T}$ac_header_compiler" >&6
12548
12549 # Is the header present?
12550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h.  */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h.  */
12558 #include <$ac_header>
12559 _ACEOF
12560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12562   ac_status=$?
12563   grep -v '^ *+' conftest.er1 >conftest.err
12564   rm -f conftest.er1
12565   cat conftest.err >&5
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); } >/dev/null; then
12568   if test -s conftest.err; then
12569     ac_cpp_err=$ac_c_preproc_warn_flag
12570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12571   else
12572     ac_cpp_err=
12573   fi
12574 else
12575   ac_cpp_err=yes
12576 fi
12577 if test -z "$ac_cpp_err"; then
12578   ac_header_preproc=yes
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583   ac_header_preproc=no
12584 fi
12585 rm -f conftest.err conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 echo "${ECHO_T}$ac_header_preproc" >&6
12588
12589 # So?  What about this header?
12590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12591   yes:no: )
12592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12596     ac_header_preproc=yes
12597     ;;
12598   no:yes:* )
12599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12611     (
12612       cat <<\_ASBOX
12613 ## ------------------------------------------ ##
12614 ## Report this to the AC_PACKAGE_NAME lists.  ##
12615 ## ------------------------------------------ ##
12616 _ASBOX
12617     ) |
12618       sed "s/^/$as_me: WARNING:     /" >&2
12619     ;;
12620 esac
12621 echo "$as_me:$LINENO: checking for $ac_header" >&5
12622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626   eval "$as_ac_Header=\$ac_header_preproc"
12627 fi
12628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12630
12631 fi
12632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12633   cat >>confdefs.h <<_ACEOF
12634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12635 _ACEOF
12636
12637 fi
12638
12639 done
12640
12641
12642
12643 for ac_header in ncurses/term.h term.h
12644 do
12645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12647   echo "$as_me:$LINENO: checking for $ac_header" >&5
12648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12650   echo $ECHO_N "(cached) $ECHO_C" >&6
12651 fi
12652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12654 else
12655   # Is the header compilable?
12656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664 $ac_includes_default
12665 #include <$ac_header>
12666 _ACEOF
12667 rm -f conftest.$ac_objext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669   (eval $ac_compile) 2>conftest.er1
12670   ac_status=$?
12671   grep -v '^ *+' conftest.er1 >conftest.err
12672   rm -f conftest.er1
12673   cat conftest.err >&5
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); } &&
12676          { ac_try='test -z "$ac_c_werror_flag"
12677                          || test ! -s conftest.err'
12678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679   (eval $ac_try) 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); }; } &&
12683          { ac_try='test -s conftest.$ac_objext'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; }; then
12689   ac_header_compiler=yes
12690 else
12691   echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694 ac_header_compiler=no
12695 fi
12696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12698 echo "${ECHO_T}$ac_header_compiler" >&6
12699
12700 # Is the header present?
12701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709 #include <$ac_header>
12710 _ACEOF
12711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12713   ac_status=$?
12714   grep -v '^ *+' conftest.er1 >conftest.err
12715   rm -f conftest.er1
12716   cat conftest.err >&5
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } >/dev/null; then
12719   if test -s conftest.err; then
12720     ac_cpp_err=$ac_c_preproc_warn_flag
12721     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12722   else
12723     ac_cpp_err=
12724   fi
12725 else
12726   ac_cpp_err=yes
12727 fi
12728 if test -z "$ac_cpp_err"; then
12729   ac_header_preproc=yes
12730 else
12731   echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734   ac_header_preproc=no
12735 fi
12736 rm -f conftest.err conftest.$ac_ext
12737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12738 echo "${ECHO_T}$ac_header_preproc" >&6
12739
12740 # So?  What about this header?
12741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12742   yes:no: )
12743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12747     ac_header_preproc=yes
12748     ;;
12749   no:yes:* )
12750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12762     (
12763       cat <<\_ASBOX
12764 ## ------------------------------------------ ##
12765 ## Report this to the AC_PACKAGE_NAME lists.  ##
12766 ## ------------------------------------------ ##
12767 _ASBOX
12768     ) |
12769       sed "s/^/$as_me: WARNING:     /" >&2
12770     ;;
12771 esac
12772 echo "$as_me:$LINENO: checking for $ac_header" >&5
12773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12775   echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777   eval "$as_ac_Header=\$ac_header_preproc"
12778 fi
12779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12781
12782 fi
12783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12784   cat >>confdefs.h <<_ACEOF
12785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12786 _ACEOF
12787
12788 fi
12789
12790 done
12791
12792
12793 # FIXME: kettenis/20030102: In most cases we include these
12794 # unconditionally, so what's the point in checking these?
12795
12796
12797 for ac_header in ctype.h time.h
12798 do
12799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12801   echo "$as_me:$LINENO: checking for $ac_header" >&5
12802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12804   echo $ECHO_N "(cached) $ECHO_C" >&6
12805 fi
12806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12808 else
12809   # Is the header compilable?
12810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12812 cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h.  */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h.  */
12818 $ac_includes_default
12819 #include <$ac_header>
12820 _ACEOF
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823   (eval $ac_compile) 2>conftest.er1
12824   ac_status=$?
12825   grep -v '^ *+' conftest.er1 >conftest.err
12826   rm -f conftest.er1
12827   cat conftest.err >&5
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); } &&
12830          { ac_try='test -z "$ac_c_werror_flag"
12831                          || test ! -s conftest.err'
12832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833   (eval $ac_try) 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; } &&
12837          { ac_try='test -s conftest.$ac_objext'
12838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839   (eval $ac_try) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); }; }; then
12843   ac_header_compiler=yes
12844 else
12845   echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12847
12848 ac_header_compiler=no
12849 fi
12850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12852 echo "${ECHO_T}$ac_header_compiler" >&6
12853
12854 # Is the header present?
12855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12857 cat >conftest.$ac_ext <<_ACEOF
12858 /* confdefs.h.  */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h.  */
12863 #include <$ac_header>
12864 _ACEOF
12865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12867   ac_status=$?
12868   grep -v '^ *+' conftest.er1 >conftest.err
12869   rm -f conftest.er1
12870   cat conftest.err >&5
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } >/dev/null; then
12873   if test -s conftest.err; then
12874     ac_cpp_err=$ac_c_preproc_warn_flag
12875     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12876   else
12877     ac_cpp_err=
12878   fi
12879 else
12880   ac_cpp_err=yes
12881 fi
12882 if test -z "$ac_cpp_err"; then
12883   ac_header_preproc=yes
12884 else
12885   echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888   ac_header_preproc=no
12889 fi
12890 rm -f conftest.err conftest.$ac_ext
12891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12892 echo "${ECHO_T}$ac_header_preproc" >&6
12893
12894 # So?  What about this header?
12895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12896   yes:no: )
12897     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12901     ac_header_preproc=yes
12902     ;;
12903   no:yes:* )
12904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12906     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12907 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12908     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12910     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12911 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12914     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12916     (
12917       cat <<\_ASBOX
12918 ## ------------------------------------------ ##
12919 ## Report this to the AC_PACKAGE_NAME lists.  ##
12920 ## ------------------------------------------ ##
12921 _ASBOX
12922     ) |
12923       sed "s/^/$as_me: WARNING:     /" >&2
12924     ;;
12925 esac
12926 echo "$as_me:$LINENO: checking for $ac_header" >&5
12927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929   echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931   eval "$as_ac_Header=\$ac_header_preproc"
12932 fi
12933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12935
12936 fi
12937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12938   cat >>confdefs.h <<_ACEOF
12939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12940 _ACEOF
12941
12942 fi
12943
12944 done
12945
12946
12947 echo "$as_me:$LINENO: checking for member st_blocks in struct stat" >&5
12948 echo $ECHO_N "checking for member st_blocks in struct stat... $ECHO_C" >&6
12949 if test "${gdb_cv_have_struct_stat_with_st_blocks_member+set}" = set; then
12950   echo $ECHO_N "(cached) $ECHO_C" >&6
12951 else
12952   cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h.  */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h.  */
12958 #include <sys/types.h>
12959 #include <sys/stat.h>
12960 int
12961 main ()
12962 {
12963 struct stat st; (void) st.st_blocks;
12964   ;
12965   return 0;
12966 }
12967 _ACEOF
12968 rm -f conftest.$ac_objext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970   (eval $ac_compile) 2>conftest.er1
12971   ac_status=$?
12972   grep -v '^ *+' conftest.er1 >conftest.err
12973   rm -f conftest.er1
12974   cat conftest.err >&5
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } &&
12977          { ac_try='test -z "$ac_c_werror_flag"
12978                          || test ! -s conftest.err'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; } &&
12984          { ac_try='test -s conftest.$ac_objext'
12985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986   (eval $ac_try) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; }; then
12990   gdb_cv_have_struct_stat_with_st_blocks_member=yes
12991 else
12992   echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 gdb_cv_have_struct_stat_with_st_blocks_member=no
12996 fi
12997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12998 fi
12999
13000 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_stat_with_st_blocks_member" >&5
13001 echo "${ECHO_T}$gdb_cv_have_struct_stat_with_st_blocks_member" >&6
13002 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
13003   cat >>confdefs.h <<\_ACEOF
13004 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13005 _ACEOF
13006
13007 fi
13008
13009 # ------------------------- #
13010 # Checks for declarations.  #
13011 # ------------------------- #
13012
13013 for ac_func in getopt
13014 do
13015   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13016 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13017 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
13018 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
13019   echo $ECHO_N "(cached) $ECHO_C" >&6
13020 else
13021   cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h.  */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h.  */
13027 #undef $ac_tr_decl
13028 #define $ac_tr_decl 1
13029
13030
13031 int
13032 main ()
13033 {
13034 #ifndef $ac_func
13035 char *(*pfn) = (char *(*)) $ac_func ;
13036 #endif
13037   ;
13038   return 0;
13039 }
13040 _ACEOF
13041 rm -f conftest.$ac_objext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043   (eval $ac_compile) 2>conftest.er1
13044   ac_status=$?
13045   grep -v '^ *+' conftest.er1 >conftest.err
13046   rm -f conftest.er1
13047   cat conftest.err >&5
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } &&
13050          { ac_try='test -z "$ac_c_werror_flag"
13051                          || test ! -s conftest.err'
13052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053   (eval $ac_try) 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); }; } &&
13057          { ac_try='test -s conftest.$ac_objext'
13058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059   (eval $ac_try) 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; }; then
13063   eval "gcc_cv_have_decl_$ac_func=yes"
13064 else
13065   echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13067
13068 eval "gcc_cv_have_decl_$ac_func=no"
13069 fi
13070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13071 fi
13072
13073 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13074   echo "$as_me:$LINENO: result: yes" >&5
13075 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
13076 #define $ac_tr_decl 1
13077 _ACEOF
13078
13079 else
13080   echo "$as_me:$LINENO: result: no" >&5
13081 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
13082 #define $ac_tr_decl 0
13083 _ACEOF
13084
13085 fi
13086
13087 done
13088 if test x = y ; then
13089
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_DECL_GETOPT 1
13092 _ACEOF
13093 fi
13094
13095
13096 # ------------------ #
13097 # Checks for types.  #
13098 # ------------------ #
13099
13100 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13101 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13102 if test "${ac_cv_type_signal+set}" = set; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105   cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h.  */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h.  */
13111 #include <sys/types.h>
13112 #include <signal.h>
13113 #ifdef signal
13114 # undef signal
13115 #endif
13116 #ifdef __cplusplus
13117 extern "C" void (*signal (int, void (*)(int)))(int);
13118 #else
13119 void (*signal ()) ();
13120 #endif
13121
13122 int
13123 main ()
13124 {
13125 int i;
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 rm -f conftest.$ac_objext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132   (eval $ac_compile) 2>conftest.er1
13133   ac_status=$?
13134   grep -v '^ *+' conftest.er1 >conftest.err
13135   rm -f conftest.er1
13136   cat conftest.err >&5
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); } &&
13139          { ac_try='test -z "$ac_c_werror_flag"
13140                          || test ! -s conftest.err'
13141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142   (eval $ac_try) 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); }; } &&
13146          { ac_try='test -s conftest.$ac_objext'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; }; then
13152   ac_cv_type_signal=void
13153 else
13154   echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13156
13157 ac_cv_type_signal=int
13158 fi
13159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13160 fi
13161 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13162 echo "${ECHO_T}$ac_cv_type_signal" >&6
13163
13164 cat >>confdefs.h <<_ACEOF
13165 #define RETSIGTYPE $ac_cv_type_signal
13166 _ACEOF
13167
13168
13169
13170 # ------------------------------------- #
13171 # Checks for compiler characteristics.  #
13172 # ------------------------------------- #
13173
13174 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13175 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13176 if test "${ac_cv_c_const+set}" = set; then
13177   echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179   cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h.  */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h.  */
13185
13186 int
13187 main ()
13188 {
13189 /* FIXME: Include the comments suggested by Paul. */
13190 #ifndef __cplusplus
13191   /* Ultrix mips cc rejects this.  */
13192   typedef int charset[2];
13193   const charset x;
13194   /* SunOS 4.1.1 cc rejects this.  */
13195   char const *const *ccp;
13196   char **p;
13197   /* NEC SVR4.0.2 mips cc rejects this.  */
13198   struct point {int x, y;};
13199   static struct point const zero = {0,0};
13200   /* AIX XL C 1.02.0.0 rejects this.
13201      It does not let you subtract one const X* pointer from another in
13202      an arm of an if-expression whose if-part is not a constant
13203      expression */
13204   const char *g = "string";
13205   ccp = &g + (g ? g-g : 0);
13206   /* HPUX 7.0 cc rejects these. */
13207   ++ccp;
13208   p = (char**) ccp;
13209   ccp = (char const *const *) p;
13210   { /* SCO 3.2v4 cc rejects this.  */
13211     char *t;
13212     char const *s = 0 ? (char *) 0 : (char const *) 0;
13213
13214     *t++ = 0;
13215   }
13216   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13217     int x[] = {25, 17};
13218     const int *foo = &x[0];
13219     ++foo;
13220   }
13221   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13222     typedef const int *iptr;
13223     iptr p = 0;
13224     ++p;
13225   }
13226   { /* AIX XL C 1.02.0.0 rejects this saying
13227        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13228     struct s { int j; const int *ap[3]; };
13229     struct s *b; b->j = 5;
13230   }
13231   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13232     const int foo = 10;
13233   }
13234 #endif
13235
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242   (eval $ac_compile) 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } &&
13249          { ac_try='test -z "$ac_c_werror_flag"
13250                          || test ! -s conftest.err'
13251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252   (eval $ac_try) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; } &&
13256          { ac_try='test -s conftest.$ac_objext'
13257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258   (eval $ac_try) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; }; then
13262   ac_cv_c_const=yes
13263 else
13264   echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 ac_cv_c_const=no
13268 fi
13269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13270 fi
13271 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13272 echo "${ECHO_T}$ac_cv_c_const" >&6
13273 if test $ac_cv_c_const = no; then
13274
13275 cat >>confdefs.h <<\_ACEOF
13276 #define const
13277 _ACEOF
13278
13279 fi
13280
13281 echo "$as_me:$LINENO: checking for inline" >&5
13282 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13283 if test "${ac_cv_c_inline+set}" = set; then
13284   echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286   ac_cv_c_inline=no
13287 for ac_kw in inline __inline__ __inline; do
13288   cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294 #ifndef __cplusplus
13295 typedef int foo_t;
13296 static $ac_kw foo_t static_foo () {return 0; }
13297 $ac_kw foo_t foo () {return 0; }
13298 #endif
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_cv_c_inline=$ac_kw; break
13324 else
13325   echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328 fi
13329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13330 done
13331
13332 fi
13333 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13334 echo "${ECHO_T}$ac_cv_c_inline" >&6
13335
13336
13337 case $ac_cv_c_inline in
13338   inline | yes) ;;
13339   *)
13340     case $ac_cv_c_inline in
13341       no) ac_val=;;
13342       *) ac_val=$ac_cv_c_inline;;
13343     esac
13344     cat >>confdefs.h <<_ACEOF
13345 #ifndef __cplusplus
13346 #define inline $ac_val
13347 #endif
13348 _ACEOF
13349     ;;
13350 esac
13351
13352
13353 # ------------------------------ #
13354 # Checks for library functions.  #
13355 # ------------------------------ #
13356
13357 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13358 # for constant arguments.  Useless!
13359 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13360 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13361 if test "${ac_cv_working_alloca_h+set}" = set; then
13362   echo $ECHO_N "(cached) $ECHO_C" >&6
13363 else
13364   cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h.  */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h.  */
13370 #include <alloca.h>
13371 int
13372 main ()
13373 {
13374 char *p = (char *) alloca (2 * sizeof (int));
13375   ;
13376   return 0;
13377 }
13378 _ACEOF
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381   (eval $ac_link) 2>conftest.er1
13382   ac_status=$?
13383   grep -v '^ *+' conftest.er1 >conftest.err
13384   rm -f conftest.er1
13385   cat conftest.err >&5
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } &&
13388          { ac_try='test -z "$ac_c_werror_flag"
13389                          || test ! -s conftest.err'
13390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391   (eval $ac_try) 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); }; } &&
13395          { ac_try='test -s conftest$ac_exeext'
13396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397   (eval $ac_try) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; }; then
13401   ac_cv_working_alloca_h=yes
13402 else
13403   echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 ac_cv_working_alloca_h=no
13407 fi
13408 rm -f conftest.err conftest.$ac_objext \
13409       conftest$ac_exeext conftest.$ac_ext
13410 fi
13411 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13412 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13413 if test $ac_cv_working_alloca_h = yes; then
13414
13415 cat >>confdefs.h <<\_ACEOF
13416 #define HAVE_ALLOCA_H 1
13417 _ACEOF
13418
13419 fi
13420
13421 echo "$as_me:$LINENO: checking for alloca" >&5
13422 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13423 if test "${ac_cv_func_alloca_works+set}" = set; then
13424   echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426   cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h.  */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h.  */
13432 #ifdef __GNUC__
13433 # define alloca __builtin_alloca
13434 #else
13435 # ifdef _MSC_VER
13436 #  include <malloc.h>
13437 #  define alloca _alloca
13438 # else
13439 #  if HAVE_ALLOCA_H
13440 #   include <alloca.h>
13441 #  else
13442 #   ifdef _AIX
13443  #pragma alloca
13444 #   else
13445 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13446 char *alloca ();
13447 #    endif
13448 #   endif
13449 #  endif
13450 # endif
13451 #endif
13452
13453 int
13454 main ()
13455 {
13456 char *p = (char *) alloca (1);
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463   (eval $ac_link) 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } &&
13470          { ac_try='test -z "$ac_c_werror_flag"
13471                          || test ! -s conftest.err'
13472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473   (eval $ac_try) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; } &&
13477          { ac_try='test -s conftest$ac_exeext'
13478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479   (eval $ac_try) 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); }; }; then
13483   ac_cv_func_alloca_works=yes
13484 else
13485   echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488 ac_cv_func_alloca_works=no
13489 fi
13490 rm -f conftest.err conftest.$ac_objext \
13491       conftest$ac_exeext conftest.$ac_ext
13492 fi
13493 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13494 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13495
13496 if test $ac_cv_func_alloca_works = yes; then
13497
13498 cat >>confdefs.h <<\_ACEOF
13499 #define HAVE_ALLOCA 1
13500 _ACEOF
13501
13502 else
13503   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13504 # that cause trouble.  Some versions do not even contain alloca or
13505 # contain a buggy version.  If you still want to use their alloca,
13506 # use ar to extract alloca.o from them instead of compiling alloca.c.
13507
13508 ALLOCA=alloca.$ac_objext
13509
13510 cat >>confdefs.h <<\_ACEOF
13511 #define C_ALLOCA 1
13512 _ACEOF
13513
13514
13515 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13516 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13517 if test "${ac_cv_os_cray+set}" = set; then
13518   echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520   cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h.  */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h.  */
13526 #if defined(CRAY) && ! defined(CRAY2)
13527 webecray
13528 #else
13529 wenotbecray
13530 #endif
13531
13532 _ACEOF
13533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13534   $EGREP "webecray" >/dev/null 2>&1; then
13535   ac_cv_os_cray=yes
13536 else
13537   ac_cv_os_cray=no
13538 fi
13539 rm -f conftest*
13540
13541 fi
13542 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13543 echo "${ECHO_T}$ac_cv_os_cray" >&6
13544 if test $ac_cv_os_cray = yes; then
13545   for ac_func in _getb67 GETB67 getb67; do
13546     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13547 echo "$as_me:$LINENO: checking for $ac_func" >&5
13548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13549 if eval "test \"\${$as_ac_var+set}\" = set"; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552   cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13560 #define $ac_func innocuous_$ac_func
13561
13562 /* System header to define __stub macros and hopefully few prototypes,
13563     which can conflict with char $ac_func (); below.
13564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13565     <limits.h> exists even on freestanding compilers.  */
13566
13567 #ifdef __STDC__
13568 # include <limits.h>
13569 #else
13570 # include <assert.h>
13571 #endif
13572
13573 #undef $ac_func
13574
13575 /* Override any gcc2 internal prototype to avoid an error.  */
13576 #ifdef __cplusplus
13577 extern "C"
13578 {
13579 #endif
13580 /* We use char because int might match the return type of a gcc2
13581    builtin and then its argument prototype would still apply.  */
13582 char $ac_func ();
13583 /* The GNU C library defines this for functions which it implements
13584     to always fail with ENOSYS.  Some functions are actually named
13585     something starting with __ and the normal name is an alias.  */
13586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13587 choke me
13588 #else
13589 char (*f) () = $ac_func;
13590 #endif
13591 #ifdef __cplusplus
13592 }
13593 #endif
13594
13595 int
13596 main ()
13597 {
13598 return f != $ac_func;
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605   (eval $ac_link) 2>conftest.er1
13606   ac_status=$?
13607   grep -v '^ *+' conftest.er1 >conftest.err
13608   rm -f conftest.er1
13609   cat conftest.err >&5
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } &&
13612          { ac_try='test -z "$ac_c_werror_flag"
13613                          || test ! -s conftest.err'
13614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615   (eval $ac_try) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; } &&
13619          { ac_try='test -s conftest$ac_exeext'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }; then
13625   eval "$as_ac_var=yes"
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 eval "$as_ac_var=no"
13631 fi
13632 rm -f conftest.err conftest.$ac_objext \
13633       conftest$ac_exeext conftest.$ac_ext
13634 fi
13635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13637 if test `eval echo '${'$as_ac_var'}'` = yes; then
13638
13639 cat >>confdefs.h <<_ACEOF
13640 #define CRAY_STACKSEG_END $ac_func
13641 _ACEOF
13642
13643     break
13644 fi
13645
13646   done
13647 fi
13648
13649 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13650 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13651 if test "${ac_cv_c_stack_direction+set}" = set; then
13652   echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654   if test "$cross_compiling" = yes; then
13655   ac_cv_c_stack_direction=0
13656 else
13657   cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663 int
13664 find_stack_direction ()
13665 {
13666   static char *addr = 0;
13667   auto char dummy;
13668   if (addr == 0)
13669     {
13670       addr = &dummy;
13671       return find_stack_direction ();
13672     }
13673   else
13674     return (&dummy > addr) ? 1 : -1;
13675 }
13676
13677 int
13678 main ()
13679 {
13680   exit (find_stack_direction () < 0);
13681 }
13682 _ACEOF
13683 rm -f conftest$ac_exeext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13685   (eval $ac_link) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690   (eval $ac_try) 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); }; }; then
13694   ac_cv_c_stack_direction=1
13695 else
13696   echo "$as_me: program exited with status $ac_status" >&5
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700 ( exit $ac_status )
13701 ac_cv_c_stack_direction=-1
13702 fi
13703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13704 fi
13705 fi
13706 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13707 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13708
13709 cat >>confdefs.h <<_ACEOF
13710 #define STACK_DIRECTION $ac_cv_c_stack_direction
13711 _ACEOF
13712
13713
13714 fi
13715
13716
13717
13718 for ac_header in stdlib.h unistd.h
13719 do
13720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13722   echo "$as_me:$LINENO: checking for $ac_header" >&5
13723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 fi
13727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13729 else
13730   # Is the header compilable?
13731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13733 cat >conftest.$ac_ext <<_ACEOF
13734 /* confdefs.h.  */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h.  */
13739 $ac_includes_default
13740 #include <$ac_header>
13741 _ACEOF
13742 rm -f conftest.$ac_objext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744   (eval $ac_compile) 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } &&
13751          { ac_try='test -z "$ac_c_werror_flag"
13752                          || test ! -s conftest.err'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; } &&
13758          { ac_try='test -s conftest.$ac_objext'
13759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760   (eval $ac_try) 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; }; then
13764   ac_header_compiler=yes
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 ac_header_compiler=no
13770 fi
13771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13773 echo "${ECHO_T}$ac_header_compiler" >&6
13774
13775 # Is the header present?
13776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h.  */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h.  */
13784 #include <$ac_header>
13785 _ACEOF
13786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13788   ac_status=$?
13789   grep -v '^ *+' conftest.er1 >conftest.err
13790   rm -f conftest.er1
13791   cat conftest.err >&5
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); } >/dev/null; then
13794   if test -s conftest.err; then
13795     ac_cpp_err=$ac_c_preproc_warn_flag
13796     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13797   else
13798     ac_cpp_err=
13799   fi
13800 else
13801   ac_cpp_err=yes
13802 fi
13803 if test -z "$ac_cpp_err"; then
13804   ac_header_preproc=yes
13805 else
13806   echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809   ac_header_preproc=no
13810 fi
13811 rm -f conftest.err conftest.$ac_ext
13812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13813 echo "${ECHO_T}$ac_header_preproc" >&6
13814
13815 # So?  What about this header?
13816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13817   yes:no: )
13818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13822     ac_header_preproc=yes
13823     ;;
13824   no:yes:* )
13825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13837     (
13838       cat <<\_ASBOX
13839 ## ------------------------------------------ ##
13840 ## Report this to the AC_PACKAGE_NAME lists.  ##
13841 ## ------------------------------------------ ##
13842 _ASBOX
13843     ) |
13844       sed "s/^/$as_me: WARNING:     /" >&2
13845     ;;
13846 esac
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850   echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852   eval "$as_ac_Header=\$ac_header_preproc"
13853 fi
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13856
13857 fi
13858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13859   cat >>confdefs.h <<_ACEOF
13860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13861 _ACEOF
13862
13863 fi
13864
13865 done
13866
13867
13868 for ac_func in getpagesize
13869 do
13870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13871 echo "$as_me:$LINENO: checking for $ac_func" >&5
13872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13873 if eval "test \"\${$as_ac_var+set}\" = set"; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13884 #define $ac_func innocuous_$ac_func
13885
13886 /* System header to define __stub macros and hopefully few prototypes,
13887     which can conflict with char $ac_func (); below.
13888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13889     <limits.h> exists even on freestanding compilers.  */
13890
13891 #ifdef __STDC__
13892 # include <limits.h>
13893 #else
13894 # include <assert.h>
13895 #endif
13896
13897 #undef $ac_func
13898
13899 /* Override any gcc2 internal prototype to avoid an error.  */
13900 #ifdef __cplusplus
13901 extern "C"
13902 {
13903 #endif
13904 /* We use char because int might match the return type of a gcc2
13905    builtin and then its argument prototype would still apply.  */
13906 char $ac_func ();
13907 /* The GNU C library defines this for functions which it implements
13908     to always fail with ENOSYS.  Some functions are actually named
13909     something starting with __ and the normal name is an alias.  */
13910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13911 choke me
13912 #else
13913 char (*f) () = $ac_func;
13914 #endif
13915 #ifdef __cplusplus
13916 }
13917 #endif
13918
13919 int
13920 main ()
13921 {
13922 return f != $ac_func;
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929   (eval $ac_link) 2>conftest.er1
13930   ac_status=$?
13931   grep -v '^ *+' conftest.er1 >conftest.err
13932   rm -f conftest.er1
13933   cat conftest.err >&5
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } &&
13936          { ac_try='test -z "$ac_c_werror_flag"
13937                          || test ! -s conftest.err'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; } &&
13943          { ac_try='test -s conftest$ac_exeext'
13944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945   (eval $ac_try) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; }; then
13949   eval "$as_ac_var=yes"
13950 else
13951   echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954 eval "$as_ac_var=no"
13955 fi
13956 rm -f conftest.err conftest.$ac_objext \
13957       conftest$ac_exeext conftest.$ac_ext
13958 fi
13959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13961 if test `eval echo '${'$as_ac_var'}'` = yes; then
13962   cat >>confdefs.h <<_ACEOF
13963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13964 _ACEOF
13965
13966 fi
13967 done
13968
13969 echo "$as_me:$LINENO: checking for working mmap" >&5
13970 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13971 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13972   echo $ECHO_N "(cached) $ECHO_C" >&6
13973 else
13974   if test "$cross_compiling" = yes; then
13975   ac_cv_func_mmap_fixed_mapped=no
13976 else
13977   cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 $ac_includes_default
13984 /* malloc might have been renamed as rpl_malloc. */
13985 #undef malloc
13986
13987 /* Thanks to Mike Haertel and Jim Avera for this test.
13988    Here is a matrix of mmap possibilities:
13989         mmap private not fixed
13990         mmap private fixed at somewhere currently unmapped
13991         mmap private fixed at somewhere already mapped
13992         mmap shared not fixed
13993         mmap shared fixed at somewhere currently unmapped
13994         mmap shared fixed at somewhere already mapped
13995    For private mappings, we should verify that changes cannot be read()
13996    back from the file, nor mmap's back from the file at a different
13997    address.  (There have been systems where private was not correctly
13998    implemented like the infamous i386 svr4.0, and systems where the
13999    VM page cache was not coherent with the file system buffer cache
14000    like early versions of FreeBSD and possibly contemporary NetBSD.)
14001    For shared mappings, we should conversely verify that changes get
14002    propagated back to all the places they're supposed to be.
14003
14004    Grep wants private fixed already mapped.
14005    The main things grep needs to know about mmap are:
14006    * does it exist and is it safe to write into the mmap'd area
14007    * how to use it (BSD variants)  */
14008
14009 #include <fcntl.h>
14010 #include <sys/mman.h>
14011
14012 #if !STDC_HEADERS && !HAVE_STDLIB_H
14013 char *malloc ();
14014 #endif
14015
14016 /* This mess was copied from the GNU getpagesize.h.  */
14017 #if !HAVE_GETPAGESIZE
14018 /* Assume that all systems that can run configure have sys/param.h.  */
14019 # if !HAVE_SYS_PARAM_H
14020 #  define HAVE_SYS_PARAM_H 1
14021 # endif
14022
14023 # ifdef _SC_PAGESIZE
14024 #  define getpagesize() sysconf(_SC_PAGESIZE)
14025 # else /* no _SC_PAGESIZE */
14026 #  if HAVE_SYS_PARAM_H
14027 #   include <sys/param.h>
14028 #   ifdef EXEC_PAGESIZE
14029 #    define getpagesize() EXEC_PAGESIZE
14030 #   else /* no EXEC_PAGESIZE */
14031 #    ifdef NBPG
14032 #     define getpagesize() NBPG * CLSIZE
14033 #     ifndef CLSIZE
14034 #      define CLSIZE 1
14035 #     endif /* no CLSIZE */
14036 #    else /* no NBPG */
14037 #     ifdef NBPC
14038 #      define getpagesize() NBPC
14039 #     else /* no NBPC */
14040 #      ifdef PAGESIZE
14041 #       define getpagesize() PAGESIZE
14042 #      endif /* PAGESIZE */
14043 #     endif /* no NBPC */
14044 #    endif /* no NBPG */
14045 #   endif /* no EXEC_PAGESIZE */
14046 #  else /* no HAVE_SYS_PARAM_H */
14047 #   define getpagesize() 8192   /* punt totally */
14048 #  endif /* no HAVE_SYS_PARAM_H */
14049 # endif /* no _SC_PAGESIZE */
14050
14051 #endif /* no HAVE_GETPAGESIZE */
14052
14053 int
14054 main ()
14055 {
14056   char *data, *data2, *data3;
14057   int i, pagesize;
14058   int fd;
14059
14060   pagesize = getpagesize ();
14061
14062   /* First, make a file with some known garbage in it. */
14063   data = (char *) malloc (pagesize);
14064   if (!data)
14065     exit (1);
14066   for (i = 0; i < pagesize; ++i)
14067     *(data + i) = rand ();
14068   umask (0);
14069   fd = creat ("conftest.mmap", 0600);
14070   if (fd < 0)
14071     exit (1);
14072   if (write (fd, data, pagesize) != pagesize)
14073     exit (1);
14074   close (fd);
14075
14076   /* Next, try to mmap the file at a fixed address which already has
14077      something else allocated at it.  If we can, also make sure that
14078      we see the same garbage.  */
14079   fd = open ("conftest.mmap", O_RDWR);
14080   if (fd < 0)
14081     exit (1);
14082   data2 = (char *) malloc (2 * pagesize);
14083   if (!data2)
14084     exit (1);
14085   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14086   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14087                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14088     exit (1);
14089   for (i = 0; i < pagesize; ++i)
14090     if (*(data + i) != *(data2 + i))
14091       exit (1);
14092
14093   /* Finally, make sure that changes to the mapped area do not
14094      percolate back to the file as seen by read().  (This is a bug on
14095      some variants of i386 svr4.0.)  */
14096   for (i = 0; i < pagesize; ++i)
14097     *(data2 + i) = *(data2 + i) + 1;
14098   data3 = (char *) malloc (pagesize);
14099   if (!data3)
14100     exit (1);
14101   if (read (fd, data3, pagesize) != pagesize)
14102     exit (1);
14103   for (i = 0; i < pagesize; ++i)
14104     if (*(data + i) != *(data3 + i))
14105       exit (1);
14106   close (fd);
14107   exit (0);
14108 }
14109 _ACEOF
14110 rm -f conftest$ac_exeext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112   (eval $ac_link) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117   (eval $ac_try) 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); }; }; then
14121   ac_cv_func_mmap_fixed_mapped=yes
14122 else
14123   echo "$as_me: program exited with status $ac_status" >&5
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127 ( exit $ac_status )
14128 ac_cv_func_mmap_fixed_mapped=no
14129 fi
14130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14131 fi
14132 fi
14133 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14134 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14135 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14136
14137 cat >>confdefs.h <<\_ACEOF
14138 #define HAVE_MMAP 1
14139 _ACEOF
14140
14141 fi
14142 rm -f conftest.mmap
14143
14144 echo "$as_me:$LINENO: checking for pid_t" >&5
14145 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14146 if test "${ac_cv_type_pid_t+set}" = set; then
14147   echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149   cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h.  */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h.  */
14155 $ac_includes_default
14156 int
14157 main ()
14158 {
14159 if ((pid_t *) 0)
14160   return 0;
14161 if (sizeof (pid_t))
14162   return 0;
14163   ;
14164   return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169   (eval $ac_compile) 2>conftest.er1
14170   ac_status=$?
14171   grep -v '^ *+' conftest.er1 >conftest.err
14172   rm -f conftest.er1
14173   cat conftest.err >&5
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); } &&
14176          { ac_try='test -z "$ac_c_werror_flag"
14177                          || test ! -s conftest.err'
14178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179   (eval $ac_try) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; } &&
14183          { ac_try='test -s conftest.$ac_objext'
14184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185   (eval $ac_try) 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); }; }; then
14189   ac_cv_type_pid_t=yes
14190 else
14191   echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194 ac_cv_type_pid_t=no
14195 fi
14196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14199 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14200 if test $ac_cv_type_pid_t = yes; then
14201   :
14202 else
14203
14204 cat >>confdefs.h <<_ACEOF
14205 #define pid_t int
14206 _ACEOF
14207
14208 fi
14209
14210
14211
14212 for ac_header in unistd.h vfork.h
14213 do
14214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216   echo "$as_me:$LINENO: checking for $ac_header" >&5
14217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219   echo $ECHO_N "(cached) $ECHO_C" >&6
14220 fi
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14223 else
14224   # Is the header compilable?
14225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 $ac_includes_default
14234 #include <$ac_header>
14235 _ACEOF
14236 rm -f conftest.$ac_objext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238   (eval $ac_compile) 2>conftest.er1
14239   ac_status=$?
14240   grep -v '^ *+' conftest.er1 >conftest.err
14241   rm -f conftest.er1
14242   cat conftest.err >&5
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } &&
14245          { ac_try='test -z "$ac_c_werror_flag"
14246                          || test ! -s conftest.err'
14247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248   (eval $ac_try) 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); }; } &&
14252          { ac_try='test -s conftest.$ac_objext'
14253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254   (eval $ac_try) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_header_compiler=yes
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_header_compiler=no
14264 fi
14265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14267 echo "${ECHO_T}$ac_header_compiler" >&6
14268
14269 # Is the header present?
14270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278 #include <$ac_header>
14279 _ACEOF
14280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14282   ac_status=$?
14283   grep -v '^ *+' conftest.er1 >conftest.err
14284   rm -f conftest.er1
14285   cat conftest.err >&5
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); } >/dev/null; then
14288   if test -s conftest.err; then
14289     ac_cpp_err=$ac_c_preproc_warn_flag
14290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14291   else
14292     ac_cpp_err=
14293   fi
14294 else
14295   ac_cpp_err=yes
14296 fi
14297 if test -z "$ac_cpp_err"; then
14298   ac_header_preproc=yes
14299 else
14300   echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303   ac_header_preproc=no
14304 fi
14305 rm -f conftest.err conftest.$ac_ext
14306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14307 echo "${ECHO_T}$ac_header_preproc" >&6
14308
14309 # So?  What about this header?
14310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14311   yes:no: )
14312     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14316     ac_header_preproc=yes
14317     ;;
14318   no:yes:* )
14319     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14321     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14322 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14323     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14325     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14326 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14329     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14331     (
14332       cat <<\_ASBOX
14333 ## ------------------------------------------ ##
14334 ## Report this to the AC_PACKAGE_NAME lists.  ##
14335 ## ------------------------------------------ ##
14336 _ASBOX
14337     ) |
14338       sed "s/^/$as_me: WARNING:     /" >&2
14339     ;;
14340 esac
14341 echo "$as_me:$LINENO: checking for $ac_header" >&5
14342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14344   echo $ECHO_N "(cached) $ECHO_C" >&6
14345 else
14346   eval "$as_ac_Header=\$ac_header_preproc"
14347 fi
14348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14350
14351 fi
14352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14353   cat >>confdefs.h <<_ACEOF
14354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14355 _ACEOF
14356
14357 fi
14358
14359 done
14360
14361
14362
14363 for ac_func in fork vfork
14364 do
14365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14366 echo "$as_me:$LINENO: checking for $ac_func" >&5
14367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14368 if eval "test \"\${$as_ac_var+set}\" = set"; then
14369   echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371   cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h.  */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h.  */
14377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14379 #define $ac_func innocuous_$ac_func
14380
14381 /* System header to define __stub macros and hopefully few prototypes,
14382     which can conflict with char $ac_func (); below.
14383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14384     <limits.h> exists even on freestanding compilers.  */
14385
14386 #ifdef __STDC__
14387 # include <limits.h>
14388 #else
14389 # include <assert.h>
14390 #endif
14391
14392 #undef $ac_func
14393
14394 /* Override any gcc2 internal prototype to avoid an error.  */
14395 #ifdef __cplusplus
14396 extern "C"
14397 {
14398 #endif
14399 /* We use char because int might match the return type of a gcc2
14400    builtin and then its argument prototype would still apply.  */
14401 char $ac_func ();
14402 /* The GNU C library defines this for functions which it implements
14403     to always fail with ENOSYS.  Some functions are actually named
14404     something starting with __ and the normal name is an alias.  */
14405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14406 choke me
14407 #else
14408 char (*f) () = $ac_func;
14409 #endif
14410 #ifdef __cplusplus
14411 }
14412 #endif
14413
14414 int
14415 main ()
14416 {
14417 return f != $ac_func;
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424   (eval $ac_link) 2>conftest.er1
14425   ac_status=$?
14426   grep -v '^ *+' conftest.er1 >conftest.err
14427   rm -f conftest.er1
14428   cat conftest.err >&5
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); } &&
14431          { ac_try='test -z "$ac_c_werror_flag"
14432                          || test ! -s conftest.err'
14433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434   (eval $ac_try) 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); }; } &&
14438          { ac_try='test -s conftest$ac_exeext'
14439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440   (eval $ac_try) 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; }; then
14444   eval "$as_ac_var=yes"
14445 else
14446   echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449 eval "$as_ac_var=no"
14450 fi
14451 rm -f conftest.err conftest.$ac_objext \
14452       conftest$ac_exeext conftest.$ac_ext
14453 fi
14454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14456 if test `eval echo '${'$as_ac_var'}'` = yes; then
14457   cat >>confdefs.h <<_ACEOF
14458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14459 _ACEOF
14460
14461 fi
14462 done
14463
14464 if test "x$ac_cv_func_fork" = xyes; then
14465   echo "$as_me:$LINENO: checking for working fork" >&5
14466 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14467 if test "${ac_cv_func_fork_works+set}" = set; then
14468   echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470   if test "$cross_compiling" = yes; then
14471   ac_cv_func_fork_works=cross
14472 else
14473   cat >conftest.$ac_ext <<_ACEOF
14474 /* By Ruediger Kuhlmann. */
14475       #include <sys/types.h>
14476       #if HAVE_UNISTD_H
14477       # include <unistd.h>
14478       #endif
14479       /* Some systems only have a dummy stub for fork() */
14480       int main ()
14481       {
14482         if (fork() < 0)
14483           exit (1);
14484         exit (0);
14485       }
14486 _ACEOF
14487 rm -f conftest$ac_exeext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14489   (eval $ac_link) 2>&5
14490   ac_status=$?
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   ac_cv_func_fork_works=yes
14499 else
14500   echo "$as_me: program exited with status $ac_status" >&5
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 ( exit $ac_status )
14505 ac_cv_func_fork_works=no
14506 fi
14507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14508 fi
14509 fi
14510 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14511 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14512
14513 else
14514   ac_cv_func_fork_works=$ac_cv_func_fork
14515 fi
14516 if test "x$ac_cv_func_fork_works" = xcross; then
14517   case $host in
14518     *-*-amigaos* | *-*-msdosdjgpp*)
14519       # Override, as these systems have only a dummy fork() stub
14520       ac_cv_func_fork_works=no
14521       ;;
14522     *)
14523       ac_cv_func_fork_works=yes
14524       ;;
14525   esac
14526   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14527 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14528 fi
14529 ac_cv_func_vfork_works=$ac_cv_func_vfork
14530 if test "x$ac_cv_func_vfork" = xyes; then
14531   echo "$as_me:$LINENO: checking for working vfork" >&5
14532 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14533 if test "${ac_cv_func_vfork_works+set}" = set; then
14534   echo $ECHO_N "(cached) $ECHO_C" >&6
14535 else
14536   if test "$cross_compiling" = yes; then
14537   ac_cv_func_vfork_works=cross
14538 else
14539   cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 /* Thanks to Paul Eggert for this test.  */
14546 #include <stdio.h>
14547 #include <stdlib.h>
14548 #include <sys/types.h>
14549 #include <sys/stat.h>
14550 #include <sys/wait.h>
14551 #if HAVE_UNISTD_H
14552 # include <unistd.h>
14553 #endif
14554 #if HAVE_VFORK_H
14555 # include <vfork.h>
14556 #endif
14557 /* On some sparc systems, changes by the child to local and incoming
14558    argument registers are propagated back to the parent.  The compiler
14559    is told about this with #include <vfork.h>, but some compilers
14560    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14561    static variable whose address is put into a register that is
14562    clobbered by the vfork.  */
14563 static void
14564 #ifdef __cplusplus
14565 sparc_address_test (int arg)
14566 # else
14567 sparc_address_test (arg) int arg;
14568 #endif
14569 {
14570   static pid_t child;
14571   if (!child) {
14572     child = vfork ();
14573     if (child < 0) {
14574       perror ("vfork");
14575       _exit(2);
14576     }
14577     if (!child) {
14578       arg = getpid();
14579       write(-1, "", 0);
14580       _exit (arg);
14581     }
14582   }
14583 }
14584
14585 int
14586 main ()
14587 {
14588   pid_t parent = getpid ();
14589   pid_t child;
14590
14591   sparc_address_test (0);
14592
14593   child = vfork ();
14594
14595   if (child == 0) {
14596     /* Here is another test for sparc vfork register problems.  This
14597        test uses lots of local variables, at least as many local
14598        variables as main has allocated so far including compiler
14599        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14600        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14601        reuse the register of parent for one of the local variables,
14602        since it will think that parent can't possibly be used any more
14603        in this routine.  Assigning to the local variable will thus
14604        munge parent in the parent process.  */
14605     pid_t
14606       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14607       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14608     /* Convince the compiler that p..p7 are live; otherwise, it might
14609        use the same hardware register for all 8 local variables.  */
14610     if (p != p1 || p != p2 || p != p3 || p != p4
14611         || p != p5 || p != p6 || p != p7)
14612       _exit(1);
14613
14614     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14615        from child file descriptors.  If the child closes a descriptor
14616        before it execs or exits, this munges the parent's descriptor
14617        as well.  Test for this by closing stdout in the child.  */
14618     _exit(close(fileno(stdout)) != 0);
14619   } else {
14620     int status;
14621     struct stat st;
14622
14623     while (wait(&status) != child)
14624       ;
14625     exit(
14626          /* Was there some problem with vforking?  */
14627          child < 0
14628
14629          /* Did the child fail?  (This shouldn't happen.)  */
14630          || status
14631
14632          /* Did the vfork/compiler bug occur?  */
14633          || parent != getpid()
14634
14635          /* Did the file descriptor bug occur?  */
14636          || fstat(fileno(stdout), &st) != 0
14637          );
14638   }
14639 }
14640 _ACEOF
14641 rm -f conftest$ac_exeext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14643   (eval $ac_link) 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648   (eval $ac_try) 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; }; then
14652   ac_cv_func_vfork_works=yes
14653 else
14654   echo "$as_me: program exited with status $ac_status" >&5
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658 ( exit $ac_status )
14659 ac_cv_func_vfork_works=no
14660 fi
14661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14662 fi
14663 fi
14664 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14665 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
14666
14667 fi;
14668 if test "x$ac_cv_func_fork_works" = xcross; then
14669   ac_cv_func_vfork_works=$ac_cv_func_vfork
14670   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14671 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14672 fi
14673
14674 if test "x$ac_cv_func_vfork_works" = xyes; then
14675
14676 cat >>confdefs.h <<\_ACEOF
14677 #define HAVE_WORKING_VFORK 1
14678 _ACEOF
14679
14680 else
14681
14682 cat >>confdefs.h <<\_ACEOF
14683 #define vfork fork
14684 _ACEOF
14685
14686 fi
14687 if test "x$ac_cv_func_fork_works" = xyes; then
14688
14689 cat >>confdefs.h <<\_ACEOF
14690 #define HAVE_WORKING_FORK 1
14691 _ACEOF
14692
14693 fi
14694
14695
14696
14697 for ac_func in canonicalize_file_name realpath
14698 do
14699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14700 echo "$as_me:$LINENO: checking for $ac_func" >&5
14701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_var+set}\" = set"; then
14703   echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705   cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h.  */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h.  */
14711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14713 #define $ac_func innocuous_$ac_func
14714
14715 /* System header to define __stub macros and hopefully few prototypes,
14716     which can conflict with char $ac_func (); below.
14717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14718     <limits.h> exists even on freestanding compilers.  */
14719
14720 #ifdef __STDC__
14721 # include <limits.h>
14722 #else
14723 # include <assert.h>
14724 #endif
14725
14726 #undef $ac_func
14727
14728 /* Override any gcc2 internal prototype to avoid an error.  */
14729 #ifdef __cplusplus
14730 extern "C"
14731 {
14732 #endif
14733 /* We use char because int might match the return type of a gcc2
14734    builtin and then its argument prototype would still apply.  */
14735 char $ac_func ();
14736 /* The GNU C library defines this for functions which it implements
14737     to always fail with ENOSYS.  Some functions are actually named
14738     something starting with __ and the normal name is an alias.  */
14739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14740 choke me
14741 #else
14742 char (*f) () = $ac_func;
14743 #endif
14744 #ifdef __cplusplus
14745 }
14746 #endif
14747
14748 int
14749 main ()
14750 {
14751 return f != $ac_func;
14752   ;
14753   return 0;
14754 }
14755 _ACEOF
14756 rm -f conftest.$ac_objext conftest$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758   (eval $ac_link) 2>conftest.er1
14759   ac_status=$?
14760   grep -v '^ *+' conftest.er1 >conftest.err
14761   rm -f conftest.er1
14762   cat conftest.err >&5
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); } &&
14765          { ac_try='test -z "$ac_c_werror_flag"
14766                          || test ! -s conftest.err'
14767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768   (eval $ac_try) 2>&5
14769   ac_status=$?
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); }; } &&
14772          { ac_try='test -s conftest$ac_exeext'
14773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774   (eval $ac_try) 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); }; }; then
14778   eval "$as_ac_var=yes"
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783 eval "$as_ac_var=no"
14784 fi
14785 rm -f conftest.err conftest.$ac_objext \
14786       conftest$ac_exeext conftest.$ac_ext
14787 fi
14788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14790 if test `eval echo '${'$as_ac_var'}'` = yes; then
14791   cat >>confdefs.h <<_ACEOF
14792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14793 _ACEOF
14794
14795 fi
14796 done
14797
14798
14799 for ac_func in poll
14800 do
14801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14802 echo "$as_me:$LINENO: checking for $ac_func" >&5
14803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14804 if eval "test \"\${$as_ac_var+set}\" = set"; then
14805   echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807   cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h.  */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h.  */
14813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14815 #define $ac_func innocuous_$ac_func
14816
14817 /* System header to define __stub macros and hopefully few prototypes,
14818     which can conflict with char $ac_func (); below.
14819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14820     <limits.h> exists even on freestanding compilers.  */
14821
14822 #ifdef __STDC__
14823 # include <limits.h>
14824 #else
14825 # include <assert.h>
14826 #endif
14827
14828 #undef $ac_func
14829
14830 /* Override any gcc2 internal prototype to avoid an error.  */
14831 #ifdef __cplusplus
14832 extern "C"
14833 {
14834 #endif
14835 /* We use char because int might match the return type of a gcc2
14836    builtin and then its argument prototype would still apply.  */
14837 char $ac_func ();
14838 /* The GNU C library defines this for functions which it implements
14839     to always fail with ENOSYS.  Some functions are actually named
14840     something starting with __ and the normal name is an alias.  */
14841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14842 choke me
14843 #else
14844 char (*f) () = $ac_func;
14845 #endif
14846 #ifdef __cplusplus
14847 }
14848 #endif
14849
14850 int
14851 main ()
14852 {
14853 return f != $ac_func;
14854   ;
14855   return 0;
14856 }
14857 _ACEOF
14858 rm -f conftest.$ac_objext conftest$ac_exeext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14860   (eval $ac_link) 2>conftest.er1
14861   ac_status=$?
14862   grep -v '^ *+' conftest.er1 >conftest.err
14863   rm -f conftest.er1
14864   cat conftest.err >&5
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); } &&
14867          { ac_try='test -z "$ac_c_werror_flag"
14868                          || test ! -s conftest.err'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; } &&
14874          { ac_try='test -s conftest$ac_exeext'
14875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876   (eval $ac_try) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; }; then
14880   eval "$as_ac_var=yes"
14881 else
14882   echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885 eval "$as_ac_var=no"
14886 fi
14887 rm -f conftest.err conftest.$ac_objext \
14888       conftest$ac_exeext conftest.$ac_ext
14889 fi
14890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14892 if test `eval echo '${'$as_ac_var'}'` = yes; then
14893   cat >>confdefs.h <<_ACEOF
14894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14895 _ACEOF
14896
14897 fi
14898 done
14899
14900
14901 for ac_func in pread64
14902 do
14903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14904 echo "$as_me:$LINENO: checking for $ac_func" >&5
14905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14906 if eval "test \"\${$as_ac_var+set}\" = set"; then
14907   echo $ECHO_N "(cached) $ECHO_C" >&6
14908 else
14909   cat >conftest.$ac_ext <<_ACEOF
14910 /* confdefs.h.  */
14911 _ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h.  */
14915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14917 #define $ac_func innocuous_$ac_func
14918
14919 /* System header to define __stub macros and hopefully few prototypes,
14920     which can conflict with char $ac_func (); below.
14921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14922     <limits.h> exists even on freestanding compilers.  */
14923
14924 #ifdef __STDC__
14925 # include <limits.h>
14926 #else
14927 # include <assert.h>
14928 #endif
14929
14930 #undef $ac_func
14931
14932 /* Override any gcc2 internal prototype to avoid an error.  */
14933 #ifdef __cplusplus
14934 extern "C"
14935 {
14936 #endif
14937 /* We use char because int might match the return type of a gcc2
14938    builtin and then its argument prototype would still apply.  */
14939 char $ac_func ();
14940 /* The GNU C library defines this for functions which it implements
14941     to always fail with ENOSYS.  Some functions are actually named
14942     something starting with __ and the normal name is an alias.  */
14943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14944 choke me
14945 #else
14946 char (*f) () = $ac_func;
14947 #endif
14948 #ifdef __cplusplus
14949 }
14950 #endif
14951
14952 int
14953 main ()
14954 {
14955 return f != $ac_func;
14956   ;
14957   return 0;
14958 }
14959 _ACEOF
14960 rm -f conftest.$ac_objext conftest$ac_exeext
14961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962   (eval $ac_link) 2>conftest.er1
14963   ac_status=$?
14964   grep -v '^ *+' conftest.er1 >conftest.err
14965   rm -f conftest.er1
14966   cat conftest.err >&5
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); } &&
14969          { ac_try='test -z "$ac_c_werror_flag"
14970                          || test ! -s conftest.err'
14971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972   (eval $ac_try) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; } &&
14976          { ac_try='test -s conftest$ac_exeext'
14977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978   (eval $ac_try) 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); }; }; then
14982   eval "$as_ac_var=yes"
14983 else
14984   echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14986
14987 eval "$as_ac_var=no"
14988 fi
14989 rm -f conftest.err conftest.$ac_objext \
14990       conftest$ac_exeext conftest.$ac_ext
14991 fi
14992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14994 if test `eval echo '${'$as_ac_var'}'` = yes; then
14995   cat >>confdefs.h <<_ACEOF
14996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14997 _ACEOF
14998
14999 fi
15000 done
15001
15002
15003 for ac_func in sbrk
15004 do
15005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15006 echo "$as_me:$LINENO: checking for $ac_func" >&5
15007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15008 if eval "test \"\${$as_ac_var+set}\" = set"; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 else
15011   cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h.  */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h.  */
15017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15019 #define $ac_func innocuous_$ac_func
15020
15021 /* System header to define __stub macros and hopefully few prototypes,
15022     which can conflict with char $ac_func (); below.
15023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15024     <limits.h> exists even on freestanding compilers.  */
15025
15026 #ifdef __STDC__
15027 # include <limits.h>
15028 #else
15029 # include <assert.h>
15030 #endif
15031
15032 #undef $ac_func
15033
15034 /* Override any gcc2 internal prototype to avoid an error.  */
15035 #ifdef __cplusplus
15036 extern "C"
15037 {
15038 #endif
15039 /* We use char because int might match the return type of a gcc2
15040    builtin and then its argument prototype would still apply.  */
15041 char $ac_func ();
15042 /* The GNU C library defines this for functions which it implements
15043     to always fail with ENOSYS.  Some functions are actually named
15044     something starting with __ and the normal name is an alias.  */
15045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15046 choke me
15047 #else
15048 char (*f) () = $ac_func;
15049 #endif
15050 #ifdef __cplusplus
15051 }
15052 #endif
15053
15054 int
15055 main ()
15056 {
15057 return f != $ac_func;
15058   ;
15059   return 0;
15060 }
15061 _ACEOF
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15064   (eval $ac_link) 2>conftest.er1
15065   ac_status=$?
15066   grep -v '^ *+' conftest.er1 >conftest.err
15067   rm -f conftest.er1
15068   cat conftest.err >&5
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); } &&
15071          { ac_try='test -z "$ac_c_werror_flag"
15072                          || test ! -s conftest.err'
15073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074   (eval $ac_try) 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; } &&
15078          { ac_try='test -s conftest$ac_exeext'
15079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080   (eval $ac_try) 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); }; }; then
15084   eval "$as_ac_var=yes"
15085 else
15086   echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15088
15089 eval "$as_ac_var=no"
15090 fi
15091 rm -f conftest.err conftest.$ac_objext \
15092       conftest$ac_exeext conftest.$ac_ext
15093 fi
15094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15096 if test `eval echo '${'$as_ac_var'}'` = yes; then
15097   cat >>confdefs.h <<_ACEOF
15098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15099 _ACEOF
15100
15101 fi
15102 done
15103
15104
15105
15106 for ac_func in setpgid setpgrp
15107 do
15108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109 echo "$as_me:$LINENO: checking for $ac_func" >&5
15110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15111 if eval "test \"\${$as_ac_var+set}\" = set"; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h.  */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h.  */
15120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15122 #define $ac_func innocuous_$ac_func
15123
15124 /* System header to define __stub macros and hopefully few prototypes,
15125     which can conflict with char $ac_func (); below.
15126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15127     <limits.h> exists even on freestanding compilers.  */
15128
15129 #ifdef __STDC__
15130 # include <limits.h>
15131 #else
15132 # include <assert.h>
15133 #endif
15134
15135 #undef $ac_func
15136
15137 /* Override any gcc2 internal prototype to avoid an error.  */
15138 #ifdef __cplusplus
15139 extern "C"
15140 {
15141 #endif
15142 /* We use char because int might match the return type of a gcc2
15143    builtin and then its argument prototype would still apply.  */
15144 char $ac_func ();
15145 /* The GNU C library defines this for functions which it implements
15146     to always fail with ENOSYS.  Some functions are actually named
15147     something starting with __ and the normal name is an alias.  */
15148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15149 choke me
15150 #else
15151 char (*f) () = $ac_func;
15152 #endif
15153 #ifdef __cplusplus
15154 }
15155 #endif
15156
15157 int
15158 main ()
15159 {
15160 return f != $ac_func;
15161   ;
15162   return 0;
15163 }
15164 _ACEOF
15165 rm -f conftest.$ac_objext conftest$ac_exeext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15167   (eval $ac_link) 2>conftest.er1
15168   ac_status=$?
15169   grep -v '^ *+' conftest.er1 >conftest.err
15170   rm -f conftest.er1
15171   cat conftest.err >&5
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); } &&
15174          { ac_try='test -z "$ac_c_werror_flag"
15175                          || test ! -s conftest.err'
15176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177   (eval $ac_try) 2>&5
15178   ac_status=$?
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); }; } &&
15181          { ac_try='test -s conftest$ac_exeext'
15182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183   (eval $ac_try) 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); }; }; then
15187   eval "$as_ac_var=yes"
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 eval "$as_ac_var=no"
15193 fi
15194 rm -f conftest.err conftest.$ac_objext \
15195       conftest$ac_exeext conftest.$ac_ext
15196 fi
15197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15199 if test `eval echo '${'$as_ac_var'}'` = yes; then
15200   cat >>confdefs.h <<_ACEOF
15201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15202 _ACEOF
15203
15204 fi
15205 done
15206
15207
15208
15209
15210 for ac_func in sigaction sigprocmask sigsetmask
15211 do
15212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15213 echo "$as_me:$LINENO: checking for $ac_func" >&5
15214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15215 if eval "test \"\${$as_ac_var+set}\" = set"; then
15216   echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218   cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h.  */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h.  */
15224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15226 #define $ac_func innocuous_$ac_func
15227
15228 /* System header to define __stub macros and hopefully few prototypes,
15229     which can conflict with char $ac_func (); below.
15230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15231     <limits.h> exists even on freestanding compilers.  */
15232
15233 #ifdef __STDC__
15234 # include <limits.h>
15235 #else
15236 # include <assert.h>
15237 #endif
15238
15239 #undef $ac_func
15240
15241 /* Override any gcc2 internal prototype to avoid an error.  */
15242 #ifdef __cplusplus
15243 extern "C"
15244 {
15245 #endif
15246 /* We use char because int might match the return type of a gcc2
15247    builtin and then its argument prototype would still apply.  */
15248 char $ac_func ();
15249 /* The GNU C library defines this for functions which it implements
15250     to always fail with ENOSYS.  Some functions are actually named
15251     something starting with __ and the normal name is an alias.  */
15252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15253 choke me
15254 #else
15255 char (*f) () = $ac_func;
15256 #endif
15257 #ifdef __cplusplus
15258 }
15259 #endif
15260
15261 int
15262 main ()
15263 {
15264 return f != $ac_func;
15265   ;
15266   return 0;
15267 }
15268 _ACEOF
15269 rm -f conftest.$ac_objext conftest$ac_exeext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15271   (eval $ac_link) 2>conftest.er1
15272   ac_status=$?
15273   grep -v '^ *+' conftest.er1 >conftest.err
15274   rm -f conftest.er1
15275   cat conftest.err >&5
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } &&
15278          { ac_try='test -z "$ac_c_werror_flag"
15279                          || test ! -s conftest.err'
15280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281   (eval $ac_try) 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); }; } &&
15285          { ac_try='test -s conftest$ac_exeext'
15286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287   (eval $ac_try) 2>&5
15288   ac_status=$?
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); }; }; then
15291   eval "$as_ac_var=yes"
15292 else
15293   echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15295
15296 eval "$as_ac_var=no"
15297 fi
15298 rm -f conftest.err conftest.$ac_objext \
15299       conftest$ac_exeext conftest.$ac_ext
15300 fi
15301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15303 if test `eval echo '${'$as_ac_var'}'` = yes; then
15304   cat >>confdefs.h <<_ACEOF
15305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15306 _ACEOF
15307
15308 fi
15309 done
15310
15311
15312 for ac_func in socketpair
15313 do
15314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15315 echo "$as_me:$LINENO: checking for $ac_func" >&5
15316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15317 if eval "test \"\${$as_ac_var+set}\" = set"; then
15318   echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320   cat >conftest.$ac_ext <<_ACEOF
15321 /* confdefs.h.  */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h.  */
15326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15328 #define $ac_func innocuous_$ac_func
15329
15330 /* System header to define __stub macros and hopefully few prototypes,
15331     which can conflict with char $ac_func (); below.
15332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15333     <limits.h> exists even on freestanding compilers.  */
15334
15335 #ifdef __STDC__
15336 # include <limits.h>
15337 #else
15338 # include <assert.h>
15339 #endif
15340
15341 #undef $ac_func
15342
15343 /* Override any gcc2 internal prototype to avoid an error.  */
15344 #ifdef __cplusplus
15345 extern "C"
15346 {
15347 #endif
15348 /* We use char because int might match the return type of a gcc2
15349    builtin and then its argument prototype would still apply.  */
15350 char $ac_func ();
15351 /* The GNU C library defines this for functions which it implements
15352     to always fail with ENOSYS.  Some functions are actually named
15353     something starting with __ and the normal name is an alias.  */
15354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15355 choke me
15356 #else
15357 char (*f) () = $ac_func;
15358 #endif
15359 #ifdef __cplusplus
15360 }
15361 #endif
15362
15363 int
15364 main ()
15365 {
15366 return f != $ac_func;
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest.$ac_objext conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373   (eval $ac_link) 2>conftest.er1
15374   ac_status=$?
15375   grep -v '^ *+' conftest.er1 >conftest.err
15376   rm -f conftest.er1
15377   cat conftest.err >&5
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); } &&
15380          { ac_try='test -z "$ac_c_werror_flag"
15381                          || test ! -s conftest.err'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; } &&
15387          { ac_try='test -s conftest$ac_exeext'
15388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389   (eval $ac_try) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); }; }; then
15393   eval "$as_ac_var=yes"
15394 else
15395   echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398 eval "$as_ac_var=no"
15399 fi
15400 rm -f conftest.err conftest.$ac_objext \
15401       conftest$ac_exeext conftest.$ac_ext
15402 fi
15403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15405 if test `eval echo '${'$as_ac_var'}'` = yes; then
15406   cat >>confdefs.h <<_ACEOF
15407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15408 _ACEOF
15409
15410 fi
15411 done
15412
15413
15414 for ac_func in syscall
15415 do
15416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15417 echo "$as_me:$LINENO: checking for $ac_func" >&5
15418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15419 if eval "test \"\${$as_ac_var+set}\" = set"; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422   cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h.  */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h.  */
15428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15430 #define $ac_func innocuous_$ac_func
15431
15432 /* System header to define __stub macros and hopefully few prototypes,
15433     which can conflict with char $ac_func (); below.
15434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15435     <limits.h> exists even on freestanding compilers.  */
15436
15437 #ifdef __STDC__
15438 # include <limits.h>
15439 #else
15440 # include <assert.h>
15441 #endif
15442
15443 #undef $ac_func
15444
15445 /* Override any gcc2 internal prototype to avoid an error.  */
15446 #ifdef __cplusplus
15447 extern "C"
15448 {
15449 #endif
15450 /* We use char because int might match the return type of a gcc2
15451    builtin and then its argument prototype would still apply.  */
15452 char $ac_func ();
15453 /* The GNU C library defines this for functions which it implements
15454     to always fail with ENOSYS.  Some functions are actually named
15455     something starting with __ and the normal name is an alias.  */
15456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15457 choke me
15458 #else
15459 char (*f) () = $ac_func;
15460 #endif
15461 #ifdef __cplusplus
15462 }
15463 #endif
15464
15465 int
15466 main ()
15467 {
15468 return f != $ac_func;
15469   ;
15470   return 0;
15471 }
15472 _ACEOF
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15475   (eval $ac_link) 2>conftest.er1
15476   ac_status=$?
15477   grep -v '^ *+' conftest.er1 >conftest.err
15478   rm -f conftest.er1
15479   cat conftest.err >&5
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); } &&
15482          { ac_try='test -z "$ac_c_werror_flag"
15483                          || test ! -s conftest.err'
15484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485   (eval $ac_try) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; } &&
15489          { ac_try='test -s conftest$ac_exeext'
15490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491   (eval $ac_try) 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; }; then
15495   eval "$as_ac_var=yes"
15496 else
15497   echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15499
15500 eval "$as_ac_var=no"
15501 fi
15502 rm -f conftest.err conftest.$ac_objext \
15503       conftest$ac_exeext conftest.$ac_ext
15504 fi
15505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15507 if test `eval echo '${'$as_ac_var'}'` = yes; then
15508   cat >>confdefs.h <<_ACEOF
15509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15510 _ACEOF
15511
15512 fi
15513 done
15514
15515
15516 for ac_func in ttrace
15517 do
15518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15519 echo "$as_me:$LINENO: checking for $ac_func" >&5
15520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15521 if eval "test \"\${$as_ac_var+set}\" = set"; then
15522   echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524   cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h.  */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h.  */
15530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15532 #define $ac_func innocuous_$ac_func
15533
15534 /* System header to define __stub macros and hopefully few prototypes,
15535     which can conflict with char $ac_func (); below.
15536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15537     <limits.h> exists even on freestanding compilers.  */
15538
15539 #ifdef __STDC__
15540 # include <limits.h>
15541 #else
15542 # include <assert.h>
15543 #endif
15544
15545 #undef $ac_func
15546
15547 /* Override any gcc2 internal prototype to avoid an error.  */
15548 #ifdef __cplusplus
15549 extern "C"
15550 {
15551 #endif
15552 /* We use char because int might match the return type of a gcc2
15553    builtin and then its argument prototype would still apply.  */
15554 char $ac_func ();
15555 /* The GNU C library defines this for functions which it implements
15556     to always fail with ENOSYS.  Some functions are actually named
15557     something starting with __ and the normal name is an alias.  */
15558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15559 choke me
15560 #else
15561 char (*f) () = $ac_func;
15562 #endif
15563 #ifdef __cplusplus
15564 }
15565 #endif
15566
15567 int
15568 main ()
15569 {
15570 return f != $ac_func;
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577   (eval $ac_link) 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag"
15585                          || test ! -s conftest.err'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; } &&
15591          { ac_try='test -s conftest$ac_exeext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   eval "$as_ac_var=yes"
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 eval "$as_ac_var=no"
15603 fi
15604 rm -f conftest.err conftest.$ac_objext \
15605       conftest$ac_exeext conftest.$ac_ext
15606 fi
15607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15609 if test `eval echo '${'$as_ac_var'}'` = yes; then
15610   cat >>confdefs.h <<_ACEOF
15611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15612 _ACEOF
15613
15614 fi
15615 done
15616
15617
15618 for ac_func in wborder
15619 do
15620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15621 echo "$as_me:$LINENO: checking for $ac_func" >&5
15622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15623 if eval "test \"\${$as_ac_var+set}\" = set"; then
15624   echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626   cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15634 #define $ac_func innocuous_$ac_func
15635
15636 /* System header to define __stub macros and hopefully few prototypes,
15637     which can conflict with char $ac_func (); below.
15638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639     <limits.h> exists even on freestanding compilers.  */
15640
15641 #ifdef __STDC__
15642 # include <limits.h>
15643 #else
15644 # include <assert.h>
15645 #endif
15646
15647 #undef $ac_func
15648
15649 /* Override any gcc2 internal prototype to avoid an error.  */
15650 #ifdef __cplusplus
15651 extern "C"
15652 {
15653 #endif
15654 /* We use char because int might match the return type of a gcc2
15655    builtin and then its argument prototype would still apply.  */
15656 char $ac_func ();
15657 /* The GNU C library defines this for functions which it implements
15658     to always fail with ENOSYS.  Some functions are actually named
15659     something starting with __ and the normal name is an alias.  */
15660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15661 choke me
15662 #else
15663 char (*f) () = $ac_func;
15664 #endif
15665 #ifdef __cplusplus
15666 }
15667 #endif
15668
15669 int
15670 main ()
15671 {
15672 return f != $ac_func;
15673   ;
15674   return 0;
15675 }
15676 _ACEOF
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15679   (eval $ac_link) 2>conftest.er1
15680   ac_status=$?
15681   grep -v '^ *+' conftest.er1 >conftest.err
15682   rm -f conftest.er1
15683   cat conftest.err >&5
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } &&
15686          { ac_try='test -z "$ac_c_werror_flag"
15687                          || test ! -s conftest.err'
15688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689   (eval $ac_try) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; } &&
15693          { ac_try='test -s conftest$ac_exeext'
15694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695   (eval $ac_try) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); }; }; then
15699   eval "$as_ac_var=yes"
15700 else
15701   echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 eval "$as_ac_var=no"
15705 fi
15706 rm -f conftest.err conftest.$ac_objext \
15707       conftest$ac_exeext conftest.$ac_ext
15708 fi
15709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15711 if test `eval echo '${'$as_ac_var'}'` = yes; then
15712   cat >>confdefs.h <<_ACEOF
15713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15714 _ACEOF
15715
15716 fi
15717 done
15718
15719
15720 # Check the return and argument types of ptrace.  No canned test for
15721 # this, so roll our own.
15722 gdb_ptrace_headers='
15723 #if HAVE_SYS_TYPES_H
15724 # include <sys/types.h>
15725 #endif
15726 #if HAVE_SYS_PTRACE_H
15727 # include <sys/ptrace.h>
15728 #endif
15729 #if HAVE_UNISTD_H
15730 # include <unistd.h>
15731 #endif
15732 '
15733 # There is no point in checking if we don't have a prototype.
15734 for ac_func in ptrace
15735 do
15736   ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15737 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
15738 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
15739 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
15740   echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742   cat >conftest.$ac_ext <<_ACEOF
15743 /* confdefs.h.  */
15744 _ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h.  */
15748 #undef $ac_tr_decl
15749 #define $ac_tr_decl 1
15750   $gdb_ptrace_headers
15751
15752 int
15753 main ()
15754 {
15755 #ifndef $ac_func
15756 char *(*pfn) = (char *(*)) $ac_func ;
15757 #endif
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15764   (eval $ac_compile) 2>conftest.er1
15765   ac_status=$?
15766   grep -v '^ *+' conftest.er1 >conftest.err
15767   rm -f conftest.er1
15768   cat conftest.err >&5
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); } &&
15771          { ac_try='test -z "$ac_c_werror_flag"
15772                          || test ! -s conftest.err'
15773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774   (eval $ac_try) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; } &&
15778          { ac_try='test -s conftest.$ac_objext'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; }; then
15784   eval "gcc_cv_have_decl_$ac_func=yes"
15785 else
15786   echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 eval "gcc_cv_have_decl_$ac_func=no"
15790 fi
15791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15792 fi
15793
15794 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
15795   echo "$as_me:$LINENO: result: yes" >&5
15796 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
15797 #define $ac_tr_decl 1
15798 _ACEOF
15799
15800 else
15801   echo "$as_me:$LINENO: result: no" >&5
15802 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
15803 #define $ac_tr_decl 0
15804 _ACEOF
15805
15806   : ${gdb_cv_func_ptrace_ret='int'}
15807   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15808
15809 fi
15810
15811 done
15812 if test x = y ; then
15813
15814 cat >>confdefs.h <<\_ACEOF
15815 #define HAVE_DECL_PTRACE 1
15816 _ACEOF
15817 fi
15818
15819 # Check return type.
15820 echo "$as_me:$LINENO: checking return type of ptrace" >&5
15821 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15822 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825   cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h.  */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h.  */
15831 $gdb_ptrace_headers
15832 int
15833 main ()
15834 {
15835 extern int ptrace ();
15836   ;
15837   return 0;
15838 }
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842   (eval $ac_compile) 2>conftest.er1
15843   ac_status=$?
15844   grep -v '^ *+' conftest.er1 >conftest.err
15845   rm -f conftest.er1
15846   cat conftest.err >&5
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } &&
15849          { ac_try='test -z "$ac_c_werror_flag"
15850                          || test ! -s conftest.err'
15851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852   (eval $ac_try) 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); }; } &&
15856          { ac_try='test -s conftest.$ac_objext'
15857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858   (eval $ac_try) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; }; then
15862   gdb_cv_func_ptrace_ret='int'
15863 else
15864   echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15866
15867 gdb_cv_func_ptrace_ret='long'
15868 fi
15869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15870 fi
15871 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15872 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
15873
15874 cat >>confdefs.h <<_ACEOF
15875 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15876 _ACEOF
15877
15878 # Check argument types.
15879 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15880 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
15881 if test "${gdb_cv_func_ptrace_args+set}" = set; then
15882   echo $ECHO_N "(cached) $ECHO_C" >&6
15883 else
15884
15885 for gdb_arg1 in 'int' 'long'; do
15886  for gdb_arg2 in 'pid_t' 'int' 'long'; do
15887   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
15888    for gdb_arg4 in 'int' 'long'; do
15889      cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895 $gdb_ptrace_headers
15896 int
15897 main ()
15898 {
15899
15900 extern $gdb_cv_func_ptrace_ret
15901   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15902
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 rm -f conftest.$ac_objext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909   (eval $ac_compile) 2>conftest.er1
15910   ac_status=$?
15911   grep -v '^ *+' conftest.er1 >conftest.err
15912   rm -f conftest.er1
15913   cat conftest.err >&5
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); } &&
15916          { ac_try='test -z "$ac_c_werror_flag"
15917                          || test ! -s conftest.err'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; } &&
15923          { ac_try='test -s conftest.$ac_objext'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; }; then
15929   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15930     break 4;
15931 else
15932   echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15934
15935 fi
15936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15937     for gdb_arg5 in 'int *' 'int' 'long'; do
15938      cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h.  */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h.  */
15944 $gdb_ptrace_headers
15945 int
15946 main ()
15947 {
15948
15949 extern $gdb_cv_func_ptrace_ret
15950   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15951
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958   (eval $ac_compile) 2>conftest.er1
15959   ac_status=$?
15960   grep -v '^ *+' conftest.er1 >conftest.err
15961   rm -f conftest.er1
15962   cat conftest.err >&5
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); } &&
15965          { ac_try='test -z "$ac_c_werror_flag"
15966                          || test ! -s conftest.err'
15967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968   (eval $ac_try) 2>&5
15969   ac_status=$?
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); }; } &&
15972          { ac_try='test -s conftest.$ac_objext'
15973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974   (eval $ac_try) 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; }; then
15978
15979 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15980     break 5;
15981 else
15982   echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 fi
15986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15987     done
15988    done
15989   done
15990  done
15991 done
15992 # Provide a safe default value.
15993 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15994
15995 fi
15996 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
15997 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
15998 ac_save_IFS=$IFS; IFS=','
15999 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16000 IFS=$ac_save_IFS
16001 shift
16002
16003 cat >>confdefs.h <<_ACEOF
16004 #define PTRACE_TYPE_ARG3 $3
16005 _ACEOF
16006
16007 if test -n "$5"; then
16008
16009 cat >>confdefs.h <<_ACEOF
16010 #define PTRACE_TYPE_ARG5 $5
16011 _ACEOF
16012
16013 fi
16014
16015 if test "$cross_compiling" = no; then
16016   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16017 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16018 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   if test "$cross_compiling" = yes; then
16022   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16023 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16024    { (exit 1); exit 1; }; }
16025 else
16026   cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032 #if HAVE_UNISTD_H
16033 # include <unistd.h>
16034 #endif
16035
16036 int
16037 main ()
16038 {
16039 /* If this system has a BSD-style setpgrp which takes arguments,
16040   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16041   exit successfully. */
16042   exit (setpgrp (1,1) == -1 ? 0 : 1);
16043   ;
16044   return 0;
16045 }
16046 _ACEOF
16047 rm -f conftest$ac_exeext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049   (eval $ac_link) 2>&5
16050   ac_status=$?
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054   (eval $ac_try) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; }; then
16058   ac_cv_func_setpgrp_void=no
16059 else
16060   echo "$as_me: program exited with status $ac_status" >&5
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064 ( exit $ac_status )
16065 ac_cv_func_setpgrp_void=yes
16066 fi
16067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16068 fi
16069 fi
16070 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16071 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16072 if test $ac_cv_func_setpgrp_void = yes; then
16073
16074 cat >>confdefs.h <<\_ACEOF
16075 #define SETPGRP_VOID 1
16076 _ACEOF
16077
16078 fi
16079
16080 else
16081   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16082 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16083 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16084   echo $ECHO_N "(cached) $ECHO_C" >&6
16085 else
16086   cat >conftest.$ac_ext <<_ACEOF
16087 /* confdefs.h.  */
16088 _ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h.  */
16092
16093 #include <unistd.h>
16094
16095 int
16096 main ()
16097 {
16098
16099   if (setpgrp(1,1) == -1)
16100     exit (0);
16101   else
16102     exit (1);
16103
16104   ;
16105   return 0;
16106 }
16107 _ACEOF
16108 rm -f conftest.$ac_objext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110   (eval $ac_compile) 2>conftest.er1
16111   ac_status=$?
16112   grep -v '^ *+' conftest.er1 >conftest.err
16113   rm -f conftest.er1
16114   cat conftest.err >&5
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); } &&
16117          { ac_try='test -z "$ac_c_werror_flag"
16118                          || test ! -s conftest.err'
16119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120   (eval $ac_try) 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; } &&
16124          { ac_try='test -s conftest.$ac_objext'
16125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126   (eval $ac_try) 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; }; then
16130   ac_cv_func_setpgrp_void=no
16131 else
16132   echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16134
16135 ac_cv_func_setpgrp_void=yes
16136 fi
16137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16138 fi
16139 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16140 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16141 if test $ac_cv_func_setpgrp_void = yes; then
16142   cat >>confdefs.h <<\_ACEOF
16143 #define SETPGRP_VOID 1
16144 _ACEOF
16145
16146 fi
16147 fi
16148
16149 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
16150 # since sigsetjmp might only be defined as a macro.
16151 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16152 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16153 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156   cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162
16163 #include <setjmp.h>
16164
16165 int
16166 main ()
16167 {
16168 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16169   ;
16170   return 0;
16171 }
16172 _ACEOF
16173 rm -f conftest.$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175   (eval $ac_compile) 2>conftest.er1
16176   ac_status=$?
16177   grep -v '^ *+' conftest.er1 >conftest.err
16178   rm -f conftest.er1
16179   cat conftest.err >&5
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); } &&
16182          { ac_try='test -z "$ac_c_werror_flag"
16183                          || test ! -s conftest.err'
16184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185   (eval $ac_try) 2>&5
16186   ac_status=$?
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); }; } &&
16189          { ac_try='test -s conftest.$ac_objext'
16190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191   (eval $ac_try) 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); }; }; then
16195   gdb_cv_func_sigsetjmp=yes
16196 else
16197   echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16199
16200 gdb_cv_func_sigsetjmp=no
16201 fi
16202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16203 fi
16204 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16205 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16206 if test $gdb_cv_func_sigsetjmp = yes; then
16207
16208 cat >>confdefs.h <<\_ACEOF
16209 #define HAVE_SIGSETJMP 1
16210 _ACEOF
16211
16212 fi
16213
16214 # Assume we'll default to using the included libiberty regex.
16215 gdb_use_included_regex=yes
16216
16217 # However, if the system regex is GNU regex, then default to *not*
16218 # using the included regex.
16219 echo "$as_me:$LINENO: checking for GNU regex" >&5
16220 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16221 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16222   echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224   cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h.  */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h.  */
16230 #include <gnu-versions.h>
16231 int
16232 main ()
16233 {
16234 #define REGEX_INTERFACE_VERSION 1
16235 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16236 # error "Version mismatch"
16237 #endif
16238   ;
16239   return 0;
16240 }
16241 _ACEOF
16242 rm -f conftest.$ac_objext
16243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16244   (eval $ac_compile) 2>conftest.er1
16245   ac_status=$?
16246   grep -v '^ *+' conftest.er1 >conftest.err
16247   rm -f conftest.er1
16248   cat conftest.err >&5
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); } &&
16251          { ac_try='test -z "$ac_c_werror_flag"
16252                          || test ! -s conftest.err'
16253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254   (eval $ac_try) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); }; } &&
16258          { ac_try='test -s conftest.$ac_objext'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   gdb_cv_have_gnu_regex=yes
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 gdb_cv_have_gnu_regex=no
16270 fi
16271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16272 fi
16273 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16274 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16275 if test $gdb_cv_have_gnu_regex = yes; then
16276   gdb_use_included_regex=no
16277 fi
16278
16279
16280 # Check whether --with-included-regex or --without-included-regex was given.
16281 if test "${with_included_regex+set}" = set; then
16282   withval="$with_included_regex"
16283   gdb_with_regex=$withval
16284 else
16285   gdb_with_regex=$gdb_use_included_regex
16286 fi;
16287 if test "$gdb_with_regex" = yes; then
16288
16289 cat >>confdefs.h <<\_ACEOF
16290 #define USE_INCLUDED_REGEX 1
16291 _ACEOF
16292
16293 fi
16294
16295 # See if <sys/proc.h> defines `struct thread' with a td_pcb member.
16296 echo "$as_me:$LINENO: checking for td_pcb in struct thread" >&5
16297 echo $ECHO_N "checking for td_pcb in struct thread... $ECHO_C" >&6
16298 if test "${gdb_cv_struct_thread_td_pcb+set}" = set; then
16299   echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301   cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h.  */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h.  */
16307 #include <sys/param.h>
16308 #include <sys/proc.h>
16309 int
16310 main ()
16311 {
16312 struct thread td; td.td_pcb;
16313   ;
16314   return 0;
16315 }
16316 _ACEOF
16317 rm -f conftest.$ac_objext
16318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16319   (eval $ac_compile) 2>conftest.er1
16320   ac_status=$?
16321   grep -v '^ *+' conftest.er1 >conftest.err
16322   rm -f conftest.er1
16323   cat conftest.err >&5
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); } &&
16326          { ac_try='test -z "$ac_c_werror_flag"
16327                          || test ! -s conftest.err'
16328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329   (eval $ac_try) 2>&5
16330   ac_status=$?
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); }; } &&
16333          { ac_try='test -s conftest.$ac_objext'
16334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335   (eval $ac_try) 2>&5
16336   ac_status=$?
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); }; }; then
16339   gdb_cv_struct_thread_td_pcb=yes
16340 else
16341   echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344 gdb_cv_struct_thread_td_pcb=no
16345 fi
16346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16347 fi
16348 echo "$as_me:$LINENO: result: $gdb_cv_struct_thread_td_pcb" >&5
16349 echo "${ECHO_T}$gdb_cv_struct_thread_td_pcb" >&6
16350 if test $gdb_cv_struct_thread_td_pcb = yes; then
16351
16352 cat >>confdefs.h <<\_ACEOF
16353 #define HAVE_STRUCT_THREAD_TD_PCB 1
16354 _ACEOF
16355
16356 fi
16357
16358 # See if <sys/lwp.h> defines `struct lwp`.
16359 echo "$as_me:$LINENO: checking for struct lwp" >&5
16360 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16361 if test "${gdb_cv_struct_lwp+set}" = set; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364   cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h.  */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h.  */
16370 #include <sys/param.h>
16371 #include <sys/lwp.h>
16372 int
16373 main ()
16374 {
16375 struct lwp l;
16376   ;
16377   return 0;
16378 }
16379 _ACEOF
16380 rm -f conftest.$ac_objext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16382   (eval $ac_compile) 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } &&
16389          { ac_try='test -z "$ac_c_werror_flag"
16390                          || test ! -s conftest.err'
16391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392   (eval $ac_try) 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); }; } &&
16396          { ac_try='test -s conftest.$ac_objext'
16397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398   (eval $ac_try) 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   gdb_cv_struct_lwp=yes
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 gdb_cv_struct_lwp=no
16408 fi
16409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16410 fi
16411 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16412 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16413 if test $gdb_cv_struct_lwp = yes; then
16414
16415 cat >>confdefs.h <<\_ACEOF
16416 #define HAVE_STRUCT_LWP 1
16417 _ACEOF
16418
16419 fi
16420
16421 # See if <machine/reg.h> degines `struct reg'.
16422 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16423 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16424 if test "${gdb_cv_struct_reg+set}" = set; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427   cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 #include <sys/types.h>
16434 #include <machine/reg.h>
16435 int
16436 main ()
16437 {
16438 struct reg r;
16439   ;
16440   return 0;
16441 }
16442 _ACEOF
16443 rm -f conftest.$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445   (eval $ac_compile) 2>conftest.er1
16446   ac_status=$?
16447   grep -v '^ *+' conftest.er1 >conftest.err
16448   rm -f conftest.er1
16449   cat conftest.err >&5
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); } &&
16452          { ac_try='test -z "$ac_c_werror_flag"
16453                          || test ! -s conftest.err'
16454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455   (eval $ac_try) 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }; } &&
16459          { ac_try='test -s conftest.$ac_objext'
16460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461   (eval $ac_try) 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); }; }; then
16465   gdb_cv_struct_reg=yes
16466 else
16467   echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16469
16470 gdb_cv_struct_reg=no
16471 fi
16472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16473 fi
16474 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16475 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16476 if test $gdb_cv_struct_reg = yes; then
16477
16478 cat >>confdefs.h <<\_ACEOF
16479 #define HAVE_STRUCT_REG 1
16480 _ACEOF
16481
16482 fi
16483
16484 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16485 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16486 echo "$as_me:$LINENO: checking for r_fs in struct reg" >&5
16487 echo $ECHO_N "checking for r_fs in struct reg... $ECHO_C" >&6
16488 if test "${gdb_cv_struct_reg_r_fs+set}" = set; then
16489   echo $ECHO_N "(cached) $ECHO_C" >&6
16490 else
16491   cat >conftest.$ac_ext <<_ACEOF
16492 /* confdefs.h.  */
16493 _ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h.  */
16497 #include <machine/reg.h>
16498 int
16499 main ()
16500 {
16501 struct reg r; r.r_fs;
16502   ;
16503   return 0;
16504 }
16505 _ACEOF
16506 rm -f conftest.$ac_objext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16508   (eval $ac_compile) 2>conftest.er1
16509   ac_status=$?
16510   grep -v '^ *+' conftest.er1 >conftest.err
16511   rm -f conftest.er1
16512   cat conftest.err >&5
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); } &&
16515          { ac_try='test -z "$ac_c_werror_flag"
16516                          || test ! -s conftest.err'
16517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518   (eval $ac_try) 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; } &&
16522          { ac_try='test -s conftest.$ac_objext'
16523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524   (eval $ac_try) 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); }; }; then
16528   gdb_cv_struct_reg_r_fs=yes
16529 else
16530   echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16532
16533 gdb_cv_struct_reg_r_fs=no
16534 fi
16535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16536 fi
16537 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_fs" >&5
16538 echo "${ECHO_T}$gdb_cv_struct_reg_r_fs" >&6
16539 if test $gdb_cv_struct_reg_r_fs = yes; then
16540   cat >>confdefs.h <<\_ACEOF
16541 #define HAVE_STRUCT_REG_R_FS 1
16542 _ACEOF
16543
16544 fi
16545 echo "$as_me:$LINENO: checking for r_gs in struct reg" >&5
16546 echo $ECHO_N "checking for r_gs in struct reg... $ECHO_C" >&6
16547 if test "${gdb_cv_struct_reg_r_gs+set}" = set; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h.  */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h.  */
16556 #include <machine/reg.h>
16557 int
16558 main ()
16559 {
16560 struct reg r; r.r_gs;
16561   ;
16562   return 0;
16563 }
16564 _ACEOF
16565 rm -f conftest.$ac_objext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567   (eval $ac_compile) 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } &&
16574          { ac_try='test -z "$ac_c_werror_flag"
16575                          || test ! -s conftest.err'
16576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577   (eval $ac_try) 2>&5
16578   ac_status=$?
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); }; } &&
16581          { ac_try='test -s conftest.$ac_objext'
16582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583   (eval $ac_try) 2>&5
16584   ac_status=$?
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); }; }; then
16587   gdb_cv_struct_reg_r_gs=yes
16588 else
16589   echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 gdb_cv_struct_reg_r_gs=no
16593 fi
16594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16595 fi
16596 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_gs" >&5
16597 echo "${ECHO_T}$gdb_cv_struct_reg_r_gs" >&6
16598 if test $gdb_cv_struct_reg_r_gs = yes; then
16599   cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_STRUCT_REG_R_GS 1
16601 _ACEOF
16602
16603 fi
16604
16605 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16606 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16607 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16608 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16609   echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611   cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h.  */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h.  */
16617 #include <sys/ptrace.h>
16618 int
16619 main ()
16620 {
16621 PTRACE_GETREGS;
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628   (eval $ac_compile) 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag"
16636                          || test ! -s conftest.err'
16637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638   (eval $ac_try) 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644   (eval $ac_try) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   gdb_cv_have_ptrace_getregs=yes
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 gdb_cv_have_ptrace_getregs=no
16654 fi
16655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16656 fi
16657
16658 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16659 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
16660 if test $gdb_cv_have_ptrace_getregs = yes; then
16661   cat >>confdefs.h <<\_ACEOF
16662 #define HAVE_PTRACE_GETREGS 1
16663 _ACEOF
16664
16665 fi
16666
16667 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16668 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16669 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16670 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16671   echo $ECHO_N "(cached) $ECHO_C" >&6
16672 else
16673   cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h.  */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h.  */
16679 #include <sys/ptrace.h>
16680 int
16681 main ()
16682 {
16683 PTRACE_GETFPXREGS;
16684   ;
16685   return 0;
16686 }
16687 _ACEOF
16688 rm -f conftest.$ac_objext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16690   (eval $ac_compile) 2>conftest.er1
16691   ac_status=$?
16692   grep -v '^ *+' conftest.er1 >conftest.err
16693   rm -f conftest.er1
16694   cat conftest.err >&5
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); } &&
16697          { ac_try='test -z "$ac_c_werror_flag"
16698                          || test ! -s conftest.err'
16699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700   (eval $ac_try) 2>&5
16701   ac_status=$?
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); }; } &&
16704          { ac_try='test -s conftest.$ac_objext'
16705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706   (eval $ac_try) 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); }; }; then
16710   gdb_cv_have_ptrace_getfpxregs=yes
16711 else
16712   echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16714
16715 gdb_cv_have_ptrace_getfpxregs=no
16716 fi
16717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16718 fi
16719
16720 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16721 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
16722 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
16723   cat >>confdefs.h <<\_ACEOF
16724 #define HAVE_PTRACE_GETFPXREGS 1
16725 _ACEOF
16726
16727 fi
16728
16729 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16730 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16731 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16732 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16733   echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735   cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <sys/types.h>
16742 #include <sys/ptrace.h>
16743 int
16744 main ()
16745 {
16746 PT_GETDBREGS;
16747   ;
16748   return 0;
16749 }
16750 _ACEOF
16751 rm -f conftest.$ac_objext
16752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16753   (eval $ac_compile) 2>conftest.er1
16754   ac_status=$?
16755   grep -v '^ *+' conftest.er1 >conftest.err
16756   rm -f conftest.er1
16757   cat conftest.err >&5
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); } &&
16760          { ac_try='test -z "$ac_c_werror_flag"
16761                          || test ! -s conftest.err'
16762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763   (eval $ac_try) 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); }; } &&
16767          { ac_try='test -s conftest.$ac_objext'
16768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769   (eval $ac_try) 2>&5
16770   ac_status=$?
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); }; }; then
16773   gdb_cv_have_pt_getdbregs=yes
16774 else
16775   echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16777
16778 gdb_cv_have_pt_getdbregs=no
16779 fi
16780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16781 fi
16782
16783 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16784 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
16785 if test $gdb_cv_have_pt_getdbregs = yes; then
16786   cat >>confdefs.h <<\_ACEOF
16787 #define HAVE_PT_GETDBREGS 1
16788 _ACEOF
16789
16790 fi
16791
16792 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16793 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16794 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16795 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798   cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h.  */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h.  */
16804 #include <sys/types.h>
16805 #include <sys/ptrace.h>
16806 int
16807 main ()
16808 {
16809 PT_GETXMMREGS;
16810   ;
16811   return 0;
16812 }
16813 _ACEOF
16814 rm -f conftest.$ac_objext
16815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16816   (eval $ac_compile) 2>conftest.er1
16817   ac_status=$?
16818   grep -v '^ *+' conftest.er1 >conftest.err
16819   rm -f conftest.er1
16820   cat conftest.err >&5
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } &&
16823          { ac_try='test -z "$ac_c_werror_flag"
16824                          || test ! -s conftest.err'
16825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826   (eval $ac_try) 2>&5
16827   ac_status=$?
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); }; } &&
16830          { ac_try='test -s conftest.$ac_objext'
16831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832   (eval $ac_try) 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); }; }; then
16836   gdb_cv_have_pt_getxmmregs=yes
16837 else
16838   echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16840
16841 gdb_cv_have_pt_getxmmregs=no
16842 fi
16843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16844 fi
16845
16846 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16847 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
16848 if test $gdb_cv_have_pt_getxmmregs = yes; then
16849   cat >>confdefs.h <<\_ACEOF
16850 #define HAVE_PT_GETXMMREGS 1
16851 _ACEOF
16852
16853 fi
16854
16855 # See if stdint.h provides the uintptr_t type.
16856 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
16857 echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
16858 echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
16859 if test "${gdb_cv_have_uintptr_t+set}" = set; then
16860   echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862   cat >conftest.$ac_ext <<_ACEOF
16863 /* confdefs.h.  */
16864 _ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h.  */
16868 #include <stdint.h>
16869 int
16870 main ()
16871 {
16872 uintptr_t foo = 0;
16873   ;
16874   return 0;
16875 }
16876 _ACEOF
16877 rm -f conftest.$ac_objext
16878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16879   (eval $ac_compile) 2>conftest.er1
16880   ac_status=$?
16881   grep -v '^ *+' conftest.er1 >conftest.err
16882   rm -f conftest.er1
16883   cat conftest.err >&5
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } &&
16886          { ac_try='test -z "$ac_c_werror_flag"
16887                          || test ! -s conftest.err'
16888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889   (eval $ac_try) 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; } &&
16893          { ac_try='test -s conftest.$ac_objext'
16894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895   (eval $ac_try) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; }; then
16899   gdb_cv_have_uintptr_t=yes
16900 else
16901   echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16903
16904 gdb_cv_have_uintptr_t=no
16905 fi
16906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16907 fi
16908 echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
16909 echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
16910 if test $gdb_cv_have_uintptr_t = yes; then
16911
16912 cat >>confdefs.h <<\_ACEOF
16913 #define HAVE_UINTPTR_T 1
16914 _ACEOF
16915
16916 fi
16917
16918 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
16919 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
16920 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
16921   echo $ECHO_N "(cached) $ECHO_C" >&6
16922 else
16923   cat >conftest.$ac_ext <<_ACEOF
16924 /* confdefs.h.  */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h.  */
16929
16930 #include <stdio.h>
16931 #ifdef HAVE_STRING_H
16932 #include <string.h>
16933 #else
16934 #ifdef HAVE_STRINGS_H
16935 #include <strings.h>
16936 #endif
16937 #endif
16938 #ifdef HAVE_STDLIB_H
16939 #include <stdlib.h>
16940 #endif
16941 #ifdef HAVE_UNISTD_H
16942 #include <unistd.h>
16943 #endif
16944 int
16945 main ()
16946 {
16947 char *(*pfn) = (char *(*)) malloc
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954   (eval $ac_compile) 2>conftest.er1
16955   ac_status=$?
16956   grep -v '^ *+' conftest.er1 >conftest.err
16957   rm -f conftest.er1
16958   cat conftest.err >&5
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); } &&
16961          { ac_try='test -z "$ac_c_werror_flag"
16962                          || test ! -s conftest.err'
16963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964   (eval $ac_try) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; } &&
16968          { ac_try='test -s conftest.$ac_objext'
16969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970   (eval $ac_try) 2>&5
16971   ac_status=$?
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); }; }; then
16974   bfd_cv_decl_needed_malloc=no
16975 else
16976   echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979 bfd_cv_decl_needed_malloc=yes
16980 fi
16981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16982 fi
16983
16984 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
16985 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
16986 if test $bfd_cv_decl_needed_malloc = yes; then
16987
16988 cat >>confdefs.h <<\_ACEOF
16989 #define NEED_DECLARATION_MALLOC 1
16990 _ACEOF
16991
16992 fi
16993
16994 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
16995 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
16996 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
16997   echo $ECHO_N "(cached) $ECHO_C" >&6
16998 else
16999   cat >conftest.$ac_ext <<_ACEOF
17000 /* confdefs.h.  */
17001 _ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h.  */
17005
17006 #include <stdio.h>
17007 #ifdef HAVE_STRING_H
17008 #include <string.h>
17009 #else
17010 #ifdef HAVE_STRINGS_H
17011 #include <strings.h>
17012 #endif
17013 #endif
17014 #ifdef HAVE_STDLIB_H
17015 #include <stdlib.h>
17016 #endif
17017 #ifdef HAVE_UNISTD_H
17018 #include <unistd.h>
17019 #endif
17020 int
17021 main ()
17022 {
17023 char *(*pfn) = (char *(*)) realloc
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030   (eval $ac_compile) 2>conftest.er1
17031   ac_status=$?
17032   grep -v '^ *+' conftest.er1 >conftest.err
17033   rm -f conftest.er1
17034   cat conftest.err >&5
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); } &&
17037          { ac_try='test -z "$ac_c_werror_flag"
17038                          || test ! -s conftest.err'
17039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040   (eval $ac_try) 2>&5
17041   ac_status=$?
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); }; } &&
17044          { ac_try='test -s conftest.$ac_objext'
17045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046   (eval $ac_try) 2>&5
17047   ac_status=$?
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); }; }; then
17050   bfd_cv_decl_needed_realloc=no
17051 else
17052   echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17054
17055 bfd_cv_decl_needed_realloc=yes
17056 fi
17057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17058 fi
17059
17060 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
17061 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
17062 if test $bfd_cv_decl_needed_realloc = yes; then
17063
17064 cat >>confdefs.h <<\_ACEOF
17065 #define NEED_DECLARATION_REALLOC 1
17066 _ACEOF
17067
17068 fi
17069
17070 echo "$as_me:$LINENO: checking whether free must be declared" >&5
17071 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
17072 if test "${bfd_cv_decl_needed_free+set}" = set; then
17073   echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075   cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h.  */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h.  */
17081
17082 #include <stdio.h>
17083 #ifdef HAVE_STRING_H
17084 #include <string.h>
17085 #else
17086 #ifdef HAVE_STRINGS_H
17087 #include <strings.h>
17088 #endif
17089 #endif
17090 #ifdef HAVE_STDLIB_H
17091 #include <stdlib.h>
17092 #endif
17093 #ifdef HAVE_UNISTD_H
17094 #include <unistd.h>
17095 #endif
17096 int
17097 main ()
17098 {
17099 char *(*pfn) = (char *(*)) free
17100   ;
17101   return 0;
17102 }
17103 _ACEOF
17104 rm -f conftest.$ac_objext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17106   (eval $ac_compile) 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } &&
17113          { ac_try='test -z "$ac_c_werror_flag"
17114                          || test ! -s conftest.err'
17115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116   (eval $ac_try) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; } &&
17120          { ac_try='test -s conftest.$ac_objext'
17121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122   (eval $ac_try) 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; }; then
17126   bfd_cv_decl_needed_free=no
17127 else
17128   echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 bfd_cv_decl_needed_free=yes
17132 fi
17133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17134 fi
17135
17136 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
17137 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
17138 if test $bfd_cv_decl_needed_free = yes; then
17139
17140 cat >>confdefs.h <<\_ACEOF
17141 #define NEED_DECLARATION_FREE 1
17142 _ACEOF
17143
17144 fi
17145
17146 echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
17147 echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
17148 if test "${bfd_cv_decl_needed_strerror+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h.  */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h.  */
17157
17158 #include <stdio.h>
17159 #ifdef HAVE_STRING_H
17160 #include <string.h>
17161 #else
17162 #ifdef HAVE_STRINGS_H
17163 #include <strings.h>
17164 #endif
17165 #endif
17166 #ifdef HAVE_STDLIB_H
17167 #include <stdlib.h>
17168 #endif
17169 #ifdef HAVE_UNISTD_H
17170 #include <unistd.h>
17171 #endif
17172 int
17173 main ()
17174 {
17175 char *(*pfn) = (char *(*)) strerror
17176   ;
17177   return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182   (eval $ac_compile) 2>conftest.er1
17183   ac_status=$?
17184   grep -v '^ *+' conftest.er1 >conftest.err
17185   rm -f conftest.er1
17186   cat conftest.err >&5
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); } &&
17189          { ac_try='test -z "$ac_c_werror_flag"
17190                          || test ! -s conftest.err'
17191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192   (eval $ac_try) 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); }; } &&
17196          { ac_try='test -s conftest.$ac_objext'
17197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198   (eval $ac_try) 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); }; }; then
17202   bfd_cv_decl_needed_strerror=no
17203 else
17204   echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 bfd_cv_decl_needed_strerror=yes
17208 fi
17209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17210 fi
17211
17212 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
17213 echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
17214 if test $bfd_cv_decl_needed_strerror = yes; then
17215
17216 cat >>confdefs.h <<\_ACEOF
17217 #define NEED_DECLARATION_STRERROR 1
17218 _ACEOF
17219
17220 fi
17221
17222 echo "$as_me:$LINENO: checking whether strdup must be declared" >&5
17223 echo $ECHO_N "checking whether strdup must be declared... $ECHO_C" >&6
17224 if test "${bfd_cv_decl_needed_strdup+set}" = set; then
17225   echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227   cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h.  */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h.  */
17233
17234 #include <stdio.h>
17235 #ifdef HAVE_STRING_H
17236 #include <string.h>
17237 #else
17238 #ifdef HAVE_STRINGS_H
17239 #include <strings.h>
17240 #endif
17241 #endif
17242 #ifdef HAVE_STDLIB_H
17243 #include <stdlib.h>
17244 #endif
17245 #ifdef HAVE_UNISTD_H
17246 #include <unistd.h>
17247 #endif
17248 int
17249 main ()
17250 {
17251 char *(*pfn) = (char *(*)) strdup
17252   ;
17253   return 0;
17254 }
17255 _ACEOF
17256 rm -f conftest.$ac_objext
17257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258   (eval $ac_compile) 2>conftest.er1
17259   ac_status=$?
17260   grep -v '^ *+' conftest.er1 >conftest.err
17261   rm -f conftest.er1
17262   cat conftest.err >&5
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); } &&
17265          { ac_try='test -z "$ac_c_werror_flag"
17266                          || test ! -s conftest.err'
17267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268   (eval $ac_try) 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); }; } &&
17272          { ac_try='test -s conftest.$ac_objext'
17273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274   (eval $ac_try) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; }; then
17278   bfd_cv_decl_needed_strdup=no
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283 bfd_cv_decl_needed_strdup=yes
17284 fi
17285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17286 fi
17287
17288 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strdup" >&5
17289 echo "${ECHO_T}$bfd_cv_decl_needed_strdup" >&6
17290 if test $bfd_cv_decl_needed_strdup = yes; then
17291
17292 cat >>confdefs.h <<\_ACEOF
17293 #define NEED_DECLARATION_STRDUP 1
17294 _ACEOF
17295
17296 fi
17297
17298 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
17299 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
17300 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
17301   echo $ECHO_N "(cached) $ECHO_C" >&6
17302 else
17303   cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h.  */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h.  */
17309
17310 #include <stdio.h>
17311 #ifdef HAVE_STRING_H
17312 #include <string.h>
17313 #else
17314 #ifdef HAVE_STRINGS_H
17315 #include <strings.h>
17316 #endif
17317 #endif
17318 #ifdef HAVE_STDLIB_H
17319 #include <stdlib.h>
17320 #endif
17321 #ifdef HAVE_UNISTD_H
17322 #include <unistd.h>
17323 #endif
17324 int
17325 main ()
17326 {
17327 char *(*pfn) = (char *(*)) strstr
17328   ;
17329   return 0;
17330 }
17331 _ACEOF
17332 rm -f conftest.$ac_objext
17333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17334   (eval $ac_compile) 2>conftest.er1
17335   ac_status=$?
17336   grep -v '^ *+' conftest.er1 >conftest.err
17337   rm -f conftest.er1
17338   cat conftest.err >&5
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); } &&
17341          { ac_try='test -z "$ac_c_werror_flag"
17342                          || test ! -s conftest.err'
17343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344   (eval $ac_try) 2>&5
17345   ac_status=$?
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); }; } &&
17348          { ac_try='test -s conftest.$ac_objext'
17349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350   (eval $ac_try) 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; }; then
17354   bfd_cv_decl_needed_strstr=no
17355 else
17356   echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359 bfd_cv_decl_needed_strstr=yes
17360 fi
17361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17362 fi
17363
17364 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
17365 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
17366 if test $bfd_cv_decl_needed_strstr = yes; then
17367
17368 cat >>confdefs.h <<\_ACEOF
17369 #define NEED_DECLARATION_STRSTR 1
17370 _ACEOF
17371
17372 fi
17373
17374 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
17375 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
17376 if test "${bfd_cv_decl_needed_canonicalize_file_name+set}" = set; then
17377   echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379   cat >conftest.$ac_ext <<_ACEOF
17380 /* confdefs.h.  */
17381 _ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h.  */
17385
17386 #include <stdio.h>
17387 #ifdef HAVE_STRING_H
17388 #include <string.h>
17389 #else
17390 #ifdef HAVE_STRINGS_H
17391 #include <strings.h>
17392 #endif
17393 #endif
17394 #ifdef HAVE_STDLIB_H
17395 #include <stdlib.h>
17396 #endif
17397 #ifdef HAVE_UNISTD_H
17398 #include <unistd.h>
17399 #endif
17400 int
17401 main ()
17402 {
17403 char *(*pfn) = (char *(*)) canonicalize_file_name
17404   ;
17405   return 0;
17406 }
17407 _ACEOF
17408 rm -f conftest.$ac_objext
17409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17410   (eval $ac_compile) 2>conftest.er1
17411   ac_status=$?
17412   grep -v '^ *+' conftest.er1 >conftest.err
17413   rm -f conftest.er1
17414   cat conftest.err >&5
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } &&
17417          { ac_try='test -z "$ac_c_werror_flag"
17418                          || test ! -s conftest.err'
17419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420   (eval $ac_try) 2>&5
17421   ac_status=$?
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); }; } &&
17424          { ac_try='test -s conftest.$ac_objext'
17425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426   (eval $ac_try) 2>&5
17427   ac_status=$?
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); }; }; then
17430   bfd_cv_decl_needed_canonicalize_file_name=no
17431 else
17432   echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17434
17435 bfd_cv_decl_needed_canonicalize_file_name=yes
17436 fi
17437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17438 fi
17439
17440 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_canonicalize_file_name" >&5
17441 echo "${ECHO_T}$bfd_cv_decl_needed_canonicalize_file_name" >&6
17442 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
17443
17444 cat >>confdefs.h <<\_ACEOF
17445 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
17446 _ACEOF
17447
17448 fi
17449
17450
17451 # The following save_state_t checkery is only necessary for HPUX
17452 # versions earlier than 10.20.  When those fade from memory, this
17453 # could be expunged. --jsm 1999-03-22
17454
17455 echo "$as_me:$LINENO: checking for HPUX save_state structure" >&5
17456 echo $ECHO_N "checking for HPUX save_state structure... $ECHO_C" >&6
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h.  */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h.  */
17463 #include <machine/save_state.h>
17464
17465 _ACEOF
17466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17467   $EGREP "save_state_t" >/dev/null 2>&1; then
17468   gdb_cv_hpux_savestate=yes
17469 else
17470   gdb_cv_hpux_savestate=no
17471 fi
17472 rm -f conftest*
17473
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 #include <machine/save_state.h>
17481
17482 _ACEOF
17483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17484   $EGREP "ss_wide" >/dev/null 2>&1; then
17485   gdb_cv_hpux_sswide=yes
17486 else
17487   gdb_cv_hpux_sswide=no
17488 fi
17489 rm -f conftest*
17490
17491 if test $gdb_cv_hpux_savestate = yes
17492 then
17493   cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_STRUCT_SAVE_STATE_T 1
17495 _ACEOF
17496
17497 fi
17498 if test $gdb_cv_hpux_sswide = yes
17499 then
17500   cat >>confdefs.h <<\_ACEOF
17501 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
17502 _ACEOF
17503
17504 fi
17505 echo "$as_me:$LINENO: result: $gdb_cv_hpux_sswide" >&5
17506 echo "${ECHO_T}$gdb_cv_hpux_sswide" >&6
17507
17508
17509 # If we are configured native on GNU/Linux, work around problems with
17510 # sys/procfs.h
17511 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17512
17513 if test "${target}" = "${host}"; then
17514   case "${host}" in
17515   i[3456]86-*-linux*)
17516         cat >>confdefs.h <<\_ACEOF
17517 #define START_INFERIOR_TRAPS_EXPECTED 2
17518 _ACEOF
17519
17520         cat >>confdefs.h <<\_ACEOF
17521 #define sys_quotactl 1
17522 _ACEOF
17523
17524         ;;
17525   ia64-*-aix*)
17526       cat >>confdefs.h <<\_ACEOF
17527 #define NEW_PROC_API 1
17528 _ACEOF
17529
17530       ;;
17531   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17532       cat >>confdefs.h <<\_ACEOF
17533 #define NEW_PROC_API 1
17534 _ACEOF
17535
17536       ;;
17537   *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17538       cat >>confdefs.h <<\_ACEOF
17539 #define NEW_PROC_API 1
17540 _ACEOF
17541
17542       ;;
17543   mips-sgi-irix5*)
17544       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17545       cat >>confdefs.h <<\_ACEOF
17546 #define _KMEMUSER 1
17547 _ACEOF
17548
17549       ;;
17550   esac
17551 fi
17552
17553 if test "$ac_cv_header_sys_procfs_h" = yes; then
17554   echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17555 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17556  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17557   echo $ECHO_N "(cached) $ECHO_C" >&6
17558 else
17559   cat >conftest.$ac_ext <<_ACEOF
17560 /* confdefs.h.  */
17561 _ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h.  */
17565
17566 #define _SYSCALL32
17567 #include <sys/procfs.h>
17568 int
17569 main ()
17570 {
17571 pstatus_t avar
17572   ;
17573   return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest.$ac_objext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17578   (eval $ac_compile) 2>conftest.er1
17579   ac_status=$?
17580   grep -v '^ *+' conftest.er1 >conftest.err
17581   rm -f conftest.er1
17582   cat conftest.err >&5
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); } &&
17585          { ac_try='test -z "$ac_c_werror_flag"
17586                          || test ! -s conftest.err'
17587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588   (eval $ac_try) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; } &&
17592          { ac_try='test -s conftest.$ac_objext'
17593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594   (eval $ac_try) 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); }; }; then
17598   bfd_cv_have_sys_procfs_type_pstatus_t=yes
17599 else
17600   echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603 bfd_cv_have_sys_procfs_type_pstatus_t=no
17604
17605 fi
17606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17607 fi
17608
17609  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17610
17611 cat >>confdefs.h <<\_ACEOF
17612 #define HAVE_PSTATUS_T 1
17613 _ACEOF
17614
17615  fi
17616  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17617 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17618
17619   echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17620 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17621  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624   cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630
17631 #define _SYSCALL32
17632 #include <sys/procfs.h>
17633 int
17634 main ()
17635 {
17636 prrun_t avar
17637   ;
17638   return 0;
17639 }
17640 _ACEOF
17641 rm -f conftest.$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643   (eval $ac_compile) 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } &&
17650          { ac_try='test -z "$ac_c_werror_flag"
17651                          || test ! -s conftest.err'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; } &&
17657          { ac_try='test -s conftest.$ac_objext'
17658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659   (eval $ac_try) 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; }; then
17663   bfd_cv_have_sys_procfs_type_prrun_t=yes
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 bfd_cv_have_sys_procfs_type_prrun_t=no
17669
17670 fi
17671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17672 fi
17673
17674  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17675
17676 cat >>confdefs.h <<\_ACEOF
17677 #define HAVE_PRRUN_T 1
17678 _ACEOF
17679
17680  fi
17681  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17682 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17683
17684   echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17685 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17686  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689   cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695
17696 #define _SYSCALL32
17697 #include <sys/procfs.h>
17698 int
17699 main ()
17700 {
17701 gregset_t avar
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708   (eval $ac_compile) 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag"
17716                          || test ! -s conftest.err'
17717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718   (eval $ac_try) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; } &&
17722          { ac_try='test -s conftest.$ac_objext'
17723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724   (eval $ac_try) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; }; then
17728   bfd_cv_have_sys_procfs_type_gregset_t=yes
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 bfd_cv_have_sys_procfs_type_gregset_t=no
17734
17735 fi
17736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17737 fi
17738
17739  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17740
17741 cat >>confdefs.h <<\_ACEOF
17742 #define HAVE_GREGSET_T 1
17743 _ACEOF
17744
17745  fi
17746  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17747 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17748
17749   echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17750 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17751  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17752   echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754   cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h.  */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h.  */
17760
17761 #define _SYSCALL32
17762 #include <sys/procfs.h>
17763 int
17764 main ()
17765 {
17766 fpregset_t avar
17767   ;
17768   return 0;
17769 }
17770 _ACEOF
17771 rm -f conftest.$ac_objext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773   (eval $ac_compile) 2>conftest.er1
17774   ac_status=$?
17775   grep -v '^ *+' conftest.er1 >conftest.err
17776   rm -f conftest.er1
17777   cat conftest.err >&5
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); } &&
17780          { ac_try='test -z "$ac_c_werror_flag"
17781                          || test ! -s conftest.err'
17782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783   (eval $ac_try) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); }; } &&
17787          { ac_try='test -s conftest.$ac_objext'
17788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789   (eval $ac_try) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; }; then
17793   bfd_cv_have_sys_procfs_type_fpregset_t=yes
17794 else
17795   echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798 bfd_cv_have_sys_procfs_type_fpregset_t=no
17799
17800 fi
17801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17802 fi
17803
17804  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17805
17806 cat >>confdefs.h <<\_ACEOF
17807 #define HAVE_FPREGSET_T 1
17808 _ACEOF
17809
17810  fi
17811  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17812 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17813
17814   echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17815 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17816  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17817   echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819   cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825
17826 #define _SYSCALL32
17827 #include <sys/procfs.h>
17828 int
17829 main ()
17830 {
17831 prgregset_t avar
17832   ;
17833   return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838   (eval $ac_compile) 2>conftest.er1
17839   ac_status=$?
17840   grep -v '^ *+' conftest.er1 >conftest.err
17841   rm -f conftest.er1
17842   cat conftest.err >&5
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); } &&
17845          { ac_try='test -z "$ac_c_werror_flag"
17846                          || test ! -s conftest.err'
17847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848   (eval $ac_try) 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }; } &&
17852          { ac_try='test -s conftest.$ac_objext'
17853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854   (eval $ac_try) 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); }; }; then
17858   bfd_cv_have_sys_procfs_type_prgregset_t=yes
17859 else
17860   echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17862
17863 bfd_cv_have_sys_procfs_type_prgregset_t=no
17864
17865 fi
17866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17867 fi
17868
17869  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17870
17871 cat >>confdefs.h <<\_ACEOF
17872 #define HAVE_PRGREGSET_T 1
17873 _ACEOF
17874
17875  fi
17876  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17877 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17878
17879   echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17880 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17881  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17882   echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884   cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h.  */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h.  */
17890
17891 #define _SYSCALL32
17892 #include <sys/procfs.h>
17893 int
17894 main ()
17895 {
17896 prfpregset_t avar
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 rm -f conftest.$ac_objext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903   (eval $ac_compile) 2>conftest.er1
17904   ac_status=$?
17905   grep -v '^ *+' conftest.er1 >conftest.err
17906   rm -f conftest.er1
17907   cat conftest.err >&5
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); } &&
17910          { ac_try='test -z "$ac_c_werror_flag"
17911                          || test ! -s conftest.err'
17912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913   (eval $ac_try) 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; } &&
17917          { ac_try='test -s conftest.$ac_objext'
17918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919   (eval $ac_try) 2>&5
17920   ac_status=$?
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); }; }; then
17923   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17924 else
17925   echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17929
17930 fi
17931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17932 fi
17933
17934  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17935
17936 cat >>confdefs.h <<\_ACEOF
17937 #define HAVE_PRFPREGSET_T 1
17938 _ACEOF
17939
17940  fi
17941  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17942 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17943
17944   echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17945 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17946  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17947   echo $ECHO_N "(cached) $ECHO_C" >&6
17948 else
17949   cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h.  */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h.  */
17955
17956 #define _SYSCALL32
17957 #include <sys/procfs.h>
17958 int
17959 main ()
17960 {
17961 prgregset32_t avar
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 rm -f conftest.$ac_objext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968   (eval $ac_compile) 2>conftest.er1
17969   ac_status=$?
17970   grep -v '^ *+' conftest.er1 >conftest.err
17971   rm -f conftest.er1
17972   cat conftest.err >&5
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); } &&
17975          { ac_try='test -z "$ac_c_werror_flag"
17976                          || test ! -s conftest.err'
17977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978   (eval $ac_try) 2>&5
17979   ac_status=$?
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); }; } &&
17982          { ac_try='test -s conftest.$ac_objext'
17983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984   (eval $ac_try) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; }; then
17988   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17989 else
17990   echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17994
17995 fi
17996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17997 fi
17998
17999  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18000
18001 cat >>confdefs.h <<\_ACEOF
18002 #define HAVE_PRGREGSET32_T 1
18003 _ACEOF
18004
18005  fi
18006  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18007 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18008
18009   echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18010 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18011  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h.  */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h.  */
18020
18021 #define _SYSCALL32
18022 #include <sys/procfs.h>
18023 int
18024 main ()
18025 {
18026 prfpregset32_t avar
18027   ;
18028   return 0;
18029 }
18030 _ACEOF
18031 rm -f conftest.$ac_objext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18033   (eval $ac_compile) 2>conftest.er1
18034   ac_status=$?
18035   grep -v '^ *+' conftest.er1 >conftest.err
18036   rm -f conftest.er1
18037   cat conftest.err >&5
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); } &&
18040          { ac_try='test -z "$ac_c_werror_flag"
18041                          || test ! -s conftest.err'
18042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043   (eval $ac_try) 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); }; } &&
18047          { ac_try='test -s conftest.$ac_objext'
18048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049   (eval $ac_try) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; }; then
18053   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18054 else
18055   echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18059
18060 fi
18061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18062 fi
18063
18064  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18065
18066 cat >>confdefs.h <<\_ACEOF
18067 #define HAVE_PRFPREGSET32_T 1
18068 _ACEOF
18069
18070  fi
18071  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18072 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18073
18074   echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18075 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18076  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18077   echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079   cat >conftest.$ac_ext <<_ACEOF
18080 /* confdefs.h.  */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h.  */
18085
18086 #define _SYSCALL32
18087 #include <sys/procfs.h>
18088 int
18089 main ()
18090 {
18091 lwpid_t avar
18092   ;
18093   return 0;
18094 }
18095 _ACEOF
18096 rm -f conftest.$ac_objext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18098   (eval $ac_compile) 2>conftest.er1
18099   ac_status=$?
18100   grep -v '^ *+' conftest.er1 >conftest.err
18101   rm -f conftest.er1
18102   cat conftest.err >&5
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); } &&
18105          { ac_try='test -z "$ac_c_werror_flag"
18106                          || test ! -s conftest.err'
18107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108   (eval $ac_try) 2>&5
18109   ac_status=$?
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); }; } &&
18112          { ac_try='test -s conftest.$ac_objext'
18113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114   (eval $ac_try) 2>&5
18115   ac_status=$?
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); }; }; then
18118   bfd_cv_have_sys_procfs_type_lwpid_t=yes
18119 else
18120   echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18122
18123 bfd_cv_have_sys_procfs_type_lwpid_t=no
18124
18125 fi
18126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18127 fi
18128
18129  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18130
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE_LWPID_T 1
18133 _ACEOF
18134
18135  fi
18136  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18137 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18138
18139   echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18140 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18141  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18142   echo $ECHO_N "(cached) $ECHO_C" >&6
18143 else
18144   cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h.  */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h.  */
18150
18151 #define _SYSCALL32
18152 #include <sys/procfs.h>
18153 int
18154 main ()
18155 {
18156 psaddr_t avar
18157   ;
18158   return 0;
18159 }
18160 _ACEOF
18161 rm -f conftest.$ac_objext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163   (eval $ac_compile) 2>conftest.er1
18164   ac_status=$?
18165   grep -v '^ *+' conftest.er1 >conftest.err
18166   rm -f conftest.er1
18167   cat conftest.err >&5
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); } &&
18170          { ac_try='test -z "$ac_c_werror_flag"
18171                          || test ! -s conftest.err'
18172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173   (eval $ac_try) 2>&5
18174   ac_status=$?
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); }; } &&
18177          { ac_try='test -s conftest.$ac_objext'
18178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179   (eval $ac_try) 2>&5
18180   ac_status=$?
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); }; }; then
18183   bfd_cv_have_sys_procfs_type_psaddr_t=yes
18184 else
18185   echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18187
18188 bfd_cv_have_sys_procfs_type_psaddr_t=no
18189
18190 fi
18191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18192 fi
18193
18194  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18195
18196 cat >>confdefs.h <<\_ACEOF
18197 #define HAVE_PSADDR_T 1
18198 _ACEOF
18199
18200  fi
18201  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18202 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18203
18204   echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18205 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18206  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18207   echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209   cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215
18216 #define _SYSCALL32
18217 #include <sys/procfs.h>
18218 int
18219 main ()
18220 {
18221 prsysent_t avar
18222   ;
18223   return 0;
18224 }
18225 _ACEOF
18226 rm -f conftest.$ac_objext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18228   (eval $ac_compile) 2>conftest.er1
18229   ac_status=$?
18230   grep -v '^ *+' conftest.er1 >conftest.err
18231   rm -f conftest.er1
18232   cat conftest.err >&5
18233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } &&
18235          { ac_try='test -z "$ac_c_werror_flag"
18236                          || test ! -s conftest.err'
18237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238   (eval $ac_try) 2>&5
18239   ac_status=$?
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); }; } &&
18242          { ac_try='test -s conftest.$ac_objext'
18243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244   (eval $ac_try) 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; }; then
18248   bfd_cv_have_sys_procfs_type_prsysent_t=yes
18249 else
18250   echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253 bfd_cv_have_sys_procfs_type_prsysent_t=no
18254
18255 fi
18256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18257 fi
18258
18259  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18260
18261 cat >>confdefs.h <<\_ACEOF
18262 #define HAVE_PRSYSENT_T 1
18263 _ACEOF
18264
18265  fi
18266  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18267 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18268
18269   echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18270 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18271  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18272   echo $ECHO_N "(cached) $ECHO_C" >&6
18273 else
18274   cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h.  */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h.  */
18280
18281 #define _SYSCALL32
18282 #include <sys/procfs.h>
18283 int
18284 main ()
18285 {
18286 pr_sigset_t avar
18287   ;
18288   return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293   (eval $ac_compile) 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } &&
18300          { ac_try='test -z "$ac_c_werror_flag"
18301                          || test ! -s conftest.err'
18302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303   (eval $ac_try) 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; } &&
18307          { ac_try='test -s conftest.$ac_objext'
18308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309   (eval $ac_try) 2>&5
18310   ac_status=$?
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); }; }; then
18313   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18314 else
18315   echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18317
18318 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18319
18320 fi
18321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18322 fi
18323
18324  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18325
18326 cat >>confdefs.h <<\_ACEOF
18327 #define HAVE_PR_SIGSET_T 1
18328 _ACEOF
18329
18330  fi
18331  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18332 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18333
18334   echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18335 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18336  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18337   echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339   cat >conftest.$ac_ext <<_ACEOF
18340 /* confdefs.h.  */
18341 _ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h.  */
18345
18346 #define _SYSCALL32
18347 #include <sys/procfs.h>
18348 int
18349 main ()
18350 {
18351 pr_sigaction64_t avar
18352   ;
18353   return 0;
18354 }
18355 _ACEOF
18356 rm -f conftest.$ac_objext
18357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18358   (eval $ac_compile) 2>conftest.er1
18359   ac_status=$?
18360   grep -v '^ *+' conftest.er1 >conftest.err
18361   rm -f conftest.er1
18362   cat conftest.err >&5
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); } &&
18365          { ac_try='test -z "$ac_c_werror_flag"
18366                          || test ! -s conftest.err'
18367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368   (eval $ac_try) 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; } &&
18372          { ac_try='test -s conftest.$ac_objext'
18373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374   (eval $ac_try) 2>&5
18375   ac_status=$?
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); }; }; then
18378   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18379 else
18380   echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18384
18385 fi
18386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18387 fi
18388
18389  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18390
18391 cat >>confdefs.h <<\_ACEOF
18392 #define HAVE_PR_SIGACTION64_T 1
18393 _ACEOF
18394
18395  fi
18396  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18397 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18398
18399   echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18400 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18401  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h.  */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h.  */
18410
18411 #define _SYSCALL32
18412 #include <sys/procfs.h>
18413 int
18414 main ()
18415 {
18416 pr_siginfo64_t avar
18417   ;
18418   return 0;
18419 }
18420 _ACEOF
18421 rm -f conftest.$ac_objext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423   (eval $ac_compile) 2>conftest.er1
18424   ac_status=$?
18425   grep -v '^ *+' conftest.er1 >conftest.err
18426   rm -f conftest.er1
18427   cat conftest.err >&5
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } &&
18430          { ac_try='test -z "$ac_c_werror_flag"
18431                          || test ! -s conftest.err'
18432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433   (eval $ac_try) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; } &&
18437          { ac_try='test -s conftest.$ac_objext'
18438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18444 else
18445   echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18447
18448 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18449
18450 fi
18451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18452 fi
18453
18454  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18455
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_PR_SIGINFO64_T 1
18458 _ACEOF
18459
18460  fi
18461  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18462 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18463
18464
18465
18466
18467
18468   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18469     echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18470 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18471     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   if test "$cross_compiling" = yes; then
18475   gdb_cv_prfpregset_t_broken=yes
18476 else
18477   cat >conftest.$ac_ext <<_ACEOF
18478 /* confdefs.h.  */
18479 _ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h.  */
18483 #include <sys/procfs.h>
18484        int main ()
18485        {
18486          if (sizeof (prfpregset_t) == sizeof (void *))
18487            return 1;
18488          return 0;
18489        }
18490 _ACEOF
18491 rm -f conftest$ac_exeext
18492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18493   (eval $ac_link) 2>&5
18494   ac_status=$?
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498   (eval $ac_try) 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; }; then
18502   gdb_cv_prfpregset_t_broken=no
18503 else
18504   echo "$as_me: program exited with status $ac_status" >&5
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18507
18508 ( exit $ac_status )
18509 gdb_cv_prfpregset_t_broken=yes
18510 fi
18511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18512 fi
18513 fi
18514
18515     echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18516 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18517     if test $gdb_cv_prfpregset_t_broken = yes; then
18518       cat >>confdefs.h <<\_ACEOF
18519 #define PRFPREGSET_T_BROKEN 1
18520 _ACEOF
18521
18522     fi
18523   fi
18524
18525
18526   echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18527 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18528   if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18529   echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531   cat >conftest.$ac_ext <<_ACEOF
18532 /* confdefs.h.  */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h.  */
18537 #include <unistd.h>
18538 #include <sys/types.h>
18539 #include <sys/procfs.h>
18540
18541 int
18542 main ()
18543 {
18544
18545     int dummy;;
18546     dummy = ioctl(0, PIOCSET, &dummy);
18547
18548   ;
18549   return 0;
18550 }
18551 _ACEOF
18552 rm -f conftest.$ac_objext
18553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18554   (eval $ac_compile) 2>conftest.er1
18555   ac_status=$?
18556   grep -v '^ *+' conftest.er1 >conftest.err
18557   rm -f conftest.er1
18558   cat conftest.err >&5
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); } &&
18561          { ac_try='test -z "$ac_c_werror_flag"
18562                          || test ! -s conftest.err'
18563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564   (eval $ac_try) 2>&5
18565   ac_status=$?
18566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); }; } &&
18568          { ac_try='test -s conftest.$ac_objext'
18569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570   (eval $ac_try) 2>&5
18571   ac_status=$?
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); }; }; then
18574   gdb_cv_have_procfs_piocset=yes
18575 else
18576   echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18578
18579 gdb_cv_have_procfs_piocset=no
18580 fi
18581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18582 fi
18583
18584   echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18585 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18586   if test $gdb_cv_have_procfs_piocset = yes; then
18587     cat >>confdefs.h <<\_ACEOF
18588 #define HAVE_PROCFS_PIOCSET 1
18589 _ACEOF
18590
18591   fi
18592 fi
18593
18594 if test ${host} = ${target} ; then
18595
18596   echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18597 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18598   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18599   echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601   cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h.  */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h.  */
18607 #include <link.h>
18608 int
18609 main ()
18610 {
18611 struct link_map lm; (void) lm.l_addr;
18612   ;
18613   return 0;
18614 }
18615 _ACEOF
18616 rm -f conftest.$ac_objext
18617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18618   (eval $ac_compile) 2>conftest.er1
18619   ac_status=$?
18620   grep -v '^ *+' conftest.er1 >conftest.err
18621   rm -f conftest.er1
18622   cat conftest.err >&5
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); } &&
18625          { ac_try='test -z "$ac_c_werror_flag"
18626                          || test ! -s conftest.err'
18627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628   (eval $ac_try) 2>&5
18629   ac_status=$?
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); }; } &&
18632          { ac_try='test -s conftest.$ac_objext'
18633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634   (eval $ac_try) 2>&5
18635   ac_status=$?
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); }; }; then
18638   gdb_cv_have_struct_link_map_with_l_members=yes
18639 else
18640   echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 gdb_cv_have_struct_link_map_with_l_members=no
18644 fi
18645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18646 fi
18647
18648   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18649 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18650   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18651     cat >>confdefs.h <<\_ACEOF
18652 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18653 _ACEOF
18654
18655   fi
18656
18657
18658   echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18659 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18660   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18661   echo $ECHO_N "(cached) $ECHO_C" >&6
18662 else
18663   cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h.  */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h.  */
18669 #include <sys/types.h>
18670 #include <link.h>
18671 int
18672 main ()
18673 {
18674 struct link_map lm; (void) lm.lm_addr;
18675   ;
18676   return 0;
18677 }
18678 _ACEOF
18679 rm -f conftest.$ac_objext
18680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18681   (eval $ac_compile) 2>conftest.er1
18682   ac_status=$?
18683   grep -v '^ *+' conftest.er1 >conftest.err
18684   rm -f conftest.er1
18685   cat conftest.err >&5
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); } &&
18688          { ac_try='test -z "$ac_c_werror_flag"
18689                          || test ! -s conftest.err'
18690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691   (eval $ac_try) 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; } &&
18695          { ac_try='test -s conftest.$ac_objext'
18696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697   (eval $ac_try) 2>&5
18698   ac_status=$?
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); }; }; then
18701   gdb_cv_have_struct_link_map_with_lm_members=yes
18702 else
18703   echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18705
18706 gdb_cv_have_struct_link_map_with_lm_members=no
18707 fi
18708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18709 fi
18710
18711   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18712 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18713   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18714     cat >>confdefs.h <<\_ACEOF
18715 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18716 _ACEOF
18717
18718   fi
18719
18720
18721   echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18722 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18723   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   cat >conftest.$ac_ext <<_ACEOF
18727 /* confdefs.h.  */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h.  */
18732 #include <sys/types.h>
18733 #ifdef HAVE_NLIST_H
18734 #include <nlist.h>
18735 #endif
18736 #include <link.h>
18737 int
18738 main ()
18739 {
18740 struct so_map lm; (void) lm.som_addr;
18741   ;
18742   return 0;
18743 }
18744 _ACEOF
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747   (eval $ac_compile) 2>conftest.er1
18748   ac_status=$?
18749   grep -v '^ *+' conftest.er1 >conftest.err
18750   rm -f conftest.er1
18751   cat conftest.err >&5
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); } &&
18754          { ac_try='test -z "$ac_c_werror_flag"
18755                          || test ! -s conftest.err'
18756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757   (eval $ac_try) 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); }; } &&
18761          { ac_try='test -s conftest.$ac_objext'
18762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763   (eval $ac_try) 2>&5
18764   ac_status=$?
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }; }; then
18767   gdb_cv_have_struct_so_map_with_som_members=yes
18768 else
18769   echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772 gdb_cv_have_struct_so_map_with_som_members=no
18773 fi
18774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18775 fi
18776
18777   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18778 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18779   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18780     cat >>confdefs.h <<\_ACEOF
18781 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18782 _ACEOF
18783
18784   fi
18785
18786
18787   echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18788 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18789   if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18790   echo $ECHO_N "(cached) $ECHO_C" >&6
18791 else
18792   cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h.  */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h.  */
18798 #define _SYSCALL32
18799 #include <sys/link.h>
18800 int
18801 main ()
18802 {
18803 struct link_map32 l;
18804   ;
18805   return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest.$ac_objext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18810   (eval $ac_compile) 2>conftest.er1
18811   ac_status=$?
18812   grep -v '^ *+' conftest.er1 >conftest.err
18813   rm -f conftest.er1
18814   cat conftest.err >&5
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); } &&
18817          { ac_try='test -z "$ac_c_werror_flag"
18818                          || test ! -s conftest.err'
18819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820   (eval $ac_try) 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; } &&
18824          { ac_try='test -s conftest.$ac_objext'
18825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826   (eval $ac_try) 2>&5
18827   ac_status=$?
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); }; }; then
18830   gdb_cv_have_struct_link_map32=yes
18831 else
18832   echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18834
18835 gdb_cv_have_struct_link_map32=no
18836 fi
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18838 fi
18839
18840   echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18841 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18842   if test $gdb_cv_have_struct_link_map32 = yes; then
18843     cat >>confdefs.h <<\_ACEOF
18844 #define HAVE_STRUCT_LINK_MAP32 1
18845 _ACEOF
18846
18847     cat >>confdefs.h <<\_ACEOF
18848 #define _SYSCALL32 1
18849 _ACEOF
18850
18851   fi
18852 fi
18853
18854
18855 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18856 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18857 if test "${gdb_cv_c_long_long+set}" = set; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860   cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h.  */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h.  */
18866
18867 int
18868 main ()
18869 {
18870
18871   extern long long foo;
18872   switch (foo & 2) { case 0: return 1; }
18873
18874   ;
18875   return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest.$ac_objext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880   (eval $ac_compile) 2>conftest.er1
18881   ac_status=$?
18882   grep -v '^ *+' conftest.er1 >conftest.err
18883   rm -f conftest.er1
18884   cat conftest.err >&5
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } &&
18887          { ac_try='test -z "$ac_c_werror_flag"
18888                          || test ! -s conftest.err'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; } &&
18894          { ac_try='test -s conftest.$ac_objext'
18895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896   (eval $ac_try) 2>&5
18897   ac_status=$?
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); }; }; then
18900   gdb_cv_c_long_long=yes
18901 else
18902   echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 gdb_cv_c_long_long=no
18906 fi
18907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18908 fi
18909
18910 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18911 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18912 if test $gdb_cv_c_long_long = yes; then
18913   cat >>confdefs.h <<\_ACEOF
18914 #define CC_HAS_LONG_LONG 1
18915 _ACEOF
18916
18917 fi
18918
18919
18920 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18921 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18922 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18923   echo $ECHO_N "(cached) $ECHO_C" >&6
18924 else
18925   if test "$cross_compiling" = yes; then
18926   gdb_cv_printf_has_long_long=no
18927 else
18928   cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h.  */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h.  */
18934
18935 int main () {
18936   char buf[32];
18937   long long l = 0;
18938   l = (l << 16) + 0x0123;
18939   l = (l << 16) + 0x4567;
18940   l = (l << 16) + 0x89ab;
18941   l = (l << 16) + 0xcdef;
18942   sprintf (buf, "0x%016llx", l);
18943   return (strcmp ("0x0123456789abcdef", buf));
18944 }
18945 _ACEOF
18946 rm -f conftest$ac_exeext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948   (eval $ac_link) 2>&5
18949   ac_status=$?
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953   (eval $ac_try) 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; }; then
18957   gdb_cv_printf_has_long_long=yes
18958 else
18959   echo "$as_me: program exited with status $ac_status" >&5
18960 echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18962
18963 ( exit $ac_status )
18964 gdb_cv_printf_has_long_long=no
18965 fi
18966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18967 fi
18968 fi
18969
18970 if test $gdb_cv_printf_has_long_long = yes; then
18971   cat >>confdefs.h <<\_ACEOF
18972 #define PRINTF_HAS_LONG_LONG 1
18973 _ACEOF
18974
18975 fi
18976 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18977 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18978
18979
18980 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18981 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18982 if test "${ac_cv_c_long_double+set}" = set; then
18983   echo $ECHO_N "(cached) $ECHO_C" >&6
18984 else
18985   cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h.  */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h.  */
18991
18992 int
18993 main ()
18994 {
18995 long double foo;
18996   ;
18997   return 0;
18998 }
18999 _ACEOF
19000 rm -f conftest.$ac_objext
19001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19002   (eval $ac_compile) 2>conftest.er1
19003   ac_status=$?
19004   grep -v '^ *+' conftest.er1 >conftest.err
19005   rm -f conftest.er1
19006   cat conftest.err >&5
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); } &&
19009          { ac_try='test -z "$ac_c_werror_flag"
19010                          || test ! -s conftest.err'
19011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012   (eval $ac_try) 2>&5
19013   ac_status=$?
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); }; } &&
19016          { ac_try='test -s conftest.$ac_objext'
19017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018   (eval $ac_try) 2>&5
19019   ac_status=$?
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); }; }; then
19022   ac_cv_c_long_double=yes
19023 else
19024   echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19026
19027 ac_cv_c_long_double=no
19028 fi
19029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19030 fi
19031
19032 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
19033 echo "${ECHO_T}$ac_cv_c_long_double" >&6
19034 if test $ac_cv_c_long_double = yes; then
19035   cat >>confdefs.h <<\_ACEOF
19036 #define HAVE_LONG_DOUBLE 1
19037 _ACEOF
19038
19039 fi
19040
19041
19042 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19043 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19044 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19045   echo $ECHO_N "(cached) $ECHO_C" >&6
19046 else
19047   if test "$cross_compiling" = yes; then
19048   gdb_cv_printf_has_long_double=no
19049 else
19050   cat >conftest.$ac_ext <<_ACEOF
19051 /* confdefs.h.  */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h.  */
19056
19057 int main () {
19058   char buf[16];
19059   long double f = 3.141592653;
19060   sprintf (buf, "%Lg", f);
19061   return (strncmp ("3.14159", buf, 7));
19062 }
19063 _ACEOF
19064 rm -f conftest$ac_exeext
19065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066   (eval $ac_link) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071   (eval $ac_try) 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); }; }; then
19075   gdb_cv_printf_has_long_double=yes
19076 else
19077   echo "$as_me: program exited with status $ac_status" >&5
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ( exit $ac_status )
19082 gdb_cv_printf_has_long_double=no
19083 fi
19084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19085 fi
19086 fi
19087
19088 if test $gdb_cv_printf_has_long_double = yes; then
19089   cat >>confdefs.h <<\_ACEOF
19090 #define PRINTF_HAS_LONG_DOUBLE 1
19091 _ACEOF
19092
19093 fi
19094 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19095 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19096
19097
19098 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19099 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19100 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19101   echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103   if test "$cross_compiling" = yes; then
19104   gdb_cv_scanf_has_long_double=no
19105 else
19106   cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h.  */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h.  */
19112
19113 int main () {
19114   char *buf = "3.141592653";
19115   long double f = 0;
19116   sscanf (buf, "%Lg", &f);
19117   return !(f > 3.14159 && f < 3.14160);
19118 }
19119 _ACEOF
19120 rm -f conftest$ac_exeext
19121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19122   (eval $ac_link) 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127   (eval $ac_try) 2>&5
19128   ac_status=$?
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); }; }; then
19131   gdb_cv_scanf_has_long_double=yes
19132 else
19133   echo "$as_me: program exited with status $ac_status" >&5
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137 ( exit $ac_status )
19138 gdb_cv_scanf_has_long_double=no
19139 fi
19140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19141 fi
19142 fi
19143
19144 if test $gdb_cv_scanf_has_long_double = yes; then
19145   cat >>confdefs.h <<\_ACEOF
19146 #define SCANF_HAS_LONG_DOUBLE 1
19147 _ACEOF
19148
19149 fi
19150 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19151 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19152
19153 case ${host_os} in
19154 aix*)
19155   echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19156 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19157 if test "${gdb_cv_bigtoc+set}" = set; then
19158   echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160
19161     SAVE_LDFLAGS=$LDFLAGS
19162
19163     case $GCC in
19164     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19165     *) gdb_cv_bigtoc=-bbigtoc ;;
19166     esac
19167
19168     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19169     cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h.  */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h.  */
19175
19176 int
19177 main ()
19178 {
19179 int i;
19180   ;
19181   return 0;
19182 }
19183 _ACEOF
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186   (eval $ac_link) 2>conftest.er1
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_exeext'
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   :
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 gdb_cv_bigtoc=
19212 fi
19213 rm -f conftest.err conftest.$ac_objext \
19214       conftest$ac_exeext conftest.$ac_ext
19215     LDFLAGS="${SAVE_LDFLAGS}"
19216
19217 fi
19218 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19219 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19220   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19221   ;;
19222 esac
19223
19224
19225
19226 if test ${build} = ${host} -a ${host} = ${target} ; then
19227    case ${host_os} in
19228    hpux*)
19229       echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19230 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19231       if test -f /usr/include/dce/cma_config.h ; then
19232          if test "$GCC" = "yes" ; then
19233             echo "$as_me:$LINENO: result: yes" >&5
19234 echo "${ECHO_T}yes" >&6
19235             cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_HPUX_THREAD_SUPPORT 1
19237 _ACEOF
19238
19239             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19240             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19241          else
19242             echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19243 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19244          fi
19245       else
19246          echo "$as_me:$LINENO: result: no" >&5
19247 echo "${ECHO_T}no" >&6
19248       fi
19249       ;;
19250    solaris*)
19251       # See if thread_db library is around for Solaris thread debugging.
19252       # Note that we must explicitly test for version 1 of the library
19253       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19254       # the same API.
19255       echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19256 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19257       if test -f /usr/lib/libthread_db.so.1 ; then
19258          echo "$as_me:$LINENO: result: yes" >&5
19259 echo "${ECHO_T}yes" >&6
19260          cat >>confdefs.h <<\_ACEOF
19261 #define HAVE_THREAD_DB_LIB 1
19262 _ACEOF
19263
19264          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19265          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19266
19267 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19268 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19269 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19270   echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272   ac_check_lib_save_LIBS=$LIBS
19273 LIBS="-ldl  $LIBS"
19274 cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h.  */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h.  */
19280
19281 /* Override any gcc2 internal prototype to avoid an error.  */
19282 #ifdef __cplusplus
19283 extern "C"
19284 #endif
19285 /* We use char because int might match the return type of a gcc2
19286    builtin and then its argument prototype would still apply.  */
19287 char dlopen ();
19288 int
19289 main ()
19290 {
19291 dlopen ();
19292   ;
19293   return 0;
19294 }
19295 _ACEOF
19296 rm -f conftest.$ac_objext conftest$ac_exeext
19297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19298   (eval $ac_link) 2>conftest.er1
19299   ac_status=$?
19300   grep -v '^ *+' conftest.er1 >conftest.err
19301   rm -f conftest.er1
19302   cat conftest.err >&5
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); } &&
19305          { ac_try='test -z "$ac_c_werror_flag"
19306                          || test ! -s conftest.err'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; } &&
19312          { ac_try='test -s conftest$ac_exeext'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; }; then
19318   ac_cv_lib_dl_dlopen=yes
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323 ac_cv_lib_dl_dlopen=no
19324 fi
19325 rm -f conftest.err conftest.$ac_objext \
19326       conftest$ac_exeext conftest.$ac_ext
19327 LIBS=$ac_check_lib_save_LIBS
19328 fi
19329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19330 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19331 if test $ac_cv_lib_dl_dlopen = yes; then
19332   cat >>confdefs.h <<_ACEOF
19333 #define HAVE_LIBDL 1
19334 _ACEOF
19335
19336   LIBS="-ldl $LIBS"
19337
19338 fi
19339
19340          if test "$GCC" = "yes" ; then
19341             # The GNU linker requires the -export-dynamic option to make
19342             # all symbols visible in the dynamic symbol table.
19343             hold_ldflags=$LDFLAGS
19344             echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19345 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19346             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19347             cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353
19354 int
19355 main ()
19356 {
19357 int i;
19358   ;
19359   return 0;
19360 }
19361 _ACEOF
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19364   (eval $ac_link) 2>conftest.er1
19365   ac_status=$?
19366   grep -v '^ *+' conftest.er1 >conftest.err
19367   rm -f conftest.er1
19368   cat conftest.err >&5
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); } &&
19371          { ac_try='test -z "$ac_c_werror_flag"
19372                          || test ! -s conftest.err'
19373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374   (eval $ac_try) 2>&5
19375   ac_status=$?
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); }; } &&
19378          { ac_try='test -s conftest$ac_exeext'
19379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380   (eval $ac_try) 2>&5
19381   ac_status=$?
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); }; }; then
19384   found=yes
19385 else
19386   echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19388
19389 found=no
19390 fi
19391 rm -f conftest.err conftest.$ac_objext \
19392       conftest$ac_exeext conftest.$ac_ext
19393             LDFLAGS=$hold_ldflags
19394             echo "$as_me:$LINENO: result: $found" >&5
19395 echo "${ECHO_T}$found" >&6
19396             if test $found = yes; then
19397                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19398             fi
19399          fi
19400          # Sun randomly tweaked the prototypes in <proc_service.h>
19401          # at one point.
19402          echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19403 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19404          if test "${gdb_cv_proc_service_is_old+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407
19408             cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h.  */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h.  */
19414
19415                 #include <proc_service.h>
19416                 ps_err_e ps_pdwrite
19417                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
19418
19419 int
19420 main ()
19421 {
19422
19423   ;
19424   return 0;
19425 }
19426 _ACEOF
19427 rm -f conftest.$ac_objext
19428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19429   (eval $ac_compile) 2>conftest.er1
19430   ac_status=$?
19431   grep -v '^ *+' conftest.er1 >conftest.err
19432   rm -f conftest.er1
19433   cat conftest.err >&5
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); } &&
19436          { ac_try='test -z "$ac_c_werror_flag"
19437                          || test ! -s conftest.err'
19438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439   (eval $ac_try) 2>&5
19440   ac_status=$?
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); }; } &&
19443          { ac_try='test -s conftest.$ac_objext'
19444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445   (eval $ac_try) 2>&5
19446   ac_status=$?
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); }; }; then
19449   gdb_cv_proc_service_is_old=no
19450 else
19451   echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454 gdb_cv_proc_service_is_old=yes
19455 fi
19456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19457
19458 fi
19459
19460          echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19461 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19462          if test $gdb_cv_proc_service_is_old = yes; then
19463             cat >>confdefs.h <<\_ACEOF
19464 #define PROC_SERVICE_IS_OLD 1
19465 _ACEOF
19466
19467          fi
19468       else
19469          echo "$as_me:$LINENO: result: no" >&5
19470 echo "${ECHO_T}no" >&6
19471       fi
19472       ;;
19473    aix*)
19474       echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19475 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19476       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19477   echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479   cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19485 #include <sys/pthdebug.h>
19486 int
19487 main ()
19488 {
19489 #ifndef PTHDB_VERSION_3
19490                                     #error
19491                                     #endif
19492   ;
19493   return 0;
19494 }
19495 _ACEOF
19496 rm -f conftest.$ac_objext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19498   (eval $ac_compile) 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } &&
19505          { ac_try='test -z "$ac_c_werror_flag"
19506                          || test ! -s conftest.err'
19507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508   (eval $ac_try) 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; } &&
19512          { ac_try='test -s conftest.$ac_objext'
19513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514   (eval $ac_try) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; }; then
19518   gdb_cv_have_aix_thread_debug=yes
19519 else
19520   echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523 gdb_cv_have_aix_thread_debug=no
19524 fi
19525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19526 fi
19527
19528       echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19529 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19530       if test $gdb_cv_have_aix_thread_debug = yes; then
19531          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19532          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19533          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19534       fi
19535       ;;
19536    esac
19537
19538 fi
19539
19540 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19541    echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19542 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19543 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19544   echo $ECHO_N "(cached) $ECHO_C" >&6
19545 else
19546   cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h.  */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h.  */
19552 #include <thread_db.h>
19553 int
19554 main ()
19555 {
19556 int i = TD_NOTALLOC;
19557   ;
19558   return 0;
19559 }
19560 _ACEOF
19561 rm -f conftest.$ac_objext
19562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563   (eval $ac_compile) 2>conftest.er1
19564   ac_status=$?
19565   grep -v '^ *+' conftest.er1 >conftest.err
19566   rm -f conftest.er1
19567   cat conftest.err >&5
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); } &&
19570          { ac_try='test -z "$ac_c_werror_flag"
19571                          || test ! -s conftest.err'
19572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573   (eval $ac_try) 2>&5
19574   ac_status=$?
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); }; } &&
19577          { ac_try='test -s conftest.$ac_objext'
19578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579   (eval $ac_try) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); }; }; then
19583   gdb_cv_thread_db_h_has_td_notalloc=yes
19584 else
19585   echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19587
19588 gdb_cv_thread_db_h_has_td_notalloc=no
19589
19590 fi
19591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19592
19593 fi
19594 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19595 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19596 fi
19597 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19598
19599 cat >>confdefs.h <<\_ACEOF
19600 #define THREAD_DB_HAS_TD_NOTALLOC 1
19601 _ACEOF
19602
19603 fi
19604
19605 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19606    echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19607 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19608 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19609   echo $ECHO_N "(cached) $ECHO_C" >&6
19610 else
19611   cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617 #include <sys/syscall.h>
19618 int
19619 main ()
19620 {
19621 int i = __NR_tkill;
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19628   (eval $ac_compile) 2>conftest.er1
19629   ac_status=$?
19630   grep -v '^ *+' conftest.er1 >conftest.err
19631   rm -f conftest.er1
19632   cat conftest.err >&5
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); } &&
19635          { ac_try='test -z "$ac_c_werror_flag"
19636                          || test ! -s conftest.err'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; } &&
19642          { ac_try='test -s conftest.$ac_objext'
19643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644   (eval $ac_try) 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; }; then
19648   gdb_cv_sys_syscall_h_has_tkill=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 gdb_cv_sys_syscall_h_has_tkill=no
19654
19655 fi
19656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19657
19658 fi
19659 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19660 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19661 fi
19662 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19663
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_TKILL_SYSCALL 1
19666 _ACEOF
19667
19668 fi
19669
19670
19671
19672 # Check whether --with-sysroot or --without-sysroot was given.
19673 if test "${with_sysroot+set}" = set; then
19674   withval="$with_sysroot"
19675
19676  case ${with_sysroot} in
19677  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19678  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19679  esac
19680
19681  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19682
19683  if test "x$exec_prefix" = xNONE; then
19684   if test "x$prefix" = xNONE; then
19685    test_prefix=/usr/local
19686   else
19687    test_prefix=$prefix
19688   fi
19689  else
19690   test_prefix=$exec_prefix
19691  fi
19692  case ${TARGET_SYSTEM_ROOT} in
19693  "${test_prefix}"|"${test_prefix}/"*|\
19694  '${exec_prefix}'|'${exec_prefix}/'*)
19695    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19696    TARGET_SYSTEM_ROOT_DEFINE="$t"
19697    ;;
19698  esac
19699
19700 else
19701
19702  TARGET_SYSTEM_ROOT=
19703  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19704
19705 fi;
19706
19707
19708
19709 # NOTE: Don't add -Wall or -Wunused, they both include
19710 # -Wunused-parameter which reports bogus warnings.
19711 # NOTE: If you add to this list, remember to update
19712 # gdb/doc/gdbint.texinfo.
19713 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19714 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
19715 -Wunused-label -Wunused-function"
19716 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19717 # -Wunused-function -Wunused-variable -Wunused-value
19718 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19719 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19720 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19721 # -Woverloaded-virtual -Winline -Werror"
19722 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19723 if test "${enable_build_warnings+set}" = set; then
19724   enableval="$enable_build_warnings"
19725   case "${enableval}" in
19726   yes)  ;;
19727   no)   build_warnings="-w";;
19728   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19729         build_warnings="${build_warnings} ${t}";;
19730   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19731         build_warnings="${t} ${build_warnings}";;
19732   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19733 esac
19734 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19735   echo "Setting compiler warning flags = $build_warnings" 6>&1
19736 fi
19737 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19738 if test "${enable_gdb_build_warnings+set}" = set; then
19739   enableval="$enable_gdb_build_warnings"
19740   case "${enableval}" in
19741   yes)  ;;
19742   no)   build_warnings="-w";;
19743   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19744         build_warnings="${build_warnings} ${t}";;
19745   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
19746         build_warnings="${t} ${build_warnings}";;
19747   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19748 esac
19749 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19750   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19751 fi
19752 fi; WARN_CFLAGS=""
19753 WERROR_CFLAGS=""
19754 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19755 then
19756     echo "$as_me:$LINENO: checking compiler warning flags" >&5
19757 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19758     # Separate out the -Werror flag as some files just cannot be
19759     # compiled with it enabled.
19760     for w in ${build_warnings}; do
19761         case $w in
19762         -Werr*) WERROR_CFLAGS=-Werror ;;
19763         *) # Check that GCC accepts it
19764             saved_CFLAGS="$CFLAGS"
19765             CFLAGS="$CFLAGS $w"
19766             cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772
19773 int
19774 main ()
19775 {
19776
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19783   (eval $ac_compile) 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } &&
19790          { ac_try='test -z "$ac_c_werror_flag"
19791                          || test ! -s conftest.err'
19792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793   (eval $ac_try) 2>&5
19794   ac_status=$?
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); }; } &&
19797          { ac_try='test -s conftest.$ac_objext'
19798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799   (eval $ac_try) 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); }; }; then
19803   WARN_CFLAGS="${WARN_CFLAGS} $w"
19804 else
19805   echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807
19808 fi
19809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19810             CFLAGS="$saved_CFLAGS"
19811         esac
19812     done
19813     echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19814 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
19815 fi
19816
19817
19818
19819 # In the Cygwin environment, we need some additional flags.
19820 echo "$as_me:$LINENO: checking for cygwin" >&5
19821 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19822 if test "${gdb_cv_os_cygwin+set}" = set; then
19823   echo $ECHO_N "(cached) $ECHO_C" >&6
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
19832 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19833 lose
19834 #endif
19835 _ACEOF
19836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19837   $EGREP "lose" >/dev/null 2>&1; then
19838   gdb_cv_os_cygwin=yes
19839 else
19840   gdb_cv_os_cygwin=no
19841 fi
19842 rm -f conftest*
19843
19844 fi
19845 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19846 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19847
19848
19849 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19850 case ${host} in
19851   *go32* ) SER_HARDWIRE=ser-go32.o ;;
19852   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19853 esac
19854
19855
19856 # libreadline needs libuser32.a in a cygwin environment
19857 WIN32LIBS=
19858 if test x$gdb_cv_os_cygwin = xyes; then
19859     WIN32LIBS="-luser32"
19860     case "${target}" in
19861         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19862         ;;
19863     esac
19864 fi
19865
19866
19867 LIBGUI="../libgui/src/libgui.a"
19868 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19869
19870
19871
19872 WIN32LDAPP=
19873
19874
19875
19876 case "${host}" in
19877 *-*-cygwin*)
19878     configdir="win"
19879     ;;
19880 *)
19881     configdir="unix"
19882     ;;
19883 esac
19884
19885 GDBTKLIBS=
19886 if test "${enable_gdbtk}" = "yes"; then
19887
19888     # Gdbtk must have an absolute path to srcdir in order to run
19889     # properly when not installed.
19890     here=`pwd`
19891     cd ${srcdir}
19892     GDBTK_SRC_DIR=`pwd`
19893     cd $here
19894
19895
19896 #
19897 # Ok, lets find the tcl configuration
19898 # First, look for one uninstalled.
19899 # the alternative search directory is invoked by --with-tclconfig
19900 #
19901
19902 if test x"${no_tcl}" = x ; then
19903   # we reset no_tcl in case something fails here
19904   no_tcl=true
19905
19906 # Check whether --with-tclconfig or --without-tclconfig was given.
19907 if test "${with_tclconfig+set}" = set; then
19908   withval="$with_tclconfig"
19909   with_tclconfig=${withval}
19910 fi;
19911   echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19912 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19913   if test "${ac_cv_c_tclconfig+set}" = set; then
19914   echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916
19917
19918   # First check to see if --with-tclconfig was specified.
19919   if test x"${with_tclconfig}" != x ; then
19920     if test -f "${with_tclconfig}/tclConfig.sh" ; then
19921       ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19922     else
19923       { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19924 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19925    { (exit 1); exit 1; }; }
19926     fi
19927   fi
19928
19929   # then check for a private Tcl installation
19930   if test x"${ac_cv_c_tclconfig}" = x ; then
19931     for i in \
19932                 ../tcl \
19933                 `ls -dr ../tcl[7-9]* 2>/dev/null` \
19934                 ../../tcl \
19935                 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
19936                 ../../../tcl \
19937                 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
19938       if test -f "$i/${configdir}/tclConfig.sh" ; then
19939         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19940         break
19941       fi
19942     done
19943   fi
19944   # check in a few common install locations
19945   if test x"${ac_cv_c_tclconfig}" = x ; then
19946     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
19947       if test -f "$i/tclConfig.sh" ; then
19948         ac_cv_c_tclconfig=`(cd $i; pwd)`
19949         break
19950       fi
19951     done
19952   fi
19953   # check in a few other private locations
19954   if test x"${ac_cv_c_tclconfig}" = x ; then
19955     for i in \
19956                 ${srcdir}/../tcl \
19957                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
19958       if test -f "$i/${configdir}/tclConfig.sh" ; then
19959         ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19960         break
19961       fi
19962     done
19963   fi
19964
19965 fi
19966
19967   if test x"${ac_cv_c_tclconfig}" = x ; then
19968     TCLCONFIG="# no Tcl configs found"
19969     { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19970 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19971   else
19972     no_tcl=
19973     TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
19974     echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
19975 echo "${ECHO_T}found $TCLCONFIG" >&6
19976   fi
19977 fi
19978
19979     if test -z "${no_tcl}"; then
19980
19981     . $TCLCONFIG
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009 #
20010 # Ok, lets find the tk configuration
20011 # First, look for one uninstalled.
20012 # the alternative search directory is invoked by --with-tkconfig
20013 #
20014
20015 if test x"${no_tk}" = x ; then
20016   # we reset no_tk in case something fails here
20017   no_tk=true
20018
20019 # Check whether --with-tkconfig or --without-tkconfig was given.
20020 if test "${with_tkconfig+set}" = set; then
20021   withval="$with_tkconfig"
20022   with_tkconfig=${withval}
20023 fi;
20024   echo "$as_me:$LINENO: checking for Tk configuration" >&5
20025 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20026   if test "${ac_cv_c_tkconfig+set}" = set; then
20027   echo $ECHO_N "(cached) $ECHO_C" >&6
20028 else
20029
20030
20031   # First check to see if --with-tkconfig was specified.
20032   if test x"${with_tkconfig}" != x ; then
20033     if test -f "${with_tkconfig}/tkConfig.sh" ; then
20034       ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20035     else
20036       { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20037 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20038    { (exit 1); exit 1; }; }
20039     fi
20040   fi
20041
20042   # then check for a private Tk library
20043   if test x"${ac_cv_c_tkconfig}" = x ; then
20044     for i in \
20045                 ../tk \
20046                 `ls -dr ../tk[4-9]* 2>/dev/null` \
20047                 ../../tk \
20048                 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20049                 ../../../tk \
20050                 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20051       if test -f "$i/${configdir}/tkConfig.sh" ; then
20052         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20053         break
20054       fi
20055     done
20056   fi
20057   # check in a few common install locations
20058   if test x"${ac_cv_c_tkconfig}" = x ; then
20059     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20060       if test -f "$i/tkConfig.sh" ; then
20061         ac_cv_c_tkconfig=`(cd $i; pwd)`
20062         break
20063       fi
20064     done
20065   fi
20066   # check in a few other private locations
20067   if test x"${ac_cv_c_tkconfig}" = x ; then
20068     for i in \
20069                 ${srcdir}/../tk \
20070                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20071       if test -f "$i/${configdir}/tkConfig.sh" ; then
20072         ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20073         break
20074       fi
20075     done
20076   fi
20077
20078 fi
20079
20080   if test x"${ac_cv_c_tkconfig}" = x ; then
20081     TKCONFIG="# no Tk configs found"
20082     { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20083 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20084   else
20085     no_tk=
20086     TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20087     echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20088 echo "${ECHO_T}found $TKCONFIG" >&6
20089   fi
20090 fi
20091
20092
20093
20094         # now look for Tcl library stuff
20095
20096         tcldir="../tcl/${configdir}/"
20097
20098         TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20099
20100         # If $no_tk is nonempty, then we can't do Tk, and there is no
20101         # point to doing Tcl.
20102         if test -z "${no_tk}"; then
20103
20104     if test -f "$TKCONFIG" ; then
20105       . $TKCONFIG
20106     fi
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121 #
20122 # Ok, lets find the tcl source trees so we can use the headers
20123 # Warning: transition of version 9 to 10 will break this algorithm
20124 # because 10 sorts before 9. We also look for just tcl. We have to
20125 # be careful that we don't match stuff like tclX by accident.
20126 # the alternative search directory is involked by --with-tclinclude
20127 #
20128
20129 no_tcl=true
20130 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20131 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20132
20133 # Check whether --with-tclinclude or --without-tclinclude was given.
20134 if test "${with_tclinclude+set}" = set; then
20135   withval="$with_tclinclude"
20136   with_tclinclude=${withval}
20137 fi;
20138 if test "${ac_cv_c_tclh+set}" = set; then
20139   echo $ECHO_N "(cached) $ECHO_C" >&6
20140 else
20141
20142 # first check to see if --with-tclinclude was specified
20143 if test x"${with_tclinclude}" != x ; then
20144   if test -f ${with_tclinclude}/tclInt.h ; then
20145     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20146   elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20147     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20148   else
20149     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20150 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20151    { (exit 1); exit 1; }; }
20152   fi
20153 fi
20154
20155 # next check if it came with Tcl configuration file
20156 if test x"${ac_cv_c_tclconfig}" = x ; then
20157   if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20158     ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20159   fi
20160 fi
20161
20162 # next check in private source directory
20163 #
20164 # since ls returns lowest version numbers first, reverse its output
20165 if test x"${ac_cv_c_tclh}" = x ; then
20166   for i in \
20167                 ${srcdir}/../tcl \
20168                 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20169                 ${srcdir}/../../tcl \
20170                 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20171                 ${srcdir}/../../../tcl \
20172                 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20173     if test -f $i/generic/tclInt.h ; then
20174       ac_cv_c_tclh=`(cd $i/generic; pwd)`
20175       break
20176     fi
20177   done
20178 fi
20179 # finally check in a few common install locations
20180 #
20181 # since ls returns lowest version numbers first, reverse its output
20182 if test x"${ac_cv_c_tclh}" = x ; then
20183   for i in \
20184                 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20185                 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20186                 /usr/local/src/tcl \
20187                 /usr/local/lib/tcl \
20188                 ${prefix}/include ; do
20189     if test -f $i/generic/tclInt.h ; then
20190       ac_cv_c_tclh=`(cd $i/generic; pwd)`
20191       break
20192     fi
20193   done
20194 fi
20195 # see if one is installed
20196 if test x"${ac_cv_c_tclh}" = x ; then
20197    if test "${ac_cv_header_tclInt_h+set}" = set; then
20198   echo "$as_me:$LINENO: checking for tclInt.h" >&5
20199 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20200 if test "${ac_cv_header_tclInt_h+set}" = set; then
20201   echo $ECHO_N "(cached) $ECHO_C" >&6
20202 fi
20203 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20204 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20205 else
20206   # Is the header compilable?
20207 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20208 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h.  */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h.  */
20215 $ac_includes_default
20216 #include <tclInt.h>
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220   (eval $ac_compile) 2>conftest.er1
20221   ac_status=$?
20222   grep -v '^ *+' conftest.er1 >conftest.err
20223   rm -f conftest.er1
20224   cat conftest.err >&5
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); } &&
20227          { ac_try='test -z "$ac_c_werror_flag"
20228                          || test ! -s conftest.err'
20229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230   (eval $ac_try) 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }; } &&
20234          { ac_try='test -s conftest.$ac_objext'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; }; then
20240   ac_header_compiler=yes
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245 ac_header_compiler=no
20246 fi
20247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20249 echo "${ECHO_T}$ac_header_compiler" >&6
20250
20251 # Is the header present?
20252 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20253 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 #include <tclInt.h>
20261 _ACEOF
20262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } >/dev/null; then
20270   if test -s conftest.err; then
20271     ac_cpp_err=$ac_c_preproc_warn_flag
20272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20273   else
20274     ac_cpp_err=
20275   fi
20276 else
20277   ac_cpp_err=yes
20278 fi
20279 if test -z "$ac_cpp_err"; then
20280   ac_header_preproc=yes
20281 else
20282   echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20284
20285   ac_header_preproc=no
20286 fi
20287 rm -f conftest.err conftest.$ac_ext
20288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20289 echo "${ECHO_T}$ac_header_preproc" >&6
20290
20291 # So?  What about this header?
20292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20293   yes:no: )
20294     { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20295 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20296     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20297 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20298     ac_header_preproc=yes
20299     ;;
20300   no:yes:* )
20301     { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20302 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20303     { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
20304 echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
20305     { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20306 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20307     { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
20308 echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20309     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20310 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20311     { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20312 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20313     (
20314       cat <<\_ASBOX
20315 ## ------------------------------------------ ##
20316 ## Report this to the AC_PACKAGE_NAME lists.  ##
20317 ## ------------------------------------------ ##
20318 _ASBOX
20319     ) |
20320       sed "s/^/$as_me: WARNING:     /" >&2
20321     ;;
20322 esac
20323 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20324 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20325 if test "${ac_cv_header_tclInt_h+set}" = set; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328   ac_cv_header_tclInt_h=$ac_header_preproc
20329 fi
20330 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20331 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20332
20333 fi
20334 if test $ac_cv_header_tclInt_h = yes; then
20335   ac_cv_c_tclh=installed
20336 else
20337   ac_cv_c_tclh=""
20338 fi
20339
20340
20341 fi
20342
20343 fi
20344
20345 if test x"${ac_cv_c_tclh}" = x ; then
20346   TCLHDIR="# no Tcl private headers found"
20347   { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20348 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20349    { (exit 1); exit 1; }; }
20350 fi
20351 if test x"${ac_cv_c_tclh}" != x ; then
20352   no_tcl=""
20353   if test x"${ac_cv_c_tclh}" = x"installed" ; then
20354     echo "$as_me:$LINENO: result: is installed" >&5
20355 echo "${ECHO_T}is installed" >&6
20356     TCLHDIR=""
20357   else
20358     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20359 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20360     # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20361     TCLHDIR="-I${ac_cv_c_tclh}"
20362   fi
20363 fi
20364
20365
20366
20367
20368 #
20369 # Ok, lets find the tk source trees so we can use the headers
20370 # If the directory (presumably symlink) named "tk" exists, use that one
20371 # in preference to any others.  Same logic is used when choosing library
20372 # and again with Tcl. The search order is the best place to look first, then in
20373 # decreasing significance. The loop breaks if the trigger file is found.
20374 # Note the gross little conversion here of srcdir by cd'ing to the found
20375 # directory. This converts the path from a relative to an absolute, so
20376 # recursive cache variables for the path will work right. We check all
20377 # the possible paths in one loop rather than many seperate loops to speed
20378 # things up.
20379 # the alternative search directory is involked by --with-tkinclude
20380 #
20381 no_tk=true
20382 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20383 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20384
20385 # Check whether --with-tkinclude or --without-tkinclude was given.
20386 if test "${with_tkinclude+set}" = set; then
20387   withval="$with_tkinclude"
20388   with_tkinclude=${withval}
20389 fi;
20390 if test "${ac_cv_c_tkh+set}" = set; then
20391   echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393
20394 # first check to see if --with-tkinclude was specified
20395 if test x"${with_tkinclude}" != x ; then
20396   if test -f ${with_tkinclude}/tk.h ; then
20397     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20398   elif test -f ${with_tkinclude}/generic/tk.h ; then
20399     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20400   else
20401     { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20402 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20403    { (exit 1); exit 1; }; }
20404   fi
20405 fi
20406
20407 # next check if it came with Tk configuration file
20408 if test x"${ac_cv_c_tkconfig}" = x ; then
20409   if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20410     ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20411   fi
20412 fi
20413
20414 # next check in private source directory
20415 #
20416 # since ls returns lowest version numbers first, reverse its output
20417 if test x"${ac_cv_c_tkh}" = x ; then
20418   for i in \
20419                 ${srcdir}/../tk \
20420                 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20421                 ${srcdir}/../../tk \
20422                 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20423                 ${srcdir}/../../../tk \
20424                 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20425     if test -f $i/generic/tk.h ; then
20426       ac_cv_c_tkh=`(cd $i/generic; pwd)`
20427       break
20428     fi
20429   done
20430 fi
20431 # finally check in a few common install locations
20432 #
20433 # since ls returns lowest version numbers first, reverse its output
20434 if test x"${ac_cv_c_tkh}" = x ; then
20435   for i in \
20436                 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20437                 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20438                 /usr/local/src/tk \
20439                 /usr/local/lib/tk \
20440                 ${prefix}/include ; do
20441     if test -f $i/generic/tk.h ; then
20442       ac_cv_c_tkh=`(cd $i/generic; pwd)`
20443       break
20444     fi
20445   done
20446 fi
20447 # see if one is installed
20448 if test x"${ac_cv_c_tkh}" = x ; then
20449    if test "${ac_cv_header_tk_h+set}" = set; then
20450   echo "$as_me:$LINENO: checking for tk.h" >&5
20451 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20452 if test "${ac_cv_header_tk_h+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 fi
20455 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20456 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20457 else
20458   # Is the header compilable?
20459 echo "$as_me:$LINENO: checking tk.h usability" >&5
20460 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20461 cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h.  */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h.  */
20467 $ac_includes_default
20468 #include <tk.h>
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20472   (eval $ac_compile) 2>conftest.er1
20473   ac_status=$?
20474   grep -v '^ *+' conftest.er1 >conftest.err
20475   rm -f conftest.er1
20476   cat conftest.err >&5
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } &&
20479          { ac_try='test -z "$ac_c_werror_flag"
20480                          || test ! -s conftest.err'
20481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482   (eval $ac_try) 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); }; } &&
20486          { ac_try='test -s conftest.$ac_objext'
20487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488   (eval $ac_try) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); }; }; then
20492   ac_header_compiler=yes
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_header_compiler=no
20498 fi
20499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20501 echo "${ECHO_T}$ac_header_compiler" >&6
20502
20503 # Is the header present?
20504 echo "$as_me:$LINENO: checking tk.h presence" >&5
20505 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20506 cat >conftest.$ac_ext <<_ACEOF
20507 /* confdefs.h.  */
20508 _ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h.  */
20512 #include <tk.h>
20513 _ACEOF
20514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20515   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20516   ac_status=$?
20517   grep -v '^ *+' conftest.er1 >conftest.err
20518   rm -f conftest.er1
20519   cat conftest.err >&5
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); } >/dev/null; then
20522   if test -s conftest.err; then
20523     ac_cpp_err=$ac_c_preproc_warn_flag
20524     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20525   else
20526     ac_cpp_err=
20527   fi
20528 else
20529   ac_cpp_err=yes
20530 fi
20531 if test -z "$ac_cpp_err"; then
20532   ac_header_preproc=yes
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537   ac_header_preproc=no
20538 fi
20539 rm -f conftest.err conftest.$ac_ext
20540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20541 echo "${ECHO_T}$ac_header_preproc" >&6
20542
20543 # So?  What about this header?
20544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20545   yes:no: )
20546     { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20547 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20548     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20549 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20550     ac_header_preproc=yes
20551     ;;
20552   no:yes:* )
20553     { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20554 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20555     { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
20556 echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
20557     { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20558 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20559     { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
20560 echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20561     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20562 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20563     { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20564 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20565     (
20566       cat <<\_ASBOX
20567 ## ------------------------------------------ ##
20568 ## Report this to the AC_PACKAGE_NAME lists.  ##
20569 ## ------------------------------------------ ##
20570 _ASBOX
20571     ) |
20572       sed "s/^/$as_me: WARNING:     /" >&2
20573     ;;
20574 esac
20575 echo "$as_me:$LINENO: checking for tk.h" >&5
20576 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20577 if test "${ac_cv_header_tk_h+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580   ac_cv_header_tk_h=$ac_header_preproc
20581 fi
20582 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20583 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20584
20585 fi
20586 if test $ac_cv_header_tk_h = yes; then
20587   ac_cv_c_tkh=installed
20588 else
20589   ac_cv_c_tkh=""
20590 fi
20591
20592
20593 fi
20594
20595 fi
20596
20597 if test x"${ac_cv_c_tkh}" != x ; then
20598   no_tk=""
20599   if test x"${ac_cv_c_tkh}" = x"installed" ; then
20600     echo "$as_me:$LINENO: result: is installed" >&5
20601 echo "${ECHO_T}is installed" >&6
20602     TKHDIR=""
20603   else
20604     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20605 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20606     # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20607     TKHDIR="-I${ac_cv_c_tkh}"
20608   fi
20609 else
20610   TKHDIR="# no Tk directory found"
20611   { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20612 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20613   no_tk=true
20614 fi
20615
20616
20617
20618
20619 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20620 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20621 if test x"${ac_cv_c_itclh}" = x ; then
20622   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20623     if test -f $i/generic/itcl.h ; then
20624       ac_cv_c_itclh=`(cd $i/generic; pwd)`
20625       break
20626     fi
20627   done
20628 fi
20629 if test x"${ac_cv_c_itclh}" = x ; then
20630   ITCLHDIR="# no Itcl private headers found"
20631   { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20632 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20633    { (exit 1); exit 1; }; }
20634 fi
20635 if test x"${ac_cv_c_itclh}" != x ; then
20636      ITCLHDIR="-I${ac_cv_c_itclh}"
20637 fi
20638 # should always be here
20639 #     ITCLLIB="../itcl/itcl/unix/libitcl.a"
20640
20641 #AC_SUBST(ITCLLIB)
20642
20643
20644 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20645 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20646 if test x"${ac_cv_c_itkh}" = x ; then
20647   for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20648     if test -f $i/generic/itk.h ; then
20649       ac_cv_c_itkh=`(cd $i/generic; pwd)`
20650       break
20651     fi
20652   done
20653 fi
20654 if test x"${ac_cv_c_itkh}" = x ; then
20655   ITKHDIR="# no Itk private headers found"
20656   { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20657 echo "$as_me: error: Can't find Itk private headers" >&2;}
20658    { (exit 1); exit 1; }; }
20659 fi
20660 if test x"${ac_cv_c_itkh}" != x ; then
20661      ITKHDIR="-I${ac_cv_c_itkh}"
20662 fi
20663 # should always be here
20664 #     ITKLIB="../itcl/itk/unix/libitk.a"
20665
20666 #AC_SUBST(ITKLIB)
20667
20668
20669
20670            # now look for Tk library stuff
20671
20672            tkdir="../tk/${configdir}/"
20673
20674            TK_DEPS="${tkdir}${TK_LIB_FILE}"
20675
20676            # now look for Itcl library stuff
20677
20678
20679 #
20680 # Ok, lets find the itcl configuration
20681 # First, look for one uninstalled.
20682 # the alternative search directory is invoked by --with-itclconfig
20683 #
20684
20685 if test x"${no_itcl}" = x ; then
20686   # we reset no_itcl in case something fails here
20687   no_itcl=true
20688
20689 # Check whether --with-itclconfig or --without-itclconfig was given.
20690 if test "${with_itclconfig+set}" = set; then
20691   withval="$with_itclconfig"
20692   with_itclconfig=${withval}
20693 fi;
20694   echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20695 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20696   if test "${ac_cv_c_itclconfig+set}" = set; then
20697   echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699
20700
20701   # First check to see if --with-itclconfig was specified.
20702   if test x"${with_itclconfig}" != x ; then
20703     if test -f "${with_itclconfig}/itclConfig.sh" ; then
20704       ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20705     else
20706       { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20707 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20708    { (exit 1); exit 1; }; }
20709     fi
20710   fi
20711
20712   # then check for a private Itcl library
20713   if test x"${ac_cv_c_itclconfig}" = x ; then
20714     for i in \
20715                 ../itcl/itcl \
20716                 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20717                 ../../itcl \
20718                 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20719                 ../../../itcl \
20720                 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20721       if test -f "$i/itclConfig.sh" ; then
20722         ac_cv_c_itclconfig=`(cd $i; pwd)`
20723         break
20724       fi
20725     done
20726   fi
20727   # check in a few common install locations
20728   if test x"${ac_cv_c_itclconfig}" = x ; then
20729     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20730       if test -f "$i/itclConfig.sh" ; then
20731         ac_cv_c_itclconfig=`(cd $i; pwd)`
20732         break
20733       fi
20734     done
20735   fi
20736   # check in a few other private locations
20737   if test x"${ac_cv_c_itclconfig}" = x ; then
20738     for i in \
20739                 ${srcdir}/../itcl/itcl \
20740                 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20741       if test -f "$i/itclConfig.sh" ; then
20742         ac_cv_c_itclconfig=`(cd $i; pwd)`
20743         break
20744       fi
20745     done
20746   fi
20747
20748 fi
20749
20750   if test x"${ac_cv_c_itclconfig}" = x ; then
20751     ITCLCONFIG="# no Itcl configs found"
20752     { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20753 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
20754   else
20755     no_itcl=
20756     ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
20757     echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20758 echo "${ECHO_T}found $ITCLCONFIG" >&6
20759   fi
20760 fi
20761
20762            if test -z "${no_itcl}"; then
20763
20764     if test -f "$ITCLCONFIG" ; then
20765       . $ITCLCONFIG
20766     fi
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779              ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
20780              ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
20781            fi
20782
20783
20784            # now look for Itk library stuff
20785
20786 #
20787 # Ok, lets find the itk configuration
20788 # First, look for one uninstalled.
20789 # the alternative search directory is invoked by --with-itkconfig
20790 #
20791
20792 if test x"${no_itk}" = x ; then
20793   # we reset no_itk in case something fails here
20794   no_itk=true
20795
20796 # Check whether --with-itkconfig or --without-itkconfig was given.
20797 if test "${with_itkconfig+set}" = set; then
20798   withval="$with_itkconfig"
20799   with_itkconfig=${withval}
20800 fi;
20801   echo "$as_me:$LINENO: checking for Itk configuration" >&5
20802 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20803   if test "${ac_cv_c_itkconfig+set}" = set; then
20804   echo $ECHO_N "(cached) $ECHO_C" >&6
20805 else
20806
20807
20808   # First check to see if --with-itkconfig was specified.
20809   if test x"${with_itkconfig}" != x ; then
20810     if test -f "${with_itkconfig}/itkConfig.sh" ; then
20811       ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20812     else
20813       { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20814 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20815    { (exit 1); exit 1; }; }
20816     fi
20817   fi
20818
20819   # then check for a private Itk library
20820   if test x"${ac_cv_c_itkconfig}" = x ; then
20821     for i in \
20822                 ../itcl/itk \
20823                 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20824                 ../../itk \
20825                 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20826                 ../../../itk \
20827                 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20828       if test -f "$i/itkConfig.sh" ; then
20829         ac_cv_c_itkconfig=`(cd $i; pwd)`
20830         break
20831       fi
20832     done
20833   fi
20834   # check in a few common install locations
20835   if test x"${ac_cv_c_itkconfig}" = x ; then
20836     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20837       if test -f "$i/itkConfig.sh" ; then
20838         ac_cv_c_itkconfig=`(cd $i; pwd)`
20839         break
20840       fi
20841     done
20842   fi
20843   # check in a few other private locations
20844   if test x"${ac_cv_c_itkconfig}" = x ; then
20845     for i in \
20846                 ${srcdir}/../itcl/itk \
20847                 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20848       if test -f "$i/itkConfig.sh" ; then
20849         ac_cv_c_itkconfig=`(cd $i; pwd)`
20850         break
20851       fi
20852     done
20853   fi
20854
20855 fi
20856
20857   if test x"${ac_cv_c_itkconfig}" = x ; then
20858     ITKCONFIG="# no Itk configs found"
20859     { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20860 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
20861   else
20862     no_itk=
20863     ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
20864     echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20865 echo "${ECHO_T}found $ITKCONFIG" >&6
20866   fi
20867 fi
20868
20869
20870            if test -z "${no_itcl}"; then
20871
20872     if test -f "$ITKCONFIG" ; then
20873       . $ITKCONFIG
20874     fi
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887              ITKLIB="${ITK_BUILD_LIB_SPEC}"
20888              ITK_DEPS="${ITK_LIB_FULL_PATH}"
20889            fi
20890
20891            ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20892            # Tcl/Tk 8.1 require -fwritable strings.  I don't
20893            # know whether 8.2 will or not, but I bet it will.
20894            # I don't have to worry about 7.x since we don't support it.
20895            GDBTK_CFLAGS=""
20896            if test "$GCC" = "yes"; then
20897                if test "$TCL_VERSION" != "8.0" ; then
20898                    GDBTK_CFLAGS="-fwritable-strings"
20899                fi
20900            fi
20901
20902            # Include some libraries that Tcl and Tk want.
20903            TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20904            # Yes, the ordering seems wrong here.  But it isn't.
20905            # TK_LIBS is the list of libraries that need to be linked
20906            # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
20907            # were in LIBS then any link tests after this point would
20908            # try to include things like `$(LIBGUI)', which wouldn't work.
20909            GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20910
20911            CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20912            CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20913            CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20914            CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20915            CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20916            CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20917            CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20918
20919            if test x$gdb_cv_os_cygwin = xyes; then
20920               WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20921               WIN32LDAPP="-Wl,--subsystem,console"
20922               CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20923            fi
20924         fi
20925     fi
20926
20927
20928
20929 subdirs="$subdirs gdbtk"
20930
20931 fi
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946 echo "$as_me:$LINENO: checking for X" >&5
20947 echo $ECHO_N "checking for X... $ECHO_C" >&6
20948
20949
20950 # Check whether --with-x or --without-x was given.
20951 if test "${with_x+set}" = set; then
20952   withval="$with_x"
20953
20954 fi;
20955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20956 if test "x$with_x" = xno; then
20957   # The user explicitly disabled X.
20958   have_x=disabled
20959 else
20960   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20961     # Both variables are already set.
20962     have_x=yes
20963   else
20964     if test "${ac_cv_have_x+set}" = set; then
20965   echo $ECHO_N "(cached) $ECHO_C" >&6
20966 else
20967   # One or both of the vars are not set, and there is no cached value.
20968 ac_x_includes=no ac_x_libraries=no
20969 rm -fr conftest.dir
20970 if mkdir conftest.dir; then
20971   cd conftest.dir
20972   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20973   cat >Imakefile <<'_ACEOF'
20974 acfindx:
20975         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20976 _ACEOF
20977   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20978     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20979     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20980     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20981     for ac_extension in a so sl; do
20982       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20983          test -f $ac_im_libdir/libX11.$ac_extension; then
20984         ac_im_usrlibdir=$ac_im_libdir; break
20985       fi
20986     done
20987     # Screen out bogus values from the imake configuration.  They are
20988     # bogus both because they are the default anyway, and because
20989     # using them would break gcc on systems where it needs fixed includes.
20990     case $ac_im_incroot in
20991         /usr/include) ;;
20992         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20993     esac
20994     case $ac_im_usrlibdir in
20995         /usr/lib | /lib) ;;
20996         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20997     esac
20998   fi
20999   cd ..
21000   rm -fr conftest.dir
21001 fi
21002
21003 # Standard set of common directories for X headers.
21004 # Check X11 before X11Rn because it is often a symlink to the current release.
21005 ac_x_header_dirs='
21006 /usr/X11/include
21007 /usr/X11R6/include
21008 /usr/X11R5/include
21009 /usr/X11R4/include
21010
21011 /usr/include/X11
21012 /usr/include/X11R6
21013 /usr/include/X11R5
21014 /usr/include/X11R4
21015
21016 /usr/local/X11/include
21017 /usr/local/X11R6/include
21018 /usr/local/X11R5/include
21019 /usr/local/X11R4/include
21020
21021 /usr/local/include/X11
21022 /usr/local/include/X11R6
21023 /usr/local/include/X11R5
21024 /usr/local/include/X11R4
21025
21026 /usr/X386/include
21027 /usr/x386/include
21028 /usr/XFree86/include/X11
21029
21030 /usr/include
21031 /usr/local/include
21032 /usr/unsupported/include
21033 /usr/athena/include
21034 /usr/local/x11r5/include
21035 /usr/lpp/Xamples/include
21036
21037 /usr/openwin/include
21038 /usr/openwin/share/include'
21039
21040 if test "$ac_x_includes" = no; then
21041   # Guess where to find include files, by looking for Intrinsic.h.
21042   # First, try using that file with no special directory specified.
21043   cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049 #include <X11/Intrinsic.h>
21050 _ACEOF
21051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } >/dev/null; then
21059   if test -s conftest.err; then
21060     ac_cpp_err=$ac_c_preproc_warn_flag
21061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21062   else
21063     ac_cpp_err=
21064   fi
21065 else
21066   ac_cpp_err=yes
21067 fi
21068 if test -z "$ac_cpp_err"; then
21069   # We can compile using X headers with no special include directory.
21070 ac_x_includes=
21071 else
21072   echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21074
21075   for ac_dir in $ac_x_header_dirs; do
21076   if test -r "$ac_dir/X11/Intrinsic.h"; then
21077     ac_x_includes=$ac_dir
21078     break
21079   fi
21080 done
21081 fi
21082 rm -f conftest.err conftest.$ac_ext
21083 fi # $ac_x_includes = no
21084
21085 if test "$ac_x_libraries" = no; then
21086   # Check for the libraries.
21087   # See if we find them without any special options.
21088   # Don't add to $LIBS permanently.
21089   ac_save_LIBS=$LIBS
21090   LIBS="-lXt $LIBS"
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #include <X11/Intrinsic.h>
21098 int
21099 main ()
21100 {
21101 XtMalloc (0)
21102   ;
21103   return 0;
21104 }
21105 _ACEOF
21106 rm -f conftest.$ac_objext conftest$ac_exeext
21107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21108   (eval $ac_link) 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } &&
21115          { ac_try='test -z "$ac_c_werror_flag"
21116                          || test ! -s conftest.err'
21117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118   (eval $ac_try) 2>&5
21119   ac_status=$?
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); }; } &&
21122          { ac_try='test -s conftest$ac_exeext'
21123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124   (eval $ac_try) 2>&5
21125   ac_status=$?
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); }; }; then
21128   LIBS=$ac_save_LIBS
21129 # We can link X programs with no special library path.
21130 ac_x_libraries=
21131 else
21132   echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21134
21135 LIBS=$ac_save_LIBS
21136 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21137 do
21138   # Don't even attempt the hair of trying to link an X program!
21139   for ac_extension in a so sl; do
21140     if test -r $ac_dir/libXt.$ac_extension; then
21141       ac_x_libraries=$ac_dir
21142       break 2
21143     fi
21144   done
21145 done
21146 fi
21147 rm -f conftest.err conftest.$ac_objext \
21148       conftest$ac_exeext conftest.$ac_ext
21149 fi # $ac_x_libraries = no
21150
21151 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21152   # Didn't find X anywhere.  Cache the known absence of X.
21153   ac_cv_have_x="have_x=no"
21154 else
21155   # Record where we found X for the cache.
21156   ac_cv_have_x="have_x=yes \
21157                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21158 fi
21159 fi
21160
21161   fi
21162   eval "$ac_cv_have_x"
21163 fi # $with_x != no
21164
21165 if test "$have_x" != yes; then
21166   echo "$as_me:$LINENO: result: $have_x" >&5
21167 echo "${ECHO_T}$have_x" >&6
21168   no_x=yes
21169 else
21170   # If each of the values was on the command line, it overrides each guess.
21171   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21172   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21173   # Update the cache value to reflect the command line values.
21174   ac_cv_have_x="have_x=yes \
21175                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21176   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21177 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21178 fi
21179
21180
21181 # Check whether we should enable the TUI, but only do so if we really
21182 # can.
21183 if test x"$enable_tui" = xyes; then
21184   if test -d $srcdir/tui; then
21185     if test "$ac_cv_search_waddstr" != no; then
21186       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21187       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21188       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21189       CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21190       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21191       CONFIG_ALL="${CONFIG_ALL} all-tui"
21192       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21193       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21194       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21195     else
21196       { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21197 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21198     fi
21199   fi
21200 fi
21201
21202 # Unlike the sim directory, whether a simulator is linked is controlled by
21203 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21204 # This code just checks for a few cases where we'd like to ignore those
21205 # definitions, even when they're present in the '.mt' file.  These cases
21206 # are when --disable-sim is specified, or if the simulator directory is
21207 # not part of the source tree.
21208 #
21209 # Check whether --enable-sim or --disable-sim was given.
21210 if test "${enable_sim+set}" = set; then
21211   enableval="$enable_sim"
21212   echo "enable_sim = $enable_sim";
21213  echo "enableval = ${enableval}";
21214  case "${enableval}" in
21215   yes) ignore_sim=false ;;
21216   no)  ignore_sim=true ;;
21217   *)   ignore_sim=false ;;
21218  esac
21219 else
21220   ignore_sim=false
21221 fi;
21222
21223 if test ! -d "${srcdir}/../sim"; then
21224   ignore_sim=true
21225 fi
21226
21227 if test "${ignore_sim}" = "true"; then
21228     IGNORE_SIM="SIM="
21229     IGNORE_SIM_OBS="SIM_OBS="
21230 else
21231     IGNORE_SIM=""
21232     IGNORE_SIM_OBS=""
21233     cat >>confdefs.h <<\_ACEOF
21234 #define WITH_SIM 1
21235 _ACEOF
21236
21237 fi
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252 # List of host floatformats.
21253
21254 cat >>confdefs.h <<_ACEOF
21255 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21256 _ACEOF
21257
21258
21259 cat >>confdefs.h <<_ACEOF
21260 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21261 _ACEOF
21262
21263
21264 cat >>confdefs.h <<_ACEOF
21265 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21266 _ACEOF
21267
21268
21269 # target_subdir is used by the testsuite to find the target libraries.
21270 target_subdir=
21271 if test "${host}" != "${target}"; then
21272     target_subdir="${target_alias}/"
21273 fi
21274
21275
21276 frags=
21277 if test "${target}" = "${host}"; then
21278   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21279   if test ! -f ${host_makefile_frag}; then
21280     { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21281 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21282    { (exit 1); exit 1; }; }
21283   fi
21284   frags="$frags $host_makefile_frag"
21285 else
21286   host_makefile_frag=/dev/null
21287 fi
21288
21289 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21290 if test ! -f ${target_makefile_frag}; then
21291   { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21292 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21293    { (exit 1); exit 1; }; }
21294 fi
21295 frags="$frags $target_makefile_frag"
21296
21297
21298
21299
21300
21301 hostfile=`sed -n '
21302 s/XM_FILE[      ]*=[    ]*\([^  ]*\)/\1/p
21303 ' ${host_makefile_frag}`
21304
21305 targetfile=`sed -n '
21306 s/DEPRECATED_TM_FILE[   ]*=[    ]*\([^  ]*\)/\1/p
21307 ' ${target_makefile_frag}`
21308
21309 if test "${target}" = "${host}"; then
21310 # We pick this up from the host configuration file (.mh) because we
21311 # do not have a native configuration Makefile fragment.
21312 nativefile=`sed -n '
21313 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
21314 ' ${host_makefile_frag}`
21315 fi
21316
21317
21318 if test x"${gdb_osabi}" != x ; then
21319
21320 cat >>confdefs.h <<_ACEOF
21321 #define GDB_OSABI_DEFAULT $gdb_osabi
21322 _ACEOF
21323
21324 fi
21325
21326 # Enable multi-ice-gdb-server.
21327 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21328 if test "${enable_multi_ice+set}" = set; then
21329   enableval="$enable_multi_ice"
21330   case $enableval in
21331     yes | no)
21332       ;;
21333     *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21334 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21335    { (exit 1); exit 1; }; } ;;
21336   esac
21337 fi;
21338 if test "x$enable_multi_ice" = xyes; then
21339
21340
21341 subdirs="$subdirs multi-ice"
21342
21343 fi
21344
21345 # We only build gdbserver automatically if host and target are the same.
21346 if test "x$target" = "x$host"; then
21347   echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21348 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21349   if test "x$build_gdbserver" = xyes; then
21350     echo "$as_me:$LINENO: result: yes" >&5
21351 echo "${ECHO_T}yes" >&6
21352
21353
21354 subdirs="$subdirs gdbserver"
21355
21356   else
21357     echo "$as_me:$LINENO: result: no" >&5
21358 echo "${ECHO_T}no" >&6
21359   fi
21360 fi
21361
21362 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21363 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21364 # to an empty version.
21365
21366 files=
21367 links=
21368
21369 rm -f xm.h
21370 xm_h=""
21371 if test "${hostfile}" != ""; then
21372     xm_h=xm.h
21373     case "${hostfile}" in
21374       xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21375       * ) GDB_XM_FILE="${hostfile}"
21376     esac
21377     files="${files} ${GDB_XM_FILE}"
21378     links="${links} xm.h"
21379     cat >>confdefs.h <<_ACEOF
21380 #define GDB_XM_FILE "${GDB_XM_FILE}"
21381 _ACEOF
21382
21383 fi
21384
21385
21386 rm -f tm.h
21387 tm_h=""
21388 if test "${targetfile}" != ""; then
21389     tm_h=tm.h
21390     case "${targetfile}" in
21391       tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21392       * ) GDB_TM_FILE="${targetfile}"
21393     esac
21394     files="${files} ${GDB_TM_FILE}"
21395     links="${links} tm.h"
21396     cat >>confdefs.h <<_ACEOF
21397 #define GDB_TM_FILE "${GDB_TM_FILE}"
21398 _ACEOF
21399
21400 fi
21401
21402
21403 rm -f nm.h
21404 nm_h=""
21405 if test "${nativefile}" != ""; then
21406     nm_h=nm.h
21407     case "${nativefile}" in
21408       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21409       * ) GDB_NM_FILE="${nativefile}"
21410     esac
21411     files="${files} ${GDB_NM_FILE}"
21412     links="${links} nm.h"
21413     cat >>confdefs.h <<_ACEOF
21414 #define GDB_NM_FILE "${GDB_NM_FILE}"
21415 _ACEOF
21416
21417 fi
21418
21419
21420 ac_sources="$files"
21421 ac_dests="$links"
21422 while test -n "$ac_sources"; do
21423   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21424   set $ac_sources; ac_source=$1; shift; ac_sources=$*
21425   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21426 done
21427           ac_config_links="$ac_config_links $ac_config_links_1"
21428
21429
21430
21431
21432
21433
21434 cat >>confdefs.h <<\_ACEOF
21435 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21436 _ACEOF
21437
21438
21439
21440
21441
21442 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21443 if test "${with_libiconv_prefix+set}" = set; then
21444   withval="$with_libiconv_prefix"
21445
21446     for dir in `echo "$withval" | tr : ' '`; do
21447       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21448       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21449     done
21450
21451 fi;
21452
21453   echo "$as_me:$LINENO: checking for iconv" >&5
21454 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21455 if test "${am_cv_func_iconv+set}" = set; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458
21459     am_cv_func_iconv="no, consider installing GNU libiconv"
21460     am_cv_lib_iconv=no
21461     cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h.  */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h.  */
21467 #include <stdlib.h>
21468 #include <iconv.h>
21469 int
21470 main ()
21471 {
21472 iconv_t cd = iconv_open("","");
21473        iconv(cd,NULL,NULL,NULL,NULL);
21474        iconv_close(cd);
21475   ;
21476   return 0;
21477 }
21478 _ACEOF
21479 rm -f conftest.$ac_objext conftest$ac_exeext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21481   (eval $ac_link) 2>conftest.er1
21482   ac_status=$?
21483   grep -v '^ *+' conftest.er1 >conftest.err
21484   rm -f conftest.er1
21485   cat conftest.err >&5
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } &&
21488          { ac_try='test -z "$ac_c_werror_flag"
21489                          || test ! -s conftest.err'
21490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491   (eval $ac_try) 2>&5
21492   ac_status=$?
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); }; } &&
21495          { ac_try='test -s conftest$ac_exeext'
21496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497   (eval $ac_try) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; }; then
21501   am_cv_func_iconv=yes
21502 else
21503   echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 fi
21507 rm -f conftest.err conftest.$ac_objext \
21508       conftest$ac_exeext conftest.$ac_ext
21509     if test "$am_cv_func_iconv" != yes; then
21510       am_save_LIBS="$LIBS"
21511       LIBS="$LIBS -liconv"
21512       cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h.  */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h.  */
21518 #include <stdlib.h>
21519 #include <iconv.h>
21520 int
21521 main ()
21522 {
21523 iconv_t cd = iconv_open("","");
21524          iconv(cd,NULL,NULL,NULL,NULL);
21525          iconv_close(cd);
21526   ;
21527   return 0;
21528 }
21529 _ACEOF
21530 rm -f conftest.$ac_objext conftest$ac_exeext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532   (eval $ac_link) 2>conftest.er1
21533   ac_status=$?
21534   grep -v '^ *+' conftest.er1 >conftest.err
21535   rm -f conftest.er1
21536   cat conftest.err >&5
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); } &&
21539          { ac_try='test -z "$ac_c_werror_flag"
21540                          || test ! -s conftest.err'
21541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542   (eval $ac_try) 2>&5
21543   ac_status=$?
21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545   (exit $ac_status); }; } &&
21546          { ac_try='test -s conftest$ac_exeext'
21547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548   (eval $ac_try) 2>&5
21549   ac_status=$?
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); }; }; then
21552   am_cv_lib_iconv=yes
21553         am_cv_func_iconv=yes
21554 else
21555   echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558 fi
21559 rm -f conftest.err conftest.$ac_objext \
21560       conftest$ac_exeext conftest.$ac_ext
21561       LIBS="$am_save_LIBS"
21562     fi
21563
21564 fi
21565 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21566 echo "${ECHO_T}$am_cv_func_iconv" >&6
21567   if test "$am_cv_func_iconv" = yes; then
21568
21569 cat >>confdefs.h <<\_ACEOF
21570 #define HAVE_ICONV 1
21571 _ACEOF
21572
21573     echo "$as_me:$LINENO: checking for iconv declaration" >&5
21574 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21575     if test "${am_cv_proto_iconv+set}" = set; then
21576   echo $ECHO_N "(cached) $ECHO_C" >&6
21577 else
21578
21579       cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585
21586 #include <stdlib.h>
21587 #include <iconv.h>
21588 extern
21589 #ifdef __cplusplus
21590 "C"
21591 #endif
21592 #if defined(__STDC__) || defined(__cplusplus)
21593 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21594 #else
21595 size_t iconv();
21596 #endif
21597
21598 int
21599 main ()
21600 {
21601
21602   ;
21603   return 0;
21604 }
21605 _ACEOF
21606 rm -f conftest.$ac_objext
21607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608   (eval $ac_compile) 2>conftest.er1
21609   ac_status=$?
21610   grep -v '^ *+' conftest.er1 >conftest.err
21611   rm -f conftest.er1
21612   cat conftest.err >&5
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } &&
21615          { ac_try='test -z "$ac_c_werror_flag"
21616                          || test ! -s conftest.err'
21617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618   (eval $ac_try) 2>&5
21619   ac_status=$?
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); }; } &&
21622          { ac_try='test -s conftest.$ac_objext'
21623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624   (eval $ac_try) 2>&5
21625   ac_status=$?
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); }; }; then
21628   am_cv_proto_iconv_arg1=""
21629 else
21630   echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21632
21633 am_cv_proto_iconv_arg1="const"
21634 fi
21635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21636       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
21637 fi
21638
21639     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21640     echo "$as_me:$LINENO: result: ${ac_t:-
21641          }$am_cv_proto_iconv" >&5
21642 echo "${ECHO_T}${ac_t:-
21643          }$am_cv_proto_iconv" >&6
21644
21645 cat >>confdefs.h <<_ACEOF
21646 #define ICONV_CONST $am_cv_proto_iconv_arg1
21647 _ACEOF
21648
21649   fi
21650   LIBICONV=
21651   if test "$am_cv_lib_iconv" = yes; then
21652     LIBICONV="-liconv"
21653   fi
21654
21655
21656
21657                     ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21658           ac_config_commands="$ac_config_commands default"
21659 cat >confcache <<\_ACEOF
21660 # This file is a shell script that caches the results of configure
21661 # tests run on this system so they can be shared between configure
21662 # scripts and configure runs, see configure's option --config-cache.
21663 # It is not useful on other systems.  If it contains results you don't
21664 # want to keep, you may remove or edit it.
21665 #
21666 # config.status only pays attention to the cache file if you give it
21667 # the --recheck option to rerun configure.
21668 #
21669 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21670 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21671 # following values.
21672
21673 _ACEOF
21674
21675 # The following way of writing the cache mishandles newlines in values,
21676 # but we know of no workaround that is simple, portable, and efficient.
21677 # So, don't put newlines in cache variables' values.
21678 # Ultrix sh set writes to stderr and can't be redirected directly,
21679 # and sets the high bit in the cache file unless we assign to the vars.
21680 {
21681   (set) 2>&1 |
21682     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21683     *ac_space=\ *)
21684       # `set' does not quote correctly, so add quotes (double-quote
21685       # substitution turns \\\\ into \\, and sed turns \\ into \).
21686       sed -n \
21687         "s/'/'\\\\''/g;
21688           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21689       ;;
21690     *)
21691       # `set' quotes correctly as required by POSIX, so do not add quotes.
21692       sed -n \
21693         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21694       ;;
21695     esac;
21696 } |
21697   sed '
21698      t clear
21699      : clear
21700      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21701      t end
21702      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21703      : end' >>confcache
21704 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21705   if test -w $cache_file; then
21706     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21707     cat confcache >$cache_file
21708   else
21709     echo "not updating unwritable cache $cache_file"
21710   fi
21711 fi
21712 rm -f confcache
21713
21714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21715 # Let make expand exec_prefix.
21716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21717
21718 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21719 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21720 # trailing colons and then remove the whole line if VPATH becomes empty
21721 # (actually we leave an empty line to preserve line numbers).
21722 if test "x$srcdir" = x.; then
21723   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21724 s/:*\$(srcdir):*/:/;
21725 s/:*\${srcdir}:*/:/;
21726 s/:*@srcdir@:*/:/;
21727 s/^\([^=]*=[     ]*\):*/\1/;
21728 s/:*$//;
21729 s/^[^=]*=[       ]*$//;
21730 }'
21731 fi
21732
21733 DEFS=-DHAVE_CONFIG_H
21734
21735 ac_libobjs=
21736 ac_ltlibobjs=
21737 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21738   # 1. Remove the extension, and $U if already installed.
21739   ac_i=`echo "$ac_i" |
21740          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21741   # 2. Add them.
21742   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21743   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21744 done
21745 LIBOBJS=$ac_libobjs
21746
21747 LTLIBOBJS=$ac_ltlibobjs
21748
21749
21750
21751 : ${CONFIG_STATUS=./config.status}
21752 ac_clean_files_save=$ac_clean_files
21753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21754 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21755 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21756 cat >$CONFIG_STATUS <<_ACEOF
21757 #! $SHELL
21758 # Generated by $as_me.
21759 # Run this file to recreate the current configuration.
21760 # Compiler output produced by configure, useful for debugging
21761 # configure, is in config.log if it exists.
21762
21763 debug=false
21764 ac_cs_recheck=false
21765 ac_cs_silent=false
21766 SHELL=\${CONFIG_SHELL-$SHELL}
21767 _ACEOF
21768
21769 cat >>$CONFIG_STATUS <<\_ACEOF
21770 ## --------------------- ##
21771 ## M4sh Initialization.  ##
21772 ## --------------------- ##
21773
21774 # Be Bourne compatible
21775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21776   emulate sh
21777   NULLCMD=:
21778   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21779   # is contrary to our usage.  Disable this feature.
21780   alias -g '${1+"$@"}'='"$@"'
21781 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21782   set -o posix
21783 fi
21784 DUALCASE=1; export DUALCASE # for MKS sh
21785
21786 # Support unset when possible.
21787 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21788   as_unset=unset
21789 else
21790   as_unset=false
21791 fi
21792
21793
21794 # Work around bugs in pre-3.0 UWIN ksh.
21795 $as_unset ENV MAIL MAILPATH
21796 PS1='$ '
21797 PS2='> '
21798 PS4='+ '
21799
21800 # NLS nuisances.
21801 for as_var in \
21802   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21803   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21804   LC_TELEPHONE LC_TIME
21805 do
21806   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21807     eval $as_var=C; export $as_var
21808   else
21809     $as_unset $as_var
21810   fi
21811 done
21812
21813 # Required to use basename.
21814 if expr a : '\(a\)' >/dev/null 2>&1; then
21815   as_expr=expr
21816 else
21817   as_expr=false
21818 fi
21819
21820 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21821   as_basename=basename
21822 else
21823   as_basename=false
21824 fi
21825
21826
21827 # Name of the executable.
21828 as_me=`$as_basename "$0" ||
21829 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21830          X"$0" : 'X\(//\)$' \| \
21831          X"$0" : 'X\(/\)$' \| \
21832          .     : '\(.\)' 2>/dev/null ||
21833 echo X/"$0" |
21834     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21835           /^X\/\(\/\/\)$/{ s//\1/; q; }
21836           /^X\/\(\/\).*/{ s//\1/; q; }
21837           s/.*/./; q'`
21838
21839
21840 # PATH needs CR, and LINENO needs CR and PATH.
21841 # Avoid depending upon Character Ranges.
21842 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21843 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21844 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21845 as_cr_digits='0123456789'
21846 as_cr_alnum=$as_cr_Letters$as_cr_digits
21847
21848 # The user is always right.
21849 if test "${PATH_SEPARATOR+set}" != set; then
21850   echo "#! /bin/sh" >conf$$.sh
21851   echo  "exit 0"   >>conf$$.sh
21852   chmod +x conf$$.sh
21853   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21854     PATH_SEPARATOR=';'
21855   else
21856     PATH_SEPARATOR=:
21857   fi
21858   rm -f conf$$.sh
21859 fi
21860
21861
21862   as_lineno_1=$LINENO
21863   as_lineno_2=$LINENO
21864   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21865   test "x$as_lineno_1" != "x$as_lineno_2" &&
21866   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21867   # Find who we are.  Look in the path if we contain no path at all
21868   # relative or not.
21869   case $0 in
21870     *[\\/]* ) as_myself=$0 ;;
21871     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21872 for as_dir in $PATH
21873 do
21874   IFS=$as_save_IFS
21875   test -z "$as_dir" && as_dir=.
21876   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21877 done
21878
21879        ;;
21880   esac
21881   # We did not find ourselves, most probably we were run as `sh COMMAND'
21882   # in which case we are not to be found in the path.
21883   if test "x$as_myself" = x; then
21884     as_myself=$0
21885   fi
21886   if test ! -f "$as_myself"; then
21887     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21888 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21889    { (exit 1); exit 1; }; }
21890   fi
21891   case $CONFIG_SHELL in
21892   '')
21893     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21894 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21895 do
21896   IFS=$as_save_IFS
21897   test -z "$as_dir" && as_dir=.
21898   for as_base in sh bash ksh sh5; do
21899          case $as_dir in
21900          /*)
21901            if ("$as_dir/$as_base" -c '
21902   as_lineno_1=$LINENO
21903   as_lineno_2=$LINENO
21904   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21905   test "x$as_lineno_1" != "x$as_lineno_2" &&
21906   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21907              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21908              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21909              CONFIG_SHELL=$as_dir/$as_base
21910              export CONFIG_SHELL
21911              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21912            fi;;
21913          esac
21914        done
21915 done
21916 ;;
21917   esac
21918
21919   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21920   # uniformly replaced by the line number.  The first 'sed' inserts a
21921   # line-number line before each line; the second 'sed' does the real
21922   # work.  The second script uses 'N' to pair each line-number line
21923   # with the numbered line, and appends trailing '-' during
21924   # substitution so that $LINENO is not a special case at line end.
21925   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21926   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21927   sed '=' <$as_myself |
21928     sed '
21929       N
21930       s,$,-,
21931       : loop
21932       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21933       t loop
21934       s,-$,,
21935       s,^['$as_cr_digits']*\n,,
21936     ' >$as_me.lineno &&
21937   chmod +x $as_me.lineno ||
21938     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21939 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21940    { (exit 1); exit 1; }; }
21941
21942   # Don't try to exec as it changes $[0], causing all sort of problems
21943   # (the dirname of $[0] is not the place where we might find the
21944   # original and so on.  Autoconf is especially sensible to this).
21945   . ./$as_me.lineno
21946   # Exit status is that of the last command.
21947   exit
21948 }
21949
21950
21951 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21952   *c*,-n*) ECHO_N= ECHO_C='
21953 ' ECHO_T='      ' ;;
21954   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21955   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21956 esac
21957
21958 if expr a : '\(a\)' >/dev/null 2>&1; then
21959   as_expr=expr
21960 else
21961   as_expr=false
21962 fi
21963
21964 rm -f conf$$ conf$$.exe conf$$.file
21965 echo >conf$$.file
21966 if ln -s conf$$.file conf$$ 2>/dev/null; then
21967   # We could just check for DJGPP; but this test a) works b) is more generic
21968   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21969   if test -f conf$$.exe; then
21970     # Don't use ln at all; we don't have any links
21971     as_ln_s='cp -p'
21972   else
21973     as_ln_s='ln -s'
21974   fi
21975 elif ln conf$$.file conf$$ 2>/dev/null; then
21976   as_ln_s=ln
21977 else
21978   as_ln_s='cp -p'
21979 fi
21980 rm -f conf$$ conf$$.exe conf$$.file
21981
21982 if mkdir -p . 2>/dev/null; then
21983   as_mkdir_p=:
21984 else
21985   test -d ./-p && rmdir ./-p
21986   as_mkdir_p=false
21987 fi
21988
21989 as_executable_p="test -f"
21990
21991 # Sed expression to map a string onto a valid CPP name.
21992 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21993
21994 # Sed expression to map a string onto a valid variable name.
21995 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21996
21997
21998 # IFS
21999 # We need space, tab and new line, in precisely that order.
22000 as_nl='
22001 '
22002 IFS="   $as_nl"
22003
22004 # CDPATH.
22005 $as_unset CDPATH
22006
22007 exec 6>&1
22008
22009 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22010 # report actual input values of CONFIG_FILES etc. instead of their
22011 # values after options handling.  Logging --version etc. is OK.
22012 exec 5>>config.log
22013 {
22014   echo
22015   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22016 ## Running $as_me. ##
22017 _ASBOX
22018 } >&5
22019 cat >&5 <<_CSEOF
22020
22021 This file was extended by $as_me, which was
22022 generated by GNU Autoconf 2.59.  Invocation command line was
22023
22024   CONFIG_FILES    = $CONFIG_FILES
22025   CONFIG_HEADERS  = $CONFIG_HEADERS
22026   CONFIG_LINKS    = $CONFIG_LINKS
22027   CONFIG_COMMANDS = $CONFIG_COMMANDS
22028   $ $0 $@
22029
22030 _CSEOF
22031 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22032 echo >&5
22033 _ACEOF
22034
22035 # Files that config.status was made for.
22036 if test -n "$ac_config_files"; then
22037   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22038 fi
22039
22040 if test -n "$ac_config_headers"; then
22041   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22042 fi
22043
22044 if test -n "$ac_config_links"; then
22045   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22046 fi
22047
22048 if test -n "$ac_config_commands"; then
22049   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22050 fi
22051
22052 cat >>$CONFIG_STATUS <<\_ACEOF
22053
22054 ac_cs_usage="\
22055 \`$as_me' instantiates files from templates according to the
22056 current configuration.
22057
22058 Usage: $0 [OPTIONS] [FILE]...
22059
22060   -h, --help       print this help, then exit
22061   -V, --version    print version number, then exit
22062   -q, --quiet      do not print progress messages
22063   -d, --debug      don't remove temporary files
22064       --recheck    update $as_me by reconfiguring in the same conditions
22065   --file=FILE[:TEMPLATE]
22066                    instantiate the configuration file FILE
22067   --header=FILE[:TEMPLATE]
22068                    instantiate the configuration header FILE
22069
22070 Configuration files:
22071 $config_files
22072
22073 Configuration headers:
22074 $config_headers
22075
22076 Configuration links:
22077 $config_links
22078
22079 Configuration commands:
22080 $config_commands
22081
22082 Report bugs to <bug-autoconf@gnu.org>."
22083 _ACEOF
22084
22085 cat >>$CONFIG_STATUS <<_ACEOF
22086 ac_cs_version="\\
22087 config.status
22088 configured by $0, generated by GNU Autoconf 2.59,
22089   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22090
22091 Copyright (C) 2003 Free Software Foundation, Inc.
22092 This config.status script is free software; the Free Software Foundation
22093 gives unlimited permission to copy, distribute and modify it."
22094 srcdir=$srcdir
22095 INSTALL="$INSTALL"
22096 _ACEOF
22097
22098 cat >>$CONFIG_STATUS <<\_ACEOF
22099 # If no file are specified by the user, then we need to provide default
22100 # value.  By we need to know if files were specified by the user.
22101 ac_need_defaults=:
22102 while test $# != 0
22103 do
22104   case $1 in
22105   --*=*)
22106     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22107     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22108     ac_shift=:
22109     ;;
22110   -*)
22111     ac_option=$1
22112     ac_optarg=$2
22113     ac_shift=shift
22114     ;;
22115   *) # This is not an option, so the user has probably given explicit
22116      # arguments.
22117      ac_option=$1
22118      ac_need_defaults=false;;
22119   esac
22120
22121   case $ac_option in
22122   # Handling of the options.
22123 _ACEOF
22124 cat >>$CONFIG_STATUS <<\_ACEOF
22125   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22126     ac_cs_recheck=: ;;
22127   --version | --vers* | -V )
22128     echo "$ac_cs_version"; exit 0 ;;
22129   --he | --h)
22130     # Conflict between --help and --header
22131     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22132 Try \`$0 --help' for more information." >&5
22133 echo "$as_me: error: ambiguous option: $1
22134 Try \`$0 --help' for more information." >&2;}
22135    { (exit 1); exit 1; }; };;
22136   --help | --hel | -h )
22137     echo "$ac_cs_usage"; exit 0 ;;
22138   --debug | --d* | -d )
22139     debug=: ;;
22140   --file | --fil | --fi | --f )
22141     $ac_shift
22142     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22143     ac_need_defaults=false;;
22144   --header | --heade | --head | --hea )
22145     $ac_shift
22146     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22147     ac_need_defaults=false;;
22148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22149   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22150     ac_cs_silent=: ;;
22151
22152   # This is an error.
22153   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22154 Try \`$0 --help' for more information." >&5
22155 echo "$as_me: error: unrecognized option: $1
22156 Try \`$0 --help' for more information." >&2;}
22157    { (exit 1); exit 1; }; } ;;
22158
22159   *) ac_config_targets="$ac_config_targets $1" ;;
22160
22161   esac
22162   shift
22163 done
22164
22165 ac_configure_extra_args=
22166
22167 if $ac_cs_silent; then
22168   exec 6>/dev/null
22169   ac_configure_extra_args="$ac_configure_extra_args --silent"
22170 fi
22171
22172 _ACEOF
22173 cat >>$CONFIG_STATUS <<_ACEOF
22174 if \$ac_cs_recheck; then
22175   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22176   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22177 fi
22178
22179 _ACEOF
22180
22181 cat >>$CONFIG_STATUS <<_ACEOF
22182 #
22183 # INIT-COMMANDS section.
22184 #
22185
22186
22187 gdb_host_cpu=$gdb_host_cpu
22188 gdb_target_cpu=$gdb_target_cpu
22189 nativefile=$nativefile
22190
22191
22192 _ACEOF
22193
22194
22195
22196 cat >>$CONFIG_STATUS <<\_ACEOF
22197 for ac_config_target in $ac_config_targets
22198 do
22199   case "$ac_config_target" in
22200   # Handling of arguments.
22201   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22202   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22203   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22204   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22205   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22206   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22207 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22208    { (exit 1); exit 1; }; };;
22209   esac
22210 done
22211
22212 # If the user did not use the arguments to specify the items to instantiate,
22213 # then the envvar interface is used.  Set only those that are not.
22214 # We use the long form for the default assignment because of an extremely
22215 # bizarre bug on SunOS 4.1.3.
22216 if $ac_need_defaults; then
22217   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22218   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22219   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22220   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22221 fi
22222
22223 # Have a temporary directory for convenience.  Make it in the build tree
22224 # simply because there is no reason to put it here, and in addition,
22225 # creating and moving files from /tmp can sometimes cause problems.
22226 # Create a temporary directory, and hook for its removal unless debugging.
22227 $debug ||
22228 {
22229   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22230   trap '{ (exit 1); exit 1; }' 1 2 13 15
22231 }
22232
22233 # Create a (secure) tmp directory for tmp files.
22234
22235 {
22236   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22237   test -n "$tmp" && test -d "$tmp"
22238 }  ||
22239 {
22240   tmp=./confstat$$-$RANDOM
22241   (umask 077 && mkdir $tmp)
22242 } ||
22243 {
22244    echo "$me: cannot create a temporary directory in ." >&2
22245    { (exit 1); exit 1; }
22246 }
22247
22248 _ACEOF
22249
22250 cat >>$CONFIG_STATUS <<_ACEOF
22251
22252 #
22253 # CONFIG_FILES section.
22254 #
22255
22256 # No need to generate the scripts if there are no CONFIG_FILES.
22257 # This happens for instance when ./config.status config.h
22258 if test -n "\$CONFIG_FILES"; then
22259   # Protect against being on the right side of a sed subst in config.status.
22260   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22261    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22262 s,@SHELL@,$SHELL,;t t
22263 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22264 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22265 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22266 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22267 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22268 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22269 s,@exec_prefix@,$exec_prefix,;t t
22270 s,@prefix@,$prefix,;t t
22271 s,@program_transform_name@,$program_transform_name,;t t
22272 s,@bindir@,$bindir,;t t
22273 s,@sbindir@,$sbindir,;t t
22274 s,@libexecdir@,$libexecdir,;t t
22275 s,@datadir@,$datadir,;t t
22276 s,@sysconfdir@,$sysconfdir,;t t
22277 s,@sharedstatedir@,$sharedstatedir,;t t
22278 s,@localstatedir@,$localstatedir,;t t
22279 s,@libdir@,$libdir,;t t
22280 s,@includedir@,$includedir,;t t
22281 s,@oldincludedir@,$oldincludedir,;t t
22282 s,@infodir@,$infodir,;t t
22283 s,@mandir@,$mandir,;t t
22284 s,@build_alias@,$build_alias,;t t
22285 s,@host_alias@,$host_alias,;t t
22286 s,@target_alias@,$target_alias,;t t
22287 s,@DEFS@,$DEFS,;t t
22288 s,@ECHO_C@,$ECHO_C,;t t
22289 s,@ECHO_N@,$ECHO_N,;t t
22290 s,@ECHO_T@,$ECHO_T,;t t
22291 s,@LIBS@,$LIBS,;t t
22292 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22293 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22294 s,@MAINT@,$MAINT,;t t
22295 s,@CC@,$CC,;t t
22296 s,@CFLAGS@,$CFLAGS,;t t
22297 s,@LDFLAGS@,$LDFLAGS,;t t
22298 s,@CPPFLAGS@,$CPPFLAGS,;t t
22299 s,@ac_ct_CC@,$ac_ct_CC,;t t
22300 s,@EXEEXT@,$EXEEXT,;t t
22301 s,@OBJEXT@,$OBJEXT,;t t
22302 s,@CPP@,$CPP,;t t
22303 s,@EGREP@,$EGREP,;t t
22304 s,@build@,$build,;t t
22305 s,@build_cpu@,$build_cpu,;t t
22306 s,@build_vendor@,$build_vendor,;t t
22307 s,@build_os@,$build_os,;t t
22308 s,@host@,$host,;t t
22309 s,@host_cpu@,$host_cpu,;t t
22310 s,@host_vendor@,$host_vendor,;t t
22311 s,@host_os@,$host_os,;t t
22312 s,@target@,$target,;t t
22313 s,@target_cpu@,$target_cpu,;t t
22314 s,@target_vendor@,$target_vendor,;t t
22315 s,@target_os@,$target_os,;t t
22316 s,@RANLIB@,$RANLIB,;t t
22317 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22318 s,@SET_MAKE@,$SET_MAKE,;t t
22319 s,@ALLOCA@,$ALLOCA,;t t
22320 s,@USE_NLS@,$USE_NLS,;t t
22321 s,@MSGFMT@,$MSGFMT,;t t
22322 s,@GMSGFMT@,$GMSGFMT,;t t
22323 s,@XGETTEXT@,$XGETTEXT,;t t
22324 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22325 s,@CATALOGS@,$CATALOGS,;t t
22326 s,@CATOBJEXT@,$CATOBJEXT,;t t
22327 s,@DATADIRNAME@,$DATADIRNAME,;t t
22328 s,@GMOFILES@,$GMOFILES,;t t
22329 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22330 s,@INTLDEPS@,$INTLDEPS,;t t
22331 s,@INTLLIBS@,$INTLLIBS,;t t
22332 s,@INTLOBJS@,$INTLOBJS,;t t
22333 s,@POFILES@,$POFILES,;t t
22334 s,@POSUB@,$POSUB,;t t
22335 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22336 s,@GT_NO@,$GT_NO,;t t
22337 s,@GT_YES@,$GT_YES,;t t
22338 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22339 s,@l@,$l,;t t
22340 s,@localedir@,$localedir,;t t
22341 s,@PACKAGE@,$PACKAGE,;t t
22342 s,@subdirs@,$subdirs,;t t
22343 s,@AWK@,$AWK,;t t
22344 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22345 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22346 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22347 s,@LN_S@,$LN_S,;t t
22348 s,@YACC@,$YACC,;t t
22349 s,@AR@,$AR,;t t
22350 s,@ac_ct_AR@,$ac_ct_AR,;t t
22351 s,@DLLTOOL@,$DLLTOOL,;t t
22352 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22353 s,@WINDRES@,$WINDRES,;t t
22354 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22355 s,@MIG@,$MIG,;t t
22356 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22357 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22358 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22359 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22360 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22361 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22362 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22363 s,@WIN32LIBS@,$WIN32LIBS,;t t
22364 s,@LIBGUI@,$LIBGUI,;t t
22365 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22366 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22367 s,@TCL_VERSION@,$TCL_VERSION,;t t
22368 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22369 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22370 s,@TCL_CC@,$TCL_CC,;t t
22371 s,@TCL_DEFS@,$TCL_DEFS,;t t
22372 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22373 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22374 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22375 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22376 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22377 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22378 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22379 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22380 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22381 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22382 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22383 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22384 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22385 s,@TK_VERSION@,$TK_VERSION,;t t
22386 s,@TK_DEFS@,$TK_DEFS,;t t
22387 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22388 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22389 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22390 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22391 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22392 s,@TCLHDIR@,$TCLHDIR,;t t
22393 s,@TKHDIR@,$TKHDIR,;t t
22394 s,@ITCLHDIR@,$ITCLHDIR,;t t
22395 s,@ITKHDIR@,$ITKHDIR,;t t
22396 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22397 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22398 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22399 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22400 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22401 s,@ITK_VERSION@,$ITK_VERSION,;t t
22402 s,@ITK_DEFS@,$ITK_DEFS,;t t
22403 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22404 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22405 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22406 s,@X_CFLAGS@,$X_CFLAGS,;t t
22407 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22408 s,@X_LIBS@,$X_LIBS,;t t
22409 s,@TCL_DEPS@,$TCL_DEPS,;t t
22410 s,@TK_DEPS@,$TK_DEPS,;t t
22411 s,@ITCLLIB@,$ITCLLIB,;t t
22412 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22413 s,@ITKLIB@,$ITKLIB,;t t
22414 s,@ITK_DEPS@,$ITK_DEPS,;t t
22415 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22416 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22417 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22418 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22419 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22420 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22421 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22422 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22423 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22424 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22425 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22426 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22427 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22428 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22429 s,@target_subdir@,$target_subdir,;t t
22430 s,@frags@,$frags,;t t
22431 s,@xm_h@,$xm_h,;t t
22432 s,@tm_h@,$tm_h,;t t
22433 s,@nm_h@,$nm_h,;t t
22434 s,@LIBICONV@,$LIBICONV,;t t
22435 s,@LIBOBJS@,$LIBOBJS,;t t
22436 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22437 /@host_makefile_frag@/r $host_makefile_frag
22438 s,@host_makefile_frag@,,;t t
22439 /@target_makefile_frag@/r $target_makefile_frag
22440 s,@target_makefile_frag@,,;t t
22441 CEOF
22442
22443 _ACEOF
22444
22445   cat >>$CONFIG_STATUS <<\_ACEOF
22446   # Split the substitutions into bite-sized pieces for seds with
22447   # small command number limits, like on Digital OSF/1 and HP-UX.
22448   ac_max_sed_lines=48
22449   ac_sed_frag=1 # Number of current file.
22450   ac_beg=1 # First line for current file.
22451   ac_end=$ac_max_sed_lines # Line after last line for current file.
22452   ac_more_lines=:
22453   ac_sed_cmds=
22454   while $ac_more_lines; do
22455     if test $ac_beg -gt 1; then
22456       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22457     else
22458       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22459     fi
22460     if test ! -s $tmp/subs.frag; then
22461       ac_more_lines=false
22462     else
22463       # The purpose of the label and of the branching condition is to
22464       # speed up the sed processing (if there are no `@' at all, there
22465       # is no need to browse any of the substitutions).
22466       # These are the two extra sed commands mentioned above.
22467       (echo ':t
22468   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22469       if test -z "$ac_sed_cmds"; then
22470         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22471       else
22472         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22473       fi
22474       ac_sed_frag=`expr $ac_sed_frag + 1`
22475       ac_beg=$ac_end
22476       ac_end=`expr $ac_end + $ac_max_sed_lines`
22477     fi
22478   done
22479   if test -z "$ac_sed_cmds"; then
22480     ac_sed_cmds=cat
22481   fi
22482 fi # test -n "$CONFIG_FILES"
22483
22484 _ACEOF
22485 cat >>$CONFIG_STATUS <<\_ACEOF
22486 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22487   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22488   case $ac_file in
22489   - | *:- | *:-:* ) # input from stdin
22490         cat >$tmp/stdin
22491         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22492         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22493   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22494         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22495   * )   ac_file_in=$ac_file.in ;;
22496   esac
22497
22498   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22499   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22501          X"$ac_file" : 'X\(//\)[^/]' \| \
22502          X"$ac_file" : 'X\(//\)$' \| \
22503          X"$ac_file" : 'X\(/\)' \| \
22504          .     : '\(.\)' 2>/dev/null ||
22505 echo X"$ac_file" |
22506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22508           /^X\(\/\/\)$/{ s//\1/; q; }
22509           /^X\(\/\).*/{ s//\1/; q; }
22510           s/.*/./; q'`
22511   { if $as_mkdir_p; then
22512     mkdir -p "$ac_dir"
22513   else
22514     as_dir="$ac_dir"
22515     as_dirs=
22516     while test ! -d "$as_dir"; do
22517       as_dirs="$as_dir $as_dirs"
22518       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22520          X"$as_dir" : 'X\(//\)[^/]' \| \
22521          X"$as_dir" : 'X\(//\)$' \| \
22522          X"$as_dir" : 'X\(/\)' \| \
22523          .     : '\(.\)' 2>/dev/null ||
22524 echo X"$as_dir" |
22525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22526           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22527           /^X\(\/\/\)$/{ s//\1/; q; }
22528           /^X\(\/\).*/{ s//\1/; q; }
22529           s/.*/./; q'`
22530     done
22531     test ! -n "$as_dirs" || mkdir $as_dirs
22532   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22534    { (exit 1); exit 1; }; }; }
22535
22536   ac_builddir=.
22537
22538 if test "$ac_dir" != .; then
22539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22540   # A "../" for each directory in $ac_dir_suffix.
22541   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22542 else
22543   ac_dir_suffix= ac_top_builddir=
22544 fi
22545
22546 case $srcdir in
22547   .)  # No --srcdir option.  We are building in place.
22548     ac_srcdir=.
22549     if test -z "$ac_top_builddir"; then
22550        ac_top_srcdir=.
22551     else
22552        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22553     fi ;;
22554   [\\/]* | ?:[\\/]* )  # Absolute path.
22555     ac_srcdir=$srcdir$ac_dir_suffix;
22556     ac_top_srcdir=$srcdir ;;
22557   *) # Relative path.
22558     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22559     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22560 esac
22561
22562 # Do not use `cd foo && pwd` to compute absolute paths, because
22563 # the directories may not exist.
22564 case `pwd` in
22565 .) ac_abs_builddir="$ac_dir";;
22566 *)
22567   case "$ac_dir" in
22568   .) ac_abs_builddir=`pwd`;;
22569   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22570   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22571   esac;;
22572 esac
22573 case $ac_abs_builddir in
22574 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22575 *)
22576   case ${ac_top_builddir}. in
22577   .) ac_abs_top_builddir=$ac_abs_builddir;;
22578   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22579   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22580   esac;;
22581 esac
22582 case $ac_abs_builddir in
22583 .) ac_abs_srcdir=$ac_srcdir;;
22584 *)
22585   case $ac_srcdir in
22586   .) ac_abs_srcdir=$ac_abs_builddir;;
22587   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22588   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22589   esac;;
22590 esac
22591 case $ac_abs_builddir in
22592 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22593 *)
22594   case $ac_top_srcdir in
22595   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22596   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22597   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22598   esac;;
22599 esac
22600
22601
22602   case $INSTALL in
22603   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22604   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22605   esac
22606
22607   if test x"$ac_file" != x-; then
22608     { echo "$as_me:$LINENO: creating $ac_file" >&5
22609 echo "$as_me: creating $ac_file" >&6;}
22610     rm -f "$ac_file"
22611   fi
22612   # Let's still pretend it is `configure' which instantiates (i.e., don't
22613   # use $as_me), people would be surprised to read:
22614   #    /* config.h.  Generated by config.status.  */
22615   if test x"$ac_file" = x-; then
22616     configure_input=
22617   else
22618     configure_input="$ac_file.  "
22619   fi
22620   configure_input=$configure_input"Generated from `echo $ac_file_in |
22621                                      sed 's,.*/,,'` by configure."
22622
22623   # First look for the input files in the build tree, otherwise in the
22624   # src tree.
22625   ac_file_inputs=`IFS=:
22626     for f in $ac_file_in; do
22627       case $f in
22628       -) echo $tmp/stdin ;;
22629       [\\/$]*)
22630          # Absolute (can't be DOS-style, as IFS=:)
22631          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22632 echo "$as_me: error: cannot find input file: $f" >&2;}
22633    { (exit 1); exit 1; }; }
22634          echo "$f";;
22635       *) # Relative
22636          if test -f "$f"; then
22637            # Build tree
22638            echo "$f"
22639          elif test -f "$srcdir/$f"; then
22640            # Source tree
22641            echo "$srcdir/$f"
22642          else
22643            # /dev/null tree
22644            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22645 echo "$as_me: error: cannot find input file: $f" >&2;}
22646    { (exit 1); exit 1; }; }
22647          fi;;
22648       esac
22649     done` || { (exit 1); exit 1; }
22650 _ACEOF
22651 cat >>$CONFIG_STATUS <<_ACEOF
22652   sed "$ac_vpsub
22653 $extrasub
22654 _ACEOF
22655 cat >>$CONFIG_STATUS <<\_ACEOF
22656 :t
22657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22658 s,@configure_input@,$configure_input,;t t
22659 s,@srcdir@,$ac_srcdir,;t t
22660 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22661 s,@top_srcdir@,$ac_top_srcdir,;t t
22662 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22663 s,@builddir@,$ac_builddir,;t t
22664 s,@abs_builddir@,$ac_abs_builddir,;t t
22665 s,@top_builddir@,$ac_top_builddir,;t t
22666 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22667 s,@INSTALL@,$ac_INSTALL,;t t
22668 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22669   rm -f $tmp/stdin
22670   if test x"$ac_file" != x-; then
22671     mv $tmp/out $ac_file
22672   else
22673     cat $tmp/out
22674     rm -f $tmp/out
22675   fi
22676
22677 done
22678 _ACEOF
22679 cat >>$CONFIG_STATUS <<\_ACEOF
22680
22681 #
22682 # CONFIG_HEADER section.
22683 #
22684
22685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22687 #
22688 # ac_d sets the value in "#define NAME VALUE" lines.
22689 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22690 ac_dB='[         ].*$,\1#\2'
22691 ac_dC=' '
22692 ac_dD=',;t'
22693 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22694 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22695 ac_uB='$,\1#\2define\3'
22696 ac_uC=' '
22697 ac_uD=',;t'
22698
22699 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22700   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22701   case $ac_file in
22702   - | *:- | *:-:* ) # input from stdin
22703         cat >$tmp/stdin
22704         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22705         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22706   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22707         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22708   * )   ac_file_in=$ac_file.in ;;
22709   esac
22710
22711   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22712 echo "$as_me: creating $ac_file" >&6;}
22713
22714   # First look for the input files in the build tree, otherwise in the
22715   # src tree.
22716   ac_file_inputs=`IFS=:
22717     for f in $ac_file_in; do
22718       case $f in
22719       -) echo $tmp/stdin ;;
22720       [\\/$]*)
22721          # Absolute (can't be DOS-style, as IFS=:)
22722          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22723 echo "$as_me: error: cannot find input file: $f" >&2;}
22724    { (exit 1); exit 1; }; }
22725          # Do quote $f, to prevent DOS paths from being IFS'd.
22726          echo "$f";;
22727       *) # Relative
22728          if test -f "$f"; then
22729            # Build tree
22730            echo "$f"
22731          elif test -f "$srcdir/$f"; then
22732            # Source tree
22733            echo "$srcdir/$f"
22734          else
22735            # /dev/null tree
22736            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22737 echo "$as_me: error: cannot find input file: $f" >&2;}
22738    { (exit 1); exit 1; }; }
22739          fi;;
22740       esac
22741     done` || { (exit 1); exit 1; }
22742   # Remove the trailing spaces.
22743   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22744
22745 _ACEOF
22746
22747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22748 # `conftest.undefs', that substitutes the proper values into
22749 # config.h.in to produce config.h.  The first handles `#define'
22750 # templates, and the second `#undef' templates.
22751 # And first: Protect against being on the right side of a sed subst in
22752 # config.status.  Protect against being in an unquoted here document
22753 # in config.status.
22754 rm -f conftest.defines conftest.undefs
22755 # Using a here document instead of a string reduces the quoting nightmare.
22756 # Putting comments in sed scripts is not portable.
22757 #
22758 # `end' is used to avoid that the second main sed command (meant for
22759 # 0-ary CPP macros) applies to n-ary macro definitions.
22760 # See the Autoconf documentation for `clear'.
22761 cat >confdef2sed.sed <<\_ACEOF
22762 s/[\\&,]/\\&/g
22763 s,[\\$`],\\&,g
22764 t clear
22765 : clear
22766 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22767 t end
22768 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22769 : end
22770 _ACEOF
22771 # If some macros were called several times there might be several times
22772 # the same #defines, which is useless.  Nevertheless, we may not want to
22773 # sort them, since we want the *last* AC-DEFINE to be honored.
22774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22776 rm -f confdef2sed.sed
22777
22778 # This sed command replaces #undef with comments.  This is necessary, for
22779 # example, in the case of _POSIX_SOURCE, which is predefined and required
22780 # on some systems where configure will not decide to define it.
22781 cat >>conftest.undefs <<\_ACEOF
22782 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22783 _ACEOF
22784
22785 # Break up conftest.defines because some shells have a limit on the size
22786 # of here documents, and old seds have small limits too (100 cmds).
22787 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22788 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22789 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22790 echo '  :' >>$CONFIG_STATUS
22791 rm -f conftest.tail
22792 while grep . conftest.defines >/dev/null
22793 do
22794   # Write a limited-size here document to $tmp/defines.sed.
22795   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22796   # Speed up: don't consider the non `#define' lines.
22797   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22798   # Work around the forget-to-reset-the-flag bug.
22799   echo 't clr' >>$CONFIG_STATUS
22800   echo ': clr' >>$CONFIG_STATUS
22801   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22802   echo 'CEOF
22803   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22804   rm -f $tmp/in
22805   mv $tmp/out $tmp/in
22806 ' >>$CONFIG_STATUS
22807   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22808   rm -f conftest.defines
22809   mv conftest.tail conftest.defines
22810 done
22811 rm -f conftest.defines
22812 echo '  fi # grep' >>$CONFIG_STATUS
22813 echo >>$CONFIG_STATUS
22814
22815 # Break up conftest.undefs because some shells have a limit on the size
22816 # of here documents, and old seds have small limits too (100 cmds).
22817 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22818 rm -f conftest.tail
22819 while grep . conftest.undefs >/dev/null
22820 do
22821   # Write a limited-size here document to $tmp/undefs.sed.
22822   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22823   # Speed up: don't consider the non `#undef'
22824   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22825   # Work around the forget-to-reset-the-flag bug.
22826   echo 't clr' >>$CONFIG_STATUS
22827   echo ': clr' >>$CONFIG_STATUS
22828   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22829   echo 'CEOF
22830   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22831   rm -f $tmp/in
22832   mv $tmp/out $tmp/in
22833 ' >>$CONFIG_STATUS
22834   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22835   rm -f conftest.undefs
22836   mv conftest.tail conftest.undefs
22837 done
22838 rm -f conftest.undefs
22839
22840 cat >>$CONFIG_STATUS <<\_ACEOF
22841   # Let's still pretend it is `configure' which instantiates (i.e., don't
22842   # use $as_me), people would be surprised to read:
22843   #    /* config.h.  Generated by config.status.  */
22844   if test x"$ac_file" = x-; then
22845     echo "/* Generated by configure.  */" >$tmp/config.h
22846   else
22847     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22848   fi
22849   cat $tmp/in >>$tmp/config.h
22850   rm -f $tmp/in
22851   if test x"$ac_file" != x-; then
22852     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22853       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22854 echo "$as_me: $ac_file is unchanged" >&6;}
22855     else
22856       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22858          X"$ac_file" : 'X\(//\)[^/]' \| \
22859          X"$ac_file" : 'X\(//\)$' \| \
22860          X"$ac_file" : 'X\(/\)' \| \
22861          .     : '\(.\)' 2>/dev/null ||
22862 echo X"$ac_file" |
22863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22865           /^X\(\/\/\)$/{ s//\1/; q; }
22866           /^X\(\/\).*/{ s//\1/; q; }
22867           s/.*/./; q'`
22868       { if $as_mkdir_p; then
22869     mkdir -p "$ac_dir"
22870   else
22871     as_dir="$ac_dir"
22872     as_dirs=
22873     while test ! -d "$as_dir"; do
22874       as_dirs="$as_dir $as_dirs"
22875       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22877          X"$as_dir" : 'X\(//\)[^/]' \| \
22878          X"$as_dir" : 'X\(//\)$' \| \
22879          X"$as_dir" : 'X\(/\)' \| \
22880          .     : '\(.\)' 2>/dev/null ||
22881 echo X"$as_dir" |
22882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22884           /^X\(\/\/\)$/{ s//\1/; q; }
22885           /^X\(\/\).*/{ s//\1/; q; }
22886           s/.*/./; q'`
22887     done
22888     test ! -n "$as_dirs" || mkdir $as_dirs
22889   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22891    { (exit 1); exit 1; }; }; }
22892
22893       rm -f $ac_file
22894       mv $tmp/config.h $ac_file
22895     fi
22896   else
22897     cat $tmp/config.h
22898     rm -f $tmp/config.h
22899   fi
22900 done
22901 _ACEOF
22902 cat >>$CONFIG_STATUS <<\_ACEOF
22903
22904 #
22905 # CONFIG_LINKS section.
22906 #
22907
22908 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22909   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22910   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22911
22912   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22913 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22914
22915   if test ! -r $srcdir/$ac_source; then
22916     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22917 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22918    { (exit 1); exit 1; }; }
22919   fi
22920   rm -f $ac_dest
22921
22922   # Make relative symlinks.
22923   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22924 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22925          X"$ac_dest" : 'X\(//\)[^/]' \| \
22926          X"$ac_dest" : 'X\(//\)$' \| \
22927          X"$ac_dest" : 'X\(/\)' \| \
22928          .     : '\(.\)' 2>/dev/null ||
22929 echo X"$ac_dest" |
22930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22931           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22932           /^X\(\/\/\)$/{ s//\1/; q; }
22933           /^X\(\/\).*/{ s//\1/; q; }
22934           s/.*/./; q'`
22935   { if $as_mkdir_p; then
22936     mkdir -p "$ac_dest_dir"
22937   else
22938     as_dir="$ac_dest_dir"
22939     as_dirs=
22940     while test ! -d "$as_dir"; do
22941       as_dirs="$as_dir $as_dirs"
22942       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944          X"$as_dir" : 'X\(//\)[^/]' \| \
22945          X"$as_dir" : 'X\(//\)$' \| \
22946          X"$as_dir" : 'X\(/\)' \| \
22947          .     : '\(.\)' 2>/dev/null ||
22948 echo X"$as_dir" |
22949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951           /^X\(\/\/\)$/{ s//\1/; q; }
22952           /^X\(\/\).*/{ s//\1/; q; }
22953           s/.*/./; q'`
22954     done
22955     test ! -n "$as_dirs" || mkdir $as_dirs
22956   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22957 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22958    { (exit 1); exit 1; }; }; }
22959
22960   ac_builddir=.
22961
22962 if test "$ac_dest_dir" != .; then
22963   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22964   # A "../" for each directory in $ac_dir_suffix.
22965   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22966 else
22967   ac_dir_suffix= ac_top_builddir=
22968 fi
22969
22970 case $srcdir in
22971   .)  # No --srcdir option.  We are building in place.
22972     ac_srcdir=.
22973     if test -z "$ac_top_builddir"; then
22974        ac_top_srcdir=.
22975     else
22976        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22977     fi ;;
22978   [\\/]* | ?:[\\/]* )  # Absolute path.
22979     ac_srcdir=$srcdir$ac_dir_suffix;
22980     ac_top_srcdir=$srcdir ;;
22981   *) # Relative path.
22982     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22983     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22984 esac
22985
22986 # Do not use `cd foo && pwd` to compute absolute paths, because
22987 # the directories may not exist.
22988 case `pwd` in
22989 .) ac_abs_builddir="$ac_dest_dir";;
22990 *)
22991   case "$ac_dest_dir" in
22992   .) ac_abs_builddir=`pwd`;;
22993   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22994   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22995   esac;;
22996 esac
22997 case $ac_abs_builddir in
22998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22999 *)
23000   case ${ac_top_builddir}. in
23001   .) ac_abs_top_builddir=$ac_abs_builddir;;
23002   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23003   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23004   esac;;
23005 esac
23006 case $ac_abs_builddir in
23007 .) ac_abs_srcdir=$ac_srcdir;;
23008 *)
23009   case $ac_srcdir in
23010   .) ac_abs_srcdir=$ac_abs_builddir;;
23011   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23012   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23013   esac;;
23014 esac
23015 case $ac_abs_builddir in
23016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23017 *)
23018   case $ac_top_srcdir in
23019   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23020   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23021   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23022   esac;;
23023 esac
23024
23025
23026   case $srcdir in
23027   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23028       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23029   esac
23030
23031   # Try a symlink, then a hard link, then a copy.
23032   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23033     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23034     cp -p $srcdir/$ac_source $ac_dest ||
23035     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23036 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23037    { (exit 1); exit 1; }; }
23038 done
23039 _ACEOF
23040 cat >>$CONFIG_STATUS <<\_ACEOF
23041
23042 #
23043 # CONFIG_COMMANDS section.
23044 #
23045 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23046   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23047   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23048   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23049 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23050          X"$ac_dest" : 'X\(//\)[^/]' \| \
23051          X"$ac_dest" : 'X\(//\)$' \| \
23052          X"$ac_dest" : 'X\(/\)' \| \
23053          .     : '\(.\)' 2>/dev/null ||
23054 echo X"$ac_dest" |
23055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23056           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23057           /^X\(\/\/\)$/{ s//\1/; q; }
23058           /^X\(\/\).*/{ s//\1/; q; }
23059           s/.*/./; q'`
23060   { if $as_mkdir_p; then
23061     mkdir -p "$ac_dir"
23062   else
23063     as_dir="$ac_dir"
23064     as_dirs=
23065     while test ! -d "$as_dir"; do
23066       as_dirs="$as_dir $as_dirs"
23067       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23069          X"$as_dir" : 'X\(//\)[^/]' \| \
23070          X"$as_dir" : 'X\(//\)$' \| \
23071          X"$as_dir" : 'X\(/\)' \| \
23072          .     : '\(.\)' 2>/dev/null ||
23073 echo X"$as_dir" |
23074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23075           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23076           /^X\(\/\/\)$/{ s//\1/; q; }
23077           /^X\(\/\).*/{ s//\1/; q; }
23078           s/.*/./; q'`
23079     done
23080     test ! -n "$as_dirs" || mkdir $as_dirs
23081   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23083    { (exit 1); exit 1; }; }; }
23084
23085   ac_builddir=.
23086
23087 if test "$ac_dir" != .; then
23088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23089   # A "../" for each directory in $ac_dir_suffix.
23090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23091 else
23092   ac_dir_suffix= ac_top_builddir=
23093 fi
23094
23095 case $srcdir in
23096   .)  # No --srcdir option.  We are building in place.
23097     ac_srcdir=.
23098     if test -z "$ac_top_builddir"; then
23099        ac_top_srcdir=.
23100     else
23101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23102     fi ;;
23103   [\\/]* | ?:[\\/]* )  # Absolute path.
23104     ac_srcdir=$srcdir$ac_dir_suffix;
23105     ac_top_srcdir=$srcdir ;;
23106   *) # Relative path.
23107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23109 esac
23110
23111 # Do not use `cd foo && pwd` to compute absolute paths, because
23112 # the directories may not exist.
23113 case `pwd` in
23114 .) ac_abs_builddir="$ac_dir";;
23115 *)
23116   case "$ac_dir" in
23117   .) ac_abs_builddir=`pwd`;;
23118   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23119   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23120   esac;;
23121 esac
23122 case $ac_abs_builddir in
23123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23124 *)
23125   case ${ac_top_builddir}. in
23126   .) ac_abs_top_builddir=$ac_abs_builddir;;
23127   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23128   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23129   esac;;
23130 esac
23131 case $ac_abs_builddir in
23132 .) ac_abs_srcdir=$ac_srcdir;;
23133 *)
23134   case $ac_srcdir in
23135   .) ac_abs_srcdir=$ac_abs_builddir;;
23136   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23137   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23138   esac;;
23139 esac
23140 case $ac_abs_builddir in
23141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23142 *)
23143   case $ac_top_srcdir in
23144   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23145   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23146   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23147   esac;;
23148 esac
23149
23150
23151   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23152 echo "$as_me: executing $ac_dest commands" >&6;}
23153   case $ac_dest in
23154     default )
23155
23156 sed -e '/^DEPRECATED_TM_FILE[   ]*=/s,^DEPRECATED_TM_FILE[      ]*=[    ]*,&config/'"${gdb_target_cpu}"'/,
23157 /^XM_FILE[      ]*=/s,^XM_FILE[         ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,
23158 /^NAT_FILE[     ]*=/s,^NAT_FILE[        ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23159 mv -f Makefile.tmp Makefile
23160
23161
23162 case x$CONFIG_HEADERS in
23163 xconfig.h:config.in)
23164 echo > stamp-h ;;
23165 esac
23166  ;;
23167   esac
23168 done
23169 _ACEOF
23170
23171 cat >>$CONFIG_STATUS <<\_ACEOF
23172
23173 { (exit 0); exit 0; }
23174 _ACEOF
23175 chmod +x $CONFIG_STATUS
23176 ac_clean_files=$ac_clean_files_save
23177
23178
23179 # configure is writing to config.log, and then calls config.status.
23180 # config.status does its own redirection, appending to config.log.
23181 # Unfortunately, on DOS this fails, as config.log is still kept open
23182 # by configure, so config.status won't be able to write to it; its
23183 # output is simply discarded.  So we exec the FD to /dev/null,
23184 # effectively closing config.log, so it can be properly (re)opened and
23185 # appended to by config.status.  When coming back to configure, we
23186 # need to make the FD available again.
23187 if test "$no_create" != yes; then
23188   ac_cs_success=:
23189   ac_config_status_args=
23190   test "$silent" = yes &&
23191     ac_config_status_args="$ac_config_status_args --quiet"
23192   exec 5>/dev/null
23193   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23194   exec 5>>config.log
23195   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23196   # would make configure fail if this is the last instruction.
23197   $ac_cs_success || { (exit 1); exit 1; }
23198 fi
23199
23200 #
23201 # CONFIG_SUBDIRS section.
23202 #
23203 if test "$no_recursion" != yes; then
23204
23205   # Remove --cache-file and --srcdir arguments so they do not pile up.
23206   ac_sub_configure_args=
23207   ac_prev=
23208   for ac_arg in $ac_configure_args; do
23209     if test -n "$ac_prev"; then
23210       ac_prev=
23211       continue
23212     fi
23213     case $ac_arg in
23214     -cache-file | --cache-file | --cache-fil | --cache-fi \
23215     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23216       ac_prev=cache_file ;;
23217     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23218     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23219     | --c=*)
23220       ;;
23221     --config-cache | -C)
23222       ;;
23223     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23224       ac_prev=srcdir ;;
23225     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23226       ;;
23227     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23228       ac_prev=prefix ;;
23229     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23230       ;;
23231     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23232     esac
23233   done
23234
23235   # Always prepend --prefix to ensure using the same prefix
23236   # in subdir configurations.
23237   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23238
23239   ac_popdir=`pwd`
23240   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23241
23242     # Do not complain, so a configure script can configure whichever
23243     # parts of a large source tree are present.
23244     test -d $srcdir/$ac_dir || continue
23245
23246     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23247 echo "$as_me: configuring in $ac_dir" >&6;}
23248     { if $as_mkdir_p; then
23249     mkdir -p "$ac_dir"
23250   else
23251     as_dir="$ac_dir"
23252     as_dirs=
23253     while test ! -d "$as_dir"; do
23254       as_dirs="$as_dir $as_dirs"
23255       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23257          X"$as_dir" : 'X\(//\)[^/]' \| \
23258          X"$as_dir" : 'X\(//\)$' \| \
23259          X"$as_dir" : 'X\(/\)' \| \
23260          .     : '\(.\)' 2>/dev/null ||
23261 echo X"$as_dir" |
23262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23263           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23264           /^X\(\/\/\)$/{ s//\1/; q; }
23265           /^X\(\/\).*/{ s//\1/; q; }
23266           s/.*/./; q'`
23267     done
23268     test ! -n "$as_dirs" || mkdir $as_dirs
23269   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23271    { (exit 1); exit 1; }; }; }
23272
23273     ac_builddir=.
23274
23275 if test "$ac_dir" != .; then
23276   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23277   # A "../" for each directory in $ac_dir_suffix.
23278   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23279 else
23280   ac_dir_suffix= ac_top_builddir=
23281 fi
23282
23283 case $srcdir in
23284   .)  # No --srcdir option.  We are building in place.
23285     ac_srcdir=.
23286     if test -z "$ac_top_builddir"; then
23287        ac_top_srcdir=.
23288     else
23289        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23290     fi ;;
23291   [\\/]* | ?:[\\/]* )  # Absolute path.
23292     ac_srcdir=$srcdir$ac_dir_suffix;
23293     ac_top_srcdir=$srcdir ;;
23294   *) # Relative path.
23295     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23296     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23297 esac
23298
23299 # Do not use `cd foo && pwd` to compute absolute paths, because
23300 # the directories may not exist.
23301 case `pwd` in
23302 .) ac_abs_builddir="$ac_dir";;
23303 *)
23304   case "$ac_dir" in
23305   .) ac_abs_builddir=`pwd`;;
23306   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23307   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23308   esac;;
23309 esac
23310 case $ac_abs_builddir in
23311 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23312 *)
23313   case ${ac_top_builddir}. in
23314   .) ac_abs_top_builddir=$ac_abs_builddir;;
23315   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23316   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23317   esac;;
23318 esac
23319 case $ac_abs_builddir in
23320 .) ac_abs_srcdir=$ac_srcdir;;
23321 *)
23322   case $ac_srcdir in
23323   .) ac_abs_srcdir=$ac_abs_builddir;;
23324   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23325   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23326   esac;;
23327 esac
23328 case $ac_abs_builddir in
23329 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23330 *)
23331   case $ac_top_srcdir in
23332   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23333   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23334   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23335   esac;;
23336 esac
23337
23338
23339     cd $ac_dir
23340
23341     # Check for guested configure; otherwise get Cygnus style configure.
23342     if test -f $ac_srcdir/configure.gnu; then
23343       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23344     elif test -f $ac_srcdir/configure; then
23345       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23346     elif test -f $ac_srcdir/configure.in; then
23347       ac_sub_configure=$ac_configure
23348     else
23349       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23350 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23351       ac_sub_configure=
23352     fi
23353
23354     # The recursion is here.
23355     if test -n "$ac_sub_configure"; then
23356       # Make the cache file name correct relative to the subdirectory.
23357       case $cache_file in
23358       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23359       *) # Relative path.
23360         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23361       esac
23362
23363       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23364 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23365       # The eval makes quoting arguments work.
23366       eval $ac_sub_configure $ac_sub_configure_args \
23367            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23368         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23369 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23370    { (exit 1); exit 1; }; }
23371     fi
23372
23373     cd $ac_popdir
23374   done
23375 fi
23376
23377
23378 exit 0