* gas/i386/intel16.d: Ignore trailing text with #pass.
[deliverable/binutils-gdb.git] / gdb / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
275# Factoring default headers for most tests.
276ac_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
312ac_subdirs_all="$ac_subdirs_all doc testsuite"
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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'
317ac_subst_files='host_makefile_frag target_makefile_frag'
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
805_ACEOF
806
807 cat <<_ACEOF
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --disable-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
874Optional 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
893Some 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
902Use these variables to override the choices made by `configure' or to help
903it to find libraries and programs with nonstandard names/locations.
904
905_ACEOF
906fi
907
908if 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
915if 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'`
919else
920 ac_dir_suffix= ac_top_builddir=
921fi
922
923case $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 ;;
937esac
938
939# Do not use `cd foo && pwd` to compute absolute paths, because
940# the directories may not exist.
941case `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;;
949esac
950case $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;;
958esac
959case $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;;
967esac
968case $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;;
976esac
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
995fi
996
997test -n "$ac_init_help" && exit 0
998if $ac_init_version; then
999 cat <<\_ACEOF
1000
1001Copyright (C) 2003 Free Software Foundation, Inc.
1002This configure script is free software; the Free Software Foundation
1003gives unlimited permission to copy, distribute and modify it.
1004_ACEOF
1005 exit 0
1006fi
1007exec 5>config.log
1008cat >&5 <<_ACEOF
1009This file contains any messages produced by compilers while
1010running configure, to aid debugging if configure makes a mistake.
1011
1012It was created by $as_me, which was
1013generated by GNU Autoconf 2.59. Invocation command line was
1014
1015 $ $0 $@
1016
1017_ACEOF
1018{
1019cat <<_ASUNAME
1020## --------- ##
1021## Platform. ##
1022## --------- ##
1023
1024hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1025uname -m = `(uname -m) 2>/dev/null || echo unknown`
1026uname -r = `(uname -r) 2>/dev/null || echo unknown`
1027uname -s = `(uname -s) 2>/dev/null || echo unknown`
1028uname -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`
1036hostinfo = `(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
1043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1044for as_dir in $PATH
1045do
1046 IFS=$as_save_IFS
1047 test -z "$as_dir" && as_dir=.
1048 echo "PATH: $as_dir"
1049done
1050
1051} >&5
1052
1053cat >&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.
1068ac_configure_args=
1069ac_configure_args0=
1070ac_configure_args1=
1071ac_sep=
1072ac_must_keep_next=false
1073for ac_pass in 1 2
1074do
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
1110done
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.
1119trap '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
1193for ac_signal in 1 2 13 15; do
1194 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1195done
1196ac_signal=0
1197
1198# confdefs.h avoids OS command line length limits that DEFS can exceed.
1199rm -rf conftest* confdefs.h
1200# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201echo >confdefs.h
1202
1203# Predefined preprocessor variables.
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_NAME "$PACKAGE_NAME"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_VERSION "$PACKAGE_VERSION"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_STRING "$PACKAGE_STRING"
1222_ACEOF
1223
1224
1225cat >>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.
1232if 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
1238fi
1239for 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
1242echo "$as_me: loading site script $ac_site_file" >&6;}
1243 sed 's/^/| /' "$ac_site_file" >&5
1244 . "$ac_site_file"
1245 fi
1246done
1247
1248if 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
1253echo "$as_me: loading cache $cache_file" >&6;}
1254 case $cache_file in
1255 [\\/]* | ?:[\\/]* ) . $cache_file;;
1256 *) . ./$cache_file;;
1257 esac
1258 fi
1259else
1260 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1261echo "$as_me: creating cache $cache_file" >&6;}
1262 >$cache_file
1263fi
1264
1265# Check that the precious variables saved in the cache have kept the same
1266# value.
1267ac_cache_corrupted=false
1268for 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
1277echo "$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
1281echo "$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
1287echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1288 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1289echo "$as_me: former value: $ac_old_val" >&2;}
1290 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1291echo "$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
1307done
1308if $ac_cache_corrupted; then
1309 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1310echo "$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
1312echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1313 { (exit 1); exit 1; }; }
1314fi
1315
1316ac_ext=c
1317ac_cpp='$CPP $CPPFLAGS'
1318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320ac_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
1342echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1343echo $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.
1345if test "${enable_maintainer_mode+set}" = set; then
1346 enableval="$enable_maintainer_mode"
1347 USE_MAINTAINER_MODE=$enableval
1348else
1349 USE_MAINTAINER_MODE=no
1350fi;
1351 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1352echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1353
1354
1355if test $USE_MAINTAINER_MODE = yes; then
1356 MAINTAINER_MODE_TRUE=
1357 MAINTAINER_MODE_FALSE='#'
1358else
1359 MAINTAINER_MODE_TRUE='#'
1360 MAINTAINER_MODE_FALSE=
1361fi
1362 MAINT=$MAINTAINER_MODE_TRUE
1363
1364
1365
1366ac_ext=c
1367ac_cpp='$CPP $CPPFLAGS'
1368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371if 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.
1373set dummy ${ac_tool_prefix}gcc; ac_word=$2
1374echo "$as_me:$LINENO: checking for $ac_word" >&5
1375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376if test "${ac_cv_prog_CC+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378else
1379 if test -n "$CC"; then
1380 ac_cv_prog_CC="$CC" # Let the user override the test.
1381else
1382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
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
1393done
1394done
1395
1396fi
1397fi
1398CC=$ac_cv_prog_CC
1399if test -n "$CC"; then
1400 echo "$as_me:$LINENO: result: $CC" >&5
1401echo "${ECHO_T}$CC" >&6
1402else
1403 echo "$as_me:$LINENO: result: no" >&5
1404echo "${ECHO_T}no" >&6
1405fi
1406
1407fi
1408if 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.
1411set dummy gcc; ac_word=$2
1412echo "$as_me:$LINENO: checking for $ac_word" >&5
1413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416else
1417 if test -n "$ac_ct_CC"; then
1418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1419else
1420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421for as_dir in $PATH
1422do
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
1431done
1432done
1433
1434fi
1435fi
1436ac_ct_CC=$ac_cv_prog_ac_ct_CC
1437if test -n "$ac_ct_CC"; then
1438 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1439echo "${ECHO_T}$ac_ct_CC" >&6
1440else
1441 echo "$as_me:$LINENO: result: no" >&5
1442echo "${ECHO_T}no" >&6
1443fi
1444
1445 CC=$ac_ct_CC
1446else
1447 CC="$ac_cv_prog_CC"
1448fi
1449
1450if 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.
1453set dummy ${ac_tool_prefix}cc; ac_word=$2
1454echo "$as_me:$LINENO: checking for $ac_word" >&5
1455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456if test "${ac_cv_prog_CC+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458else
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test.
1461else
1462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463for as_dir in $PATH
1464do
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
1473done
1474done
1475
1476fi
1477fi
1478CC=$ac_cv_prog_CC
1479if test -n "$CC"; then
1480 echo "$as_me:$LINENO: result: $CC" >&5
1481echo "${ECHO_T}$CC" >&6
1482else
1483 echo "$as_me:$LINENO: result: no" >&5
1484echo "${ECHO_T}no" >&6
1485fi
1486
1487fi
1488if 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.
1491set dummy cc; ac_word=$2
1492echo "$as_me:$LINENO: checking for $ac_word" >&5
1493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1496else
1497 if test -n "$ac_ct_CC"; then
1498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1499else
1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501for as_dir in $PATH
1502do
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
1511done
1512done
1513
1514fi
1515fi
1516ac_ct_CC=$ac_cv_prog_ac_ct_CC
1517if test -n "$ac_ct_CC"; then
1518 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1519echo "${ECHO_T}$ac_ct_CC" >&6
1520else
1521 echo "$as_me:$LINENO: result: no" >&5
1522echo "${ECHO_T}no" >&6
1523fi
1524
1525 CC=$ac_ct_CC
1526else
1527 CC="$ac_cv_prog_CC"
1528fi
1529
1530fi
1531if test -z "$CC"; then
1532 # Extract the first word of "cc", so it can be a program name with args.
1533set dummy cc; ac_word=$2
1534echo "$as_me:$LINENO: checking for $ac_word" >&5
1535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536if test "${ac_cv_prog_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1541else
1542 ac_prog_rejected=no
1543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544for as_dir in $PATH
1545do
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
1558done
1559done
1560
1561if 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
1572fi
1573fi
1574fi
1575CC=$ac_cv_prog_CC
1576if test -n "$CC"; then
1577 echo "$as_me:$LINENO: result: $CC" >&5
1578echo "${ECHO_T}$CC" >&6
1579else
1580 echo "$as_me:$LINENO: result: no" >&5
1581echo "${ECHO_T}no" >&6
1582fi
1583
1584fi
1585if 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.
1590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1591echo "$as_me:$LINENO: checking for $ac_word" >&5
1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598else
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
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
1610done
1611done
1612
1613fi
1614fi
1615CC=$ac_cv_prog_CC
1616if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618echo "${ECHO_T}$CC" >&6
1619else
1620 echo "$as_me:$LINENO: result: no" >&5
1621echo "${ECHO_T}no" >&6
1622fi
1623
1624 test -n "$CC" && break
1625 done
1626fi
1627if test -z "$CC"; then
1628 ac_ct_CC=$CC
1629 for ac_prog in cl
1630do
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632set dummy $ac_prog; ac_word=$2
1633echo "$as_me:$LINENO: checking for $ac_word" >&5
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640else
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
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
1652done
1653done
1654
1655fi
1656fi
1657ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658if test -n "$ac_ct_CC"; then
1659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660echo "${ECHO_T}$ac_ct_CC" >&6
1661else
1662 echo "$as_me:$LINENO: result: no" >&5
1663echo "${ECHO_T}no" >&6
1664fi
1665
1666 test -n "$ac_ct_CC" && break
1667done
1668
1669 CC=$ac_ct_CC
1670fi
1671
1672fi
1673
1674
1675test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1676See \`config.log' for more details." >&5
1677echo "$as_me: error: no acceptable C compiler found in \$PATH
1678See \`config.log' for more details." >&2;}
1679 { (exit 1); exit 1; }; }
1680
1681# Provide some information about the compiler.
1682echo "$as_me:$LINENO:" \
1683 "checking for C compiler version" >&5
1684ac_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
1701cat >conftest.$ac_ext <<_ACEOF
1702/* confdefs.h. */
1703_ACEOF
1704cat confdefs.h >>conftest.$ac_ext
1705cat >>conftest.$ac_ext <<_ACEOF
1706/* end confdefs.h. */
1707
1708int
1709main ()
1710{
1711
1712 ;
1713 return 0;
1714}
1715_ACEOF
1716ac_clean_files_save=$ac_clean_files
1717ac_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.
1721echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1722echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1723ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1724if { (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.
1735ac_cv_exeext=
1736# b.out is created by i960 compilers.
1737for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1738do
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
1760done
1761else
1762 echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1766See \`config.log' for more details." >&5
1767echo "$as_me: error: C compiler cannot create executables
1768See \`config.log' for more details." >&2;}
1769 { (exit 77); exit 77; }; }
1770fi
1771
1772ac_exeext=$ac_cv_exeext
1773echo "$as_me:$LINENO: result: $ac_file" >&5
1774echo "${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.
1778echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779echo $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.
1782if 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.
1795If you meant to cross compile, use \`--host'.
1796See \`config.log' for more details." >&5
1797echo "$as_me: error: cannot run C compiled programs.
1798If you meant to cross compile, use \`--host'.
1799See \`config.log' for more details." >&2;}
1800 { (exit 1); exit 1; }; }
1801 fi
1802 fi
1803fi
1804echo "$as_me:$LINENO: result: yes" >&5
1805echo "${ECHO_T}yes" >&6
1806
1807rm -f a.out a.exe conftest$ac_cv_exeext b.out
1808ac_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.
1811echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1812echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1813echo "$as_me:$LINENO: result: $cross_compiling" >&5
1814echo "${ECHO_T}$cross_compiling" >&6
1815
1816echo "$as_me:$LINENO: checking for suffix of executables" >&5
1817echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1818if { (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'.
1827for 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
1836done
1837else
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1839See \`config.log' for more details." >&5
1840echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1841See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
1843fi
1844
1845rm -f conftest$ac_cv_exeext
1846echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1847echo "${ECHO_T}$ac_cv_exeext" >&6
1848
1849rm -f conftest.$ac_ext
1850EXEEXT=$ac_cv_exeext
1851ac_exeext=$EXEEXT
1852echo "$as_me:$LINENO: checking for suffix of object files" >&5
1853echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1854if test "${ac_cv_objext+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857 cat >conftest.$ac_ext <<_ACEOF
1858/* confdefs.h. */
1859_ACEOF
1860cat confdefs.h >>conftest.$ac_ext
1861cat >>conftest.$ac_ext <<_ACEOF
1862/* end confdefs.h. */
1863
1864int
1865main ()
1866{
1867
1868 ;
1869 return 0;
1870}
1871_ACEOF
1872rm -f conftest.o conftest.obj
1873if { (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
1884done
1885else
1886 echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1890See \`config.log' for more details." >&5
1891echo "$as_me: error: cannot compute suffix of object files: cannot compile
1892See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
1894fi
1895
1896rm -f conftest.$ac_cv_objext conftest.$ac_ext
1897fi
1898echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1899echo "${ECHO_T}$ac_cv_objext" >&6
1900OBJEXT=$ac_cv_objext
1901ac_objext=$OBJEXT
1902echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1903echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1904if test "${ac_cv_c_compiler_gnu+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907 cat >conftest.$ac_ext <<_ACEOF
1908/* confdefs.h. */
1909_ACEOF
1910cat confdefs.h >>conftest.$ac_ext
1911cat >>conftest.$ac_ext <<_ACEOF
1912/* end confdefs.h. */
1913
1914int
1915main ()
1916{
1917#ifndef __GNUC__
1918 choke me
1919#endif
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925rm -f conftest.$ac_objext
1926if { (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
1948else
1949 echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952ac_compiler_gnu=no
1953fi
1954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1955ac_cv_c_compiler_gnu=$ac_compiler_gnu
1956
1957fi
1958echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1959echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1960GCC=`test $ac_compiler_gnu = yes && echo yes`
1961ac_test_CFLAGS=${CFLAGS+set}
1962ac_save_CFLAGS=$CFLAGS
1963CFLAGS="-g"
1964echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1965echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1966if test "${ac_cv_prog_cc_g+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969 cat >conftest.$ac_ext <<_ACEOF
1970/* confdefs.h. */
1971_ACEOF
1972cat confdefs.h >>conftest.$ac_ext
1973cat >>conftest.$ac_ext <<_ACEOF
1974/* end confdefs.h. */
1975
1976int
1977main ()
1978{
1979
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984rm -f conftest.$ac_objext
1985if { (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
2007else
2008 echo "$as_me: failed program was:" >&5
2009sed 's/^/| /' conftest.$ac_ext >&5
2010
2011ac_cv_prog_cc_g=no
2012fi
2013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2014fi
2015echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2016echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2017if test "$ac_test_CFLAGS" = set; then
2018 CFLAGS=$ac_save_CFLAGS
2019elif 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
2025else
2026 if test "$GCC" = yes; then
2027 CFLAGS="-O2"
2028 else
2029 CFLAGS=
2030 fi
2031fi
2032echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2033echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2034if test "${ac_cv_prog_cc_stdc+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 ac_cv_prog_cc_stdc=no
2038ac_save_CC=$CC
2039cat >conftest.$ac_ext <<_ACEOF
2040/* confdefs.h. */
2041_ACEOF
2042cat confdefs.h >>conftest.$ac_ext
2043cat >>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. */
2050struct buf { int x; };
2051FILE * (*rcsopen) (struct buf *, struct stat *, int);
2052static char *e (p, i)
2053 char **p;
2054 int i;
2055{
2056 return p[i];
2057}
2058static 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. */
2075int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2076
2077int test (int i, double x);
2078struct s1 {int (*f) (int a);};
2079struct s2 {int (*f) (double a);};
2080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081int argc;
2082char **argv;
2083int
2084main ()
2085{
2086return 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__
2098for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099do
2100 CC="$ac_save_CC $ac_arg"
2101 rm -f conftest.$ac_objext
2102if { (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
2124break
2125else
2126 echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
2129fi
2130rm -f conftest.err conftest.$ac_objext
2131done
2132rm -f conftest.$ac_ext conftest.$ac_objext
2133CC=$ac_save_CC
2134
2135fi
2136
2137case "x$ac_cv_prog_cc_stdc" in
2138 x|xno)
2139 echo "$as_me:$LINENO: result: none needed" >&5
2140echo "${ECHO_T}none needed" >&6 ;;
2141 *)
2142 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2143echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2144 CC="$CC $ac_cv_prog_cc_stdc" ;;
2145esac
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.
2151cat >conftest.$ac_ext <<_ACEOF
2152#ifndef __cplusplus
2153 choke me
2154#endif
2155_ACEOF
2156rm -f conftest.$ac_objext
2157if { (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);'
2185do
2186 cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h. */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h. */
2192$ac_declaration
2193#include <stdlib.h>
2194int
2195main ()
2196{
2197exit (42);
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (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 :
2225else
2226 echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229continue
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232 cat >conftest.$ac_ext <<_ACEOF
2233/* confdefs.h. */
2234_ACEOF
2235cat confdefs.h >>conftest.$ac_ext
2236cat >>conftest.$ac_ext <<_ACEOF
2237/* end confdefs.h. */
2238$ac_declaration
2239int
2240main ()
2241{
2242exit (42);
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247rm -f conftest.$ac_objext
2248if { (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
2270else
2271 echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274fi
2275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276done
2277rm -f conftest*
2278if test -n "$ac_declaration"; then
2279 echo '#ifdef __cplusplus' >>confdefs.h
2280 echo $ac_declaration >>confdefs.h
2281 echo '#endif' >>confdefs.h
2282fi
2283
2284else
2285 echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288fi
2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290ac_ext=c
2291ac_cpp='$CPP $CPPFLAGS'
2292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295
2296cat >>confdefs.h <<\_ACEOF
2297#define _GNU_SOURCE 1
2298_ACEOF
2299
2300
2301
2302ac_ext=c
2303ac_cpp='$CPP $CPPFLAGS'
2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2308echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2309# On Suns, sometimes $CPP names a directory.
2310if test -n "$CPP" && test -d "$CPP"; then
2311 CPP=
2312fi
2313if test -z "$CPP"; then
2314 if test "${ac_cv_prog_CPP+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316else
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
2321for ac_c_preproc_warn_flag in '' yes
2322do
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
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>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
2342if { (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
2356else
2357 ac_cpp_err=yes
2358fi
2359if test -z "$ac_cpp_err"; then
2360 :
2361else
2362 echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 # Broken: fails on valid input.
2366continue
2367fi
2368rm -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
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h. */
2378#include <ac_nonexistent.h>
2379_ACEOF
2380if { (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
2394else
2395 ac_cpp_err=yes
2396fi
2397if test -z "$ac_cpp_err"; then
2398 # Broken: success on invalid input.
2399continue
2400else
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 # Passes both tests.
2405ac_preproc_ok=:
2406break
2407fi
2408rm -f conftest.err conftest.$ac_ext
2409
2410done
2411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2412rm -f conftest.err conftest.$ac_ext
2413if $ac_preproc_ok; then
2414 break
2415fi
2416
2417 done
2418 ac_cv_prog_CPP=$CPP
2419
2420fi
2421 CPP=$ac_cv_prog_CPP
2422else
2423 ac_cv_prog_CPP=$CPP
2424fi
2425echo "$as_me:$LINENO: result: $CPP" >&5
2426echo "${ECHO_T}$CPP" >&6
2427ac_preproc_ok=false
2428for ac_c_preproc_warn_flag in '' yes
2429do
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
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>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
2449if { (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
2463else
2464 ac_cpp_err=yes
2465fi
2466if test -z "$ac_cpp_err"; then
2467 :
2468else
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 # Broken: fails on valid input.
2473continue
2474fi
2475rm -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
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h. */
2485#include <ac_nonexistent.h>
2486_ACEOF
2487if { (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
2501else
2502 ac_cpp_err=yes
2503fi
2504if test -z "$ac_cpp_err"; then
2505 # Broken: success on invalid input.
2506continue
2507else
2508 echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 # Passes both tests.
2512ac_preproc_ok=:
2513break
2514fi
2515rm -f conftest.err conftest.$ac_ext
2516
2517done
2518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2519rm -f conftest.err conftest.$ac_ext
2520if $ac_preproc_ok; then
2521 :
2522else
2523 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2524See \`config.log' for more details." >&5
2525echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2526See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
2528fi
2529
2530ac_ext=c
2531ac_cpp='$CPP $CPPFLAGS'
2532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535
2536
2537echo "$as_me:$LINENO: checking for egrep" >&5
2538echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2539if test "${ac_cv_prog_egrep+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
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
2546fi
2547echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2548echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2549 EGREP=$ac_cv_prog_egrep
2550
2551
2552
2553echo "$as_me:$LINENO: checking for AIX" >&5
2554echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2555cat >conftest.$ac_ext <<_ACEOF
2556/* confdefs.h. */
2557_ACEOF
2558cat confdefs.h >>conftest.$ac_ext
2559cat >>conftest.$ac_ext <<_ACEOF
2560/* end confdefs.h. */
2561#ifdef _AIX
2562 yes
2563#endif
2564
2565_ACEOF
2566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2567 $EGREP "yes" >/dev/null 2>&1; then
2568 echo "$as_me:$LINENO: result: yes" >&5
2569echo "${ECHO_T}yes" >&6
2570cat >>confdefs.h <<\_ACEOF
2571#define _ALL_SOURCE 1
2572_ACEOF
2573
2574else
2575 echo "$as_me:$LINENO: result: no" >&5
2576echo "${ECHO_T}no" >&6
2577fi
2578rm -f conftest*
2579
2580
2581echo "$as_me:$LINENO: checking for library containing strerror" >&5
2582echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2583if test "${ac_cv_search_strerror+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
2586 ac_func_search_save_LIBS=$LIBS
2587ac_cv_search_strerror=no
2588cat >conftest.$ac_ext <<_ACEOF
2589/* confdefs.h. */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
2593/* end confdefs.h. */
2594
2595/* Override any gcc2 internal prototype to avoid an error. */
2596#ifdef __cplusplus
2597extern "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. */
2601char strerror ();
2602int
2603main ()
2604{
2605strerror ();
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext conftest$ac_exeext
2611if { (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"
2633else
2634 echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637fi
2638rm -f conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2640if 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
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h. */
2649
2650/* Override any gcc2 internal prototype to avoid an error. */
2651#ifdef __cplusplus
2652extern "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. */
2656char strerror ();
2657int
2658main ()
2659{
2660strerror ();
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665rm -f conftest.$ac_objext conftest$ac_exeext
2666if { (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"
2688break
2689else
2690 echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693fi
2694rm -f conftest.err conftest.$ac_objext \
2695 conftest$ac_exeext conftest.$ac_ext
2696 done
2697fi
2698LIBS=$ac_func_search_save_LIBS
2699fi
2700echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2701echo "${ECHO_T}$ac_cv_search_strerror" >&6
2702if test "$ac_cv_search_strerror" != no; then
2703 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2704
2705fi
2706
2707
2708
2709
2710echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2711echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2712if test "${am_cv_prog_cc_stdc+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715 am_cv_prog_cc_stdc=no
2716ac_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__
2724for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725do
2726 CC="$ac_save_CC $ac_arg"
2727 cat >conftest.$ac_ext <<_ACEOF
2728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>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. */
2738struct buf { int x; };
2739FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740static char *e (p, i)
2741 char **p;
2742 int i;
2743{
2744 return p[i];
2745}
2746static 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}
2755int test (int i, double x);
2756struct s1 {int (*f) (int a);};
2757struct s2 {int (*f) (double a);};
2758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759int argc;
2760char **argv;
2761
2762int
2763main ()
2764{
2765
2766return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2767
2768 ;
2769 return 0;
2770}
2771_ACEOF
2772rm -f conftest.$ac_objext
2773if { (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
2795else
2796 echo "$as_me: failed program was:" >&5
2797sed 's/^/| /' conftest.$ac_ext >&5
2798
2799fi
2800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801done
2802CC="$ac_save_CC"
2803
2804fi
2805
2806if test -z "$am_cv_prog_cc_stdc"; then
2807 echo "$as_me:$LINENO: result: none needed" >&5
2808echo "${ECHO_T}none needed" >&6
2809else
2810 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2811echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2812fi
2813case "x$am_cv_prog_cc_stdc" in
2814 x|xno) ;;
2815 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2816esac
2817
2818
2819ac_aux_dir=
2820for 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
2834done
2835if 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
2837echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2838 { (exit 1); exit 1; }; }
2839fi
2840ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2841ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2842ac_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
2847echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2848 { (exit 1); exit 1; }; }
2849
2850echo "$as_me:$LINENO: checking build system type" >&5
2851echo $ECHO_N "checking build system type... $ECHO_C" >&6
2852if test "${ac_cv_build+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855 ac_cv_build_alias=$build_alias
2856test -z "$ac_cv_build_alias" &&
2857 ac_cv_build_alias=`$ac_config_guess`
2858test -z "$ac_cv_build_alias" &&
2859 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2860echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2861 { (exit 1); exit 1; }; }
2862ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2863 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2864echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2865 { (exit 1); exit 1; }; }
2866
2867fi
2868echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2869echo "${ECHO_T}$ac_cv_build" >&6
2870build=$ac_cv_build
2871build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2872build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2873build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2874
2875
2876echo "$as_me:$LINENO: checking host system type" >&5
2877echo $ECHO_N "checking host system type... $ECHO_C" >&6
2878if test "${ac_cv_host+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 ac_cv_host_alias=$host_alias
2882test -z "$ac_cv_host_alias" &&
2883 ac_cv_host_alias=$ac_cv_build_alias
2884ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2885 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2886echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2887 { (exit 1); exit 1; }; }
2888
2889fi
2890echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2891echo "${ECHO_T}$ac_cv_host" >&6
2892host=$ac_cv_host
2893host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2894host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2895host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2896
2897
2898echo "$as_me:$LINENO: checking target system type" >&5
2899echo $ECHO_N "checking target system type... $ECHO_C" >&6
2900if test "${ac_cv_target+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903 ac_cv_target_alias=$target_alias
2904test "x$ac_cv_target_alias" = "x" &&
2905 ac_cv_target_alias=$ac_cv_host_alias
2906ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2907 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2908echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2909 { (exit 1); exit 1; }; }
2910
2911fi
2912echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2913echo "${ECHO_T}$ac_cv_target" >&6
2914target=$ac_cv_target
2915target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2916target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2917target_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.
2922test -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.
2933if 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.
2935set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2936echo "$as_me:$LINENO: checking for $ac_word" >&5
2937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938if test "${ac_cv_prog_RANLIB+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940else
2941 if test -n "$RANLIB"; then
2942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
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
2955done
2956done
2957
2958fi
2959fi
2960RANLIB=$ac_cv_prog_RANLIB
2961if test -n "$RANLIB"; then
2962 echo "$as_me:$LINENO: result: $RANLIB" >&5
2963echo "${ECHO_T}$RANLIB" >&6
2964else
2965 echo "$as_me:$LINENO: result: no" >&5
2966echo "${ECHO_T}no" >&6
2967fi
2968
2969fi
2970if 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.
2973set dummy ranlib; ac_word=$2
2974echo "$as_me:$LINENO: checking for $ac_word" >&5
2975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 if test -n "$ac_ct_RANLIB"; then
2980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
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
2993done
2994done
2995
2996 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2997fi
2998fi
2999ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3000if test -n "$ac_ct_RANLIB"; then
3001 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3002echo "${ECHO_T}$ac_ct_RANLIB" >&6
3003else
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
3006fi
3007
3008 RANLIB=$ac_ct_RANLIB
3009else
3010 RANLIB="$ac_cv_prog_RANLIB"
3011fi
3012
3013
3014
3015CONFIG_OBS=
3016CONFIG_DEPS=
3017CONFIG_SRCS=
3018ENABLE_CFLAGS=
3019
3020CONFIG_ALL=
3021CONFIG_CLEAN=
3022CONFIG_INSTALL=
3023CONFIG_UNINSTALL=
3024
3025
3026echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3027echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3028set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3029if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032 cat >conftest.make <<\_ACEOF
3033all:
3034 @echo 'ac_maketemp="$(MAKE)"'
3035_ACEOF
3036# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3037eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3038if test -n "$ac_maketemp"; then
3039 eval ac_cv_prog_make_${ac_make}_set=yes
3040else
3041 eval ac_cv_prog_make_${ac_make}_set=no
3042fi
3043rm -f conftest.make
3044fi
3045if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3046 echo "$as_me:$LINENO: result: yes" >&5
3047echo "${ECHO_T}yes" >&6
3048 SET_MAKE=
3049else
3050 echo "$as_me:$LINENO: result: no" >&5
3051echo "${ECHO_T}no" >&6
3052 SET_MAKE="MAKE=${MAKE-make}"
3053fi
3054
3055if 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.
3057set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3058echo "$as_me:$LINENO: checking for $ac_word" >&5
3059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060if test "${ac_cv_prog_RANLIB+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 if test -n "$RANLIB"; then
3064 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
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
3077done
3078done
3079
3080fi
3081fi
3082RANLIB=$ac_cv_prog_RANLIB
3083if test -n "$RANLIB"; then
3084 echo "$as_me:$LINENO: result: $RANLIB" >&5
3085echo "${ECHO_T}$RANLIB" >&6
3086else
3087 echo "$as_me:$LINENO: result: no" >&5
3088echo "${ECHO_T}no" >&6
3089fi
3090
3091fi
3092if 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.
3095set dummy ranlib; ac_word=$2
3096echo "$as_me:$LINENO: checking for $ac_word" >&5
3097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100else
3101 if test -n "$ac_ct_RANLIB"; then
3102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
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
3115done
3116done
3117
3118 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3119fi
3120fi
3121ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3122if test -n "$ac_ct_RANLIB"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3124echo "${ECHO_T}$ac_ct_RANLIB" >&6
3125else
3126 echo "$as_me:$LINENO: result: no" >&5
3127echo "${ECHO_T}no" >&6
3128fi
3129
3130 RANLIB=$ac_ct_RANLIB
3131else
3132 RANLIB="$ac_cv_prog_RANLIB"
3133fi
3134
3135echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3136echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3137if test "${ac_cv_header_stdc+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>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
3151int
3152main ()
3153{
3154
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (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
3182else
3183 echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186ac_cv_header_stdc=no
3187fi
3188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3189
3190if 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
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h. */
3198#include <string.h>
3199
3200_ACEOF
3201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202 $EGREP "memchr" >/dev/null 2>&1; then
3203 :
3204else
3205 ac_cv_header_stdc=no
3206fi
3207rm -f conftest*
3208
3209fi
3210
3211if 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
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
3219#include <stdlib.h>
3220
3221_ACEOF
3222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223 $EGREP "free" >/dev/null 2>&1; then
3224 :
3225else
3226 ac_cv_header_stdc=no
3227fi
3228rm -f conftest*
3229
3230fi
3231
3232if 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 :
3236else
3237 cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>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)))
3256int
3257main ()
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
3267rm -f conftest$ac_exeext
3268if { (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 :
3279else
3280 echo "$as_me: program exited with status $ac_status" >&5
3281echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284( exit $ac_status )
3285ac_cv_header_stdc=no
3286fi
3287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3288fi
3289fi
3290fi
3291echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3292echo "${ECHO_T}$ac_cv_header_stdc" >&6
3293if test $ac_cv_header_stdc = yes; then
3294
3295cat >>confdefs.h <<\_ACEOF
3296#define STDC_HEADERS 1
3297_ACEOF
3298
3299fi
3300
3301echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3302echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3303if test "${ac_cv_c_const+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305else
3306 cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
3312
3313int
3314main ()
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
3367rm -f conftest.$ac_objext
3368if { (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
3390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394ac_cv_c_const=no
3395fi
3396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397fi
3398echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3399echo "${ECHO_T}$ac_cv_c_const" >&6
3400if test $ac_cv_c_const = no; then
3401
3402cat >>confdefs.h <<\_ACEOF
3403#define const
3404_ACEOF
3405
3406fi
3407
3408echo "$as_me:$LINENO: checking for inline" >&5
3409echo $ECHO_N "checking for inline... $ECHO_C" >&6
3410if test "${ac_cv_c_inline+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412else
3413 ac_cv_c_inline=no
3414for ac_kw in inline __inline__ __inline; do
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421#ifndef __cplusplus
3422typedef int foo_t;
3423static $ac_kw foo_t static_foo () {return 0; }
3424$ac_kw foo_t foo () {return 0; }
3425#endif
3426
3427_ACEOF
3428rm -f conftest.$ac_objext
3429if { (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
3451else
3452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455fi
3456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3457done
3458
3459fi
3460echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3461echo "${ECHO_T}$ac_cv_c_inline" >&6
3462
3463
3464case $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 ;;
3477esac
3478
3479# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3490 inttypes.h stdint.h unistd.h
3491do
3492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3493echo "$as_me:$LINENO: checking for $ac_header" >&5
3494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3495if eval "test \"\${$as_ac_Header+set}\" = set"; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498 cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504$ac_includes_default
3505
3506#include <$ac_header>
3507_ACEOF
3508rm -f conftest.$ac_objext
3509if { (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"
3531else
3532 echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535eval "$as_ac_Header=no"
3536fi
3537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538fi
3539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3541if 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
3546fi
3547
3548done
3549
3550
3551echo "$as_me:$LINENO: checking for off_t" >&5
3552echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3553if test "${ac_cv_type_off_t+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
3562$ac_includes_default
3563int
3564main ()
3565{
3566if ((off_t *) 0)
3567 return 0;
3568if (sizeof (off_t))
3569 return 0;
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574rm -f conftest.$ac_objext
3575if { (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
3597else
3598 echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601ac_cv_type_off_t=no
3602fi
3603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604fi
3605echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3606echo "${ECHO_T}$ac_cv_type_off_t" >&6
3607if test $ac_cv_type_off_t = yes; then
3608 :
3609else
3610
3611cat >>confdefs.h <<_ACEOF
3612#define off_t long
3613_ACEOF
3614
3615fi
3616
3617echo "$as_me:$LINENO: checking for size_t" >&5
3618echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3619if test "${ac_cv_type_size_t+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */
3628$ac_includes_default
3629int
3630main ()
3631{
3632if ((size_t *) 0)
3633 return 0;
3634if (sizeof (size_t))
3635 return 0;
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640rm -f conftest.$ac_objext
3641if { (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
3663else
3664 echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667ac_cv_type_size_t=no
3668fi
3669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3670fi
3671echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3672echo "${ECHO_T}$ac_cv_type_size_t" >&6
3673if test $ac_cv_type_size_t = yes; then
3674 :
3675else
3676
3677cat >>confdefs.h <<_ACEOF
3678#define size_t unsigned
3679_ACEOF
3680
3681fi
3682
3683# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3684# for constant arguments. Useless!
3685echo "$as_me:$LINENO: checking for working alloca.h" >&5
3686echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3687if test "${ac_cv_working_alloca_h+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690 cat >conftest.$ac_ext <<_ACEOF
3691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
3696#include <alloca.h>
3697int
3698main ()
3699{
3700char *p = (char *) alloca (2 * sizeof (int));
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705rm -f conftest.$ac_objext conftest$ac_exeext
3706if { (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
3728else
3729 echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
3732ac_cv_working_alloca_h=no
3733fi
3734rm -f conftest.err conftest.$ac_objext \
3735 conftest$ac_exeext conftest.$ac_ext
3736fi
3737echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3738echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3739if test $ac_cv_working_alloca_h = yes; then
3740
3741cat >>confdefs.h <<\_ACEOF
3742#define HAVE_ALLOCA_H 1
3743_ACEOF
3744
3745fi
3746
3747echo "$as_me:$LINENO: checking for alloca" >&5
3748echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3749if test "${ac_cv_func_alloca_works+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752 cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h. */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>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 */
3772char *alloca ();
3773# endif
3774# endif
3775# endif
3776# endif
3777#endif
3778
3779int
3780main ()
3781{
3782char *p = (char *) alloca (1);
3783 ;
3784 return 0;
3785}
3786_ACEOF
3787rm -f conftest.$ac_objext conftest$ac_exeext
3788if { (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
3810else
3811 echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814ac_cv_func_alloca_works=no
3815fi
3816rm -f conftest.err conftest.$ac_objext \
3817 conftest$ac_exeext conftest.$ac_ext
3818fi
3819echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3820echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3821
3822if test $ac_cv_func_alloca_works = yes; then
3823
3824cat >>confdefs.h <<\_ACEOF
3825#define HAVE_ALLOCA 1
3826_ACEOF
3827
3828else
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
3834ALLOCA=alloca.$ac_objext
3835
3836cat >>confdefs.h <<\_ACEOF
3837#define C_ALLOCA 1
3838_ACEOF
3839
3840
3841echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3842echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3843if test "${ac_cv_os_cray+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
3846 cat >conftest.$ac_ext <<_ACEOF
3847/* confdefs.h. */
3848_ACEOF
3849cat confdefs.h >>conftest.$ac_ext
3850cat >>conftest.$ac_ext <<_ACEOF
3851/* end confdefs.h. */
3852#if defined(CRAY) && ! defined(CRAY2)
3853webecray
3854#else
3855wenotbecray
3856#endif
3857
3858_ACEOF
3859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3860 $EGREP "webecray" >/dev/null 2>&1; then
3861 ac_cv_os_cray=yes
3862else
3863 ac_cv_os_cray=no
3864fi
3865rm -f conftest*
3866
3867fi
3868echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3869echo "${ECHO_T}$ac_cv_os_cray" >&6
3870if 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`
3873echo "$as_me:$LINENO: checking for $ac_func" >&5
3874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3875if eval "test \"\${$as_ac_var+set}\" = set"; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>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
3903extern "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. */
3908char $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)
3913choke me
3914#else
3915char (*f) () = $ac_func;
3916#endif
3917#ifdef __cplusplus
3918}
3919#endif
3920
3921int
3922main ()
3923{
3924return f != $ac_func;
3925 ;
3926 return 0;
3927}
3928_ACEOF
3929rm -f conftest.$ac_objext conftest$ac_exeext
3930if { (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"
3952else
3953 echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956eval "$as_ac_var=no"
3957fi
3958rm -f conftest.err conftest.$ac_objext \
3959 conftest$ac_exeext conftest.$ac_ext
3960fi
3961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3963if test `eval echo '${'$as_ac_var'}'` = yes; then
3964
3965cat >>confdefs.h <<_ACEOF
3966#define CRAY_STACKSEG_END $ac_func
3967_ACEOF
3968
3969 break
3970fi
3971
3972 done
3973fi
3974
3975echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3976echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3977if test "${ac_cv_c_stack_direction+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980 if test "$cross_compiling" = yes; then
3981 ac_cv_c_stack_direction=0
3982else
3983 cat >conftest.$ac_ext <<_ACEOF
3984/* confdefs.h. */
3985_ACEOF
3986cat confdefs.h >>conftest.$ac_ext
3987cat >>conftest.$ac_ext <<_ACEOF
3988/* end confdefs.h. */
3989int
3990find_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
4003int
4004main ()
4005{
4006 exit (find_stack_direction () < 0);
4007}
4008_ACEOF
4009rm -f conftest$ac_exeext
4010if { (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
4021else
4022 echo "$as_me: program exited with status $ac_status" >&5
4023echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026( exit $ac_status )
4027ac_cv_c_stack_direction=-1
4028fi
4029rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4030fi
4031fi
4032echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4033echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4034
4035cat >>confdefs.h <<_ACEOF
4036#define STACK_DIRECTION $ac_cv_c_stack_direction
4037_ACEOF
4038
4039
4040fi
4041
4042
4043
4044for ac_header in stdlib.h unistd.h
4045do
4046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047if eval "test \"\${$as_ac_Header+set}\" = set"; then
4048 echo "$as_me:$LINENO: checking for $ac_header" >&5
4049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4050if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052fi
4053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4055else
4056 # Is the header compilable?
4057echo "$as_me:$LINENO: checking $ac_header usability" >&5
4058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4059cat >conftest.$ac_ext <<_ACEOF
4060/* confdefs.h. */
4061_ACEOF
4062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
4064/* end confdefs.h. */
4065$ac_includes_default
4066#include <$ac_header>
4067_ACEOF
4068rm -f conftest.$ac_objext
4069if { (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
4091else
4092 echo "$as_me: failed program was:" >&5
4093sed 's/^/| /' conftest.$ac_ext >&5
4094
4095ac_header_compiler=no
4096fi
4097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4099echo "${ECHO_T}$ac_header_compiler" >&6
4100
4101# Is the header present?
4102echo "$as_me:$LINENO: checking $ac_header presence" >&5
4103echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4104cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110#include <$ac_header>
4111_ACEOF
4112if { (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
4126else
4127 ac_cpp_err=yes
4128fi
4129if test -z "$ac_cpp_err"; then
4130 ac_header_preproc=yes
4131else
4132 echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 ac_header_preproc=no
4136fi
4137rm -f conftest.err conftest.$ac_ext
4138echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4139echo "${ECHO_T}$ac_header_preproc" >&6
4140
4141# So? What about this header?
4142case $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
4145echo "$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
4147echo "$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
4152echo "$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
4154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4156echo "$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
4158echo "$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
4160echo "$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
4162echo "$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 ;;
4172esac
4173echo "$as_me:$LINENO: checking for $ac_header" >&5
4174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4175if eval "test \"\${$as_ac_Header+set}\" = set"; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177else
4178 eval "$as_ac_Header=\$ac_header_preproc"
4179fi
4180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4182
4183fi
4184if 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
4189fi
4190
4191done
4192
4193
4194for ac_func in getpagesize
4195do
4196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4197echo "$as_me:$LINENO: checking for $ac_func" >&5
4198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4199if eval "test \"\${$as_ac_var+set}\" = set"; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>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
4227extern "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. */
4232char $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)
4237choke me
4238#else
4239char (*f) () = $ac_func;
4240#endif
4241#ifdef __cplusplus
4242}
4243#endif
4244
4245int
4246main ()
4247{
4248return f != $ac_func;
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253rm -f conftest.$ac_objext conftest$ac_exeext
4254if { (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"
4276else
4277 echo "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280eval "$as_ac_var=no"
4281fi
4282rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4284fi
4285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4287if 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
4292fi
4293done
4294
4295echo "$as_me:$LINENO: checking for working mmap" >&5
4296echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4297if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300 if test "$cross_compiling" = yes; then
4301 ac_cv_func_mmap_fixed_mapped=no
4302else
4303 cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>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
4339char *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
4379int
4380main ()
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
4436rm -f conftest$ac_exeext
4437if { (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
4448else
4449 echo "$as_me: program exited with status $ac_status" >&5
4450echo "$as_me: failed program was:" >&5
4451sed 's/^/| /' conftest.$ac_ext >&5
4452
4453( exit $ac_status )
4454ac_cv_func_mmap_fixed_mapped=no
4455fi
4456rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4457fi
4458fi
4459echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4460echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4461if test $ac_cv_func_mmap_fixed_mapped = yes; then
4462
4463cat >>confdefs.h <<\_ACEOF
4464#define HAVE_MMAP 1
4465_ACEOF
4466
4467fi
4468rm -f conftest.mmap
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4481unistd.h values.h sys/param.h
4482do
4483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4484if eval "test \"\${$as_ac_Header+set}\" = set"; then
4485 echo "$as_me:$LINENO: checking for $ac_header" >&5
4486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4487if eval "test \"\${$as_ac_Header+set}\" = set"; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489fi
4490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4492else
4493 # Is the header compilable?
4494echo "$as_me:$LINENO: checking $ac_header usability" >&5
4495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4496cat >conftest.$ac_ext <<_ACEOF
4497/* confdefs.h. */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4501/* end confdefs.h. */
4502$ac_includes_default
4503#include <$ac_header>
4504_ACEOF
4505rm -f conftest.$ac_objext
4506if { (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
4528else
4529 echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532ac_header_compiler=no
4533fi
4534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4536echo "${ECHO_T}$ac_header_compiler" >&6
4537
4538# Is the header present?
4539echo "$as_me:$LINENO: checking $ac_header presence" >&5
4540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4541cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
4547#include <$ac_header>
4548_ACEOF
4549if { (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
4563else
4564 ac_cpp_err=yes
4565fi
4566if test -z "$ac_cpp_err"; then
4567 ac_header_preproc=yes
4568else
4569 echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 ac_header_preproc=no
4573fi
4574rm -f conftest.err conftest.$ac_ext
4575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4576echo "${ECHO_T}$ac_header_preproc" >&6
4577
4578# So? What about this header?
4579case $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
4582echo "$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
4584echo "$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
4589echo "$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
4591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4593echo "$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
4595echo "$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
4597echo "$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
4599echo "$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 ;;
4609esac
4610echo "$as_me:$LINENO: checking for $ac_header" >&5
4611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4612if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 eval "$as_ac_Header=\$ac_header_preproc"
4616fi
4617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4619
4620fi
4621if 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
4626fi
4627
4628done
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4641__argz_count __argz_stringify __argz_next
4642do
4643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4644echo "$as_me:$LINENO: checking for $ac_func" >&5
4645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4646if eval "test \"\${$as_ac_var+set}\" = set"; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649 cat >conftest.$ac_ext <<_ACEOF
4650/* confdefs.h. */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>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
4674extern "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. */
4679char $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)
4684choke me
4685#else
4686char (*f) () = $ac_func;
4687#endif
4688#ifdef __cplusplus
4689}
4690#endif
4691
4692int
4693main ()
4694{
4695return f != $ac_func;
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700rm -f conftest.$ac_objext conftest$ac_exeext
4701if { (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"
4723else
4724 echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727eval "$as_ac_var=no"
4728fi
4729rm -f conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731fi
4732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4734if 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
4739fi
4740done
4741
4742
4743 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4744
4745for ac_func in stpcpy
4746do
4747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4748echo "$as_me:$LINENO: checking for $ac_func" >&5
4749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4750if eval "test \"\${$as_ac_var+set}\" = set"; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>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
4778extern "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. */
4783char $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)
4788choke me
4789#else
4790char (*f) () = $ac_func;
4791#endif
4792#ifdef __cplusplus
4793}
4794#endif
4795
4796int
4797main ()
4798{
4799return f != $ac_func;
4800 ;
4801 return 0;
4802}
4803_ACEOF
4804rm -f conftest.$ac_objext conftest$ac_exeext
4805if { (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"
4827else
4828 echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831eval "$as_ac_var=no"
4832fi
4833rm -f conftest.err conftest.$ac_objext \
4834 conftest$ac_exeext conftest.$ac_ext
4835fi
4836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4838if 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
4843fi
4844done
4845
4846 fi
4847 if test "${ac_cv_func_stpcpy}" = "yes"; then
4848
4849cat >>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
4857echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4858if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861 cat >conftest.$ac_ext <<_ACEOF
4862/* confdefs.h. */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h. */
4867#include <locale.h>
4868int
4869main ()
4870{
4871return LC_MESSAGES
4872 ;
4873 return 0;
4874}
4875_ACEOF
4876rm -f conftest.$ac_objext conftest$ac_exeext
4877if { (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
4899else
4900 echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903am_cv_val_LC_MESSAGES=no
4904fi
4905rm -f conftest.err conftest.$ac_objext \
4906 conftest$ac_exeext conftest.$ac_ext
4907fi
4908echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4909echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4910 if test $am_cv_val_LC_MESSAGES = yes; then
4911
4912cat >>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
4919echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4920 # Check whether --enable-nls or --disable-nls was given.
4921if test "${enable_nls+set}" = set; then
4922 enableval="$enable_nls"
4923 USE_NLS=$enableval
4924else
4925 USE_NLS=yes
4926fi;
4927 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4928echo "${ECHO_T}$USE_NLS" >&6
4929
4930
4931 USE_INCLUDED_LIBINTL=no
4932
4933 if test "$USE_NLS" = "yes"; then
4934
4935cat >>confdefs.h <<\_ACEOF
4936#define ENABLE_NLS 1
4937_ACEOF
4938
4939 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4940echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4941
4942# Check whether --with-included-gettext or --without-included-gettext was given.
4943if test "${with_included_gettext+set}" = set; then
4944 withval="$with_included_gettext"
4945 nls_cv_force_use_gnu_gettext=$withval
4946else
4947 nls_cv_force_use_gnu_gettext=no
4948fi;
4949 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4950echo "${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
4960echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4961if test "${ac_cv_header_libintl_h+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963fi
4964echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4965echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4966else
4967 # Is the header compilable?
4968echo "$as_me:$LINENO: checking libintl.h usability" >&5
4969echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4970cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h. */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h. */
4976$ac_includes_default
4977#include <libintl.h>
4978_ACEOF
4979rm -f conftest.$ac_objext
4980if { (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
5002else
5003 echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006ac_header_compiler=no
5007fi
5008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5010echo "${ECHO_T}$ac_header_compiler" >&6
5011
5012# Is the header present?
5013echo "$as_me:$LINENO: checking libintl.h presence" >&5
5014echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5015cat >conftest.$ac_ext <<_ACEOF
5016/* confdefs.h. */
5017_ACEOF
5018cat confdefs.h >>conftest.$ac_ext
5019cat >>conftest.$ac_ext <<_ACEOF
5020/* end confdefs.h. */
5021#include <libintl.h>
5022_ACEOF
5023if { (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
5037else
5038 ac_cpp_err=yes
5039fi
5040if test -z "$ac_cpp_err"; then
5041 ac_header_preproc=yes
5042else
5043 echo "$as_me: failed program was:" >&5
5044sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 ac_header_preproc=no
5047fi
5048rm -f conftest.err conftest.$ac_ext
5049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5050echo "${ECHO_T}$ac_header_preproc" >&6
5051
5052# So? What about this header?
5053case $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
5056echo "$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
5058echo "$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
5063echo "$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
5065echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5066 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5067echo "$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
5069echo "$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
5071echo "$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
5073echo "$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 ;;
5083esac
5084echo "$as_me:$LINENO: checking for libintl.h" >&5
5085echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5086if test "${ac_cv_header_libintl_h+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089 ac_cv_header_libintl_h=$ac_header_preproc
5090fi
5091echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5092echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5093
5094fi
5095if test $ac_cv_header_libintl_h = yes; then
5096 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5097echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5098if test "${gt_cv_func_gettext_libc+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101 cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h. */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h. */
5107#include <libintl.h>
5108int
5109main ()
5110{
5111return (int) gettext ("")
5112 ;
5113 return 0;
5114}
5115_ACEOF
5116rm -f conftest.$ac_objext conftest$ac_exeext
5117if { (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
5139else
5140 echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143gt_cv_func_gettext_libc=no
5144fi
5145rm -f conftest.err conftest.$ac_objext \
5146 conftest$ac_exeext conftest.$ac_ext
5147fi
5148echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5149echo "${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
5153echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5154if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
5157 ac_check_lib_save_LIBS=$LIBS
5158LIBS="-lintl $LIBS"
5159cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165
5166/* Override any gcc2 internal prototype to avoid an error. */
5167#ifdef __cplusplus
5168extern "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. */
5172char bindtextdomain ();
5173int
5174main ()
5175{
5176bindtextdomain ();
5177 ;
5178 return 0;
5179}
5180_ACEOF
5181rm -f conftest.$ac_objext conftest$ac_exeext
5182if { (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
5204else
5205 echo "$as_me: failed program was:" >&5
5206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208ac_cv_lib_intl_bindtextdomain=no
5209fi
5210rm -f conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212LIBS=$ac_check_lib_save_LIBS
5213fi
5214echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5215echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5216if test $ac_cv_lib_intl_bindtextdomain = yes; then
5217 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5218echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5219if test "${gt_cv_func_gettext_libintl+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 cat >conftest.$ac_ext <<_ACEOF
5223/* confdefs.h. */
5224_ACEOF
5225cat confdefs.h >>conftest.$ac_ext
5226cat >>conftest.$ac_ext <<_ACEOF
5227/* end confdefs.h. */
5228
5229int
5230main ()
5231{
5232return (int) gettext ("")
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237rm -f conftest.$ac_objext conftest$ac_exeext
5238if { (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
5260else
5261 echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264gt_cv_func_gettext_libintl=no
5265fi
5266rm -f conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5268fi
5269echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5270echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5271fi
5272
5273 fi
5274
5275 if test "$gt_cv_func_gettext_libc" = "yes" \
5276 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5277
5278cat >>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.
5283set dummy msgfmt; ac_word=$2
5284echo "$as_me:$LINENO: checking for $ac_word" >&5
5285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286if test "${ac_cv_path_MSGFMT+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
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 ;;
5307esac
5308fi
5309MSGFMT="$ac_cv_path_MSGFMT"
5310if test -n "$MSGFMT"; then
5311 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5312echo "${ECHO_T}$MSGFMT" >&6
5313else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316fi
5317 if test "$MSGFMT" != "no"; then
5318
5319for ac_func in dcgettext
5320do
5321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5322echo "$as_me:$LINENO: checking for $ac_func" >&5
5323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5324if eval "test \"\${$as_ac_var+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327 cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>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
5352extern "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. */
5357char $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)
5362choke me
5363#else
5364char (*f) () = $ac_func;
5365#endif
5366#ifdef __cplusplus
5367}
5368#endif
5369
5370int
5371main ()
5372{
5373return f != $ac_func;
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext conftest$ac_exeext
5379if { (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"
5401else
5402 echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405eval "$as_ac_var=no"
5406fi
5407rm -f conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5409fi
5410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5412if 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
5417fi
5418done
5419
5420 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5421set dummy gmsgfmt; ac_word=$2
5422echo "$as_me:$LINENO: checking for $ac_word" >&5
5423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5424if test "${ac_cv_path_GMSGFMT+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426else
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
5433for as_dir in $PATH
5434do
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
5443done
5444done
5445
5446 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5447 ;;
5448esac
5449fi
5450GMSGFMT=$ac_cv_path_GMSGFMT
5451
5452if test -n "$GMSGFMT"; then
5453 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5454echo "${ECHO_T}$GMSGFMT" >&6
5455else
5456 echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6
5458fi
5459
5460 # Extract the first word of "xgettext", so it can be a program name with args.
5461set dummy xgettext; ac_word=$2
5462echo "$as_me:$LINENO: checking for $ac_word" >&5
5463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464if test "${ac_cv_path_XGETTEXT+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
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 ;;
5485esac
5486fi
5487XGETTEXT="$ac_cv_path_XGETTEXT"
5488if test -n "$XGETTEXT"; then
5489 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5490echo "${ECHO_T}$XGETTEXT" >&6
5491else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494fi
5495
5496 cat >conftest.$ac_ext <<_ACEOF
5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
5502
5503int
5504main ()
5505{
5506extern int _nl_msg_cat_cntr;
5507 return _nl_msg_cat_cntr
5508 ;
5509 return 0;
5510}
5511_ACEOF
5512rm -f conftest.$ac_objext conftest$ac_exeext
5513if { (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
5536else
5537 echo "$as_me: failed program was:" >&5
5538sed 's/^/| /' conftest.$ac_ext >&5
5539
5540CATOBJEXT=.mo
5541 DATADIRNAME=lib
5542fi
5543rm -f conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545 INSTOBJEXT=.mo
5546 fi
5547 fi
5548
5549fi
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.
5562set dummy msgfmt; ac_word=$2
5563echo "$as_me:$LINENO: checking for $ac_word" >&5
5564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565if test "${ac_cv_path_MSGFMT+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567else
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 ;;
5586esac
5587fi
5588MSGFMT="$ac_cv_path_MSGFMT"
5589if test -n "$MSGFMT"; then
5590 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5591echo "${ECHO_T}$MSGFMT" >&6
5592else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595fi
5596
5597 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5598set dummy gmsgfmt; ac_word=$2
5599echo "$as_me:$LINENO: checking for $ac_word" >&5
5600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601if test "${ac_cv_path_GMSGFMT+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
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
5610for as_dir in $PATH
5611do
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
5620done
5621done
5622
5623 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5624 ;;
5625esac
5626fi
5627GMSGFMT=$ac_cv_path_GMSGFMT
5628
5629if test -n "$GMSGFMT"; then
5630 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5631echo "${ECHO_T}$GMSGFMT" >&6
5632else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635fi
5636
5637 # Extract the first word of "xgettext", so it can be a program name with args.
5638set dummy xgettext; ac_word=$2
5639echo "$as_me:$LINENO: checking for $ac_word" >&5
5640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5641if test "${ac_cv_path_XGETTEXT+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
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 ;;
5662esac
5663fi
5664XGETTEXT="$ac_cv_path_XGETTEXT"
5665if test -n "$XGETTEXT"; then
5666 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5667echo "${ECHO_T}$XGETTEXT" >&6
5668else
5669 echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
5671fi
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
5690echo "${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
5733echo $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
5742echo "${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
5762echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5763if test "${ac_cv_header_linux_version_h+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765fi
5766echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5767echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5768else
5769 # Is the header compilable?
5770echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5771echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5772cat >conftest.$ac_ext <<_ACEOF
5773/* confdefs.h. */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h. */
5778$ac_includes_default
5779#include <linux/version.h>
5780_ACEOF
5781rm -f conftest.$ac_objext
5782if { (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
5804else
5805 echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808ac_header_compiler=no
5809fi
5810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5812echo "${ECHO_T}$ac_header_compiler" >&6
5813
5814# Is the header present?
5815echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5816echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5817cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h. */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h. */
5823#include <linux/version.h>
5824_ACEOF
5825if { (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
5839else
5840 ac_cpp_err=yes
5841fi
5842if test -z "$ac_cpp_err"; then
5843 ac_header_preproc=yes
5844else
5845 echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 ac_header_preproc=no
5849fi
5850rm -f conftest.err conftest.$ac_ext
5851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5852echo "${ECHO_T}$ac_header_preproc" >&6
5853
5854# So? What about this header?
5855case $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
5858echo "$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
5860echo "$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
5865echo "$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
5867echo "$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
5869echo "$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
5871echo "$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
5873echo "$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
5875echo "$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 ;;
5885esac
5886echo "$as_me:$LINENO: checking for linux/version.h" >&5
5887echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5888if test "${ac_cv_header_linux_version_h+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891 ac_cv_header_linux_version_h=$ac_header_preproc
5892fi
5893echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5894echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5895
5896fi
5897if test $ac_cv_header_linux_version_h = yes; then
5898 msgformat=linux
5899else
5900 msgformat=xopen
5901fi
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
5944localedir='${datadir}/locale'
5945
5946
5947if test "x$POSUB" != x; then
5948
5949 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5950echo $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
5982echo "${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"
5988fi
5989
5990PACKAGE=gdb
5991
5992cat >>confdefs.h <<_ACEOF
5993#define PACKAGE "$PACKAGE"
5994_ACEOF
5995
5996
5997
5998debugdir=${libdir}/debug
5999
6000
6001# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6002if test "${with_separate_debug_dir+set}" = set; then
6003 withval="$with_separate_debug_dir"
6004 debugdir="${withval}"
6005fi;
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
6013cat >>confdefs.h <<_ACEOF
6014#define DEBUGDIR "$ac_define_dir"
6015_ACEOF
6016
6017
6018#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6019
6020
6021
6022subdirs="$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.
6030targ=$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.
6034targ_archs=`echo $targ_archs | sed 's/ .*//'`
6035
6036if test "x$targ_archs" != x; then
6037
6038cat >>confdefs.h <<_ACEOF
6039#define DEFAULT_BFD_ARCH $targ_archs
6040_ACEOF
6041
6042fi
6043if test "x$targ_defvec" != x; then
6044
6045cat >>confdefs.h <<_ACEOF
6046#define DEFAULT_BFD_VEC $targ_defvec
6047_ACEOF
6048
6049fi
6050
6051test "$program_prefix" != NONE &&
6052 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6053# Use a double $ so make ignores it.
6054test "$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.
6058cat <<\_ACEOF >conftest.sed
6059s/[\\$]/&&/g;s/;s,x,x,$//
6060_ACEOF
6061program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6062rm 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.
6069if 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
6076echo "$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
6080echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6081 { (exit 1); exit 1; }; } ;;
6082 esac
6083else
6084 enable_gdbcli=yes
6085fi;
6086if 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
6093fi
6094
6095# Enable MI.
6096# Check whether --enable-gdbmi or --disable-gdbmi was given.
6097if 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
6104echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6105 { (exit 1); exit 1; }; } ;;
6106 esac
6107else
6108 enable_gdbmi=yes
6109fi;
6110if 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
6117fi
6118
6119# Enable TUI.
6120# Check whether --enable-tui or --disable-tui was given.
6121if 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
6128echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6129 { (exit 1); exit 1; }; } ;;
6130 esac
6131else
6132 enable_tui=yes
6133fi;
6134
6135# Enable gdbtk.
6136# Check whether --enable-gdbtk or --disable-gdbtk was given.
6137if 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
6144echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6145 { (exit 1); exit 1; }; } ;;
6146 esac
6147else
6148 if test -d $srcdir/gdbtk; then
6149 enable_gdbtk=yes
6150 else
6151 enable_gdbtk=no
6152 fi
6153fi;
6154# We unconditionally disable gdbtk tests on selected platforms.
6155case $host_os in
6156 go32* | windows*)
6157 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6158echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6159 enable_gdbtk=no ;;
6160esac
6161
6162# Libunwind support.
6163
6164# Check whether --with-libunwind or --without-libunwind was given.
6165if 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
6171echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6172 { (exit 1); exit 1; }; } ;;
6173esac
6174else
6175
6176
6177for ac_header in libunwind.h
6178do
6179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6180if eval "test \"\${$as_ac_Header+set}\" = set"; then
6181 echo "$as_me:$LINENO: checking for $ac_header" >&5
6182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6183if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185fi
6186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6188else
6189 # Is the header compilable?
6190echo "$as_me:$LINENO: checking $ac_header usability" >&5
6191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6192cat >conftest.$ac_ext <<_ACEOF
6193/* confdefs.h. */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h. */
6198$ac_includes_default
6199#include <$ac_header>
6200_ACEOF
6201rm -f conftest.$ac_objext
6202if { (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
6224else
6225 echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228ac_header_compiler=no
6229fi
6230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6232echo "${ECHO_T}$ac_header_compiler" >&6
6233
6234# Is the header present?
6235echo "$as_me:$LINENO: checking $ac_header presence" >&5
6236echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6237cat >conftest.$ac_ext <<_ACEOF
6238/* confdefs.h. */
6239_ACEOF
6240cat confdefs.h >>conftest.$ac_ext
6241cat >>conftest.$ac_ext <<_ACEOF
6242/* end confdefs.h. */
6243#include <$ac_header>
6244_ACEOF
6245if { (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
6259else
6260 ac_cpp_err=yes
6261fi
6262if test -z "$ac_cpp_err"; then
6263 ac_header_preproc=yes
6264else
6265 echo "$as_me: failed program was:" >&5
6266sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 ac_header_preproc=no
6269fi
6270rm -f conftest.err conftest.$ac_ext
6271echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6272echo "${ECHO_T}$ac_header_preproc" >&6
6273
6274# So? What about this header?
6275case $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
6278echo "$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
6280echo "$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
6285echo "$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
6287echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6289echo "$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
6291echo "$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
6293echo "$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
6295echo "$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 ;;
6305esac
6306echo "$as_me:$LINENO: checking for $ac_header" >&5
6307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6308if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311 eval "$as_ac_Header=\$ac_header_preproc"
6312fi
6313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6315
6316fi
6317if 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
6322fi
6323
6324done
6325
6326
6327for ac_header in libunwind-ia64.h
6328do
6329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330if eval "test \"\${$as_ac_Header+set}\" = set"; then
6331 echo "$as_me:$LINENO: checking for $ac_header" >&5
6332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335fi
6336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6338else
6339 # Is the header compilable?
6340echo "$as_me:$LINENO: checking $ac_header usability" >&5
6341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6342cat >conftest.$ac_ext <<_ACEOF
6343/* confdefs.h. */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h. */
6348$ac_includes_default
6349#include <$ac_header>
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (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
6374else
6375 echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378ac_header_compiler=no
6379fi
6380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6382echo "${ECHO_T}$ac_header_compiler" >&6
6383
6384# Is the header present?
6385echo "$as_me:$LINENO: checking $ac_header presence" >&5
6386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6387cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393#include <$ac_header>
6394_ACEOF
6395if { (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
6409else
6410 ac_cpp_err=yes
6411fi
6412if test -z "$ac_cpp_err"; then
6413 ac_header_preproc=yes
6414else
6415 echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418 ac_header_preproc=no
6419fi
6420rm -f conftest.err conftest.$ac_ext
6421echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6422echo "${ECHO_T}$ac_header_preproc" >&6
6423
6424# So? What about this header?
6425case $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
6428echo "$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
6430echo "$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
6435echo "$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
6437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6439echo "$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
6441echo "$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
6443echo "$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
6445echo "$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 ;;
6455esac
6456echo "$as_me:$LINENO: checking for $ac_header" >&5
6457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461 eval "$as_ac_Header=\$ac_header_preproc"
6462fi
6463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6465
6466fi
6467if 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
6472fi
6473
6474done
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
6480fi;
6481
6482if test x"$enable_libunwind" = xyes; then
6483
6484for ac_header in libunwind.h
6485do
6486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6487if eval "test \"\${$as_ac_Header+set}\" = set"; then
6488 echo "$as_me:$LINENO: checking for $ac_header" >&5
6489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492fi
6493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6495else
6496 # Is the header compilable?
6497echo "$as_me:$LINENO: checking $ac_header usability" >&5
6498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6499cat >conftest.$ac_ext <<_ACEOF
6500/* confdefs.h. */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h. */
6505$ac_includes_default
6506#include <$ac_header>
6507_ACEOF
6508rm -f conftest.$ac_objext
6509if { (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
6531else
6532 echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535ac_header_compiler=no
6536fi
6537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6539echo "${ECHO_T}$ac_header_compiler" >&6
6540
6541# Is the header present?
6542echo "$as_me:$LINENO: checking $ac_header presence" >&5
6543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6544cat >conftest.$ac_ext <<_ACEOF
6545/* confdefs.h. */
6546_ACEOF
6547cat confdefs.h >>conftest.$ac_ext
6548cat >>conftest.$ac_ext <<_ACEOF
6549/* end confdefs.h. */
6550#include <$ac_header>
6551_ACEOF
6552if { (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
6566else
6567 ac_cpp_err=yes
6568fi
6569if test -z "$ac_cpp_err"; then
6570 ac_header_preproc=yes
6571else
6572 echo "$as_me: failed program was:" >&5
6573sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 ac_header_preproc=no
6576fi
6577rm -f conftest.err conftest.$ac_ext
6578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6579echo "${ECHO_T}$ac_header_preproc" >&6
6580
6581# So? What about this header?
6582case $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
6585echo "$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
6587echo "$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
6592echo "$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
6594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6596echo "$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
6598echo "$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
6600echo "$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
6602echo "$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 ;;
6612esac
6613echo "$as_me:$LINENO: checking for $ac_header" >&5
6614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6615if eval "test \"\${$as_ac_Header+set}\" = set"; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618 eval "$as_ac_Header=\$ac_header_preproc"
6619fi
6620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6622
6623fi
6624if 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
6629fi
6630
6631done
6632
6633
6634for ac_header in libunwind-ia64.h
6635do
6636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6637if eval "test \"\${$as_ac_Header+set}\" = set"; then
6638 echo "$as_me:$LINENO: checking for $ac_header" >&5
6639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6640if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642fi
6643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6645else
6646 # Is the header compilable?
6647echo "$as_me:$LINENO: checking $ac_header usability" >&5
6648echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6649cat >conftest.$ac_ext <<_ACEOF
6650/* confdefs.h. */
6651_ACEOF
6652cat confdefs.h >>conftest.$ac_ext
6653cat >>conftest.$ac_ext <<_ACEOF
6654/* end confdefs.h. */
6655$ac_includes_default
6656#include <$ac_header>
6657_ACEOF
6658rm -f conftest.$ac_objext
6659if { (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
6681else
6682 echo "$as_me: failed program was:" >&5
6683sed 's/^/| /' conftest.$ac_ext >&5
6684
6685ac_header_compiler=no
6686fi
6687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6688echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6689echo "${ECHO_T}$ac_header_compiler" >&6
6690
6691# Is the header present?
6692echo "$as_me:$LINENO: checking $ac_header presence" >&5
6693echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6694cat >conftest.$ac_ext <<_ACEOF
6695/* confdefs.h. */
6696_ACEOF
6697cat confdefs.h >>conftest.$ac_ext
6698cat >>conftest.$ac_ext <<_ACEOF
6699/* end confdefs.h. */
6700#include <$ac_header>
6701_ACEOF
6702if { (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
6716else
6717 ac_cpp_err=yes
6718fi
6719if test -z "$ac_cpp_err"; then
6720 ac_header_preproc=yes
6721else
6722 echo "$as_me: failed program was:" >&5
6723sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 ac_header_preproc=no
6726fi
6727rm -f conftest.err conftest.$ac_ext
6728echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6729echo "${ECHO_T}$ac_header_preproc" >&6
6730
6731# So? What about this header?
6732case $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
6735echo "$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
6737echo "$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
6742echo "$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
6744echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6746echo "$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
6748echo "$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
6750echo "$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
6752echo "$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 ;;
6762esac
6763echo "$as_me:$LINENO: checking for $ac_header" >&5
6764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6765if eval "test \"\${$as_ac_Header+set}\" = set"; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768 eval "$as_ac_Header=\$ac_header_preproc"
6769fi
6770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6772
6773fi
6774if 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
6779fi
6780
6781done
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"
6790fi
6791
6792# Profiling support.
6793# Check whether --enable-profiling or --disable-profiling was given.
6794if 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
6801echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6802 { (exit 1); exit 1; }; } ;;
6803 esac
6804else
6805 enable_profiling=no
6806fi;
6807
6808
6809
6810for ac_func in monstartup _mcleanup
6811do
6812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6813echo "$as_me:$LINENO: checking for $ac_func" >&5
6814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6815if eval "test \"\${$as_ac_var+set}\" = set"; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6817else
6818 cat >conftest.$ac_ext <<_ACEOF
6819/* confdefs.h. */
6820_ACEOF
6821cat confdefs.h >>conftest.$ac_ext
6822cat >>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
6843extern "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. */
6848char $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)
6853choke me
6854#else
6855char (*f) () = $ac_func;
6856#endif
6857#ifdef __cplusplus
6858}
6859#endif
6860
6861int
6862main ()
6863{
6864return f != $ac_func;
6865 ;
6866 return 0;
6867}
6868_ACEOF
6869rm -f conftest.$ac_objext conftest$ac_exeext
6870if { (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"
6892else
6893 echo "$as_me: failed program was:" >&5
6894sed 's/^/| /' conftest.$ac_ext >&5
6895
6896eval "$as_ac_var=no"
6897fi
6898rm -f conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6900fi
6901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6902echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6903if 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
6908fi
6909done
6910
6911echo "$as_me:$LINENO: checking for _etext" >&5
6912echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6913if test "${ac_cv_var__etext+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916 cat >conftest.$ac_ext <<_ACEOF
6917/* confdefs.h. */
6918_ACEOF
6919cat confdefs.h >>conftest.$ac_ext
6920cat >>conftest.$ac_ext <<_ACEOF
6921/* end confdefs.h. */
6922#include <stdlib.h>
6923extern char _etext;
6924
6925int
6926main ()
6927{
6928free (&_etext);
6929 ;
6930 return 0;
6931}
6932_ACEOF
6933rm -f conftest.$ac_objext conftest$ac_exeext
6934if { (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
6956else
6957 echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960ac_cv_var__etext=no
6961fi
6962rm -f conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6964fi
6965echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6966echo "${ECHO_T}$ac_cv_var__etext" >&6
6967if test $ac_cv_var__etext = yes; then
6968
6969cat >>confdefs.h <<\_ACEOF
6970#define HAVE__ETEXT 1
6971_ACEOF
6972
6973fi
6974if 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
6977echo "$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
6985echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6986if test "${ac_cv_cc_supports_pg+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 cat >conftest.$ac_ext <<_ACEOF
6990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
6995
6996int
6997main ()
6998{
6999int x;
7000 ;
7001 return 0;
7002}
7003_ACEOF
7004rm -f conftest.$ac_objext
7005if { (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
7027else
7028 echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031ac_cv_cc_supports_pg=no
7032fi
7033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7034fi
7035echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7036echo "${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
7040echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7041 { (exit 1); exit 1; }; }
7042 fi
7043
7044 CFLAGS="$OLD_CFLAGS"
7045fi
7046
7047# --------------------- #
7048# Checks for programs. #
7049# --------------------- #
7050
7051for ac_prog in gawk mawk nawk awk
7052do
7053 # Extract the first word of "$ac_prog", so it can be a program name with args.
7054set dummy $ac_prog; ac_word=$2
7055echo "$as_me:$LINENO: checking for $ac_word" >&5
7056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7057if test "${ac_cv_prog_AWK+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059else
7060 if test -n "$AWK"; then
7061 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
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
7074done
7075done
7076
7077fi
7078fi
7079AWK=$ac_cv_prog_AWK
7080if test -n "$AWK"; then
7081 echo "$as_me:$LINENO: result: $AWK" >&5
7082echo "${ECHO_T}$AWK" >&6
7083else
7084 echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6
7086fi
7087
7088 test -n "$AWK" && break
7089done
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.
7104echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7105echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7106if test -z "$INSTALL"; then
7107if test "${ac_cv_path_install+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 # Account for people who put trailing slashes in PATH elements.
7116case $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 ;;
7144esac
7145done
7146
7147
7148fi
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
7158fi
7159echo "$as_me:$LINENO: result: $INSTALL" >&5
7160echo "${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.
7164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7165
7166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7167
7168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7169
7170echo "$as_me:$LINENO: checking whether ln -s works" >&5
7171echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7172LN_S=$as_ln_s
7173if test "$LN_S" = "ln -s"; then
7174 echo "$as_me:$LINENO: result: yes" >&5
7175echo "${ECHO_T}yes" >&6
7176else
7177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7178echo "${ECHO_T}no, using $LN_S" >&6
7179fi
7180
7181if 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.
7183set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7184echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186if test "${ac_cv_prog_RANLIB+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189 if test -n "$RANLIB"; then
7190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7191else
7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
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
7203done
7204done
7205
7206fi
7207fi
7208RANLIB=$ac_cv_prog_RANLIB
7209if test -n "$RANLIB"; then
7210 echo "$as_me:$LINENO: result: $RANLIB" >&5
7211echo "${ECHO_T}$RANLIB" >&6
7212else
7213 echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
7215fi
7216
7217fi
7218if 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.
7221set dummy ranlib; ac_word=$2
7222echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7224if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 if test -n "$ac_ct_RANLIB"; then
7228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
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
7241done
7242done
7243
7244 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7245fi
7246fi
7247ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7248if test -n "$ac_ct_RANLIB"; then
7249 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7250echo "${ECHO_T}$ac_ct_RANLIB" >&6
7251else
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
7254fi
7255
7256 RANLIB=$ac_ct_RANLIB
7257else
7258 RANLIB="$ac_cv_prog_RANLIB"
7259fi
7260
7261for ac_prog in 'bison -y' byacc
7262do
7263 # Extract the first word of "$ac_prog", so it can be a program name with args.
7264set dummy $ac_prog; ac_word=$2
7265echo "$as_me:$LINENO: checking for $ac_word" >&5
7266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267if test "${ac_cv_prog_YACC+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270 if test -n "$YACC"; then
7271 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7272else
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
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
7284done
7285done
7286
7287fi
7288fi
7289YACC=$ac_cv_prog_YACC
7290if test -n "$YACC"; then
7291 echo "$as_me:$LINENO: result: $YACC" >&5
7292echo "${ECHO_T}$YACC" >&6
7293else
7294 echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6
7296fi
7297
7298 test -n "$YACC" && break
7299done
7300test -n "$YACC" || YACC="yacc"
7301
7302
7303if 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.
7305set dummy ${ac_tool_prefix}ar; ac_word=$2
7306echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308if test "${ac_cv_prog_AR+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 if test -n "$AR"; then
7312 ac_cv_prog_AR="$AR" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
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
7325done
7326done
7327
7328fi
7329fi
7330AR=$ac_cv_prog_AR
7331if test -n "$AR"; then
7332 echo "$as_me:$LINENO: result: $AR" >&5
7333echo "${ECHO_T}$AR" >&6
7334else
7335 echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6
7337fi
7338
7339fi
7340if 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.
7343set dummy ar; ac_word=$2
7344echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349 if test -n "$ac_ct_AR"; then
7350 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
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
7363done
7364done
7365
7366fi
7367fi
7368ac_ct_AR=$ac_cv_prog_ac_ct_AR
7369if test -n "$ac_ct_AR"; then
7370 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7371echo "${ECHO_T}$ac_ct_AR" >&6
7372else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375fi
7376
7377 AR=$ac_ct_AR
7378else
7379 AR="$ac_cv_prog_AR"
7380fi
7381
7382if 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.
7384set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7385echo "$as_me:$LINENO: checking for $ac_word" >&5
7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390 if test -n "$DLLTOOL"; then
7391 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7392else
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
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
7404done
7405done
7406
7407fi
7408fi
7409DLLTOOL=$ac_cv_prog_DLLTOOL
7410if test -n "$DLLTOOL"; then
7411 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7412echo "${ECHO_T}$DLLTOOL" >&6
7413else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416fi
7417
7418fi
7419if 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.
7422set dummy dlltool; ac_word=$2
7423echo "$as_me:$LINENO: checking for $ac_word" >&5
7424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428 if test -n "$ac_ct_DLLTOOL"; then
7429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
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
7442done
7443done
7444
7445fi
7446fi
7447ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7448if test -n "$ac_ct_DLLTOOL"; then
7449 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7450echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7451else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454fi
7455
7456 DLLTOOL=$ac_ct_DLLTOOL
7457else
7458 DLLTOOL="$ac_cv_prog_DLLTOOL"
7459fi
7460
7461if 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.
7463set dummy ${ac_tool_prefix}windres; ac_word=$2
7464echo "$as_me:$LINENO: checking for $ac_word" >&5
7465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7466if test "${ac_cv_prog_WINDRES+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469 if test -n "$WINDRES"; then
7470 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
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
7483done
7484done
7485
7486fi
7487fi
7488WINDRES=$ac_cv_prog_WINDRES
7489if test -n "$WINDRES"; then
7490 echo "$as_me:$LINENO: result: $WINDRES" >&5
7491echo "${ECHO_T}$WINDRES" >&6
7492else
7493 echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6
7495fi
7496
7497fi
7498if 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.
7501set dummy windres; ac_word=$2
7502echo "$as_me:$LINENO: checking for $ac_word" >&5
7503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506else
7507 if test -n "$ac_ct_WINDRES"; then
7508 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7509else
7510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511for as_dir in $PATH
7512do
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
7521done
7522done
7523
7524fi
7525fi
7526ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7527if test -n "$ac_ct_WINDRES"; then
7528 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7529echo "${ECHO_T}$ac_ct_WINDRES" >&6
7530else
7531 echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6
7533fi
7534
7535 WINDRES=$ac_ct_WINDRES
7536else
7537 WINDRES="$ac_cv_prog_WINDRES"
7538fi
7539
7540
7541# Needed for GNU/Hurd.
7542if 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.
7544set dummy ${ac_tool_prefix}mig; ac_word=$2
7545echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547if test "${ac_cv_prog_MIG+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550 if test -n "$MIG"; then
7551 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
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
7564done
7565done
7566
7567fi
7568fi
7569MIG=$ac_cv_prog_MIG
7570if test -n "$MIG"; then
7571 echo "$as_me:$LINENO: result: $MIG" >&5
7572echo "${ECHO_T}$MIG" >&6
7573else
7574 echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6
7576fi
7577
7578fi
7579if 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.
7582set dummy mig; ac_word=$2
7583echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7585if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588 if test -n "$ac_ct_MIG"; then
7589 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7590else
7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
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
7602done
7603done
7604
7605fi
7606fi
7607ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7608if test -n "$ac_ct_MIG"; then
7609 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7610echo "${ECHO_T}$ac_ct_MIG" >&6
7611else
7612 echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6
7614fi
7615
7616 MIG=$ac_ct_MIG
7617else
7618 MIG="$ac_cv_prog_MIG"
7619fi
7620
7621
7622# ---------------------- #
7623# Checks for libraries. #
7624# ---------------------- #
7625
7626# We might need to link with -lm; most simulators need it.
7627
7628echo "$as_me:$LINENO: checking for main in -lm" >&5
7629echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7630if test "${ac_cv_lib_m_main+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else
7633 ac_check_lib_save_LIBS=$LIBS
7634LIBS="-lm $LIBS"
7635cat >conftest.$ac_ext <<_ACEOF
7636/* confdefs.h. */
7637_ACEOF
7638cat confdefs.h >>conftest.$ac_ext
7639cat >>conftest.$ac_ext <<_ACEOF
7640/* end confdefs.h. */
7641
7642
7643int
7644main ()
7645{
7646main ();
7647 ;
7648 return 0;
7649}
7650_ACEOF
7651rm -f conftest.$ac_objext conftest$ac_exeext
7652if { (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
7674else
7675 echo "$as_me: failed program was:" >&5
7676sed 's/^/| /' conftest.$ac_ext >&5
7677
7678ac_cv_lib_m_main=no
7679fi
7680rm -f conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext conftest.$ac_ext
7682LIBS=$ac_check_lib_save_LIBS
7683fi
7684echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7685echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7686if 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
7693fi
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.
7700echo "$as_me:$LINENO: checking for wctype" >&5
7701echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7702if test "${ac_cv_func_wctype+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 cat >conftest.$ac_ext <<_ACEOF
7706/* confdefs.h. */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>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
7730extern "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. */
7735char 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)
7740choke me
7741#else
7742char (*f) () = wctype;
7743#endif
7744#ifdef __cplusplus
7745}
7746#endif
7747
7748int
7749main ()
7750{
7751return f != wctype;
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756rm -f conftest.$ac_objext conftest$ac_exeext
7757if { (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
7779else
7780 echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783ac_cv_func_wctype=no
7784fi
7785rm -f conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787fi
7788echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7789echo "${ECHO_T}$ac_cv_func_wctype" >&6
7790if test $ac_cv_func_wctype = yes; then
7791 :
7792else
7793
7794echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7795echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7796if test "${ac_cv_lib_w_wctype+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 ac_check_lib_save_LIBS=$LIBS
7800LIBS="-lw $LIBS"
7801cat >conftest.$ac_ext <<_ACEOF
7802/* confdefs.h. */
7803_ACEOF
7804cat confdefs.h >>conftest.$ac_ext
7805cat >>conftest.$ac_ext <<_ACEOF
7806/* end confdefs.h. */
7807
7808/* Override any gcc2 internal prototype to avoid an error. */
7809#ifdef __cplusplus
7810extern "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. */
7814char wctype ();
7815int
7816main ()
7817{
7818wctype ();
7819 ;
7820 return 0;
7821}
7822_ACEOF
7823rm -f conftest.$ac_objext conftest$ac_exeext
7824if { (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
7846else
7847 echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850ac_cv_lib_w_wctype=no
7851fi
7852rm -f conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854LIBS=$ac_check_lib_save_LIBS
7855fi
7856echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7857echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7858if 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
7865fi
7866
7867fi
7868
7869
7870# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7871echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7872echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7873if test "${ac_cv_search_gethostbyname+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876 ac_func_search_save_LIBS=$LIBS
7877ac_cv_search_gethostbyname=no
7878cat >conftest.$ac_ext <<_ACEOF
7879/* confdefs.h. */
7880_ACEOF
7881cat confdefs.h >>conftest.$ac_ext
7882cat >>conftest.$ac_ext <<_ACEOF
7883/* end confdefs.h. */
7884
7885/* Override any gcc2 internal prototype to avoid an error. */
7886#ifdef __cplusplus
7887extern "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. */
7891char gethostbyname ();
7892int
7893main ()
7894{
7895gethostbyname ();
7896 ;
7897 return 0;
7898}
7899_ACEOF
7900rm -f conftest.$ac_objext conftest$ac_exeext
7901if { (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"
7923else
7924 echo "$as_me: failed program was:" >&5
7925sed 's/^/| /' conftest.$ac_ext >&5
7926
7927fi
7928rm -f conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930if 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
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
7938/* end confdefs.h. */
7939
7940/* Override any gcc2 internal prototype to avoid an error. */
7941#ifdef __cplusplus
7942extern "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. */
7946char gethostbyname ();
7947int
7948main ()
7949{
7950gethostbyname ();
7951 ;
7952 return 0;
7953}
7954_ACEOF
7955rm -f conftest.$ac_objext conftest$ac_exeext
7956if { (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"
7978break
7979else
7980 echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983fi
7984rm -f conftest.err conftest.$ac_objext \
7985 conftest$ac_exeext conftest.$ac_ext
7986 done
7987fi
7988LIBS=$ac_func_search_save_LIBS
7989fi
7990echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7991echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7992if test "$ac_cv_search_gethostbyname" != no; then
7993 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7994
7995fi
7996
7997
7998# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7999echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8000echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8001if test "${ac_cv_search_socketpair+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003else
8004 ac_func_search_save_LIBS=$LIBS
8005ac_cv_search_socketpair=no
8006cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012
8013/* Override any gcc2 internal prototype to avoid an error. */
8014#ifdef __cplusplus
8015extern "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. */
8019char socketpair ();
8020int
8021main ()
8022{
8023socketpair ();
8024 ;
8025 return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext conftest$ac_exeext
8029if { (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"
8051else
8052 echo "$as_me: failed program was:" >&5
8053sed 's/^/| /' conftest.$ac_ext >&5
8054
8055fi
8056rm -f conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8058if 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
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h. */
8067
8068/* Override any gcc2 internal prototype to avoid an error. */
8069#ifdef __cplusplus
8070extern "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. */
8074char socketpair ();
8075int
8076main ()
8077{
8078socketpair ();
8079 ;
8080 return 0;
8081}
8082_ACEOF
8083rm -f conftest.$ac_objext conftest$ac_exeext
8084if { (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"
8106break
8107else
8108 echo "$as_me: failed program was:" >&5
8109sed 's/^/| /' conftest.$ac_ext >&5
8110
8111fi
8112rm -f conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 done
8115fi
8116LIBS=$ac_func_search_save_LIBS
8117fi
8118echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8119echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8120if test "$ac_cv_search_socketpair" != no; then
8121 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8122
8123fi
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.
8135echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8136echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8137if test "${ac_cv_search_waddstr+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139else
8140 ac_func_search_save_LIBS=$LIBS
8141ac_cv_search_waddstr=no
8142cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h. */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h. */
8148
8149/* Override any gcc2 internal prototype to avoid an error. */
8150#ifdef __cplusplus
8151extern "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. */
8155char waddstr ();
8156int
8157main ()
8158{
8159waddstr ();
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (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"
8187else
8188 echo "$as_me: failed program was:" >&5
8189sed 's/^/| /' conftest.$ac_ext >&5
8190
8191fi
8192rm -f conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194if 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
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h. */
8203
8204/* Override any gcc2 internal prototype to avoid an error. */
8205#ifdef __cplusplus
8206extern "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. */
8210char waddstr ();
8211int
8212main ()
8213{
8214waddstr ();
8215 ;
8216 return 0;
8217}
8218_ACEOF
8219rm -f conftest.$ac_objext conftest$ac_exeext
8220if { (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"
8242break
8243else
8244 echo "$as_me: failed program was:" >&5
8245sed 's/^/| /' conftest.$ac_ext >&5
8246
8247fi
8248rm -f conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
8250 done
8251fi
8252LIBS=$ac_func_search_save_LIBS
8253fi
8254echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8255echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8256if test "$ac_cv_search_waddstr" != no; then
8257 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8258
8259fi
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
8266case $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 ;;
8275esac
8276
8277# These are the libraries checked by Readline.
8278echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8279echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8280if test "${ac_cv_search_tgetent+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282else
8283 ac_func_search_save_LIBS=$LIBS
8284ac_cv_search_tgetent=no
8285cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
8291
8292/* Override any gcc2 internal prototype to avoid an error. */
8293#ifdef __cplusplus
8294extern "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. */
8298char tgetent ();
8299int
8300main ()
8301{
8302tgetent ();
8303 ;
8304 return 0;
8305}
8306_ACEOF
8307rm -f conftest.$ac_objext conftest$ac_exeext
8308if { (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"
8330else
8331 echo "$as_me: failed program was:" >&5
8332sed 's/^/| /' conftest.$ac_ext >&5
8333
8334fi
8335rm -f conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8337if 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
8343cat confdefs.h >>conftest.$ac_ext
8344cat >>conftest.$ac_ext <<_ACEOF
8345/* end confdefs.h. */
8346
8347/* Override any gcc2 internal prototype to avoid an error. */
8348#ifdef __cplusplus
8349extern "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. */
8353char tgetent ();
8354int
8355main ()
8356{
8357tgetent ();
8358 ;
8359 return 0;
8360}
8361_ACEOF
8362rm -f conftest.$ac_objext conftest$ac_exeext
8363if { (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"
8385break
8386else
8387 echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390fi
8391rm -f conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393 done
8394fi
8395LIBS=$ac_func_search_save_LIBS
8396fi
8397echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8398echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8399if test "$ac_cv_search_tgetent" != no; then
8400 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8401
8402fi
8403
8404
8405if test "$ac_cv_search_tgetent" = no; then
8406 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8407echo "$as_me: error: no termcap library found" >&2;}
8408 { (exit 1); exit 1; }; }
8409fi
8410
8411# ------------------------- #
8412# Checks for header files. #
8413# ------------------------- #
8414
8415
8416
8417
8418
8419
8420ac_header_dirent=no
8421for 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`
8423echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8424echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8425if eval "test \"\${$as_ac_Header+set}\" = set"; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428 cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h. */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h. */
8434#include <sys/types.h>
8435#include <$ac_hdr>
8436
8437int
8438main ()
8439{
8440if ((DIR *) 0)
8441return 0;
8442 ;
8443 return 0;
8444}
8445_ACEOF
8446rm -f conftest.$ac_objext
8447if { (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"
8469else
8470 echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473eval "$as_ac_Header=no"
8474fi
8475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8476fi
8477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479if 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
8484ac_header_dirent=$ac_hdr; break
8485fi
8486
8487done
8488# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8489if test $ac_header_dirent = dirent.h; then
8490 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8491echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8492if test "${ac_cv_search_opendir+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494else
8495 ac_func_search_save_LIBS=$LIBS
8496ac_cv_search_opendir=no
8497cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h. */
8503
8504/* Override any gcc2 internal prototype to avoid an error. */
8505#ifdef __cplusplus
8506extern "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. */
8510char opendir ();
8511int
8512main ()
8513{
8514opendir ();
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519rm -f conftest.$ac_objext conftest$ac_exeext
8520if { (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"
8542else
8543 echo "$as_me: failed program was:" >&5
8544sed 's/^/| /' conftest.$ac_ext >&5
8545
8546fi
8547rm -f conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549if 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
8555cat confdefs.h >>conftest.$ac_ext
8556cat >>conftest.$ac_ext <<_ACEOF
8557/* end confdefs.h. */
8558
8559/* Override any gcc2 internal prototype to avoid an error. */
8560#ifdef __cplusplus
8561extern "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. */
8565char opendir ();
8566int
8567main ()
8568{
8569opendir ();
8570 ;
8571 return 0;
8572}
8573_ACEOF
8574rm -f conftest.$ac_objext conftest$ac_exeext
8575if { (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"
8597break
8598else
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
8602fi
8603rm -f conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605 done
8606fi
8607LIBS=$ac_func_search_save_LIBS
8608fi
8609echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8610echo "${ECHO_T}$ac_cv_search_opendir" >&6
8611if test "$ac_cv_search_opendir" != no; then
8612 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8613
8614fi
8615
8616else
8617 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8618echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8619if test "${ac_cv_search_opendir+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622 ac_func_search_save_LIBS=$LIBS
8623ac_cv_search_opendir=no
8624cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
8630
8631/* Override any gcc2 internal prototype to avoid an error. */
8632#ifdef __cplusplus
8633extern "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. */
8637char opendir ();
8638int
8639main ()
8640{
8641opendir ();
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646rm -f conftest.$ac_objext conftest$ac_exeext
8647if { (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"
8669else
8670 echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5
8672
8673fi
8674rm -f conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676if 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
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h. */
8685
8686/* Override any gcc2 internal prototype to avoid an error. */
8687#ifdef __cplusplus
8688extern "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. */
8692char opendir ();
8693int
8694main ()
8695{
8696opendir ();
8697 ;
8698 return 0;
8699}
8700_ACEOF
8701rm -f conftest.$ac_objext conftest$ac_exeext
8702if { (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"
8724break
8725else
8726 echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
8728
8729fi
8730rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 done
8733fi
8734LIBS=$ac_func_search_save_LIBS
8735fi
8736echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8737echo "${ECHO_T}$ac_cv_search_opendir" >&6
8738if test "$ac_cv_search_opendir" != no; then
8739 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8740
8741fi
8742
8743fi
8744
8745echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8746echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8747if test "${ac_cv_header_stat_broken+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750 cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h. */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>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)
8761You lose.
8762# endif
8763#endif
8764
8765#if defined(S_ISBLK) && defined(S_IFCHR)
8766# if S_ISBLK (S_IFCHR)
8767You lose.
8768# endif
8769#endif
8770
8771#if defined(S_ISLNK) && defined(S_IFREG)
8772# if S_ISLNK (S_IFREG)
8773You lose.
8774# endif
8775#endif
8776
8777#if defined(S_ISSOCK) && defined(S_IFREG)
8778# if S_ISSOCK (S_IFREG)
8779You lose.
8780# endif
8781#endif
8782
8783_ACEOF
8784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8785 $EGREP "You lose" >/dev/null 2>&1; then
8786 ac_cv_header_stat_broken=yes
8787else
8788 ac_cv_header_stat_broken=no
8789fi
8790rm -f conftest*
8791
8792fi
8793echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8794echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8795if test $ac_cv_header_stat_broken = yes; then
8796
8797cat >>confdefs.h <<\_ACEOF
8798#define STAT_MACROS_BROKEN 1
8799_ACEOF
8800
8801fi
8802
8803echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8804echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8805if test "${ac_cv_header_stdc+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807else
8808 cat >conftest.$ac_ext <<_ACEOF
8809/* confdefs.h. */
8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>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
8819int
8820main ()
8821{
8822
8823 ;
8824 return 0;
8825}
8826_ACEOF
8827rm -f conftest.$ac_objext
8828if { (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
8850else
8851 echo "$as_me: failed program was:" >&5
8852sed 's/^/| /' conftest.$ac_ext >&5
8853
8854ac_cv_header_stdc=no
8855fi
8856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8857
8858if 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
8863cat confdefs.h >>conftest.$ac_ext
8864cat >>conftest.$ac_ext <<_ACEOF
8865/* end confdefs.h. */
8866#include <string.h>
8867
8868_ACEOF
8869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8870 $EGREP "memchr" >/dev/null 2>&1; then
8871 :
8872else
8873 ac_cv_header_stdc=no
8874fi
8875rm -f conftest*
8876
8877fi
8878
8879if 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
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h. */
8887#include <stdlib.h>
8888
8889_ACEOF
8890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8891 $EGREP "free" >/dev/null 2>&1; then
8892 :
8893else
8894 ac_cv_header_stdc=no
8895fi
8896rm -f conftest*
8897
8898fi
8899
8900if 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 :
8904else
8905 cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>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)))
8924int
8925main ()
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
8935rm -f conftest$ac_exeext
8936if { (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 :
8947else
8948 echo "$as_me: program exited with status $ac_status" >&5
8949echo "$as_me: failed program was:" >&5
8950sed 's/^/| /' conftest.$ac_ext >&5
8951
8952( exit $ac_status )
8953ac_cv_header_stdc=no
8954fi
8955rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8956fi
8957fi
8958fi
8959echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8960echo "${ECHO_T}$ac_cv_header_stdc" >&6
8961if test $ac_cv_header_stdc = yes; then
8962
8963cat >>confdefs.h <<\_ACEOF
8964#define STDC_HEADERS 1
8965_ACEOF
8966
8967fi
8968
8969
8970for ac_header in link.h
8971do
8972as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8973if eval "test \"\${$as_ac_Header+set}\" = set"; then
8974 echo "$as_me:$LINENO: checking for $ac_header" >&5
8975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8976if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978fi
8979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8981else
8982 # Is the header compilable?
8983echo "$as_me:$LINENO: checking $ac_header usability" >&5
8984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8985cat >conftest.$ac_ext <<_ACEOF
8986/* confdefs.h. */
8987_ACEOF
8988cat confdefs.h >>conftest.$ac_ext
8989cat >>conftest.$ac_ext <<_ACEOF
8990/* end confdefs.h. */
8991$ac_includes_default
8992#include <$ac_header>
8993_ACEOF
8994rm -f conftest.$ac_objext
8995if { (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
9017else
9018 echo "$as_me: failed program was:" >&5
9019sed 's/^/| /' conftest.$ac_ext >&5
9020
9021ac_header_compiler=no
9022fi
9023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9024echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9025echo "${ECHO_T}$ac_header_compiler" >&6
9026
9027# Is the header present?
9028echo "$as_me:$LINENO: checking $ac_header presence" >&5
9029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9030cat >conftest.$ac_ext <<_ACEOF
9031/* confdefs.h. */
9032_ACEOF
9033cat confdefs.h >>conftest.$ac_ext
9034cat >>conftest.$ac_ext <<_ACEOF
9035/* end confdefs.h. */
9036#include <$ac_header>
9037_ACEOF
9038if { (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
9052else
9053 ac_cpp_err=yes
9054fi
9055if test -z "$ac_cpp_err"; then
9056 ac_header_preproc=yes
9057else
9058 echo "$as_me: failed program was:" >&5
9059sed 's/^/| /' conftest.$ac_ext >&5
9060
9061 ac_header_preproc=no
9062fi
9063rm -f conftest.err conftest.$ac_ext
9064echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9065echo "${ECHO_T}$ac_header_preproc" >&6
9066
9067# So? What about this header?
9068case $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
9071echo "$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
9073echo "$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
9078echo "$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
9080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9082echo "$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
9084echo "$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
9086echo "$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
9088echo "$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 ;;
9098esac
9099echo "$as_me:$LINENO: checking for $ac_header" >&5
9100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9101if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103else
9104 eval "$as_ac_Header=\$ac_header_preproc"
9105fi
9106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9108
9109fi
9110if 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
9115fi
9116
9117done
9118
9119
9120for ac_header in machine/reg.h
9121do
9122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9123if eval "test \"\${$as_ac_Header+set}\" = set"; then
9124 echo "$as_me:$LINENO: checking for $ac_header" >&5
9125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9126if eval "test \"\${$as_ac_Header+set}\" = set"; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128fi
9129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9131else
9132 # Is the header compilable?
9133echo "$as_me:$LINENO: checking $ac_header usability" >&5
9134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9135cat >conftest.$ac_ext <<_ACEOF
9136/* confdefs.h. */
9137_ACEOF
9138cat confdefs.h >>conftest.$ac_ext
9139cat >>conftest.$ac_ext <<_ACEOF
9140/* end confdefs.h. */
9141$ac_includes_default
9142#include <$ac_header>
9143_ACEOF
9144rm -f conftest.$ac_objext
9145if { (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 ac_header_compiler=yes
9167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171ac_header_compiler=no
9172fi
9173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9174echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9175echo "${ECHO_T}$ac_header_compiler" >&6
9176
9177# Is the header present?
9178echo "$as_me:$LINENO: checking $ac_header presence" >&5
9179echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9180cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h. */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h. */
9186#include <$ac_header>
9187_ACEOF
9188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9190 ac_status=$?
9191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } >/dev/null; then
9196 if test -s conftest.err; then
9197 ac_cpp_err=$ac_c_preproc_warn_flag
9198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9199 else
9200 ac_cpp_err=
9201 fi
9202else
9203 ac_cpp_err=yes
9204fi
9205if test -z "$ac_cpp_err"; then
9206 ac_header_preproc=yes
9207else
9208 echo "$as_me: failed program was:" >&5
9209sed 's/^/| /' conftest.$ac_ext >&5
9210
9211 ac_header_preproc=no
9212fi
9213rm -f conftest.err conftest.$ac_ext
9214echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9215echo "${ECHO_T}$ac_header_preproc" >&6
9216
9217# So? What about this header?
9218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9219 yes:no: )
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9221echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9223echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9224 ac_header_preproc=yes
9225 ;;
9226 no:yes:* )
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9230echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9232echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9234echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9236echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9238echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9239 (
9240 cat <<\_ASBOX
9241## ------------------------------------------ ##
9242## Report this to the AC_PACKAGE_NAME lists. ##
9243## ------------------------------------------ ##
9244_ASBOX
9245 ) |
9246 sed "s/^/$as_me: WARNING: /" >&2
9247 ;;
9248esac
9249echo "$as_me:$LINENO: checking for $ac_header" >&5
9250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9251if eval "test \"\${$as_ac_Header+set}\" = set"; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9253else
9254 eval "$as_ac_Header=\$ac_header_preproc"
9255fi
9256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9258
9259fi
9260if test `eval echo '${'$as_ac_Header'}'` = yes; then
9261 cat >>confdefs.h <<_ACEOF
9262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9263_ACEOF
9264
9265fi
9266
9267done
9268
9269
9270for ac_header in nlist.h
9271do
9272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9273if eval "test \"\${$as_ac_Header+set}\" = set"; then
9274 echo "$as_me:$LINENO: checking for $ac_header" >&5
9275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9276if eval "test \"\${$as_ac_Header+set}\" = set"; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9278fi
9279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9281else
9282 # Is the header compilable?
9283echo "$as_me:$LINENO: checking $ac_header usability" >&5
9284echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9285cat >conftest.$ac_ext <<_ACEOF
9286/* confdefs.h. */
9287_ACEOF
9288cat confdefs.h >>conftest.$ac_ext
9289cat >>conftest.$ac_ext <<_ACEOF
9290/* end confdefs.h. */
9291$ac_includes_default
9292#include <$ac_header>
9293_ACEOF
9294rm -f conftest.$ac_objext
9295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9296 (eval $ac_compile) 2>conftest.er1
9297 ac_status=$?
9298 grep -v '^ *+' conftest.er1 >conftest.err
9299 rm -f conftest.er1
9300 cat conftest.err >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } &&
9303 { ac_try='test -z "$ac_c_werror_flag"
9304 || test ! -s conftest.err'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 (eval $ac_try) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; } &&
9310 { ac_try='test -s conftest.$ac_objext'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 ac_header_compiler=yes
9317else
9318 echo "$as_me: failed program was:" >&5
9319sed 's/^/| /' conftest.$ac_ext >&5
9320
9321ac_header_compiler=no
9322fi
9323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9324echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9325echo "${ECHO_T}$ac_header_compiler" >&6
9326
9327# Is the header present?
9328echo "$as_me:$LINENO: checking $ac_header presence" >&5
9329echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9330cat >conftest.$ac_ext <<_ACEOF
9331/* confdefs.h. */
9332_ACEOF
9333cat confdefs.h >>conftest.$ac_ext
9334cat >>conftest.$ac_ext <<_ACEOF
9335/* end confdefs.h. */
9336#include <$ac_header>
9337_ACEOF
9338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } >/dev/null; then
9346 if test -s conftest.err; then
9347 ac_cpp_err=$ac_c_preproc_warn_flag
9348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9349 else
9350 ac_cpp_err=
9351 fi
9352else
9353 ac_cpp_err=yes
9354fi
9355if test -z "$ac_cpp_err"; then
9356 ac_header_preproc=yes
9357else
9358 echo "$as_me: failed program was:" >&5
9359sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 ac_header_preproc=no
9362fi
9363rm -f conftest.err conftest.$ac_ext
9364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9365echo "${ECHO_T}$ac_header_preproc" >&6
9366
9367# So? What about this header?
9368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9369 yes:no: )
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9371echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9373echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9374 ac_header_preproc=yes
9375 ;;
9376 no:yes:* )
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9378echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9380echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9382echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9384echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9386echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9388echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9389 (
9390 cat <<\_ASBOX
9391## ------------------------------------------ ##
9392## Report this to the AC_PACKAGE_NAME lists. ##
9393## ------------------------------------------ ##
9394_ASBOX
9395 ) |
9396 sed "s/^/$as_me: WARNING: /" >&2
9397 ;;
9398esac
9399echo "$as_me:$LINENO: checking for $ac_header" >&5
9400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9401if eval "test \"\${$as_ac_Header+set}\" = set"; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403else
9404 eval "$as_ac_Header=\$ac_header_preproc"
9405fi
9406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9408
9409fi
9410if test `eval echo '${'$as_ac_Header'}'` = yes; then
9411 cat >>confdefs.h <<_ACEOF
9412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9413_ACEOF
9414
9415fi
9416
9417done
9418
9419
9420
9421for ac_header in poll.h sys/poll.h
9422do
9423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9424if eval "test \"\${$as_ac_Header+set}\" = set"; then
9425 echo "$as_me:$LINENO: checking for $ac_header" >&5
9426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9427if eval "test \"\${$as_ac_Header+set}\" = set"; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429fi
9430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9432else
9433 # Is the header compilable?
9434echo "$as_me:$LINENO: checking $ac_header usability" >&5
9435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9436cat >conftest.$ac_ext <<_ACEOF
9437/* confdefs.h. */
9438_ACEOF
9439cat confdefs.h >>conftest.$ac_ext
9440cat >>conftest.$ac_ext <<_ACEOF
9441/* end confdefs.h. */
9442$ac_includes_default
9443#include <$ac_header>
9444_ACEOF
9445rm -f conftest.$ac_objext
9446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9447 (eval $ac_compile) 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest.$ac_objext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_header_compiler=yes
9468else
9469 echo "$as_me: failed program was:" >&5
9470sed 's/^/| /' conftest.$ac_ext >&5
9471
9472ac_header_compiler=no
9473fi
9474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9476echo "${ECHO_T}$ac_header_compiler" >&6
9477
9478# Is the header present?
9479echo "$as_me:$LINENO: checking $ac_header presence" >&5
9480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9481cat >conftest.$ac_ext <<_ACEOF
9482/* confdefs.h. */
9483_ACEOF
9484cat confdefs.h >>conftest.$ac_ext
9485cat >>conftest.$ac_ext <<_ACEOF
9486/* end confdefs.h. */
9487#include <$ac_header>
9488_ACEOF
9489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } >/dev/null; then
9497 if test -s conftest.err; then
9498 ac_cpp_err=$ac_c_preproc_warn_flag
9499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9500 else
9501 ac_cpp_err=
9502 fi
9503else
9504 ac_cpp_err=yes
9505fi
9506if test -z "$ac_cpp_err"; then
9507 ac_header_preproc=yes
9508else
9509 echo "$as_me: failed program was:" >&5
9510sed 's/^/| /' conftest.$ac_ext >&5
9511
9512 ac_header_preproc=no
9513fi
9514rm -f conftest.err conftest.$ac_ext
9515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9516echo "${ECHO_T}$ac_header_preproc" >&6
9517
9518# So? What about this header?
9519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9520 yes:no: )
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9525 ac_header_preproc=yes
9526 ;;
9527 no:yes:* )
9528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9540 (
9541 cat <<\_ASBOX
9542## ------------------------------------------ ##
9543## Report this to the AC_PACKAGE_NAME lists. ##
9544## ------------------------------------------ ##
9545_ASBOX
9546 ) |
9547 sed "s/^/$as_me: WARNING: /" >&2
9548 ;;
9549esac
9550echo "$as_me:$LINENO: checking for $ac_header" >&5
9551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9552if eval "test \"\${$as_ac_Header+set}\" = set"; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555 eval "$as_ac_Header=\$ac_header_preproc"
9556fi
9557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9559
9560fi
9561if test `eval echo '${'$as_ac_Header'}'` = yes; then
9562 cat >>confdefs.h <<_ACEOF
9563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9564_ACEOF
9565
9566fi
9567
9568done
9569
9570
9571
9572
9573for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9574do
9575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9576if eval "test \"\${$as_ac_Header+set}\" = set"; then
9577 echo "$as_me:$LINENO: checking for $ac_header" >&5
9578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9579if eval "test \"\${$as_ac_Header+set}\" = set"; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581fi
9582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9584else
9585 # Is the header compilable?
9586echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9588cat >conftest.$ac_ext <<_ACEOF
9589/* confdefs.h. */
9590_ACEOF
9591cat confdefs.h >>conftest.$ac_ext
9592cat >>conftest.$ac_ext <<_ACEOF
9593/* end confdefs.h. */
9594$ac_includes_default
9595#include <$ac_header>
9596_ACEOF
9597rm -f conftest.$ac_objext
9598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9599 (eval $ac_compile) 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag"
9607 || test ! -s conftest.err'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 (eval $ac_try) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest.$ac_objext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_header_compiler=yes
9620else
9621 echo "$as_me: failed program was:" >&5
9622sed 's/^/| /' conftest.$ac_ext >&5
9623
9624ac_header_compiler=no
9625fi
9626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9628echo "${ECHO_T}$ac_header_compiler" >&6
9629
9630# Is the header present?
9631echo "$as_me:$LINENO: checking $ac_header presence" >&5
9632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9633cat >conftest.$ac_ext <<_ACEOF
9634/* confdefs.h. */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h. */
9639#include <$ac_header>
9640_ACEOF
9641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } >/dev/null; then
9649 if test -s conftest.err; then
9650 ac_cpp_err=$ac_c_preproc_warn_flag
9651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9652 else
9653 ac_cpp_err=
9654 fi
9655else
9656 ac_cpp_err=yes
9657fi
9658if test -z "$ac_cpp_err"; then
9659 ac_header_preproc=yes
9660else
9661 echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ac_header_preproc=no
9665fi
9666rm -f conftest.err conftest.$ac_ext
9667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9668echo "${ECHO_T}$ac_header_preproc" >&6
9669
9670# So? What about this header?
9671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9672 yes:no: )
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9677 ac_header_preproc=yes
9678 ;;
9679 no:yes:* )
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9692 (
9693 cat <<\_ASBOX
9694## ------------------------------------------ ##
9695## Report this to the AC_PACKAGE_NAME lists. ##
9696## ------------------------------------------ ##
9697_ASBOX
9698 ) |
9699 sed "s/^/$as_me: WARNING: /" >&2
9700 ;;
9701esac
9702echo "$as_me:$LINENO: checking for $ac_header" >&5
9703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9704if eval "test \"\${$as_ac_Header+set}\" = set"; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706else
9707 eval "$as_ac_Header=\$ac_header_preproc"
9708fi
9709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9711
9712fi
9713if test `eval echo '${'$as_ac_Header'}'` = yes; then
9714 cat >>confdefs.h <<_ACEOF
9715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9716_ACEOF
9717
9718fi
9719
9720done
9721
9722
9723for ac_header in stddef.h
9724do
9725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9726if eval "test \"\${$as_ac_Header+set}\" = set"; then
9727 echo "$as_me:$LINENO: checking for $ac_header" >&5
9728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9729if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731fi
9732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9734else
9735 # Is the header compilable?
9736echo "$as_me:$LINENO: checking $ac_header usability" >&5
9737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9738cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h. */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
9743/* end confdefs.h. */
9744$ac_includes_default
9745#include <$ac_header>
9746_ACEOF
9747rm -f conftest.$ac_objext
9748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9749 (eval $ac_compile) 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag"
9757 || test ! -s conftest.err'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest.$ac_objext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_header_compiler=yes
9770else
9771 echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
9773
9774ac_header_compiler=no
9775fi
9776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9778echo "${ECHO_T}$ac_header_compiler" >&6
9779
9780# Is the header present?
9781echo "$as_me:$LINENO: checking $ac_header presence" >&5
9782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9783cat >conftest.$ac_ext <<_ACEOF
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
9788/* end confdefs.h. */
9789#include <$ac_header>
9790_ACEOF
9791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } >/dev/null; then
9799 if test -s conftest.err; then
9800 ac_cpp_err=$ac_c_preproc_warn_flag
9801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9802 else
9803 ac_cpp_err=
9804 fi
9805else
9806 ac_cpp_err=yes
9807fi
9808if test -z "$ac_cpp_err"; then
9809 ac_header_preproc=yes
9810else
9811 echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 ac_header_preproc=no
9815fi
9816rm -f conftest.err conftest.$ac_ext
9817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9818echo "${ECHO_T}$ac_header_preproc" >&6
9819
9820# So? What about this header?
9821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9822 yes:no: )
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9826echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9827 ac_header_preproc=yes
9828 ;;
9829 no:yes:* )
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9833echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9835echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9837echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9841echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9842 (
9843 cat <<\_ASBOX
9844## ------------------------------------------ ##
9845## Report this to the AC_PACKAGE_NAME lists. ##
9846## ------------------------------------------ ##
9847_ASBOX
9848 ) |
9849 sed "s/^/$as_me: WARNING: /" >&2
9850 ;;
9851esac
9852echo "$as_me:$LINENO: checking for $ac_header" >&5
9853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9854if eval "test \"\${$as_ac_Header+set}\" = set"; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856else
9857 eval "$as_ac_Header=\$ac_header_preproc"
9858fi
9859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861
9862fi
9863if test `eval echo '${'$as_ac_Header'}'` = yes; then
9864 cat >>confdefs.h <<_ACEOF
9865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9866_ACEOF
9867
9868fi
9869
9870done
9871
9872
9873for ac_header in stdlib.h
9874do
9875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9876if eval "test \"\${$as_ac_Header+set}\" = set"; then
9877 echo "$as_me:$LINENO: checking for $ac_header" >&5
9878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9879if eval "test \"\${$as_ac_Header+set}\" = set"; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881fi
9882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9884else
9885 # Is the header compilable?
9886echo "$as_me:$LINENO: checking $ac_header usability" >&5
9887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9888cat >conftest.$ac_ext <<_ACEOF
9889/* confdefs.h. */
9890_ACEOF
9891cat confdefs.h >>conftest.$ac_ext
9892cat >>conftest.$ac_ext <<_ACEOF
9893/* end confdefs.h. */
9894$ac_includes_default
9895#include <$ac_header>
9896_ACEOF
9897rm -f conftest.$ac_objext
9898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9899 (eval $ac_compile) 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag"
9907 || test ! -s conftest.err'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 (eval $ac_try) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest.$ac_objext'
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 (eval $ac_try) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; }; then
9919 ac_header_compiler=yes
9920else
9921 echo "$as_me: failed program was:" >&5
9922sed 's/^/| /' conftest.$ac_ext >&5
9923
9924ac_header_compiler=no
9925fi
9926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9928echo "${ECHO_T}$ac_header_compiler" >&6
9929
9930# Is the header present?
9931echo "$as_me:$LINENO: checking $ac_header presence" >&5
9932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9933cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h. */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h. */
9939#include <$ac_header>
9940_ACEOF
9941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } >/dev/null; then
9949 if test -s conftest.err; then
9950 ac_cpp_err=$ac_c_preproc_warn_flag
9951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9952 else
9953 ac_cpp_err=
9954 fi
9955else
9956 ac_cpp_err=yes
9957fi
9958if test -z "$ac_cpp_err"; then
9959 ac_header_preproc=yes
9960else
9961 echo "$as_me: failed program was:" >&5
9962sed 's/^/| /' conftest.$ac_ext >&5
9963
9964 ac_header_preproc=no
9965fi
9966rm -f conftest.err conftest.$ac_ext
9967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9968echo "${ECHO_T}$ac_header_preproc" >&6
9969
9970# So? What about this header?
9971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9972 yes:no: )
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9977 ac_header_preproc=yes
9978 ;;
9979 no:yes:* )
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9992 (
9993 cat <<\_ASBOX
9994## ------------------------------------------ ##
9995## Report this to the AC_PACKAGE_NAME lists. ##
9996## ------------------------------------------ ##
9997_ASBOX
9998 ) |
9999 sed "s/^/$as_me: WARNING: /" >&2
10000 ;;
10001esac
10002echo "$as_me:$LINENO: checking for $ac_header" >&5
10003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10004if eval "test \"\${$as_ac_Header+set}\" = set"; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006else
10007 eval "$as_ac_Header=\$ac_header_preproc"
10008fi
10009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10011
10012fi
10013if test `eval echo '${'$as_ac_Header'}'` = yes; then
10014 cat >>confdefs.h <<_ACEOF
10015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10016_ACEOF
10017
10018fi
10019
10020done
10021
10022
10023for ac_header in stdint.h
10024do
10025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10026if eval "test \"\${$as_ac_Header+set}\" = set"; then
10027 echo "$as_me:$LINENO: checking for $ac_header" >&5
10028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10029if eval "test \"\${$as_ac_Header+set}\" = set"; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10031fi
10032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10034else
10035 # Is the header compilable?
10036echo "$as_me:$LINENO: checking $ac_header usability" >&5
10037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10038cat >conftest.$ac_ext <<_ACEOF
10039/* confdefs.h. */
10040_ACEOF
10041cat confdefs.h >>conftest.$ac_ext
10042cat >>conftest.$ac_ext <<_ACEOF
10043/* end confdefs.h. */
10044$ac_includes_default
10045#include <$ac_header>
10046_ACEOF
10047rm -f conftest.$ac_objext
10048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10049 (eval $ac_compile) 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag"
10057 || test ! -s conftest.err'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest.$ac_objext'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10066 ac_status=$?
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; }; then
10069 ac_header_compiler=yes
10070else
10071 echo "$as_me: failed program was:" >&5
10072sed 's/^/| /' conftest.$ac_ext >&5
10073
10074ac_header_compiler=no
10075fi
10076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10078echo "${ECHO_T}$ac_header_compiler" >&6
10079
10080# Is the header present?
10081echo "$as_me:$LINENO: checking $ac_header presence" >&5
10082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10083cat >conftest.$ac_ext <<_ACEOF
10084/* confdefs.h. */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
10088/* end confdefs.h. */
10089#include <$ac_header>
10090_ACEOF
10091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } >/dev/null; then
10099 if test -s conftest.err; then
10100 ac_cpp_err=$ac_c_preproc_warn_flag
10101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10102 else
10103 ac_cpp_err=
10104 fi
10105else
10106 ac_cpp_err=yes
10107fi
10108if test -z "$ac_cpp_err"; then
10109 ac_header_preproc=yes
10110else
10111 echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 ac_header_preproc=no
10115fi
10116rm -f conftest.err conftest.$ac_ext
10117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10118echo "${ECHO_T}$ac_header_preproc" >&6
10119
10120# So? What about this header?
10121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10122 yes:no: )
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10127 ac_header_preproc=yes
10128 ;;
10129 no:yes:* )
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10142 (
10143 cat <<\_ASBOX
10144## ------------------------------------------ ##
10145## Report this to the AC_PACKAGE_NAME lists. ##
10146## ------------------------------------------ ##
10147_ASBOX
10148 ) |
10149 sed "s/^/$as_me: WARNING: /" >&2
10150 ;;
10151esac
10152echo "$as_me:$LINENO: checking for $ac_header" >&5
10153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10154if eval "test \"\${$as_ac_Header+set}\" = set"; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156else
10157 eval "$as_ac_Header=\$ac_header_preproc"
10158fi
10159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10161
10162fi
10163if test `eval echo '${'$as_ac_Header'}'` = yes; then
10164 cat >>confdefs.h <<_ACEOF
10165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10166_ACEOF
10167
10168fi
10169
10170done
10171
10172
10173
10174
10175for ac_header in string.h memory.h strings.h
10176do
10177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10178if eval "test \"\${$as_ac_Header+set}\" = set"; then
10179 echo "$as_me:$LINENO: checking for $ac_header" >&5
10180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10181if eval "test \"\${$as_ac_Header+set}\" = set"; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183fi
10184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10186else
10187 # Is the header compilable?
10188echo "$as_me:$LINENO: checking $ac_header usability" >&5
10189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10190cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h. */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h. */
10196$ac_includes_default
10197#include <$ac_header>
10198_ACEOF
10199rm -f conftest.$ac_objext
10200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201 (eval $ac_compile) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest.$ac_objext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_header_compiler=yes
10222else
10223 echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226ac_header_compiler=no
10227fi
10228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10230echo "${ECHO_T}$ac_header_compiler" >&6
10231
10232# Is the header present?
10233echo "$as_me:$LINENO: checking $ac_header presence" >&5
10234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10235cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241#include <$ac_header>
10242_ACEOF
10243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10245 ac_status=$?
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } >/dev/null; then
10251 if test -s conftest.err; then
10252 ac_cpp_err=$ac_c_preproc_warn_flag
10253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10254 else
10255 ac_cpp_err=
10256 fi
10257else
10258 ac_cpp_err=yes
10259fi
10260if test -z "$ac_cpp_err"; then
10261 ac_header_preproc=yes
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_header_preproc=no
10267fi
10268rm -f conftest.err conftest.$ac_ext
10269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10270echo "${ECHO_T}$ac_header_preproc" >&6
10271
10272# So? What about this header?
10273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10274 yes:no: )
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10279 ac_header_preproc=yes
10280 ;;
10281 no:yes:* )
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10294 (
10295 cat <<\_ASBOX
10296## ------------------------------------------ ##
10297## Report this to the AC_PACKAGE_NAME lists. ##
10298## ------------------------------------------ ##
10299_ASBOX
10300 ) |
10301 sed "s/^/$as_me: WARNING: /" >&2
10302 ;;
10303esac
10304echo "$as_me:$LINENO: checking for $ac_header" >&5
10305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10306if eval "test \"\${$as_ac_Header+set}\" = set"; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 eval "$as_ac_Header=\$ac_header_preproc"
10310fi
10311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10313
10314fi
10315if test `eval echo '${'$as_ac_Header'}'` = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10318_ACEOF
10319
10320fi
10321
10322done
10323
10324
10325for ac_header in sys/fault.h
10326do
10327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10328if eval "test \"\${$as_ac_Header+set}\" = set"; then
10329 echo "$as_me:$LINENO: checking for $ac_header" >&5
10330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10331if eval "test \"\${$as_ac_Header+set}\" = set"; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333fi
10334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10336else
10337 # Is the header compilable?
10338echo "$as_me:$LINENO: checking $ac_header usability" >&5
10339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10340cat >conftest.$ac_ext <<_ACEOF
10341/* confdefs.h. */
10342_ACEOF
10343cat confdefs.h >>conftest.$ac_ext
10344cat >>conftest.$ac_ext <<_ACEOF
10345/* end confdefs.h. */
10346$ac_includes_default
10347#include <$ac_header>
10348_ACEOF
10349rm -f conftest.$ac_objext
10350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351 (eval $ac_compile) 2>conftest.er1
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest.$ac_objext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_header_compiler=yes
10372else
10373 echo "$as_me: failed program was:" >&5
10374sed 's/^/| /' conftest.$ac_ext >&5
10375
10376ac_header_compiler=no
10377fi
10378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10380echo "${ECHO_T}$ac_header_compiler" >&6
10381
10382# Is the header present?
10383echo "$as_me:$LINENO: checking $ac_header presence" >&5
10384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10385cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h. */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h. */
10391#include <$ac_header>
10392_ACEOF
10393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } >/dev/null; then
10401 if test -s conftest.err; then
10402 ac_cpp_err=$ac_c_preproc_warn_flag
10403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10404 else
10405 ac_cpp_err=
10406 fi
10407else
10408 ac_cpp_err=yes
10409fi
10410if test -z "$ac_cpp_err"; then
10411 ac_header_preproc=yes
10412else
10413 echo "$as_me: failed program was:" >&5
10414sed 's/^/| /' conftest.$ac_ext >&5
10415
10416 ac_header_preproc=no
10417fi
10418rm -f conftest.err conftest.$ac_ext
10419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10420echo "${ECHO_T}$ac_header_preproc" >&6
10421
10422# So? What about this header?
10423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10424 yes:no: )
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10429 ac_header_preproc=yes
10430 ;;
10431 no:yes:* )
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10444 (
10445 cat <<\_ASBOX
10446## ------------------------------------------ ##
10447## Report this to the AC_PACKAGE_NAME lists. ##
10448## ------------------------------------------ ##
10449_ASBOX
10450 ) |
10451 sed "s/^/$as_me: WARNING: /" >&2
10452 ;;
10453esac
10454echo "$as_me:$LINENO: checking for $ac_header" >&5
10455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10456if eval "test \"\${$as_ac_Header+set}\" = set"; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10458else
10459 eval "$as_ac_Header=\$ac_header_preproc"
10460fi
10461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10463
10464fi
10465if test `eval echo '${'$as_ac_Header'}'` = yes; then
10466 cat >>confdefs.h <<_ACEOF
10467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10468_ACEOF
10469
10470fi
10471
10472done
10473
10474
10475for ac_header in sys/file.h
10476do
10477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10478if eval "test \"\${$as_ac_Header+set}\" = set"; then
10479 echo "$as_me:$LINENO: checking for $ac_header" >&5
10480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10481if eval "test \"\${$as_ac_Header+set}\" = set"; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483fi
10484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10486else
10487 # Is the header compilable?
10488echo "$as_me:$LINENO: checking $ac_header usability" >&5
10489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10490cat >conftest.$ac_ext <<_ACEOF
10491/* confdefs.h. */
10492_ACEOF
10493cat confdefs.h >>conftest.$ac_ext
10494cat >>conftest.$ac_ext <<_ACEOF
10495/* end confdefs.h. */
10496$ac_includes_default
10497#include <$ac_header>
10498_ACEOF
10499rm -f conftest.$ac_objext
10500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_header_compiler=yes
10522else
10523 echo "$as_me: failed program was:" >&5
10524sed 's/^/| /' conftest.$ac_ext >&5
10525
10526ac_header_compiler=no
10527fi
10528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10530echo "${ECHO_T}$ac_header_compiler" >&6
10531
10532# Is the header present?
10533echo "$as_me:$LINENO: checking $ac_header presence" >&5
10534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10535cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
10541#include <$ac_header>
10542_ACEOF
10543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } >/dev/null; then
10551 if test -s conftest.err; then
10552 ac_cpp_err=$ac_c_preproc_warn_flag
10553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10554 else
10555 ac_cpp_err=
10556 fi
10557else
10558 ac_cpp_err=yes
10559fi
10560if test -z "$ac_cpp_err"; then
10561 ac_header_preproc=yes
10562else
10563 echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_header_preproc=no
10567fi
10568rm -f conftest.err conftest.$ac_ext
10569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10570echo "${ECHO_T}$ac_header_preproc" >&6
10571
10572# So? What about this header?
10573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10574 yes:no: )
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10579 ac_header_preproc=yes
10580 ;;
10581 no:yes:* )
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10585echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10589echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10594 (
10595 cat <<\_ASBOX
10596## ------------------------------------------ ##
10597## Report this to the AC_PACKAGE_NAME lists. ##
10598## ------------------------------------------ ##
10599_ASBOX
10600 ) |
10601 sed "s/^/$as_me: WARNING: /" >&2
10602 ;;
10603esac
10604echo "$as_me:$LINENO: checking for $ac_header" >&5
10605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10606if eval "test \"\${$as_ac_Header+set}\" = set"; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608else
10609 eval "$as_ac_Header=\$ac_header_preproc"
10610fi
10611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10613
10614fi
10615if test `eval echo '${'$as_ac_Header'}'` = yes; then
10616 cat >>confdefs.h <<_ACEOF
10617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10618_ACEOF
10619
10620fi
10621
10622done
10623
10624
10625for ac_header in sys/filio.h
10626do
10627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10628if eval "test \"\${$as_ac_Header+set}\" = set"; then
10629 echo "$as_me:$LINENO: checking for $ac_header" >&5
10630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10631if eval "test \"\${$as_ac_Header+set}\" = set"; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633fi
10634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10636else
10637 # Is the header compilable?
10638echo "$as_me:$LINENO: checking $ac_header usability" >&5
10639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10640cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h. */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h. */
10646$ac_includes_default
10647#include <$ac_header>
10648_ACEOF
10649rm -f conftest.$ac_objext
10650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651 (eval $ac_compile) 2>conftest.er1
10652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } &&
10658 { ac_try='test -z "$ac_c_werror_flag"
10659 || test ! -s conftest.err'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; } &&
10665 { ac_try='test -s conftest.$ac_objext'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_header_compiler=yes
10672else
10673 echo "$as_me: failed program was:" >&5
10674sed 's/^/| /' conftest.$ac_ext >&5
10675
10676ac_header_compiler=no
10677fi
10678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10680echo "${ECHO_T}$ac_header_compiler" >&6
10681
10682# Is the header present?
10683echo "$as_me:$LINENO: checking $ac_header presence" >&5
10684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10685cat >conftest.$ac_ext <<_ACEOF
10686/* confdefs.h. */
10687_ACEOF
10688cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h. */
10691#include <$ac_header>
10692_ACEOF
10693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } >/dev/null; then
10701 if test -s conftest.err; then
10702 ac_cpp_err=$ac_c_preproc_warn_flag
10703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10704 else
10705 ac_cpp_err=
10706 fi
10707else
10708 ac_cpp_err=yes
10709fi
10710if test -z "$ac_cpp_err"; then
10711 ac_header_preproc=yes
10712else
10713 echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 ac_header_preproc=no
10717fi
10718rm -f conftest.err conftest.$ac_ext
10719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10720echo "${ECHO_T}$ac_header_preproc" >&6
10721
10722# So? What about this header?
10723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10724 yes:no: )
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10729 ac_header_preproc=yes
10730 ;;
10731 no:yes:* )
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10744 (
10745 cat <<\_ASBOX
10746## ------------------------------------------ ##
10747## Report this to the AC_PACKAGE_NAME lists. ##
10748## ------------------------------------------ ##
10749_ASBOX
10750 ) |
10751 sed "s/^/$as_me: WARNING: /" >&2
10752 ;;
10753esac
10754echo "$as_me:$LINENO: checking for $ac_header" >&5
10755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10756if eval "test \"\${$as_ac_Header+set}\" = set"; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10758else
10759 eval "$as_ac_Header=\$ac_header_preproc"
10760fi
10761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10763
10764fi
10765if test `eval echo '${'$as_ac_Header'}'` = yes; then
10766 cat >>confdefs.h <<_ACEOF
10767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10768_ACEOF
10769
10770fi
10771
10772done
10773
10774
10775for ac_header in sys/ioctl.h
10776do
10777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10778if eval "test \"\${$as_ac_Header+set}\" = set"; then
10779 echo "$as_me:$LINENO: checking for $ac_header" >&5
10780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10781if eval "test \"\${$as_ac_Header+set}\" = set"; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783fi
10784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10786else
10787 # Is the header compilable?
10788echo "$as_me:$LINENO: checking $ac_header usability" >&5
10789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10790cat >conftest.$ac_ext <<_ACEOF
10791/* confdefs.h. */
10792_ACEOF
10793cat confdefs.h >>conftest.$ac_ext
10794cat >>conftest.$ac_ext <<_ACEOF
10795/* end confdefs.h. */
10796$ac_includes_default
10797#include <$ac_header>
10798_ACEOF
10799rm -f conftest.$ac_objext
10800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10801 (eval $ac_compile) 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -z "$ac_c_werror_flag"
10809 || test ! -s conftest.err'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest.$ac_objext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_header_compiler=yes
10822else
10823 echo "$as_me: failed program was:" >&5
10824sed 's/^/| /' conftest.$ac_ext >&5
10825
10826ac_header_compiler=no
10827fi
10828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10830echo "${ECHO_T}$ac_header_compiler" >&6
10831
10832# Is the header present?
10833echo "$as_me:$LINENO: checking $ac_header presence" >&5
10834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10835cat >conftest.$ac_ext <<_ACEOF
10836/* confdefs.h. */
10837_ACEOF
10838cat confdefs.h >>conftest.$ac_ext
10839cat >>conftest.$ac_ext <<_ACEOF
10840/* end confdefs.h. */
10841#include <$ac_header>
10842_ACEOF
10843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } >/dev/null; then
10851 if test -s conftest.err; then
10852 ac_cpp_err=$ac_c_preproc_warn_flag
10853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10854 else
10855 ac_cpp_err=
10856 fi
10857else
10858 ac_cpp_err=yes
10859fi
10860if test -z "$ac_cpp_err"; then
10861 ac_header_preproc=yes
10862else
10863 echo "$as_me: failed program was:" >&5
10864sed 's/^/| /' conftest.$ac_ext >&5
10865
10866 ac_header_preproc=no
10867fi
10868rm -f conftest.err conftest.$ac_ext
10869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10870echo "${ECHO_T}$ac_header_preproc" >&6
10871
10872# So? What about this header?
10873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10874 yes:no: )
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10879 ac_header_preproc=yes
10880 ;;
10881 no:yes:* )
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10894 (
10895 cat <<\_ASBOX
10896## ------------------------------------------ ##
10897## Report this to the AC_PACKAGE_NAME lists. ##
10898## ------------------------------------------ ##
10899_ASBOX
10900 ) |
10901 sed "s/^/$as_me: WARNING: /" >&2
10902 ;;
10903esac
10904echo "$as_me:$LINENO: checking for $ac_header" >&5
10905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10906if eval "test \"\${$as_ac_Header+set}\" = set"; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908else
10909 eval "$as_ac_Header=\$ac_header_preproc"
10910fi
10911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10913
10914fi
10915if test `eval echo '${'$as_ac_Header'}'` = yes; then
10916 cat >>confdefs.h <<_ACEOF
10917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10918_ACEOF
10919
10920fi
10921
10922done
10923
10924
10925for ac_header in sys/param.h
10926do
10927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10928if eval "test \"\${$as_ac_Header+set}\" = set"; then
10929 echo "$as_me:$LINENO: checking for $ac_header" >&5
10930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10931if eval "test \"\${$as_ac_Header+set}\" = set"; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933fi
10934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10936else
10937 # Is the header compilable?
10938echo "$as_me:$LINENO: checking $ac_header usability" >&5
10939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10940cat >conftest.$ac_ext <<_ACEOF
10941/* confdefs.h. */
10942_ACEOF
10943cat confdefs.h >>conftest.$ac_ext
10944cat >>conftest.$ac_ext <<_ACEOF
10945/* end confdefs.h. */
10946$ac_includes_default
10947#include <$ac_header>
10948_ACEOF
10949rm -f conftest.$ac_objext
10950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10951 (eval $ac_compile) 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -z "$ac_c_werror_flag"
10959 || test ! -s conftest.err'
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; } &&
10965 { ac_try='test -s conftest.$ac_objext'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10968 ac_status=$?
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10971 ac_header_compiler=yes
10972else
10973 echo "$as_me: failed program was:" >&5
10974sed 's/^/| /' conftest.$ac_ext >&5
10975
10976ac_header_compiler=no
10977fi
10978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10980echo "${ECHO_T}$ac_header_compiler" >&6
10981
10982# Is the header present?
10983echo "$as_me:$LINENO: checking $ac_header presence" >&5
10984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10985cat >conftest.$ac_ext <<_ACEOF
10986/* confdefs.h. */
10987_ACEOF
10988cat confdefs.h >>conftest.$ac_ext
10989cat >>conftest.$ac_ext <<_ACEOF
10990/* end confdefs.h. */
10991#include <$ac_header>
10992_ACEOF
10993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } >/dev/null; then
11001 if test -s conftest.err; then
11002 ac_cpp_err=$ac_c_preproc_warn_flag
11003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11004 else
11005 ac_cpp_err=
11006 fi
11007else
11008 ac_cpp_err=yes
11009fi
11010if test -z "$ac_cpp_err"; then
11011 ac_header_preproc=yes
11012else
11013 echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
11016 ac_header_preproc=no
11017fi
11018rm -f conftest.err conftest.$ac_ext
11019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11020echo "${ECHO_T}$ac_header_preproc" >&6
11021
11022# So? What about this header?
11023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11024 yes:no: )
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11029 ac_header_preproc=yes
11030 ;;
11031 no:yes:* )
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11044 (
11045 cat <<\_ASBOX
11046## ------------------------------------------ ##
11047## Report this to the AC_PACKAGE_NAME lists. ##
11048## ------------------------------------------ ##
11049_ASBOX
11050 ) |
11051 sed "s/^/$as_me: WARNING: /" >&2
11052 ;;
11053esac
11054echo "$as_me:$LINENO: checking for $ac_header" >&5
11055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11056if eval "test \"\${$as_ac_Header+set}\" = set"; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11058else
11059 eval "$as_ac_Header=\$ac_header_preproc"
11060fi
11061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11063
11064fi
11065if test `eval echo '${'$as_ac_Header'}'` = yes; then
11066 cat >>confdefs.h <<_ACEOF
11067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11068_ACEOF
11069
11070fi
11071
11072done
11073
11074
11075for ac_header in sys/proc.h
11076do
11077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11078if eval "test \"\${$as_ac_Header+set}\" = set"; then
11079 echo "$as_me:$LINENO: checking for $ac_header" >&5
11080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11081if eval "test \"\${$as_ac_Header+set}\" = set"; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083fi
11084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11086else
11087 # Is the header compilable?
11088echo "$as_me:$LINENO: checking $ac_header usability" >&5
11089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096$ac_includes_default
11097#include <$ac_header>
11098_ACEOF
11099rm -f conftest.$ac_objext
11100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11101 (eval $ac_compile) 2>conftest.er1
11102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } &&
11108 { ac_try='test -z "$ac_c_werror_flag"
11109 || test ! -s conftest.err'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest.$ac_objext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 ac_header_compiler=yes
11122else
11123 echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
11126ac_header_compiler=no
11127fi
11128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11130echo "${ECHO_T}$ac_header_compiler" >&6
11131
11132# Is the header present?
11133echo "$as_me:$LINENO: checking $ac_header presence" >&5
11134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11135cat >conftest.$ac_ext <<_ACEOF
11136/* confdefs.h. */
11137_ACEOF
11138cat confdefs.h >>conftest.$ac_ext
11139cat >>conftest.$ac_ext <<_ACEOF
11140/* end confdefs.h. */
11141#include <$ac_header>
11142_ACEOF
11143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11145 ac_status=$?
11146 grep -v '^ *+' conftest.er1 >conftest.err
11147 rm -f conftest.er1
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } >/dev/null; then
11151 if test -s conftest.err; then
11152 ac_cpp_err=$ac_c_preproc_warn_flag
11153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11154 else
11155 ac_cpp_err=
11156 fi
11157else
11158 ac_cpp_err=yes
11159fi
11160if test -z "$ac_cpp_err"; then
11161 ac_header_preproc=yes
11162else
11163 echo "$as_me: failed program was:" >&5
11164sed 's/^/| /' conftest.$ac_ext >&5
11165
11166 ac_header_preproc=no
11167fi
11168rm -f conftest.err conftest.$ac_ext
11169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11170echo "${ECHO_T}$ac_header_preproc" >&6
11171
11172# So? What about this header?
11173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11174 yes:no: )
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11179 ac_header_preproc=yes
11180 ;;
11181 no:yes:* )
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11194 (
11195 cat <<\_ASBOX
11196## ------------------------------------------ ##
11197## Report this to the AC_PACKAGE_NAME lists. ##
11198## ------------------------------------------ ##
11199_ASBOX
11200 ) |
11201 sed "s/^/$as_me: WARNING: /" >&2
11202 ;;
11203esac
11204echo "$as_me:$LINENO: checking for $ac_header" >&5
11205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11206if eval "test \"\${$as_ac_Header+set}\" = set"; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208else
11209 eval "$as_ac_Header=\$ac_header_preproc"
11210fi
11211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11213
11214fi
11215if test `eval echo '${'$as_ac_Header'}'` = yes; then
11216 cat >>confdefs.h <<_ACEOF
11217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11218_ACEOF
11219
11220fi
11221
11222done
11223
11224
11225for ac_header in sys/procfs.h
11226do
11227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228if eval "test \"\${$as_ac_Header+set}\" = set"; then
11229 echo "$as_me:$LINENO: checking for $ac_header" >&5
11230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11231if eval "test \"\${$as_ac_Header+set}\" = set"; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233fi
11234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11236else
11237 # Is the header compilable?
11238echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11240cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246$ac_includes_default
11247#include <$ac_header>
11248_ACEOF
11249rm -f conftest.$ac_objext
11250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_header_compiler=yes
11272else
11273 echo "$as_me: failed program was:" >&5
11274sed 's/^/| /' conftest.$ac_ext >&5
11275
11276ac_header_compiler=no
11277fi
11278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11280echo "${ECHO_T}$ac_header_compiler" >&6
11281
11282# Is the header present?
11283echo "$as_me:$LINENO: checking $ac_header presence" >&5
11284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11285cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291#include <$ac_header>
11292_ACEOF
11293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } >/dev/null; then
11301 if test -s conftest.err; then
11302 ac_cpp_err=$ac_c_preproc_warn_flag
11303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11304 else
11305 ac_cpp_err=
11306 fi
11307else
11308 ac_cpp_err=yes
11309fi
11310if test -z "$ac_cpp_err"; then
11311 ac_header_preproc=yes
11312else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 ac_header_preproc=no
11317fi
11318rm -f conftest.err conftest.$ac_ext
11319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11320echo "${ECHO_T}$ac_header_preproc" >&6
11321
11322# So? What about this header?
11323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324 yes:no: )
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11329 ac_header_preproc=yes
11330 ;;
11331 no:yes:* )
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11344 (
11345 cat <<\_ASBOX
11346## ------------------------------------------ ##
11347## Report this to the AC_PACKAGE_NAME lists. ##
11348## ------------------------------------------ ##
11349_ASBOX
11350 ) |
11351 sed "s/^/$as_me: WARNING: /" >&2
11352 ;;
11353esac
11354echo "$as_me:$LINENO: checking for $ac_header" >&5
11355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11356if eval "test \"\${$as_ac_Header+set}\" = set"; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358else
11359 eval "$as_ac_Header=\$ac_header_preproc"
11360fi
11361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11363
11364fi
11365if test `eval echo '${'$as_ac_Header'}'` = yes; then
11366 cat >>confdefs.h <<_ACEOF
11367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11368_ACEOF
11369
11370fi
11371
11372done
11373
11374
11375
11376for ac_header in sys/ptrace.h ptrace.h
11377do
11378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11379if eval "test \"\${$as_ac_Header+set}\" = set"; then
11380 echo "$as_me:$LINENO: checking for $ac_header" >&5
11381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11382if eval "test \"\${$as_ac_Header+set}\" = set"; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384fi
11385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11387else
11388 # Is the header compilable?
11389echo "$as_me:$LINENO: checking $ac_header usability" >&5
11390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11391cat >conftest.$ac_ext <<_ACEOF
11392/* confdefs.h. */
11393_ACEOF
11394cat confdefs.h >>conftest.$ac_ext
11395cat >>conftest.$ac_ext <<_ACEOF
11396/* end confdefs.h. */
11397$ac_includes_default
11398#include <$ac_header>
11399_ACEOF
11400rm -f conftest.$ac_objext
11401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
11409 { ac_try='test -z "$ac_c_werror_flag"
11410 || test ! -s conftest.err'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest.$ac_objext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_header_compiler=yes
11423else
11424 echo "$as_me: failed program was:" >&5
11425sed 's/^/| /' conftest.$ac_ext >&5
11426
11427ac_header_compiler=no
11428fi
11429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11431echo "${ECHO_T}$ac_header_compiler" >&6
11432
11433# Is the header present?
11434echo "$as_me:$LINENO: checking $ac_header presence" >&5
11435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11436cat >conftest.$ac_ext <<_ACEOF
11437/* confdefs.h. */
11438_ACEOF
11439cat confdefs.h >>conftest.$ac_ext
11440cat >>conftest.$ac_ext <<_ACEOF
11441/* end confdefs.h. */
11442#include <$ac_header>
11443_ACEOF
11444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } >/dev/null; then
11452 if test -s conftest.err; then
11453 ac_cpp_err=$ac_c_preproc_warn_flag
11454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11455 else
11456 ac_cpp_err=
11457 fi
11458else
11459 ac_cpp_err=yes
11460fi
11461if test -z "$ac_cpp_err"; then
11462 ac_header_preproc=yes
11463else
11464 echo "$as_me: failed program was:" >&5
11465sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 ac_header_preproc=no
11468fi
11469rm -f conftest.err conftest.$ac_ext
11470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471echo "${ECHO_T}$ac_header_preproc" >&6
11472
11473# So? What about this header?
11474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11475 yes:no: )
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc=yes
11481 ;;
11482 no:yes:* )
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11495 (
11496 cat <<\_ASBOX
11497## ------------------------------------------ ##
11498## Report this to the AC_PACKAGE_NAME lists. ##
11499## ------------------------------------------ ##
11500_ASBOX
11501 ) |
11502 sed "s/^/$as_me: WARNING: /" >&2
11503 ;;
11504esac
11505echo "$as_me:$LINENO: checking for $ac_header" >&5
11506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11507if eval "test \"\${$as_ac_Header+set}\" = set"; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 eval "$as_ac_Header=\$ac_header_preproc"
11511fi
11512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11514
11515fi
11516if test `eval echo '${'$as_ac_Header'}'` = yes; then
11517 cat >>confdefs.h <<_ACEOF
11518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11519_ACEOF
11520
11521fi
11522
11523done
11524
11525
11526
11527for ac_header in sys/reg.h sys/debugreg.h
11528do
11529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11530if eval "test \"\${$as_ac_Header+set}\" = set"; then
11531 echo "$as_me:$LINENO: checking for $ac_header" >&5
11532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11533if eval "test \"\${$as_ac_Header+set}\" = set"; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535fi
11536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11538else
11539 # Is the header compilable?
11540echo "$as_me:$LINENO: checking $ac_header usability" >&5
11541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11542cat >conftest.$ac_ext <<_ACEOF
11543/* confdefs.h. */
11544_ACEOF
11545cat confdefs.h >>conftest.$ac_ext
11546cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h. */
11548$ac_includes_default
11549#include <$ac_header>
11550_ACEOF
11551rm -f conftest.$ac_objext
11552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553 (eval $ac_compile) 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag"
11561 || test ! -s conftest.err'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_header_compiler=yes
11574else
11575 echo "$as_me: failed program was:" >&5
11576sed 's/^/| /' conftest.$ac_ext >&5
11577
11578ac_header_compiler=no
11579fi
11580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11582echo "${ECHO_T}$ac_header_compiler" >&6
11583
11584# Is the header present?
11585echo "$as_me:$LINENO: checking $ac_header presence" >&5
11586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11587cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
11593#include <$ac_header>
11594_ACEOF
11595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } >/dev/null; then
11603 if test -s conftest.err; then
11604 ac_cpp_err=$ac_c_preproc_warn_flag
11605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11606 else
11607 ac_cpp_err=
11608 fi
11609else
11610 ac_cpp_err=yes
11611fi
11612if test -z "$ac_cpp_err"; then
11613 ac_header_preproc=yes
11614else
11615 echo "$as_me: failed program was:" >&5
11616sed 's/^/| /' conftest.$ac_ext >&5
11617
11618 ac_header_preproc=no
11619fi
11620rm -f conftest.err conftest.$ac_ext
11621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11622echo "${ECHO_T}$ac_header_preproc" >&6
11623
11624# So? What about this header?
11625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11626 yes:no: )
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11631 ac_header_preproc=yes
11632 ;;
11633 no:yes:* )
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11646 (
11647 cat <<\_ASBOX
11648## ------------------------------------------ ##
11649## Report this to the AC_PACKAGE_NAME lists. ##
11650## ------------------------------------------ ##
11651_ASBOX
11652 ) |
11653 sed "s/^/$as_me: WARNING: /" >&2
11654 ;;
11655esac
11656echo "$as_me:$LINENO: checking for $ac_header" >&5
11657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11658if eval "test \"\${$as_ac_Header+set}\" = set"; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660else
11661 eval "$as_ac_Header=\$ac_header_preproc"
11662fi
11663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11665
11666fi
11667if test `eval echo '${'$as_ac_Header'}'` = yes; then
11668 cat >>confdefs.h <<_ACEOF
11669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11670_ACEOF
11671
11672fi
11673
11674done
11675
11676
11677for ac_header in sys/select.h
11678do
11679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11680if eval "test \"\${$as_ac_Header+set}\" = set"; then
11681 echo "$as_me:$LINENO: checking for $ac_header" >&5
11682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11683if eval "test \"\${$as_ac_Header+set}\" = set"; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685fi
11686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11688else
11689 # Is the header compilable?
11690echo "$as_me:$LINENO: checking $ac_header usability" >&5
11691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11692cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
11698$ac_includes_default
11699#include <$ac_header>
11700_ACEOF
11701rm -f conftest.$ac_objext
11702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703 (eval $ac_compile) 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag"
11711 || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest.$ac_objext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 ac_header_compiler=yes
11724else
11725 echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
11728ac_header_compiler=no
11729fi
11730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11732echo "${ECHO_T}$ac_header_compiler" >&6
11733
11734# Is the header present?
11735echo "$as_me:$LINENO: checking $ac_header presence" >&5
11736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11737cat >conftest.$ac_ext <<_ACEOF
11738/* confdefs.h. */
11739_ACEOF
11740cat confdefs.h >>conftest.$ac_ext
11741cat >>conftest.$ac_ext <<_ACEOF
11742/* end confdefs.h. */
11743#include <$ac_header>
11744_ACEOF
11745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } >/dev/null; then
11753 if test -s conftest.err; then
11754 ac_cpp_err=$ac_c_preproc_warn_flag
11755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11756 else
11757 ac_cpp_err=
11758 fi
11759else
11760 ac_cpp_err=yes
11761fi
11762if test -z "$ac_cpp_err"; then
11763 ac_header_preproc=yes
11764else
11765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768 ac_header_preproc=no
11769fi
11770rm -f conftest.err conftest.$ac_ext
11771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11772echo "${ECHO_T}$ac_header_preproc" >&6
11773
11774# So? What about this header?
11775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11776 yes:no: )
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11780echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11781 ac_header_preproc=yes
11782 ;;
11783 no:yes:* )
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11785echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11787echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11789echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11791echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11796 (
11797 cat <<\_ASBOX
11798## ------------------------------------------ ##
11799## Report this to the AC_PACKAGE_NAME lists. ##
11800## ------------------------------------------ ##
11801_ASBOX
11802 ) |
11803 sed "s/^/$as_me: WARNING: /" >&2
11804 ;;
11805esac
11806echo "$as_me:$LINENO: checking for $ac_header" >&5
11807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11808if eval "test \"\${$as_ac_Header+set}\" = set"; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810else
11811 eval "$as_ac_Header=\$ac_header_preproc"
11812fi
11813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11815
11816fi
11817if test `eval echo '${'$as_ac_Header'}'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11820_ACEOF
11821
11822fi
11823
11824done
11825
11826
11827for ac_header in sys/syscall.h
11828do
11829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11830if eval "test \"\${$as_ac_Header+set}\" = set"; then
11831 echo "$as_me:$LINENO: checking for $ac_header" >&5
11832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11833if eval "test \"\${$as_ac_Header+set}\" = set"; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835fi
11836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11838else
11839 # Is the header compilable?
11840echo "$as_me:$LINENO: checking $ac_header usability" >&5
11841echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11842cat >conftest.$ac_ext <<_ACEOF
11843/* confdefs.h. */
11844_ACEOF
11845cat confdefs.h >>conftest.$ac_ext
11846cat >>conftest.$ac_ext <<_ACEOF
11847/* end confdefs.h. */
11848$ac_includes_default
11849#include <$ac_header>
11850_ACEOF
11851rm -f conftest.$ac_objext
11852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11853 (eval $ac_compile) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest.$ac_objext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ac_header_compiler=yes
11874else
11875 echo "$as_me: failed program was:" >&5
11876sed 's/^/| /' conftest.$ac_ext >&5
11877
11878ac_header_compiler=no
11879fi
11880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11882echo "${ECHO_T}$ac_header_compiler" >&6
11883
11884# Is the header present?
11885echo "$as_me:$LINENO: checking $ac_header presence" >&5
11886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11887cat >conftest.$ac_ext <<_ACEOF
11888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
11893#include <$ac_header>
11894_ACEOF
11895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } >/dev/null; then
11903 if test -s conftest.err; then
11904 ac_cpp_err=$ac_c_preproc_warn_flag
11905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11906 else
11907 ac_cpp_err=
11908 fi
11909else
11910 ac_cpp_err=yes
11911fi
11912if test -z "$ac_cpp_err"; then
11913 ac_header_preproc=yes
11914else
11915 echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_header_preproc=no
11919fi
11920rm -f conftest.err conftest.$ac_ext
11921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11922echo "${ECHO_T}$ac_header_preproc" >&6
11923
11924# So? What about this header?
11925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11926 yes:no: )
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11930echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11931 ac_header_preproc=yes
11932 ;;
11933 no:yes:* )
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11939echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11941echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11945echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11946 (
11947 cat <<\_ASBOX
11948## ------------------------------------------ ##
11949## Report this to the AC_PACKAGE_NAME lists. ##
11950## ------------------------------------------ ##
11951_ASBOX
11952 ) |
11953 sed "s/^/$as_me: WARNING: /" >&2
11954 ;;
11955esac
11956echo "$as_me:$LINENO: checking for $ac_header" >&5
11957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11958if eval "test \"\${$as_ac_Header+set}\" = set"; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960else
11961 eval "$as_ac_Header=\$ac_header_preproc"
11962fi
11963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11965
11966fi
11967if test `eval echo '${'$as_ac_Header'}'` = yes; then
11968 cat >>confdefs.h <<_ACEOF
11969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11970_ACEOF
11971
11972fi
11973
11974done
11975
11976
11977for ac_header in sys/types.h
11978do
11979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11980if eval "test \"\${$as_ac_Header+set}\" = set"; then
11981 echo "$as_me:$LINENO: checking for $ac_header" >&5
11982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11983if eval "test \"\${$as_ac_Header+set}\" = set"; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985fi
11986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11988else
11989 # Is the header compilable?
11990echo "$as_me:$LINENO: checking $ac_header usability" >&5
11991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11992cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h. */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */
11998$ac_includes_default
11999#include <$ac_header>
12000_ACEOF
12001rm -f conftest.$ac_objext
12002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12003 (eval $ac_compile) 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag"
12011 || test ! -s conftest.err'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest.$ac_objext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_header_compiler=yes
12024else
12025 echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028ac_header_compiler=no
12029fi
12030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12032echo "${ECHO_T}$ac_header_compiler" >&6
12033
12034# Is the header present?
12035echo "$as_me:$LINENO: checking $ac_header presence" >&5
12036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12037cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043#include <$ac_header>
12044_ACEOF
12045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12047 ac_status=$?
12048 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } >/dev/null; then
12053 if test -s conftest.err; then
12054 ac_cpp_err=$ac_c_preproc_warn_flag
12055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12056 else
12057 ac_cpp_err=
12058 fi
12059else
12060 ac_cpp_err=yes
12061fi
12062if test -z "$ac_cpp_err"; then
12063 ac_header_preproc=yes
12064else
12065 echo "$as_me: failed program was:" >&5
12066sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 ac_header_preproc=no
12069fi
12070rm -f conftest.err conftest.$ac_ext
12071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12072echo "${ECHO_T}$ac_header_preproc" >&6
12073
12074# So? What about this header?
12075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12076 yes:no: )
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12081 ac_header_preproc=yes
12082 ;;
12083 no:yes:* )
12084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12087echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12091echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12096 (
12097 cat <<\_ASBOX
12098## ------------------------------------------ ##
12099## Report this to the AC_PACKAGE_NAME lists. ##
12100## ------------------------------------------ ##
12101_ASBOX
12102 ) |
12103 sed "s/^/$as_me: WARNING: /" >&2
12104 ;;
12105esac
12106echo "$as_me:$LINENO: checking for $ac_header" >&5
12107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12108if eval "test \"\${$as_ac_Header+set}\" = set"; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110else
12111 eval "$as_ac_Header=\$ac_header_preproc"
12112fi
12113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12115
12116fi
12117if test `eval echo '${'$as_ac_Header'}'` = yes; then
12118 cat >>confdefs.h <<_ACEOF
12119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12120_ACEOF
12121
12122fi
12123
12124done
12125
12126
12127for ac_header in sys/user.h
12128do
12129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12130if eval "test \"\${$as_ac_Header+set}\" = set"; then
12131 echo "$as_me:$LINENO: checking for $ac_header" >&5
12132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12133if eval "test \"\${$as_ac_Header+set}\" = set"; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135fi
12136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12138else
12139 # Is the header compilable?
12140echo "$as_me:$LINENO: checking $ac_header usability" >&5
12141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12142cat >conftest.$ac_ext <<_ACEOF
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
12148$ac_includes_default
12149#include <$ac_header>
12150_ACEOF
12151rm -f conftest.$ac_objext
12152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest.$ac_objext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_header_compiler=yes
12174else
12175 echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
12178ac_header_compiler=no
12179fi
12180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12182echo "${ECHO_T}$ac_header_compiler" >&6
12183
12184# Is the header present?
12185echo "$as_me:$LINENO: checking $ac_header presence" >&5
12186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12187cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h. */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h. */
12193#include <$ac_header>
12194_ACEOF
12195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } >/dev/null; then
12203 if test -s conftest.err; then
12204 ac_cpp_err=$ac_c_preproc_warn_flag
12205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12206 else
12207 ac_cpp_err=
12208 fi
12209else
12210 ac_cpp_err=yes
12211fi
12212if test -z "$ac_cpp_err"; then
12213 ac_header_preproc=yes
12214else
12215 echo "$as_me: failed program was:" >&5
12216sed 's/^/| /' conftest.$ac_ext >&5
12217
12218 ac_header_preproc=no
12219fi
12220rm -f conftest.err conftest.$ac_ext
12221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12222echo "${ECHO_T}$ac_header_preproc" >&6
12223
12224# So? What about this header?
12225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12226 yes:no: )
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12231 ac_header_preproc=yes
12232 ;;
12233 no:yes:* )
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12246 (
12247 cat <<\_ASBOX
12248## ------------------------------------------ ##
12249## Report this to the AC_PACKAGE_NAME lists. ##
12250## ------------------------------------------ ##
12251_ASBOX
12252 ) |
12253 sed "s/^/$as_me: WARNING: /" >&2
12254 ;;
12255esac
12256echo "$as_me:$LINENO: checking for $ac_header" >&5
12257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12258if eval "test \"\${$as_ac_Header+set}\" = set"; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12260else
12261 eval "$as_ac_Header=\$ac_header_preproc"
12262fi
12263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12265
12266fi
12267if test `eval echo '${'$as_ac_Header'}'` = yes; then
12268 cat >>confdefs.h <<_ACEOF
12269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12270_ACEOF
12271
12272fi
12273
12274done
12275
12276
12277
12278for ac_header in sys/wait.h wait.h
12279do
12280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12281if eval "test \"\${$as_ac_Header+set}\" = set"; then
12282 echo "$as_me:$LINENO: checking for $ac_header" >&5
12283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12284if eval "test \"\${$as_ac_Header+set}\" = set"; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286fi
12287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12289else
12290 # Is the header compilable?
12291echo "$as_me:$LINENO: checking $ac_header usability" >&5
12292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12293cat >conftest.$ac_ext <<_ACEOF
12294/* confdefs.h. */
12295_ACEOF
12296cat confdefs.h >>conftest.$ac_ext
12297cat >>conftest.$ac_ext <<_ACEOF
12298/* end confdefs.h. */
12299$ac_includes_default
12300#include <$ac_header>
12301_ACEOF
12302rm -f conftest.$ac_objext
12303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>conftest.er1
12305 ac_status=$?
12306 grep -v '^ *+' conftest.er1 >conftest.err
12307 rm -f conftest.er1
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -z "$ac_c_werror_flag"
12312 || test ! -s conftest.err'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest.$ac_objext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_header_compiler=yes
12325else
12326 echo "$as_me: failed program was:" >&5
12327sed 's/^/| /' conftest.$ac_ext >&5
12328
12329ac_header_compiler=no
12330fi
12331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12333echo "${ECHO_T}$ac_header_compiler" >&6
12334
12335# Is the header present?
12336echo "$as_me:$LINENO: checking $ac_header presence" >&5
12337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12338cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
12344#include <$ac_header>
12345_ACEOF
12346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12348 ac_status=$?
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } >/dev/null; then
12354 if test -s conftest.err; then
12355 ac_cpp_err=$ac_c_preproc_warn_flag
12356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12357 else
12358 ac_cpp_err=
12359 fi
12360else
12361 ac_cpp_err=yes
12362fi
12363if test -z "$ac_cpp_err"; then
12364 ac_header_preproc=yes
12365else
12366 echo "$as_me: failed program was:" >&5
12367sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_header_preproc=no
12370fi
12371rm -f conftest.err conftest.$ac_ext
12372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12373echo "${ECHO_T}$ac_header_preproc" >&6
12374
12375# So? What about this header?
12376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12377 yes:no: )
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12382 ac_header_preproc=yes
12383 ;;
12384 no:yes:* )
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12397 (
12398 cat <<\_ASBOX
12399## ------------------------------------------ ##
12400## Report this to the AC_PACKAGE_NAME lists. ##
12401## ------------------------------------------ ##
12402_ASBOX
12403 ) |
12404 sed "s/^/$as_me: WARNING: /" >&2
12405 ;;
12406esac
12407echo "$as_me:$LINENO: checking for $ac_header" >&5
12408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12409if eval "test \"\${$as_ac_Header+set}\" = set"; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411else
12412 eval "$as_ac_Header=\$ac_header_preproc"
12413fi
12414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12416
12417fi
12418if test `eval echo '${'$as_ac_Header'}'` = yes; then
12419 cat >>confdefs.h <<_ACEOF
12420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12421_ACEOF
12422
12423fi
12424
12425done
12426
12427
12428
12429
12430for ac_header in termios.h termio.h sgtty.h
12431do
12432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12433if eval "test \"\${$as_ac_Header+set}\" = set"; then
12434 echo "$as_me:$LINENO: checking for $ac_header" >&5
12435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12436if eval "test \"\${$as_ac_Header+set}\" = set"; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438fi
12439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12441else
12442 # Is the header compilable?
12443echo "$as_me:$LINENO: checking $ac_header usability" >&5
12444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12445cat >conftest.$ac_ext <<_ACEOF
12446/* confdefs.h. */
12447_ACEOF
12448cat confdefs.h >>conftest.$ac_ext
12449cat >>conftest.$ac_ext <<_ACEOF
12450/* end confdefs.h. */
12451$ac_includes_default
12452#include <$ac_header>
12453_ACEOF
12454rm -f conftest.$ac_objext
12455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456 (eval $ac_compile) 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest.$ac_objext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_header_compiler=yes
12477else
12478 echo "$as_me: failed program was:" >&5
12479sed 's/^/| /' conftest.$ac_ext >&5
12480
12481ac_header_compiler=no
12482fi
12483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12485echo "${ECHO_T}$ac_header_compiler" >&6
12486
12487# Is the header present?
12488echo "$as_me:$LINENO: checking $ac_header presence" >&5
12489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12490cat >conftest.$ac_ext <<_ACEOF
12491/* confdefs.h. */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h. */
12496#include <$ac_header>
12497_ACEOF
12498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } >/dev/null; then
12506 if test -s conftest.err; then
12507 ac_cpp_err=$ac_c_preproc_warn_flag
12508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12509 else
12510 ac_cpp_err=
12511 fi
12512else
12513 ac_cpp_err=yes
12514fi
12515if test -z "$ac_cpp_err"; then
12516 ac_header_preproc=yes
12517else
12518 echo "$as_me: failed program was:" >&5
12519sed 's/^/| /' conftest.$ac_ext >&5
12520
12521 ac_header_preproc=no
12522fi
12523rm -f conftest.err conftest.$ac_ext
12524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12525echo "${ECHO_T}$ac_header_preproc" >&6
12526
12527# So? What about this header?
12528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12529 yes:no: )
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12534 ac_header_preproc=yes
12535 ;;
12536 no:yes:* )
12537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12549 (
12550 cat <<\_ASBOX
12551## ------------------------------------------ ##
12552## Report this to the AC_PACKAGE_NAME lists. ##
12553## ------------------------------------------ ##
12554_ASBOX
12555 ) |
12556 sed "s/^/$as_me: WARNING: /" >&2
12557 ;;
12558esac
12559echo "$as_me:$LINENO: checking for $ac_header" >&5
12560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12561if eval "test \"\${$as_ac_Header+set}\" = set"; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563else
12564 eval "$as_ac_Header=\$ac_header_preproc"
12565fi
12566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12568
12569fi
12570if test `eval echo '${'$as_ac_Header'}'` = yes; then
12571 cat >>confdefs.h <<_ACEOF
12572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12573_ACEOF
12574
12575fi
12576
12577done
12578
12579
12580for ac_header in unistd.h
12581do
12582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12583if eval "test \"\${$as_ac_Header+set}\" = set"; then
12584 echo "$as_me:$LINENO: checking for $ac_header" >&5
12585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12586if eval "test \"\${$as_ac_Header+set}\" = set"; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588fi
12589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12591else
12592 # Is the header compilable?
12593echo "$as_me:$LINENO: checking $ac_header usability" >&5
12594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12595cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
12601$ac_includes_default
12602#include <$ac_header>
12603_ACEOF
12604rm -f conftest.$ac_objext
12605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_header_compiler=yes
12627else
12628 echo "$as_me: failed program was:" >&5
12629sed 's/^/| /' conftest.$ac_ext >&5
12630
12631ac_header_compiler=no
12632fi
12633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12635echo "${ECHO_T}$ac_header_compiler" >&6
12636
12637# Is the header present?
12638echo "$as_me:$LINENO: checking $ac_header presence" >&5
12639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12640cat >conftest.$ac_ext <<_ACEOF
12641/* confdefs.h. */
12642_ACEOF
12643cat confdefs.h >>conftest.$ac_ext
12644cat >>conftest.$ac_ext <<_ACEOF
12645/* end confdefs.h. */
12646#include <$ac_header>
12647_ACEOF
12648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } >/dev/null; then
12656 if test -s conftest.err; then
12657 ac_cpp_err=$ac_c_preproc_warn_flag
12658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12659 else
12660 ac_cpp_err=
12661 fi
12662else
12663 ac_cpp_err=yes
12664fi
12665if test -z "$ac_cpp_err"; then
12666 ac_header_preproc=yes
12667else
12668 echo "$as_me: failed program was:" >&5
12669sed 's/^/| /' conftest.$ac_ext >&5
12670
12671 ac_header_preproc=no
12672fi
12673rm -f conftest.err conftest.$ac_ext
12674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12675echo "${ECHO_T}$ac_header_preproc" >&6
12676
12677# So? What about this header?
12678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12679 yes:no: )
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12684 ac_header_preproc=yes
12685 ;;
12686 no:yes:* )
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12699 (
12700 cat <<\_ASBOX
12701## ------------------------------------------ ##
12702## Report this to the AC_PACKAGE_NAME lists. ##
12703## ------------------------------------------ ##
12704_ASBOX
12705 ) |
12706 sed "s/^/$as_me: WARNING: /" >&2
12707 ;;
12708esac
12709echo "$as_me:$LINENO: checking for $ac_header" >&5
12710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12711if eval "test \"\${$as_ac_Header+set}\" = set"; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713else
12714 eval "$as_ac_Header=\$ac_header_preproc"
12715fi
12716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12718
12719fi
12720if test `eval echo '${'$as_ac_Header'}'` = yes; then
12721 cat >>confdefs.h <<_ACEOF
12722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12723_ACEOF
12724
12725fi
12726
12727done
12728
12729
12730# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12731# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12732# think that we don't have <curses.h> if we're using GCC.
12733case $host_os in
12734 solaris2.[789])
12735 if test "$GCC" = yes; then
12736
12737cat >>confdefs.h <<\_ACEOF
12738#define _MSE_INT_H 1
12739_ACEOF
12740
12741 fi ;;
12742esac
12743
12744
12745
12746
12747for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12748do
12749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12750if eval "test \"\${$as_ac_Header+set}\" = set"; then
12751 echo "$as_me:$LINENO: checking for $ac_header" >&5
12752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12753if eval "test \"\${$as_ac_Header+set}\" = set"; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755fi
12756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12758else
12759 # Is the header compilable?
12760echo "$as_me:$LINENO: checking $ac_header usability" >&5
12761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12762cat >conftest.$ac_ext <<_ACEOF
12763/* confdefs.h. */
12764_ACEOF
12765cat confdefs.h >>conftest.$ac_ext
12766cat >>conftest.$ac_ext <<_ACEOF
12767/* end confdefs.h. */
12768$ac_includes_default
12769#include <$ac_header>
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -z "$ac_c_werror_flag"
12781 || test ! -s conftest.err'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest.$ac_objext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_header_compiler=yes
12794else
12795 echo "$as_me: failed program was:" >&5
12796sed 's/^/| /' conftest.$ac_ext >&5
12797
12798ac_header_compiler=no
12799fi
12800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12801echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12802echo "${ECHO_T}$ac_header_compiler" >&6
12803
12804# Is the header present?
12805echo "$as_me:$LINENO: checking $ac_header presence" >&5
12806echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12807cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h. */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h. */
12813#include <$ac_header>
12814_ACEOF
12815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } >/dev/null; then
12823 if test -s conftest.err; then
12824 ac_cpp_err=$ac_c_preproc_warn_flag
12825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12826 else
12827 ac_cpp_err=
12828 fi
12829else
12830 ac_cpp_err=yes
12831fi
12832if test -z "$ac_cpp_err"; then
12833 ac_header_preproc=yes
12834else
12835 echo "$as_me: failed program was:" >&5
12836sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 ac_header_preproc=no
12839fi
12840rm -f conftest.err conftest.$ac_ext
12841echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12842echo "${ECHO_T}$ac_header_preproc" >&6
12843
12844# So? What about this header?
12845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12846 yes:no: )
12847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12851 ac_header_preproc=yes
12852 ;;
12853 no:yes:* )
12854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12866 (
12867 cat <<\_ASBOX
12868## ------------------------------------------ ##
12869## Report this to the AC_PACKAGE_NAME lists. ##
12870## ------------------------------------------ ##
12871_ASBOX
12872 ) |
12873 sed "s/^/$as_me: WARNING: /" >&2
12874 ;;
12875esac
12876echo "$as_me:$LINENO: checking for $ac_header" >&5
12877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12878if eval "test \"\${$as_ac_Header+set}\" = set"; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880else
12881 eval "$as_ac_Header=\$ac_header_preproc"
12882fi
12883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12885
12886fi
12887if test `eval echo '${'$as_ac_Header'}'` = yes; then
12888 cat >>confdefs.h <<_ACEOF
12889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12890_ACEOF
12891
12892fi
12893
12894done
12895
12896
12897
12898for ac_header in ncurses/term.h term.h
12899do
12900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12901if eval "test \"\${$as_ac_Header+set}\" = set"; then
12902 echo "$as_me:$LINENO: checking for $ac_header" >&5
12903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12904if eval "test \"\${$as_ac_Header+set}\" = set"; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906fi
12907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12909else
12910 # Is the header compilable?
12911echo "$as_me:$LINENO: checking $ac_header usability" >&5
12912echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12913cat >conftest.$ac_ext <<_ACEOF
12914/* confdefs.h. */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
12918/* end confdefs.h. */
12919$ac_includes_default
12920#include <$ac_header>
12921_ACEOF
12922rm -f conftest.$ac_objext
12923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12924 (eval $ac_compile) 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest.$ac_objext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_header_compiler=yes
12945else
12946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949ac_header_compiler=no
12950fi
12951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12953echo "${ECHO_T}$ac_header_compiler" >&6
12954
12955# Is the header present?
12956echo "$as_me:$LINENO: checking $ac_header presence" >&5
12957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12958cat >conftest.$ac_ext <<_ACEOF
12959/* confdefs.h. */
12960_ACEOF
12961cat confdefs.h >>conftest.$ac_ext
12962cat >>conftest.$ac_ext <<_ACEOF
12963/* end confdefs.h. */
12964#include <$ac_header>
12965_ACEOF
12966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } >/dev/null; then
12974 if test -s conftest.err; then
12975 ac_cpp_err=$ac_c_preproc_warn_flag
12976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12977 else
12978 ac_cpp_err=
12979 fi
12980else
12981 ac_cpp_err=yes
12982fi
12983if test -z "$ac_cpp_err"; then
12984 ac_header_preproc=yes
12985else
12986 echo "$as_me: failed program was:" >&5
12987sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 ac_header_preproc=no
12990fi
12991rm -f conftest.err conftest.$ac_ext
12992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12993echo "${ECHO_T}$ac_header_preproc" >&6
12994
12995# So? What about this header?
12996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12997 yes:no: )
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13002 ac_header_preproc=yes
13003 ;;
13004 no:yes:* )
13005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13017 (
13018 cat <<\_ASBOX
13019## ------------------------------------------ ##
13020## Report this to the AC_PACKAGE_NAME lists. ##
13021## ------------------------------------------ ##
13022_ASBOX
13023 ) |
13024 sed "s/^/$as_me: WARNING: /" >&2
13025 ;;
13026esac
13027echo "$as_me:$LINENO: checking for $ac_header" >&5
13028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13029if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031else
13032 eval "$as_ac_Header=\$ac_header_preproc"
13033fi
13034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13036
13037fi
13038if test `eval echo '${'$as_ac_Header'}'` = yes; then
13039 cat >>confdefs.h <<_ACEOF
13040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13041_ACEOF
13042
13043fi
13044
13045done
13046
13047
13048# FIXME: kettenis/20030102: In most cases we include these
13049# unconditionally, so what's the point in checking these?
13050
13051
13052for ac_header in ctype.h time.h
13053do
13054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13055if eval "test \"\${$as_ac_Header+set}\" = set"; then
13056 echo "$as_me:$LINENO: checking for $ac_header" >&5
13057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13058if eval "test \"\${$as_ac_Header+set}\" = set"; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13060fi
13061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13063else
13064 # Is the header compilable?
13065echo "$as_me:$LINENO: checking $ac_header usability" >&5
13066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13067cat >conftest.$ac_ext <<_ACEOF
13068/* confdefs.h. */
13069_ACEOF
13070cat confdefs.h >>conftest.$ac_ext
13071cat >>conftest.$ac_ext <<_ACEOF
13072/* end confdefs.h. */
13073$ac_includes_default
13074#include <$ac_header>
13075_ACEOF
13076rm -f conftest.$ac_objext
13077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078 (eval $ac_compile) 2>conftest.er1
13079 ac_status=$?
13080 grep -v '^ *+' conftest.er1 >conftest.err
13081 rm -f conftest.er1
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -z "$ac_c_werror_flag"
13086 || test ! -s conftest.err'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; } &&
13092 { ac_try='test -s conftest.$ac_objext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_header_compiler=yes
13099else
13100 echo "$as_me: failed program was:" >&5
13101sed 's/^/| /' conftest.$ac_ext >&5
13102
13103ac_header_compiler=no
13104fi
13105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13107echo "${ECHO_T}$ac_header_compiler" >&6
13108
13109# Is the header present?
13110echo "$as_me:$LINENO: checking $ac_header presence" >&5
13111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13112cat >conftest.$ac_ext <<_ACEOF
13113/* confdefs.h. */
13114_ACEOF
13115cat confdefs.h >>conftest.$ac_ext
13116cat >>conftest.$ac_ext <<_ACEOF
13117/* end confdefs.h. */
13118#include <$ac_header>
13119_ACEOF
13120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13122 ac_status=$?
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } >/dev/null; then
13128 if test -s conftest.err; then
13129 ac_cpp_err=$ac_c_preproc_warn_flag
13130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13131 else
13132 ac_cpp_err=
13133 fi
13134else
13135 ac_cpp_err=yes
13136fi
13137if test -z "$ac_cpp_err"; then
13138 ac_header_preproc=yes
13139else
13140 echo "$as_me: failed program was:" >&5
13141sed 's/^/| /' conftest.$ac_ext >&5
13142
13143 ac_header_preproc=no
13144fi
13145rm -f conftest.err conftest.$ac_ext
13146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13147echo "${ECHO_T}$ac_header_preproc" >&6
13148
13149# So? What about this header?
13150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13151 yes:no: )
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13156 ac_header_preproc=yes
13157 ;;
13158 no:yes:* )
13159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13171 (
13172 cat <<\_ASBOX
13173## ------------------------------------------ ##
13174## Report this to the AC_PACKAGE_NAME lists. ##
13175## ------------------------------------------ ##
13176_ASBOX
13177 ) |
13178 sed "s/^/$as_me: WARNING: /" >&2
13179 ;;
13180esac
13181echo "$as_me:$LINENO: checking for $ac_header" >&5
13182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13183if eval "test \"\${$as_ac_Header+set}\" = set"; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185else
13186 eval "$as_ac_Header=\$ac_header_preproc"
13187fi
13188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13190
13191fi
13192if test `eval echo '${'$as_ac_Header'}'` = yes; then
13193 cat >>confdefs.h <<_ACEOF
13194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13195_ACEOF
13196
13197fi
13198
13199done
13200
13201
13202echo "$as_me:$LINENO: checking for member st_blocks in struct stat" >&5
13203echo $ECHO_N "checking for member st_blocks in struct stat... $ECHO_C" >&6
13204if test "${gdb_cv_have_struct_stat_with_st_blocks_member+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 cat >conftest.$ac_ext <<_ACEOF
13208/* confdefs.h. */
13209_ACEOF
13210cat confdefs.h >>conftest.$ac_ext
13211cat >>conftest.$ac_ext <<_ACEOF
13212/* end confdefs.h. */
13213#include <sys/types.h>
13214#include <sys/stat.h>
13215int
13216main ()
13217{
13218struct stat st; (void) st.st_blocks;
13219 ;
13220 return 0;
13221}
13222_ACEOF
13223rm -f conftest.$ac_objext
13224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>conftest.er1
13226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
13232 { ac_try='test -z "$ac_c_werror_flag"
13233 || test ! -s conftest.err'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 gdb_cv_have_struct_stat_with_st_blocks_member=yes
13246else
13247 echo "$as_me: failed program was:" >&5
13248sed 's/^/| /' conftest.$ac_ext >&5
13249
13250gdb_cv_have_struct_stat_with_st_blocks_member=no
13251fi
13252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13253fi
13254
13255echo "$as_me:$LINENO: result: $gdb_cv_have_struct_stat_with_st_blocks_member" >&5
13256echo "${ECHO_T}$gdb_cv_have_struct_stat_with_st_blocks_member" >&6
13257if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
13258 cat >>confdefs.h <<\_ACEOF
13259#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13260_ACEOF
13261
13262fi
13263
13264# ------------------------- #
13265# Checks for declarations. #
13266# ------------------------- #
13267
13268for ac_func in getopt
13269do
13270 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13271echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13272echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
13273if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275else
13276 cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h. */
13282#undef $ac_tr_decl
13283#define $ac_tr_decl 1
13284
13285
13286int
13287main ()
13288{
13289#ifndef $ac_func
13290char *(*pfn) = (char *(*)) $ac_func ;
13291#endif
13292 ;
13293 return 0;
13294}
13295_ACEOF
13296rm -f conftest.$ac_objext
13297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13298 (eval $ac_compile) 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
13305 { ac_try='test -z "$ac_c_werror_flag"
13306 || test ! -s conftest.err'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; } &&
13312 { ac_try='test -s conftest.$ac_objext'
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; }; then
13318 eval "gcc_cv_have_decl_$ac_func=yes"
13319else
13320 echo "$as_me: failed program was:" >&5
13321sed 's/^/| /' conftest.$ac_ext >&5
13322
13323eval "gcc_cv_have_decl_$ac_func=no"
13324fi
13325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13326fi
13327
13328if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13329 echo "$as_me:$LINENO: result: yes" >&5
13330echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
13331#define $ac_tr_decl 1
13332_ACEOF
13333
13334else
13335 echo "$as_me:$LINENO: result: no" >&5
13336echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
13337#define $ac_tr_decl 0
13338_ACEOF
13339
13340fi
13341
13342done
13343if test x = y ; then
13344
13345cat >>confdefs.h <<\_ACEOF
13346#define HAVE_DECL_GETOPT 1
13347_ACEOF
13348fi
13349
13350
13351# ------------------ #
13352# Checks for types. #
13353# ------------------ #
13354
13355echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13356echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13357if test "${ac_cv_type_signal+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13359else
13360 cat >conftest.$ac_ext <<_ACEOF
13361/* confdefs.h. */
13362_ACEOF
13363cat confdefs.h >>conftest.$ac_ext
13364cat >>conftest.$ac_ext <<_ACEOF
13365/* end confdefs.h. */
13366#include <sys/types.h>
13367#include <signal.h>
13368#ifdef signal
13369# undef signal
13370#endif
13371#ifdef __cplusplus
13372extern "C" void (*signal (int, void (*)(int)))(int);
13373#else
13374void (*signal ()) ();
13375#endif
13376
13377int
13378main ()
13379{
13380int i;
13381 ;
13382 return 0;
13383}
13384_ACEOF
13385rm -f conftest.$ac_objext
13386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387 (eval $ac_compile) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
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); }; } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_type_signal=void
13408else
13409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412ac_cv_type_signal=int
13413fi
13414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13415fi
13416echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13417echo "${ECHO_T}$ac_cv_type_signal" >&6
13418
13419cat >>confdefs.h <<_ACEOF
13420#define RETSIGTYPE $ac_cv_type_signal
13421_ACEOF
13422
13423
13424
13425# ------------------------------------- #
13426# Checks for compiler characteristics. #
13427# ------------------------------------- #
13428
13429echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13430echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13431if test "${ac_cv_c_const+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433else
13434 cat >conftest.$ac_ext <<_ACEOF
13435/* confdefs.h. */
13436_ACEOF
13437cat confdefs.h >>conftest.$ac_ext
13438cat >>conftest.$ac_ext <<_ACEOF
13439/* end confdefs.h. */
13440
13441int
13442main ()
13443{
13444/* FIXME: Include the comments suggested by Paul. */
13445#ifndef __cplusplus
13446 /* Ultrix mips cc rejects this. */
13447 typedef int charset[2];
13448 const charset x;
13449 /* SunOS 4.1.1 cc rejects this. */
13450 char const *const *ccp;
13451 char **p;
13452 /* NEC SVR4.0.2 mips cc rejects this. */
13453 struct point {int x, y;};
13454 static struct point const zero = {0,0};
13455 /* AIX XL C 1.02.0.0 rejects this.
13456 It does not let you subtract one const X* pointer from another in
13457 an arm of an if-expression whose if-part is not a constant
13458 expression */
13459 const char *g = "string";
13460 ccp = &g + (g ? g-g : 0);
13461 /* HPUX 7.0 cc rejects these. */
13462 ++ccp;
13463 p = (char**) ccp;
13464 ccp = (char const *const *) p;
13465 { /* SCO 3.2v4 cc rejects this. */
13466 char *t;
13467 char const *s = 0 ? (char *) 0 : (char const *) 0;
13468
13469 *t++ = 0;
13470 }
13471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13472 int x[] = {25, 17};
13473 const int *foo = &x[0];
13474 ++foo;
13475 }
13476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13477 typedef const int *iptr;
13478 iptr p = 0;
13479 ++p;
13480 }
13481 { /* AIX XL C 1.02.0.0 rejects this saying
13482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13483 struct s { int j; const int *ap[3]; };
13484 struct s *b; b->j = 5;
13485 }
13486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13487 const int foo = 10;
13488 }
13489#endif
13490
13491 ;
13492 return 0;
13493}
13494_ACEOF
13495rm -f conftest.$ac_objext
13496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497 (eval $ac_compile) 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_c_werror_flag"
13505 || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest.$ac_objext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_c_const=yes
13518else
13519 echo "$as_me: failed program was:" >&5
13520sed 's/^/| /' conftest.$ac_ext >&5
13521
13522ac_cv_c_const=no
13523fi
13524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13525fi
13526echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13527echo "${ECHO_T}$ac_cv_c_const" >&6
13528if test $ac_cv_c_const = no; then
13529
13530cat >>confdefs.h <<\_ACEOF
13531#define const
13532_ACEOF
13533
13534fi
13535
13536echo "$as_me:$LINENO: checking for inline" >&5
13537echo $ECHO_N "checking for inline... $ECHO_C" >&6
13538if test "${ac_cv_c_inline+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540else
13541 ac_cv_c_inline=no
13542for ac_kw in inline __inline__ __inline; do
13543 cat >conftest.$ac_ext <<_ACEOF
13544/* confdefs.h. */
13545_ACEOF
13546cat confdefs.h >>conftest.$ac_ext
13547cat >>conftest.$ac_ext <<_ACEOF
13548/* end confdefs.h. */
13549#ifndef __cplusplus
13550typedef int foo_t;
13551static $ac_kw foo_t static_foo () {return 0; }
13552$ac_kw foo_t foo () {return 0; }
13553#endif
13554
13555_ACEOF
13556rm -f conftest.$ac_objext
13557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13558 (eval $ac_compile) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest.$ac_objext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578 ac_cv_c_inline=$ac_kw; break
13579else
13580 echo "$as_me: failed program was:" >&5
13581sed 's/^/| /' conftest.$ac_ext >&5
13582
13583fi
13584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13585done
13586
13587fi
13588echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13589echo "${ECHO_T}$ac_cv_c_inline" >&6
13590
13591
13592case $ac_cv_c_inline in
13593 inline | yes) ;;
13594 *)
13595 case $ac_cv_c_inline in
13596 no) ac_val=;;
13597 *) ac_val=$ac_cv_c_inline;;
13598 esac
13599 cat >>confdefs.h <<_ACEOF
13600#ifndef __cplusplus
13601#define inline $ac_val
13602#endif
13603_ACEOF
13604 ;;
13605esac
13606
13607
13608# ------------------------------ #
13609# Checks for library functions. #
13610# ------------------------------ #
13611
13612# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13613# for constant arguments. Useless!
13614echo "$as_me:$LINENO: checking for working alloca.h" >&5
13615echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13616if test "${ac_cv_working_alloca_h+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
13619 cat >conftest.$ac_ext <<_ACEOF
13620/* confdefs.h. */
13621_ACEOF
13622cat confdefs.h >>conftest.$ac_ext
13623cat >>conftest.$ac_ext <<_ACEOF
13624/* end confdefs.h. */
13625#include <alloca.h>
13626int
13627main ()
13628{
13629char *p = (char *) alloca (2 * sizeof (int));
13630 ;
13631 return 0;
13632}
13633_ACEOF
13634rm -f conftest.$ac_objext conftest$ac_exeext
13635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13636 (eval $ac_link) 2>conftest.er1
13637 ac_status=$?
13638 grep -v '^ *+' conftest.er1 >conftest.err
13639 rm -f conftest.er1
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -z "$ac_c_werror_flag"
13644 || test ! -s conftest.err'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest$ac_exeext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_working_alloca_h=yes
13657else
13658 echo "$as_me: failed program was:" >&5
13659sed 's/^/| /' conftest.$ac_ext >&5
13660
13661ac_cv_working_alloca_h=no
13662fi
13663rm -f conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
13665fi
13666echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13667echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13668if test $ac_cv_working_alloca_h = yes; then
13669
13670cat >>confdefs.h <<\_ACEOF
13671#define HAVE_ALLOCA_H 1
13672_ACEOF
13673
13674fi
13675
13676echo "$as_me:$LINENO: checking for alloca" >&5
13677echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13678if test "${ac_cv_func_alloca_works+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13680else
13681 cat >conftest.$ac_ext <<_ACEOF
13682/* confdefs.h. */
13683_ACEOF
13684cat confdefs.h >>conftest.$ac_ext
13685cat >>conftest.$ac_ext <<_ACEOF
13686/* end confdefs.h. */
13687#ifdef __GNUC__
13688# define alloca __builtin_alloca
13689#else
13690# ifdef _MSC_VER
13691# include <malloc.h>
13692# define alloca _alloca
13693# else
13694# if HAVE_ALLOCA_H
13695# include <alloca.h>
13696# else
13697# ifdef _AIX
13698 #pragma alloca
13699# else
13700# ifndef alloca /* predefined by HP cc +Olibcalls */
13701char *alloca ();
13702# endif
13703# endif
13704# endif
13705# endif
13706#endif
13707
13708int
13709main ()
13710{
13711char *p = (char *) alloca (1);
13712 ;
13713 return 0;
13714}
13715_ACEOF
13716rm -f conftest.$ac_objext conftest$ac_exeext
13717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13718 (eval $ac_link) 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag"
13726 || test ! -s conftest.err'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest$ac_exeext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_func_alloca_works=yes
13739else
13740 echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
13743ac_cv_func_alloca_works=no
13744fi
13745rm -f conftest.err conftest.$ac_objext \
13746 conftest$ac_exeext conftest.$ac_ext
13747fi
13748echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13749echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13750
13751if test $ac_cv_func_alloca_works = yes; then
13752
13753cat >>confdefs.h <<\_ACEOF
13754#define HAVE_ALLOCA 1
13755_ACEOF
13756
13757else
13758 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13759# that cause trouble. Some versions do not even contain alloca or
13760# contain a buggy version. If you still want to use their alloca,
13761# use ar to extract alloca.o from them instead of compiling alloca.c.
13762
13763ALLOCA=alloca.$ac_objext
13764
13765cat >>confdefs.h <<\_ACEOF
13766#define C_ALLOCA 1
13767_ACEOF
13768
13769
13770echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13771echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13772if test "${ac_cv_os_cray+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774else
13775 cat >conftest.$ac_ext <<_ACEOF
13776/* confdefs.h. */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
13780/* end confdefs.h. */
13781#if defined(CRAY) && ! defined(CRAY2)
13782webecray
13783#else
13784wenotbecray
13785#endif
13786
13787_ACEOF
13788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13789 $EGREP "webecray" >/dev/null 2>&1; then
13790 ac_cv_os_cray=yes
13791else
13792 ac_cv_os_cray=no
13793fi
13794rm -f conftest*
13795
13796fi
13797echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13798echo "${ECHO_T}$ac_cv_os_cray" >&6
13799if test $ac_cv_os_cray = yes; then
13800 for ac_func in _getb67 GETB67 getb67; do
13801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13802echo "$as_me:$LINENO: checking for $ac_func" >&5
13803echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13804if eval "test \"\${$as_ac_var+set}\" = set"; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807 cat >conftest.$ac_ext <<_ACEOF
13808/* confdefs.h. */
13809_ACEOF
13810cat confdefs.h >>conftest.$ac_ext
13811cat >>conftest.$ac_ext <<_ACEOF
13812/* end confdefs.h. */
13813/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13815#define $ac_func innocuous_$ac_func
13816
13817/* System header to define __stub macros and hopefully few prototypes,
13818 which can conflict with char $ac_func (); below.
13819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13820 <limits.h> exists even on freestanding compilers. */
13821
13822#ifdef __STDC__
13823# include <limits.h>
13824#else
13825# include <assert.h>
13826#endif
13827
13828#undef $ac_func
13829
13830/* Override any gcc2 internal prototype to avoid an error. */
13831#ifdef __cplusplus
13832extern "C"
13833{
13834#endif
13835/* We use char because int might match the return type of a gcc2
13836 builtin and then its argument prototype would still apply. */
13837char $ac_func ();
13838/* The GNU C library defines this for functions which it implements
13839 to always fail with ENOSYS. Some functions are actually named
13840 something starting with __ and the normal name is an alias. */
13841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13842choke me
13843#else
13844char (*f) () = $ac_func;
13845#endif
13846#ifdef __cplusplus
13847}
13848#endif
13849
13850int
13851main ()
13852{
13853return f != $ac_func;
13854 ;
13855 return 0;
13856}
13857_ACEOF
13858rm -f conftest.$ac_objext conftest$ac_exeext
13859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860 (eval $ac_link) 2>conftest.er1
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_c_werror_flag"
13868 || test ! -s conftest.err'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; } &&
13874 { ac_try='test -s conftest$ac_exeext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 eval "$as_ac_var=yes"
13881else
13882 echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885eval "$as_ac_var=no"
13886fi
13887rm -f conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13889fi
13890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13891echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13892if test `eval echo '${'$as_ac_var'}'` = yes; then
13893
13894cat >>confdefs.h <<_ACEOF
13895#define CRAY_STACKSEG_END $ac_func
13896_ACEOF
13897
13898 break
13899fi
13900
13901 done
13902fi
13903
13904echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13905echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13906if test "${ac_cv_c_stack_direction+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908else
13909 if test "$cross_compiling" = yes; then
13910 ac_cv_c_stack_direction=0
13911else
13912 cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h. */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
13917/* end confdefs.h. */
13918int
13919find_stack_direction ()
13920{
13921 static char *addr = 0;
13922 auto char dummy;
13923 if (addr == 0)
13924 {
13925 addr = &dummy;
13926 return find_stack_direction ();
13927 }
13928 else
13929 return (&dummy > addr) ? 1 : -1;
13930}
13931
13932int
13933main ()
13934{
13935 exit (find_stack_direction () < 0);
13936}
13937_ACEOF
13938rm -f conftest$ac_exeext
13939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940 (eval $ac_link) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && { ac_try='./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 ac_cv_c_stack_direction=1
13950else
13951 echo "$as_me: program exited with status $ac_status" >&5
13952echo "$as_me: failed program was:" >&5
13953sed 's/^/| /' conftest.$ac_ext >&5
13954
13955( exit $ac_status )
13956ac_cv_c_stack_direction=-1
13957fi
13958rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13959fi
13960fi
13961echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13962echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13963
13964cat >>confdefs.h <<_ACEOF
13965#define STACK_DIRECTION $ac_cv_c_stack_direction
13966_ACEOF
13967
13968
13969fi
13970
13971
13972
13973for ac_header in stdlib.h unistd.h
13974do
13975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13976if eval "test \"\${$as_ac_Header+set}\" = set"; then
13977 echo "$as_me:$LINENO: checking for $ac_header" >&5
13978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13979if eval "test \"\${$as_ac_Header+set}\" = set"; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981fi
13982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13984else
13985 # Is the header compilable?
13986echo "$as_me:$LINENO: checking $ac_header usability" >&5
13987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13988cat >conftest.$ac_ext <<_ACEOF
13989/* confdefs.h. */
13990_ACEOF
13991cat confdefs.h >>conftest.$ac_ext
13992cat >>conftest.$ac_ext <<_ACEOF
13993/* end confdefs.h. */
13994$ac_includes_default
13995#include <$ac_header>
13996_ACEOF
13997rm -f conftest.$ac_objext
13998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999 (eval $ac_compile) 2>conftest.er1
14000 ac_status=$?
14001 grep -v '^ *+' conftest.er1 >conftest.err
14002 rm -f conftest.er1
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -z "$ac_c_werror_flag"
14007 || test ! -s conftest.err'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_header_compiler=yes
14020else
14021 echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
14024ac_header_compiler=no
14025fi
14026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14028echo "${ECHO_T}$ac_header_compiler" >&6
14029
14030# Is the header present?
14031echo "$as_me:$LINENO: checking $ac_header presence" >&5
14032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14033cat >conftest.$ac_ext <<_ACEOF
14034/* confdefs.h. */
14035_ACEOF
14036cat confdefs.h >>conftest.$ac_ext
14037cat >>conftest.$ac_ext <<_ACEOF
14038/* end confdefs.h. */
14039#include <$ac_header>
14040_ACEOF
14041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } >/dev/null; then
14049 if test -s conftest.err; then
14050 ac_cpp_err=$ac_c_preproc_warn_flag
14051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14052 else
14053 ac_cpp_err=
14054 fi
14055else
14056 ac_cpp_err=yes
14057fi
14058if test -z "$ac_cpp_err"; then
14059 ac_header_preproc=yes
14060else
14061 echo "$as_me: failed program was:" >&5
14062sed 's/^/| /' conftest.$ac_ext >&5
14063
14064 ac_header_preproc=no
14065fi
14066rm -f conftest.err conftest.$ac_ext
14067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14068echo "${ECHO_T}$ac_header_preproc" >&6
14069
14070# So? What about this header?
14071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14072 yes:no: )
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14077 ac_header_preproc=yes
14078 ;;
14079 no:yes:* )
14080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14092 (
14093 cat <<\_ASBOX
14094## ------------------------------------------ ##
14095## Report this to the AC_PACKAGE_NAME lists. ##
14096## ------------------------------------------ ##
14097_ASBOX
14098 ) |
14099 sed "s/^/$as_me: WARNING: /" >&2
14100 ;;
14101esac
14102echo "$as_me:$LINENO: checking for $ac_header" >&5
14103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14104if eval "test \"\${$as_ac_Header+set}\" = set"; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14106else
14107 eval "$as_ac_Header=\$ac_header_preproc"
14108fi
14109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14111
14112fi
14113if test `eval echo '${'$as_ac_Header'}'` = yes; then
14114 cat >>confdefs.h <<_ACEOF
14115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14116_ACEOF
14117
14118fi
14119
14120done
14121
14122
14123for ac_func in getpagesize
14124do
14125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14126echo "$as_me:$LINENO: checking for $ac_func" >&5
14127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14128if eval "test \"\${$as_ac_var+set}\" = set"; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130else
14131 cat >conftest.$ac_ext <<_ACEOF
14132/* confdefs.h. */
14133_ACEOF
14134cat confdefs.h >>conftest.$ac_ext
14135cat >>conftest.$ac_ext <<_ACEOF
14136/* end confdefs.h. */
14137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14139#define $ac_func innocuous_$ac_func
14140
14141/* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char $ac_func (); below.
14143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14144 <limits.h> exists even on freestanding compilers. */
14145
14146#ifdef __STDC__
14147# include <limits.h>
14148#else
14149# include <assert.h>
14150#endif
14151
14152#undef $ac_func
14153
14154/* Override any gcc2 internal prototype to avoid an error. */
14155#ifdef __cplusplus
14156extern "C"
14157{
14158#endif
14159/* We use char because int might match the return type of a gcc2
14160 builtin and then its argument prototype would still apply. */
14161char $ac_func ();
14162/* The GNU C library defines this for functions which it implements
14163 to always fail with ENOSYS. Some functions are actually named
14164 something starting with __ and the normal name is an alias. */
14165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14166choke me
14167#else
14168char (*f) () = $ac_func;
14169#endif
14170#ifdef __cplusplus
14171}
14172#endif
14173
14174int
14175main ()
14176{
14177return f != $ac_func;
14178 ;
14179 return 0;
14180}
14181_ACEOF
14182rm -f conftest.$ac_objext conftest$ac_exeext
14183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184 (eval $ac_link) 2>conftest.er1
14185 ac_status=$?
14186 grep -v '^ *+' conftest.er1 >conftest.err
14187 rm -f conftest.er1
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag"
14192 || test ! -s conftest.err'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest$ac_exeext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 eval "$as_ac_var=yes"
14205else
14206 echo "$as_me: failed program was:" >&5
14207sed 's/^/| /' conftest.$ac_ext >&5
14208
14209eval "$as_ac_var=no"
14210fi
14211rm -f conftest.err conftest.$ac_objext \
14212 conftest$ac_exeext conftest.$ac_ext
14213fi
14214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14216if test `eval echo '${'$as_ac_var'}'` = yes; then
14217 cat >>confdefs.h <<_ACEOF
14218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14219_ACEOF
14220
14221fi
14222done
14223
14224echo "$as_me:$LINENO: checking for working mmap" >&5
14225echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14226if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228else
14229 if test "$cross_compiling" = yes; then
14230 ac_cv_func_mmap_fixed_mapped=no
14231else
14232 cat >conftest.$ac_ext <<_ACEOF
14233/* confdefs.h. */
14234_ACEOF
14235cat confdefs.h >>conftest.$ac_ext
14236cat >>conftest.$ac_ext <<_ACEOF
14237/* end confdefs.h. */
14238$ac_includes_default
14239/* malloc might have been renamed as rpl_malloc. */
14240#undef malloc
14241
14242/* Thanks to Mike Haertel and Jim Avera for this test.
14243 Here is a matrix of mmap possibilities:
14244 mmap private not fixed
14245 mmap private fixed at somewhere currently unmapped
14246 mmap private fixed at somewhere already mapped
14247 mmap shared not fixed
14248 mmap shared fixed at somewhere currently unmapped
14249 mmap shared fixed at somewhere already mapped
14250 For private mappings, we should verify that changes cannot be read()
14251 back from the file, nor mmap's back from the file at a different
14252 address. (There have been systems where private was not correctly
14253 implemented like the infamous i386 svr4.0, and systems where the
14254 VM page cache was not coherent with the file system buffer cache
14255 like early versions of FreeBSD and possibly contemporary NetBSD.)
14256 For shared mappings, we should conversely verify that changes get
14257 propagated back to all the places they're supposed to be.
14258
14259 Grep wants private fixed already mapped.
14260 The main things grep needs to know about mmap are:
14261 * does it exist and is it safe to write into the mmap'd area
14262 * how to use it (BSD variants) */
14263
14264#include <fcntl.h>
14265#include <sys/mman.h>
14266
14267#if !STDC_HEADERS && !HAVE_STDLIB_H
14268char *malloc ();
14269#endif
14270
14271/* This mess was copied from the GNU getpagesize.h. */
14272#if !HAVE_GETPAGESIZE
14273/* Assume that all systems that can run configure have sys/param.h. */
14274# if !HAVE_SYS_PARAM_H
14275# define HAVE_SYS_PARAM_H 1
14276# endif
14277
14278# ifdef _SC_PAGESIZE
14279# define getpagesize() sysconf(_SC_PAGESIZE)
14280# else /* no _SC_PAGESIZE */
14281# if HAVE_SYS_PARAM_H
14282# include <sys/param.h>
14283# ifdef EXEC_PAGESIZE
14284# define getpagesize() EXEC_PAGESIZE
14285# else /* no EXEC_PAGESIZE */
14286# ifdef NBPG
14287# define getpagesize() NBPG * CLSIZE
14288# ifndef CLSIZE
14289# define CLSIZE 1
14290# endif /* no CLSIZE */
14291# else /* no NBPG */
14292# ifdef NBPC
14293# define getpagesize() NBPC
14294# else /* no NBPC */
14295# ifdef PAGESIZE
14296# define getpagesize() PAGESIZE
14297# endif /* PAGESIZE */
14298# endif /* no NBPC */
14299# endif /* no NBPG */
14300# endif /* no EXEC_PAGESIZE */
14301# else /* no HAVE_SYS_PARAM_H */
14302# define getpagesize() 8192 /* punt totally */
14303# endif /* no HAVE_SYS_PARAM_H */
14304# endif /* no _SC_PAGESIZE */
14305
14306#endif /* no HAVE_GETPAGESIZE */
14307
14308int
14309main ()
14310{
14311 char *data, *data2, *data3;
14312 int i, pagesize;
14313 int fd;
14314
14315 pagesize = getpagesize ();
14316
14317 /* First, make a file with some known garbage in it. */
14318 data = (char *) malloc (pagesize);
14319 if (!data)
14320 exit (1);
14321 for (i = 0; i < pagesize; ++i)
14322 *(data + i) = rand ();
14323 umask (0);
14324 fd = creat ("conftest.mmap", 0600);
14325 if (fd < 0)
14326 exit (1);
14327 if (write (fd, data, pagesize) != pagesize)
14328 exit (1);
14329 close (fd);
14330
14331 /* Next, try to mmap the file at a fixed address which already has
14332 something else allocated at it. If we can, also make sure that
14333 we see the same garbage. */
14334 fd = open ("conftest.mmap", O_RDWR);
14335 if (fd < 0)
14336 exit (1);
14337 data2 = (char *) malloc (2 * pagesize);
14338 if (!data2)
14339 exit (1);
14340 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14343 exit (1);
14344 for (i = 0; i < pagesize; ++i)
14345 if (*(data + i) != *(data2 + i))
14346 exit (1);
14347
14348 /* Finally, make sure that changes to the mapped area do not
14349 percolate back to the file as seen by read(). (This is a bug on
14350 some variants of i386 svr4.0.) */
14351 for (i = 0; i < pagesize; ++i)
14352 *(data2 + i) = *(data2 + i) + 1;
14353 data3 = (char *) malloc (pagesize);
14354 if (!data3)
14355 exit (1);
14356 if (read (fd, data3, pagesize) != pagesize)
14357 exit (1);
14358 for (i = 0; i < pagesize; ++i)
14359 if (*(data + i) != *(data3 + i))
14360 exit (1);
14361 close (fd);
14362 exit (0);
14363}
14364_ACEOF
14365rm -f conftest$ac_exeext
14366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14367 (eval $ac_link) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_cv_func_mmap_fixed_mapped=yes
14377else
14378 echo "$as_me: program exited with status $ac_status" >&5
14379echo "$as_me: failed program was:" >&5
14380sed 's/^/| /' conftest.$ac_ext >&5
14381
14382( exit $ac_status )
14383ac_cv_func_mmap_fixed_mapped=no
14384fi
14385rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14386fi
14387fi
14388echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14389echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14390if test $ac_cv_func_mmap_fixed_mapped = yes; then
14391
14392cat >>confdefs.h <<\_ACEOF
14393#define HAVE_MMAP 1
14394_ACEOF
14395
14396fi
14397rm -f conftest.mmap
14398
14399echo "$as_me:$LINENO: checking for pid_t" >&5
14400echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14401if test "${ac_cv_type_pid_t+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14403else
14404 cat >conftest.$ac_ext <<_ACEOF
14405/* confdefs.h. */
14406_ACEOF
14407cat confdefs.h >>conftest.$ac_ext
14408cat >>conftest.$ac_ext <<_ACEOF
14409/* end confdefs.h. */
14410$ac_includes_default
14411int
14412main ()
14413{
14414if ((pid_t *) 0)
14415 return 0;
14416if (sizeof (pid_t))
14417 return 0;
14418 ;
14419 return 0;
14420}
14421_ACEOF
14422rm -f conftest.$ac_objext
14423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14424 (eval $ac_compile) 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_objext'
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 ac_cv_type_pid_t=yes
14445else
14446 echo "$as_me: failed program was:" >&5
14447sed 's/^/| /' conftest.$ac_ext >&5
14448
14449ac_cv_type_pid_t=no
14450fi
14451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14452fi
14453echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14454echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14455if test $ac_cv_type_pid_t = yes; then
14456 :
14457else
14458
14459cat >>confdefs.h <<_ACEOF
14460#define pid_t int
14461_ACEOF
14462
14463fi
14464
14465
14466
14467for ac_header in unistd.h vfork.h
14468do
14469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14470if eval "test \"\${$as_ac_Header+set}\" = set"; then
14471 echo "$as_me:$LINENO: checking for $ac_header" >&5
14472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14473if eval "test \"\${$as_ac_Header+set}\" = set"; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475fi
14476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14478else
14479 # Is the header compilable?
14480echo "$as_me:$LINENO: checking $ac_header usability" >&5
14481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14482cat >conftest.$ac_ext <<_ACEOF
14483/* confdefs.h. */
14484_ACEOF
14485cat confdefs.h >>conftest.$ac_ext
14486cat >>conftest.$ac_ext <<_ACEOF
14487/* end confdefs.h. */
14488$ac_includes_default
14489#include <$ac_header>
14490_ACEOF
14491rm -f conftest.$ac_objext
14492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
14500 { ac_try='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_header_compiler=yes
14514else
14515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518ac_header_compiler=no
14519fi
14520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14522echo "${ECHO_T}$ac_header_compiler" >&6
14523
14524# Is the header present?
14525echo "$as_me:$LINENO: checking $ac_header presence" >&5
14526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14527cat >conftest.$ac_ext <<_ACEOF
14528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
14533#include <$ac_header>
14534_ACEOF
14535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } >/dev/null; then
14543 if test -s conftest.err; then
14544 ac_cpp_err=$ac_c_preproc_warn_flag
14545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14546 else
14547 ac_cpp_err=
14548 fi
14549else
14550 ac_cpp_err=yes
14551fi
14552if test -z "$ac_cpp_err"; then
14553 ac_header_preproc=yes
14554else
14555 echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 ac_header_preproc=no
14559fi
14560rm -f conftest.err conftest.$ac_ext
14561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14562echo "${ECHO_T}$ac_header_preproc" >&6
14563
14564# So? What about this header?
14565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14566 yes:no: )
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14571 ac_header_preproc=yes
14572 ;;
14573 no:yes:* )
14574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14577echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14581echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14586 (
14587 cat <<\_ASBOX
14588## ------------------------------------------ ##
14589## Report this to the AC_PACKAGE_NAME lists. ##
14590## ------------------------------------------ ##
14591_ASBOX
14592 ) |
14593 sed "s/^/$as_me: WARNING: /" >&2
14594 ;;
14595esac
14596echo "$as_me:$LINENO: checking for $ac_header" >&5
14597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14598if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600else
14601 eval "$as_ac_Header=\$ac_header_preproc"
14602fi
14603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14605
14606fi
14607if test `eval echo '${'$as_ac_Header'}'` = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14610_ACEOF
14611
14612fi
14613
14614done
14615
14616
14617
14618for ac_func in fork vfork
14619do
14620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14621echo "$as_me:$LINENO: checking for $ac_func" >&5
14622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14623if eval "test \"\${$as_ac_var+set}\" = set"; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625else
14626 cat >conftest.$ac_ext <<_ACEOF
14627/* confdefs.h. */
14628_ACEOF
14629cat confdefs.h >>conftest.$ac_ext
14630cat >>conftest.$ac_ext <<_ACEOF
14631/* end confdefs.h. */
14632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14634#define $ac_func innocuous_$ac_func
14635
14636/* System header to define __stub macros and hopefully few prototypes,
14637 which can conflict with char $ac_func (); below.
14638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14639 <limits.h> exists even on freestanding compilers. */
14640
14641#ifdef __STDC__
14642# include <limits.h>
14643#else
14644# include <assert.h>
14645#endif
14646
14647#undef $ac_func
14648
14649/* Override any gcc2 internal prototype to avoid an error. */
14650#ifdef __cplusplus
14651extern "C"
14652{
14653#endif
14654/* We use char because int might match the return type of a gcc2
14655 builtin and then its argument prototype would still apply. */
14656char $ac_func ();
14657/* The GNU C library defines this for functions which it implements
14658 to always fail with ENOSYS. Some functions are actually named
14659 something starting with __ and the normal name is an alias. */
14660#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14661choke me
14662#else
14663char (*f) () = $ac_func;
14664#endif
14665#ifdef __cplusplus
14666}
14667#endif
14668
14669int
14670main ()
14671{
14672return f != $ac_func;
14673 ;
14674 return 0;
14675}
14676_ACEOF
14677rm -f conftest.$ac_objext conftest$ac_exeext
14678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14679 (eval $ac_link) 2>conftest.er1
14680 ac_status=$?
14681 grep -v '^ *+' conftest.er1 >conftest.err
14682 rm -f conftest.er1
14683 cat conftest.err >&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } &&
14686 { ac_try='test -z "$ac_c_werror_flag"
14687 || test ! -s conftest.err'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; } &&
14693 { ac_try='test -s conftest$ac_exeext'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; }; then
14699 eval "$as_ac_var=yes"
14700else
14701 echo "$as_me: failed program was:" >&5
14702sed 's/^/| /' conftest.$ac_ext >&5
14703
14704eval "$as_ac_var=no"
14705fi
14706rm -f conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708fi
14709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14710echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14711if test `eval echo '${'$as_ac_var'}'` = yes; then
14712 cat >>confdefs.h <<_ACEOF
14713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14714_ACEOF
14715
14716fi
14717done
14718
14719if test "x$ac_cv_func_fork" = xyes; then
14720 echo "$as_me:$LINENO: checking for working fork" >&5
14721echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14722if test "${ac_cv_func_fork_works+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724else
14725 if test "$cross_compiling" = yes; then
14726 ac_cv_func_fork_works=cross
14727else
14728 cat >conftest.$ac_ext <<_ACEOF
14729/* By Ruediger Kuhlmann. */
14730 #include <sys/types.h>
14731 #if HAVE_UNISTD_H
14732 # include <unistd.h>
14733 #endif
14734 /* Some systems only have a dummy stub for fork() */
14735 int main ()
14736 {
14737 if (fork() < 0)
14738 exit (1);
14739 exit (0);
14740 }
14741_ACEOF
14742rm -f conftest$ac_exeext
14743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 ac_cv_func_fork_works=yes
14754else
14755 echo "$as_me: program exited with status $ac_status" >&5
14756echo "$as_me: failed program was:" >&5
14757sed 's/^/| /' conftest.$ac_ext >&5
14758
14759( exit $ac_status )
14760ac_cv_func_fork_works=no
14761fi
14762rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14763fi
14764fi
14765echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14766echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14767
14768else
14769 ac_cv_func_fork_works=$ac_cv_func_fork
14770fi
14771if test "x$ac_cv_func_fork_works" = xcross; then
14772 case $host in
14773 *-*-amigaos* | *-*-msdosdjgpp*)
14774 # Override, as these systems have only a dummy fork() stub
14775 ac_cv_func_fork_works=no
14776 ;;
14777 *)
14778 ac_cv_func_fork_works=yes
14779 ;;
14780 esac
14781 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14782echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14783fi
14784ac_cv_func_vfork_works=$ac_cv_func_vfork
14785if test "x$ac_cv_func_vfork" = xyes; then
14786 echo "$as_me:$LINENO: checking for working vfork" >&5
14787echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14788if test "${ac_cv_func_vfork_works+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790else
14791 if test "$cross_compiling" = yes; then
14792 ac_cv_func_vfork_works=cross
14793else
14794 cat >conftest.$ac_ext <<_ACEOF
14795/* confdefs.h. */
14796_ACEOF
14797cat confdefs.h >>conftest.$ac_ext
14798cat >>conftest.$ac_ext <<_ACEOF
14799/* end confdefs.h. */
14800/* Thanks to Paul Eggert for this test. */
14801#include <stdio.h>
14802#include <stdlib.h>
14803#include <sys/types.h>
14804#include <sys/stat.h>
14805#include <sys/wait.h>
14806#if HAVE_UNISTD_H
14807# include <unistd.h>
14808#endif
14809#if HAVE_VFORK_H
14810# include <vfork.h>
14811#endif
14812/* On some sparc systems, changes by the child to local and incoming
14813 argument registers are propagated back to the parent. The compiler
14814 is told about this with #include <vfork.h>, but some compilers
14815 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14816 static variable whose address is put into a register that is
14817 clobbered by the vfork. */
14818static void
14819#ifdef __cplusplus
14820sparc_address_test (int arg)
14821# else
14822sparc_address_test (arg) int arg;
14823#endif
14824{
14825 static pid_t child;
14826 if (!child) {
14827 child = vfork ();
14828 if (child < 0) {
14829 perror ("vfork");
14830 _exit(2);
14831 }
14832 if (!child) {
14833 arg = getpid();
14834 write(-1, "", 0);
14835 _exit (arg);
14836 }
14837 }
14838}
14839
14840int
14841main ()
14842{
14843 pid_t parent = getpid ();
14844 pid_t child;
14845
14846 sparc_address_test (0);
14847
14848 child = vfork ();
14849
14850 if (child == 0) {
14851 /* Here is another test for sparc vfork register problems. This
14852 test uses lots of local variables, at least as many local
14853 variables as main has allocated so far including compiler
14854 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14855 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14856 reuse the register of parent for one of the local variables,
14857 since it will think that parent can't possibly be used any more
14858 in this routine. Assigning to the local variable will thus
14859 munge parent in the parent process. */
14860 pid_t
14861 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14862 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14863 /* Convince the compiler that p..p7 are live; otherwise, it might
14864 use the same hardware register for all 8 local variables. */
14865 if (p != p1 || p != p2 || p != p3 || p != p4
14866 || p != p5 || p != p6 || p != p7)
14867 _exit(1);
14868
14869 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14870 from child file descriptors. If the child closes a descriptor
14871 before it execs or exits, this munges the parent's descriptor
14872 as well. Test for this by closing stdout in the child. */
14873 _exit(close(fileno(stdout)) != 0);
14874 } else {
14875 int status;
14876 struct stat st;
14877
14878 while (wait(&status) != child)
14879 ;
14880 exit(
14881 /* Was there some problem with vforking? */
14882 child < 0
14883
14884 /* Did the child fail? (This shouldn't happen.) */
14885 || status
14886
14887 /* Did the vfork/compiler bug occur? */
14888 || parent != getpid()
14889
14890 /* Did the file descriptor bug occur? */
14891 || fstat(fileno(stdout), &st) != 0
14892 );
14893 }
14894}
14895_ACEOF
14896rm -f conftest$ac_exeext
14897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14898 (eval $ac_link) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_func_vfork_works=yes
14908else
14909 echo "$as_me: program exited with status $ac_status" >&5
14910echo "$as_me: failed program was:" >&5
14911sed 's/^/| /' conftest.$ac_ext >&5
14912
14913( exit $ac_status )
14914ac_cv_func_vfork_works=no
14915fi
14916rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14917fi
14918fi
14919echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14920echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
14921
14922fi;
14923if test "x$ac_cv_func_fork_works" = xcross; then
14924 ac_cv_func_vfork_works=$ac_cv_func_vfork
14925 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14926echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14927fi
14928
14929if test "x$ac_cv_func_vfork_works" = xyes; then
14930
14931cat >>confdefs.h <<\_ACEOF
14932#define HAVE_WORKING_VFORK 1
14933_ACEOF
14934
14935else
14936
14937cat >>confdefs.h <<\_ACEOF
14938#define vfork fork
14939_ACEOF
14940
14941fi
14942if test "x$ac_cv_func_fork_works" = xyes; then
14943
14944cat >>confdefs.h <<\_ACEOF
14945#define HAVE_WORKING_FORK 1
14946_ACEOF
14947
14948fi
14949
14950
14951
14952for ac_func in canonicalize_file_name realpath
14953do
14954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14955echo "$as_me:$LINENO: checking for $ac_func" >&5
14956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14957if eval "test \"\${$as_ac_var+set}\" = set"; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959else
14960 cat >conftest.$ac_ext <<_ACEOF
14961/* confdefs.h. */
14962_ACEOF
14963cat confdefs.h >>conftest.$ac_ext
14964cat >>conftest.$ac_ext <<_ACEOF
14965/* end confdefs.h. */
14966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14968#define $ac_func innocuous_$ac_func
14969
14970/* System header to define __stub macros and hopefully few prototypes,
14971 which can conflict with char $ac_func (); below.
14972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14973 <limits.h> exists even on freestanding compilers. */
14974
14975#ifdef __STDC__
14976# include <limits.h>
14977#else
14978# include <assert.h>
14979#endif
14980
14981#undef $ac_func
14982
14983/* Override any gcc2 internal prototype to avoid an error. */
14984#ifdef __cplusplus
14985extern "C"
14986{
14987#endif
14988/* We use char because int might match the return type of a gcc2
14989 builtin and then its argument prototype would still apply. */
14990char $ac_func ();
14991/* The GNU C library defines this for functions which it implements
14992 to always fail with ENOSYS. Some functions are actually named
14993 something starting with __ and the normal name is an alias. */
14994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14995choke me
14996#else
14997char (*f) () = $ac_func;
14998#endif
14999#ifdef __cplusplus
15000}
15001#endif
15002
15003int
15004main ()
15005{
15006return f != $ac_func;
15007 ;
15008 return 0;
15009}
15010_ACEOF
15011rm -f conftest.$ac_objext conftest$ac_exeext
15012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013 (eval $ac_link) 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_c_werror_flag"
15021 || test ! -s conftest.err'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest$ac_exeext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 eval "$as_ac_var=yes"
15034else
15035 echo "$as_me: failed program was:" >&5
15036sed 's/^/| /' conftest.$ac_ext >&5
15037
15038eval "$as_ac_var=no"
15039fi
15040rm -f conftest.err conftest.$ac_objext \
15041 conftest$ac_exeext conftest.$ac_ext
15042fi
15043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15045if test `eval echo '${'$as_ac_var'}'` = yes; then
15046 cat >>confdefs.h <<_ACEOF
15047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15048_ACEOF
15049
15050fi
15051done
15052
15053
15054for ac_func in poll
15055do
15056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15057echo "$as_me:$LINENO: checking for $ac_func" >&5
15058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15059if eval "test \"\${$as_ac_var+set}\" = set"; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15061else
15062 cat >conftest.$ac_ext <<_ACEOF
15063/* confdefs.h. */
15064_ACEOF
15065cat confdefs.h >>conftest.$ac_ext
15066cat >>conftest.$ac_ext <<_ACEOF
15067/* end confdefs.h. */
15068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15070#define $ac_func innocuous_$ac_func
15071
15072/* System header to define __stub macros and hopefully few prototypes,
15073 which can conflict with char $ac_func (); below.
15074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15075 <limits.h> exists even on freestanding compilers. */
15076
15077#ifdef __STDC__
15078# include <limits.h>
15079#else
15080# include <assert.h>
15081#endif
15082
15083#undef $ac_func
15084
15085/* Override any gcc2 internal prototype to avoid an error. */
15086#ifdef __cplusplus
15087extern "C"
15088{
15089#endif
15090/* We use char because int might match the return type of a gcc2
15091 builtin and then its argument prototype would still apply. */
15092char $ac_func ();
15093/* The GNU C library defines this for functions which it implements
15094 to always fail with ENOSYS. Some functions are actually named
15095 something starting with __ and the normal name is an alias. */
15096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15097choke me
15098#else
15099char (*f) () = $ac_func;
15100#endif
15101#ifdef __cplusplus
15102}
15103#endif
15104
15105int
15106main ()
15107{
15108return f != $ac_func;
15109 ;
15110 return 0;
15111}
15112_ACEOF
15113rm -f conftest.$ac_objext conftest$ac_exeext
15114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115 (eval $ac_link) 2>conftest.er1
15116 ac_status=$?
15117 grep -v '^ *+' conftest.er1 >conftest.err
15118 rm -f conftest.er1
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -z "$ac_c_werror_flag"
15123 || test ! -s conftest.err'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest$ac_exeext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 eval "$as_ac_var=yes"
15136else
15137 echo "$as_me: failed program was:" >&5
15138sed 's/^/| /' conftest.$ac_ext >&5
15139
15140eval "$as_ac_var=no"
15141fi
15142rm -f conftest.err conftest.$ac_objext \
15143 conftest$ac_exeext conftest.$ac_ext
15144fi
15145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15147if test `eval echo '${'$as_ac_var'}'` = yes; then
15148 cat >>confdefs.h <<_ACEOF
15149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15150_ACEOF
15151
15152fi
15153done
15154
15155
15156for ac_func in pread64
15157do
15158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159echo "$as_me:$LINENO: checking for $ac_func" >&5
15160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15161if eval "test \"\${$as_ac_var+set}\" = set"; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164 cat >conftest.$ac_ext <<_ACEOF
15165/* confdefs.h. */
15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h. */
15170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15172#define $ac_func innocuous_$ac_func
15173
15174/* System header to define __stub macros and hopefully few prototypes,
15175 which can conflict with char $ac_func (); below.
15176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15177 <limits.h> exists even on freestanding compilers. */
15178
15179#ifdef __STDC__
15180# include <limits.h>
15181#else
15182# include <assert.h>
15183#endif
15184
15185#undef $ac_func
15186
15187/* Override any gcc2 internal prototype to avoid an error. */
15188#ifdef __cplusplus
15189extern "C"
15190{
15191#endif
15192/* We use char because int might match the return type of a gcc2
15193 builtin and then its argument prototype would still apply. */
15194char $ac_func ();
15195/* The GNU C library defines this for functions which it implements
15196 to always fail with ENOSYS. Some functions are actually named
15197 something starting with __ and the normal name is an alias. */
15198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15199choke me
15200#else
15201char (*f) () = $ac_func;
15202#endif
15203#ifdef __cplusplus
15204}
15205#endif
15206
15207int
15208main ()
15209{
15210return f != $ac_func;
15211 ;
15212 return 0;
15213}
15214_ACEOF
15215rm -f conftest.$ac_objext conftest$ac_exeext
15216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag"
15225 || test ! -s conftest.err'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest$ac_exeext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 eval "$as_ac_var=yes"
15238else
15239 echo "$as_me: failed program was:" >&5
15240sed 's/^/| /' conftest.$ac_ext >&5
15241
15242eval "$as_ac_var=no"
15243fi
15244rm -f conftest.err conftest.$ac_objext \
15245 conftest$ac_exeext conftest.$ac_ext
15246fi
15247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15249if test `eval echo '${'$as_ac_var'}'` = yes; then
15250 cat >>confdefs.h <<_ACEOF
15251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15252_ACEOF
15253
15254fi
15255done
15256
15257
15258for ac_func in sbrk
15259do
15260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15261echo "$as_me:$LINENO: checking for $ac_func" >&5
15262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15263if eval "test \"\${$as_ac_var+set}\" = set"; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265else
15266 cat >conftest.$ac_ext <<_ACEOF
15267/* confdefs.h. */
15268_ACEOF
15269cat confdefs.h >>conftest.$ac_ext
15270cat >>conftest.$ac_ext <<_ACEOF
15271/* end confdefs.h. */
15272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15274#define $ac_func innocuous_$ac_func
15275
15276/* System header to define __stub macros and hopefully few prototypes,
15277 which can conflict with char $ac_func (); below.
15278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15279 <limits.h> exists even on freestanding compilers. */
15280
15281#ifdef __STDC__
15282# include <limits.h>
15283#else
15284# include <assert.h>
15285#endif
15286
15287#undef $ac_func
15288
15289/* Override any gcc2 internal prototype to avoid an error. */
15290#ifdef __cplusplus
15291extern "C"
15292{
15293#endif
15294/* We use char because int might match the return type of a gcc2
15295 builtin and then its argument prototype would still apply. */
15296char $ac_func ();
15297/* The GNU C library defines this for functions which it implements
15298 to always fail with ENOSYS. Some functions are actually named
15299 something starting with __ and the normal name is an alias. */
15300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15301choke me
15302#else
15303char (*f) () = $ac_func;
15304#endif
15305#ifdef __cplusplus
15306}
15307#endif
15308
15309int
15310main ()
15311{
15312return f != $ac_func;
15313 ;
15314 return 0;
15315}
15316_ACEOF
15317rm -f conftest.$ac_objext conftest$ac_exeext
15318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>conftest.er1
15320 ac_status=$?
15321 grep -v '^ *+' conftest.er1 >conftest.err
15322 rm -f conftest.er1
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -z "$ac_c_werror_flag"
15327 || test ! -s conftest.err'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; } &&
15333 { ac_try='test -s conftest$ac_exeext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 eval "$as_ac_var=yes"
15340else
15341 echo "$as_me: failed program was:" >&5
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
15344eval "$as_ac_var=no"
15345fi
15346rm -f conftest.err conftest.$ac_objext \
15347 conftest$ac_exeext conftest.$ac_ext
15348fi
15349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15350echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15351if test `eval echo '${'$as_ac_var'}'` = yes; then
15352 cat >>confdefs.h <<_ACEOF
15353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15354_ACEOF
15355
15356fi
15357done
15358
15359
15360
15361for ac_func in setpgid setpgrp
15362do
15363as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15364echo "$as_me:$LINENO: checking for $ac_func" >&5
15365echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15366if eval "test \"\${$as_ac_var+set}\" = set"; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369 cat >conftest.$ac_ext <<_ACEOF
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15377#define $ac_func innocuous_$ac_func
15378
15379/* System header to define __stub macros and hopefully few prototypes,
15380 which can conflict with char $ac_func (); below.
15381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15382 <limits.h> exists even on freestanding compilers. */
15383
15384#ifdef __STDC__
15385# include <limits.h>
15386#else
15387# include <assert.h>
15388#endif
15389
15390#undef $ac_func
15391
15392/* Override any gcc2 internal prototype to avoid an error. */
15393#ifdef __cplusplus
15394extern "C"
15395{
15396#endif
15397/* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15399char $ac_func ();
15400/* The GNU C library defines this for functions which it implements
15401 to always fail with ENOSYS. Some functions are actually named
15402 something starting with __ and the normal name is an alias. */
15403#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15404choke me
15405#else
15406char (*f) () = $ac_func;
15407#endif
15408#ifdef __cplusplus
15409}
15410#endif
15411
15412int
15413main ()
15414{
15415return f != $ac_func;
15416 ;
15417 return 0;
15418}
15419_ACEOF
15420rm -f conftest.$ac_objext conftest$ac_exeext
15421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422 (eval $ac_link) 2>conftest.er1
15423 ac_status=$?
15424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag"
15430 || test ! -s conftest.err'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest$ac_exeext'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 eval "$as_ac_var=yes"
15443else
15444 echo "$as_me: failed program was:" >&5
15445sed 's/^/| /' conftest.$ac_ext >&5
15446
15447eval "$as_ac_var=no"
15448fi
15449rm -f conftest.err conftest.$ac_objext \
15450 conftest$ac_exeext conftest.$ac_ext
15451fi
15452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15453echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15454if test `eval echo '${'$as_ac_var'}'` = yes; then
15455 cat >>confdefs.h <<_ACEOF
15456#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15457_ACEOF
15458
15459fi
15460done
15461
15462
15463
15464
15465for ac_func in sigaction sigprocmask sigsetmask
15466do
15467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15468echo "$as_me:$LINENO: checking for $ac_func" >&5
15469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15470if eval "test \"\${$as_ac_var+set}\" = set"; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15472else
15473 cat >conftest.$ac_ext <<_ACEOF
15474/* confdefs.h. */
15475_ACEOF
15476cat confdefs.h >>conftest.$ac_ext
15477cat >>conftest.$ac_ext <<_ACEOF
15478/* end confdefs.h. */
15479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15481#define $ac_func innocuous_$ac_func
15482
15483/* System header to define __stub macros and hopefully few prototypes,
15484 which can conflict with char $ac_func (); below.
15485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15486 <limits.h> exists even on freestanding compilers. */
15487
15488#ifdef __STDC__
15489# include <limits.h>
15490#else
15491# include <assert.h>
15492#endif
15493
15494#undef $ac_func
15495
15496/* Override any gcc2 internal prototype to avoid an error. */
15497#ifdef __cplusplus
15498extern "C"
15499{
15500#endif
15501/* We use char because int might match the return type of a gcc2
15502 builtin and then its argument prototype would still apply. */
15503char $ac_func ();
15504/* The GNU C library defines this for functions which it implements
15505 to always fail with ENOSYS. Some functions are actually named
15506 something starting with __ and the normal name is an alias. */
15507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15508choke me
15509#else
15510char (*f) () = $ac_func;
15511#endif
15512#ifdef __cplusplus
15513}
15514#endif
15515
15516int
15517main ()
15518{
15519return f != $ac_func;
15520 ;
15521 return 0;
15522}
15523_ACEOF
15524rm -f conftest.$ac_objext conftest$ac_exeext
15525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15526 (eval $ac_link) 2>conftest.er1
15527 ac_status=$?
15528 grep -v '^ *+' conftest.er1 >conftest.err
15529 rm -f conftest.er1
15530 cat conftest.err >&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -z "$ac_c_werror_flag"
15534 || test ! -s conftest.err'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest$ac_exeext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 eval "$as_ac_var=yes"
15547else
15548 echo "$as_me: failed program was:" >&5
15549sed 's/^/| /' conftest.$ac_ext >&5
15550
15551eval "$as_ac_var=no"
15552fi
15553rm -f conftest.err conftest.$ac_objext \
15554 conftest$ac_exeext conftest.$ac_ext
15555fi
15556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15558if test `eval echo '${'$as_ac_var'}'` = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15561_ACEOF
15562
15563fi
15564done
15565
15566
15567for ac_func in socketpair
15568do
15569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15570echo "$as_me:$LINENO: checking for $ac_func" >&5
15571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15572if eval "test \"\${$as_ac_var+set}\" = set"; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574else
15575 cat >conftest.$ac_ext <<_ACEOF
15576/* confdefs.h. */
15577_ACEOF
15578cat confdefs.h >>conftest.$ac_ext
15579cat >>conftest.$ac_ext <<_ACEOF
15580/* end confdefs.h. */
15581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15583#define $ac_func innocuous_$ac_func
15584
15585/* System header to define __stub macros and hopefully few prototypes,
15586 which can conflict with char $ac_func (); below.
15587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15588 <limits.h> exists even on freestanding compilers. */
15589
15590#ifdef __STDC__
15591# include <limits.h>
15592#else
15593# include <assert.h>
15594#endif
15595
15596#undef $ac_func
15597
15598/* Override any gcc2 internal prototype to avoid an error. */
15599#ifdef __cplusplus
15600extern "C"
15601{
15602#endif
15603/* We use char because int might match the return type of a gcc2
15604 builtin and then its argument prototype would still apply. */
15605char $ac_func ();
15606/* The GNU C library defines this for functions which it implements
15607 to always fail with ENOSYS. Some functions are actually named
15608 something starting with __ and the normal name is an alias. */
15609#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15610choke me
15611#else
15612char (*f) () = $ac_func;
15613#endif
15614#ifdef __cplusplus
15615}
15616#endif
15617
15618int
15619main ()
15620{
15621return f != $ac_func;
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext conftest$ac_exeext
15627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15628 (eval $ac_link) 2>conftest.er1
15629 ac_status=$?
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
15635 { ac_try='test -z "$ac_c_werror_flag"
15636 || test ! -s conftest.err'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; } &&
15642 { ac_try='test -s conftest$ac_exeext'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 eval "$as_ac_var=yes"
15649else
15650 echo "$as_me: failed program was:" >&5
15651sed 's/^/| /' conftest.$ac_ext >&5
15652
15653eval "$as_ac_var=no"
15654fi
15655rm -f conftest.err conftest.$ac_objext \
15656 conftest$ac_exeext conftest.$ac_ext
15657fi
15658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15660if test `eval echo '${'$as_ac_var'}'` = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15663_ACEOF
15664
15665fi
15666done
15667
15668
15669for ac_func in syscall
15670do
15671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15672echo "$as_me:$LINENO: checking for $ac_func" >&5
15673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15674if eval "test \"\${$as_ac_var+set}\" = set"; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676else
15677 cat >conftest.$ac_ext <<_ACEOF
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
15683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15685#define $ac_func innocuous_$ac_func
15686
15687/* System header to define __stub macros and hopefully few prototypes,
15688 which can conflict with char $ac_func (); below.
15689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15690 <limits.h> exists even on freestanding compilers. */
15691
15692#ifdef __STDC__
15693# include <limits.h>
15694#else
15695# include <assert.h>
15696#endif
15697
15698#undef $ac_func
15699
15700/* Override any gcc2 internal prototype to avoid an error. */
15701#ifdef __cplusplus
15702extern "C"
15703{
15704#endif
15705/* We use char because int might match the return type of a gcc2
15706 builtin and then its argument prototype would still apply. */
15707char $ac_func ();
15708/* The GNU C library defines this for functions which it implements
15709 to always fail with ENOSYS. Some functions are actually named
15710 something starting with __ and the normal name is an alias. */
15711#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15712choke me
15713#else
15714char (*f) () = $ac_func;
15715#endif
15716#ifdef __cplusplus
15717}
15718#endif
15719
15720int
15721main ()
15722{
15723return f != $ac_func;
15724 ;
15725 return 0;
15726}
15727_ACEOF
15728rm -f conftest.$ac_objext conftest$ac_exeext
15729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15730 (eval $ac_link) 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -z "$ac_c_werror_flag"
15738 || test ! -s conftest.err'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest$ac_exeext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 eval "$as_ac_var=yes"
15751else
15752 echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
15755eval "$as_ac_var=no"
15756fi
15757rm -f conftest.err conftest.$ac_objext \
15758 conftest$ac_exeext conftest.$ac_ext
15759fi
15760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15761echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15762if test `eval echo '${'$as_ac_var'}'` = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15765_ACEOF
15766
15767fi
15768done
15769
15770
15771for ac_func in ttrace
15772do
15773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15774echo "$as_me:$LINENO: checking for $ac_func" >&5
15775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15776if eval "test \"\${$as_ac_var+set}\" = set"; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778else
15779 cat >conftest.$ac_ext <<_ACEOF
15780/* confdefs.h. */
15781_ACEOF
15782cat confdefs.h >>conftest.$ac_ext
15783cat >>conftest.$ac_ext <<_ACEOF
15784/* end confdefs.h. */
15785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15787#define $ac_func innocuous_$ac_func
15788
15789/* System header to define __stub macros and hopefully few prototypes,
15790 which can conflict with char $ac_func (); below.
15791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15792 <limits.h> exists even on freestanding compilers. */
15793
15794#ifdef __STDC__
15795# include <limits.h>
15796#else
15797# include <assert.h>
15798#endif
15799
15800#undef $ac_func
15801
15802/* Override any gcc2 internal prototype to avoid an error. */
15803#ifdef __cplusplus
15804extern "C"
15805{
15806#endif
15807/* We use char because int might match the return type of a gcc2
15808 builtin and then its argument prototype would still apply. */
15809char $ac_func ();
15810/* The GNU C library defines this for functions which it implements
15811 to always fail with ENOSYS. Some functions are actually named
15812 something starting with __ and the normal name is an alias. */
15813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15814choke me
15815#else
15816char (*f) () = $ac_func;
15817#endif
15818#ifdef __cplusplus
15819}
15820#endif
15821
15822int
15823main ()
15824{
15825return f != $ac_func;
15826 ;
15827 return 0;
15828}
15829_ACEOF
15830rm -f conftest.$ac_objext conftest$ac_exeext
15831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15832 (eval $ac_link) 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag"
15840 || test ! -s conftest.err'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest$ac_exeext'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 eval "$as_ac_var=yes"
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857eval "$as_ac_var=no"
15858fi
15859rm -f conftest.err conftest.$ac_objext \
15860 conftest$ac_exeext conftest.$ac_ext
15861fi
15862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15863echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15864if test `eval echo '${'$as_ac_var'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15867_ACEOF
15868
15869fi
15870done
15871
15872
15873for ac_func in wborder
15874do
15875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15876echo "$as_me:$LINENO: checking for $ac_func" >&5
15877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15878if eval "test \"\${$as_ac_var+set}\" = set"; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880else
15881 cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15889#define $ac_func innocuous_$ac_func
15890
15891/* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char $ac_func (); below.
15893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15894 <limits.h> exists even on freestanding compilers. */
15895
15896#ifdef __STDC__
15897# include <limits.h>
15898#else
15899# include <assert.h>
15900#endif
15901
15902#undef $ac_func
15903
15904/* Override any gcc2 internal prototype to avoid an error. */
15905#ifdef __cplusplus
15906extern "C"
15907{
15908#endif
15909/* We use char because int might match the return type of a gcc2
15910 builtin and then its argument prototype would still apply. */
15911char $ac_func ();
15912/* The GNU C library defines this for functions which it implements
15913 to always fail with ENOSYS. Some functions are actually named
15914 something starting with __ and the normal name is an alias. */
15915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15916choke me
15917#else
15918char (*f) () = $ac_func;
15919#endif
15920#ifdef __cplusplus
15921}
15922#endif
15923
15924int
15925main ()
15926{
15927return f != $ac_func;
15928 ;
15929 return 0;
15930}
15931_ACEOF
15932rm -f conftest.$ac_objext conftest$ac_exeext
15933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15934 (eval $ac_link) 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 eval "$as_ac_var=yes"
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959eval "$as_ac_var=no"
15960fi
15961rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963fi
15964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966if test `eval echo '${'$as_ac_var'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15969_ACEOF
15970
15971fi
15972done
15973
15974
15975# Check the return and argument types of ptrace. No canned test for
15976# this, so roll our own.
15977gdb_ptrace_headers='
15978#if HAVE_SYS_TYPES_H
15979# include <sys/types.h>
15980#endif
15981#if HAVE_SYS_PTRACE_H
15982# include <sys/ptrace.h>
15983#endif
15984#if HAVE_UNISTD_H
15985# include <unistd.h>
15986#endif
15987'
15988# There is no point in checking if we don't have a prototype.
15989for ac_func in ptrace
15990do
15991 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15992echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
15993echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
15994if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996else
15997 cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003#undef $ac_tr_decl
16004#define $ac_tr_decl 1
16005 $gdb_ptrace_headers
16006
16007int
16008main ()
16009{
16010#ifndef $ac_func
16011char *(*pfn) = (char *(*)) $ac_func ;
16012#endif
16013 ;
16014 return 0;
16015}
16016_ACEOF
16017rm -f conftest.$ac_objext
16018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16019 (eval $ac_compile) 2>conftest.er1
16020 ac_status=$?
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -z "$ac_c_werror_flag"
16027 || test ! -s conftest.err'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try='test -s conftest.$ac_objext'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 eval "gcc_cv_have_decl_$ac_func=yes"
16040else
16041 echo "$as_me: failed program was:" >&5
16042sed 's/^/| /' conftest.$ac_ext >&5
16043
16044eval "gcc_cv_have_decl_$ac_func=no"
16045fi
16046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16047fi
16048
16049if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
16050 echo "$as_me:$LINENO: result: yes" >&5
16051echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
16052#define $ac_tr_decl 1
16053_ACEOF
16054
16055else
16056 echo "$as_me:$LINENO: result: no" >&5
16057echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
16058#define $ac_tr_decl 0
16059_ACEOF
16060
16061 : ${gdb_cv_func_ptrace_ret='int'}
16062 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16063
16064fi
16065
16066done
16067if test x = y ; then
16068
16069cat >>confdefs.h <<\_ACEOF
16070#define HAVE_DECL_PTRACE 1
16071_ACEOF
16072fi
16073
16074# Check return type.
16075echo "$as_me:$LINENO: checking return type of ptrace" >&5
16076echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16077if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
16079else
16080 cat >conftest.$ac_ext <<_ACEOF
16081/* confdefs.h. */
16082_ACEOF
16083cat confdefs.h >>conftest.$ac_ext
16084cat >>conftest.$ac_ext <<_ACEOF
16085/* end confdefs.h. */
16086$gdb_ptrace_headers
16087int
16088main ()
16089{
16090extern int ptrace ();
16091 ;
16092 return 0;
16093}
16094_ACEOF
16095rm -f conftest.$ac_objext
16096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16097 (eval $ac_compile) 2>conftest.er1
16098 ac_status=$?
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } &&
16104 { ac_try='test -z "$ac_c_werror_flag"
16105 || test ! -s conftest.err'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; } &&
16111 { ac_try='test -s conftest.$ac_objext'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16114 ac_status=$?
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 gdb_cv_func_ptrace_ret='int'
16118else
16119 echo "$as_me: failed program was:" >&5
16120sed 's/^/| /' conftest.$ac_ext >&5
16121
16122gdb_cv_func_ptrace_ret='long'
16123fi
16124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16125fi
16126echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16127echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16128
16129cat >>confdefs.h <<_ACEOF
16130#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16131_ACEOF
16132
16133# Check argument types.
16134echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16135echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16136if test "${gdb_cv_func_ptrace_args+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16138else
16139
16140for gdb_arg1 in 'int' 'long'; do
16141 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16142 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16143 for gdb_arg4 in 'int' 'long'; do
16144 cat >conftest.$ac_ext <<_ACEOF
16145/* confdefs.h. */
16146_ACEOF
16147cat confdefs.h >>conftest.$ac_ext
16148cat >>conftest.$ac_ext <<_ACEOF
16149/* end confdefs.h. */
16150$gdb_ptrace_headers
16151int
16152main ()
16153{
16154
16155extern $gdb_cv_func_ptrace_ret
16156 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16157
16158 ;
16159 return 0;
16160}
16161_ACEOF
16162rm -f conftest.$ac_objext
16163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164 (eval $ac_compile) 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag"
16172 || test ! -s conftest.err'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try='test -s conftest.$ac_objext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16185 break 4;
16186else
16187 echo "$as_me: failed program was:" >&5
16188sed 's/^/| /' conftest.$ac_ext >&5
16189
16190fi
16191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16192 for gdb_arg5 in 'int *' 'int' 'long'; do
16193 cat >conftest.$ac_ext <<_ACEOF
16194/* confdefs.h. */
16195_ACEOF
16196cat confdefs.h >>conftest.$ac_ext
16197cat >>conftest.$ac_ext <<_ACEOF
16198/* end confdefs.h. */
16199$gdb_ptrace_headers
16200int
16201main ()
16202{
16203
16204extern $gdb_cv_func_ptrace_ret
16205 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16206
16207 ;
16208 return 0;
16209}
16210_ACEOF
16211rm -f conftest.$ac_objext
16212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16213 (eval $ac_compile) 2>conftest.er1
16214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
16220 { ac_try='test -z "$ac_c_werror_flag"
16221 || test ! -s conftest.err'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest.$ac_objext'
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
16233
16234gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16235 break 5;
16236else
16237 echo "$as_me: failed program was:" >&5
16238sed 's/^/| /' conftest.$ac_ext >&5
16239
16240fi
16241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16242 done
16243 done
16244 done
16245 done
16246done
16247# Provide a safe default value.
16248: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16249
16250fi
16251echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16252echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16253ac_save_IFS=$IFS; IFS=','
16254set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16255IFS=$ac_save_IFS
16256shift
16257
16258cat >>confdefs.h <<_ACEOF
16259#define PTRACE_TYPE_ARG3 $3
16260_ACEOF
16261
16262if test -n "$5"; then
16263
16264cat >>confdefs.h <<_ACEOF
16265#define PTRACE_TYPE_ARG5 $5
16266_ACEOF
16267
16268fi
16269
16270if test "$cross_compiling" = no; then
16271 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16272echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16273if test "${ac_cv_func_setpgrp_void+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275else
16276 if test "$cross_compiling" = yes; then
16277 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16278echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16279 { (exit 1); exit 1; }; }
16280else
16281 cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287#if HAVE_UNISTD_H
16288# include <unistd.h>
16289#endif
16290
16291int
16292main ()
16293{
16294/* If this system has a BSD-style setpgrp which takes arguments,
16295 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16296 exit successfully. */
16297 exit (setpgrp (1,1) == -1 ? 0 : 1);
16298 ;
16299 return 0;
16300}
16301_ACEOF
16302rm -f conftest$ac_exeext
16303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16304 (eval $ac_link) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_cv_func_setpgrp_void=no
16314else
16315 echo "$as_me: program exited with status $ac_status" >&5
16316echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319( exit $ac_status )
16320ac_cv_func_setpgrp_void=yes
16321fi
16322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16323fi
16324fi
16325echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16326echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16327if test $ac_cv_func_setpgrp_void = yes; then
16328
16329cat >>confdefs.h <<\_ACEOF
16330#define SETPGRP_VOID 1
16331_ACEOF
16332
16333fi
16334
16335else
16336 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16337echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16338if test "${ac_cv_func_setpgrp_void+set}" = set; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16340else
16341 cat >conftest.$ac_ext <<_ACEOF
16342/* confdefs.h. */
16343_ACEOF
16344cat confdefs.h >>conftest.$ac_ext
16345cat >>conftest.$ac_ext <<_ACEOF
16346/* end confdefs.h. */
16347
16348#include <unistd.h>
16349
16350int
16351main ()
16352{
16353
16354 if (setpgrp(1,1) == -1)
16355 exit (0);
16356 else
16357 exit (1);
16358
16359 ;
16360 return 0;
16361}
16362_ACEOF
16363rm -f conftest.$ac_objext
16364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16365 (eval $ac_compile) 2>conftest.er1
16366 ac_status=$?
16367 grep -v '^ *+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } &&
16372 { ac_try='test -z "$ac_c_werror_flag"
16373 || test ! -s conftest.err'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; } &&
16379 { ac_try='test -s conftest.$ac_objext'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 ac_cv_func_setpgrp_void=no
16386else
16387 echo "$as_me: failed program was:" >&5
16388sed 's/^/| /' conftest.$ac_ext >&5
16389
16390ac_cv_func_setpgrp_void=yes
16391fi
16392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16393fi
16394echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16395echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16396if test $ac_cv_func_setpgrp_void = yes; then
16397 cat >>confdefs.h <<\_ACEOF
16398#define SETPGRP_VOID 1
16399_ACEOF
16400
16401fi
16402fi
16403
16404# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16405# since sigsetjmp might only be defined as a macro.
16406echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16407echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16408if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410else
16411 cat >conftest.$ac_ext <<_ACEOF
16412/* confdefs.h. */
16413_ACEOF
16414cat confdefs.h >>conftest.$ac_ext
16415cat >>conftest.$ac_ext <<_ACEOF
16416/* end confdefs.h. */
16417
16418#include <setjmp.h>
16419
16420int
16421main ()
16422{
16423sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext
16429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16430 (eval $ac_compile) 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_c_werror_flag"
16438 || test ! -s conftest.err'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest.$ac_objext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 gdb_cv_func_sigsetjmp=yes
16451else
16452 echo "$as_me: failed program was:" >&5
16453sed 's/^/| /' conftest.$ac_ext >&5
16454
16455gdb_cv_func_sigsetjmp=no
16456fi
16457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16458fi
16459echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16460echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16461if test $gdb_cv_func_sigsetjmp = yes; then
16462
16463cat >>confdefs.h <<\_ACEOF
16464#define HAVE_SIGSETJMP 1
16465_ACEOF
16466
16467fi
16468
16469# Assume we'll default to using the included libiberty regex.
16470gdb_use_included_regex=yes
16471
16472# However, if the system regex is GNU regex, then default to *not*
16473# using the included regex.
16474echo "$as_me:$LINENO: checking for GNU regex" >&5
16475echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16476if test "${gdb_cv_have_gnu_regex+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478else
16479 cat >conftest.$ac_ext <<_ACEOF
16480/* confdefs.h. */
16481_ACEOF
16482cat confdefs.h >>conftest.$ac_ext
16483cat >>conftest.$ac_ext <<_ACEOF
16484/* end confdefs.h. */
16485#include <gnu-versions.h>
16486int
16487main ()
16488{
16489#define REGEX_INTERFACE_VERSION 1
16490#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16491# error "Version mismatch"
16492#endif
16493 ;
16494 return 0;
16495}
16496_ACEOF
16497rm -f conftest.$ac_objext
16498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16499 (eval $ac_compile) 2>conftest.er1
16500 ac_status=$?
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag"
16507 || test ! -s conftest.err'
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; } &&
16513 { ac_try='test -s conftest.$ac_objext'
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 gdb_cv_have_gnu_regex=yes
16520else
16521 echo "$as_me: failed program was:" >&5
16522sed 's/^/| /' conftest.$ac_ext >&5
16523
16524gdb_cv_have_gnu_regex=no
16525fi
16526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16527fi
16528echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16529echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16530if test $gdb_cv_have_gnu_regex = yes; then
16531 gdb_use_included_regex=no
16532fi
16533
16534
16535# Check whether --with-included-regex or --without-included-regex was given.
16536if test "${with_included_regex+set}" = set; then
16537 withval="$with_included_regex"
16538 gdb_with_regex=$withval
16539else
16540 gdb_with_regex=$gdb_use_included_regex
16541fi;
16542if test "$gdb_with_regex" = yes; then
16543
16544cat >>confdefs.h <<\_ACEOF
16545#define USE_INCLUDED_REGEX 1
16546_ACEOF
16547
16548fi
16549
16550# See if <sys/proc.h> defines `struct thread' with a td_pcb member.
16551echo "$as_me:$LINENO: checking for td_pcb in struct thread" >&5
16552echo $ECHO_N "checking for td_pcb in struct thread... $ECHO_C" >&6
16553if test "${gdb_cv_struct_thread_td_pcb+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555else
16556 cat >conftest.$ac_ext <<_ACEOF
16557/* confdefs.h. */
16558_ACEOF
16559cat confdefs.h >>conftest.$ac_ext
16560cat >>conftest.$ac_ext <<_ACEOF
16561/* end confdefs.h. */
16562#include <sys/param.h>
16563#include <sys/proc.h>
16564int
16565main ()
16566{
16567struct thread td; td.td_pcb;
16568 ;
16569 return 0;
16570}
16571_ACEOF
16572rm -f conftest.$ac_objext
16573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16574 (eval $ac_compile) 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -z "$ac_c_werror_flag"
16582 || test ! -s conftest.err'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest.$ac_objext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 gdb_cv_struct_thread_td_pcb=yes
16595else
16596 echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599gdb_cv_struct_thread_td_pcb=no
16600fi
16601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16602fi
16603echo "$as_me:$LINENO: result: $gdb_cv_struct_thread_td_pcb" >&5
16604echo "${ECHO_T}$gdb_cv_struct_thread_td_pcb" >&6
16605if test $gdb_cv_struct_thread_td_pcb = yes; then
16606
16607cat >>confdefs.h <<\_ACEOF
16608#define HAVE_STRUCT_THREAD_TD_PCB 1
16609_ACEOF
16610
16611fi
16612
16613# See if <sys/lwp.h> defines `struct lwp`.
16614echo "$as_me:$LINENO: checking for struct lwp" >&5
16615echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16616if test "${gdb_cv_struct_lwp+set}" = set; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16618else
16619 cat >conftest.$ac_ext <<_ACEOF
16620/* confdefs.h. */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h. */
16625#include <sys/param.h>
16626#include <sys/lwp.h>
16627int
16628main ()
16629{
16630struct lwp l;
16631 ;
16632 return 0;
16633}
16634_ACEOF
16635rm -f conftest.$ac_objext
16636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16637 (eval $ac_compile) 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag"
16645 || test ! -s conftest.err'
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest.$ac_objext'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 gdb_cv_struct_lwp=yes
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662gdb_cv_struct_lwp=no
16663fi
16664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16665fi
16666echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16667echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16668if test $gdb_cv_struct_lwp = yes; then
16669
16670cat >>confdefs.h <<\_ACEOF
16671#define HAVE_STRUCT_LWP 1
16672_ACEOF
16673
16674fi
16675
16676# See if <machine/reg.h> degines `struct reg'.
16677echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16678echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16679if test "${gdb_cv_struct_reg+set}" = set; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16681else
16682 cat >conftest.$ac_ext <<_ACEOF
16683/* confdefs.h. */
16684_ACEOF
16685cat confdefs.h >>conftest.$ac_ext
16686cat >>conftest.$ac_ext <<_ACEOF
16687/* end confdefs.h. */
16688#include <sys/types.h>
16689#include <machine/reg.h>
16690int
16691main ()
16692{
16693struct reg r;
16694 ;
16695 return 0;
16696}
16697_ACEOF
16698rm -f conftest.$ac_objext
16699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>conftest.er1
16701 ac_status=$?
16702 grep -v '^ *+' conftest.er1 >conftest.err
16703 rm -f conftest.er1
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
16707 { ac_try='test -z "$ac_c_werror_flag"
16708 || test ! -s conftest.err'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 gdb_cv_struct_reg=yes
16721else
16722 echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
16725gdb_cv_struct_reg=no
16726fi
16727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16728fi
16729echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16730echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16731if test $gdb_cv_struct_reg = yes; then
16732
16733cat >>confdefs.h <<\_ACEOF
16734#define HAVE_STRUCT_REG 1
16735_ACEOF
16736
16737fi
16738
16739# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16740# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16741echo "$as_me:$LINENO: checking for r_fs in struct reg" >&5
16742echo $ECHO_N "checking for r_fs in struct reg... $ECHO_C" >&6
16743if test "${gdb_cv_struct_reg_r_fs+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745else
16746 cat >conftest.$ac_ext <<_ACEOF
16747/* confdefs.h. */
16748_ACEOF
16749cat confdefs.h >>conftest.$ac_ext
16750cat >>conftest.$ac_ext <<_ACEOF
16751/* end confdefs.h. */
16752#include <machine/reg.h>
16753int
16754main ()
16755{
16756struct reg r; r.r_fs;
16757 ;
16758 return 0;
16759}
16760_ACEOF
16761rm -f conftest.$ac_objext
16762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763 (eval $ac_compile) 2>conftest.er1
16764 ac_status=$?
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 gdb_cv_struct_reg_r_fs=yes
16784else
16785 echo "$as_me: failed program was:" >&5
16786sed 's/^/| /' conftest.$ac_ext >&5
16787
16788gdb_cv_struct_reg_r_fs=no
16789fi
16790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16791fi
16792echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_fs" >&5
16793echo "${ECHO_T}$gdb_cv_struct_reg_r_fs" >&6
16794if test $gdb_cv_struct_reg_r_fs = yes; then
16795 cat >>confdefs.h <<\_ACEOF
16796#define HAVE_STRUCT_REG_R_FS 1
16797_ACEOF
16798
16799fi
16800echo "$as_me:$LINENO: checking for r_gs in struct reg" >&5
16801echo $ECHO_N "checking for r_gs in struct reg... $ECHO_C" >&6
16802if test "${gdb_cv_struct_reg_r_gs+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16804else
16805 cat >conftest.$ac_ext <<_ACEOF
16806/* confdefs.h. */
16807_ACEOF
16808cat confdefs.h >>conftest.$ac_ext
16809cat >>conftest.$ac_ext <<_ACEOF
16810/* end confdefs.h. */
16811#include <machine/reg.h>
16812int
16813main ()
16814{
16815struct reg r; r.r_gs;
16816 ;
16817 return 0;
16818}
16819_ACEOF
16820rm -f conftest.$ac_objext
16821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16822 (eval $ac_compile) 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag"
16830 || test ! -s conftest.err'
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); }; } &&
16836 { ac_try='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 gdb_cv_struct_reg_r_gs=yes
16843else
16844 echo "$as_me: failed program was:" >&5
16845sed 's/^/| /' conftest.$ac_ext >&5
16846
16847gdb_cv_struct_reg_r_gs=no
16848fi
16849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16850fi
16851echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_gs" >&5
16852echo "${ECHO_T}$gdb_cv_struct_reg_r_gs" >&6
16853if test $gdb_cv_struct_reg_r_gs = yes; then
16854 cat >>confdefs.h <<\_ACEOF
16855#define HAVE_STRUCT_REG_R_GS 1
16856_ACEOF
16857
16858fi
16859
16860# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16861echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16862echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16863if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865else
16866 cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
16872#include <sys/ptrace.h>
16873int
16874main ()
16875{
16876PTRACE_GETREGS;
16877 ;
16878 return 0;
16879}
16880_ACEOF
16881rm -f conftest.$ac_objext
16882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16883 (eval $ac_compile) 2>conftest.er1
16884 ac_status=$?
16885 grep -v '^ *+' conftest.er1 >conftest.err
16886 rm -f conftest.er1
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -z "$ac_c_werror_flag"
16891 || test ! -s conftest.err'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest.$ac_objext'
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 gdb_cv_have_ptrace_getregs=yes
16904else
16905 echo "$as_me: failed program was:" >&5
16906sed 's/^/| /' conftest.$ac_ext >&5
16907
16908gdb_cv_have_ptrace_getregs=no
16909fi
16910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16911fi
16912
16913echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16914echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
16915if test $gdb_cv_have_ptrace_getregs = yes; then
16916 cat >>confdefs.h <<\_ACEOF
16917#define HAVE_PTRACE_GETREGS 1
16918_ACEOF
16919
16920fi
16921
16922# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16923echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16924echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16925if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16927else
16928 cat >conftest.$ac_ext <<_ACEOF
16929/* confdefs.h. */
16930_ACEOF
16931cat confdefs.h >>conftest.$ac_ext
16932cat >>conftest.$ac_ext <<_ACEOF
16933/* end confdefs.h. */
16934#include <sys/ptrace.h>
16935int
16936main ()
16937{
16938PTRACE_GETFPXREGS;
16939 ;
16940 return 0;
16941}
16942_ACEOF
16943rm -f conftest.$ac_objext
16944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16945 (eval $ac_compile) 2>conftest.er1
16946 ac_status=$?
16947 grep -v '^ *+' conftest.er1 >conftest.err
16948 rm -f conftest.er1
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
16952 { ac_try='test -z "$ac_c_werror_flag"
16953 || test ! -s conftest.err'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; } &&
16959 { ac_try='test -s conftest.$ac_objext'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 gdb_cv_have_ptrace_getfpxregs=yes
16966else
16967 echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970gdb_cv_have_ptrace_getfpxregs=no
16971fi
16972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16973fi
16974
16975echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16976echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
16977if test $gdb_cv_have_ptrace_getfpxregs = yes; then
16978 cat >>confdefs.h <<\_ACEOF
16979#define HAVE_PTRACE_GETFPXREGS 1
16980_ACEOF
16981
16982fi
16983
16984# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16985echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16986echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16987if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16989else
16990 cat >conftest.$ac_ext <<_ACEOF
16991/* confdefs.h. */
16992_ACEOF
16993cat confdefs.h >>conftest.$ac_ext
16994cat >>conftest.$ac_ext <<_ACEOF
16995/* end confdefs.h. */
16996#include <sys/types.h>
16997#include <sys/ptrace.h>
16998int
16999main ()
17000{
17001PT_GETDBREGS;
17002 ;
17003 return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext
17007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17008 (eval $ac_compile) 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -z "$ac_c_werror_flag"
17016 || test ! -s conftest.err'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest.$ac_objext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 gdb_cv_have_pt_getdbregs=yes
17029else
17030 echo "$as_me: failed program was:" >&5
17031sed 's/^/| /' conftest.$ac_ext >&5
17032
17033gdb_cv_have_pt_getdbregs=no
17034fi
17035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17036fi
17037
17038echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17039echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17040if test $gdb_cv_have_pt_getdbregs = yes; then
17041 cat >>confdefs.h <<\_ACEOF
17042#define HAVE_PT_GETDBREGS 1
17043_ACEOF
17044
17045fi
17046
17047# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17048echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17049echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17050if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17052else
17053 cat >conftest.$ac_ext <<_ACEOF
17054/* confdefs.h. */
17055_ACEOF
17056cat confdefs.h >>conftest.$ac_ext
17057cat >>conftest.$ac_ext <<_ACEOF
17058/* end confdefs.h. */
17059#include <sys/types.h>
17060#include <sys/ptrace.h>
17061int
17062main ()
17063{
17064PT_GETXMMREGS;
17065 ;
17066 return 0;
17067}
17068_ACEOF
17069rm -f conftest.$ac_objext
17070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17071 (eval $ac_compile) 2>conftest.er1
17072 ac_status=$?
17073 grep -v '^ *+' conftest.er1 >conftest.err
17074 rm -f conftest.er1
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -z "$ac_c_werror_flag"
17079 || test ! -s conftest.err'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest.$ac_objext'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; }; then
17091 gdb_cv_have_pt_getxmmregs=yes
17092else
17093 echo "$as_me: failed program was:" >&5
17094sed 's/^/| /' conftest.$ac_ext >&5
17095
17096gdb_cv_have_pt_getxmmregs=no
17097fi
17098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17099fi
17100
17101echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17102echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17103if test $gdb_cv_have_pt_getxmmregs = yes; then
17104 cat >>confdefs.h <<\_ACEOF
17105#define HAVE_PT_GETXMMREGS 1
17106_ACEOF
17107
17108fi
17109
17110# See if stdint.h provides the uintptr_t type.
17111# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
17112echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
17113echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
17114if test "${gdb_cv_have_uintptr_t+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116else
17117 cat >conftest.$ac_ext <<_ACEOF
17118/* confdefs.h. */
17119_ACEOF
17120cat confdefs.h >>conftest.$ac_ext
17121cat >>conftest.$ac_ext <<_ACEOF
17122/* end confdefs.h. */
17123#include <stdint.h>
17124int
17125main ()
17126{
17127uintptr_t foo = 0;
17128 ;
17129 return 0;
17130}
17131_ACEOF
17132rm -f conftest.$ac_objext
17133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17134 (eval $ac_compile) 2>conftest.er1
17135 ac_status=$?
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest.$ac_objext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 gdb_cv_have_uintptr_t=yes
17155else
17156 echo "$as_me: failed program was:" >&5
17157sed 's/^/| /' conftest.$ac_ext >&5
17158
17159gdb_cv_have_uintptr_t=no
17160fi
17161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17162fi
17163echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
17164echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
17165if test $gdb_cv_have_uintptr_t = yes; then
17166
17167cat >>confdefs.h <<\_ACEOF
17168#define HAVE_UINTPTR_T 1
17169_ACEOF
17170
17171fi
17172
17173echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
17174echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
17175if test "${bfd_cv_decl_needed_malloc+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17177else
17178 cat >conftest.$ac_ext <<_ACEOF
17179/* confdefs.h. */
17180_ACEOF
17181cat confdefs.h >>conftest.$ac_ext
17182cat >>conftest.$ac_ext <<_ACEOF
17183/* end confdefs.h. */
17184
17185#include <stdio.h>
17186#ifdef HAVE_STRING_H
17187#include <string.h>
17188#else
17189#ifdef HAVE_STRINGS_H
17190#include <strings.h>
17191#endif
17192#endif
17193#ifdef HAVE_STDLIB_H
17194#include <stdlib.h>
17195#endif
17196#ifdef HAVE_UNISTD_H
17197#include <unistd.h>
17198#endif
17199int
17200main ()
17201{
17202char *(*pfn) = (char *(*)) malloc
17203 ;
17204 return 0;
17205}
17206_ACEOF
17207rm -f conftest.$ac_objext
17208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17209 (eval $ac_compile) 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag"
17217 || test ! -s conftest.err'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; } &&
17223 { ac_try='test -s conftest.$ac_objext'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 bfd_cv_decl_needed_malloc=no
17230else
17231 echo "$as_me: failed program was:" >&5
17232sed 's/^/| /' conftest.$ac_ext >&5
17233
17234bfd_cv_decl_needed_malloc=yes
17235fi
17236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17237fi
17238
17239echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
17240echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
17241if test $bfd_cv_decl_needed_malloc = yes; then
17242
17243cat >>confdefs.h <<\_ACEOF
17244#define NEED_DECLARATION_MALLOC 1
17245_ACEOF
17246
17247fi
17248
17249echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
17250echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
17251if test "${bfd_cv_decl_needed_realloc+set}" = set; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17253else
17254 cat >conftest.$ac_ext <<_ACEOF
17255/* confdefs.h. */
17256_ACEOF
17257cat confdefs.h >>conftest.$ac_ext
17258cat >>conftest.$ac_ext <<_ACEOF
17259/* end confdefs.h. */
17260
17261#include <stdio.h>
17262#ifdef HAVE_STRING_H
17263#include <string.h>
17264#else
17265#ifdef HAVE_STRINGS_H
17266#include <strings.h>
17267#endif
17268#endif
17269#ifdef HAVE_STDLIB_H
17270#include <stdlib.h>
17271#endif
17272#ifdef HAVE_UNISTD_H
17273#include <unistd.h>
17274#endif
17275int
17276main ()
17277{
17278char *(*pfn) = (char *(*)) realloc
17279 ;
17280 return 0;
17281}
17282_ACEOF
17283rm -f conftest.$ac_objext
17284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17285 (eval $ac_compile) 2>conftest.er1
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
17292 { ac_try='test -z "$ac_c_werror_flag"
17293 || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 bfd_cv_decl_needed_realloc=no
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310bfd_cv_decl_needed_realloc=yes
17311fi
17312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17313fi
17314
17315echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
17316echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
17317if test $bfd_cv_decl_needed_realloc = yes; then
17318
17319cat >>confdefs.h <<\_ACEOF
17320#define NEED_DECLARATION_REALLOC 1
17321_ACEOF
17322
17323fi
17324
17325echo "$as_me:$LINENO: checking whether free must be declared" >&5
17326echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
17327if test "${bfd_cv_decl_needed_free+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17329else
17330 cat >conftest.$ac_ext <<_ACEOF
17331/* confdefs.h. */
17332_ACEOF
17333cat confdefs.h >>conftest.$ac_ext
17334cat >>conftest.$ac_ext <<_ACEOF
17335/* end confdefs.h. */
17336
17337#include <stdio.h>
17338#ifdef HAVE_STRING_H
17339#include <string.h>
17340#else
17341#ifdef HAVE_STRINGS_H
17342#include <strings.h>
17343#endif
17344#endif
17345#ifdef HAVE_STDLIB_H
17346#include <stdlib.h>
17347#endif
17348#ifdef HAVE_UNISTD_H
17349#include <unistd.h>
17350#endif
17351int
17352main ()
17353{
17354char *(*pfn) = (char *(*)) free
17355 ;
17356 return 0;
17357}
17358_ACEOF
17359rm -f conftest.$ac_objext
17360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17361 (eval $ac_compile) 2>conftest.er1
17362 ac_status=$?
17363 grep -v '^ *+' conftest.er1 >conftest.err
17364 rm -f conftest.er1
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
17368 { ac_try='test -z "$ac_c_werror_flag"
17369 || test ! -s conftest.err'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest.$ac_objext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 bfd_cv_decl_needed_free=no
17382else
17383 echo "$as_me: failed program was:" >&5
17384sed 's/^/| /' conftest.$ac_ext >&5
17385
17386bfd_cv_decl_needed_free=yes
17387fi
17388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17389fi
17390
17391echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
17392echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
17393if test $bfd_cv_decl_needed_free = yes; then
17394
17395cat >>confdefs.h <<\_ACEOF
17396#define NEED_DECLARATION_FREE 1
17397_ACEOF
17398
17399fi
17400
17401echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
17402echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
17403if test "${bfd_cv_decl_needed_strerror+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17405else
17406 cat >conftest.$ac_ext <<_ACEOF
17407/* confdefs.h. */
17408_ACEOF
17409cat confdefs.h >>conftest.$ac_ext
17410cat >>conftest.$ac_ext <<_ACEOF
17411/* end confdefs.h. */
17412
17413#include <stdio.h>
17414#ifdef HAVE_STRING_H
17415#include <string.h>
17416#else
17417#ifdef HAVE_STRINGS_H
17418#include <strings.h>
17419#endif
17420#endif
17421#ifdef HAVE_STDLIB_H
17422#include <stdlib.h>
17423#endif
17424#ifdef HAVE_UNISTD_H
17425#include <unistd.h>
17426#endif
17427int
17428main ()
17429{
17430char *(*pfn) = (char *(*)) strerror
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext
17436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17437 (eval $ac_compile) 2>conftest.er1
17438 ac_status=$?
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
17444 { ac_try='test -z "$ac_c_werror_flag"
17445 || test ! -s conftest.err'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; } &&
17451 { ac_try='test -s conftest.$ac_objext'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 bfd_cv_decl_needed_strerror=no
17458else
17459 echo "$as_me: failed program was:" >&5
17460sed 's/^/| /' conftest.$ac_ext >&5
17461
17462bfd_cv_decl_needed_strerror=yes
17463fi
17464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17465fi
17466
17467echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
17468echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
17469if test $bfd_cv_decl_needed_strerror = yes; then
17470
17471cat >>confdefs.h <<\_ACEOF
17472#define NEED_DECLARATION_STRERROR 1
17473_ACEOF
17474
17475fi
17476
17477echo "$as_me:$LINENO: checking whether strdup must be declared" >&5
17478echo $ECHO_N "checking whether strdup must be declared... $ECHO_C" >&6
17479if test "${bfd_cv_decl_needed_strdup+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17481else
17482 cat >conftest.$ac_ext <<_ACEOF
17483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
17488
17489#include <stdio.h>
17490#ifdef HAVE_STRING_H
17491#include <string.h>
17492#else
17493#ifdef HAVE_STRINGS_H
17494#include <strings.h>
17495#endif
17496#endif
17497#ifdef HAVE_STDLIB_H
17498#include <stdlib.h>
17499#endif
17500#ifdef HAVE_UNISTD_H
17501#include <unistd.h>
17502#endif
17503int
17504main ()
17505{
17506char *(*pfn) = (char *(*)) strdup
17507 ;
17508 return 0;
17509}
17510_ACEOF
17511rm -f conftest.$ac_objext
17512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17513 (eval $ac_compile) 2>conftest.er1
17514 ac_status=$?
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try='test -z "$ac_c_werror_flag"
17521 || test ! -s conftest.err'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try='test -s conftest.$ac_objext'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 bfd_cv_decl_needed_strdup=no
17534else
17535 echo "$as_me: failed program was:" >&5
17536sed 's/^/| /' conftest.$ac_ext >&5
17537
17538bfd_cv_decl_needed_strdup=yes
17539fi
17540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17541fi
17542
17543echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strdup" >&5
17544echo "${ECHO_T}$bfd_cv_decl_needed_strdup" >&6
17545if test $bfd_cv_decl_needed_strdup = yes; then
17546
17547cat >>confdefs.h <<\_ACEOF
17548#define NEED_DECLARATION_STRDUP 1
17549_ACEOF
17550
17551fi
17552
17553echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
17554echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
17555if test "${bfd_cv_decl_needed_strstr+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17557else
17558 cat >conftest.$ac_ext <<_ACEOF
17559/* confdefs.h. */
17560_ACEOF
17561cat confdefs.h >>conftest.$ac_ext
17562cat >>conftest.$ac_ext <<_ACEOF
17563/* end confdefs.h. */
17564
17565#include <stdio.h>
17566#ifdef HAVE_STRING_H
17567#include <string.h>
17568#else
17569#ifdef HAVE_STRINGS_H
17570#include <strings.h>
17571#endif
17572#endif
17573#ifdef HAVE_STDLIB_H
17574#include <stdlib.h>
17575#endif
17576#ifdef HAVE_UNISTD_H
17577#include <unistd.h>
17578#endif
17579int
17580main ()
17581{
17582char *(*pfn) = (char *(*)) strstr
17583 ;
17584 return 0;
17585}
17586_ACEOF
17587rm -f conftest.$ac_objext
17588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17589 (eval $ac_compile) 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try='test -z "$ac_c_werror_flag"
17597 || test ! -s conftest.err'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest.$ac_objext'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; }; then
17609 bfd_cv_decl_needed_strstr=no
17610else
17611 echo "$as_me: failed program was:" >&5
17612sed 's/^/| /' conftest.$ac_ext >&5
17613
17614bfd_cv_decl_needed_strstr=yes
17615fi
17616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17617fi
17618
17619echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
17620echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
17621if test $bfd_cv_decl_needed_strstr = yes; then
17622
17623cat >>confdefs.h <<\_ACEOF
17624#define NEED_DECLARATION_STRSTR 1
17625_ACEOF
17626
17627fi
17628
17629echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
17630echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
17631if test "${bfd_cv_decl_needed_canonicalize_file_name+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17633else
17634 cat >conftest.$ac_ext <<_ACEOF
17635/* confdefs.h. */
17636_ACEOF
17637cat confdefs.h >>conftest.$ac_ext
17638cat >>conftest.$ac_ext <<_ACEOF
17639/* end confdefs.h. */
17640
17641#include <stdio.h>
17642#ifdef HAVE_STRING_H
17643#include <string.h>
17644#else
17645#ifdef HAVE_STRINGS_H
17646#include <strings.h>
17647#endif
17648#endif
17649#ifdef HAVE_STDLIB_H
17650#include <stdlib.h>
17651#endif
17652#ifdef HAVE_UNISTD_H
17653#include <unistd.h>
17654#endif
17655int
17656main ()
17657{
17658char *(*pfn) = (char *(*)) canonicalize_file_name
17659 ;
17660 return 0;
17661}
17662_ACEOF
17663rm -f conftest.$ac_objext
17664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17665 (eval $ac_compile) 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try='test -z "$ac_c_werror_flag"
17673 || test ! -s conftest.err'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; } &&
17679 { ac_try='test -s conftest.$ac_objext'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17682 ac_status=$?
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 bfd_cv_decl_needed_canonicalize_file_name=no
17686else
17687 echo "$as_me: failed program was:" >&5
17688sed 's/^/| /' conftest.$ac_ext >&5
17689
17690bfd_cv_decl_needed_canonicalize_file_name=yes
17691fi
17692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17693fi
17694
17695echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_canonicalize_file_name" >&5
17696echo "${ECHO_T}$bfd_cv_decl_needed_canonicalize_file_name" >&6
17697if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
17698
17699cat >>confdefs.h <<\_ACEOF
17700#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
17701_ACEOF
17702
17703fi
17704
17705
17706# The following save_state_t checkery is only necessary for HPUX
17707# versions earlier than 10.20. When those fade from memory, this
17708# could be expunged. --jsm 1999-03-22
17709
17710echo "$as_me:$LINENO: checking for HPUX save_state structure" >&5
17711echo $ECHO_N "checking for HPUX save_state structure... $ECHO_C" >&6
17712cat >conftest.$ac_ext <<_ACEOF
17713/* confdefs.h. */
17714_ACEOF
17715cat confdefs.h >>conftest.$ac_ext
17716cat >>conftest.$ac_ext <<_ACEOF
17717/* end confdefs.h. */
17718#include <machine/save_state.h>
17719
17720_ACEOF
17721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17722 $EGREP "save_state_t" >/dev/null 2>&1; then
17723 gdb_cv_hpux_savestate=yes
17724else
17725 gdb_cv_hpux_savestate=no
17726fi
17727rm -f conftest*
17728
17729cat >conftest.$ac_ext <<_ACEOF
17730/* confdefs.h. */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
17734/* end confdefs.h. */
17735#include <machine/save_state.h>
17736
17737_ACEOF
17738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17739 $EGREP "ss_wide" >/dev/null 2>&1; then
17740 gdb_cv_hpux_sswide=yes
17741else
17742 gdb_cv_hpux_sswide=no
17743fi
17744rm -f conftest*
17745
17746if test $gdb_cv_hpux_savestate = yes
17747then
17748 cat >>confdefs.h <<\_ACEOF
17749#define HAVE_STRUCT_SAVE_STATE_T 1
17750_ACEOF
17751
17752fi
17753if test $gdb_cv_hpux_sswide = yes
17754then
17755 cat >>confdefs.h <<\_ACEOF
17756#define HAVE_STRUCT_MEMBER_SS_WIDE 1
17757_ACEOF
17758
17759fi
17760echo "$as_me:$LINENO: result: $gdb_cv_hpux_sswide" >&5
17761echo "${ECHO_T}$gdb_cv_hpux_sswide" >&6
17762
17763
17764# If we are configured native on GNU/Linux, work around problems with
17765# sys/procfs.h
17766# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17767
17768if test "${target}" = "${host}"; then
17769 case "${host}" in
17770 i[3456]86-*-linux*)
17771 cat >>confdefs.h <<\_ACEOF
17772#define START_INFERIOR_TRAPS_EXPECTED 2
17773_ACEOF
17774
17775 cat >>confdefs.h <<\_ACEOF
17776#define sys_quotactl 1
17777_ACEOF
17778
17779 ;;
17780 ia64-*-aix*)
17781 cat >>confdefs.h <<\_ACEOF
17782#define NEW_PROC_API 1
17783_ACEOF
17784
17785 ;;
17786 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17787 cat >>confdefs.h <<\_ACEOF
17788#define NEW_PROC_API 1
17789_ACEOF
17790
17791 ;;
17792 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17793 cat >>confdefs.h <<\_ACEOF
17794#define NEW_PROC_API 1
17795_ACEOF
17796
17797 ;;
17798 mips-sgi-irix5*)
17799 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17800 cat >>confdefs.h <<\_ACEOF
17801#define _KMEMUSER 1
17802_ACEOF
17803
17804 ;;
17805 esac
17806fi
17807
17808if test "$ac_cv_header_sys_procfs_h" = yes; then
17809 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17810echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17811 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813else
17814 cat >conftest.$ac_ext <<_ACEOF
17815/* confdefs.h. */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h. */
17820
17821#define _SYSCALL32
17822#include <sys/procfs.h>
17823int
17824main ()
17825{
17826pstatus_t avar
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext
17832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest.$ac_objext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17854else
17855 echo "$as_me: failed program was:" >&5
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
17858bfd_cv_have_sys_procfs_type_pstatus_t=no
17859
17860fi
17861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17862fi
17863
17864 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17865
17866cat >>confdefs.h <<\_ACEOF
17867#define HAVE_PSTATUS_T 1
17868_ACEOF
17869
17870 fi
17871 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17872echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17873
17874 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17875echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17876 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17878else
17879 cat >conftest.$ac_ext <<_ACEOF
17880/* confdefs.h. */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h. */
17885
17886#define _SYSCALL32
17887#include <sys/procfs.h>
17888int
17889main ()
17890{
17891prrun_t avar
17892 ;
17893 return 0;
17894}
17895_ACEOF
17896rm -f conftest.$ac_objext
17897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17898 (eval $ac_compile) 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_c_werror_flag"
17906 || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest.$ac_objext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 bfd_cv_have_sys_procfs_type_prrun_t=yes
17919else
17920 echo "$as_me: failed program was:" >&5
17921sed 's/^/| /' conftest.$ac_ext >&5
17922
17923bfd_cv_have_sys_procfs_type_prrun_t=no
17924
17925fi
17926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17927fi
17928
17929 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17930
17931cat >>confdefs.h <<\_ACEOF
17932#define HAVE_PRRUN_T 1
17933_ACEOF
17934
17935 fi
17936 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17937echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17938
17939 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17940echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17941 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17943else
17944 cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h. */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h. */
17950
17951#define _SYSCALL32
17952#include <sys/procfs.h>
17953int
17954main ()
17955{
17956gregset_t avar
17957 ;
17958 return 0;
17959}
17960_ACEOF
17961rm -f conftest.$ac_objext
17962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17963 (eval $ac_compile) 2>conftest.er1
17964 ac_status=$?
17965 grep -v '^ *+' conftest.er1 >conftest.err
17966 rm -f conftest.er1
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
17970 { ac_try='test -z "$ac_c_werror_flag"
17971 || test ! -s conftest.err'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest.$ac_objext'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 bfd_cv_have_sys_procfs_type_gregset_t=yes
17984else
17985 echo "$as_me: failed program was:" >&5
17986sed 's/^/| /' conftest.$ac_ext >&5
17987
17988bfd_cv_have_sys_procfs_type_gregset_t=no
17989
17990fi
17991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17992fi
17993
17994 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17995
17996cat >>confdefs.h <<\_ACEOF
17997#define HAVE_GREGSET_T 1
17998_ACEOF
17999
18000 fi
18001 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18002echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
18003
18004 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18005echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18006 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18008else
18009 cat >conftest.$ac_ext <<_ACEOF
18010/* confdefs.h. */
18011_ACEOF
18012cat confdefs.h >>conftest.$ac_ext
18013cat >>conftest.$ac_ext <<_ACEOF
18014/* end confdefs.h. */
18015
18016#define _SYSCALL32
18017#include <sys/procfs.h>
18018int
18019main ()
18020{
18021fpregset_t avar
18022 ;
18023 return 0;
18024}
18025_ACEOF
18026rm -f conftest.$ac_objext
18027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18028 (eval $ac_compile) 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_c_werror_flag"
18036 || test ! -s conftest.err'
18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038 (eval $ac_try) 2>&5
18039 ac_status=$?
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; } &&
18042 { ac_try='test -s conftest.$ac_objext'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 bfd_cv_have_sys_procfs_type_fpregset_t=yes
18049else
18050 echo "$as_me: failed program was:" >&5
18051sed 's/^/| /' conftest.$ac_ext >&5
18052
18053bfd_cv_have_sys_procfs_type_fpregset_t=no
18054
18055fi
18056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18057fi
18058
18059 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
18060
18061cat >>confdefs.h <<\_ACEOF
18062#define HAVE_FPREGSET_T 1
18063_ACEOF
18064
18065 fi
18066 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18067echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
18068
18069 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18070echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18071 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18073else
18074 cat >conftest.$ac_ext <<_ACEOF
18075/* confdefs.h. */
18076_ACEOF
18077cat confdefs.h >>conftest.$ac_ext
18078cat >>conftest.$ac_ext <<_ACEOF
18079/* end confdefs.h. */
18080
18081#define _SYSCALL32
18082#include <sys/procfs.h>
18083int
18084main ()
18085{
18086prgregset_t avar
18087 ;
18088 return 0;
18089}
18090_ACEOF
18091rm -f conftest.$ac_objext
18092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18093 (eval $ac_compile) 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag"
18101 || test ! -s conftest.err'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest.$ac_objext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 bfd_cv_have_sys_procfs_type_prgregset_t=yes
18114else
18115 echo "$as_me: failed program was:" >&5
18116sed 's/^/| /' conftest.$ac_ext >&5
18117
18118bfd_cv_have_sys_procfs_type_prgregset_t=no
18119
18120fi
18121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18122fi
18123
18124 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
18125
18126cat >>confdefs.h <<\_ACEOF
18127#define HAVE_PRGREGSET_T 1
18128_ACEOF
18129
18130 fi
18131 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18132echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
18133
18134 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18135echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18136 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18138else
18139 cat >conftest.$ac_ext <<_ACEOF
18140/* confdefs.h. */
18141_ACEOF
18142cat confdefs.h >>conftest.$ac_ext
18143cat >>conftest.$ac_ext <<_ACEOF
18144/* end confdefs.h. */
18145
18146#define _SYSCALL32
18147#include <sys/procfs.h>
18148int
18149main ()
18150{
18151prfpregset_t avar
18152 ;
18153 return 0;
18154}
18155_ACEOF
18156rm -f conftest.$ac_objext
18157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18158 (eval $ac_compile) 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag"
18166 || test ! -s conftest.err'
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; } &&
18172 { ac_try='test -s conftest.$ac_objext'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
18179else
18180 echo "$as_me: failed program was:" >&5
18181sed 's/^/| /' conftest.$ac_ext >&5
18182
18183bfd_cv_have_sys_procfs_type_prfpregset_t=no
18184
18185fi
18186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18187fi
18188
18189 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18190
18191cat >>confdefs.h <<\_ACEOF
18192#define HAVE_PRFPREGSET_T 1
18193_ACEOF
18194
18195 fi
18196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18197echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
18198
18199 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18200echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18201 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18203else
18204 cat >conftest.$ac_ext <<_ACEOF
18205/* confdefs.h. */
18206_ACEOF
18207cat confdefs.h >>conftest.$ac_ext
18208cat >>conftest.$ac_ext <<_ACEOF
18209/* end confdefs.h. */
18210
18211#define _SYSCALL32
18212#include <sys/procfs.h>
18213int
18214main ()
18215{
18216prgregset32_t avar
18217 ;
18218 return 0;
18219}
18220_ACEOF
18221rm -f conftest.$ac_objext
18222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223 (eval $ac_compile) 2>conftest.er1
18224 ac_status=$?
18225 grep -v '^ *+' conftest.er1 >conftest.err
18226 rm -f conftest.er1
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag"
18231 || test ! -s conftest.err'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest.$ac_objext'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18244else
18245 echo "$as_me: failed program was:" >&5
18246sed 's/^/| /' conftest.$ac_ext >&5
18247
18248bfd_cv_have_sys_procfs_type_prgregset32_t=no
18249
18250fi
18251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18252fi
18253
18254 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18255
18256cat >>confdefs.h <<\_ACEOF
18257#define HAVE_PRGREGSET32_T 1
18258_ACEOF
18259
18260 fi
18261 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18262echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18263
18264 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18265echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18266 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18268else
18269 cat >conftest.$ac_ext <<_ACEOF
18270/* confdefs.h. */
18271_ACEOF
18272cat confdefs.h >>conftest.$ac_ext
18273cat >>conftest.$ac_ext <<_ACEOF
18274/* end confdefs.h. */
18275
18276#define _SYSCALL32
18277#include <sys/procfs.h>
18278int
18279main ()
18280{
18281prfpregset32_t avar
18282 ;
18283 return 0;
18284}
18285_ACEOF
18286rm -f conftest.$ac_objext
18287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18288 (eval $ac_compile) 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_c_werror_flag"
18296 || test ! -s conftest.err'
18297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298 (eval $ac_try) 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; } &&
18302 { ac_try='test -s conftest.$ac_objext'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18308 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18309else
18310 echo "$as_me: failed program was:" >&5
18311sed 's/^/| /' conftest.$ac_ext >&5
18312
18313bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18314
18315fi
18316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18317fi
18318
18319 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18320
18321cat >>confdefs.h <<\_ACEOF
18322#define HAVE_PRFPREGSET32_T 1
18323_ACEOF
18324
18325 fi
18326 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18327echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18328
18329 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18330echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18331 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18333else
18334 cat >conftest.$ac_ext <<_ACEOF
18335/* confdefs.h. */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
18339/* end confdefs.h. */
18340
18341#define _SYSCALL32
18342#include <sys/procfs.h>
18343int
18344main ()
18345{
18346lwpid_t avar
18347 ;
18348 return 0;
18349}
18350_ACEOF
18351rm -f conftest.$ac_objext
18352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18353 (eval $ac_compile) 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag"
18361 || test ! -s conftest.err'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest.$ac_objext'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18374else
18375 echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377
18378bfd_cv_have_sys_procfs_type_lwpid_t=no
18379
18380fi
18381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18382fi
18383
18384 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18385
18386cat >>confdefs.h <<\_ACEOF
18387#define HAVE_LWPID_T 1
18388_ACEOF
18389
18390 fi
18391 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18392echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18393
18394 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18395echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18396 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18397 echo $ECHO_N "(cached) $ECHO_C" >&6
18398else
18399 cat >conftest.$ac_ext <<_ACEOF
18400/* confdefs.h. */
18401_ACEOF
18402cat confdefs.h >>conftest.$ac_ext
18403cat >>conftest.$ac_ext <<_ACEOF
18404/* end confdefs.h. */
18405
18406#define _SYSCALL32
18407#include <sys/procfs.h>
18408int
18409main ()
18410{
18411psaddr_t avar
18412 ;
18413 return 0;
18414}
18415_ACEOF
18416rm -f conftest.$ac_objext
18417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18418 (eval $ac_compile) 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -z "$ac_c_werror_flag"
18426 || test ! -s conftest.err'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest.$ac_objext'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18439else
18440 echo "$as_me: failed program was:" >&5
18441sed 's/^/| /' conftest.$ac_ext >&5
18442
18443bfd_cv_have_sys_procfs_type_psaddr_t=no
18444
18445fi
18446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18447fi
18448
18449 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18450
18451cat >>confdefs.h <<\_ACEOF
18452#define HAVE_PSADDR_T 1
18453_ACEOF
18454
18455 fi
18456 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18457echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18458
18459 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18460echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18461 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18463else
18464 cat >conftest.$ac_ext <<_ACEOF
18465/* confdefs.h. */
18466_ACEOF
18467cat confdefs.h >>conftest.$ac_ext
18468cat >>conftest.$ac_ext <<_ACEOF
18469/* end confdefs.h. */
18470
18471#define _SYSCALL32
18472#include <sys/procfs.h>
18473int
18474main ()
18475{
18476prsysent_t avar
18477 ;
18478 return 0;
18479}
18480_ACEOF
18481rm -f conftest.$ac_objext
18482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18483 (eval $ac_compile) 2>conftest.er1
18484 ac_status=$?
18485 grep -v '^ *+' conftest.er1 >conftest.err
18486 rm -f conftest.er1
18487 cat conftest.err >&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } &&
18490 { ac_try='test -z "$ac_c_werror_flag"
18491 || test ! -s conftest.err'
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest.$ac_objext'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18504else
18505 echo "$as_me: failed program was:" >&5
18506sed 's/^/| /' conftest.$ac_ext >&5
18507
18508bfd_cv_have_sys_procfs_type_prsysent_t=no
18509
18510fi
18511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18512fi
18513
18514 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18515
18516cat >>confdefs.h <<\_ACEOF
18517#define HAVE_PRSYSENT_T 1
18518_ACEOF
18519
18520 fi
18521 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18522echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18523
18524 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18525echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18526 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18528else
18529 cat >conftest.$ac_ext <<_ACEOF
18530/* confdefs.h. */
18531_ACEOF
18532cat confdefs.h >>conftest.$ac_ext
18533cat >>conftest.$ac_ext <<_ACEOF
18534/* end confdefs.h. */
18535
18536#define _SYSCALL32
18537#include <sys/procfs.h>
18538int
18539main ()
18540{
18541pr_sigset_t avar
18542 ;
18543 return 0;
18544}
18545_ACEOF
18546rm -f conftest.$ac_objext
18547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18548 (eval $ac_compile) 2>conftest.er1
18549 ac_status=$?
18550 grep -v '^ *+' conftest.er1 >conftest.err
18551 rm -f conftest.er1
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
18555 { ac_try='test -z "$ac_c_werror_flag"
18556 || test ! -s conftest.err'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; } &&
18562 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18568 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18569else
18570 echo "$as_me: failed program was:" >&5
18571sed 's/^/| /' conftest.$ac_ext >&5
18572
18573bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18574
18575fi
18576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18577fi
18578
18579 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18580
18581cat >>confdefs.h <<\_ACEOF
18582#define HAVE_PR_SIGSET_T 1
18583_ACEOF
18584
18585 fi
18586 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18587echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18588
18589 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18590echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18591 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18593else
18594 cat >conftest.$ac_ext <<_ACEOF
18595/* confdefs.h. */
18596_ACEOF
18597cat confdefs.h >>conftest.$ac_ext
18598cat >>conftest.$ac_ext <<_ACEOF
18599/* end confdefs.h. */
18600
18601#define _SYSCALL32
18602#include <sys/procfs.h>
18603int
18604main ()
18605{
18606pr_sigaction64_t avar
18607 ;
18608 return 0;
18609}
18610_ACEOF
18611rm -f conftest.$ac_objext
18612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18613 (eval $ac_compile) 2>conftest.er1
18614 ac_status=$?
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try='test -z "$ac_c_werror_flag"
18621 || test ! -s conftest.err'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest.$ac_objext'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18634else
18635 echo "$as_me: failed program was:" >&5
18636sed 's/^/| /' conftest.$ac_ext >&5
18637
18638bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18639
18640fi
18641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18642fi
18643
18644 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18645
18646cat >>confdefs.h <<\_ACEOF
18647#define HAVE_PR_SIGACTION64_T 1
18648_ACEOF
18649
18650 fi
18651 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18652echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18653
18654 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18655echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18656 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658else
18659 cat >conftest.$ac_ext <<_ACEOF
18660/* confdefs.h. */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h. */
18665
18666#define _SYSCALL32
18667#include <sys/procfs.h>
18668int
18669main ()
18670{
18671pr_siginfo64_t avar
18672 ;
18673 return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext
18677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18678 (eval $ac_compile) 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag"
18686 || test ! -s conftest.err'
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest.$ac_objext'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18699else
18700 echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18704
18705fi
18706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18707fi
18708
18709 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18710
18711cat >>confdefs.h <<\_ACEOF
18712#define HAVE_PR_SIGINFO64_T 1
18713_ACEOF
18714
18715 fi
18716 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18717echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18718
18719
18720
18721
18722
18723 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18724 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18725echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18726 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18728else
18729 if test "$cross_compiling" = yes; then
18730 gdb_cv_prfpregset_t_broken=yes
18731else
18732 cat >conftest.$ac_ext <<_ACEOF
18733/* confdefs.h. */
18734_ACEOF
18735cat confdefs.h >>conftest.$ac_ext
18736cat >>conftest.$ac_ext <<_ACEOF
18737/* end confdefs.h. */
18738#include <sys/procfs.h>
18739 int main ()
18740 {
18741 if (sizeof (prfpregset_t) == sizeof (void *))
18742 return 1;
18743 return 0;
18744 }
18745_ACEOF
18746rm -f conftest$ac_exeext
18747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18748 (eval $ac_link) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18754 ac_status=$?
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; }; then
18757 gdb_cv_prfpregset_t_broken=no
18758else
18759 echo "$as_me: program exited with status $ac_status" >&5
18760echo "$as_me: failed program was:" >&5
18761sed 's/^/| /' conftest.$ac_ext >&5
18762
18763( exit $ac_status )
18764gdb_cv_prfpregset_t_broken=yes
18765fi
18766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18767fi
18768fi
18769
18770 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18771echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18772 if test $gdb_cv_prfpregset_t_broken = yes; then
18773 cat >>confdefs.h <<\_ACEOF
18774#define PRFPREGSET_T_BROKEN 1
18775_ACEOF
18776
18777 fi
18778 fi
18779
18780
18781 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18782echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18783 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18785else
18786 cat >conftest.$ac_ext <<_ACEOF
18787/* confdefs.h. */
18788_ACEOF
18789cat confdefs.h >>conftest.$ac_ext
18790cat >>conftest.$ac_ext <<_ACEOF
18791/* end confdefs.h. */
18792#include <unistd.h>
18793#include <sys/types.h>
18794#include <sys/procfs.h>
18795
18796int
18797main ()
18798{
18799
18800 int dummy;;
18801 dummy = ioctl(0, PIOCSET, &dummy);
18802
18803 ;
18804 return 0;
18805}
18806_ACEOF
18807rm -f conftest.$ac_objext
18808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18809 (eval $ac_compile) 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } &&
18816 { ac_try='test -z "$ac_c_werror_flag"
18817 || test ! -s conftest.err'
18818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18819 (eval $ac_try) 2>&5
18820 ac_status=$?
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; } &&
18823 { ac_try='test -s conftest.$ac_objext'
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18829 gdb_cv_have_procfs_piocset=yes
18830else
18831 echo "$as_me: failed program was:" >&5
18832sed 's/^/| /' conftest.$ac_ext >&5
18833
18834gdb_cv_have_procfs_piocset=no
18835fi
18836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18837fi
18838
18839 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18840echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18841 if test $gdb_cv_have_procfs_piocset = yes; then
18842 cat >>confdefs.h <<\_ACEOF
18843#define HAVE_PROCFS_PIOCSET 1
18844_ACEOF
18845
18846 fi
18847fi
18848
18849if test ${host} = ${target} ; then
18850
18851 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18852echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18853 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18855else
18856 cat >conftest.$ac_ext <<_ACEOF
18857/* confdefs.h. */
18858_ACEOF
18859cat confdefs.h >>conftest.$ac_ext
18860cat >>conftest.$ac_ext <<_ACEOF
18861/* end confdefs.h. */
18862#include <link.h>
18863int
18864main ()
18865{
18866struct link_map lm; (void) lm.l_addr;
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext
18872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18873 (eval $ac_compile) 2>conftest.er1
18874 ac_status=$?
18875 grep -v '^ *+' conftest.er1 >conftest.err
18876 rm -f conftest.er1
18877 cat conftest.err >&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
18880 { ac_try='test -z "$ac_c_werror_flag"
18881 || test ! -s conftest.err'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest.$ac_objext'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 gdb_cv_have_struct_link_map_with_l_members=yes
18894else
18895 echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898gdb_cv_have_struct_link_map_with_l_members=no
18899fi
18900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18901fi
18902
18903 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18904echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18905 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18906 cat >>confdefs.h <<\_ACEOF
18907#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18908_ACEOF
18909
18910 fi
18911
18912
18913 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18914echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18915 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18917else
18918 cat >conftest.$ac_ext <<_ACEOF
18919/* confdefs.h. */
18920_ACEOF
18921cat confdefs.h >>conftest.$ac_ext
18922cat >>conftest.$ac_ext <<_ACEOF
18923/* end confdefs.h. */
18924#include <sys/types.h>
18925#include <link.h>
18926int
18927main ()
18928{
18929struct link_map lm; (void) lm.lm_addr;
18930 ;
18931 return 0;
18932}
18933_ACEOF
18934rm -f conftest.$ac_objext
18935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18936 (eval $ac_compile) 2>conftest.er1
18937 ac_status=$?
18938 grep -v '^ *+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
18943 { ac_try='test -z "$ac_c_werror_flag"
18944 || test ! -s conftest.err'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; } &&
18950 { ac_try='test -s conftest.$ac_objext'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; }; then
18956 gdb_cv_have_struct_link_map_with_lm_members=yes
18957else
18958 echo "$as_me: failed program was:" >&5
18959sed 's/^/| /' conftest.$ac_ext >&5
18960
18961gdb_cv_have_struct_link_map_with_lm_members=no
18962fi
18963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18964fi
18965
18966 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18967echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18968 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18969 cat >>confdefs.h <<\_ACEOF
18970#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18971_ACEOF
18972
18973 fi
18974
18975
18976 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18977echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18978 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980else
18981 cat >conftest.$ac_ext <<_ACEOF
18982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
18987#include <sys/types.h>
18988#ifdef HAVE_NLIST_H
18989#include <nlist.h>
18990#endif
18991#include <link.h>
18992int
18993main ()
18994{
18995struct so_map lm; (void) lm.som_addr;
18996 ;
18997 return 0;
18998}
18999_ACEOF
19000rm -f conftest.$ac_objext
19001if { (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 gdb_cv_have_struct_so_map_with_som_members=yes
19023else
19024 echo "$as_me: failed program was:" >&5
19025sed 's/^/| /' conftest.$ac_ext >&5
19026
19027gdb_cv_have_struct_so_map_with_som_members=no
19028fi
19029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19030fi
19031
19032 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19033echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
19034 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
19035 cat >>confdefs.h <<\_ACEOF
19036#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
19037_ACEOF
19038
19039 fi
19040
19041
19042 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19043echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19044 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19046else
19047 cat >conftest.$ac_ext <<_ACEOF
19048/* confdefs.h. */
19049_ACEOF
19050cat confdefs.h >>conftest.$ac_ext
19051cat >>conftest.$ac_ext <<_ACEOF
19052/* end confdefs.h. */
19053#define _SYSCALL32
19054#include <sys/link.h>
19055int
19056main ()
19057{
19058struct link_map32 l;
19059 ;
19060 return 0;
19061}
19062_ACEOF
19063rm -f conftest.$ac_objext
19064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19065 (eval $ac_compile) 2>conftest.er1
19066 ac_status=$?
19067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } &&
19072 { ac_try='test -z "$ac_c_werror_flag"
19073 || test ! -s conftest.err'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest.$ac_objext'
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19085 gdb_cv_have_struct_link_map32=yes
19086else
19087 echo "$as_me: failed program was:" >&5
19088sed 's/^/| /' conftest.$ac_ext >&5
19089
19090gdb_cv_have_struct_link_map32=no
19091fi
19092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19093fi
19094
19095 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19096echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
19097 if test $gdb_cv_have_struct_link_map32 = yes; then
19098 cat >>confdefs.h <<\_ACEOF
19099#define HAVE_STRUCT_LINK_MAP32 1
19100_ACEOF
19101
19102 cat >>confdefs.h <<\_ACEOF
19103#define _SYSCALL32 1
19104_ACEOF
19105
19106 fi
19107fi
19108
19109
19110echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19111echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19112if test "${gdb_cv_c_long_long+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114else
19115 cat >conftest.$ac_ext <<_ACEOF
19116/* confdefs.h. */
19117_ACEOF
19118cat confdefs.h >>conftest.$ac_ext
19119cat >>conftest.$ac_ext <<_ACEOF
19120/* end confdefs.h. */
19121
19122int
19123main ()
19124{
19125
19126 extern long long foo;
19127 switch (foo & 2) { case 0: return 1; }
19128
19129 ;
19130 return 0;
19131}
19132_ACEOF
19133rm -f conftest.$ac_objext
19134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135 (eval $ac_compile) 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
19142 { ac_try='test -z "$ac_c_werror_flag"
19143 || test ! -s conftest.err'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest.$ac_objext'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 gdb_cv_c_long_long=yes
19156else
19157 echo "$as_me: failed program was:" >&5
19158sed 's/^/| /' conftest.$ac_ext >&5
19159
19160gdb_cv_c_long_long=no
19161fi
19162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19163fi
19164
19165echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19166echo "${ECHO_T}$gdb_cv_c_long_long" >&6
19167if test $gdb_cv_c_long_long = yes; then
19168 cat >>confdefs.h <<\_ACEOF
19169#define CC_HAS_LONG_LONG 1
19170_ACEOF
19171
19172fi
19173
19174
19175echo "$as_me:$LINENO: checking for long long support in printf" >&5
19176echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19177if test "${gdb_cv_printf_has_long_long+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19179else
19180 if test "$cross_compiling" = yes; then
19181 gdb_cv_printf_has_long_long=no
19182else
19183 cat >conftest.$ac_ext <<_ACEOF
19184/* confdefs.h. */
19185_ACEOF
19186cat confdefs.h >>conftest.$ac_ext
19187cat >>conftest.$ac_ext <<_ACEOF
19188/* end confdefs.h. */
19189
19190int main () {
19191 char buf[32];
19192 long long l = 0;
19193 l = (l << 16) + 0x0123;
19194 l = (l << 16) + 0x4567;
19195 l = (l << 16) + 0x89ab;
19196 l = (l << 16) + 0xcdef;
19197 sprintf (buf, "0x%016llx", l);
19198 return (strcmp ("0x0123456789abcdef", buf));
19199}
19200_ACEOF
19201rm -f conftest$ac_exeext
19202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19203 (eval $ac_link) 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; }; then
19212 gdb_cv_printf_has_long_long=yes
19213else
19214 echo "$as_me: program exited with status $ac_status" >&5
19215echo "$as_me: failed program was:" >&5
19216sed 's/^/| /' conftest.$ac_ext >&5
19217
19218( exit $ac_status )
19219gdb_cv_printf_has_long_long=no
19220fi
19221rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19222fi
19223fi
19224
19225if test $gdb_cv_printf_has_long_long = yes; then
19226 cat >>confdefs.h <<\_ACEOF
19227#define PRINTF_HAS_LONG_LONG 1
19228_ACEOF
19229
19230fi
19231echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19232echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
19233
19234
19235echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19236echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19237if test "${ac_cv_c_long_double+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19239else
19240 cat >conftest.$ac_ext <<_ACEOF
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
19246
19247int
19248main ()
19249{
19250long double foo;
19251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest.$ac_objext
19256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19257 (eval $ac_compile) 2>conftest.er1
19258 ac_status=$?
19259 grep -v '^ *+' conftest.er1 >conftest.err
19260 rm -f conftest.er1
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -z "$ac_c_werror_flag"
19265 || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest.$ac_objext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_cv_c_long_double=yes
19278else
19279 echo "$as_me: failed program was:" >&5
19280sed 's/^/| /' conftest.$ac_ext >&5
19281
19282ac_cv_c_long_double=no
19283fi
19284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19285fi
19286
19287echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
19288echo "${ECHO_T}$ac_cv_c_long_double" >&6
19289if test $ac_cv_c_long_double = yes; then
19290 cat >>confdefs.h <<\_ACEOF
19291#define HAVE_LONG_DOUBLE 1
19292_ACEOF
19293
19294fi
19295
19296
19297echo "$as_me:$LINENO: checking for long double support in printf" >&5
19298echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19299if test "${gdb_cv_printf_has_long_double+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19301else
19302 if test "$cross_compiling" = yes; then
19303 gdb_cv_printf_has_long_double=no
19304else
19305 cat >conftest.$ac_ext <<_ACEOF
19306/* confdefs.h. */
19307_ACEOF
19308cat confdefs.h >>conftest.$ac_ext
19309cat >>conftest.$ac_ext <<_ACEOF
19310/* end confdefs.h. */
19311
19312int main () {
19313 char buf[16];
19314 long double f = 3.141592653;
19315 sprintf (buf, "%Lg", f);
19316 return (strncmp ("3.14159", buf, 7));
19317}
19318_ACEOF
19319rm -f conftest$ac_exeext
19320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19321 (eval $ac_link) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
19330 gdb_cv_printf_has_long_double=yes
19331else
19332 echo "$as_me: program exited with status $ac_status" >&5
19333echo "$as_me: failed program was:" >&5
19334sed 's/^/| /' conftest.$ac_ext >&5
19335
19336( exit $ac_status )
19337gdb_cv_printf_has_long_double=no
19338fi
19339rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19340fi
19341fi
19342
19343if test $gdb_cv_printf_has_long_double = yes; then
19344 cat >>confdefs.h <<\_ACEOF
19345#define PRINTF_HAS_LONG_DOUBLE 1
19346_ACEOF
19347
19348fi
19349echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19350echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19351
19352
19353echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19354echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19355if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19357else
19358 if test "$cross_compiling" = yes; then
19359 gdb_cv_scanf_has_long_double=no
19360else
19361 cat >conftest.$ac_ext <<_ACEOF
19362/* confdefs.h. */
19363_ACEOF
19364cat confdefs.h >>conftest.$ac_ext
19365cat >>conftest.$ac_ext <<_ACEOF
19366/* end confdefs.h. */
19367
19368int main () {
19369 char *buf = "3.141592653";
19370 long double f = 0;
19371 sscanf (buf, "%Lg", &f);
19372 return !(f > 3.14159 && f < 3.14160);
19373}
19374_ACEOF
19375rm -f conftest$ac_exeext
19376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19377 (eval $ac_link) 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 gdb_cv_scanf_has_long_double=yes
19387else
19388 echo "$as_me: program exited with status $ac_status" >&5
19389echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
19392( exit $ac_status )
19393gdb_cv_scanf_has_long_double=no
19394fi
19395rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19396fi
19397fi
19398
19399if test $gdb_cv_scanf_has_long_double = yes; then
19400 cat >>confdefs.h <<\_ACEOF
19401#define SCANF_HAS_LONG_DOUBLE 1
19402_ACEOF
19403
19404fi
19405echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19406echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19407
19408case ${host_os} in
19409aix*)
19410 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19411echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19412if test "${gdb_cv_bigtoc+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19414else
19415
19416 SAVE_LDFLAGS=$LDFLAGS
19417
19418 case $GCC in
19419 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19420 *) gdb_cv_bigtoc=-bbigtoc ;;
19421 esac
19422
19423 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19424 cat >conftest.$ac_ext <<_ACEOF
19425/* confdefs.h. */
19426_ACEOF
19427cat confdefs.h >>conftest.$ac_ext
19428cat >>conftest.$ac_ext <<_ACEOF
19429/* end confdefs.h. */
19430
19431int
19432main ()
19433{
19434int i;
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext conftest$ac_exeext
19440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19441 (eval $ac_link) 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -z "$ac_c_werror_flag"
19449 || test ! -s conftest.err'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; } &&
19455 { ac_try='test -s conftest$ac_exeext'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 :
19462else
19463 echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466gdb_cv_bigtoc=
19467fi
19468rm -f conftest.err conftest.$ac_objext \
19469 conftest$ac_exeext conftest.$ac_ext
19470 LDFLAGS="${SAVE_LDFLAGS}"
19471
19472fi
19473echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19474echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19475 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19476 ;;
19477esac
19478
19479
19480
19481if test ${build} = ${host} -a ${host} = ${target} ; then
19482 case ${host_os} in
19483 hpux*)
19484 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19485echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19486 if test -f /usr/include/dce/cma_config.h ; then
19487 if test "$GCC" = "yes" ; then
19488 echo "$as_me:$LINENO: result: yes" >&5
19489echo "${ECHO_T}yes" >&6
19490 cat >>confdefs.h <<\_ACEOF
19491#define HAVE_HPUX_THREAD_SUPPORT 1
19492_ACEOF
19493
19494 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19495 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19496 else
19497 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19498echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19499 fi
19500 else
19501 echo "$as_me:$LINENO: result: no" >&5
19502echo "${ECHO_T}no" >&6
19503 fi
19504 ;;
19505 solaris*)
19506 # See if thread_db library is around for Solaris thread debugging.
19507 # Note that we must explicitly test for version 1 of the library
19508 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19509 # the same API.
19510 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19511echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19512 if test -f /usr/lib/libthread_db.so.1 ; then
19513 echo "$as_me:$LINENO: result: yes" >&5
19514echo "${ECHO_T}yes" >&6
19515 cat >>confdefs.h <<\_ACEOF
19516#define HAVE_THREAD_DB_LIB 1
19517_ACEOF
19518
19519 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19520 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19521
19522echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19523echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19524if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19526else
19527 ac_check_lib_save_LIBS=$LIBS
19528LIBS="-ldl $LIBS"
19529cat >conftest.$ac_ext <<_ACEOF
19530/* confdefs.h. */
19531_ACEOF
19532cat confdefs.h >>conftest.$ac_ext
19533cat >>conftest.$ac_ext <<_ACEOF
19534/* end confdefs.h. */
19535
19536/* Override any gcc2 internal prototype to avoid an error. */
19537#ifdef __cplusplus
19538extern "C"
19539#endif
19540/* We use char because int might match the return type of a gcc2
19541 builtin and then its argument prototype would still apply. */
19542char dlopen ();
19543int
19544main ()
19545{
19546dlopen ();
19547 ;
19548 return 0;
19549}
19550_ACEOF
19551rm -f conftest.$ac_objext conftest$ac_exeext
19552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19553 (eval $ac_link) 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } &&
19560 { ac_try='test -z "$ac_c_werror_flag"
19561 || test ! -s conftest.err'
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; } &&
19567 { ac_try='test -s conftest$ac_exeext'
19568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569 (eval $ac_try) 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
19573 ac_cv_lib_dl_dlopen=yes
19574else
19575 echo "$as_me: failed program was:" >&5
19576sed 's/^/| /' conftest.$ac_ext >&5
19577
19578ac_cv_lib_dl_dlopen=no
19579fi
19580rm -f conftest.err conftest.$ac_objext \
19581 conftest$ac_exeext conftest.$ac_ext
19582LIBS=$ac_check_lib_save_LIBS
19583fi
19584echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19585echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19586if test $ac_cv_lib_dl_dlopen = yes; then
19587 cat >>confdefs.h <<_ACEOF
19588#define HAVE_LIBDL 1
19589_ACEOF
19590
19591 LIBS="-ldl $LIBS"
19592
19593fi
19594
19595 if test "$GCC" = "yes" ; then
19596 # The GNU linker requires the -export-dynamic option to make
19597 # all symbols visible in the dynamic symbol table.
19598 hold_ldflags=$LDFLAGS
19599 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19600echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19601 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19602 cat >conftest.$ac_ext <<_ACEOF
19603/* confdefs.h. */
19604_ACEOF
19605cat confdefs.h >>conftest.$ac_ext
19606cat >>conftest.$ac_ext <<_ACEOF
19607/* end confdefs.h. */
19608
19609int
19610main ()
19611{
19612int i;
19613 ;
19614 return 0;
19615}
19616_ACEOF
19617rm -f conftest.$ac_objext conftest$ac_exeext
19618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619 (eval $ac_link) 2>conftest.er1
19620 ac_status=$?
19621 grep -v '^ *+' conftest.er1 >conftest.err
19622 rm -f conftest.er1
19623 cat conftest.err >&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } &&
19626 { ac_try='test -z "$ac_c_werror_flag"
19627 || test ! -s conftest.err'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest$ac_exeext'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 found=yes
19640else
19641 echo "$as_me: failed program was:" >&5
19642sed 's/^/| /' conftest.$ac_ext >&5
19643
19644found=no
19645fi
19646rm -f conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19648 LDFLAGS=$hold_ldflags
19649 echo "$as_me:$LINENO: result: $found" >&5
19650echo "${ECHO_T}$found" >&6
19651 if test $found = yes; then
19652 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19653 fi
19654 fi
19655 # Sun randomly tweaked the prototypes in <proc_service.h>
19656 # at one point.
19657 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19658echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19659 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19661else
19662
19663 cat >conftest.$ac_ext <<_ACEOF
19664/* confdefs.h. */
19665_ACEOF
19666cat confdefs.h >>conftest.$ac_ext
19667cat >>conftest.$ac_ext <<_ACEOF
19668/* end confdefs.h. */
19669
19670 #include <proc_service.h>
19671 ps_err_e ps_pdwrite
19672 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19673
19674int
19675main ()
19676{
19677
19678 ;
19679 return 0;
19680}
19681_ACEOF
19682rm -f conftest.$ac_objext
19683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684 (eval $ac_compile) 2>conftest.er1
19685 ac_status=$?
19686 grep -v '^ *+' conftest.er1 >conftest.err
19687 rm -f conftest.er1
19688 cat conftest.err >&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } &&
19691 { ac_try='test -z "$ac_c_werror_flag"
19692 || test ! -s conftest.err'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } &&
19698 { ac_try='test -s conftest.$ac_objext'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; }; then
19704 gdb_cv_proc_service_is_old=no
19705else
19706 echo "$as_me: failed program was:" >&5
19707sed 's/^/| /' conftest.$ac_ext >&5
19708
19709gdb_cv_proc_service_is_old=yes
19710fi
19711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19712
19713fi
19714
19715 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19716echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19717 if test $gdb_cv_proc_service_is_old = yes; then
19718 cat >>confdefs.h <<\_ACEOF
19719#define PROC_SERVICE_IS_OLD 1
19720_ACEOF
19721
19722 fi
19723 else
19724 echo "$as_me:$LINENO: result: no" >&5
19725echo "${ECHO_T}no" >&6
19726 fi
19727 ;;
19728 aix*)
19729 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19730echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19731 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733else
19734 cat >conftest.$ac_ext <<_ACEOF
19735/* confdefs.h. */
19736_ACEOF
19737cat confdefs.h >>conftest.$ac_ext
19738cat >>conftest.$ac_ext <<_ACEOF
19739/* end confdefs.h. */
19740#include <sys/pthdebug.h>
19741int
19742main ()
19743{
19744#ifndef PTHDB_VERSION_3
19745 #error
19746 #endif
19747 ;
19748 return 0;
19749}
19750_ACEOF
19751rm -f conftest.$ac_objext
19752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19753 (eval $ac_compile) 2>conftest.er1
19754 ac_status=$?
19755 grep -v '^ *+' conftest.er1 >conftest.err
19756 rm -f conftest.er1
19757 cat conftest.err >&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } &&
19760 { ac_try='test -z "$ac_c_werror_flag"
19761 || test ! -s conftest.err'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; } &&
19767 { ac_try='test -s conftest.$ac_objext'
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; }; then
19773 gdb_cv_have_aix_thread_debug=yes
19774else
19775 echo "$as_me: failed program was:" >&5
19776sed 's/^/| /' conftest.$ac_ext >&5
19777
19778gdb_cv_have_aix_thread_debug=no
19779fi
19780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19781fi
19782
19783 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19784echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19785 if test $gdb_cv_have_aix_thread_debug = yes; then
19786 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19787 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19788 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19789 fi
19790 ;;
19791 esac
19792
19793fi
19794
19795if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19796 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19797echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19798if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800else
19801 cat >conftest.$ac_ext <<_ACEOF
19802/* confdefs.h. */
19803_ACEOF
19804cat confdefs.h >>conftest.$ac_ext
19805cat >>conftest.$ac_ext <<_ACEOF
19806/* end confdefs.h. */
19807#include <thread_db.h>
19808int
19809main ()
19810{
19811int i = TD_NOTALLOC;
19812 ;
19813 return 0;
19814}
19815_ACEOF
19816rm -f conftest.$ac_objext
19817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19818 (eval $ac_compile) 2>conftest.er1
19819 ac_status=$?
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
19825 { ac_try='test -z "$ac_c_werror_flag"
19826 || test ! -s conftest.err'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest.$ac_objext'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 gdb_cv_thread_db_h_has_td_notalloc=yes
19839else
19840 echo "$as_me: failed program was:" >&5
19841sed 's/^/| /' conftest.$ac_ext >&5
19842
19843gdb_cv_thread_db_h_has_td_notalloc=no
19844
19845fi
19846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19847
19848fi
19849echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19850echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19851fi
19852if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19853
19854cat >>confdefs.h <<\_ACEOF
19855#define THREAD_DB_HAS_TD_NOTALLOC 1
19856_ACEOF
19857
19858fi
19859
19860if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19861 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19862echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19863if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
19865else
19866 cat >conftest.$ac_ext <<_ACEOF
19867/* confdefs.h. */
19868_ACEOF
19869cat confdefs.h >>conftest.$ac_ext
19870cat >>conftest.$ac_ext <<_ACEOF
19871/* end confdefs.h. */
19872#include <sys/syscall.h>
19873int
19874main ()
19875{
19876int i = __NR_tkill;
19877 ;
19878 return 0;
19879}
19880_ACEOF
19881rm -f conftest.$ac_objext
19882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19883 (eval $ac_compile) 2>conftest.er1
19884 ac_status=$?
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } &&
19890 { ac_try='test -z "$ac_c_werror_flag"
19891 || test ! -s conftest.err'
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19894 ac_status=$?
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; } &&
19897 { ac_try='test -s conftest.$ac_objext'
19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899 (eval $ac_try) 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19903 gdb_cv_sys_syscall_h_has_tkill=yes
19904else
19905 echo "$as_me: failed program was:" >&5
19906sed 's/^/| /' conftest.$ac_ext >&5
19907
19908gdb_cv_sys_syscall_h_has_tkill=no
19909
19910fi
19911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19912
19913fi
19914echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19915echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19916fi
19917if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19918
19919cat >>confdefs.h <<\_ACEOF
19920#define HAVE_TKILL_SYSCALL 1
19921_ACEOF
19922
19923fi
19924
19925
19926
19927# Check whether --with-sysroot or --without-sysroot was given.
19928if test "${with_sysroot+set}" = set; then
19929 withval="$with_sysroot"
19930
19931 case ${with_sysroot} in
19932 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19933 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19934 esac
19935
19936 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19937
19938 if test "x$exec_prefix" = xNONE; then
19939 if test "x$prefix" = xNONE; then
19940 test_prefix=/usr/local
19941 else
19942 test_prefix=$prefix
19943 fi
19944 else
19945 test_prefix=$exec_prefix
19946 fi
19947 case ${TARGET_SYSTEM_ROOT} in
19948 "${test_prefix}"|"${test_prefix}/"*|\
19949 '${exec_prefix}'|'${exec_prefix}/'*)
19950 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19951 TARGET_SYSTEM_ROOT_DEFINE="$t"
19952 ;;
19953 esac
19954
19955else
19956
19957 TARGET_SYSTEM_ROOT=
19958 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19959
19960fi;
19961
19962
19963
19964# NOTE: Don't add -Wall or -Wunused, they both include
19965# -Wunused-parameter which reports bogus warnings.
19966# NOTE: If you add to this list, remember to update
19967# gdb/doc/gdbint.texinfo.
19968build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19969-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
19970-Wunused-label -Wunused-function"
19971# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19972# -Wunused-function -Wunused-variable -Wunused-value
19973# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19974# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19975# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19976# -Woverloaded-virtual -Winline -Werror"
19977# Check whether --enable-build-warnings or --disable-build-warnings was given.
19978if test "${enable_build_warnings+set}" = set; then
19979 enableval="$enable_build_warnings"
19980 case "${enableval}" in
19981 yes) ;;
19982 no) build_warnings="-w";;
19983 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19984 build_warnings="${build_warnings} ${t}";;
19985 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19986 build_warnings="${t} ${build_warnings}";;
19987 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19988esac
19989if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19990 echo "Setting compiler warning flags = $build_warnings" 6>&1
19991fi
19992fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19993if test "${enable_gdb_build_warnings+set}" = set; then
19994 enableval="$enable_gdb_build_warnings"
19995 case "${enableval}" in
19996 yes) ;;
19997 no) build_warnings="-w";;
19998 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19999 build_warnings="${build_warnings} ${t}";;
20000 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20001 build_warnings="${t} ${build_warnings}";;
20002 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20003esac
20004if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20005 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20006fi
20007fi; WARN_CFLAGS=""
20008WERROR_CFLAGS=""
20009if test "x${build_warnings}" != x -a "x$GCC" = xyes
20010then
20011 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20012echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20013 # Separate out the -Werror flag as some files just cannot be
20014 # compiled with it enabled.
20015 for w in ${build_warnings}; do
20016 case $w in
20017 -Werr*) WERROR_CFLAGS=-Werror ;;
20018 *) # Check that GCC accepts it
20019 saved_CFLAGS="$CFLAGS"
20020 CFLAGS="$CFLAGS $w"
20021 cat >conftest.$ac_ext <<_ACEOF
20022/* confdefs.h. */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
20026/* end confdefs.h. */
20027
20028int
20029main ()
20030{
20031
20032 ;
20033 return 0;
20034}
20035_ACEOF
20036rm -f conftest.$ac_objext
20037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038 (eval $ac_compile) 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag"
20046 || test ! -s conftest.err'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest.$ac_objext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 WARN_CFLAGS="${WARN_CFLAGS} $w"
20059else
20060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
20063fi
20064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20065 CFLAGS="$saved_CFLAGS"
20066 esac
20067 done
20068 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20069echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
20070fi
20071
20072
20073
20074# In the Cygwin environment, we need some additional flags.
20075echo "$as_me:$LINENO: checking for cygwin" >&5
20076echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20077if test "${gdb_cv_os_cygwin+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20079else
20080 cat >conftest.$ac_ext <<_ACEOF
20081/* confdefs.h. */
20082_ACEOF
20083cat confdefs.h >>conftest.$ac_ext
20084cat >>conftest.$ac_ext <<_ACEOF
20085/* end confdefs.h. */
20086
20087#if defined (__CYGWIN__) || defined (__CYGWIN32__)
20088lose
20089#endif
20090_ACEOF
20091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20092 $EGREP "lose" >/dev/null 2>&1; then
20093 gdb_cv_os_cygwin=yes
20094else
20095 gdb_cv_os_cygwin=no
20096fi
20097rm -f conftest*
20098
20099fi
20100echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20101echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20102
20103
20104SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
20105case ${host} in
20106 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20107 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20108esac
20109
20110
20111# libreadline needs libuser32.a in a cygwin environment
20112WIN32LIBS=
20113if test x$gdb_cv_os_cygwin = xyes; then
20114 WIN32LIBS="-luser32"
20115 case "${target}" in
20116 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20117 ;;
20118 esac
20119fi
20120
20121
20122LIBGUI="../libgui/src/libgui.a"
20123GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20124
20125
20126
20127WIN32LDAPP=
20128
20129
20130
20131case "${host}" in
20132*-*-cygwin*)
20133 configdir="win"
20134 ;;
20135*)
20136 configdir="unix"
20137 ;;
20138esac
20139
20140GDBTKLIBS=
20141if test "${enable_gdbtk}" = "yes"; then
20142
20143 # Gdbtk must have an absolute path to srcdir in order to run
20144 # properly when not installed.
20145 here=`pwd`
20146 cd ${srcdir}
20147 GDBTK_SRC_DIR=`pwd`
20148 cd $here
20149
20150
20151#
20152# Ok, lets find the tcl configuration
20153# First, look for one uninstalled.
20154# the alternative search directory is invoked by --with-tclconfig
20155#
20156
20157if test x"${no_tcl}" = x ; then
20158 # we reset no_tcl in case something fails here
20159 no_tcl=true
20160
20161# Check whether --with-tclconfig or --without-tclconfig was given.
20162if test "${with_tclconfig+set}" = set; then
20163 withval="$with_tclconfig"
20164 with_tclconfig=${withval}
20165fi;
20166 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20167echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20168 if test "${ac_cv_c_tclconfig+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170else
20171
20172
20173 # First check to see if --with-tclconfig was specified.
20174 if test x"${with_tclconfig}" != x ; then
20175 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20176 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20177 else
20178 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20179echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20180 { (exit 1); exit 1; }; }
20181 fi
20182 fi
20183
20184 # then check for a private Tcl installation
20185 if test x"${ac_cv_c_tclconfig}" = x ; then
20186 for i in \
20187 ../tcl \
20188 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20189 ../../tcl \
20190 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20191 ../../../tcl \
20192 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20193 if test -f "$i/${configdir}/tclConfig.sh" ; then
20194 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20195 break
20196 fi
20197 done
20198 fi
20199 # check in a few common install locations
20200 if test x"${ac_cv_c_tclconfig}" = x ; then
20201 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20202 if test -f "$i/tclConfig.sh" ; then
20203 ac_cv_c_tclconfig=`(cd $i; pwd)`
20204 break
20205 fi
20206 done
20207 fi
20208 # check in a few other private locations
20209 if test x"${ac_cv_c_tclconfig}" = x ; then
20210 for i in \
20211 ${srcdir}/../tcl \
20212 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20213 if test -f "$i/${configdir}/tclConfig.sh" ; then
20214 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20215 break
20216 fi
20217 done
20218 fi
20219
20220fi
20221
20222 if test x"${ac_cv_c_tclconfig}" = x ; then
20223 TCLCONFIG="# no Tcl configs found"
20224 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20225echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20226 else
20227 no_tcl=
20228 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20229 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20230echo "${ECHO_T}found $TCLCONFIG" >&6
20231 fi
20232fi
20233
20234 if test -z "${no_tcl}"; then
20235
20236 . $TCLCONFIG
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264#
20265# Ok, lets find the tk configuration
20266# First, look for one uninstalled.
20267# the alternative search directory is invoked by --with-tkconfig
20268#
20269
20270if test x"${no_tk}" = x ; then
20271 # we reset no_tk in case something fails here
20272 no_tk=true
20273
20274# Check whether --with-tkconfig or --without-tkconfig was given.
20275if test "${with_tkconfig+set}" = set; then
20276 withval="$with_tkconfig"
20277 with_tkconfig=${withval}
20278fi;
20279 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20280echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20281 if test "${ac_cv_c_tkconfig+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283else
20284
20285
20286 # First check to see if --with-tkconfig was specified.
20287 if test x"${with_tkconfig}" != x ; then
20288 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20289 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20290 else
20291 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20292echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20293 { (exit 1); exit 1; }; }
20294 fi
20295 fi
20296
20297 # then check for a private Tk library
20298 if test x"${ac_cv_c_tkconfig}" = x ; then
20299 for i in \
20300 ../tk \
20301 `ls -dr ../tk[4-9]* 2>/dev/null` \
20302 ../../tk \
20303 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20304 ../../../tk \
20305 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20306 if test -f "$i/${configdir}/tkConfig.sh" ; then
20307 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20308 break
20309 fi
20310 done
20311 fi
20312 # check in a few common install locations
20313 if test x"${ac_cv_c_tkconfig}" = x ; then
20314 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20315 if test -f "$i/tkConfig.sh" ; then
20316 ac_cv_c_tkconfig=`(cd $i; pwd)`
20317 break
20318 fi
20319 done
20320 fi
20321 # check in a few other private locations
20322 if test x"${ac_cv_c_tkconfig}" = x ; then
20323 for i in \
20324 ${srcdir}/../tk \
20325 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20326 if test -f "$i/${configdir}/tkConfig.sh" ; then
20327 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20328 break
20329 fi
20330 done
20331 fi
20332
20333fi
20334
20335 if test x"${ac_cv_c_tkconfig}" = x ; then
20336 TKCONFIG="# no Tk configs found"
20337 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20338echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20339 else
20340 no_tk=
20341 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20342 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20343echo "${ECHO_T}found $TKCONFIG" >&6
20344 fi
20345fi
20346
20347
20348
20349 # now look for Tcl library stuff
20350
20351 tcldir="../tcl/${configdir}/"
20352
20353 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20354
20355 # If $no_tk is nonempty, then we can't do Tk, and there is no
20356 # point to doing Tcl.
20357 if test -z "${no_tk}"; then
20358
20359 if test -f "$TKCONFIG" ; then
20360 . $TKCONFIG
20361 fi
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376#
20377# Ok, lets find the tcl source trees so we can use the headers
20378# Warning: transition of version 9 to 10 will break this algorithm
20379# because 10 sorts before 9. We also look for just tcl. We have to
20380# be careful that we don't match stuff like tclX by accident.
20381# the alternative search directory is involked by --with-tclinclude
20382#
20383
20384no_tcl=true
20385echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20386echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20387
20388# Check whether --with-tclinclude or --without-tclinclude was given.
20389if test "${with_tclinclude+set}" = set; then
20390 withval="$with_tclinclude"
20391 with_tclinclude=${withval}
20392fi;
20393if test "${ac_cv_c_tclh+set}" = set; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20395else
20396
20397# first check to see if --with-tclinclude was specified
20398if test x"${with_tclinclude}" != x ; then
20399 if test -f ${with_tclinclude}/tclInt.h ; then
20400 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20401 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20402 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20403 else
20404 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20405echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20406 { (exit 1); exit 1; }; }
20407 fi
20408fi
20409
20410# next check if it came with Tcl configuration file
20411if test x"${ac_cv_c_tclconfig}" = x ; then
20412 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20413 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20414 fi
20415fi
20416
20417# next check in private source directory
20418#
20419# since ls returns lowest version numbers first, reverse its output
20420if test x"${ac_cv_c_tclh}" = x ; then
20421 for i in \
20422 ${srcdir}/../tcl \
20423 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20424 ${srcdir}/../../tcl \
20425 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20426 ${srcdir}/../../../tcl \
20427 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20428 if test -f $i/generic/tclInt.h ; then
20429 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20430 break
20431 fi
20432 done
20433fi
20434# finally check in a few common install locations
20435#
20436# since ls returns lowest version numbers first, reverse its output
20437if test x"${ac_cv_c_tclh}" = x ; then
20438 for i in \
20439 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20440 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20441 /usr/local/src/tcl \
20442 /usr/local/lib/tcl \
20443 ${prefix}/include ; do
20444 if test -f $i/generic/tclInt.h ; then
20445 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20446 break
20447 fi
20448 done
20449fi
20450# see if one is installed
20451if test x"${ac_cv_c_tclh}" = x ; then
20452 if test "${ac_cv_header_tclInt_h+set}" = set; then
20453 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20454echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20455if test "${ac_cv_header_tclInt_h+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20457fi
20458echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20459echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20460else
20461 # Is the header compilable?
20462echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20463echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20464cat >conftest.$ac_ext <<_ACEOF
20465/* confdefs.h. */
20466_ACEOF
20467cat confdefs.h >>conftest.$ac_ext
20468cat >>conftest.$ac_ext <<_ACEOF
20469/* end confdefs.h. */
20470$ac_includes_default
20471#include <tclInt.h>
20472_ACEOF
20473rm -f conftest.$ac_objext
20474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475 (eval $ac_compile) 2>conftest.er1
20476 ac_status=$?
20477 grep -v '^ *+' conftest.er1 >conftest.err
20478 rm -f conftest.er1
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -z "$ac_c_werror_flag"
20483 || test ! -s conftest.err'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest.$ac_objext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 ac_header_compiler=yes
20496else
20497 echo "$as_me: failed program was:" >&5
20498sed 's/^/| /' conftest.$ac_ext >&5
20499
20500ac_header_compiler=no
20501fi
20502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20504echo "${ECHO_T}$ac_header_compiler" >&6
20505
20506# Is the header present?
20507echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20508echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20509cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h. */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
20514/* end confdefs.h. */
20515#include <tclInt.h>
20516_ACEOF
20517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20519 ac_status=$?
20520 grep -v '^ *+' conftest.er1 >conftest.err
20521 rm -f conftest.er1
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } >/dev/null; then
20525 if test -s conftest.err; then
20526 ac_cpp_err=$ac_c_preproc_warn_flag
20527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20528 else
20529 ac_cpp_err=
20530 fi
20531else
20532 ac_cpp_err=yes
20533fi
20534if test -z "$ac_cpp_err"; then
20535 ac_header_preproc=yes
20536else
20537 echo "$as_me: failed program was:" >&5
20538sed 's/^/| /' conftest.$ac_ext >&5
20539
20540 ac_header_preproc=no
20541fi
20542rm -f conftest.err conftest.$ac_ext
20543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20544echo "${ECHO_T}$ac_header_preproc" >&6
20545
20546# So? What about this header?
20547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20548 yes:no: )
20549 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20550echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20551 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20552echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20553 ac_header_preproc=yes
20554 ;;
20555 no:yes:* )
20556 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20557echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20558 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20559echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20560 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20561echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20563echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20565echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20566 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20567echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20568 (
20569 cat <<\_ASBOX
20570## ------------------------------------------ ##
20571## Report this to the AC_PACKAGE_NAME lists. ##
20572## ------------------------------------------ ##
20573_ASBOX
20574 ) |
20575 sed "s/^/$as_me: WARNING: /" >&2
20576 ;;
20577esac
20578echo "$as_me:$LINENO: checking for tclInt.h" >&5
20579echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20580if test "${ac_cv_header_tclInt_h+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582else
20583 ac_cv_header_tclInt_h=$ac_header_preproc
20584fi
20585echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20586echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20587
20588fi
20589if test $ac_cv_header_tclInt_h = yes; then
20590 ac_cv_c_tclh=installed
20591else
20592 ac_cv_c_tclh=""
20593fi
20594
20595
20596fi
20597
20598fi
20599
20600if test x"${ac_cv_c_tclh}" = x ; then
20601 TCLHDIR="# no Tcl private headers found"
20602 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20603echo "$as_me: error: Can't find Tcl private headers" >&2;}
20604 { (exit 1); exit 1; }; }
20605fi
20606if test x"${ac_cv_c_tclh}" != x ; then
20607 no_tcl=""
20608 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20609 echo "$as_me:$LINENO: result: is installed" >&5
20610echo "${ECHO_T}is installed" >&6
20611 TCLHDIR=""
20612 else
20613 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20614echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20615 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20616 TCLHDIR="-I${ac_cv_c_tclh}"
20617 fi
20618fi
20619
20620
20621
20622
20623#
20624# Ok, lets find the tk source trees so we can use the headers
20625# If the directory (presumably symlink) named "tk" exists, use that one
20626# in preference to any others. Same logic is used when choosing library
20627# and again with Tcl. The search order is the best place to look first, then in
20628# decreasing significance. The loop breaks if the trigger file is found.
20629# Note the gross little conversion here of srcdir by cd'ing to the found
20630# directory. This converts the path from a relative to an absolute, so
20631# recursive cache variables for the path will work right. We check all
20632# the possible paths in one loop rather than many seperate loops to speed
20633# things up.
20634# the alternative search directory is involked by --with-tkinclude
20635#
20636no_tk=true
20637echo "$as_me:$LINENO: checking for Tk private headers" >&5
20638echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20639
20640# Check whether --with-tkinclude or --without-tkinclude was given.
20641if test "${with_tkinclude+set}" = set; then
20642 withval="$with_tkinclude"
20643 with_tkinclude=${withval}
20644fi;
20645if test "${ac_cv_c_tkh+set}" = set; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20647else
20648
20649# first check to see if --with-tkinclude was specified
20650if test x"${with_tkinclude}" != x ; then
20651 if test -f ${with_tkinclude}/tk.h ; then
20652 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20653 elif test -f ${with_tkinclude}/generic/tk.h ; then
20654 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20655 else
20656 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20657echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20658 { (exit 1); exit 1; }; }
20659 fi
20660fi
20661
20662# next check if it came with Tk configuration file
20663if test x"${ac_cv_c_tkconfig}" = x ; then
20664 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20665 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20666 fi
20667fi
20668
20669# next check in private source directory
20670#
20671# since ls returns lowest version numbers first, reverse its output
20672if test x"${ac_cv_c_tkh}" = x ; then
20673 for i in \
20674 ${srcdir}/../tk \
20675 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20676 ${srcdir}/../../tk \
20677 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20678 ${srcdir}/../../../tk \
20679 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20680 if test -f $i/generic/tk.h ; then
20681 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20682 break
20683 fi
20684 done
20685fi
20686# finally check in a few common install locations
20687#
20688# since ls returns lowest version numbers first, reverse its output
20689if test x"${ac_cv_c_tkh}" = x ; then
20690 for i in \
20691 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20692 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20693 /usr/local/src/tk \
20694 /usr/local/lib/tk \
20695 ${prefix}/include ; do
20696 if test -f $i/generic/tk.h ; then
20697 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20698 break
20699 fi
20700 done
20701fi
20702# see if one is installed
20703if test x"${ac_cv_c_tkh}" = x ; then
20704 if test "${ac_cv_header_tk_h+set}" = set; then
20705 echo "$as_me:$LINENO: checking for tk.h" >&5
20706echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20707if test "${ac_cv_header_tk_h+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20709fi
20710echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20711echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20712else
20713 # Is the header compilable?
20714echo "$as_me:$LINENO: checking tk.h usability" >&5
20715echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20716cat >conftest.$ac_ext <<_ACEOF
20717/* confdefs.h. */
20718_ACEOF
20719cat confdefs.h >>conftest.$ac_ext
20720cat >>conftest.$ac_ext <<_ACEOF
20721/* end confdefs.h. */
20722$ac_includes_default
20723#include <tk.h>
20724_ACEOF
20725rm -f conftest.$ac_objext
20726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20727 (eval $ac_compile) 2>conftest.er1
20728 ac_status=$?
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
20734 { ac_try='test -z "$ac_c_werror_flag"
20735 || test ! -s conftest.err'
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest.$ac_objext'
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20747 ac_header_compiler=yes
20748else
20749 echo "$as_me: failed program was:" >&5
20750sed 's/^/| /' conftest.$ac_ext >&5
20751
20752ac_header_compiler=no
20753fi
20754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20755echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20756echo "${ECHO_T}$ac_header_compiler" >&6
20757
20758# Is the header present?
20759echo "$as_me:$LINENO: checking tk.h presence" >&5
20760echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20761cat >conftest.$ac_ext <<_ACEOF
20762/* confdefs.h. */
20763_ACEOF
20764cat confdefs.h >>conftest.$ac_ext
20765cat >>conftest.$ac_ext <<_ACEOF
20766/* end confdefs.h. */
20767#include <tk.h>
20768_ACEOF
20769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20771 ac_status=$?
20772 grep -v '^ *+' conftest.er1 >conftest.err
20773 rm -f conftest.er1
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } >/dev/null; then
20777 if test -s conftest.err; then
20778 ac_cpp_err=$ac_c_preproc_warn_flag
20779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20780 else
20781 ac_cpp_err=
20782 fi
20783else
20784 ac_cpp_err=yes
20785fi
20786if test -z "$ac_cpp_err"; then
20787 ac_header_preproc=yes
20788else
20789 echo "$as_me: failed program was:" >&5
20790sed 's/^/| /' conftest.$ac_ext >&5
20791
20792 ac_header_preproc=no
20793fi
20794rm -f conftest.err conftest.$ac_ext
20795echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20796echo "${ECHO_T}$ac_header_preproc" >&6
20797
20798# So? What about this header?
20799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20800 yes:no: )
20801 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20802echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20803 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20804echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20805 ac_header_preproc=yes
20806 ;;
20807 no:yes:* )
20808 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20809echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20811echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20813echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20815echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20817echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20818 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20819echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20820 (
20821 cat <<\_ASBOX
20822## ------------------------------------------ ##
20823## Report this to the AC_PACKAGE_NAME lists. ##
20824## ------------------------------------------ ##
20825_ASBOX
20826 ) |
20827 sed "s/^/$as_me: WARNING: /" >&2
20828 ;;
20829esac
20830echo "$as_me:$LINENO: checking for tk.h" >&5
20831echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20832if test "${ac_cv_header_tk_h+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20834else
20835 ac_cv_header_tk_h=$ac_header_preproc
20836fi
20837echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20838echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20839
20840fi
20841if test $ac_cv_header_tk_h = yes; then
20842 ac_cv_c_tkh=installed
20843else
20844 ac_cv_c_tkh=""
20845fi
20846
20847
20848fi
20849
20850fi
20851
20852if test x"${ac_cv_c_tkh}" != x ; then
20853 no_tk=""
20854 if test x"${ac_cv_c_tkh}" = x"installed" ; then
20855 echo "$as_me:$LINENO: result: is installed" >&5
20856echo "${ECHO_T}is installed" >&6
20857 TKHDIR=""
20858 else
20859 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20860echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20861 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20862 TKHDIR="-I${ac_cv_c_tkh}"
20863 fi
20864else
20865 TKHDIR="# no Tk directory found"
20866 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20867echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20868 no_tk=true
20869fi
20870
20871
20872
20873
20874echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20875echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20876if test x"${ac_cv_c_itclh}" = x ; then
20877 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20878 if test -f $i/generic/itcl.h ; then
20879 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20880 break
20881 fi
20882 done
20883fi
20884if test x"${ac_cv_c_itclh}" = x ; then
20885 ITCLHDIR="# no Itcl private headers found"
20886 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20887echo "$as_me: error: Can't find Itcl private headers" >&2;}
20888 { (exit 1); exit 1; }; }
20889fi
20890if test x"${ac_cv_c_itclh}" != x ; then
20891 ITCLHDIR="-I${ac_cv_c_itclh}"
20892fi
20893# should always be here
20894# ITCLLIB="../itcl/itcl/unix/libitcl.a"
20895
20896#AC_SUBST(ITCLLIB)
20897
20898
20899echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20900echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20901if test x"${ac_cv_c_itkh}" = x ; then
20902 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20903 if test -f $i/generic/itk.h ; then
20904 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20905 break
20906 fi
20907 done
20908fi
20909if test x"${ac_cv_c_itkh}" = x ; then
20910 ITKHDIR="# no Itk private headers found"
20911 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20912echo "$as_me: error: Can't find Itk private headers" >&2;}
20913 { (exit 1); exit 1; }; }
20914fi
20915if test x"${ac_cv_c_itkh}" != x ; then
20916 ITKHDIR="-I${ac_cv_c_itkh}"
20917fi
20918# should always be here
20919# ITKLIB="../itcl/itk/unix/libitk.a"
20920
20921#AC_SUBST(ITKLIB)
20922
20923
20924
20925 # now look for Tk library stuff
20926
20927 tkdir="../tk/${configdir}/"
20928
20929 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20930
20931 # now look for Itcl library stuff
20932
20933
20934#
20935# Ok, lets find the itcl configuration
20936# First, look for one uninstalled.
20937# the alternative search directory is invoked by --with-itclconfig
20938#
20939
20940if test x"${no_itcl}" = x ; then
20941 # we reset no_itcl in case something fails here
20942 no_itcl=true
20943
20944# Check whether --with-itclconfig or --without-itclconfig was given.
20945if test "${with_itclconfig+set}" = set; then
20946 withval="$with_itclconfig"
20947 with_itclconfig=${withval}
20948fi;
20949 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20950echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20951 if test "${ac_cv_c_itclconfig+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20953else
20954
20955
20956 # First check to see if --with-itclconfig was specified.
20957 if test x"${with_itclconfig}" != x ; then
20958 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20959 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20960 else
20961 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20962echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20963 { (exit 1); exit 1; }; }
20964 fi
20965 fi
20966
20967 # then check for a private Itcl library
20968 if test x"${ac_cv_c_itclconfig}" = x ; then
20969 for i in \
20970 ../itcl/itcl \
20971 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20972 ../../itcl \
20973 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20974 ../../../itcl \
20975 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20976 if test -f "$i/itclConfig.sh" ; then
20977 ac_cv_c_itclconfig=`(cd $i; pwd)`
20978 break
20979 fi
20980 done
20981 fi
20982 # check in a few common install locations
20983 if test x"${ac_cv_c_itclconfig}" = x ; then
20984 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20985 if test -f "$i/itclConfig.sh" ; then
20986 ac_cv_c_itclconfig=`(cd $i; pwd)`
20987 break
20988 fi
20989 done
20990 fi
20991 # check in a few other private locations
20992 if test x"${ac_cv_c_itclconfig}" = x ; then
20993 for i in \
20994 ${srcdir}/../itcl/itcl \
20995 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20996 if test -f "$i/itclConfig.sh" ; then
20997 ac_cv_c_itclconfig=`(cd $i; pwd)`
20998 break
20999 fi
21000 done
21001 fi
21002
21003fi
21004
21005 if test x"${ac_cv_c_itclconfig}" = x ; then
21006 ITCLCONFIG="# no Itcl configs found"
21007 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21008echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
21009 else
21010 no_itcl=
21011 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
21012 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21013echo "${ECHO_T}found $ITCLCONFIG" >&6
21014 fi
21015fi
21016
21017 if test -z "${no_itcl}"; then
21018
21019 if test -f "$ITCLCONFIG" ; then
21020 . $ITCLCONFIG
21021 fi
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
21035 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
21036 fi
21037
21038
21039 # now look for Itk library stuff
21040
21041#
21042# Ok, lets find the itk configuration
21043# First, look for one uninstalled.
21044# the alternative search directory is invoked by --with-itkconfig
21045#
21046
21047if test x"${no_itk}" = x ; then
21048 # we reset no_itk in case something fails here
21049 no_itk=true
21050
21051# Check whether --with-itkconfig or --without-itkconfig was given.
21052if test "${with_itkconfig+set}" = set; then
21053 withval="$with_itkconfig"
21054 with_itkconfig=${withval}
21055fi;
21056 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21057echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21058 if test "${ac_cv_c_itkconfig+set}" = set; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21060else
21061
21062
21063 # First check to see if --with-itkconfig was specified.
21064 if test x"${with_itkconfig}" != x ; then
21065 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21066 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21067 else
21068 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21069echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21070 { (exit 1); exit 1; }; }
21071 fi
21072 fi
21073
21074 # then check for a private Itk library
21075 if test x"${ac_cv_c_itkconfig}" = x ; then
21076 for i in \
21077 ../itcl/itk \
21078 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21079 ../../itk \
21080 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21081 ../../../itk \
21082 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21083 if test -f "$i/itkConfig.sh" ; then
21084 ac_cv_c_itkconfig=`(cd $i; pwd)`
21085 break
21086 fi
21087 done
21088 fi
21089 # check in a few common install locations
21090 if test x"${ac_cv_c_itkconfig}" = x ; then
21091 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21092 if test -f "$i/itkConfig.sh" ; then
21093 ac_cv_c_itkconfig=`(cd $i; pwd)`
21094 break
21095 fi
21096 done
21097 fi
21098 # check in a few other private locations
21099 if test x"${ac_cv_c_itkconfig}" = x ; then
21100 for i in \
21101 ${srcdir}/../itcl/itk \
21102 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21103 if test -f "$i/itkConfig.sh" ; then
21104 ac_cv_c_itkconfig=`(cd $i; pwd)`
21105 break
21106 fi
21107 done
21108 fi
21109
21110fi
21111
21112 if test x"${ac_cv_c_itkconfig}" = x ; then
21113 ITKCONFIG="# no Itk configs found"
21114 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21115echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
21116 else
21117 no_itk=
21118 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
21119 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21120echo "${ECHO_T}found $ITKCONFIG" >&6
21121 fi
21122fi
21123
21124
21125 if test -z "${no_itcl}"; then
21126
21127 if test -f "$ITKCONFIG" ; then
21128 . $ITKCONFIG
21129 fi
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142 ITKLIB="${ITK_BUILD_LIB_SPEC}"
21143 ITK_DEPS="${ITK_LIB_FULL_PATH}"
21144 fi
21145
21146 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
21147 # Tcl/Tk 8.1 require -fwritable strings. I don't
21148 # know whether 8.2 will or not, but I bet it will.
21149 # I don't have to worry about 7.x since we don't support it.
21150 GDBTK_CFLAGS=""
21151 if test "$GCC" = "yes"; then
21152 if test "$TCL_VERSION" != "8.0" ; then
21153 GDBTK_CFLAGS="-fwritable-strings"
21154 fi
21155 fi
21156
21157 # Include some libraries that Tcl and Tk want.
21158 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
21159 # Yes, the ordering seems wrong here. But it isn't.
21160 # TK_LIBS is the list of libraries that need to be linked
21161 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21162 # were in LIBS then any link tests after this point would
21163 # try to include things like `$(LIBGUI)', which wouldn't work.
21164 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
21165
21166 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21167 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21168 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
21169 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21170 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21171 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21172 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
21173
21174 if test x$gdb_cv_os_cygwin = xyes; then
21175 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21176 WIN32LDAPP="-Wl,--subsystem,console"
21177 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21178 fi
21179 fi
21180 fi
21181
21182
21183
21184subdirs="$subdirs gdbtk"
21185
21186fi
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201echo "$as_me:$LINENO: checking for X" >&5
21202echo $ECHO_N "checking for X... $ECHO_C" >&6
21203
21204
21205# Check whether --with-x or --without-x was given.
21206if test "${with_x+set}" = set; then
21207 withval="$with_x"
21208
21209fi;
21210# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21211if test "x$with_x" = xno; then
21212 # The user explicitly disabled X.
21213 have_x=disabled
21214else
21215 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21216 # Both variables are already set.
21217 have_x=yes
21218 else
21219 if test "${ac_cv_have_x+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221else
21222 # One or both of the vars are not set, and there is no cached value.
21223ac_x_includes=no ac_x_libraries=no
21224rm -fr conftest.dir
21225if mkdir conftest.dir; then
21226 cd conftest.dir
21227 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21228 cat >Imakefile <<'_ACEOF'
21229acfindx:
21230 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21231_ACEOF
21232 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21233 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21234 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21235 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21236 for ac_extension in a so sl; do
21237 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21238 test -f $ac_im_libdir/libX11.$ac_extension; then
21239 ac_im_usrlibdir=$ac_im_libdir; break
21240 fi
21241 done
21242 # Screen out bogus values from the imake configuration. They are
21243 # bogus both because they are the default anyway, and because
21244 # using them would break gcc on systems where it needs fixed includes.
21245 case $ac_im_incroot in
21246 /usr/include) ;;
21247 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21248 esac
21249 case $ac_im_usrlibdir in
21250 /usr/lib | /lib) ;;
21251 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21252 esac
21253 fi
21254 cd ..
21255 rm -fr conftest.dir
21256fi
21257
21258# Standard set of common directories for X headers.
21259# Check X11 before X11Rn because it is often a symlink to the current release.
21260ac_x_header_dirs='
21261/usr/X11/include
21262/usr/X11R6/include
21263/usr/X11R5/include
21264/usr/X11R4/include
21265
21266/usr/include/X11
21267/usr/include/X11R6
21268/usr/include/X11R5
21269/usr/include/X11R4
21270
21271/usr/local/X11/include
21272/usr/local/X11R6/include
21273/usr/local/X11R5/include
21274/usr/local/X11R4/include
21275
21276/usr/local/include/X11
21277/usr/local/include/X11R6
21278/usr/local/include/X11R5
21279/usr/local/include/X11R4
21280
21281/usr/X386/include
21282/usr/x386/include
21283/usr/XFree86/include/X11
21284
21285/usr/include
21286/usr/local/include
21287/usr/unsupported/include
21288/usr/athena/include
21289/usr/local/x11r5/include
21290/usr/lpp/Xamples/include
21291
21292/usr/openwin/include
21293/usr/openwin/share/include'
21294
21295if test "$ac_x_includes" = no; then
21296 # Guess where to find include files, by looking for Intrinsic.h.
21297 # First, try using that file with no special directory specified.
21298 cat >conftest.$ac_ext <<_ACEOF
21299/* confdefs.h. */
21300_ACEOF
21301cat confdefs.h >>conftest.$ac_ext
21302cat >>conftest.$ac_ext <<_ACEOF
21303/* end confdefs.h. */
21304#include <X11/Intrinsic.h>
21305_ACEOF
21306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21308 ac_status=$?
21309 grep -v '^ *+' conftest.er1 >conftest.err
21310 rm -f conftest.er1
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } >/dev/null; then
21314 if test -s conftest.err; then
21315 ac_cpp_err=$ac_c_preproc_warn_flag
21316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21317 else
21318 ac_cpp_err=
21319 fi
21320else
21321 ac_cpp_err=yes
21322fi
21323if test -z "$ac_cpp_err"; then
21324 # We can compile using X headers with no special include directory.
21325ac_x_includes=
21326else
21327 echo "$as_me: failed program was:" >&5
21328sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 for ac_dir in $ac_x_header_dirs; do
21331 if test -r "$ac_dir/X11/Intrinsic.h"; then
21332 ac_x_includes=$ac_dir
21333 break
21334 fi
21335done
21336fi
21337rm -f conftest.err conftest.$ac_ext
21338fi # $ac_x_includes = no
21339
21340if test "$ac_x_libraries" = no; then
21341 # Check for the libraries.
21342 # See if we find them without any special options.
21343 # Don't add to $LIBS permanently.
21344 ac_save_LIBS=$LIBS
21345 LIBS="-lXt $LIBS"
21346 cat >conftest.$ac_ext <<_ACEOF
21347/* confdefs.h. */
21348_ACEOF
21349cat confdefs.h >>conftest.$ac_ext
21350cat >>conftest.$ac_ext <<_ACEOF
21351/* end confdefs.h. */
21352#include <X11/Intrinsic.h>
21353int
21354main ()
21355{
21356XtMalloc (0)
21357 ;
21358 return 0;
21359}
21360_ACEOF
21361rm -f conftest.$ac_objext conftest$ac_exeext
21362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21363 (eval $ac_link) 2>conftest.er1
21364 ac_status=$?
21365 grep -v '^ *+' conftest.er1 >conftest.err
21366 rm -f conftest.er1
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } &&
21370 { ac_try='test -z "$ac_c_werror_flag"
21371 || test ! -s conftest.err'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; } &&
21377 { ac_try='test -s conftest$ac_exeext'
21378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379 (eval $ac_try) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); }; }; then
21383 LIBS=$ac_save_LIBS
21384# We can link X programs with no special library path.
21385ac_x_libraries=
21386else
21387 echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
21390LIBS=$ac_save_LIBS
21391for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21392do
21393 # Don't even attempt the hair of trying to link an X program!
21394 for ac_extension in a so sl; do
21395 if test -r $ac_dir/libXt.$ac_extension; then
21396 ac_x_libraries=$ac_dir
21397 break 2
21398 fi
21399 done
21400done
21401fi
21402rm -f conftest.err conftest.$ac_objext \
21403 conftest$ac_exeext conftest.$ac_ext
21404fi # $ac_x_libraries = no
21405
21406if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21407 # Didn't find X anywhere. Cache the known absence of X.
21408 ac_cv_have_x="have_x=no"
21409else
21410 # Record where we found X for the cache.
21411 ac_cv_have_x="have_x=yes \
21412 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21413fi
21414fi
21415
21416 fi
21417 eval "$ac_cv_have_x"
21418fi # $with_x != no
21419
21420if test "$have_x" != yes; then
21421 echo "$as_me:$LINENO: result: $have_x" >&5
21422echo "${ECHO_T}$have_x" >&6
21423 no_x=yes
21424else
21425 # If each of the values was on the command line, it overrides each guess.
21426 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21427 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21428 # Update the cache value to reflect the command line values.
21429 ac_cv_have_x="have_x=yes \
21430 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21431 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21432echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21433fi
21434
21435
21436# Check whether we should enable the TUI, but only do so if we really
21437# can.
21438if test x"$enable_tui" = xyes; then
21439 if test -d $srcdir/tui; then
21440 if test "$ac_cv_search_waddstr" != no; then
21441 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21442 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21443 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21444 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21445 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21446 CONFIG_ALL="${CONFIG_ALL} all-tui"
21447 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21448 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21449 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21450 else
21451 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21452echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21453 fi
21454 fi
21455fi
21456
21457# Unlike the sim directory, whether a simulator is linked is controlled by
21458# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21459# This code just checks for a few cases where we'd like to ignore those
21460# definitions, even when they're present in the '.mt' file. These cases
21461# are when --disable-sim is specified, or if the simulator directory is
21462# not part of the source tree.
21463#
21464# Check whether --enable-sim or --disable-sim was given.
21465if test "${enable_sim+set}" = set; then
21466 enableval="$enable_sim"
21467 echo "enable_sim = $enable_sim";
21468 echo "enableval = ${enableval}";
21469 case "${enableval}" in
21470 yes) ignore_sim=false ;;
21471 no) ignore_sim=true ;;
21472 *) ignore_sim=false ;;
21473 esac
21474else
21475 ignore_sim=false
21476fi;
21477
21478if test ! -d "${srcdir}/../sim"; then
21479 ignore_sim=true
21480fi
21481
21482if test "${ignore_sim}" = "true"; then
21483 IGNORE_SIM="SIM="
21484 IGNORE_SIM_OBS="SIM_OBS="
21485else
21486 IGNORE_SIM=""
21487 IGNORE_SIM_OBS=""
21488 cat >>confdefs.h <<\_ACEOF
21489#define WITH_SIM 1
21490_ACEOF
21491
21492fi
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507# List of host floatformats.
21508
21509cat >>confdefs.h <<_ACEOF
21510#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21511_ACEOF
21512
21513
21514cat >>confdefs.h <<_ACEOF
21515#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21516_ACEOF
21517
21518
21519cat >>confdefs.h <<_ACEOF
21520#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21521_ACEOF
21522
21523
21524# target_subdir is used by the testsuite to find the target libraries.
21525target_subdir=
21526if test "${host}" != "${target}"; then
21527 target_subdir="${target_alias}/"
21528fi
21529
21530
21531frags=
21532if test "${target}" = "${host}"; then
21533 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21534 if test ! -f ${host_makefile_frag}; then
21535 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21536echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21537 { (exit 1); exit 1; }; }
21538 fi
21539 frags="$frags $host_makefile_frag"
21540else
21541 host_makefile_frag=/dev/null
21542fi
21543
21544target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21545if test ! -f ${target_makefile_frag}; then
21546 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21547echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21548 { (exit 1); exit 1; }; }
21549fi
21550frags="$frags $target_makefile_frag"
21551
21552
21553
21554
21555
21556hostfile=`sed -n '
21557s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21558' ${host_makefile_frag}`
21559
21560targetfile=`sed -n '
21561s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21562' ${target_makefile_frag}`
21563
21564if test "${target}" = "${host}"; then
21565# We pick this up from the host configuration file (.mh) because we
21566# do not have a native configuration Makefile fragment.
21567nativefile=`sed -n '
21568s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21569' ${host_makefile_frag}`
21570fi
21571
21572
21573if test x"${gdb_osabi}" != x ; then
21574
21575cat >>confdefs.h <<_ACEOF
21576#define GDB_OSABI_DEFAULT $gdb_osabi
21577_ACEOF
21578
21579fi
21580
21581# Enable multi-ice-gdb-server.
21582# Check whether --enable-multi-ice or --disable-multi-ice was given.
21583if test "${enable_multi_ice+set}" = set; then
21584 enableval="$enable_multi_ice"
21585 case $enableval in
21586 yes | no)
21587 ;;
21588 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21589echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21590 { (exit 1); exit 1; }; } ;;
21591 esac
21592fi;
21593if test "x$enable_multi_ice" = xyes; then
21594
21595
21596subdirs="$subdirs multi-ice"
21597
21598fi
21599
21600# We only build gdbserver automatically if host and target are the same.
21601if test "x$target" = "x$host"; then
21602 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21603echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21604 if test "x$build_gdbserver" = xyes; then
21605 echo "$as_me:$LINENO: result: yes" >&5
21606echo "${ECHO_T}yes" >&6
21607
21608
21609subdirs="$subdirs gdbserver"
21610
21611 else
21612 echo "$as_me:$LINENO: result: no" >&5
21613echo "${ECHO_T}no" >&6
21614 fi
21615fi
21616
21617# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21618# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21619# to an empty version.
21620
21621files=
21622links=
21623
21624rm -f xm.h
21625xm_h=""
21626if test "${hostfile}" != ""; then
21627 xm_h=xm.h
21628 case "${hostfile}" in
21629 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21630 * ) GDB_XM_FILE="${hostfile}"
21631 esac
21632 files="${files} ${GDB_XM_FILE}"
21633 links="${links} xm.h"
21634 cat >>confdefs.h <<_ACEOF
21635#define GDB_XM_FILE "${GDB_XM_FILE}"
21636_ACEOF
21637
21638fi
21639
21640
21641rm -f tm.h
21642tm_h=""
21643if test "${targetfile}" != ""; then
21644 tm_h=tm.h
21645 case "${targetfile}" in
21646 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21647 * ) GDB_TM_FILE="${targetfile}"
21648 esac
21649 files="${files} ${GDB_TM_FILE}"
21650 links="${links} tm.h"
21651 cat >>confdefs.h <<_ACEOF
21652#define GDB_TM_FILE "${GDB_TM_FILE}"
21653_ACEOF
21654
21655fi
21656
21657
21658rm -f nm.h
21659nm_h=""
21660if test "${nativefile}" != ""; then
21661 nm_h=nm.h
21662 case "${nativefile}" in
21663 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21664 * ) GDB_NM_FILE="${nativefile}"
21665 esac
21666 files="${files} ${GDB_NM_FILE}"
21667 links="${links} nm.h"
21668 cat >>confdefs.h <<_ACEOF
21669#define GDB_NM_FILE "${GDB_NM_FILE}"
21670_ACEOF
21671
21672fi
21673
21674
21675ac_sources="$files"
21676ac_dests="$links"
21677while test -n "$ac_sources"; do
21678 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21679 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21680 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21681done
21682 ac_config_links="$ac_config_links $ac_config_links_1"
21683
21684
21685
21686
21687
21688
21689cat >>confdefs.h <<\_ACEOF
21690#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21691_ACEOF
21692
21693
21694
21695
21696
21697# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21698if test "${with_libiconv_prefix+set}" = set; then
21699 withval="$with_libiconv_prefix"
21700
21701 for dir in `echo "$withval" | tr : ' '`; do
21702 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21703 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21704 done
21705
21706fi;
21707
21708 echo "$as_me:$LINENO: checking for iconv" >&5
21709echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21710if test "${am_cv_func_iconv+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21712else
21713
21714 am_cv_func_iconv="no, consider installing GNU libiconv"
21715 am_cv_lib_iconv=no
21716 cat >conftest.$ac_ext <<_ACEOF
21717/* confdefs.h. */
21718_ACEOF
21719cat confdefs.h >>conftest.$ac_ext
21720cat >>conftest.$ac_ext <<_ACEOF
21721/* end confdefs.h. */
21722#include <stdlib.h>
21723#include <iconv.h>
21724int
21725main ()
21726{
21727iconv_t cd = iconv_open("","");
21728 iconv(cd,NULL,NULL,NULL,NULL);
21729 iconv_close(cd);
21730 ;
21731 return 0;
21732}
21733_ACEOF
21734rm -f conftest.$ac_objext conftest$ac_exeext
21735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736 (eval $ac_link) 2>conftest.er1
21737 ac_status=$?
21738 grep -v '^ *+' conftest.er1 >conftest.err
21739 rm -f conftest.er1
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } &&
21743 { ac_try='test -z "$ac_c_werror_flag"
21744 || test ! -s conftest.err'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; } &&
21750 { ac_try='test -s conftest$ac_exeext'
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; }; then
21756 am_cv_func_iconv=yes
21757else
21758 echo "$as_me: failed program was:" >&5
21759sed 's/^/| /' conftest.$ac_ext >&5
21760
21761fi
21762rm -f conftest.err conftest.$ac_objext \
21763 conftest$ac_exeext conftest.$ac_ext
21764 if test "$am_cv_func_iconv" != yes; then
21765 am_save_LIBS="$LIBS"
21766 LIBS="$LIBS -liconv"
21767 cat >conftest.$ac_ext <<_ACEOF
21768/* confdefs.h. */
21769_ACEOF
21770cat confdefs.h >>conftest.$ac_ext
21771cat >>conftest.$ac_ext <<_ACEOF
21772/* end confdefs.h. */
21773#include <stdlib.h>
21774#include <iconv.h>
21775int
21776main ()
21777{
21778iconv_t cd = iconv_open("","");
21779 iconv(cd,NULL,NULL,NULL,NULL);
21780 iconv_close(cd);
21781 ;
21782 return 0;
21783}
21784_ACEOF
21785rm -f conftest.$ac_objext conftest$ac_exeext
21786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21787 (eval $ac_link) 2>conftest.er1
21788 ac_status=$?
21789 grep -v '^ *+' conftest.er1 >conftest.err
21790 rm -f conftest.er1
21791 cat conftest.err >&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } &&
21794 { ac_try='test -z "$ac_c_werror_flag"
21795 || test ! -s conftest.err'
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21798 ac_status=$?
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; } &&
21801 { ac_try='test -s conftest$ac_exeext'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; }; then
21807 am_cv_lib_iconv=yes
21808 am_cv_func_iconv=yes
21809else
21810 echo "$as_me: failed program was:" >&5
21811sed 's/^/| /' conftest.$ac_ext >&5
21812
21813fi
21814rm -f conftest.err conftest.$ac_objext \
21815 conftest$ac_exeext conftest.$ac_ext
21816 LIBS="$am_save_LIBS"
21817 fi
21818
21819fi
21820echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21821echo "${ECHO_T}$am_cv_func_iconv" >&6
21822 if test "$am_cv_func_iconv" = yes; then
21823
21824cat >>confdefs.h <<\_ACEOF
21825#define HAVE_ICONV 1
21826_ACEOF
21827
21828 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21829echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21830 if test "${am_cv_proto_iconv+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21832else
21833
21834 cat >conftest.$ac_ext <<_ACEOF
21835/* confdefs.h. */
21836_ACEOF
21837cat confdefs.h >>conftest.$ac_ext
21838cat >>conftest.$ac_ext <<_ACEOF
21839/* end confdefs.h. */
21840
21841#include <stdlib.h>
21842#include <iconv.h>
21843extern
21844#ifdef __cplusplus
21845"C"
21846#endif
21847#if defined(__STDC__) || defined(__cplusplus)
21848size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21849#else
21850size_t iconv();
21851#endif
21852
21853int
21854main ()
21855{
21856
21857 ;
21858 return 0;
21859}
21860_ACEOF
21861rm -f conftest.$ac_objext
21862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21863 (eval $ac_compile) 2>conftest.er1
21864 ac_status=$?
21865 grep -v '^ *+' conftest.er1 >conftest.err
21866 rm -f conftest.er1
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } &&
21870 { ac_try='test -z "$ac_c_werror_flag"
21871 || test ! -s conftest.err'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21874 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; } &&
21877 { ac_try='test -s conftest.$ac_objext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 am_cv_proto_iconv_arg1=""
21884else
21885 echo "$as_me: failed program was:" >&5
21886sed 's/^/| /' conftest.$ac_ext >&5
21887
21888am_cv_proto_iconv_arg1="const"
21889fi
21890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21891 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);"
21892fi
21893
21894 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21895 echo "$as_me:$LINENO: result: ${ac_t:-
21896 }$am_cv_proto_iconv" >&5
21897echo "${ECHO_T}${ac_t:-
21898 }$am_cv_proto_iconv" >&6
21899
21900cat >>confdefs.h <<_ACEOF
21901#define ICONV_CONST $am_cv_proto_iconv_arg1
21902_ACEOF
21903
21904 fi
21905 LIBICONV=
21906 if test "$am_cv_lib_iconv" = yes; then
21907 LIBICONV="-liconv"
21908 fi
21909
21910
21911
21912 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21913 ac_config_commands="$ac_config_commands default"
21914cat >confcache <<\_ACEOF
21915# This file is a shell script that caches the results of configure
21916# tests run on this system so they can be shared between configure
21917# scripts and configure runs, see configure's option --config-cache.
21918# It is not useful on other systems. If it contains results you don't
21919# want to keep, you may remove or edit it.
21920#
21921# config.status only pays attention to the cache file if you give it
21922# the --recheck option to rerun configure.
21923#
21924# `ac_cv_env_foo' variables (set or unset) will be overridden when
21925# loading this file, other *unset* `ac_cv_foo' will be assigned the
21926# following values.
21927
21928_ACEOF
21929
21930# The following way of writing the cache mishandles newlines in values,
21931# but we know of no workaround that is simple, portable, and efficient.
21932# So, don't put newlines in cache variables' values.
21933# Ultrix sh set writes to stderr and can't be redirected directly,
21934# and sets the high bit in the cache file unless we assign to the vars.
21935{
21936 (set) 2>&1 |
21937 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21938 *ac_space=\ *)
21939 # `set' does not quote correctly, so add quotes (double-quote
21940 # substitution turns \\\\ into \\, and sed turns \\ into \).
21941 sed -n \
21942 "s/'/'\\\\''/g;
21943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21944 ;;
21945 *)
21946 # `set' quotes correctly as required by POSIX, so do not add quotes.
21947 sed -n \
21948 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21949 ;;
21950 esac;
21951} |
21952 sed '
21953 t clear
21954 : clear
21955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21956 t end
21957 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21958 : end' >>confcache
21959if diff $cache_file confcache >/dev/null 2>&1; then :; else
21960 if test -w $cache_file; then
21961 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21962 cat confcache >$cache_file
21963 else
21964 echo "not updating unwritable cache $cache_file"
21965 fi
21966fi
21967rm -f confcache
21968
21969test "x$prefix" = xNONE && prefix=$ac_default_prefix
21970# Let make expand exec_prefix.
21971test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21972
21973# VPATH may cause trouble with some makes, so we remove $(srcdir),
21974# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21975# trailing colons and then remove the whole line if VPATH becomes empty
21976# (actually we leave an empty line to preserve line numbers).
21977if test "x$srcdir" = x.; then
21978 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21979s/:*\$(srcdir):*/:/;
21980s/:*\${srcdir}:*/:/;
21981s/:*@srcdir@:*/:/;
21982s/^\([^=]*=[ ]*\):*/\1/;
21983s/:*$//;
21984s/^[^=]*=[ ]*$//;
21985}'
21986fi
21987
21988DEFS=-DHAVE_CONFIG_H
21989
21990ac_libobjs=
21991ac_ltlibobjs=
21992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21993 # 1. Remove the extension, and $U if already installed.
21994 ac_i=`echo "$ac_i" |
21995 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21996 # 2. Add them.
21997 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21998 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21999done
22000LIBOBJS=$ac_libobjs
22001
22002LTLIBOBJS=$ac_ltlibobjs
22003
22004
22005
22006: ${CONFIG_STATUS=./config.status}
22007ac_clean_files_save=$ac_clean_files
22008ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22009{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22010echo "$as_me: creating $CONFIG_STATUS" >&6;}
22011cat >$CONFIG_STATUS <<_ACEOF
22012#! $SHELL
22013# Generated by $as_me.
22014# Run this file to recreate the current configuration.
22015# Compiler output produced by configure, useful for debugging
22016# configure, is in config.log if it exists.
22017
22018debug=false
22019ac_cs_recheck=false
22020ac_cs_silent=false
22021SHELL=\${CONFIG_SHELL-$SHELL}
22022_ACEOF
22023
22024cat >>$CONFIG_STATUS <<\_ACEOF
22025## --------------------- ##
22026## M4sh Initialization. ##
22027## --------------------- ##
22028
22029# Be Bourne compatible
22030if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22031 emulate sh
22032 NULLCMD=:
22033 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22034 # is contrary to our usage. Disable this feature.
22035 alias -g '${1+"$@"}'='"$@"'
22036elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22037 set -o posix
22038fi
22039DUALCASE=1; export DUALCASE # for MKS sh
22040
22041# Support unset when possible.
22042if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22043 as_unset=unset
22044else
22045 as_unset=false
22046fi
22047
22048
22049# Work around bugs in pre-3.0 UWIN ksh.
22050$as_unset ENV MAIL MAILPATH
22051PS1='$ '
22052PS2='> '
22053PS4='+ '
22054
22055# NLS nuisances.
22056for as_var in \
22057 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22058 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22059 LC_TELEPHONE LC_TIME
22060do
22061 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22062 eval $as_var=C; export $as_var
22063 else
22064 $as_unset $as_var
22065 fi
22066done
22067
22068# Required to use basename.
22069if expr a : '\(a\)' >/dev/null 2>&1; then
22070 as_expr=expr
22071else
22072 as_expr=false
22073fi
22074
22075if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22076 as_basename=basename
22077else
22078 as_basename=false
22079fi
22080
22081
22082# Name of the executable.
22083as_me=`$as_basename "$0" ||
22084$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22085 X"$0" : 'X\(//\)$' \| \
22086 X"$0" : 'X\(/\)$' \| \
22087 . : '\(.\)' 2>/dev/null ||
22088echo X/"$0" |
22089 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22090 /^X\/\(\/\/\)$/{ s//\1/; q; }
22091 /^X\/\(\/\).*/{ s//\1/; q; }
22092 s/.*/./; q'`
22093
22094
22095# PATH needs CR, and LINENO needs CR and PATH.
22096# Avoid depending upon Character Ranges.
22097as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22098as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22099as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22100as_cr_digits='0123456789'
22101as_cr_alnum=$as_cr_Letters$as_cr_digits
22102
22103# The user is always right.
22104if test "${PATH_SEPARATOR+set}" != set; then
22105 echo "#! /bin/sh" >conf$$.sh
22106 echo "exit 0" >>conf$$.sh
22107 chmod +x conf$$.sh
22108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22109 PATH_SEPARATOR=';'
22110 else
22111 PATH_SEPARATOR=:
22112 fi
22113 rm -f conf$$.sh
22114fi
22115
22116
22117 as_lineno_1=$LINENO
22118 as_lineno_2=$LINENO
22119 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22120 test "x$as_lineno_1" != "x$as_lineno_2" &&
22121 test "x$as_lineno_3" = "x$as_lineno_2" || {
22122 # Find who we are. Look in the path if we contain no path at all
22123 # relative or not.
22124 case $0 in
22125 *[\\/]* ) as_myself=$0 ;;
22126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22127for as_dir in $PATH
22128do
22129 IFS=$as_save_IFS
22130 test -z "$as_dir" && as_dir=.
22131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22132done
22133
22134 ;;
22135 esac
22136 # We did not find ourselves, most probably we were run as `sh COMMAND'
22137 # in which case we are not to be found in the path.
22138 if test "x$as_myself" = x; then
22139 as_myself=$0
22140 fi
22141 if test ! -f "$as_myself"; then
22142 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22143echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22144 { (exit 1); exit 1; }; }
22145 fi
22146 case $CONFIG_SHELL in
22147 '')
22148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22149for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22150do
22151 IFS=$as_save_IFS
22152 test -z "$as_dir" && as_dir=.
22153 for as_base in sh bash ksh sh5; do
22154 case $as_dir in
22155 /*)
22156 if ("$as_dir/$as_base" -c '
22157 as_lineno_1=$LINENO
22158 as_lineno_2=$LINENO
22159 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22160 test "x$as_lineno_1" != "x$as_lineno_2" &&
22161 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22162 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22163 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22164 CONFIG_SHELL=$as_dir/$as_base
22165 export CONFIG_SHELL
22166 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22167 fi;;
22168 esac
22169 done
22170done
22171;;
22172 esac
22173
22174 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22175 # uniformly replaced by the line number. The first 'sed' inserts a
22176 # line-number line before each line; the second 'sed' does the real
22177 # work. The second script uses 'N' to pair each line-number line
22178 # with the numbered line, and appends trailing '-' during
22179 # substitution so that $LINENO is not a special case at line end.
22180 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22181 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22182 sed '=' <$as_myself |
22183 sed '
22184 N
22185 s,$,-,
22186 : loop
22187 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22188 t loop
22189 s,-$,,
22190 s,^['$as_cr_digits']*\n,,
22191 ' >$as_me.lineno &&
22192 chmod +x $as_me.lineno ||
22193 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22194echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22195 { (exit 1); exit 1; }; }
22196
22197 # Don't try to exec as it changes $[0], causing all sort of problems
22198 # (the dirname of $[0] is not the place where we might find the
22199 # original and so on. Autoconf is especially sensible to this).
22200 . ./$as_me.lineno
22201 # Exit status is that of the last command.
22202 exit
22203}
22204
22205
22206case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22207 *c*,-n*) ECHO_N= ECHO_C='
22208' ECHO_T=' ' ;;
22209 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22210 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22211esac
22212
22213if expr a : '\(a\)' >/dev/null 2>&1; then
22214 as_expr=expr
22215else
22216 as_expr=false
22217fi
22218
22219rm -f conf$$ conf$$.exe conf$$.file
22220echo >conf$$.file
22221if ln -s conf$$.file conf$$ 2>/dev/null; then
22222 # We could just check for DJGPP; but this test a) works b) is more generic
22223 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22224 if test -f conf$$.exe; then
22225 # Don't use ln at all; we don't have any links
22226 as_ln_s='cp -p'
22227 else
22228 as_ln_s='ln -s'
22229 fi
22230elif ln conf$$.file conf$$ 2>/dev/null; then
22231 as_ln_s=ln
22232else
22233 as_ln_s='cp -p'
22234fi
22235rm -f conf$$ conf$$.exe conf$$.file
22236
22237if mkdir -p . 2>/dev/null; then
22238 as_mkdir_p=:
22239else
22240 test -d ./-p && rmdir ./-p
22241 as_mkdir_p=false
22242fi
22243
22244as_executable_p="test -f"
22245
22246# Sed expression to map a string onto a valid CPP name.
22247as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22248
22249# Sed expression to map a string onto a valid variable name.
22250as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22251
22252
22253# IFS
22254# We need space, tab and new line, in precisely that order.
22255as_nl='
22256'
22257IFS=" $as_nl"
22258
22259# CDPATH.
22260$as_unset CDPATH
22261
22262exec 6>&1
22263
22264# Open the log real soon, to keep \$[0] and so on meaningful, and to
22265# report actual input values of CONFIG_FILES etc. instead of their
22266# values after options handling. Logging --version etc. is OK.
22267exec 5>>config.log
22268{
22269 echo
22270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22271## Running $as_me. ##
22272_ASBOX
22273} >&5
22274cat >&5 <<_CSEOF
22275
22276This file was extended by $as_me, which was
22277generated by GNU Autoconf 2.59. Invocation command line was
22278
22279 CONFIG_FILES = $CONFIG_FILES
22280 CONFIG_HEADERS = $CONFIG_HEADERS
22281 CONFIG_LINKS = $CONFIG_LINKS
22282 CONFIG_COMMANDS = $CONFIG_COMMANDS
22283 $ $0 $@
22284
22285_CSEOF
22286echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22287echo >&5
22288_ACEOF
22289
22290# Files that config.status was made for.
22291if test -n "$ac_config_files"; then
22292 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22293fi
22294
22295if test -n "$ac_config_headers"; then
22296 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22297fi
22298
22299if test -n "$ac_config_links"; then
22300 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22301fi
22302
22303if test -n "$ac_config_commands"; then
22304 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22305fi
22306
22307cat >>$CONFIG_STATUS <<\_ACEOF
22308
22309ac_cs_usage="\
22310\`$as_me' instantiates files from templates according to the
22311current configuration.
22312
22313Usage: $0 [OPTIONS] [FILE]...
22314
22315 -h, --help print this help, then exit
22316 -V, --version print version number, then exit
22317 -q, --quiet do not print progress messages
22318 -d, --debug don't remove temporary files
22319 --recheck update $as_me by reconfiguring in the same conditions
22320 --file=FILE[:TEMPLATE]
22321 instantiate the configuration file FILE
22322 --header=FILE[:TEMPLATE]
22323 instantiate the configuration header FILE
22324
22325Configuration files:
22326$config_files
22327
22328Configuration headers:
22329$config_headers
22330
22331Configuration links:
22332$config_links
22333
22334Configuration commands:
22335$config_commands
22336
22337Report bugs to <bug-autoconf@gnu.org>."
22338_ACEOF
22339
22340cat >>$CONFIG_STATUS <<_ACEOF
22341ac_cs_version="\\
22342config.status
22343configured by $0, generated by GNU Autoconf 2.59,
22344 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22345
22346Copyright (C) 2003 Free Software Foundation, Inc.
22347This config.status script is free software; the Free Software Foundation
22348gives unlimited permission to copy, distribute and modify it."
22349srcdir=$srcdir
22350INSTALL="$INSTALL"
22351_ACEOF
22352
22353cat >>$CONFIG_STATUS <<\_ACEOF
22354# If no file are specified by the user, then we need to provide default
22355# value. By we need to know if files were specified by the user.
22356ac_need_defaults=:
22357while test $# != 0
22358do
22359 case $1 in
22360 --*=*)
22361 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22362 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22363 ac_shift=:
22364 ;;
22365 -*)
22366 ac_option=$1
22367 ac_optarg=$2
22368 ac_shift=shift
22369 ;;
22370 *) # This is not an option, so the user has probably given explicit
22371 # arguments.
22372 ac_option=$1
22373 ac_need_defaults=false;;
22374 esac
22375
22376 case $ac_option in
22377 # Handling of the options.
22378_ACEOF
22379cat >>$CONFIG_STATUS <<\_ACEOF
22380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22381 ac_cs_recheck=: ;;
22382 --version | --vers* | -V )
22383 echo "$ac_cs_version"; exit 0 ;;
22384 --he | --h)
22385 # Conflict between --help and --header
22386 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22387Try \`$0 --help' for more information." >&5
22388echo "$as_me: error: ambiguous option: $1
22389Try \`$0 --help' for more information." >&2;}
22390 { (exit 1); exit 1; }; };;
22391 --help | --hel | -h )
22392 echo "$ac_cs_usage"; exit 0 ;;
22393 --debug | --d* | -d )
22394 debug=: ;;
22395 --file | --fil | --fi | --f )
22396 $ac_shift
22397 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22398 ac_need_defaults=false;;
22399 --header | --heade | --head | --hea )
22400 $ac_shift
22401 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22402 ac_need_defaults=false;;
22403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22405 ac_cs_silent=: ;;
22406
22407 # This is an error.
22408 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22409Try \`$0 --help' for more information." >&5
22410echo "$as_me: error: unrecognized option: $1
22411Try \`$0 --help' for more information." >&2;}
22412 { (exit 1); exit 1; }; } ;;
22413
22414 *) ac_config_targets="$ac_config_targets $1" ;;
22415
22416 esac
22417 shift
22418done
22419
22420ac_configure_extra_args=
22421
22422if $ac_cs_silent; then
22423 exec 6>/dev/null
22424 ac_configure_extra_args="$ac_configure_extra_args --silent"
22425fi
22426
22427_ACEOF
22428cat >>$CONFIG_STATUS <<_ACEOF
22429if \$ac_cs_recheck; then
22430 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22431 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22432fi
22433
22434_ACEOF
22435
22436cat >>$CONFIG_STATUS <<_ACEOF
22437#
22438# INIT-COMMANDS section.
22439#
22440
22441
22442gdb_host_cpu=$gdb_host_cpu
22443gdb_target_cpu=$gdb_target_cpu
22444nativefile=$nativefile
22445
22446
22447_ACEOF
22448
22449
22450
22451cat >>$CONFIG_STATUS <<\_ACEOF
22452for ac_config_target in $ac_config_targets
22453do
22454 case "$ac_config_target" in
22455 # Handling of arguments.
22456 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22457 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22458 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22459 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22460 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22461 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22462echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22463 { (exit 1); exit 1; }; };;
22464 esac
22465done
22466
22467# If the user did not use the arguments to specify the items to instantiate,
22468# then the envvar interface is used. Set only those that are not.
22469# We use the long form for the default assignment because of an extremely
22470# bizarre bug on SunOS 4.1.3.
22471if $ac_need_defaults; then
22472 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22473 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22474 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22475 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22476fi
22477
22478# Have a temporary directory for convenience. Make it in the build tree
22479# simply because there is no reason to put it here, and in addition,
22480# creating and moving files from /tmp can sometimes cause problems.
22481# Create a temporary directory, and hook for its removal unless debugging.
22482$debug ||
22483{
22484 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22485 trap '{ (exit 1); exit 1; }' 1 2 13 15
22486}
22487
22488# Create a (secure) tmp directory for tmp files.
22489
22490{
22491 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22492 test -n "$tmp" && test -d "$tmp"
22493} ||
22494{
22495 tmp=./confstat$$-$RANDOM
22496 (umask 077 && mkdir $tmp)
22497} ||
22498{
22499 echo "$me: cannot create a temporary directory in ." >&2
22500 { (exit 1); exit 1; }
22501}
22502
22503_ACEOF
22504
22505cat >>$CONFIG_STATUS <<_ACEOF
22506
22507#
22508# CONFIG_FILES section.
22509#
22510
22511# No need to generate the scripts if there are no CONFIG_FILES.
22512# This happens for instance when ./config.status config.h
22513if test -n "\$CONFIG_FILES"; then
22514 # Protect against being on the right side of a sed subst in config.status.
22515 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22516 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22517s,@SHELL@,$SHELL,;t t
22518s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22519s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22520s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22521s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22522s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22523s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22524s,@exec_prefix@,$exec_prefix,;t t
22525s,@prefix@,$prefix,;t t
22526s,@program_transform_name@,$program_transform_name,;t t
22527s,@bindir@,$bindir,;t t
22528s,@sbindir@,$sbindir,;t t
22529s,@libexecdir@,$libexecdir,;t t
22530s,@datadir@,$datadir,;t t
22531s,@sysconfdir@,$sysconfdir,;t t
22532s,@sharedstatedir@,$sharedstatedir,;t t
22533s,@localstatedir@,$localstatedir,;t t
22534s,@libdir@,$libdir,;t t
22535s,@includedir@,$includedir,;t t
22536s,@oldincludedir@,$oldincludedir,;t t
22537s,@infodir@,$infodir,;t t
22538s,@mandir@,$mandir,;t t
22539s,@build_alias@,$build_alias,;t t
22540s,@host_alias@,$host_alias,;t t
22541s,@target_alias@,$target_alias,;t t
22542s,@DEFS@,$DEFS,;t t
22543s,@ECHO_C@,$ECHO_C,;t t
22544s,@ECHO_N@,$ECHO_N,;t t
22545s,@ECHO_T@,$ECHO_T,;t t
22546s,@LIBS@,$LIBS,;t t
22547s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22548s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22549s,@MAINT@,$MAINT,;t t
22550s,@CC@,$CC,;t t
22551s,@CFLAGS@,$CFLAGS,;t t
22552s,@LDFLAGS@,$LDFLAGS,;t t
22553s,@CPPFLAGS@,$CPPFLAGS,;t t
22554s,@ac_ct_CC@,$ac_ct_CC,;t t
22555s,@EXEEXT@,$EXEEXT,;t t
22556s,@OBJEXT@,$OBJEXT,;t t
22557s,@CPP@,$CPP,;t t
22558s,@EGREP@,$EGREP,;t t
22559s,@build@,$build,;t t
22560s,@build_cpu@,$build_cpu,;t t
22561s,@build_vendor@,$build_vendor,;t t
22562s,@build_os@,$build_os,;t t
22563s,@host@,$host,;t t
22564s,@host_cpu@,$host_cpu,;t t
22565s,@host_vendor@,$host_vendor,;t t
22566s,@host_os@,$host_os,;t t
22567s,@target@,$target,;t t
22568s,@target_cpu@,$target_cpu,;t t
22569s,@target_vendor@,$target_vendor,;t t
22570s,@target_os@,$target_os,;t t
22571s,@RANLIB@,$RANLIB,;t t
22572s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22573s,@SET_MAKE@,$SET_MAKE,;t t
22574s,@ALLOCA@,$ALLOCA,;t t
22575s,@USE_NLS@,$USE_NLS,;t t
22576s,@MSGFMT@,$MSGFMT,;t t
22577s,@GMSGFMT@,$GMSGFMT,;t t
22578s,@XGETTEXT@,$XGETTEXT,;t t
22579s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22580s,@CATALOGS@,$CATALOGS,;t t
22581s,@CATOBJEXT@,$CATOBJEXT,;t t
22582s,@DATADIRNAME@,$DATADIRNAME,;t t
22583s,@GMOFILES@,$GMOFILES,;t t
22584s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22585s,@INTLDEPS@,$INTLDEPS,;t t
22586s,@INTLLIBS@,$INTLLIBS,;t t
22587s,@INTLOBJS@,$INTLOBJS,;t t
22588s,@POFILES@,$POFILES,;t t
22589s,@POSUB@,$POSUB,;t t
22590s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22591s,@GT_NO@,$GT_NO,;t t
22592s,@GT_YES@,$GT_YES,;t t
22593s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22594s,@l@,$l,;t t
22595s,@localedir@,$localedir,;t t
22596s,@PACKAGE@,$PACKAGE,;t t
22597s,@subdirs@,$subdirs,;t t
22598s,@AWK@,$AWK,;t t
22599s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22600s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22601s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22602s,@LN_S@,$LN_S,;t t
22603s,@YACC@,$YACC,;t t
22604s,@AR@,$AR,;t t
22605s,@ac_ct_AR@,$ac_ct_AR,;t t
22606s,@DLLTOOL@,$DLLTOOL,;t t
22607s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22608s,@WINDRES@,$WINDRES,;t t
22609s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22610s,@MIG@,$MIG,;t t
22611s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22612s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22613s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22614s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22615s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22616s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22617s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22618s,@WIN32LIBS@,$WIN32LIBS,;t t
22619s,@LIBGUI@,$LIBGUI,;t t
22620s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22621s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22622s,@TCL_VERSION@,$TCL_VERSION,;t t
22623s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22624s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22625s,@TCL_CC@,$TCL_CC,;t t
22626s,@TCL_DEFS@,$TCL_DEFS,;t t
22627s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22628s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22629s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22630s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22631s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22632s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22633s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22634s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22635s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22636s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22637s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22638s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22639s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22640s,@TK_VERSION@,$TK_VERSION,;t t
22641s,@TK_DEFS@,$TK_DEFS,;t t
22642s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22643s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22644s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22645s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22646s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22647s,@TCLHDIR@,$TCLHDIR,;t t
22648s,@TKHDIR@,$TKHDIR,;t t
22649s,@ITCLHDIR@,$ITCLHDIR,;t t
22650s,@ITKHDIR@,$ITKHDIR,;t t
22651s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22652s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22653s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22654s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22655s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22656s,@ITK_VERSION@,$ITK_VERSION,;t t
22657s,@ITK_DEFS@,$ITK_DEFS,;t t
22658s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22659s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22660s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22661s,@X_CFLAGS@,$X_CFLAGS,;t t
22662s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22663s,@X_LIBS@,$X_LIBS,;t t
22664s,@TCL_DEPS@,$TCL_DEPS,;t t
22665s,@TK_DEPS@,$TK_DEPS,;t t
22666s,@ITCLLIB@,$ITCLLIB,;t t
22667s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22668s,@ITKLIB@,$ITKLIB,;t t
22669s,@ITK_DEPS@,$ITK_DEPS,;t t
22670s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22671s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22672s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22673s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22674s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22675s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22676s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22677s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22678s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22679s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22680s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22681s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22682s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22683s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22684s,@target_subdir@,$target_subdir,;t t
22685s,@frags@,$frags,;t t
22686s,@xm_h@,$xm_h,;t t
22687s,@tm_h@,$tm_h,;t t
22688s,@nm_h@,$nm_h,;t t
22689s,@LIBICONV@,$LIBICONV,;t t
22690s,@LIBOBJS@,$LIBOBJS,;t t
22691s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22692/@host_makefile_frag@/r $host_makefile_frag
22693s,@host_makefile_frag@,,;t t
22694/@target_makefile_frag@/r $target_makefile_frag
22695s,@target_makefile_frag@,,;t t
22696CEOF
22697
22698_ACEOF
22699
22700 cat >>$CONFIG_STATUS <<\_ACEOF
22701 # Split the substitutions into bite-sized pieces for seds with
22702 # small command number limits, like on Digital OSF/1 and HP-UX.
22703 ac_max_sed_lines=48
22704 ac_sed_frag=1 # Number of current file.
22705 ac_beg=1 # First line for current file.
22706 ac_end=$ac_max_sed_lines # Line after last line for current file.
22707 ac_more_lines=:
22708 ac_sed_cmds=
22709 while $ac_more_lines; do
22710 if test $ac_beg -gt 1; then
22711 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22712 else
22713 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22714 fi
22715 if test ! -s $tmp/subs.frag; then
22716 ac_more_lines=false
22717 else
22718 # The purpose of the label and of the branching condition is to
22719 # speed up the sed processing (if there are no `@' at all, there
22720 # is no need to browse any of the substitutions).
22721 # These are the two extra sed commands mentioned above.
22722 (echo ':t
22723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22724 if test -z "$ac_sed_cmds"; then
22725 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22726 else
22727 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22728 fi
22729 ac_sed_frag=`expr $ac_sed_frag + 1`
22730 ac_beg=$ac_end
22731 ac_end=`expr $ac_end + $ac_max_sed_lines`
22732 fi
22733 done
22734 if test -z "$ac_sed_cmds"; then
22735 ac_sed_cmds=cat
22736 fi
22737fi # test -n "$CONFIG_FILES"
22738
22739_ACEOF
22740cat >>$CONFIG_STATUS <<\_ACEOF
22741for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22743 case $ac_file in
22744 - | *:- | *:-:* ) # input from stdin
22745 cat >$tmp/stdin
22746 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22747 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22748 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22750 * ) ac_file_in=$ac_file.in ;;
22751 esac
22752
22753 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22754 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22755$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22756 X"$ac_file" : 'X\(//\)[^/]' \| \
22757 X"$ac_file" : 'X\(//\)$' \| \
22758 X"$ac_file" : 'X\(/\)' \| \
22759 . : '\(.\)' 2>/dev/null ||
22760echo X"$ac_file" |
22761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22763 /^X\(\/\/\)$/{ s//\1/; q; }
22764 /^X\(\/\).*/{ s//\1/; q; }
22765 s/.*/./; q'`
22766 { if $as_mkdir_p; then
22767 mkdir -p "$ac_dir"
22768 else
22769 as_dir="$ac_dir"
22770 as_dirs=
22771 while test ! -d "$as_dir"; do
22772 as_dirs="$as_dir $as_dirs"
22773 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22774$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22775 X"$as_dir" : 'X\(//\)[^/]' \| \
22776 X"$as_dir" : 'X\(//\)$' \| \
22777 X"$as_dir" : 'X\(/\)' \| \
22778 . : '\(.\)' 2>/dev/null ||
22779echo X"$as_dir" |
22780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22782 /^X\(\/\/\)$/{ s//\1/; q; }
22783 /^X\(\/\).*/{ s//\1/; q; }
22784 s/.*/./; q'`
22785 done
22786 test ! -n "$as_dirs" || mkdir $as_dirs
22787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22788echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22789 { (exit 1); exit 1; }; }; }
22790
22791 ac_builddir=.
22792
22793if test "$ac_dir" != .; then
22794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22795 # A "../" for each directory in $ac_dir_suffix.
22796 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22797else
22798 ac_dir_suffix= ac_top_builddir=
22799fi
22800
22801case $srcdir in
22802 .) # No --srcdir option. We are building in place.
22803 ac_srcdir=.
22804 if test -z "$ac_top_builddir"; then
22805 ac_top_srcdir=.
22806 else
22807 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22808 fi ;;
22809 [\\/]* | ?:[\\/]* ) # Absolute path.
22810 ac_srcdir=$srcdir$ac_dir_suffix;
22811 ac_top_srcdir=$srcdir ;;
22812 *) # Relative path.
22813 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22814 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22815esac
22816
22817# Do not use `cd foo && pwd` to compute absolute paths, because
22818# the directories may not exist.
22819case `pwd` in
22820.) ac_abs_builddir="$ac_dir";;
22821*)
22822 case "$ac_dir" in
22823 .) ac_abs_builddir=`pwd`;;
22824 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22825 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22826 esac;;
22827esac
22828case $ac_abs_builddir in
22829.) ac_abs_top_builddir=${ac_top_builddir}.;;
22830*)
22831 case ${ac_top_builddir}. in
22832 .) ac_abs_top_builddir=$ac_abs_builddir;;
22833 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22834 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22835 esac;;
22836esac
22837case $ac_abs_builddir in
22838.) ac_abs_srcdir=$ac_srcdir;;
22839*)
22840 case $ac_srcdir in
22841 .) ac_abs_srcdir=$ac_abs_builddir;;
22842 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22843 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22844 esac;;
22845esac
22846case $ac_abs_builddir in
22847.) ac_abs_top_srcdir=$ac_top_srcdir;;
22848*)
22849 case $ac_top_srcdir in
22850 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22851 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22852 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22853 esac;;
22854esac
22855
22856
22857 case $INSTALL in
22858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22859 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22860 esac
22861
22862 if test x"$ac_file" != x-; then
22863 { echo "$as_me:$LINENO: creating $ac_file" >&5
22864echo "$as_me: creating $ac_file" >&6;}
22865 rm -f "$ac_file"
22866 fi
22867 # Let's still pretend it is `configure' which instantiates (i.e., don't
22868 # use $as_me), people would be surprised to read:
22869 # /* config.h. Generated by config.status. */
22870 if test x"$ac_file" = x-; then
22871 configure_input=
22872 else
22873 configure_input="$ac_file. "
22874 fi
22875 configure_input=$configure_input"Generated from `echo $ac_file_in |
22876 sed 's,.*/,,'` by configure."
22877
22878 # First look for the input files in the build tree, otherwise in the
22879 # src tree.
22880 ac_file_inputs=`IFS=:
22881 for f in $ac_file_in; do
22882 case $f in
22883 -) echo $tmp/stdin ;;
22884 [\\/$]*)
22885 # Absolute (can't be DOS-style, as IFS=:)
22886 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22887echo "$as_me: error: cannot find input file: $f" >&2;}
22888 { (exit 1); exit 1; }; }
22889 echo "$f";;
22890 *) # Relative
22891 if test -f "$f"; then
22892 # Build tree
22893 echo "$f"
22894 elif test -f "$srcdir/$f"; then
22895 # Source tree
22896 echo "$srcdir/$f"
22897 else
22898 # /dev/null tree
22899 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22900echo "$as_me: error: cannot find input file: $f" >&2;}
22901 { (exit 1); exit 1; }; }
22902 fi;;
22903 esac
22904 done` || { (exit 1); exit 1; }
22905_ACEOF
22906cat >>$CONFIG_STATUS <<_ACEOF
22907 sed "$ac_vpsub
22908$extrasub
22909_ACEOF
22910cat >>$CONFIG_STATUS <<\_ACEOF
22911:t
22912/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22913s,@configure_input@,$configure_input,;t t
22914s,@srcdir@,$ac_srcdir,;t t
22915s,@abs_srcdir@,$ac_abs_srcdir,;t t
22916s,@top_srcdir@,$ac_top_srcdir,;t t
22917s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22918s,@builddir@,$ac_builddir,;t t
22919s,@abs_builddir@,$ac_abs_builddir,;t t
22920s,@top_builddir@,$ac_top_builddir,;t t
22921s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22922s,@INSTALL@,$ac_INSTALL,;t t
22923" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22924 rm -f $tmp/stdin
22925 if test x"$ac_file" != x-; then
22926 mv $tmp/out $ac_file
22927 else
22928 cat $tmp/out
22929 rm -f $tmp/out
22930 fi
22931
22932done
22933_ACEOF
22934cat >>$CONFIG_STATUS <<\_ACEOF
22935
22936#
22937# CONFIG_HEADER section.
22938#
22939
22940# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22941# NAME is the cpp macro being defined and VALUE is the value it is being given.
22942#
22943# ac_d sets the value in "#define NAME VALUE" lines.
22944ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22945ac_dB='[ ].*$,\1#\2'
22946ac_dC=' '
22947ac_dD=',;t'
22948# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22949ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22950ac_uB='$,\1#\2define\3'
22951ac_uC=' '
22952ac_uD=',;t'
22953
22954for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22956 case $ac_file in
22957 - | *:- | *:-:* ) # input from stdin
22958 cat >$tmp/stdin
22959 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22960 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22961 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22962 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22963 * ) ac_file_in=$ac_file.in ;;
22964 esac
22965
22966 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22967echo "$as_me: creating $ac_file" >&6;}
22968
22969 # First look for the input files in the build tree, otherwise in the
22970 # src tree.
22971 ac_file_inputs=`IFS=:
22972 for f in $ac_file_in; do
22973 case $f in
22974 -) echo $tmp/stdin ;;
22975 [\\/$]*)
22976 # Absolute (can't be DOS-style, as IFS=:)
22977 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22978echo "$as_me: error: cannot find input file: $f" >&2;}
22979 { (exit 1); exit 1; }; }
22980 # Do quote $f, to prevent DOS paths from being IFS'd.
22981 echo "$f";;
22982 *) # Relative
22983 if test -f "$f"; then
22984 # Build tree
22985 echo "$f"
22986 elif test -f "$srcdir/$f"; then
22987 # Source tree
22988 echo "$srcdir/$f"
22989 else
22990 # /dev/null tree
22991 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22992echo "$as_me: error: cannot find input file: $f" >&2;}
22993 { (exit 1); exit 1; }; }
22994 fi;;
22995 esac
22996 done` || { (exit 1); exit 1; }
22997 # Remove the trailing spaces.
22998 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22999
23000_ACEOF
23001
23002# Transform confdefs.h into two sed scripts, `conftest.defines' and
23003# `conftest.undefs', that substitutes the proper values into
23004# config.h.in to produce config.h. The first handles `#define'
23005# templates, and the second `#undef' templates.
23006# And first: Protect against being on the right side of a sed subst in
23007# config.status. Protect against being in an unquoted here document
23008# in config.status.
23009rm -f conftest.defines conftest.undefs
23010# Using a here document instead of a string reduces the quoting nightmare.
23011# Putting comments in sed scripts is not portable.
23012#
23013# `end' is used to avoid that the second main sed command (meant for
23014# 0-ary CPP macros) applies to n-ary macro definitions.
23015# See the Autoconf documentation for `clear'.
23016cat >confdef2sed.sed <<\_ACEOF
23017s/[\\&,]/\\&/g
23018s,[\\$`],\\&,g
23019t clear
23020: clear
23021s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23022t end
23023s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23024: end
23025_ACEOF
23026# If some macros were called several times there might be several times
23027# the same #defines, which is useless. Nevertheless, we may not want to
23028# sort them, since we want the *last* AC-DEFINE to be honored.
23029uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23030sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23031rm -f confdef2sed.sed
23032
23033# This sed command replaces #undef with comments. This is necessary, for
23034# example, in the case of _POSIX_SOURCE, which is predefined and required
23035# on some systems where configure will not decide to define it.
23036cat >>conftest.undefs <<\_ACEOF
23037s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23038_ACEOF
23039
23040# Break up conftest.defines because some shells have a limit on the size
23041# of here documents, and old seds have small limits too (100 cmds).
23042echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23043echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23044echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23045echo ' :' >>$CONFIG_STATUS
23046rm -f conftest.tail
23047while grep . conftest.defines >/dev/null
23048do
23049 # Write a limited-size here document to $tmp/defines.sed.
23050 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23051 # Speed up: don't consider the non `#define' lines.
23052 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23053 # Work around the forget-to-reset-the-flag bug.
23054 echo 't clr' >>$CONFIG_STATUS
23055 echo ': clr' >>$CONFIG_STATUS
23056 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23057 echo 'CEOF
23058 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23059 rm -f $tmp/in
23060 mv $tmp/out $tmp/in
23061' >>$CONFIG_STATUS
23062 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23063 rm -f conftest.defines
23064 mv conftest.tail conftest.defines
23065done
23066rm -f conftest.defines
23067echo ' fi # grep' >>$CONFIG_STATUS
23068echo >>$CONFIG_STATUS
23069
23070# Break up conftest.undefs because some shells have a limit on the size
23071# of here documents, and old seds have small limits too (100 cmds).
23072echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23073rm -f conftest.tail
23074while grep . conftest.undefs >/dev/null
23075do
23076 # Write a limited-size here document to $tmp/undefs.sed.
23077 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23078 # Speed up: don't consider the non `#undef'
23079 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23080 # Work around the forget-to-reset-the-flag bug.
23081 echo 't clr' >>$CONFIG_STATUS
23082 echo ': clr' >>$CONFIG_STATUS
23083 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23084 echo 'CEOF
23085 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23086 rm -f $tmp/in
23087 mv $tmp/out $tmp/in
23088' >>$CONFIG_STATUS
23089 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23090 rm -f conftest.undefs
23091 mv conftest.tail conftest.undefs
23092done
23093rm -f conftest.undefs
23094
23095cat >>$CONFIG_STATUS <<\_ACEOF
23096 # Let's still pretend it is `configure' which instantiates (i.e., don't
23097 # use $as_me), people would be surprised to read:
23098 # /* config.h. Generated by config.status. */
23099 if test x"$ac_file" = x-; then
23100 echo "/* Generated by configure. */" >$tmp/config.h
23101 else
23102 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23103 fi
23104 cat $tmp/in >>$tmp/config.h
23105 rm -f $tmp/in
23106 if test x"$ac_file" != x-; then
23107 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23109echo "$as_me: $ac_file is unchanged" >&6;}
23110 else
23111 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23113 X"$ac_file" : 'X\(//\)[^/]' \| \
23114 X"$ac_file" : 'X\(//\)$' \| \
23115 X"$ac_file" : 'X\(/\)' \| \
23116 . : '\(.\)' 2>/dev/null ||
23117echo X"$ac_file" |
23118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23120 /^X\(\/\/\)$/{ s//\1/; q; }
23121 /^X\(\/\).*/{ s//\1/; q; }
23122 s/.*/./; q'`
23123 { if $as_mkdir_p; then
23124 mkdir -p "$ac_dir"
23125 else
23126 as_dir="$ac_dir"
23127 as_dirs=
23128 while test ! -d "$as_dir"; do
23129 as_dirs="$as_dir $as_dirs"
23130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23132 X"$as_dir" : 'X\(//\)[^/]' \| \
23133 X"$as_dir" : 'X\(//\)$' \| \
23134 X"$as_dir" : 'X\(/\)' \| \
23135 . : '\(.\)' 2>/dev/null ||
23136echo X"$as_dir" |
23137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23139 /^X\(\/\/\)$/{ s//\1/; q; }
23140 /^X\(\/\).*/{ s//\1/; q; }
23141 s/.*/./; q'`
23142 done
23143 test ! -n "$as_dirs" || mkdir $as_dirs
23144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23145echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23146 { (exit 1); exit 1; }; }; }
23147
23148 rm -f $ac_file
23149 mv $tmp/config.h $ac_file
23150 fi
23151 else
23152 cat $tmp/config.h
23153 rm -f $tmp/config.h
23154 fi
23155done
23156_ACEOF
23157cat >>$CONFIG_STATUS <<\_ACEOF
23158
23159#
23160# CONFIG_LINKS section.
23161#
23162
23163for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23164 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23165 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23166
23167 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23168echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23169
23170 if test ! -r $srcdir/$ac_source; then
23171 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23172echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23173 { (exit 1); exit 1; }; }
23174 fi
23175 rm -f $ac_dest
23176
23177 # Make relative symlinks.
23178 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23179$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23180 X"$ac_dest" : 'X\(//\)[^/]' \| \
23181 X"$ac_dest" : 'X\(//\)$' \| \
23182 X"$ac_dest" : 'X\(/\)' \| \
23183 . : '\(.\)' 2>/dev/null ||
23184echo X"$ac_dest" |
23185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23187 /^X\(\/\/\)$/{ s//\1/; q; }
23188 /^X\(\/\).*/{ s//\1/; q; }
23189 s/.*/./; q'`
23190 { if $as_mkdir_p; then
23191 mkdir -p "$ac_dest_dir"
23192 else
23193 as_dir="$ac_dest_dir"
23194 as_dirs=
23195 while test ! -d "$as_dir"; do
23196 as_dirs="$as_dir $as_dirs"
23197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23198$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23199 X"$as_dir" : 'X\(//\)[^/]' \| \
23200 X"$as_dir" : 'X\(//\)$' \| \
23201 X"$as_dir" : 'X\(/\)' \| \
23202 . : '\(.\)' 2>/dev/null ||
23203echo X"$as_dir" |
23204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23206 /^X\(\/\/\)$/{ s//\1/; q; }
23207 /^X\(\/\).*/{ s//\1/; q; }
23208 s/.*/./; q'`
23209 done
23210 test ! -n "$as_dirs" || mkdir $as_dirs
23211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23212echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23213 { (exit 1); exit 1; }; }; }
23214
23215 ac_builddir=.
23216
23217if test "$ac_dest_dir" != .; then
23218 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23219 # A "../" for each directory in $ac_dir_suffix.
23220 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23221else
23222 ac_dir_suffix= ac_top_builddir=
23223fi
23224
23225case $srcdir in
23226 .) # No --srcdir option. We are building in place.
23227 ac_srcdir=.
23228 if test -z "$ac_top_builddir"; then
23229 ac_top_srcdir=.
23230 else
23231 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23232 fi ;;
23233 [\\/]* | ?:[\\/]* ) # Absolute path.
23234 ac_srcdir=$srcdir$ac_dir_suffix;
23235 ac_top_srcdir=$srcdir ;;
23236 *) # Relative path.
23237 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23238 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23239esac
23240
23241# Do not use `cd foo && pwd` to compute absolute paths, because
23242# the directories may not exist.
23243case `pwd` in
23244.) ac_abs_builddir="$ac_dest_dir";;
23245*)
23246 case "$ac_dest_dir" in
23247 .) ac_abs_builddir=`pwd`;;
23248 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23249 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23250 esac;;
23251esac
23252case $ac_abs_builddir in
23253.) ac_abs_top_builddir=${ac_top_builddir}.;;
23254*)
23255 case ${ac_top_builddir}. in
23256 .) ac_abs_top_builddir=$ac_abs_builddir;;
23257 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23258 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23259 esac;;
23260esac
23261case $ac_abs_builddir in
23262.) ac_abs_srcdir=$ac_srcdir;;
23263*)
23264 case $ac_srcdir in
23265 .) ac_abs_srcdir=$ac_abs_builddir;;
23266 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23267 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23268 esac;;
23269esac
23270case $ac_abs_builddir in
23271.) ac_abs_top_srcdir=$ac_top_srcdir;;
23272*)
23273 case $ac_top_srcdir in
23274 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23275 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23276 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23277 esac;;
23278esac
23279
23280
23281 case $srcdir in
23282 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23283 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23284 esac
23285
23286 # Try a symlink, then a hard link, then a copy.
23287 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23288 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23289 cp -p $srcdir/$ac_source $ac_dest ||
23290 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23291echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23292 { (exit 1); exit 1; }; }
23293done
23294_ACEOF
23295cat >>$CONFIG_STATUS <<\_ACEOF
23296
23297#
23298# CONFIG_COMMANDS section.
23299#
23300for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23301 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23302 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23303 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23304$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23305 X"$ac_dest" : 'X\(//\)[^/]' \| \
23306 X"$ac_dest" : 'X\(//\)$' \| \
23307 X"$ac_dest" : 'X\(/\)' \| \
23308 . : '\(.\)' 2>/dev/null ||
23309echo X"$ac_dest" |
23310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23312 /^X\(\/\/\)$/{ s//\1/; q; }
23313 /^X\(\/\).*/{ s//\1/; q; }
23314 s/.*/./; q'`
23315 { if $as_mkdir_p; then
23316 mkdir -p "$ac_dir"
23317 else
23318 as_dir="$ac_dir"
23319 as_dirs=
23320 while test ! -d "$as_dir"; do
23321 as_dirs="$as_dir $as_dirs"
23322 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23323$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23324 X"$as_dir" : 'X\(//\)[^/]' \| \
23325 X"$as_dir" : 'X\(//\)$' \| \
23326 X"$as_dir" : 'X\(/\)' \| \
23327 . : '\(.\)' 2>/dev/null ||
23328echo X"$as_dir" |
23329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23331 /^X\(\/\/\)$/{ s//\1/; q; }
23332 /^X\(\/\).*/{ s//\1/; q; }
23333 s/.*/./; q'`
23334 done
23335 test ! -n "$as_dirs" || mkdir $as_dirs
23336 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23337echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23338 { (exit 1); exit 1; }; }; }
23339
23340 ac_builddir=.
23341
23342if test "$ac_dir" != .; then
23343 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23344 # A "../" for each directory in $ac_dir_suffix.
23345 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23346else
23347 ac_dir_suffix= ac_top_builddir=
23348fi
23349
23350case $srcdir in
23351 .) # No --srcdir option. We are building in place.
23352 ac_srcdir=.
23353 if test -z "$ac_top_builddir"; then
23354 ac_top_srcdir=.
23355 else
23356 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23357 fi ;;
23358 [\\/]* | ?:[\\/]* ) # Absolute path.
23359 ac_srcdir=$srcdir$ac_dir_suffix;
23360 ac_top_srcdir=$srcdir ;;
23361 *) # Relative path.
23362 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23363 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23364esac
23365
23366# Do not use `cd foo && pwd` to compute absolute paths, because
23367# the directories may not exist.
23368case `pwd` in
23369.) ac_abs_builddir="$ac_dir";;
23370*)
23371 case "$ac_dir" in
23372 .) ac_abs_builddir=`pwd`;;
23373 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23374 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23375 esac;;
23376esac
23377case $ac_abs_builddir in
23378.) ac_abs_top_builddir=${ac_top_builddir}.;;
23379*)
23380 case ${ac_top_builddir}. in
23381 .) ac_abs_top_builddir=$ac_abs_builddir;;
23382 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23383 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23384 esac;;
23385esac
23386case $ac_abs_builddir in
23387.) ac_abs_srcdir=$ac_srcdir;;
23388*)
23389 case $ac_srcdir in
23390 .) ac_abs_srcdir=$ac_abs_builddir;;
23391 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23392 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23393 esac;;
23394esac
23395case $ac_abs_builddir in
23396.) ac_abs_top_srcdir=$ac_top_srcdir;;
23397*)
23398 case $ac_top_srcdir in
23399 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23400 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23401 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23402 esac;;
23403esac
23404
23405
23406 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23407echo "$as_me: executing $ac_dest commands" >&6;}
23408 case $ac_dest in
23409 default )
23410
23411sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23412/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23413/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23414mv -f Makefile.tmp Makefile
23415
23416
23417case x$CONFIG_HEADERS in
23418xconfig.h:config.in)
23419echo > stamp-h ;;
23420esac
23421 ;;
23422 esac
23423done
23424_ACEOF
23425
23426cat >>$CONFIG_STATUS <<\_ACEOF
23427
23428{ (exit 0); exit 0; }
23429_ACEOF
23430chmod +x $CONFIG_STATUS
23431ac_clean_files=$ac_clean_files_save
23432
23433
23434# configure is writing to config.log, and then calls config.status.
23435# config.status does its own redirection, appending to config.log.
23436# Unfortunately, on DOS this fails, as config.log is still kept open
23437# by configure, so config.status won't be able to write to it; its
23438# output is simply discarded. So we exec the FD to /dev/null,
23439# effectively closing config.log, so it can be properly (re)opened and
23440# appended to by config.status. When coming back to configure, we
23441# need to make the FD available again.
23442if test "$no_create" != yes; then
23443 ac_cs_success=:
23444 ac_config_status_args=
23445 test "$silent" = yes &&
23446 ac_config_status_args="$ac_config_status_args --quiet"
23447 exec 5>/dev/null
23448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23449 exec 5>>config.log
23450 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23451 # would make configure fail if this is the last instruction.
23452 $ac_cs_success || { (exit 1); exit 1; }
23453fi
23454
23455#
23456# CONFIG_SUBDIRS section.
23457#
23458if test "$no_recursion" != yes; then
23459
23460 # Remove --cache-file and --srcdir arguments so they do not pile up.
23461 ac_sub_configure_args=
23462 ac_prev=
23463 for ac_arg in $ac_configure_args; do
23464 if test -n "$ac_prev"; then
23465 ac_prev=
23466 continue
23467 fi
23468 case $ac_arg in
23469 -cache-file | --cache-file | --cache-fil | --cache-fi \
23470 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23471 ac_prev=cache_file ;;
23472 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23473 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23474 | --c=*)
23475 ;;
23476 --config-cache | -C)
23477 ;;
23478 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23479 ac_prev=srcdir ;;
23480 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23481 ;;
23482 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23483 ac_prev=prefix ;;
23484 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23485 ;;
23486 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23487 esac
23488 done
23489
23490 # Always prepend --prefix to ensure using the same prefix
23491 # in subdir configurations.
23492 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23493
23494 ac_popdir=`pwd`
23495 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23496
23497 # Do not complain, so a configure script can configure whichever
23498 # parts of a large source tree are present.
23499 test -d $srcdir/$ac_dir || continue
23500
23501 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23502echo "$as_me: configuring in $ac_dir" >&6;}
23503 { if $as_mkdir_p; then
23504 mkdir -p "$ac_dir"
23505 else
23506 as_dir="$ac_dir"
23507 as_dirs=
23508 while test ! -d "$as_dir"; do
23509 as_dirs="$as_dir $as_dirs"
23510 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23511$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23512 X"$as_dir" : 'X\(//\)[^/]' \| \
23513 X"$as_dir" : 'X\(//\)$' \| \
23514 X"$as_dir" : 'X\(/\)' \| \
23515 . : '\(.\)' 2>/dev/null ||
23516echo X"$as_dir" |
23517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23519 /^X\(\/\/\)$/{ s//\1/; q; }
23520 /^X\(\/\).*/{ s//\1/; q; }
23521 s/.*/./; q'`
23522 done
23523 test ! -n "$as_dirs" || mkdir $as_dirs
23524 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23525echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23526 { (exit 1); exit 1; }; }; }
23527
23528 ac_builddir=.
23529
23530if test "$ac_dir" != .; then
23531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23532 # A "../" for each directory in $ac_dir_suffix.
23533 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23534else
23535 ac_dir_suffix= ac_top_builddir=
23536fi
23537
23538case $srcdir in
23539 .) # No --srcdir option. We are building in place.
23540 ac_srcdir=.
23541 if test -z "$ac_top_builddir"; then
23542 ac_top_srcdir=.
23543 else
23544 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23545 fi ;;
23546 [\\/]* | ?:[\\/]* ) # Absolute path.
23547 ac_srcdir=$srcdir$ac_dir_suffix;
23548 ac_top_srcdir=$srcdir ;;
23549 *) # Relative path.
23550 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23551 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23552esac
23553
23554# Do not use `cd foo && pwd` to compute absolute paths, because
23555# the directories may not exist.
23556case `pwd` in
23557.) ac_abs_builddir="$ac_dir";;
23558*)
23559 case "$ac_dir" in
23560 .) ac_abs_builddir=`pwd`;;
23561 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23562 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23563 esac;;
23564esac
23565case $ac_abs_builddir in
23566.) ac_abs_top_builddir=${ac_top_builddir}.;;
23567*)
23568 case ${ac_top_builddir}. in
23569 .) ac_abs_top_builddir=$ac_abs_builddir;;
23570 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23571 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23572 esac;;
23573esac
23574case $ac_abs_builddir in
23575.) ac_abs_srcdir=$ac_srcdir;;
23576*)
23577 case $ac_srcdir in
23578 .) ac_abs_srcdir=$ac_abs_builddir;;
23579 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23580 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23581 esac;;
23582esac
23583case $ac_abs_builddir in
23584.) ac_abs_top_srcdir=$ac_top_srcdir;;
23585*)
23586 case $ac_top_srcdir in
23587 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23588 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23589 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23590 esac;;
23591esac
23592
23593
23594 cd $ac_dir
23595
23596 # Check for guested configure; otherwise get Cygnus style configure.
23597 if test -f $ac_srcdir/configure.gnu; then
23598 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23599 elif test -f $ac_srcdir/configure; then
23600 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23601 elif test -f $ac_srcdir/configure.in; then
23602 ac_sub_configure=$ac_configure
23603 else
23604 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23605echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23606 ac_sub_configure=
23607 fi
23608
23609 # The recursion is here.
23610 if test -n "$ac_sub_configure"; then
23611 # Make the cache file name correct relative to the subdirectory.
23612 case $cache_file in
23613 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23614 *) # Relative path.
23615 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23616 esac
23617
23618 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23619echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23620 # The eval makes quoting arguments work.
23621 eval $ac_sub_configure $ac_sub_configure_args \
23622 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23623 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23624echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23625 { (exit 1); exit 1; }; }
23626 fi
23627
23628 cd $ac_popdir
23629 done
23630fi
23631
23632
23633exit 0
This page took 0.107376 seconds and 4 git commands to generate.