* Makefile.in (remote-rdi.o): Remove.
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
bec39cab 3# Generated by GNU Autoconf 2.59.
c906108c 4#
bec39cab 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
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
c906108c 243
bec39cab
AC
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#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
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"
065a1afc 316ac_subdirs_all="$ac_subdirs_all nlm"
c21a4eee 317ac_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 SET_MAKE RANLIB ac_ct_RANLIB 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'
bec39cab 318ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
319
320# Initialize some variables set by options.
bec39cab
AC
321ac_init_help=
322ac_init_version=false
c906108c
SS
323# The variables have the same names as the options, with
324# dashes changed to underlines.
bec39cab 325cache_file=/dev/null
c906108c 326exec_prefix=NONE
c906108c 327no_create=
c906108c
SS
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
c906108c
SS
336verbose=
337x_includes=NONE
338x_libraries=NONE
bec39cab
AC
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
348datadir='${prefix}/share'
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
352libdir='${exec_prefix}/lib'
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
355infodir='${prefix}/info'
356mandir='${prefix}/man'
357
c906108c
SS
358ac_prev=
359for ac_option
360do
c906108c
SS
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
366 fi
367
bec39cab 368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
bec39cab 372 case $ac_option in
c906108c
SS
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 377 bindir=$ac_optarg ;;
c906108c
SS
378
379 -build | --build | --buil | --bui | --bu)
bec39cab 380 ac_prev=build_alias ;;
c906108c 381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 382 build_alias=$ac_optarg ;;
c906108c
SS
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
c906108c
SS
393
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
bec39cab 398 datadir=$ac_optarg ;;
c906108c
SS
399
400 -disable-* | --disable-*)
bec39cab 401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 402 # Reject names that are not valid shell variable names.
bec39cab
AC
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
c906108c
SS
408
409 -enable-* | --enable-*)
bec39cab 410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 411 # Reject names that are not valid shell variable names.
bec39cab
AC
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
418 *) ac_optarg=yes ;;
419 esac
bec39cab 420 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
bec39cab 429 exec_prefix=$ac_optarg ;;
c906108c
SS
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
bec39cab
AC
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
c906108c
SS
441
442 -host | --host | --hos | --ho)
bec39cab 443 ac_prev=host_alias ;;
c906108c 444 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 445 host_alias=$ac_optarg ;;
c906108c
SS
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 452 includedir=$ac_optarg ;;
c906108c
SS
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 457 infodir=$ac_optarg ;;
c906108c
SS
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 462 libdir=$ac_optarg ;;
c906108c
SS
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
bec39cab 469 libexecdir=$ac_optarg ;;
c906108c
SS
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 478 localstatedir=$ac_optarg ;;
c906108c
SS
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 483 mandir=$ac_optarg ;;
c906108c
SS
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 490 | --no-cr | --no-c | -n)
c906108c
SS
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 504 oldincludedir=$ac_optarg ;;
c906108c
SS
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 509 prefix=$ac_optarg ;;
c906108c
SS
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 516 program_prefix=$ac_optarg ;;
c906108c
SS
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 523 program_suffix=$ac_optarg ;;
c906108c
SS
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 540 program_transform_name=$ac_optarg ;;
c906108c
SS
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
bec39cab 550 sbindir=$ac_optarg ;;
c906108c
SS
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
bec39cab 561 sharedstatedir=$ac_optarg ;;
c906108c
SS
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
bec39cab 566 site=$ac_optarg ;;
3ace7edb 567
c906108c
SS
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 571 srcdir=$ac_optarg ;;
c906108c
SS
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 578 sysconfdir=$ac_optarg ;;
c906108c
SS
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 581 ac_prev=target_alias ;;
c906108c 582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 583 target_alias=$ac_optarg ;;
c906108c
SS
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
bec39cab
AC
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
c906108c
SS
590
591 -with-* | --with-*)
bec39cab 592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 593 # Reject names that are not valid shell variable names.
bec39cab
AC
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
c906108c 597 ac_package=`echo $ac_package| sed 's/-/_/g'`
bec39cab
AC
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
600 *) ac_optarg=yes ;;
601 esac
bec39cab 602 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
603
604 -without-* | --without-*)
bec39cab 605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 606 # Reject names that are not valid shell variable names.
bec39cab
AC
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
c906108c
SS
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 622 x_includes=$ac_optarg ;;
c906108c
SS
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 629 x_libraries=$ac_optarg ;;
c906108c 630
bec39cab
AC
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
c906108c
SS
634 ;;
635
bec39cab
AC
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
645
c906108c 646 *)
bec39cab
AC
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
652 ;;
653
654 esac
655done
656
657if test -n "$ac_prev"; then
bec39cab
AC
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
c906108c 661fi
c906108c 662
bec39cab
AC
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
665do
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672done
c906108c 673
bec39cab
AC
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 677do
bec39cab
AC
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
c906108c
SS
683 esac
684done
685
bec39cab
AC
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
688# FIXME: To remove some day.
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
693# FIXME: To remove some day.
694if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702fi
c906108c 703
bec39cab
AC
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
c906108c 708
c906108c
SS
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
bec39cab
AC
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
c906108c
SS
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
c906108c 737 else
bec39cab
AC
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
c906108c
SS
740 fi
741fi
bec39cab
AC
742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746ac_env_build_alias_set=${build_alias+set}
747ac_env_build_alias_value=$build_alias
748ac_cv_env_build_alias_set=${build_alias+set}
749ac_cv_env_build_alias_value=$build_alias
750ac_env_host_alias_set=${host_alias+set}
751ac_env_host_alias_value=$host_alias
752ac_cv_env_host_alias_set=${host_alias+set}
753ac_cv_env_host_alias_value=$host_alias
754ac_env_target_alias_set=${target_alias+set}
755ac_env_target_alias_value=$target_alias
756ac_cv_env_target_alias_set=${target_alias+set}
757ac_cv_env_target_alias_value=$target_alias
758ac_env_CC_set=${CC+set}
759ac_env_CC_value=$CC
760ac_cv_env_CC_set=${CC+set}
761ac_cv_env_CC_value=$CC
762ac_env_CFLAGS_set=${CFLAGS+set}
763ac_env_CFLAGS_value=$CFLAGS
764ac_cv_env_CFLAGS_set=${CFLAGS+set}
765ac_cv_env_CFLAGS_value=$CFLAGS
766ac_env_LDFLAGS_set=${LDFLAGS+set}
767ac_env_LDFLAGS_value=$LDFLAGS
768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769ac_cv_env_LDFLAGS_value=$LDFLAGS
770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_env_CPPFLAGS_value=$CPPFLAGS
772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774ac_env_CPP_set=${CPP+set}
775ac_env_CPP_value=$CPP
776ac_cv_env_CPP_set=${CPP+set}
777ac_cv_env_CPP_value=$CPP
c906108c 778
bec39cab
AC
779#
780# Report the --help message.
781#
782if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
785 cat <<_ACEOF
786\`configure' configures this package to adapt to many kinds of systems.
787
788Usage: $0 [OPTION]... [VAR=VALUE]...
789
790To assign environment variables (e.g., CC, CFLAGS...), specify them as
791VAR=VALUE. See below for descriptions of some of the useful variables.
792
793Defaults for the options are specified in brackets.
794
795Configuration:
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805
806_ACEOF
807
808 cat <<_ACEOF
809Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
811 [$ac_default_prefix]
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 [PREFIX]
814
815By default, \`make install' will install all the files in
816\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818for instance \`--prefix=\$HOME'.
819
820For better control, use the options below.
821
822Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
835_ACEOF
836
837 cat <<\_ACEOF
838
839Program names:
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
844X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
852_ACEOF
853fi
854
855if test -n "$ac_init_help"; then
856
857 cat <<\_ACEOF
858
859Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
bec39cab
AC
864 --disable-nls do not use Native Language Support
865 --disable-gdbcli disable command-line interface (CLI)
866 --disable-gdbmi disable machine-interface (MI)
867 --enable-tui enable full-screen terminal user interface (TUI)
868 --enable-gdbtk enable gdbtk graphical user interface (GUI)
869 --enable-profiling enable profiling of GDB
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
874
875Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-included-gettext use the GNU gettext library included here
879 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
880 --with-libunwind Use libunwind frame unwinding support
881 --without-included-regex don't use included regex; this is the default
882 on systems with version 2 of the GNU C library
883 (use with caution on other system)
884 --with-sysroot=DIR Search for usr/lib et al within DIR.
885 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
886 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
887 --with-tclinclude=DIR Directory where tcl private headers are
888 --with-tkinclude=DIR Directory where tk private headers are
889 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
890 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
893
894Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CPP C preprocessor
902
903Use these variables to override the choices made by `configure' or to help
904it to find libraries and programs with nonstandard names/locations.
905
906_ACEOF
907fi
908
909if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
911 ac_popdir=`pwd`
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
914 ac_builddir=.
915
916if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920else
921 ac_dir_suffix= ac_top_builddir=
922fi
923
924case $srcdir in
925 .) # No --srcdir option. We are building in place.
926 ac_srcdir=.
927 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=.
929 else
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 fi ;;
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
935 *) # Relative path.
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
938esac
939
940# Do not use `cd foo && pwd` to compute absolute paths, because
941# the directories may not exist.
942case `pwd` in
943.) ac_abs_builddir="$ac_dir";;
944*)
945 case "$ac_dir" in
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_builddir=${ac_top_builddir}.;;
953*)
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_srcdir=$ac_srcdir;;
962*)
963 case $ac_srcdir in
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967 esac;;
968esac
969case $ac_abs_builddir in
970.) ac_abs_top_srcdir=$ac_top_srcdir;;
971*)
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976 esac;;
977esac
978
979 cd $ac_dir
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
982 echo
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
985 echo
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
989 echo
990 $ac_configure --help
3ace7edb 991 else
bec39cab
AC
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
993 fi
994 cd $ac_popdir
995 done
996fi
997
998test -n "$ac_init_help" && exit 0
999if $ac_init_version; then
1000 cat <<\_ACEOF
1001
1002Copyright (C) 2003 Free Software Foundation, Inc.
1003This configure script is free software; the Free Software Foundation
1004gives unlimited permission to copy, distribute and modify it.
1005_ACEOF
1006 exit 0
1007fi
1008exec 5>config.log
1009cat >&5 <<_ACEOF
1010This file contains any messages produced by compilers while
1011running configure, to aid debugging if configure makes a mistake.
1012
1013It was created by $as_me, which was
1014generated by GNU Autoconf 2.59. Invocation command line was
1015
1016 $ $0 $@
1017
1018_ACEOF
1019{
1020cat <<_ASUNAME
1021## --------- ##
1022## Platform. ##
1023## --------- ##
1024
1025hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030
1031/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1033
1034/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1041
1042_ASUNAME
1043
1044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045for as_dir in $PATH
1046do
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050done
1051
1052} >&5
1053
1054cat >&5 <<_ACEOF
1055
1056
1057## ----------- ##
1058## Core tests. ##
1059## ----------- ##
1060
1061_ACEOF
1062
1063
1064# Keep a trace of the command line.
1065# Strip out --no-create and --no-recursion so they do not pile up.
1066# Strip out --silent because we don't want to record it for future runs.
1067# Also quote any args containing shell meta-characters.
1068# Make two passes to allow for proper duplicate-argument suppression.
1069ac_configure_args=
1070ac_configure_args0=
1071ac_configure_args1=
1072ac_sep=
1073ac_must_keep_next=false
1074for ac_pass in 1 2
1075do
1076 for ac_arg
1077 do
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088 2)
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1101 ;;
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1104 fi
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1108 ;;
1109 esac
1110 done
1111done
1112$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114
1115# When interrupted or exit'd, cleanup temporary files, and complete
1116# config.log. We remove comments because anyway the quotes in there
1117# would cause problems or look ugly.
1118# WARNING: Be sure not to use single quotes in there, as some shells,
1119# such as our DU 5.0 friend, will then `close' the trap.
1120trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1122 {
1123 echo
1124
1125 cat <<\_ASBOX
1126## ---------------- ##
1127## Cache variables. ##
1128## ---------------- ##
1129_ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
1132{
1133 (set) 2>&1 |
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
1136 sed -n \
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 ;;
1140 *)
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143 ;;
1144 esac;
1145}
1146 echo
1147
1148 cat <<\_ASBOX
1149## ----------------- ##
1150## Output variables. ##
1151## ----------------- ##
1152_ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
1163## ------------- ##
1164## Output files. ##
1165## ------------- ##
1166_ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1169 do
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1174 fi
1175
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178## ----------- ##
1179## confdefs.h. ##
1180## ----------- ##
1181_ASBOX
1182 echo
1183 sed "/^$/d" confdefs.h | sort
1184 echo
3ace7edb 1185 fi
bec39cab
AC
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192 exit $exit_status
1193 ' 0
1194for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196done
1197ac_signal=0
1198
1199# confdefs.h avoids OS command line length limits that DEFS can exceed.
1200rm -rf conftest* confdefs.h
1201# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202echo >confdefs.h
1203
1204# Predefined preprocessor variables.
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_NAME "$PACKAGE_NAME"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_VERSION "$PACKAGE_VERSION"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_STRING "$PACKAGE_STRING"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228_ACEOF
1229
1230
1231# Let the site file select an alternate cache file if it wants to.
1232# Prefer explicitly selected file to automatically selected ones.
1233if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c906108c
SS
1238 fi
1239fi
1240for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
bec39cab
AC
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1245 . "$ac_site_file"
1246 fi
1247done
1248
1249if test -r "$cache_file"; then
bec39cab
AC
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1259 fi
c906108c 1260else
bec39cab
AC
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1264fi
1265
1266# Check that the precious variables saved in the cache have kept the same
1267# value.
1268ac_cache_corrupted=false
1269for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1285 *)
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1294 fi;;
1295 esac
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1298 case $ac_new_val in
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1302 esac
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 esac
1307 fi
1308done
1309if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
c906108c
SS
1315fi
1316
1317ac_ext=c
c906108c 1318ac_cpp='$CPP $CPPFLAGS'
bec39cab
AC
1319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1322
1323
1324
bec39cab
AC
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341 ac_config_headers="$ac_config_headers config.h:config.in"
1342
1343echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1344echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
413ccac7
AC
1345 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1346if test "${enable_maintainer_mode+set}" = set; then
1347 enableval="$enable_maintainer_mode"
1348 USE_MAINTAINER_MODE=$enableval
1349else
1350 USE_MAINTAINER_MODE=no
bec39cab
AC
1351fi;
1352 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1353echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1354
413ccac7
AC
1355
1356if test $USE_MAINTAINER_MODE = yes; then
1357 MAINTAINER_MODE_TRUE=
1358 MAINTAINER_MODE_FALSE='#'
1359else
1360 MAINTAINER_MODE_TRUE='#'
1361 MAINTAINER_MODE_FALSE=
1362fi
85981d60 1363
413ccac7 1364 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1365
c906108c 1366
bec39cab
AC
1367
1368ac_ext=c
1369ac_cpp='$CPP $CPPFLAGS'
1370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375set dummy ${ac_tool_prefix}gcc; ac_word=$2
1376echo "$as_me:$LINENO: checking for $ac_word" >&5
1377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1383else
1384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 break 2
1394 fi
1395done
1396done
1397
1398fi
1399fi
1400CC=$ac_cv_prog_CC
1401if test -n "$CC"; then
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403echo "${ECHO_T}$CC" >&6
1404else
1405 echo "$as_me:$LINENO: result: no" >&5
1406echo "${ECHO_T}no" >&6
1407fi
1408
1409fi
1410if test -z "$ac_cv_prog_CC"; then
1411 ac_ct_CC=$CC
1412 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1413set dummy gcc; ac_word=$2
bec39cab
AC
1414echo "$as_me:$LINENO: checking for $ac_word" >&5
1415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1421else
1422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423for as_dir in $PATH
1424do
1425 IFS=$as_save_IFS
1426 test -z "$as_dir" && as_dir=.
1427 for ac_exec_ext in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_ac_ct_CC="gcc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431 break 2
1432 fi
1433done
1434done
1435
1436fi
1437fi
1438ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439if test -n "$ac_ct_CC"; then
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441echo "${ECHO_T}$ac_ct_CC" >&6
1442else
1443 echo "$as_me:$LINENO: result: no" >&5
1444echo "${ECHO_T}no" >&6
1445fi
1446
1447 CC=$ac_ct_CC
1448else
1449 CC="$ac_cv_prog_CC"
1450fi
1451
1452if test -z "$CC"; then
1453 if test -n "$ac_tool_prefix"; then
1454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1455set dummy ${ac_tool_prefix}cc; ac_word=$2
1456echo "$as_me:$LINENO: checking for $ac_word" >&5
1457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1460else
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1463else
bec39cab
AC
1464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465for as_dir in $PATH
1466do
1467 IFS=$as_save_IFS
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_CC="${ac_tool_prefix}cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 break 2
1474 fi
1475done
1476done
1477
c906108c
SS
1478fi
1479fi
bec39cab 1480CC=$ac_cv_prog_CC
c906108c 1481if test -n "$CC"; then
bec39cab
AC
1482 echo "$as_me:$LINENO: result: $CC" >&5
1483echo "${ECHO_T}$CC" >&6
1484else
1485 echo "$as_me:$LINENO: result: no" >&5
1486echo "${ECHO_T}no" >&6
1487fi
1488
1489fi
1490if test -z "$ac_cv_prog_CC"; then
1491 ac_ct_CC=$CC
1492 # Extract the first word of "cc", so it can be a program name with args.
1493set dummy cc; ac_word=$2
1494echo "$as_me:$LINENO: checking for $ac_word" >&5
1495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498else
1499 if test -n "$ac_ct_CC"; then
1500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1501else
1502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503for as_dir in $PATH
1504do
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_ac_ct_CC="cc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511 break 2
1512 fi
1513done
1514done
1515
1516fi
1517fi
1518ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519if test -n "$ac_ct_CC"; then
1520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1521echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1522else
bec39cab
AC
1523 echo "$as_me:$LINENO: result: no" >&5
1524echo "${ECHO_T}no" >&6
c906108c
SS
1525fi
1526
bec39cab
AC
1527 CC=$ac_ct_CC
1528else
1529 CC="$ac_cv_prog_CC"
1530fi
1531
1532fi
c906108c
SS
1533if test -z "$CC"; then
1534 # Extract the first word of "cc", so it can be a program name with args.
1535set dummy cc; ac_word=$2
bec39cab
AC
1536echo "$as_me:$LINENO: checking for $ac_word" >&5
1537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1540else
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1543else
c906108c 1544 ac_prog_rejected=no
bec39cab
AC
1545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546for as_dir in $PATH
1547do
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1553 ac_prog_rejected=yes
1554 continue
1555 fi
1556 ac_cv_prog_CC="cc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1559 fi
1560done
1561done
1562
c906108c
SS
1563if test $ac_prog_rejected = yes; then
1564 # We found a bogon in the path, so make sure we never use it.
1565 set dummy $ac_cv_prog_CC
1566 shift
bec39cab 1567 if test $# != 0; then
c906108c
SS
1568 # We chose a different compiler from the bogus one.
1569 # However, it has the same basename, so the bogon will be chosen
1570 # first if we set CC to just the basename; use the full file name.
1571 shift
bec39cab 1572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1573 fi
1574fi
1575fi
1576fi
bec39cab 1577CC=$ac_cv_prog_CC
c906108c 1578if test -n "$CC"; then
bec39cab
AC
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580echo "${ECHO_T}$CC" >&6
c906108c 1581else
bec39cab
AC
1582 echo "$as_me:$LINENO: result: no" >&5
1583echo "${ECHO_T}no" >&6
c906108c
SS
1584fi
1585
bec39cab
AC
1586fi
1587if test -z "$CC"; then
1588 if test -n "$ac_tool_prefix"; then
1589 for ac_prog in cl
1590 do
1591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1593echo "$as_me:$LINENO: checking for $ac_word" >&5
1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1597else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600else
bec39cab
AC
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612done
1613done
1614
c906108c
SS
1615fi
1616fi
bec39cab 1617CC=$ac_cv_prog_CC
c906108c 1618if test -n "$CC"; then
bec39cab
AC
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620echo "${ECHO_T}$CC" >&6
c906108c 1621else
bec39cab
AC
1622 echo "$as_me:$LINENO: result: no" >&5
1623echo "${ECHO_T}no" >&6
c906108c 1624fi
bec39cab
AC
1625
1626 test -n "$CC" && break
1627 done
1628fi
1629if test -z "$CC"; then
1630 ac_ct_CC=$CC
1631 for ac_prog in cl
1632do
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC="$ac_prog"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
c906108c 1653 fi
bec39cab
AC
1654done
1655done
1656
1657fi
1658fi
1659ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662echo "${ECHO_T}$ac_ct_CC" >&6
1663else
1664 echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
c906108c
SS
1666fi
1667
bec39cab
AC
1668 test -n "$ac_ct_CC" && break
1669done
c906108c 1670
bec39cab
AC
1671 CC=$ac_ct_CC
1672fi
1673
1674fi
1675
1676
1677test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1678See \`config.log' for more details." >&5
1679echo "$as_me: error: no acceptable C compiler found in \$PATH
1680See \`config.log' for more details." >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683# Provide some information about the compiler.
1684echo "$as_me:$LINENO:" \
1685 "checking for C compiler version" >&5
1686ac_compiler=`set X $ac_compile; echo $2`
1687{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1688 (eval $ac_compiler --version </dev/null >&5) 2>&5
1689 ac_status=$?
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }
1692{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1693 (eval $ac_compiler -v </dev/null >&5) 2>&5
1694 ac_status=$?
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1698 (eval $ac_compiler -V </dev/null >&5) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702
1703cat >conftest.$ac_ext <<_ACEOF
1704/* confdefs.h. */
1705_ACEOF
1706cat confdefs.h >>conftest.$ac_ext
1707cat >>conftest.$ac_ext <<_ACEOF
1708/* end confdefs.h. */
1709
1710int
1711main ()
1712{
1713
1714 ;
1715 return 0;
1716}
1717_ACEOF
1718ac_clean_files_save=$ac_clean_files
1719ac_clean_files="$ac_clean_files a.out a.exe b.out"
1720# Try to create an executable without -o first, disregard a.out.
1721# It will help us diagnose broken compilers, and finding out an intuition
1722# of exeext.
1723echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1724echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1725ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1727 (eval $ac_link_default) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }; then
1731 # Find the output, starting from the most likely. This scheme is
1732# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733# resort.
1734
1735# Be careful to initialize this variable, since it used to be cached.
1736# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1737ac_cv_exeext=
1738# b.out is created by i960 compilers.
1739for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1740do
1741 test -f "$ac_file" || continue
1742 case $ac_file in
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1744 ;;
1745 conftest.$ac_ext )
1746 # This is the source file.
1747 ;;
1748 [ab].out )
1749 # We found the default executable, but exeext='' is most
1750 # certainly right.
1751 break;;
1752 *.* )
1753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 # FIXME: I believe we export ac_cv_exeext for Libtool,
1755 # but it would be cool to find out if it's true. Does anybody
1756 # maintain Libtool? --akim.
1757 export ac_cv_exeext
1758 break;;
1759 * )
1760 break;;
1761 esac
1762done
1763else
1764 echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1768See \`config.log' for more details." >&5
1769echo "$as_me: error: C compiler cannot create executables
1770See \`config.log' for more details." >&2;}
1771 { (exit 77); exit 77; }; }
1772fi
1773
1774ac_exeext=$ac_cv_exeext
1775echo "$as_me:$LINENO: result: $ac_file" >&5
1776echo "${ECHO_T}$ac_file" >&6
1777
1778# Check the compiler produces executables we can run. If not, either
1779# the compiler is broken, or we cross compile.
1780echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1781echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1782# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783# If not cross compiling, check that we can run a simple program.
1784if test "$cross_compiling" != yes; then
1785 if { ac_try='./$ac_file'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1787 (eval $ac_try) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1791 cross_compiling=no
c906108c 1792 else
bec39cab
AC
1793 if test "$cross_compiling" = maybe; then
1794 cross_compiling=yes
1795 else
1796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1797If you meant to cross compile, use \`--host'.
1798See \`config.log' for more details." >&5
1799echo "$as_me: error: cannot run C compiled programs.
1800If you meant to cross compile, use \`--host'.
1801See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1803 fi
c906108c 1804 fi
bec39cab
AC
1805fi
1806echo "$as_me:$LINENO: result: yes" >&5
1807echo "${ECHO_T}yes" >&6
1808
1809rm -f a.out a.exe conftest$ac_cv_exeext b.out
1810ac_clean_files=$ac_clean_files_save
1811# Check the compiler produces executables we can run. If not, either
1812# the compiler is broken, or we cross compile.
1813echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1814echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815echo "$as_me:$LINENO: result: $cross_compiling" >&5
1816echo "${ECHO_T}$cross_compiling" >&6
1817
1818echo "$as_me:$LINENO: checking for suffix of executables" >&5
1819echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1821 (eval $ac_link) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827# work properly (i.e., refer to `conftest.exe'), while it won't with
1828# `rm'.
1829for ac_file in conftest.exe conftest conftest.*; do
1830 test -f "$ac_file" || continue
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 export ac_cv_exeext
1835 break;;
1836 * ) break;;
1837 esac
1838done
c906108c 1839else
bec39cab
AC
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1841See \`config.log' for more details." >&5
1842echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1843See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
c906108c 1845fi
c906108c 1846
bec39cab
AC
1847rm -f conftest$ac_cv_exeext
1848echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1849echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1850
bec39cab
AC
1851rm -f conftest.$ac_ext
1852EXEEXT=$ac_cv_exeext
1853ac_exeext=$EXEEXT
1854echo "$as_me:$LINENO: checking for suffix of object files" >&5
1855echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1856if test "${ac_cv_objext+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859 cat >conftest.$ac_ext <<_ACEOF
1860/* confdefs.h. */
1861_ACEOF
1862cat confdefs.h >>conftest.$ac_ext
1863cat >>conftest.$ac_ext <<_ACEOF
1864/* end confdefs.h. */
c906108c 1865
bec39cab
AC
1866int
1867main ()
1868{
c906108c 1869
bec39cab
AC
1870 ;
1871 return 0;
1872}
1873_ACEOF
1874rm -f conftest.o conftest.obj
1875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
1880 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1881 case $ac_file in
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1883 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1884 break;;
1885 esac
1886done
c906108c 1887else
bec39cab
AC
1888 echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1892See \`config.log' for more details." >&5
1893echo "$as_me: error: cannot compute suffix of object files: cannot compile
1894See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
c906108c
SS
1896fi
1897
bec39cab
AC
1898rm -f conftest.$ac_cv_objext conftest.$ac_ext
1899fi
1900echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1901echo "${ECHO_T}$ac_cv_objext" >&6
1902OBJEXT=$ac_cv_objext
1903ac_objext=$OBJEXT
1904echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1905echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1906if test "${ac_cv_c_compiler_gnu+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1908else
bec39cab
AC
1909 cat >conftest.$ac_ext <<_ACEOF
1910/* confdefs.h. */
1911_ACEOF
1912cat confdefs.h >>conftest.$ac_ext
1913cat >>conftest.$ac_ext <<_ACEOF
1914/* end confdefs.h. */
1915
1916int
1917main ()
1918{
1919#ifndef __GNUC__
1920 choke me
1921#endif
1922
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927rm -f conftest.$ac_objext
1928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1930 ac_status=$?
1931 grep -v '^ *+' conftest.er1 >conftest.err
1932 rm -f conftest.er1
1933 cat conftest.err >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -z "$ac_c_werror_flag"
1937 || test ! -s conftest.err'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 ac_compiler_gnu=yes
1950else
1951 echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954ac_compiler_gnu=no
1955fi
1956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957ac_cv_c_compiler_gnu=$ac_compiler_gnu
1958
1959fi
1960echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1961echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1962GCC=`test $ac_compiler_gnu = yes && echo yes`
1963ac_test_CFLAGS=${CFLAGS+set}
1964ac_save_CFLAGS=$CFLAGS
1965CFLAGS="-g"
1966echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1967echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1968if test "${ac_cv_prog_cc_g+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 cat >conftest.$ac_ext <<_ACEOF
1972/* confdefs.h. */
1973_ACEOF
1974cat confdefs.h >>conftest.$ac_ext
1975cat >>conftest.$ac_ext <<_ACEOF
1976/* end confdefs.h. */
1977
1978int
1979main ()
1980{
1981
1982 ;
1983 return 0;
1984}
1985_ACEOF
1986rm -f conftest.$ac_objext
1987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>conftest.er1
1989 ac_status=$?
1990 grep -v '^ *+' conftest.er1 >conftest.err
1991 rm -f conftest.er1
1992 cat conftest.err >&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try='test -z "$ac_c_werror_flag"
1996 || test ! -s conftest.err'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 (eval $ac_try) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
c906108c
SS
2008 ac_cv_prog_cc_g=yes
2009else
bec39cab
AC
2010 echo "$as_me: failed program was:" >&5
2011sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2012
bec39cab 2013ac_cv_prog_cc_g=no
c906108c 2014fi
bec39cab
AC
2015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2016fi
2017echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2018echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2019if test "$ac_test_CFLAGS" = set; then
bec39cab 2020 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2021elif test $ac_cv_prog_cc_g = yes; then
2022 if test "$GCC" = yes; then
2023 CFLAGS="-g -O2"
2024 else
2025 CFLAGS="-g"
2026 fi
2027else
2028 if test "$GCC" = yes; then
2029 CFLAGS="-O2"
2030 else
2031 CFLAGS=
2032 fi
2033fi
bec39cab
AC
2034echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2035echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2036if test "${ac_cv_prog_cc_stdc+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
2039 ac_cv_prog_cc_stdc=no
2040ac_save_CC=$CC
2041cat >conftest.$ac_ext <<_ACEOF
2042/* confdefs.h. */
2043_ACEOF
2044cat confdefs.h >>conftest.$ac_ext
2045cat >>conftest.$ac_ext <<_ACEOF
2046/* end confdefs.h. */
c906108c
SS
2047#include <stdarg.h>
2048#include <stdio.h>
2049#include <sys/types.h>
2050#include <sys/stat.h>
2051/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2052struct buf { int x; };
2053FILE * (*rcsopen) (struct buf *, struct stat *, int);
2054static char *e (p, i)
2055 char **p;
2056 int i;
2057{
2058 return p[i];
2059}
2060static char *f (char * (*g) (char **, int), char **p, ...)
2061{
2062 char *s;
2063 va_list v;
2064 va_start (v,p);
2065 s = g (p, va_arg (v,int));
2066 va_end (v);
2067 return s;
2068}
bec39cab
AC
2069
2070/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2071 function prototypes and stuff, but not '\xHH' hex character constants.
2072 These don't provoke an error unfortunately, instead are silently treated
2073 as 'x'. The following induces an error, until -std1 is added to get
2074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2075 array size at least. It's necessary to write '\x00'==0 to get something
2076 that's true only with -std1. */
2077int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2078
c906108c
SS
2079int test (int i, double x);
2080struct s1 {int (*f) (int a);};
2081struct s2 {int (*f) (double a);};
2082int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2083int argc;
2084char **argv;
bec39cab
AC
2085int
2086main ()
2087{
c906108c 2088return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093# Don't try gcc -ansi; that turns off useful extensions and
2094# breaks some systems' header files.
2095# AIX -qlanglvl=ansi
2096# Ultrix and OSF/1 -std1
2097# HP-UX 10.20 and later -Ae
2098# HP-UX older versions -Aa -D_HPUX_SOURCE
2099# SVR4 -Xc -D__EXTENSIONS__
2100for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2101do
2102 CC="$ac_save_CC $ac_arg"
2103 rm -f conftest.$ac_objext
2104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>conftest.er1
2106 ac_status=$?
2107 grep -v '^ *+' conftest.er1 >conftest.err
2108 rm -f conftest.er1
2109 cat conftest.err >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
2112 { ac_try='test -z "$ac_c_werror_flag"
2113 || test ! -s conftest.err'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 (eval $ac_try) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; } &&
2119 { ac_try='test -s conftest.$ac_objext'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 ac_cv_prog_cc_stdc=$ac_arg
2126break
c906108c 2127else
bec39cab
AC
2128 echo "$as_me: failed program was:" >&5
2129sed 's/^/| /' conftest.$ac_ext >&5
2130
c906108c 2131fi
bec39cab 2132rm -f conftest.err conftest.$ac_objext
c906108c 2133done
bec39cab
AC
2134rm -f conftest.$ac_ext conftest.$ac_objext
2135CC=$ac_save_CC
c906108c
SS
2136
2137fi
2138
bec39cab
AC
2139case "x$ac_cv_prog_cc_stdc" in
2140 x|xno)
2141 echo "$as_me:$LINENO: result: none needed" >&5
2142echo "${ECHO_T}none needed" >&6 ;;
2143 *)
2144 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2145echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2146 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2147esac
2148
bec39cab
AC
2149# Some people use a C++ compiler to compile C. Since we use `exit',
2150# in C++ we need to declare it. In case someone uses the same compiler
2151# for both compiling C and C++ we need to have the C++ compiler decide
2152# the declaration of exit, since it's the most demanding environment.
2153cat >conftest.$ac_ext <<_ACEOF
2154#ifndef __cplusplus
2155 choke me
2156#endif
2157_ACEOF
2158rm -f conftest.$ac_objext
2159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2161 ac_status=$?
2162 grep -v '^ *+' conftest.er1 >conftest.err
2163 rm -f conftest.er1
2164 cat conftest.err >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -z "$ac_c_werror_flag"
2168 || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 for ac_declaration in \
2181 '' \
2182 'extern "C" void std::exit (int) throw (); using std::exit;' \
2183 'extern "C" void std::exit (int); using std::exit;' \
2184 'extern "C" void exit (int) throw ();' \
2185 'extern "C" void exit (int);' \
2186 'void exit (int);'
2187do
2188 cat >conftest.$ac_ext <<_ACEOF
2189/* confdefs.h. */
2190_ACEOF
2191cat confdefs.h >>conftest.$ac_ext
2192cat >>conftest.$ac_ext <<_ACEOF
2193/* end confdefs.h. */
2194$ac_declaration
2195#include <stdlib.h>
2196int
2197main ()
2198{
2199exit (42);
2200 ;
2201 return 0;
2202}
2203_ACEOF
2204rm -f conftest.$ac_objext
2205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>conftest.er1
2207 ac_status=$?
2208 grep -v '^ *+' conftest.er1 >conftest.err
2209 rm -f conftest.er1
2210 cat conftest.err >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try='test -z "$ac_c_werror_flag"
2214 || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 :
2227else
2228 echo "$as_me: failed program was:" >&5
2229sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2230
bec39cab 2231continue
c906108c 2232fi
bec39cab
AC
2233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2234 cat >conftest.$ac_ext <<_ACEOF
2235/* confdefs.h. */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h. */
2240$ac_declaration
2241int
2242main ()
2243{
2244exit (42);
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249rm -f conftest.$ac_objext
2250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>conftest.er1
2252 ac_status=$?
2253 grep -v '^ *+' conftest.er1 >conftest.err
2254 rm -f conftest.er1
2255 cat conftest.err >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -z "$ac_c_werror_flag"
2259 || test ! -s conftest.err'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; } &&
2265 { ac_try='test -s conftest.$ac_objext'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 break
2272else
2273 echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2275
bec39cab
AC
2276fi
2277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278done
2279rm -f conftest*
2280if test -n "$ac_declaration"; then
2281 echo '#ifdef __cplusplus' >>confdefs.h
2282 echo $ac_declaration >>confdefs.h
2283 echo '#endif' >>confdefs.h
c906108c
SS
2284fi
2285
bec39cab
AC
2286else
2287 echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2289
bec39cab
AC
2290fi
2291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292ac_ext=c
2293ac_cpp='$CPP $CPPFLAGS'
2294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2297
60ca704f 2298
bec39cab
AC
2299cat >>confdefs.h <<\_ACEOF
2300#define _GNU_SOURCE 1
2301_ACEOF
c906108c
SS
2302
2303
8bb2c122 2304
bec39cab
AC
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312# On Suns, sometimes $CPP names a directory.
2313if test -n "$CPP" && test -d "$CPP"; then
2314 CPP=
8bb2c122 2315fi
bec39cab
AC
2316if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320 # Double quotes because CPP needs to be expanded
2321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2322 do
2323 ac_preproc_ok=false
2324for ac_c_preproc_warn_flag in '' yes
2325do
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h. */
2338#ifdef __STDC__
2339# include <limits.h>
2340#else
2341# include <assert.h>
2342#endif
2343 Syntax error
2344_ACEOF
2345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_c_preproc_warn_flag
2355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 else
2357 ac_cpp_err=
2358 fi
8bb2c122 2359else
bec39cab 2360 ac_cpp_err=yes
8bb2c122 2361fi
bec39cab
AC
2362if test -z "$ac_cpp_err"; then
2363 :
8bb2c122 2364else
bec39cab
AC
2365 echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 # Broken: fails on valid input.
2369continue
2370fi
2371rm -f conftest.err conftest.$ac_ext
2372
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381#include <ac_nonexistent.h>
2382_ACEOF
2383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 else
2395 ac_cpp_err=
2396 fi
8bb2c122 2397else
bec39cab 2398 ac_cpp_err=yes
8bb2c122 2399fi
bec39cab
AC
2400if test -z "$ac_cpp_err"; then
2401 # Broken: success on invalid input.
2402continue
8bb2c122 2403else
bec39cab
AC
2404 echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2406
bec39cab
AC
2407 # Passes both tests.
2408ac_preproc_ok=:
2409break
8bb2c122 2410fi
bec39cab 2411rm -f conftest.err conftest.$ac_ext
8bb2c122 2412
bec39cab
AC
2413done
2414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415rm -f conftest.err conftest.$ac_ext
2416if $ac_preproc_ok; then
2417 break
2418fi
8bb2c122 2419
bec39cab
AC
2420 done
2421 ac_cv_prog_CPP=$CPP
ddc9cd0f 2422
c906108c 2423fi
bec39cab
AC
2424 CPP=$ac_cv_prog_CPP
2425else
2426 ac_cv_prog_CPP=$CPP
c906108c 2427fi
bec39cab
AC
2428echo "$as_me:$LINENO: result: $CPP" >&5
2429echo "${ECHO_T}$CPP" >&6
2430ac_preproc_ok=false
2431for ac_c_preproc_warn_flag in '' yes
2432do
2433 # Use a header file that comes with gcc, so configuring glibc
2434 # with a fresh cross-compiler works.
2435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436 # <limits.h> exists even on freestanding compilers.
2437 # On the NeXT, cc -E runs the code through the compiler's parser,
2438 # not just through cpp. "Syntax error" is here to catch this case.
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445#ifdef __STDC__
2446# include <limits.h>
2447#else
2448# include <assert.h>
2449#endif
2450 Syntax error
2451_ACEOF
2452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463 else
2464 ac_cpp_err=
2465 fi
c906108c 2466else
bec39cab 2467 ac_cpp_err=yes
c906108c 2468fi
bec39cab
AC
2469if test -z "$ac_cpp_err"; then
2470 :
c906108c 2471else
bec39cab
AC
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 # Broken: fails on valid input.
2476continue
2477fi
2478rm -f conftest.err conftest.$ac_ext
2479
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488#include <ac_nonexistent.h>
2489_ACEOF
2490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev/null; then
2498 if test -s conftest.err; then
2499 ac_cpp_err=$ac_c_preproc_warn_flag
2500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501 else
2502 ac_cpp_err=
2503 fi
c906108c 2504else
bec39cab 2505 ac_cpp_err=yes
c906108c 2506fi
bec39cab
AC
2507if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2509continue
c906108c 2510else
bec39cab
AC
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2513
bec39cab
AC
2514 # Passes both tests.
2515ac_preproc_ok=:
2516break
c906108c 2517fi
bec39cab 2518rm -f conftest.err conftest.$ac_ext
c906108c 2519
bec39cab
AC
2520done
2521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522rm -f conftest.err conftest.$ac_ext
2523if $ac_preproc_ok; then
c906108c
SS
2524 :
2525else
bec39cab
AC
2526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
c906108c 2531fi
c906108c 2532
bec39cab
AC
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540echo "$as_me:$LINENO: checking for egrep" >&5
2541echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542if test "${ac_cv_prog_egrep+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2546 then ac_cv_prog_egrep='grep -E'
2547 else ac_cv_prog_egrep='egrep'
2548 fi
c906108c 2549fi
bec39cab
AC
2550echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552 EGREP=$ac_cv_prog_egrep
c906108c 2553
bec39cab
AC
2554
2555
2556echo "$as_me:$LINENO: checking for AIX" >&5
2557echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2558cat >conftest.$ac_ext <<_ACEOF
2559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
2564#ifdef _AIX
2565 yes
2566#endif
2567
2568_ACEOF
c906108c 2569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2570 $EGREP "yes" >/dev/null 2>&1; then
2571 echo "$as_me:$LINENO: result: yes" >&5
2572echo "${ECHO_T}yes" >&6
2573cat >>confdefs.h <<\_ACEOF
2574#define _ALL_SOURCE 1
2575_ACEOF
2576
c906108c 2577else
bec39cab
AC
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
c906108c
SS
2580fi
2581rm -f conftest*
2582
c906108c 2583
bec39cab
AC
2584echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2586if test "${ac_cv_search_strerror+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2588else
bec39cab
AC
2589 ac_func_search_save_LIBS=$LIBS
2590ac_cv_search_strerror=no
2591cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
c906108c 2597
bec39cab
AC
2598/* Override any gcc2 internal prototype to avoid an error. */
2599#ifdef __cplusplus
2600extern "C"
2601#endif
2602/* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604char strerror ();
2605int
2606main ()
2607{
2608strerror ();
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext conftest$ac_exeext
2614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest$ac_exeext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_search_strerror="none required"
2636else
2637 echo "$as_me: failed program was:" >&5
2638sed 's/^/| /' conftest.$ac_ext >&5
2639
2640fi
2641rm -f conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2643if test "$ac_cv_search_strerror" = no; then
2644 for ac_lib in cposix; do
2645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2646 cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h. */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h. */
2652
2653/* Override any gcc2 internal prototype to avoid an error. */
2654#ifdef __cplusplus
2655extern "C"
2656#endif
2657/* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659char strerror ();
2660int
2661main ()
2662{
2663strerror ();
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_strerror="-l$ac_lib"
2691break
c906108c 2692else
bec39cab
AC
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2695
2696fi
bec39cab
AC
2697rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 done
c906108c 2700fi
bec39cab 2701LIBS=$ac_func_search_save_LIBS
c906108c 2702fi
bec39cab
AC
2703echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2707
c906108c
SS
2708fi
2709
c906108c 2710
c906108c 2711
bec39cab
AC
2712
2713echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2715if test "${am_cv_prog_cc_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2717else
bec39cab
AC
2718 am_cv_prog_cc_stdc=no
2719ac_save_CC="$CC"
2720# Don't try gcc -ansi; that turns off useful extensions and
2721# breaks some systems' header files.
2722# AIX -qlanglvl=ansi
2723# Ultrix and OSF/1 -std1
2724# HP-UX 10.20 and later -Ae
2725# HP-UX older versions -Aa -D_HPUX_SOURCE
2726# SVR4 -Xc -D__EXTENSIONS__
2727for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728do
2729 CC="$ac_save_CC $ac_arg"
2730 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
2736#include <stdarg.h>
2737#include <stdio.h>
2738#include <sys/types.h>
2739#include <sys/stat.h>
2740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741struct buf { int x; };
2742FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743static char *e (p, i)
2744 char **p;
2745 int i;
2746{
2747 return p[i];
2748}
2749static char *f (char * (*g) (char **, int), char **p, ...)
2750{
2751 char *s;
2752 va_list v;
2753 va_start (v,p);
2754 s = g (p, va_arg (v,int));
2755 va_end (v);
2756 return s;
2757}
2758int test (int i, double x);
2759struct s1 {int (*f) (int a);};
2760struct s2 {int (*f) (double a);};
2761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762int argc;
2763char **argv;
c906108c 2764
bec39cab
AC
2765int
2766main ()
2767{
c906108c 2768
bec39cab 2769return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2770
bec39cab
AC
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext
2776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2798else
bec39cab
AC
2799 echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2801
2802fi
bec39cab
AC
2803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804done
2805CC="$ac_save_CC"
c906108c
SS
2806
2807fi
2808
bec39cab
AC
2809if test -z "$am_cv_prog_cc_stdc"; then
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811echo "${ECHO_T}none needed" >&6
c906108c 2812else
bec39cab
AC
2813 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2815fi
bec39cab
AC
2816case "x$am_cv_prog_cc_stdc" in
2817 x|xno) ;;
2818 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2819esac
c906108c 2820
c906108c 2821
bec39cab
AC
2822ac_aux_dir=
2823for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2824 if test -f $ac_dir/install-sh; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/install-sh -c"
2827 break
2828 elif test -f $ac_dir/install.sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install.sh -c"
2831 break
2832 elif test -f $ac_dir/shtool; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/shtool install -c"
2835 break
2836 fi
2837done
2838if test -z "$ac_aux_dir"; then
2839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841 { (exit 1); exit 1; }; }
c906108c 2842fi
bec39cab
AC
2843ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2844ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2845ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2846
bec39cab
AC
2847# Make sure we can run config.sub.
2848$ac_config_sub sun4 >/dev/null 2>&1 ||
2849 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851 { (exit 1); exit 1; }; }
2852
2853echo "$as_me:$LINENO: checking build system type" >&5
2854echo $ECHO_N "checking build system type... $ECHO_C" >&6
2855if test "${ac_cv_build+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 ac_cv_build_alias=$build_alias
2859test -z "$ac_cv_build_alias" &&
2860 ac_cv_build_alias=`$ac_config_guess`
2861test -z "$ac_cv_build_alias" &&
2862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864 { (exit 1); exit 1; }; }
2865ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2866 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2868 { (exit 1); exit 1; }; }
2869
2870fi
2871echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872echo "${ECHO_T}$ac_cv_build" >&6
2873build=$ac_cv_build
2874build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2877
2878
2879echo "$as_me:$LINENO: checking host system type" >&5
2880echo $ECHO_N "checking host system type... $ECHO_C" >&6
2881if test "${ac_cv_host+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884 ac_cv_host_alias=$host_alias
2885test -z "$ac_cv_host_alias" &&
2886 ac_cv_host_alias=$ac_cv_build_alias
2887ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2890 { (exit 1); exit 1; }; }
2891
2892fi
2893echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894echo "${ECHO_T}$ac_cv_host" >&6
2895host=$ac_cv_host
2896host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2899
2900
2901echo "$as_me:$LINENO: checking target system type" >&5
2902echo $ECHO_N "checking target system type... $ECHO_C" >&6
2903if test "${ac_cv_target+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905else
2906 ac_cv_target_alias=$target_alias
2907test "x$ac_cv_target_alias" = "x" &&
2908 ac_cv_target_alias=$ac_cv_host_alias
2909ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2912 { (exit 1); exit 1; }; }
2913
2914fi
2915echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916echo "${ECHO_T}$ac_cv_target" >&6
2917target=$ac_cv_target
2918target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2921
c906108c 2922
bec39cab
AC
2923# The aliases save the names the user supplied, while $host etc.
2924# will get canonicalized.
2925test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2927 NONENONEs,x,x, &&
2928 program_prefix=${target_alias}-
c906108c 2929
c906108c 2930
bec39cab
AC
2931CONFIG_OBS=
2932CONFIG_DEPS=
2933CONFIG_SRCS=
2934ENABLE_CFLAGS=
c906108c 2935
bec39cab
AC
2936CONFIG_ALL=
2937CONFIG_CLEAN=
2938CONFIG_INSTALL=
2939CONFIG_UNINSTALL=
2940
2941
2942echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2944set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2945if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947else
2948 cat >conftest.make <<\_ACEOF
2949all:
2950 @echo 'ac_maketemp="$(MAKE)"'
2951_ACEOF
2952# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2953eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2954if test -n "$ac_maketemp"; then
2955 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 2956else
bec39cab 2957 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 2958fi
bec39cab
AC
2959rm -f conftest.make
2960fi
2961if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6
2964 SET_MAKE=
2965else
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
2968 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
2969fi
2970
bec39cab
AC
2971if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2973set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 if test -n "$RANLIB"; then
2980 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}ranlib"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993done
2994done
c906108c 2995
bec39cab
AC
2996fi
2997fi
2998RANLIB=$ac_cv_prog_RANLIB
2999if test -n "$RANLIB"; then
3000 echo "$as_me:$LINENO: result: $RANLIB" >&5
3001echo "${ECHO_T}$RANLIB" >&6
c906108c 3002else
bec39cab
AC
3003 echo "$as_me:$LINENO: result: no" >&5
3004echo "${ECHO_T}no" >&6
c906108c
SS
3005fi
3006
bec39cab
AC
3007fi
3008if test -z "$ac_cv_prog_RANLIB"; then
3009 ac_ct_RANLIB=$RANLIB
3010 # Extract the first word of "ranlib", so it can be a program name with args.
3011set dummy ranlib; ac_word=$2
3012echo "$as_me:$LINENO: checking for $ac_word" >&5
3013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017 if test -n "$ac_ct_RANLIB"; then
3018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_ac_ct_RANLIB="ranlib"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031done
c906108c 3032done
bec39cab
AC
3033
3034 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3035fi
3036fi
3037ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3038if test -n "$ac_ct_RANLIB"; then
3039 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3040echo "${ECHO_T}$ac_ct_RANLIB" >&6
3041else
3042 echo "$as_me:$LINENO: result: no" >&5
3043echo "${ECHO_T}no" >&6
c906108c
SS
3044fi
3045
bec39cab 3046 RANLIB=$ac_ct_RANLIB
c906108c 3047else
bec39cab
AC
3048 RANLIB="$ac_cv_prog_RANLIB"
3049fi
3050
3051echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3053if test "${ac_cv_header_stdc+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3055else
bec39cab
AC
3056 cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
3062#include <stdlib.h>
3063#include <stdarg.h>
3064#include <string.h>
3065#include <float.h>
3066
3067int
c906108c
SS
3068main ()
3069{
bec39cab
AC
3070
3071 ;
3072 return 0;
c906108c 3073}
bec39cab
AC
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_header_stdc=yes
c906108c 3098else
bec39cab
AC
3099 echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3101
bec39cab 3102ac_cv_header_stdc=no
c906108c 3103fi
bec39cab 3104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3105
bec39cab
AC
3106if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h. */
3114#include <string.h>
c906108c 3115
bec39cab
AC
3116_ACEOF
3117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 $EGREP "memchr" >/dev/null 2>&1; then
3119 :
c906108c 3120else
bec39cab 3121 ac_cv_header_stdc=no
c906108c 3122fi
bec39cab 3123rm -f conftest*
c906108c 3124
bec39cab 3125fi
c906108c 3126
bec39cab
AC
3127if test $ac_cv_header_stdc = yes; then
3128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129 cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
3135#include <stdlib.h>
c906108c 3136
bec39cab
AC
3137_ACEOF
3138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "free" >/dev/null 2>&1; then
3140 :
c906108c 3141else
bec39cab 3142 ac_cv_header_stdc=no
c906108c
SS
3143fi
3144rm -f conftest*
c906108c 3145
c906108c 3146fi
c906108c 3147
bec39cab
AC
3148if test $ac_cv_header_stdc = yes; then
3149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3150 if test "$cross_compiling" = yes; then
bec39cab 3151 :
c906108c 3152else
bec39cab
AC
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
3159#include <ctype.h>
3160#if ((' ' & 0x0FF) == 0x020)
3161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3163#else
3164# define ISLOWER(c) \
3165 (('a' <= (c) && (c) <= 'i') \
3166 || ('j' <= (c) && (c) <= 'r') \
3167 || ('s' <= (c) && (c) <= 'z'))
3168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3169#endif
c906108c 3170
bec39cab
AC
3171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3172int
3173main ()
3174{
3175 int i;
3176 for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i))
3178 || toupper (i) != TOUPPER (i))
3179 exit(2);
3180 exit (0);
3181}
3182_ACEOF
3183rm -f conftest$ac_exeext
3184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 :
3195else
3196 echo "$as_me: program exited with status $ac_status" >&5
3197echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3199
bec39cab
AC
3200( exit $ac_status )
3201ac_cv_header_stdc=no
3202fi
3203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3204fi
3205fi
3206fi
3207echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209if test $ac_cv_header_stdc = yes; then
c906108c 3210
bec39cab
AC
3211cat >>confdefs.h <<\_ACEOF
3212#define STDC_HEADERS 1
3213_ACEOF
c906108c 3214
bec39cab 3215fi
c906108c 3216
bec39cab
AC
3217echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222 cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
c906108c 3228
bec39cab
AC
3229int
3230main ()
3231{
3232/* FIXME: Include the comments suggested by Paul. */
3233#ifndef __cplusplus
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3236 const charset x;
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3239 char **p;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3246 expression */
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3250 ++ccp;
3251 p = (char**) ccp;
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3254 char *t;
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3256
3257 *t++ = 0;
3258 }
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3260 int x[] = {25, 17};
3261 const int *foo = &x[0];
3262 ++foo;
3263 }
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3266 iptr p = 0;
3267 ++p;
3268 }
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3273 }
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275 const int foo = 10;
3276 }
3277#endif
c906108c 3278
bec39cab
AC
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext
3284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_c_const=yes
c906108c 3306else
bec39cab
AC
3307 echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3309
bec39cab
AC
3310ac_cv_c_const=no
3311fi
3312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3313fi
bec39cab
AC
3314echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315echo "${ECHO_T}$ac_cv_c_const" >&6
3316if test $ac_cv_c_const = no; then
c906108c 3317
bec39cab
AC
3318cat >>confdefs.h <<\_ACEOF
3319#define const
3320_ACEOF
c906108c
SS
3321
3322fi
3323
bec39cab
AC
3324echo "$as_me:$LINENO: checking for inline" >&5
3325echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3328else
bec39cab
AC
3329 ac_cv_c_inline=no
3330for ac_kw in inline __inline__ __inline; do
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#ifndef __cplusplus
3338typedef int foo_t;
3339static $ac_kw foo_t static_foo () {return 0; }
3340$ac_kw foo_t foo () {return 0; }
c906108c
SS
3341#endif
3342
bec39cab
AC
3343_ACEOF
3344rm -f conftest.$ac_objext
3345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 ac_cv_c_inline=$ac_kw; break
c906108c 3367else
bec39cab
AC
3368 echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3370
c906108c 3371fi
bec39cab 3372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3373done
3374
bec39cab
AC
3375fi
3376echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3378
c906108c 3379
bec39cab
AC
3380case $ac_cv_c_inline in
3381 inline | yes) ;;
3382 *)
3383 case $ac_cv_c_inline in
3384 no) ac_val=;;
3385 *) ac_val=$ac_cv_c_inline;;
3386 esac
3387 cat >>confdefs.h <<_ACEOF
3388#ifndef __cplusplus
3389#define inline $ac_val
c906108c 3390#endif
bec39cab
AC
3391_ACEOF
3392 ;;
3393esac
c906108c 3394
bec39cab 3395# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3396
c906108c 3397
c906108c 3398
c906108c 3399
c906108c 3400
c906108c 3401
c906108c 3402
c906108c 3403
c906108c 3404
bec39cab
AC
3405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3407do
3408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409echo "$as_me:$LINENO: checking for $ac_header" >&5
3410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420$ac_includes_default
3421
3422#include <$ac_header>
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3447else
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451eval "$as_ac_Header=no"
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454fi
3455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460_ACEOF
c906108c 3461
c906108c
SS
3462fi
3463
bec39cab 3464done
c906108c 3465
c906108c 3466
bec39cab
AC
3467echo "$as_me:$LINENO: checking for off_t" >&5
3468echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3469if test "${ac_cv_type_off_t+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3471else
bec39cab
AC
3472 cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h. */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h. */
3478$ac_includes_default
3479int
3480main ()
3481{
3482if ((off_t *) 0)
3483 return 0;
3484if (sizeof (off_t))
3485 return 0;
3486 ;
3487 return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_type_off_t=yes
3513else
3514 echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517ac_cv_type_off_t=no
c906108c 3518fi
bec39cab 3519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3520fi
bec39cab
AC
3521echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3522echo "${ECHO_T}$ac_cv_type_off_t" >&6
3523if test $ac_cv_type_off_t = yes; then
3524 :
c906108c 3525else
bec39cab
AC
3526
3527cat >>confdefs.h <<_ACEOF
3528#define off_t long
3529_ACEOF
3530
3531fi
3532
3533echo "$as_me:$LINENO: checking for size_t" >&5
3534echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3535if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
3538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
3544$ac_includes_default
3545int
3546main ()
3547{
3548if ((size_t *) 0)
3549 return 0;
3550if (sizeof (size_t))
3551 return 0;
3552 ;
3553 return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_type_size_t=yes
c906108c 3579else
bec39cab
AC
3580 echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583ac_cv_type_size_t=no
c906108c 3584fi
bec39cab 3585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3586fi
bec39cab
AC
3587echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3588echo "${ECHO_T}$ac_cv_type_size_t" >&6
3589if test $ac_cv_type_size_t = yes; then
3590 :
3591else
c906108c 3592
bec39cab
AC
3593cat >>confdefs.h <<_ACEOF
3594#define size_t unsigned
3595_ACEOF
c906108c 3596
c906108c 3597fi
bec39cab
AC
3598
3599# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3600# for constant arguments. Useless!
3601echo "$as_me:$LINENO: checking for working alloca.h" >&5
3602echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3603if test "${ac_cv_working_alloca_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612#include <alloca.h>
3613int
3614main ()
3615{
3616char *p = (char *) alloca (2 * sizeof (int));
3617 ;
3618 return 0;
3619}
3620_ACEOF
3621rm -f conftest.$ac_objext conftest$ac_exeext
3622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h=yes
3644else
3645 echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
3648ac_cv_working_alloca_h=no
3649fi
3650rm -f conftest.err conftest.$ac_objext \
3651 conftest$ac_exeext conftest.$ac_ext
3652fi
3653echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3654echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3655if test $ac_cv_working_alloca_h = yes; then
3656
3657cat >>confdefs.h <<\_ACEOF
3658#define HAVE_ALLOCA_H 1
3659_ACEOF
c906108c
SS
3660
3661fi
bec39cab
AC
3662
3663echo "$as_me:$LINENO: checking for alloca" >&5
3664echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3665if test "${ac_cv_func_alloca_works+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3667else
bec39cab
AC
3668 cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h. */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h. */
3674#ifdef __GNUC__
3675# define alloca __builtin_alloca
3676#else
3677# ifdef _MSC_VER
3678# include <malloc.h>
3679# define alloca _alloca
3680# else
3681# if HAVE_ALLOCA_H
3682# include <alloca.h>
3683# else
3684# ifdef _AIX
3685 #pragma alloca
3686# else
3687# ifndef alloca /* predefined by HP cc +Olibcalls */
3688char *alloca ();
3689# endif
3690# endif
3691# endif
3692# endif
3693#endif
c906108c 3694
bec39cab
AC
3695int
3696main ()
3697{
3698char *p = (char *) alloca (1);
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext conftest$ac_exeext
3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_func_alloca_works=yes
c906108c 3726else
bec39cab
AC
3727 echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730ac_cv_func_alloca_works=no
c906108c 3731fi
bec39cab
AC
3732rm -f conftest.err conftest.$ac_objext \
3733 conftest$ac_exeext conftest.$ac_ext
c906108c 3734fi
bec39cab
AC
3735echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3736echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3737
3738if test $ac_cv_func_alloca_works = yes; then
3739
3740cat >>confdefs.h <<\_ACEOF
3741#define HAVE_ALLOCA 1
3742_ACEOF
c906108c 3743
c906108c 3744else
bec39cab
AC
3745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3746# that cause trouble. Some versions do not even contain alloca or
3747# contain a buggy version. If you still want to use their alloca,
3748# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3749
bec39cab 3750ALLOCA=alloca.$ac_objext
c906108c 3751
bec39cab
AC
3752cat >>confdefs.h <<\_ACEOF
3753#define C_ALLOCA 1
3754_ACEOF
c906108c 3755
bec39cab
AC
3756
3757echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3758echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3759if test "${ac_cv_os_cray+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3761else
bec39cab
AC
3762 cat >conftest.$ac_ext <<_ACEOF
3763/* confdefs.h. */
3764_ACEOF
3765cat confdefs.h >>conftest.$ac_ext
3766cat >>conftest.$ac_ext <<_ACEOF
3767/* end confdefs.h. */
3768#if defined(CRAY) && ! defined(CRAY2)
3769webecray
3770#else
3771wenotbecray
3772#endif
3773
3774_ACEOF
3775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "webecray" >/dev/null 2>&1; then
3777 ac_cv_os_cray=yes
c906108c 3778else
bec39cab 3779 ac_cv_os_cray=no
c906108c 3780fi
bec39cab
AC
3781rm -f conftest*
3782
3783fi
3784echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3785echo "${ECHO_T}$ac_cv_os_cray" >&6
3786if test $ac_cv_os_cray = yes; then
3787 for ac_func in _getb67 GETB67 getb67; do
3788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3789echo "$as_me:$LINENO: checking for $ac_func" >&5
3790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3791if eval "test \"\${$as_ac_var+set}\" = set"; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
3800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3802#define $ac_func innocuous_$ac_func
3803
c906108c 3804/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3805 which can conflict with char $ac_func (); below.
3806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 <limits.h> exists even on freestanding compilers. */
3808
3809#ifdef __STDC__
3810# include <limits.h>
3811#else
3812# include <assert.h>
3813#endif
c906108c 3814
bec39cab 3815#undef $ac_func
c906108c 3816
bec39cab
AC
3817/* Override any gcc2 internal prototype to avoid an error. */
3818#ifdef __cplusplus
3819extern "C"
3820{
3821#endif
3822/* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3824char $ac_func ();
c906108c
SS
3825/* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829choke me
3830#else
bec39cab
AC
3831char (*f) () = $ac_func;
3832#endif
3833#ifdef __cplusplus
3834}
c906108c
SS
3835#endif
3836
bec39cab
AC
3837int
3838main ()
3839{
3840return f != $ac_func;
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext conftest$ac_exeext
3846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 eval "$as_ac_var=yes"
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872eval "$as_ac_var=no"
3873fi
3874rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3876fi
3877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3879if test `eval echo '${'$as_ac_var'}'` = yes; then
3880
3881cat >>confdefs.h <<_ACEOF
3882#define CRAY_STACKSEG_END $ac_func
3883_ACEOF
c906108c 3884
bec39cab 3885 break
c906108c 3886fi
c906108c 3887
c906108c 3888 done
c906108c 3889fi
bec39cab
AC
3890
3891echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3892echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3893if test "${ac_cv_c_stack_direction+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3895else
bec39cab
AC
3896 if test "$cross_compiling" = yes; then
3897 ac_cv_c_stack_direction=0
3898else
3899 cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h. */
3905int
3906find_stack_direction ()
3907{
3908 static char *addr = 0;
3909 auto char dummy;
3910 if (addr == 0)
3911 {
3912 addr = &dummy;
3913 return find_stack_direction ();
3914 }
3915 else
3916 return (&dummy > addr) ? 1 : -1;
3917}
c906108c 3918
bec39cab
AC
3919int
3920main ()
3921{
3922 exit (find_stack_direction () < 0);
3923}
3924_ACEOF
3925rm -f conftest$ac_exeext
3926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_c_stack_direction=1
c906108c 3937else
bec39cab
AC
3938 echo "$as_me: program exited with status $ac_status" >&5
3939echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942( exit $ac_status )
3943ac_cv_c_stack_direction=-1
3944fi
3945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3946fi
c906108c 3947fi
bec39cab
AC
3948echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3949echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3950
3951cat >>confdefs.h <<_ACEOF
3952#define STACK_DIRECTION $ac_cv_c_stack_direction
3953_ACEOF
c906108c 3954
c906108c 3955
c906108c
SS
3956fi
3957
3958
c906108c 3959
bec39cab
AC
3960for ac_header in stdlib.h unistd.h
3961do
3962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
3965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968fi
3969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3971else
3972 # Is the header compilable?
3973echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3975cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h. */
3981$ac_includes_default
3982#include <$ac_header>
3983_ACEOF
3984rm -f conftest.$ac_objext
3985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_header_compiler=yes
4007else
4008 echo "$as_me: failed program was:" >&5
4009sed 's/^/| /' conftest.$ac_ext >&5
4010
4011ac_header_compiler=no
4012fi
4013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015echo "${ECHO_T}$ac_header_compiler" >&6
4016
4017# Is the header present?
4018echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4020cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h. */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h. */
4026#include <$ac_header>
4027_ACEOF
4028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null; then
4036 if test -s conftest.err; then
4037 ac_cpp_err=$ac_c_preproc_warn_flag
4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 else
4040 ac_cpp_err=
4041 fi
c906108c 4042else
bec39cab 4043 ac_cpp_err=yes
c906108c 4044fi
bec39cab
AC
4045if test -z "$ac_cpp_err"; then
4046 ac_header_preproc=yes
c906108c 4047else
bec39cab
AC
4048 echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 ac_header_preproc=no
c906108c 4052fi
bec39cab
AC
4053rm -f conftest.err conftest.$ac_ext
4054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4055echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4056
bec39cab
AC
4057# So? What about this header?
4058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4059 yes:no: )
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4061echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4063echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4064 ac_header_preproc=yes
4065 ;;
4066 no:yes:* )
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4068echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4070echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4072echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4074echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4076echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4078echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4079 (
4080 cat <<\_ASBOX
4081## ------------------------------------------ ##
4082## Report this to the AC_PACKAGE_NAME lists. ##
4083## ------------------------------------------ ##
4084_ASBOX
4085 ) |
4086 sed "s/^/$as_me: WARNING: /" >&2
4087 ;;
4088esac
4089echo "$as_me:$LINENO: checking for $ac_header" >&5
4090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4091if eval "test \"\${$as_ac_Header+set}\" = set"; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094 eval "$as_ac_Header=\$ac_header_preproc"
4095fi
4096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4098
4099fi
4100if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103_ACEOF
4104
4105fi
4106
4107done
4108
4109
4110for ac_func in getpagesize
4111do
4112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113echo "$as_me:$LINENO: checking for $ac_func" >&5
4114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115if eval "test \"\${$as_ac_var+set}\" = set"; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117else
4118 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h. */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h. */
4124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126#define $ac_func innocuous_$ac_func
4127
4128/* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char $ac_func (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4132
4133#ifdef __STDC__
4134# include <limits.h>
4135#else
4136# include <assert.h>
4137#endif
4138
4139#undef $ac_func
4140
4141/* Override any gcc2 internal prototype to avoid an error. */
4142#ifdef __cplusplus
4143extern "C"
4144{
4145#endif
4146/* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148char $ac_func ();
4149/* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4153choke me
4154#else
4155char (*f) () = $ac_func;
4156#endif
4157#ifdef __cplusplus
4158}
4159#endif
4160
4161int
4162main ()
4163{
4164return f != $ac_func;
4165 ;
4166 return 0;
4167}
4168_ACEOF
4169rm -f conftest.$ac_objext conftest$ac_exeext
4170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 eval "$as_ac_var=yes"
4192else
4193 echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196eval "$as_ac_var=no"
4197fi
4198rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4200fi
4201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4203if test `eval echo '${'$as_ac_var'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4206_ACEOF
4207
4208fi
4209done
4210
4211echo "$as_me:$LINENO: checking for working mmap" >&5
4212echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4213if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216 if test "$cross_compiling" = yes; then
4217 ac_cv_func_mmap_fixed_mapped=no
4218else
4219 cat >conftest.$ac_ext <<_ACEOF
4220/* confdefs.h. */
4221_ACEOF
4222cat confdefs.h >>conftest.$ac_ext
4223cat >>conftest.$ac_ext <<_ACEOF
4224/* end confdefs.h. */
4225$ac_includes_default
4226/* malloc might have been renamed as rpl_malloc. */
4227#undef malloc
4228
4229/* Thanks to Mike Haertel and Jim Avera for this test.
4230 Here is a matrix of mmap possibilities:
4231 mmap private not fixed
4232 mmap private fixed at somewhere currently unmapped
4233 mmap private fixed at somewhere already mapped
4234 mmap shared not fixed
4235 mmap shared fixed at somewhere currently unmapped
4236 mmap shared fixed at somewhere already mapped
4237 For private mappings, we should verify that changes cannot be read()
4238 back from the file, nor mmap's back from the file at a different
4239 address. (There have been systems where private was not correctly
4240 implemented like the infamous i386 svr4.0, and systems where the
4241 VM page cache was not coherent with the file system buffer cache
4242 like early versions of FreeBSD and possibly contemporary NetBSD.)
4243 For shared mappings, we should conversely verify that changes get
4244 propagated back to all the places they're supposed to be.
4245
4246 Grep wants private fixed already mapped.
4247 The main things grep needs to know about mmap are:
4248 * does it exist and is it safe to write into the mmap'd area
4249 * how to use it (BSD variants) */
4250
4251#include <fcntl.h>
4252#include <sys/mman.h>
4253
4254#if !STDC_HEADERS && !HAVE_STDLIB_H
4255char *malloc ();
4256#endif
4257
4258/* This mess was copied from the GNU getpagesize.h. */
4259#if !HAVE_GETPAGESIZE
4260/* Assume that all systems that can run configure have sys/param.h. */
4261# if !HAVE_SYS_PARAM_H
4262# define HAVE_SYS_PARAM_H 1
4263# endif
4264
4265# ifdef _SC_PAGESIZE
4266# define getpagesize() sysconf(_SC_PAGESIZE)
4267# else /* no _SC_PAGESIZE */
4268# if HAVE_SYS_PARAM_H
4269# include <sys/param.h>
4270# ifdef EXEC_PAGESIZE
4271# define getpagesize() EXEC_PAGESIZE
4272# else /* no EXEC_PAGESIZE */
4273# ifdef NBPG
4274# define getpagesize() NBPG * CLSIZE
4275# ifndef CLSIZE
4276# define CLSIZE 1
4277# endif /* no CLSIZE */
4278# else /* no NBPG */
4279# ifdef NBPC
4280# define getpagesize() NBPC
4281# else /* no NBPC */
4282# ifdef PAGESIZE
4283# define getpagesize() PAGESIZE
4284# endif /* PAGESIZE */
4285# endif /* no NBPC */
4286# endif /* no NBPG */
4287# endif /* no EXEC_PAGESIZE */
4288# else /* no HAVE_SYS_PARAM_H */
4289# define getpagesize() 8192 /* punt totally */
4290# endif /* no HAVE_SYS_PARAM_H */
4291# endif /* no _SC_PAGESIZE */
4292
4293#endif /* no HAVE_GETPAGESIZE */
4294
4295int
4296main ()
4297{
4298 char *data, *data2, *data3;
4299 int i, pagesize;
4300 int fd;
4301
4302 pagesize = getpagesize ();
4303
4304 /* First, make a file with some known garbage in it. */
4305 data = (char *) malloc (pagesize);
4306 if (!data)
4307 exit (1);
4308 for (i = 0; i < pagesize; ++i)
4309 *(data + i) = rand ();
4310 umask (0);
4311 fd = creat ("conftest.mmap", 0600);
4312 if (fd < 0)
4313 exit (1);
4314 if (write (fd, data, pagesize) != pagesize)
4315 exit (1);
4316 close (fd);
4317
4318 /* Next, try to mmap the file at a fixed address which already has
4319 something else allocated at it. If we can, also make sure that
4320 we see the same garbage. */
4321 fd = open ("conftest.mmap", O_RDWR);
4322 if (fd < 0)
4323 exit (1);
4324 data2 = (char *) malloc (2 * pagesize);
4325 if (!data2)
4326 exit (1);
4327 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4330 exit (1);
4331 for (i = 0; i < pagesize; ++i)
4332 if (*(data + i) != *(data2 + i))
4333 exit (1);
4334
4335 /* Finally, make sure that changes to the mapped area do not
4336 percolate back to the file as seen by read(). (This is a bug on
4337 some variants of i386 svr4.0.) */
4338 for (i = 0; i < pagesize; ++i)
4339 *(data2 + i) = *(data2 + i) + 1;
4340 data3 = (char *) malloc (pagesize);
4341 if (!data3)
4342 exit (1);
4343 if (read (fd, data3, pagesize) != pagesize)
4344 exit (1);
4345 for (i = 0; i < pagesize; ++i)
4346 if (*(data + i) != *(data3 + i))
4347 exit (1);
4348 close (fd);
4349 exit (0);
4350}
4351_ACEOF
4352rm -f conftest$ac_exeext
4353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_mmap_fixed_mapped=yes
4364else
4365 echo "$as_me: program exited with status $ac_status" >&5
4366echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369( exit $ac_status )
4370ac_cv_func_mmap_fixed_mapped=no
4371fi
4372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4373fi
4374fi
4375echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4376echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4377if test $ac_cv_func_mmap_fixed_mapped = yes; then
4378
4379cat >>confdefs.h <<\_ACEOF
4380#define HAVE_MMAP 1
4381_ACEOF
4382
4383fi
4384rm -f conftest.mmap
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4397unistd.h values.h sys/param.h
4398do
4399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405fi
4406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408else
4409 # Is the header compilable?
4410echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418$ac_includes_default
4419#include <$ac_header>
4420_ACEOF
4421rm -f conftest.$ac_objext
4422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_header_compiler=yes
4444else
4445 echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448ac_header_compiler=no
4449fi
4450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452echo "${ECHO_T}$ac_header_compiler" >&6
4453
4454# Is the header present?
4455echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h. */
4463#include <$ac_header>
4464_ACEOF
4465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null; then
4473 if test -s conftest.err; then
4474 ac_cpp_err=$ac_c_preproc_warn_flag
4475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476 else
4477 ac_cpp_err=
4478 fi
4479else
4480 ac_cpp_err=yes
4481fi
4482if test -z "$ac_cpp_err"; then
4483 ac_header_preproc=yes
4484else
4485 echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_header_preproc=no
4489fi
4490rm -f conftest.err conftest.$ac_ext
4491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492echo "${ECHO_T}$ac_header_preproc" >&6
4493
4494# So? What about this header?
4495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496 yes:no: )
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501 ac_header_preproc=yes
4502 ;;
4503 no:yes:* )
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516 (
4517 cat <<\_ASBOX
4518## ------------------------------------------ ##
4519## Report this to the AC_PACKAGE_NAME lists. ##
4520## ------------------------------------------ ##
4521_ASBOX
4522 ) |
4523 sed "s/^/$as_me: WARNING: /" >&2
4524 ;;
4525esac
4526echo "$as_me:$LINENO: checking for $ac_header" >&5
4527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 eval "$as_ac_Header=\$ac_header_preproc"
4532fi
4533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4535
4536fi
4537if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540_ACEOF
4541
4542fi
4543
4544done
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4557__argz_count __argz_stringify __argz_next
4558do
4559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560echo "$as_me:$LINENO: checking for $ac_func" >&5
4561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562if eval "test \"\${$as_ac_var+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565 cat >conftest.$ac_ext <<_ACEOF
4566/* confdefs.h. */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h. */
4571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573#define $ac_func innocuous_$ac_func
4574
4575/* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4579
4580#ifdef __STDC__
4581# include <limits.h>
4582#else
4583# include <assert.h>
4584#endif
4585
4586#undef $ac_func
4587
4588/* Override any gcc2 internal prototype to avoid an error. */
4589#ifdef __cplusplus
4590extern "C"
4591{
4592#endif
4593/* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4595char $ac_func ();
4596/* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600choke me
4601#else
4602char (*f) () = $ac_func;
4603#endif
4604#ifdef __cplusplus
4605}
4606#endif
4607
4608int
4609main ()
4610{
4611return f != $ac_func;
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext conftest$ac_exeext
4617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 eval "$as_ac_var=yes"
4639else
4640 echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
4643eval "$as_ac_var=no"
4644fi
4645rm -f conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext conftest.$ac_ext
4647fi
4648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650if test `eval echo '${'$as_ac_var'}'` = yes; then
4651 cat >>confdefs.h <<_ACEOF
4652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4653_ACEOF
4654
4655fi
4656done
4657
4658
4659 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4660
4661for ac_func in stpcpy
4662do
4663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4664echo "$as_me:$LINENO: checking for $ac_func" >&5
4665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666if eval "test \"\${$as_ac_var+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669 cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h. */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h. */
4675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4677#define $ac_func innocuous_$ac_func
4678
4679/* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func (); below.
4681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 <limits.h> exists even on freestanding compilers. */
4683
4684#ifdef __STDC__
4685# include <limits.h>
4686#else
4687# include <assert.h>
4688#endif
4689
4690#undef $ac_func
4691
4692/* Override any gcc2 internal prototype to avoid an error. */
4693#ifdef __cplusplus
4694extern "C"
4695{
4696#endif
4697/* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699char $ac_func ();
4700/* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
4703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4704choke me
4705#else
4706char (*f) () = $ac_func;
4707#endif
4708#ifdef __cplusplus
4709}
4710#endif
4711
4712int
4713main ()
4714{
4715return f != $ac_func;
4716 ;
4717 return 0;
4718}
4719_ACEOF
4720rm -f conftest.$ac_objext conftest$ac_exeext
4721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 eval "$as_ac_var=yes"
4743else
4744 echo "$as_me: failed program was:" >&5
4745sed 's/^/| /' conftest.$ac_ext >&5
4746
4747eval "$as_ac_var=no"
4748fi
4749rm -f conftest.err conftest.$ac_objext \
4750 conftest$ac_exeext conftest.$ac_ext
4751fi
4752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4754if test `eval echo '${'$as_ac_var'}'` = yes; then
4755 cat >>confdefs.h <<_ACEOF
4756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4757_ACEOF
4758
4759fi
4760done
4761
4762 fi
4763 if test "${ac_cv_func_stpcpy}" = "yes"; then
4764
4765cat >>confdefs.h <<\_ACEOF
4766#define HAVE_STPCPY 1
4767_ACEOF
4768
4769 fi
4770
4771 if test $ac_cv_header_locale_h = yes; then
4772 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4773echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4774if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777 cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h. */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h. */
4783#include <locale.h>
4784int
4785main ()
4786{
4787return LC_MESSAGES
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext conftest$ac_exeext
4793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 am_cv_val_LC_MESSAGES=yes
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819am_cv_val_LC_MESSAGES=no
4820fi
4821rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823fi
4824echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4825echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4826 if test $am_cv_val_LC_MESSAGES = yes; then
4827
4828cat >>confdefs.h <<\_ACEOF
4829#define HAVE_LC_MESSAGES 1
4830_ACEOF
4831
4832 fi
4833 fi
4834 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4835echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4836 # Check whether --enable-nls or --disable-nls was given.
4837if test "${enable_nls+set}" = set; then
4838 enableval="$enable_nls"
4839 USE_NLS=$enableval
4840else
4841 USE_NLS=yes
4842fi;
4843 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4844echo "${ECHO_T}$USE_NLS" >&6
4845
4846
4847 USE_INCLUDED_LIBINTL=no
4848
4849 if test "$USE_NLS" = "yes"; then
bec39cab
AC
4850 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4851echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4852
4853# Check whether --with-included-gettext or --without-included-gettext was given.
4854if test "${with_included_gettext+set}" = set; then
4855 withval="$with_included_gettext"
4856 nls_cv_force_use_gnu_gettext=$withval
4857else
4858 nls_cv_force_use_gnu_gettext=no
4859fi;
4860 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4861echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4862
4863 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4864 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4865 nls_cv_header_intl=
4866 nls_cv_header_libgt=
a53bf506 4867 CATOBJEXT=
bec39cab
AC
4868
4869 if test "${ac_cv_header_libintl_h+set}" = set; then
4870 echo "$as_me:$LINENO: checking for libintl.h" >&5
4871echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4872if test "${ac_cv_header_libintl_h+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874fi
4875echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4876echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4877else
4878 # Is the header compilable?
4879echo "$as_me:$LINENO: checking libintl.h usability" >&5
4880echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4881cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887$ac_includes_default
4888#include <libintl.h>
4889_ACEOF
4890rm -f conftest.$ac_objext
4891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_header_compiler=yes
4913else
4914 echo "$as_me: failed program was:" >&5
4915sed 's/^/| /' conftest.$ac_ext >&5
4916
4917ac_header_compiler=no
4918fi
4919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4921echo "${ECHO_T}$ac_header_compiler" >&6
4922
4923# Is the header present?
4924echo "$as_me:$LINENO: checking libintl.h presence" >&5
4925echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4926cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932#include <libintl.h>
4933_ACEOF
4934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null; then
4942 if test -s conftest.err; then
4943 ac_cpp_err=$ac_c_preproc_warn_flag
4944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4945 else
4946 ac_cpp_err=
4947 fi
4948else
4949 ac_cpp_err=yes
4950fi
4951if test -z "$ac_cpp_err"; then
4952 ac_header_preproc=yes
4953else
4954 echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 ac_header_preproc=no
4958fi
4959rm -f conftest.err conftest.$ac_ext
4960echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961echo "${ECHO_T}$ac_header_preproc" >&6
4962
4963# So? What about this header?
4964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4965 yes:no: )
4966 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4967echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4969echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4970 ac_header_preproc=yes
4971 ;;
4972 no:yes:* )
4973 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4974echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4975 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4976echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4978echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4980echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4982echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4984echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4985 (
4986 cat <<\_ASBOX
4987## ------------------------------------------ ##
4988## Report this to the AC_PACKAGE_NAME lists. ##
4989## ------------------------------------------ ##
4990_ASBOX
4991 ) |
4992 sed "s/^/$as_me: WARNING: /" >&2
4993 ;;
4994esac
4995echo "$as_me:$LINENO: checking for libintl.h" >&5
4996echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4997if test "${ac_cv_header_libintl_h+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000 ac_cv_header_libintl_h=$ac_header_preproc
5001fi
5002echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5003echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5004
5005fi
5006if test $ac_cv_header_libintl_h = yes; then
5007 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5008echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5009if test "${gt_cv_func_gettext_libc+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
5018#include <libintl.h>
5019int
5020main ()
5021{
5022return (int) gettext ("")
5023 ;
5024 return 0;
5025}
5026_ACEOF
5027rm -f conftest.$ac_objext conftest$ac_exeext
5028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 gt_cv_func_gettext_libc=yes
5050else
5051 echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054gt_cv_func_gettext_libc=no
5055fi
5056rm -f conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058fi
5059echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5060echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5061
5062 if test "$gt_cv_func_gettext_libc" != "yes"; then
5063 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5064echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5065if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068 ac_check_lib_save_LIBS=$LIBS
5069LIBS="-lintl $LIBS"
5070cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076
5077/* Override any gcc2 internal prototype to avoid an error. */
5078#ifdef __cplusplus
5079extern "C"
5080#endif
5081/* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5083char bindtextdomain ();
5084int
5085main ()
5086{
5087bindtextdomain ();
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092rm -f conftest.$ac_objext conftest$ac_exeext
5093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag"
5102 || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_lib_intl_bindtextdomain=yes
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119ac_cv_lib_intl_bindtextdomain=no
5120fi
5121rm -f conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5123LIBS=$ac_check_lib_save_LIBS
5124fi
5125echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5126echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5127if test $ac_cv_lib_intl_bindtextdomain = yes; then
5128 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5129echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5130if test "${gt_cv_func_gettext_libintl+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133 cat >conftest.$ac_ext <<_ACEOF
5134/* confdefs.h. */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h. */
5139
5140int
5141main ()
5142{
5143return (int) gettext ("")
5144 ;
5145 return 0;
5146}
5147_ACEOF
5148rm -f conftest.$ac_objext conftest$ac_exeext
5149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 gt_cv_func_gettext_libintl=yes
5171else
5172 echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
5175gt_cv_func_gettext_libintl=no
5176fi
5177rm -f conftest.err conftest.$ac_objext \
5178 conftest$ac_exeext conftest.$ac_ext
5179fi
5180echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5181echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5182fi
5183
5184 fi
5185
5186 if test "$gt_cv_func_gettext_libc" = "yes" \
5187 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5188
5189cat >>confdefs.h <<\_ACEOF
5190#define HAVE_GETTEXT 1
5191_ACEOF
5192
5193 # Extract the first word of "msgfmt", so it can be a program name with args.
5194set dummy msgfmt; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_path_MSGFMT+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200 case "$MSGFMT" in
5201 /*)
5202 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5203 ;;
5204 *)
5205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5206 for ac_dir in $PATH; do
5207 test -z "$ac_dir" && ac_dir=.
5208 if test -f $ac_dir/$ac_word; then
5209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5210 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5211 break
5212 fi
5213 fi
5214 done
5215 IFS="$ac_save_ifs"
5216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5217 ;;
5218esac
5219fi
5220MSGFMT="$ac_cv_path_MSGFMT"
5221if test -n "$MSGFMT"; then
5222 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5223echo "${ECHO_T}$MSGFMT" >&6
5224else
5225 echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
5227fi
5228 if test "$MSGFMT" != "no"; then
5229
5230for ac_func in dcgettext
5231do
5232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233echo "$as_me:$LINENO: checking for $ac_func" >&5
5234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5235if eval "test \"\${$as_ac_var+set}\" = set"; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
5244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5246#define $ac_func innocuous_$ac_func
5247
5248/* System header to define __stub macros and hopefully few prototypes,
5249 which can conflict with char $ac_func (); below.
5250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5251 <limits.h> exists even on freestanding compilers. */
5252
5253#ifdef __STDC__
5254# include <limits.h>
5255#else
5256# include <assert.h>
5257#endif
5258
5259#undef $ac_func
5260
5261/* Override any gcc2 internal prototype to avoid an error. */
5262#ifdef __cplusplus
5263extern "C"
5264{
5265#endif
5266/* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5268char $ac_func ();
5269/* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273choke me
5274#else
5275char (*f) () = $ac_func;
5276#endif
5277#ifdef __cplusplus
5278}
5279#endif
5280
5281int
5282main ()
5283{
5284return f != $ac_func;
5285 ;
5286 return 0;
5287}
5288_ACEOF
5289rm -f conftest.$ac_objext conftest$ac_exeext
5290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 eval "$as_ac_var=yes"
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316eval "$as_ac_var=no"
5317fi
5318rm -f conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5320fi
5321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5323if test `eval echo '${'$as_ac_var'}'` = yes; then
5324 cat >>confdefs.h <<_ACEOF
5325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5326_ACEOF
5327
5328fi
5329done
5330
5331 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5332set dummy gmsgfmt; ac_word=$2
5333echo "$as_me:$LINENO: checking for $ac_word" >&5
5334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335if test "${ac_cv_path_GMSGFMT+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338 case $GMSGFMT in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5341 ;;
5342 *)
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354done
5355done
5356
5357 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5358 ;;
5359esac
5360fi
5361GMSGFMT=$ac_cv_path_GMSGFMT
5362
5363if test -n "$GMSGFMT"; then
5364 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5365echo "${ECHO_T}$GMSGFMT" >&6
5366else
5367 echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
5369fi
5370
5371 # Extract the first word of "xgettext", so it can be a program name with args.
5372set dummy xgettext; ac_word=$2
5373echo "$as_me:$LINENO: checking for $ac_word" >&5
5374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375if test "${ac_cv_path_XGETTEXT+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378 case "$XGETTEXT" in
5379 /*)
5380 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5381 ;;
5382 *)
5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5384 for ac_dir in $PATH; do
5385 test -z "$ac_dir" && ac_dir=.
5386 if test -f $ac_dir/$ac_word; then
5387 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5388 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5389 break
5390 fi
5391 fi
5392 done
5393 IFS="$ac_save_ifs"
5394 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5395 ;;
5396esac
5397fi
5398XGETTEXT="$ac_cv_path_XGETTEXT"
5399if test -n "$XGETTEXT"; then
5400 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5401echo "${ECHO_T}$XGETTEXT" >&6
5402else
5403 echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6
5405fi
5406
5407 cat >conftest.$ac_ext <<_ACEOF
5408/* confdefs.h. */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413
5414int
5415main ()
5416{
5417extern int _nl_msg_cat_cntr;
5418 return _nl_msg_cat_cntr
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423rm -f conftest.$ac_objext conftest$ac_exeext
5424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 CATOBJEXT=.gmo
5446 DATADIRNAME=share
5447else
5448 echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
5451CATOBJEXT=.mo
5452 DATADIRNAME=lib
5453fi
5454rm -f conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
5456 INSTOBJEXT=.mo
5457 fi
5458 fi
5459
5460fi
5461
5462
5463
5464
a53bf506 5465 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
5466 # Neither gettext nor catgets in included in the C library.
5467 # Fall back on GNU gettext library (assuming it is present).
5468 nls_cv_use_gnu_gettext=yes
bec39cab
AC
5469 fi
5470 fi
5471
5472 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5473 INTLOBJS="\$(GETTOBJS)"
5474 # Extract the first word of "msgfmt", so it can be a program name with args.
5475set dummy msgfmt; ac_word=$2
5476echo "$as_me:$LINENO: checking for $ac_word" >&5
5477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478if test "${ac_cv_path_MSGFMT+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481 case "$MSGFMT" in
5482 /*)
5483 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5484 ;;
5485 *)
5486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5487 for ac_dir in $PATH; do
5488 test -z "$ac_dir" && ac_dir=.
5489 if test -f $ac_dir/$ac_word; then
5490 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5491 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5492 break
5493 fi
5494 fi
5495 done
5496 IFS="$ac_save_ifs"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5498 ;;
5499esac
5500fi
5501MSGFMT="$ac_cv_path_MSGFMT"
5502if test -n "$MSGFMT"; then
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504echo "${ECHO_T}$MSGFMT" >&6
5505else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508fi
5509
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5511set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514if test "${ac_cv_path_GMSGFMT+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 case $GMSGFMT in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5537 ;;
5538esac
5539fi
5540GMSGFMT=$ac_cv_path_GMSGFMT
5541
5542if test -n "$GMSGFMT"; then
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544echo "${ECHO_T}$GMSGFMT" >&6
5545else
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548fi
5549
5550 # Extract the first word of "xgettext", so it can be a program name with args.
5551set dummy xgettext; ac_word=$2
5552echo "$as_me:$LINENO: checking for $ac_word" >&5
5553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554if test "${ac_cv_path_XGETTEXT+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557 case "$XGETTEXT" in
5558 /*)
5559 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5560 ;;
5561 *)
5562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5563 for ac_dir in $PATH; do
5564 test -z "$ac_dir" && ac_dir=.
5565 if test -f $ac_dir/$ac_word; then
5566 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5567 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5568 break
5569 fi
5570 fi
5571 done
5572 IFS="$ac_save_ifs"
5573 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5574 ;;
5575esac
5576fi
5577XGETTEXT="$ac_cv_path_XGETTEXT"
5578if test -n "$XGETTEXT"; then
5579 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5580echo "${ECHO_T}$XGETTEXT" >&6
5581else
5582 echo "$as_me:$LINENO: result: no" >&5
5583echo "${ECHO_T}no" >&6
5584fi
5585
5586
5587 USE_INCLUDED_LIBINTL=yes
5588 CATOBJEXT=.gmo
5589 INSTOBJEXT=.mo
5590 DATADIRNAME=share
5591 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5592 INTLLIBS=$INTLDEPS
5593 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5594 nls_cv_header_intl=libintl.h
5595 nls_cv_header_libgt=libgettext.h
5596 fi
5597
5598 if test "$XGETTEXT" != ":"; then
5599 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5600 : ;
5601 else
5602 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5603echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5604 XGETTEXT=":"
5605 fi
5606 fi
5607
5608 # We need to process the po/ directory.
5609 POSUB=po
5610 else
5611 DATADIRNAME=share
5612 nls_cv_header_intl=libintl.h
5613 nls_cv_header_libgt=libgettext.h
5614 fi
5615
5616 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5617 # because some of the sources are only built for this goal.
5618 if test "$PACKAGE" = gettext; then
5619 USE_NLS=yes
5620 USE_INCLUDED_LIBINTL=yes
5621 fi
5622
5623 for lang in $ALL_LINGUAS; do
5624 GMOFILES="$GMOFILES $lang.gmo"
5625 POFILES="$POFILES $lang.po"
5626 done
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
c46f8c51
AC
5639 if test "x$CATOBJEXT" != "x"; then
5640
5641cat >>confdefs.h <<\_ACEOF
5642#define ENABLE_NLS 1
5643_ACEOF
5644
5645 fi
bec39cab
AC
5646
5647
5648 if test "x$CATOBJEXT" != "x"; then
5649 if test "x$ALL_LINGUAS" = "x"; then
5650 LINGUAS=
5651 else
5652 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5653echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5654 NEW_LINGUAS=
5655 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5656 case "$ALL_LINGUAS" in
5657 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5658 esac
5659 done
5660 LINGUAS=$NEW_LINGUAS
5661 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5662echo "${ECHO_T}$LINGUAS" >&6
5663 fi
5664
5665 if test -n "$LINGUAS"; then
5666 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5667 fi
5668 fi
5669
5670 if test $ac_cv_header_locale_h = yes; then
5671 INCLUDE_LOCALE_H="#include <locale.h>"
5672 else
5673 INCLUDE_LOCALE_H="\
5674/* The system does not provide the header <locale.h>. Take care yourself. */"
5675 fi
5676
5677
5678 if test -f $srcdir/po2tbl.sed.in; then
5679 if test "$CATOBJEXT" = ".cat"; then
5680 if test "${ac_cv_header_linux_version_h+set}" = set; then
5681 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5682echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5683if test "${ac_cv_header_linux_version_h+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685fi
5686echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5687echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5688else
5689 # Is the header compilable?
5690echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5691echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5692cat >conftest.$ac_ext <<_ACEOF
5693/* confdefs.h. */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h. */
5698$ac_includes_default
5699#include <linux/version.h>
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_header_compiler=yes
5724else
5725 echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728ac_header_compiler=no
5729fi
5730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5732echo "${ECHO_T}$ac_header_compiler" >&6
5733
5734# Is the header present?
5735echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5736echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5737cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743#include <linux/version.h>
5744_ACEOF
5745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } >/dev/null; then
5753 if test -s conftest.err; then
5754 ac_cpp_err=$ac_c_preproc_warn_flag
5755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5756 else
5757 ac_cpp_err=
5758 fi
5759else
5760 ac_cpp_err=yes
5761fi
5762if test -z "$ac_cpp_err"; then
5763 ac_header_preproc=yes
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_header_preproc=no
5769fi
5770rm -f conftest.err conftest.$ac_ext
5771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5772echo "${ECHO_T}$ac_header_preproc" >&6
5773
5774# So? What about this header?
5775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5776 yes:no: )
5777 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5778echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5780echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5781 ac_header_preproc=yes
5782 ;;
5783 no:yes:* )
5784 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5785echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5787echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5789echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5791echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5793echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5794 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5795echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5796 (
5797 cat <<\_ASBOX
5798## ------------------------------------------ ##
5799## Report this to the AC_PACKAGE_NAME lists. ##
5800## ------------------------------------------ ##
5801_ASBOX
5802 ) |
5803 sed "s/^/$as_me: WARNING: /" >&2
5804 ;;
5805esac
5806echo "$as_me:$LINENO: checking for linux/version.h" >&5
5807echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5808if test "${ac_cv_header_linux_version_h+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 ac_cv_header_linux_version_h=$ac_header_preproc
5812fi
5813echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5814echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5815
5816fi
5817if test $ac_cv_header_linux_version_h = yes; then
5818 msgformat=linux
5819else
5820 msgformat=xopen
5821fi
5822
5823
5824
5825 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5826 fi
5827 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5828 $srcdir/po2tbl.sed.in > po2tbl.sed
5829 fi
5830
5831 if test "$PACKAGE" = "gettext"; then
5832 GT_NO="#NO#"
5833 GT_YES=
5834 else
5835 GT_NO=
5836 GT_YES="#YES#"
5837 fi
5838
5839
5840
5841 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5842
5843
5844 l=
5845
5846
5847 if test -f $srcdir/po/POTFILES.in; then
5848 test -d po || mkdir po
5849 if test "x$srcdir" != "x."; then
5850 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5851 posrcprefix="$srcdir/"
5852 else
5853 posrcprefix="../$srcdir/"
5854 fi
5855 else
5856 posrcprefix="../"
5857 fi
5858 rm -f po/POTFILES
5859 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5860 < $srcdir/po/POTFILES.in > po/POTFILES
5861 fi
5862
5863
5864localedir='${datadir}/locale'
5865
5866
5867if test "x$POSUB" != x; then
5868
5869 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5870echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5871 # Look for .po and .gmo files in the source directory.
5872 CATALOGS=
5873 XLINGUAS=
5874 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5875 # If there aren't any .gmo files the shell will give us the
5876 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5877 # weeded out.
5878 case "$cat" in *\**)
5879 continue;;
5880 esac
5881 # The quadruple backslash is collapsed to a double backslash
5882 # by the backticks, then collapsed again by the double quotes,
5883 # leaving us with one backslash in the sed expression (right
5884 # before the dot that mustn't act as a wildcard).
5885 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5886 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5887 # The user is allowed to set LINGUAS to a list of languages to
5888 # install catalogs for. If it's empty that means "all of them."
5889 if test "x$LINGUAS" = x; then
5890 CATALOGS="$CATALOGS $cat"
5891 XLINGUAS="$XLINGUAS $lang"
5892 else
5893 case "$LINGUAS" in *$lang*)
5894 CATALOGS="$CATALOGS $cat"
5895 XLINGUAS="$XLINGUAS $lang"
5896 ;;
5897 esac
5898 fi
5899 done
5900 LINGUAS="$XLINGUAS"
5901 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5902echo "${ECHO_T}$LINGUAS" >&6
5903
5904 CONFIG_ALL="$CONFIG_ALL all-po"
5905 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5906 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5907 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5908fi
5909
5910PACKAGE=gdb
5911
5912cat >>confdefs.h <<_ACEOF
5913#define PACKAGE "$PACKAGE"
5914_ACEOF
5915
5916
5917
5918debugdir=${libdir}/debug
5919
5920
5921# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5922if test "${with_separate_debug_dir+set}" = set; then
5923 withval="$with_separate_debug_dir"
5924 debugdir="${withval}"
5925fi;
5926
5927
5928 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5930 ac_define_dir=`eval echo $debugdir`
5931 ac_define_dir=`eval echo $ac_define_dir`
5932
5933cat >>confdefs.h <<_ACEOF
5934#define DEBUGDIR "$ac_define_dir"
5935_ACEOF
5936
5937
5938#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5939
5940
5941
5942subdirs="$subdirs doc testsuite"
5943
5944
5945. $srcdir/configure.host
5946
5947. $srcdir/configure.tgt
5948
5949# Fetch the default architecture and default target vector from BFD.
5950targ=$target; . $srcdir/../bfd/config.bfd
5951
5952# We only want the first architecture, so strip off the others if
5953# there is more than one.
5954targ_archs=`echo $targ_archs | sed 's/ .*//'`
5955
5956if test "x$targ_archs" != x; then
5957
5958cat >>confdefs.h <<_ACEOF
5959#define DEFAULT_BFD_ARCH $targ_archs
5960_ACEOF
5961
5962fi
5963if test "x$targ_defvec" != x; then
5964
5965cat >>confdefs.h <<_ACEOF
5966#define DEFAULT_BFD_VEC $targ_defvec
5967_ACEOF
5968
5969fi
5970
5971test "$program_prefix" != NONE &&
5972 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5973# Use a double $ so make ignores it.
5974test "$program_suffix" != NONE &&
5975 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5976# Double any \ or $. echo might interpret backslashes.
5977# By default was `s,x,x', remove it if useless.
5978cat <<\_ACEOF >conftest.sed
5979s/[\\$]/&&/g;s/;s,x,x,$//
5980_ACEOF
5981program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5982rm conftest.sed
5983
5984
5985# The CLI cannot be disabled yet, but may be in the future.
5986
5987# Enable CLI.
5988# Check whether --enable-gdbcli or --disable-gdbcli was given.
5989if test "${enable_gdbcli+set}" = set; then
5990 enableval="$enable_gdbcli"
5991 case $enableval in
5992 yes)
5993 ;;
5994 no)
5995 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5996echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5997 { (exit 1); exit 1; }; } ;;
5998 *)
5999 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6000echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6001 { (exit 1); exit 1; }; } ;;
6002 esac
6003else
6004 enable_gdbcli=yes
6005fi;
6006if test x"$enable_gdbcli" = xyes; then
6007 if test -d $srcdir/cli; then
6008 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6009 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6010 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6011 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6012 fi
6013fi
6014
6015# Enable MI.
6016# Check whether --enable-gdbmi or --disable-gdbmi was given.
6017if test "${enable_gdbmi+set}" = set; then
6018 enableval="$enable_gdbmi"
6019 case $enableval in
6020 yes | no)
6021 ;;
6022 *)
6023 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6024echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6025 { (exit 1); exit 1; }; } ;;
6026 esac
6027else
6028 enable_gdbmi=yes
6029fi;
6030if test x"$enable_gdbmi" = xyes; then
6031 if test -d $srcdir/mi; then
6032 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6033 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6034 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6035 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6036 fi
6037fi
6038
6039# Enable TUI.
6040# Check whether --enable-tui or --disable-tui was given.
6041if test "${enable_tui+set}" = set; then
6042 enableval="$enable_tui"
6043 case $enableval in
6044 yes | no)
6045 ;;
6046 *)
6047 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6048echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6049 { (exit 1); exit 1; }; } ;;
6050 esac
6051else
6052 enable_tui=yes
6053fi;
6054
6055# Enable gdbtk.
6056# Check whether --enable-gdbtk or --disable-gdbtk was given.
6057if test "${enable_gdbtk+set}" = set; then
6058 enableval="$enable_gdbtk"
6059 case $enableval in
6060 yes | no)
6061 ;;
6062 *)
6063 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6064echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6065 { (exit 1); exit 1; }; } ;;
6066 esac
6067else
04ac69aa 6068 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
6069 enable_gdbtk=yes
6070 else
6071 enable_gdbtk=no
6072 fi
6073fi;
6074# We unconditionally disable gdbtk tests on selected platforms.
6075case $host_os in
6076 go32* | windows*)
6077 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6078echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6079 enable_gdbtk=no ;;
6080esac
6081
6082# Libunwind support.
6083
6084# Check whether --with-libunwind or --without-libunwind was given.
6085if test "${with_libunwind+set}" = set; then
6086 withval="$with_libunwind"
6087 case "${withval}" in
6088 yes) enable_libunwind=yes ;;
6089 no) enable_libunwind=no ;;
6090 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6091echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6092 { (exit 1); exit 1; }; } ;;
6093esac
6094else
6095
6096
6097for ac_header in libunwind.h
6098do
6099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100if eval "test \"\${$as_ac_Header+set}\" = set"; then
6101 echo "$as_me:$LINENO: checking for $ac_header" >&5
6102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6103if eval "test \"\${$as_ac_Header+set}\" = set"; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105fi
6106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6108else
6109 # Is the header compilable?
6110echo "$as_me:$LINENO: checking $ac_header usability" >&5
6111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6112cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h. */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h. */
6118$ac_includes_default
6119#include <$ac_header>
6120_ACEOF
6121rm -f conftest.$ac_objext
6122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -z "$ac_c_werror_flag"
6131 || test ! -s conftest.err'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; } &&
6137 { ac_try='test -s conftest.$ac_objext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_header_compiler=yes
6144else
6145 echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148ac_header_compiler=no
6149fi
6150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6152echo "${ECHO_T}$ac_header_compiler" >&6
6153
6154# Is the header present?
6155echo "$as_me:$LINENO: checking $ac_header presence" >&5
6156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6157cat >conftest.$ac_ext <<_ACEOF
6158/* confdefs.h. */
6159_ACEOF
6160cat confdefs.h >>conftest.$ac_ext
6161cat >>conftest.$ac_ext <<_ACEOF
6162/* end confdefs.h. */
6163#include <$ac_header>
6164_ACEOF
6165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } >/dev/null; then
6173 if test -s conftest.err; then
6174 ac_cpp_err=$ac_c_preproc_warn_flag
6175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6176 else
6177 ac_cpp_err=
6178 fi
6179else
6180 ac_cpp_err=yes
6181fi
6182if test -z "$ac_cpp_err"; then
6183 ac_header_preproc=yes
6184else
6185 echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188 ac_header_preproc=no
6189fi
6190rm -f conftest.err conftest.$ac_ext
6191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6192echo "${ECHO_T}$ac_header_preproc" >&6
6193
6194# So? What about this header?
6195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6196 yes:no: )
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6201 ac_header_preproc=yes
6202 ;;
6203 no:yes:* )
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6216 (
6217 cat <<\_ASBOX
6218## ------------------------------------------ ##
6219## Report this to the AC_PACKAGE_NAME lists. ##
6220## ------------------------------------------ ##
6221_ASBOX
6222 ) |
6223 sed "s/^/$as_me: WARNING: /" >&2
6224 ;;
6225esac
6226echo "$as_me:$LINENO: checking for $ac_header" >&5
6227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6228if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
6231 eval "$as_ac_Header=\$ac_header_preproc"
6232fi
6233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6235
6236fi
6237if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240_ACEOF
6241
6242fi
6243
6244done
6245
6246
6247for ac_header in libunwind-ia64.h
6248do
6249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251 echo "$as_me:$LINENO: checking for $ac_header" >&5
6252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255fi
6256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6258else
6259 # Is the header compilable?
6260echo "$as_me:$LINENO: checking $ac_header usability" >&5
6261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6262cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h. */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h. */
6268$ac_includes_default
6269#include <$ac_header>
6270_ACEOF
6271rm -f conftest.$ac_objext
6272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_header_compiler=yes
6294else
6295 echo "$as_me: failed program was:" >&5
6296sed 's/^/| /' conftest.$ac_ext >&5
6297
6298ac_header_compiler=no
6299fi
6300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6302echo "${ECHO_T}$ac_header_compiler" >&6
6303
6304# Is the header present?
6305echo "$as_me:$LINENO: checking $ac_header presence" >&5
6306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6307cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h. */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h. */
6313#include <$ac_header>
6314_ACEOF
6315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } >/dev/null; then
6323 if test -s conftest.err; then
6324 ac_cpp_err=$ac_c_preproc_warn_flag
6325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6326 else
6327 ac_cpp_err=
6328 fi
6329else
6330 ac_cpp_err=yes
6331fi
6332if test -z "$ac_cpp_err"; then
6333 ac_header_preproc=yes
6334else
6335 echo "$as_me: failed program was:" >&5
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 ac_header_preproc=no
6339fi
6340rm -f conftest.err conftest.$ac_ext
6341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6342echo "${ECHO_T}$ac_header_preproc" >&6
6343
6344# So? What about this header?
6345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6346 yes:no: )
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6351 ac_header_preproc=yes
6352 ;;
6353 no:yes:* )
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6366 (
6367 cat <<\_ASBOX
6368## ------------------------------------------ ##
6369## Report this to the AC_PACKAGE_NAME lists. ##
6370## ------------------------------------------ ##
6371_ASBOX
6372 ) |
6373 sed "s/^/$as_me: WARNING: /" >&2
6374 ;;
6375esac
6376echo "$as_me:$LINENO: checking for $ac_header" >&5
6377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6378if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381 eval "$as_ac_Header=\$ac_header_preproc"
6382fi
6383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6385
6386fi
6387if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390_ACEOF
6391
6392fi
6393
6394done
6395
6396 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6397 enable_libunwind=yes;
6398 fi
6399
6400fi;
6401
6402if test x"$enable_libunwind" = xyes; then
6403
6404for ac_header in libunwind.h
6405do
6406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
6409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412fi
6413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415else
6416 # Is the header compilable?
6417echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419cat >conftest.$ac_ext <<_ACEOF
6420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h. */
6425$ac_includes_default
6426#include <$ac_header>
6427_ACEOF
6428rm -f conftest.$ac_objext
6429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler=yes
6451else
6452 echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455ac_header_compiler=no
6456fi
6457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459echo "${ECHO_T}$ac_header_compiler" >&6
6460
6461# Is the header present?
6462echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h. */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h. */
6470#include <$ac_header>
6471_ACEOF
6472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev/null; then
6480 if test -s conftest.err; then
6481 ac_cpp_err=$ac_c_preproc_warn_flag
6482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6483 else
6484 ac_cpp_err=
6485 fi
6486else
6487 ac_cpp_err=yes
6488fi
6489if test -z "$ac_cpp_err"; then
6490 ac_header_preproc=yes
6491else
6492 echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 ac_header_preproc=no
6496fi
6497rm -f conftest.err conftest.$ac_ext
6498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499echo "${ECHO_T}$ac_header_preproc" >&6
6500
6501# So? What about this header?
6502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6503 yes:no: )
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508 ac_header_preproc=yes
6509 ;;
6510 no:yes:* )
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6523 (
6524 cat <<\_ASBOX
6525## ------------------------------------------ ##
6526## Report this to the AC_PACKAGE_NAME lists. ##
6527## ------------------------------------------ ##
6528_ASBOX
6529 ) |
6530 sed "s/^/$as_me: WARNING: /" >&2
6531 ;;
6532esac
6533echo "$as_me:$LINENO: checking for $ac_header" >&5
6534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538 eval "$as_ac_Header=\$ac_header_preproc"
6539fi
6540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542
6543fi
6544if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h <<_ACEOF
6546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547_ACEOF
6548
6549fi
6550
6551done
6552
6553
6554for ac_header in libunwind-ia64.h
6555do
6556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6557if eval "test \"\${$as_ac_Header+set}\" = set"; then
6558 echo "$as_me:$LINENO: checking for $ac_header" >&5
6559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6560if eval "test \"\${$as_ac_Header+set}\" = set"; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562fi
6563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6565else
6566 # Is the header compilable?
6567echo "$as_me:$LINENO: checking $ac_header usability" >&5
6568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6569cat >conftest.$ac_ext <<_ACEOF
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
6575$ac_includes_default
6576#include <$ac_header>
6577_ACEOF
6578rm -f conftest.$ac_objext
6579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_header_compiler=yes
6601else
6602 echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605ac_header_compiler=no
6606fi
6607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6609echo "${ECHO_T}$ac_header_compiler" >&6
6610
6611# Is the header present?
6612echo "$as_me:$LINENO: checking $ac_header presence" >&5
6613echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6614cat >conftest.$ac_ext <<_ACEOF
6615/* confdefs.h. */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h. */
6620#include <$ac_header>
6621_ACEOF
6622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6624 ac_status=$?
6625 grep -v '^ *+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } >/dev/null; then
6630 if test -s conftest.err; then
6631 ac_cpp_err=$ac_c_preproc_warn_flag
6632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6633 else
6634 ac_cpp_err=
6635 fi
6636else
6637 ac_cpp_err=yes
6638fi
6639if test -z "$ac_cpp_err"; then
6640 ac_header_preproc=yes
6641else
6642 echo "$as_me: failed program was:" >&5
6643sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_header_preproc=no
6646fi
6647rm -f conftest.err conftest.$ac_ext
6648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6649echo "${ECHO_T}$ac_header_preproc" >&6
6650
6651# So? What about this header?
6652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6653 yes:no: )
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6658 ac_header_preproc=yes
6659 ;;
6660 no:yes:* )
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6673 (
6674 cat <<\_ASBOX
6675## ------------------------------------------ ##
6676## Report this to the AC_PACKAGE_NAME lists. ##
6677## ------------------------------------------ ##
6678_ASBOX
6679 ) |
6680 sed "s/^/$as_me: WARNING: /" >&2
6681 ;;
6682esac
6683echo "$as_me:$LINENO: checking for $ac_header" >&5
6684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6685if eval "test \"\${$as_ac_Header+set}\" = set"; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 eval "$as_ac_Header=\$ac_header_preproc"
6689fi
6690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6692
6693fi
6694if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695 cat >>confdefs.h <<_ACEOF
6696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697_ACEOF
6698
6699fi
6700
6701done
6702
60ca704f
SE
6703
6704cat >>confdefs.h <<\_ACEOF
bec39cab
AC
6705#define HAVE_LIBUNWIND 1
6706_ACEOF
6707
6708 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6709 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6710 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6711fi
6712
6713# Profiling support.
6714# Check whether --enable-profiling or --disable-profiling was given.
6715if test "${enable_profiling+set}" = set; then
6716 enableval="$enable_profiling"
6717 case $enableval in
6718 yes | no)
6719 ;;
6720 *)
6721 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6722echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6723 { (exit 1); exit 1; }; } ;;
6724 esac
6725else
6726 enable_profiling=no
6727fi;
6728
6729
6730
6731for ac_func in monstartup _mcleanup
6732do
6733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6734echo "$as_me:$LINENO: checking for $ac_func" >&5
6735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6736if eval "test \"\${$as_ac_var+set}\" = set"; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739 cat >conftest.$ac_ext <<_ACEOF
6740/* confdefs.h. */
6741_ACEOF
6742cat confdefs.h >>conftest.$ac_ext
6743cat >>conftest.$ac_ext <<_ACEOF
6744/* end confdefs.h. */
6745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6747#define $ac_func innocuous_$ac_func
6748
6749/* System header to define __stub macros and hopefully few prototypes,
6750 which can conflict with char $ac_func (); below.
6751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6752 <limits.h> exists even on freestanding compilers. */
6753
6754#ifdef __STDC__
6755# include <limits.h>
6756#else
6757# include <assert.h>
6758#endif
6759
6760#undef $ac_func
6761
6762/* Override any gcc2 internal prototype to avoid an error. */
6763#ifdef __cplusplus
6764extern "C"
6765{
6766#endif
6767/* We use char because int might match the return type of a gcc2
6768 builtin and then its argument prototype would still apply. */
6769char $ac_func ();
6770/* The GNU C library defines this for functions which it implements
6771 to always fail with ENOSYS. Some functions are actually named
6772 something starting with __ and the normal name is an alias. */
6773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6774choke me
6775#else
6776char (*f) () = $ac_func;
6777#endif
6778#ifdef __cplusplus
6779}
6780#endif
6781
6782int
6783main ()
6784{
6785return f != $ac_func;
6786 ;
6787 return 0;
6788}
6789_ACEOF
6790rm -f conftest.$ac_objext conftest$ac_exeext
6791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6792 (eval $ac_link) 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest$ac_exeext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 eval "$as_ac_var=yes"
6813else
6814 echo "$as_me: failed program was:" >&5
6815sed 's/^/| /' conftest.$ac_ext >&5
6816
6817eval "$as_ac_var=no"
6818fi
6819rm -f conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
6821fi
6822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6823echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6824if test `eval echo '${'$as_ac_var'}'` = yes; then
6825 cat >>confdefs.h <<_ACEOF
6826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6827_ACEOF
6828
6829fi
6830done
6831
6832echo "$as_me:$LINENO: checking for _etext" >&5
6833echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6834if test "${ac_cv_var__etext+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836else
6837 cat >conftest.$ac_ext <<_ACEOF
6838/* confdefs.h. */
6839_ACEOF
6840cat confdefs.h >>conftest.$ac_ext
6841cat >>conftest.$ac_ext <<_ACEOF
6842/* end confdefs.h. */
6843#include <stdlib.h>
6844extern char _etext;
6845
6846int
6847main ()
6848{
6849free (&_etext);
6850 ;
6851 return 0;
6852}
6853_ACEOF
6854rm -f conftest.$ac_objext conftest$ac_exeext
6855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856 (eval $ac_link) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try='test -s conftest$ac_exeext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_cv_var__etext=yes
6877else
6878 echo "$as_me: failed program was:" >&5
6879sed 's/^/| /' conftest.$ac_ext >&5
6880
6881ac_cv_var__etext=no
6882fi
6883rm -f conftest.err conftest.$ac_objext \
6884 conftest$ac_exeext conftest.$ac_ext
6885fi
6886echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6887echo "${ECHO_T}$ac_cv_var__etext" >&6
6888if test $ac_cv_var__etext = yes; then
6889
6890cat >>confdefs.h <<\_ACEOF
6891#define HAVE__ETEXT 1
6892_ACEOF
6893
6894fi
6895if test "$enable_profiling" = yes ; then
6896 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6897 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6898echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6899 { (exit 1); exit 1; }; }
6900 fi
6901 PROFILE_CFLAGS=-pg
6902 OLD_CFLAGS="$CFLAGS"
6903 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6904
6905 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6906echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6907if test "${ac_cv_cc_supports_pg+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6909else
bec39cab
AC
6910 cat >conftest.$ac_ext <<_ACEOF
6911/* confdefs.h. */
6912_ACEOF
6913cat confdefs.h >>conftest.$ac_ext
6914cat >>conftest.$ac_ext <<_ACEOF
6915/* end confdefs.h. */
6916
6917int
6918main ()
6919{
6920int x;
6921 ;
6922 return 0;
6923}
6924_ACEOF
6925rm -f conftest.$ac_objext
6926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -z "$ac_c_werror_flag"
6935 || test ! -s conftest.err'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_cc_supports_pg=yes
6948else
6949 echo "$as_me: failed program was:" >&5
6950sed 's/^/| /' conftest.$ac_ext >&5
6951
6952ac_cv_cc_supports_pg=no
6953fi
6954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6955fi
6956echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6957echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6958
6959 if test $ac_cv_cc_supports_pg = no; then
6960 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6961echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6962 { (exit 1); exit 1; }; }
6963 fi
6964
6965 CFLAGS="$OLD_CFLAGS"
6966fi
6967
6968# --------------------- #
6969# Checks for programs. #
6970# --------------------- #
6971
6972for ac_prog in gawk mawk nawk awk
6973do
6974 # Extract the first word of "$ac_prog", so it can be a program name with args.
6975set dummy $ac_prog; ac_word=$2
6976echo "$as_me:$LINENO: checking for $ac_word" >&5
6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6978if test "${ac_cv_prog_AWK+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980else
6981 if test -n "$AWK"; then
6982 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991 ac_cv_prog_AWK="$ac_prog"
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995done
6996done
6997
6998fi
6999fi
7000AWK=$ac_cv_prog_AWK
7001if test -n "$AWK"; then
7002 echo "$as_me:$LINENO: result: $AWK" >&5
7003echo "${ECHO_T}$AWK" >&6
7004else
7005 echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6
7007fi
7008
7009 test -n "$AWK" && break
7010done
7011
7012# Find a good install program. We prefer a C program (faster),
7013# so one script is as good as another. But avoid the broken or
7014# incompatible versions:
7015# SysV /etc/install, /usr/sbin/install
7016# SunOS /usr/etc/install
7017# IRIX /sbin/install
7018# AIX /bin/install
7019# AmigaOS /C/install, which installs bootblocks on floppy discs
7020# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7021# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7022# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7023# OS/2's system install, which has a completely different semantic
7024# ./install, which can be erroneously created by make from ./install.sh.
7025echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7026echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7027if test -z "$INSTALL"; then
7028if test "${ac_cv_path_install+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 # Account for people who put trailing slashes in PATH elements.
7037case $as_dir/ in
7038 ./ | .// | /cC/* | \
7039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7041 /usr/ucb/* ) ;;
c906108c 7042 *)
bec39cab
AC
7043 # OSF1 and SCO ODT 3.0 have their own names for install.
7044 # Don't use installbsd from OSF since it installs stuff as root
7045 # by default.
7046 for ac_prog in ginstall scoinst install; do
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7049 if test $ac_prog = install &&
7050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7051 # AIX install. It has an incompatible calling convention.
7052 :
7053 elif test $ac_prog = install &&
7054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7055 # program-specific install script used by HP pwplus--don't use.
7056 :
7057 else
7058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7059 break 3
7060 fi
7061 fi
7062 done
7063 done
7064 ;;
c906108c 7065esac
bec39cab
AC
7066done
7067
7068
7069fi
7070 if test "${ac_cv_path_install+set}" = set; then
7071 INSTALL=$ac_cv_path_install
7072 else
7073 # As a last resort, use the slow shell script. We don't cache a
7074 # path for INSTALL within a source directory, because that will
7075 # break other packages using the cache if that directory is
7076 # removed, or if the path is relative.
7077 INSTALL=$ac_install_sh
7078 fi
7079fi
7080echo "$as_me:$LINENO: result: $INSTALL" >&5
7081echo "${ECHO_T}$INSTALL" >&6
7082
7083# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7084# It thinks the first close brace ends the variable substitution.
7085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7086
7087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7088
7089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7090
7091echo "$as_me:$LINENO: checking whether ln -s works" >&5
7092echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7093LN_S=$as_ln_s
7094if test "$LN_S" = "ln -s"; then
7095 echo "$as_me:$LINENO: result: yes" >&5
7096echo "${ECHO_T}yes" >&6
7097else
7098 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7099echo "${ECHO_T}no, using $LN_S" >&6
7100fi
7101
7102if test -n "$ac_tool_prefix"; then
7103 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7104set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7105echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107if test "${ac_cv_prog_RANLIB+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 if test -n "$RANLIB"; then
7111 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126
7127fi
7128fi
7129RANLIB=$ac_cv_prog_RANLIB
7130if test -n "$RANLIB"; then
7131 echo "$as_me:$LINENO: result: $RANLIB" >&5
7132echo "${ECHO_T}$RANLIB" >&6
7133else
7134 echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6
7136fi
7137
7138fi
7139if test -z "$ac_cv_prog_RANLIB"; then
7140 ac_ct_RANLIB=$RANLIB
7141 # Extract the first word of "ranlib", so it can be a program name with args.
7142set dummy ranlib; ac_word=$2
7143echo "$as_me:$LINENO: checking for $ac_word" >&5
7144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148 if test -n "$ac_ct_RANLIB"; then
7149 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_ac_ct_RANLIB="ranlib"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7161 fi
7162done
7163done
7164
7165 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7166fi
7167fi
7168ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7169if test -n "$ac_ct_RANLIB"; then
7170 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7171echo "${ECHO_T}$ac_ct_RANLIB" >&6
7172else
7173 echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
7175fi
7176
7177 RANLIB=$ac_ct_RANLIB
7178else
7179 RANLIB="$ac_cv_prog_RANLIB"
7180fi
7181
7182for ac_prog in 'bison -y' byacc
7183do
7184 # Extract the first word of "$ac_prog", so it can be a program name with args.
7185set dummy $ac_prog; ac_word=$2
7186echo "$as_me:$LINENO: checking for $ac_word" >&5
7187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7188if test "${ac_cv_prog_YACC+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191 if test -n "$YACC"; then
7192 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_YACC="$ac_prog"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7204 fi
7205done
7206done
7207
7208fi
7209fi
7210YACC=$ac_cv_prog_YACC
7211if test -n "$YACC"; then
7212 echo "$as_me:$LINENO: result: $YACC" >&5
7213echo "${ECHO_T}$YACC" >&6
7214else
7215 echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6
7217fi
7218
7219 test -n "$YACC" && break
7220done
7221test -n "$YACC" || YACC="yacc"
7222
7223
7224if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7226set dummy ${ac_tool_prefix}ar; ac_word=$2
7227echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229if test "${ac_cv_prog_AR+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 if test -n "$AR"; then
7233 ac_cv_prog_AR="$AR" # Let the user override the test.
7234else
7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_AR="${ac_tool_prefix}ar"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247done
7248
7249fi
7250fi
7251AR=$ac_cv_prog_AR
7252if test -n "$AR"; then
7253 echo "$as_me:$LINENO: result: $AR" >&5
7254echo "${ECHO_T}$AR" >&6
7255else
7256 echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6
7258fi
7259
7260fi
7261if test -z "$ac_cv_prog_AR"; then
7262 ac_ct_AR=$AR
7263 # Extract the first word of "ar", so it can be a program name with args.
7264set dummy ar; 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_ac_ct_AR+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270 if test -n "$ac_ct_AR"; then
7271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286
7287fi
7288fi
7289ac_ct_AR=$ac_cv_prog_ac_ct_AR
7290if test -n "$ac_ct_AR"; then
7291 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7292echo "${ECHO_T}$ac_ct_AR" >&6
7293else
7294 echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6
7296fi
7297
7298 AR=$ac_ct_AR
7299else
7300 AR="$ac_cv_prog_AR"
7301fi
7302
7303if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7305set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 if test -n "$DLLTOOL"; then
7312 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325done
7326done
7327
7328fi
7329fi
7330DLLTOOL=$ac_cv_prog_DLLTOOL
7331if test -n "$DLLTOOL"; then
7332 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7333echo "${ECHO_T}$DLLTOOL" >&6
7334else
7335 echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6
7337fi
7338
7339fi
7340if test -z "$ac_cv_prog_DLLTOOL"; then
7341 ac_ct_DLLTOOL=$DLLTOOL
7342 # Extract the first word of "dlltool", so it can be a program name with args.
7343set dummy dlltool; 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_DLLTOOL+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349 if test -n "$ac_ct_DLLTOOL"; then
7350 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool"
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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7369if test -n "$ac_ct_DLLTOOL"; then
7370 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7371echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7372else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375fi
7376
7377 DLLTOOL=$ac_ct_DLLTOOL
7378else
7379 DLLTOOL="$ac_cv_prog_DLLTOOL"
7380fi
7381
7382if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7384set dummy ${ac_tool_prefix}windres; 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_WINDRES+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390 if test -n "$WINDRES"; then
7391 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${ac_tool_prefix}windres"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404done
7405done
7406
7407fi
7408fi
7409WINDRES=$ac_cv_prog_WINDRES
7410if test -n "$WINDRES"; then
7411 echo "$as_me:$LINENO: result: $WINDRES" >&5
7412echo "${ECHO_T}$WINDRES" >&6
7413else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416fi
7417
7418fi
7419if test -z "$ac_cv_prog_WINDRES"; then
7420 ac_ct_WINDRES=$WINDRES
7421 # Extract the first word of "windres", so it can be a program name with args.
7422set dummy windres; 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_WINDRES+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428 if test -n "$ac_ct_WINDRES"; then
7429 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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_WINDRES="windres"
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_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7448if test -n "$ac_ct_WINDRES"; then
7449 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7450echo "${ECHO_T}$ac_ct_WINDRES" >&6
7451else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
c906108c 7454fi
bec39cab
AC
7455
7456 WINDRES=$ac_ct_WINDRES
c906108c 7457else
bec39cab 7458 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7459fi
7460
bec39cab
AC
7461
7462# Needed for GNU/Hurd.
7463if test -n "$ac_tool_prefix"; then
7464 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7465set dummy ${ac_tool_prefix}mig; ac_word=$2
7466echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468if test "${ac_cv_prog_MIG+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7470else
bec39cab
AC
7471 if test -n "$MIG"; then
7472 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485done
7486done
7487
c906108c 7488fi
bec39cab
AC
7489fi
7490MIG=$ac_cv_prog_MIG
7491if test -n "$MIG"; then
7492 echo "$as_me:$LINENO: result: $MIG" >&5
7493echo "${ECHO_T}$MIG" >&6
c906108c 7494else
bec39cab
AC
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
c906108c
SS
7497fi
7498
bec39cab
AC
7499fi
7500if test -z "$ac_cv_prog_MIG"; then
7501 ac_ct_MIG=$MIG
7502 # Extract the first word of "mig", so it can be a program name with args.
7503set dummy mig; ac_word=$2
7504echo "$as_me:$LINENO: checking for $ac_word" >&5
7505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7506if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509 if test -n "$ac_ct_MIG"; then
7510 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519 ac_cv_prog_ac_ct_MIG="mig"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523done
7524done
c906108c 7525
bec39cab
AC
7526fi
7527fi
7528ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7529if test -n "$ac_ct_MIG"; then
7530 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7531echo "${ECHO_T}$ac_ct_MIG" >&6
7532else
7533 echo "$as_me:$LINENO: result: no" >&5
7534echo "${ECHO_T}no" >&6
7535fi
c906108c 7536
bec39cab
AC
7537 MIG=$ac_ct_MIG
7538else
7539 MIG="$ac_cv_prog_MIG"
7540fi
c906108c 7541
c906108c 7542
bec39cab
AC
7543# ---------------------- #
7544# Checks for libraries. #
7545# ---------------------- #
c906108c 7546
bec39cab 7547# We might need to link with -lm; most simulators need it.
c906108c 7548
bec39cab
AC
7549echo "$as_me:$LINENO: checking for main in -lm" >&5
7550echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7551if test "${ac_cv_lib_m_main+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553else
7554 ac_check_lib_save_LIBS=$LIBS
7555LIBS="-lm $LIBS"
7556cat >conftest.$ac_ext <<_ACEOF
7557/* confdefs.h. */
7558_ACEOF
7559cat confdefs.h >>conftest.$ac_ext
7560cat >>conftest.$ac_ext <<_ACEOF
7561/* end confdefs.h. */
c906108c 7562
c906108c 7563
bec39cab
AC
7564int
7565main ()
7566{
7567main ();
7568 ;
7569 return 0;
7570}
7571_ACEOF
7572rm -f conftest.$ac_objext conftest$ac_exeext
7573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_cv_lib_m_main=yes
7595else
7596 echo "$as_me: failed program was:" >&5
7597sed 's/^/| /' conftest.$ac_ext >&5
7598
7599ac_cv_lib_m_main=no
7600fi
7601rm -f conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7603LIBS=$ac_check_lib_save_LIBS
7604fi
7605echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7606echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7607if test $ac_cv_lib_m_main = yes; then
7608 cat >>confdefs.h <<_ACEOF
7609#define HAVE_LIBM 1
7610_ACEOF
7611
7612 LIBS="-lm $LIBS"
c906108c 7613
c906108c 7614fi
bec39cab
AC
7615
7616
7617# We need to link with -lw to get `wctype' on Solaris before Solaris
7618# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7619# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7620# is known to have this problem). Therefore we avoid libw if we can.
7621echo "$as_me:$LINENO: checking for wctype" >&5
7622echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7623if test "${ac_cv_func_wctype+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626 cat >conftest.$ac_ext <<_ACEOF
7627/* confdefs.h. */
7628_ACEOF
7629cat confdefs.h >>conftest.$ac_ext
7630cat >>conftest.$ac_ext <<_ACEOF
7631/* end confdefs.h. */
7632/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7634#define wctype innocuous_wctype
7635
7636/* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char wctype (); below.
7638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639 <limits.h> exists even on freestanding compilers. */
7640
7641#ifdef __STDC__
7642# include <limits.h>
7643#else
7644# include <assert.h>
7645#endif
7646
7647#undef wctype
7648
7649/* Override any gcc2 internal prototype to avoid an error. */
7650#ifdef __cplusplus
7651extern "C"
7652{
7653#endif
7654/* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7656char wctype ();
7657/* The GNU C library defines this for functions which it implements
7658 to always fail with ENOSYS. Some functions are actually named
7659 something starting with __ and the normal name is an alias. */
7660#if defined (__stub_wctype) || defined (__stub___wctype)
7661choke me
7662#else
7663char (*f) () = wctype;
7664#endif
7665#ifdef __cplusplus
7666}
7667#endif
7668
7669int
7670main ()
7671{
7672return f != wctype;
7673 ;
7674 return 0;
7675}
7676_ACEOF
7677rm -f conftest.$ac_objext conftest$ac_exeext
7678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>conftest.er1
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag"
7687 || test ! -s conftest.err'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; } &&
7693 { ac_try='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 (eval $ac_try) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 ac_cv_func_wctype=yes
7700else
7701 echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704ac_cv_func_wctype=no
7705fi
7706rm -f conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
7708fi
7709echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7710echo "${ECHO_T}$ac_cv_func_wctype" >&6
7711if test $ac_cv_func_wctype = yes; then
7712 :
c906108c 7713else
c906108c 7714
bec39cab
AC
7715echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7716echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7717if test "${ac_cv_lib_w_wctype+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 ac_check_lib_save_LIBS=$LIBS
7721LIBS="-lw $LIBS"
7722cat >conftest.$ac_ext <<_ACEOF
7723/* confdefs.h. */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h. */
c906108c 7728
bec39cab
AC
7729/* Override any gcc2 internal prototype to avoid an error. */
7730#ifdef __cplusplus
7731extern "C"
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 ();
7736int
7737main ()
7738{
7739wctype ();
7740 ;
7741 return 0;
7742}
7743_ACEOF
7744rm -f conftest.$ac_objext conftest$ac_exeext
7745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_lib_w_wctype=yes
7767else
7768 echo "$as_me: failed program was:" >&5
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
7771ac_cv_lib_w_wctype=no
7772fi
7773rm -f conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7775LIBS=$ac_check_lib_save_LIBS
7776fi
7777echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7778echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7779if test $ac_cv_lib_w_wctype = yes; then
7780 cat >>confdefs.h <<_ACEOF
7781#define HAVE_LIBW 1
7782_ACEOF
c906108c 7783
bec39cab 7784 LIBS="-lw $LIBS"
c906108c 7785
bec39cab 7786fi
c906108c 7787
bec39cab 7788fi
c906108c 7789
ddc9cd0f 7790
bec39cab
AC
7791# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7792echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7793echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7794if test "${ac_cv_search_gethostbyname+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797 ac_func_search_save_LIBS=$LIBS
7798ac_cv_search_gethostbyname=no
7799cat >conftest.$ac_ext <<_ACEOF
7800/* confdefs.h. */
7801_ACEOF
7802cat confdefs.h >>conftest.$ac_ext
7803cat >>conftest.$ac_ext <<_ACEOF
7804/* end confdefs.h. */
ddc9cd0f 7805
bec39cab
AC
7806/* Override any gcc2 internal prototype to avoid an error. */
7807#ifdef __cplusplus
7808extern "C"
7809#endif
7810/* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7812char gethostbyname ();
7813int
7814main ()
7815{
7816gethostbyname ();
7817 ;
7818 return 0;
7819}
7820_ACEOF
7821rm -f conftest.$ac_objext conftest$ac_exeext
7822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7823 (eval $ac_link) 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -z "$ac_c_werror_flag"
7831 || test ! -s conftest.err'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 (eval $ac_try) 2>&5
7834 ac_status=$?
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; } &&
7837 { ac_try='test -s conftest$ac_exeext'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 ac_cv_search_gethostbyname="none required"
7844else
7845 echo "$as_me: failed program was:" >&5
7846sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7847
bec39cab
AC
7848fi
7849rm -f conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851if test "$ac_cv_search_gethostbyname" = no; then
7852 for ac_lib in nsl; do
7853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7854 cat >conftest.$ac_ext <<_ACEOF
7855/* confdefs.h. */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h. */
ddc9cd0f 7860
bec39cab
AC
7861/* Override any gcc2 internal prototype to avoid an error. */
7862#ifdef __cplusplus
7863extern "C"
7864#endif
7865/* We use char because int might match the return type of a gcc2
7866 builtin and then its argument prototype would still apply. */
7867char gethostbyname ();
7868int
7869main ()
7870{
7871gethostbyname ();
7872 ;
7873 return 0;
7874}
7875_ACEOF
7876rm -f conftest.$ac_objext conftest$ac_exeext
7877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7878 (eval $ac_link) 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try='test -z "$ac_c_werror_flag"
7886 || test ! -s conftest.err'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 (eval $ac_try) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_search_gethostbyname="-l$ac_lib"
7899break
7900else
7901 echo "$as_me: failed program was:" >&5
7902sed 's/^/| /' conftest.$ac_ext >&5
7903
7904fi
7905rm -f conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7907 done
bec39cab
AC
7908fi
7909LIBS=$ac_func_search_save_LIBS
7910fi
7911echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7912echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7913if test "$ac_cv_search_gethostbyname" != no; then
7914 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7915
ddc9cd0f
AC
7916fi
7917
0fbb3da7 7918
bec39cab
AC
7919# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7920echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7921echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7922if test "${ac_cv_search_socketpair+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
7925 ac_func_search_save_LIBS=$LIBS
7926ac_cv_search_socketpair=no
7927cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h. */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h. */
0fbb3da7 7933
bec39cab
AC
7934/* Override any gcc2 internal prototype to avoid an error. */
7935#ifdef __cplusplus
7936extern "C"
7937#endif
7938/* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7940char socketpair ();
7941int
7942main ()
7943{
7944socketpair ();
7945 ;
7946 return 0;
7947}
7948_ACEOF
7949rm -f conftest.$ac_objext conftest$ac_exeext
7950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951 (eval $ac_link) 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag"
7959 || test ! -s conftest.err'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; } &&
7965 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7971 ac_cv_search_socketpair="none required"
7972else
7973 echo "$as_me: failed program was:" >&5
7974sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7975
5b5d99cf 7976fi
bec39cab
AC
7977rm -f conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979if test "$ac_cv_search_socketpair" = no; then
7980 for ac_lib in socket; do
7981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7982 cat >conftest.$ac_ext <<_ACEOF
7983/* confdefs.h. */
7984_ACEOF
7985cat confdefs.h >>conftest.$ac_ext
7986cat >>conftest.$ac_ext <<_ACEOF
7987/* end confdefs.h. */
5b5d99cf 7988
bec39cab
AC
7989/* Override any gcc2 internal prototype to avoid an error. */
7990#ifdef __cplusplus
7991extern "C"
7992#endif
7993/* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
7995char socketpair ();
7996int
7997main ()
7998{
7999socketpair ();
8000 ;
8001 return 0;
8002}
8003_ACEOF
8004rm -f conftest.$ac_objext conftest$ac_exeext
8005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_search_socketpair="-l$ac_lib"
8027break
8028else
8029 echo "$as_me: failed program was:" >&5
8030sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8031
bec39cab
AC
8032fi
8033rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 done
8036fi
8037LIBS=$ac_func_search_save_LIBS
8038fi
8039echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8040echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8041if test "$ac_cv_search_socketpair" != no; then
8042 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8043
bec39cab 8044fi
96baa820 8045
c906108c 8046
bec39cab
AC
8047# For the TUI, we need enhanced curses functionality.
8048#
8049# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8050# curses library because the latter might not provide all the
8051# functionality we need. However, this leads to problems on systems
8052# where the linker searches /usr/local/lib, but the compiler doesn't
8053# search /usr/local/include, if ncurses is installed in /usr/local. A
8054# default installation of ncurses on alpha*-dec-osf* will lead to such
8055# a situation.
8056echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8057echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8058if test "${ac_cv_search_waddstr+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061 ac_func_search_save_LIBS=$LIBS
8062ac_cv_search_waddstr=no
8063cat >conftest.$ac_ext <<_ACEOF
8064/* confdefs.h. */
8065_ACEOF
8066cat confdefs.h >>conftest.$ac_ext
8067cat >>conftest.$ac_ext <<_ACEOF
8068/* end confdefs.h. */
c906108c 8069
bec39cab
AC
8070/* Override any gcc2 internal prototype to avoid an error. */
8071#ifdef __cplusplus
8072extern "C"
8073#endif
8074/* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8076char waddstr ();
8077int
8078main ()
8079{
8080waddstr ();
8081 ;
8082 return 0;
8083}
8084_ACEOF
8085rm -f conftest.$ac_objext conftest$ac_exeext
8086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087 (eval $ac_link) 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -z "$ac_c_werror_flag"
8095 || test ! -s conftest.err'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; } &&
8101 { ac_try='test -s conftest$ac_exeext'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_search_waddstr="none required"
8108else
8109 echo "$as_me: failed program was:" >&5
8110sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8111
bec39cab
AC
8112fi
8113rm -f conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8115if test "$ac_cv_search_waddstr" = no; then
8116 for ac_lib in ncurses cursesX curses; do
8117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8118 cat >conftest.$ac_ext <<_ACEOF
8119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
1ba607ad 8124
bec39cab
AC
8125/* Override any gcc2 internal prototype to avoid an error. */
8126#ifdef __cplusplus
8127extern "C"
8128#endif
8129/* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131char waddstr ();
8132int
8133main ()
8134{
8135waddstr ();
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext conftest$ac_exeext
8141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8142 (eval $ac_link) 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -z "$ac_c_werror_flag"
8150 || test ! -s conftest.err'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest$ac_exeext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_cv_search_waddstr="-l$ac_lib"
8163break
8164else
8165 echo "$as_me: failed program was:" >&5
8166sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8167
8168fi
bec39cab
AC
8169rm -f conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171 done
1ba607ad 8172fi
bec39cab
AC
8173LIBS=$ac_func_search_save_LIBS
8174fi
8175echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8176echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8177if test "$ac_cv_search_waddstr" != no; then
8178 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8179
8bb2c122 8180fi
8bb2c122 8181
8bb2c122 8182
bec39cab
AC
8183# Since GDB uses Readline, we need termcap functionality. In many
8184# cases this will be provided by the curses library, but some systems
8185# have a seperate termcap library, or no curses library at all.
8bb2c122 8186
bec39cab
AC
8187case $host_os in
8188 cygwin*)
8189 if test -d $srcdir/libtermcap; then
8190 LIBS="../libtermcap/libtermcap.a $LIBS"
8191 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8192 fi ;;
8193 go32* | *djgpp*)
8194 ac_cv_search_tgetent="none required"
8195 ;;
7ef34f2c
MM
8196 *mingw32*)
8197 ac_cv_search_tgetent="none required"
8198 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8199 ;;
bec39cab 8200esac
627af7ea 8201
bec39cab
AC
8202# These are the libraries checked by Readline.
8203echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8204echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8205if test "${ac_cv_search_tgetent+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8207else
8208 ac_func_search_save_LIBS=$LIBS
8209ac_cv_search_tgetent=no
8210cat >conftest.$ac_ext <<_ACEOF
8211/* confdefs.h. */
8212_ACEOF
8213cat confdefs.h >>conftest.$ac_ext
8214cat >>conftest.$ac_ext <<_ACEOF
8215/* end confdefs.h. */
8216
8217/* Override any gcc2 internal prototype to avoid an error. */
8218#ifdef __cplusplus
8219extern "C"
8220#endif
8221/* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8223char tgetent ();
8224int
8225main ()
8226{
8227tgetent ();
8228 ;
8229 return 0;
8230}
8231_ACEOF
8232rm -f conftest.$ac_objext conftest$ac_exeext
8233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234 (eval $ac_link) 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest$ac_exeext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_search_tgetent="none required"
627af7ea 8255else
bec39cab
AC
8256 echo "$as_me: failed program was:" >&5
8257sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8258
627af7ea 8259fi
bec39cab
AC
8260rm -f conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
8262if test "$ac_cv_search_tgetent" = no; then
8263 for ac_lib in termcap tinfo curses ncurses; do
8264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8265 cat >conftest.$ac_ext <<_ACEOF
8266/* confdefs.h. */
8267_ACEOF
8268cat confdefs.h >>conftest.$ac_ext
8269cat >>conftest.$ac_ext <<_ACEOF
8270/* end confdefs.h. */
627af7ea 8271
bec39cab
AC
8272/* Override any gcc2 internal prototype to avoid an error. */
8273#ifdef __cplusplus
8274extern "C"
8275#endif
8276/* We use char because int might match the return type of a gcc2
8277 builtin and then its argument prototype would still apply. */
8278char tgetent ();
8279int
8280main ()
8281{
8282tgetent ();
8283 ;
8284 return 0;
8285}
8286_ACEOF
8287rm -f conftest.$ac_objext conftest$ac_exeext
8288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag"
8297 || test ! -s conftest.err'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest$ac_exeext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 (eval $ac_try) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_cv_search_tgetent="-l$ac_lib"
8310break
627af7ea 8311else
bec39cab
AC
8312 echo "$as_me: failed program was:" >&5
8313sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8314
627af7ea 8315fi
bec39cab
AC
8316rm -f conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318 done
8319fi
8320LIBS=$ac_func_search_save_LIBS
8321fi
8322echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8323echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8324if test "$ac_cv_search_tgetent" != no; then
8325 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8326
06825bd1
MK
8327fi
8328
06825bd1 8329
bec39cab
AC
8330if test "$ac_cv_search_tgetent" = no; then
8331 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8332echo "$as_me: error: no termcap library found" >&2;}
8333 { (exit 1); exit 1; }; }
8ee53726
MK
8334fi
8335
bec39cab
AC
8336# ------------------------- #
8337# Checks for header files. #
8338# ------------------------- #
8ee53726 8339
0e5d83e3 8340
bec39cab
AC
8341
8342
8343
8344
8345ac_header_dirent=no
8346for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8347 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8348echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8349echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8350if eval "test \"\${$as_ac_Header+set}\" = set"; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353 cat >conftest.$ac_ext <<_ACEOF
8354/* confdefs.h. */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
8358/* end confdefs.h. */
8359#include <sys/types.h>
0e5d83e3 8360#include <$ac_hdr>
bec39cab
AC
8361
8362int
8363main ()
8364{
8365if ((DIR *) 0)
8366return 0;
8367 ;
8368 return 0;
8369}
8370_ACEOF
8371rm -f conftest.$ac_objext
8372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest.$ac_objext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 eval "$as_ac_Header=yes"
8394else
8395 echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
8398eval "$as_ac_Header=no"
8399fi
8400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8401fi
8402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8404if test `eval echo '${'$as_ac_Header'}'` = yes; then
8405 cat >>confdefs.h <<_ACEOF
8406#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8407_ACEOF
8408
8409ac_header_dirent=$ac_hdr; break
0e5d83e3 8410fi
0e5d83e3 8411
bec39cab
AC
8412done
8413# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8414if test $ac_header_dirent = dirent.h; then
8415 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8416echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8417if test "${ac_cv_search_opendir+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420 ac_func_search_save_LIBS=$LIBS
8421ac_cv_search_opendir=no
8422cat >conftest.$ac_ext <<_ACEOF
8423/* confdefs.h. */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h. */
0e5d83e3 8428
bec39cab
AC
8429/* Override any gcc2 internal prototype to avoid an error. */
8430#ifdef __cplusplus
8431extern "C"
8432#endif
8433/* We use char because int might match the return type of a gcc2
8434 builtin and then its argument prototype would still apply. */
8435char opendir ();
8436int
8437main ()
8438{
8439opendir ();
8440 ;
8441 return 0;
8442}
8443_ACEOF
8444rm -f conftest.$ac_objext conftest$ac_exeext
8445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -z "$ac_c_werror_flag"
8454 || test ! -s conftest.err'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_search_opendir="none required"
8467else
8468 echo "$as_me: failed program was:" >&5
8469sed 's/^/| /' conftest.$ac_ext >&5
8470
8471fi
8472rm -f conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8474if test "$ac_cv_search_opendir" = no; then
8475 for ac_lib in dir; do
8476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
0e5d83e3 8483
bec39cab
AC
8484/* Override any gcc2 internal prototype to avoid an error. */
8485#ifdef __cplusplus
8486extern "C"
8487#endif
8488/* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8490char opendir ();
8491int
8492main ()
8493{
8494opendir ();
8495 ;
8496 return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext conftest$ac_exeext
8500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try='test -z "$ac_c_werror_flag"
8509 || test ! -s conftest.err'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 (eval $ac_try) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; } &&
8515 { ac_try='test -s conftest$ac_exeext'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 (eval $ac_try) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 ac_cv_search_opendir="-l$ac_lib"
8522break
0e5d83e3 8523else
bec39cab
AC
8524 echo "$as_me: failed program was:" >&5
8525sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8526
0e5d83e3 8527fi
bec39cab
AC
8528rm -f conftest.err conftest.$ac_objext \
8529 conftest$ac_exeext conftest.$ac_ext
8530 done
0e5d83e3 8531fi
bec39cab 8532LIBS=$ac_func_search_save_LIBS
0e5d83e3 8533fi
bec39cab
AC
8534echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535echo "${ECHO_T}$ac_cv_search_opendir" >&6
8536if test "$ac_cv_search_opendir" != no; then
8537 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8538
0e5d83e3
JJ
8539fi
8540
d28f9cdf 8541else
bec39cab
AC
8542 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8543echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8544if test "${ac_cv_search_opendir+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
8547 ac_func_search_save_LIBS=$LIBS
8548ac_cv_search_opendir=no
8549cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h. */
d28f9cdf 8555
d28f9cdf 8556/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8557#ifdef __cplusplus
8558extern "C"
8559#endif
d28f9cdf 8560/* We use char because int might match the return type of a gcc2
bec39cab
AC
8561 builtin and then its argument prototype would still apply. */
8562char opendir ();
8563int
8564main ()
8565{
8566opendir ();
8567 ;
8568 return 0;
8569}
8570_ACEOF
8571rm -f conftest.$ac_objext conftest$ac_exeext
8572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_search_opendir="none required"
8594else
8595 echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
8598fi
8599rm -f conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8601if test "$ac_cv_search_opendir" = no; then
8602 for ac_lib in x; do
8603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8604 cat >conftest.$ac_ext <<_ACEOF
8605/* confdefs.h. */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h. */
d28f9cdf 8610
bec39cab
AC
8611/* Override any gcc2 internal prototype to avoid an error. */
8612#ifdef __cplusplus
8613extern "C"
d28f9cdf 8614#endif
bec39cab
AC
8615/* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8617char opendir ();
8618int
8619main ()
8620{
8621opendir ();
8622 ;
8623 return 0;
8624}
8625_ACEOF
8626rm -f conftest.$ac_objext conftest$ac_exeext
8627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628 (eval $ac_link) 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } &&
8635 { ac_try='test -z "$ac_c_werror_flag"
8636 || test ! -s conftest.err'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; } &&
8642 { ac_try='test -s conftest$ac_exeext'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 ac_cv_search_opendir="-l$ac_lib"
8649break
d28f9cdf 8650else
bec39cab
AC
8651 echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
d28f9cdf 8654fi
bec39cab
AC
8655rm -f conftest.err conftest.$ac_objext \
8656 conftest$ac_exeext conftest.$ac_ext
8657 done
8658fi
8659LIBS=$ac_func_search_save_LIBS
d28f9cdf 8660fi
bec39cab
AC
8661echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8662echo "${ECHO_T}$ac_cv_search_opendir" >&6
8663if test "$ac_cv_search_opendir" != no; then
8664 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8665
d28f9cdf
DJ
8666fi
8667
bec39cab 8668fi
b0b1c2c0 8669
bec39cab
AC
8670echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8671echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8672if test "${ac_cv_header_stat_broken+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8674else
bec39cab
AC
8675 cat >conftest.$ac_ext <<_ACEOF
8676/* confdefs.h. */
8677_ACEOF
8678cat confdefs.h >>conftest.$ac_ext
8679cat >>conftest.$ac_ext <<_ACEOF
8680/* end confdefs.h. */
8681#include <sys/types.h>
8682#include <sys/stat.h>
b0b1c2c0 8683
bec39cab
AC
8684#if defined(S_ISBLK) && defined(S_IFDIR)
8685# if S_ISBLK (S_IFDIR)
8686You lose.
8687# endif
8688#endif
b0b1c2c0 8689
bec39cab
AC
8690#if defined(S_ISBLK) && defined(S_IFCHR)
8691# if S_ISBLK (S_IFCHR)
8692You lose.
8693# endif
8694#endif
d28f9cdf 8695
bec39cab
AC
8696#if defined(S_ISLNK) && defined(S_IFREG)
8697# if S_ISLNK (S_IFREG)
8698You lose.
8699# endif
8700#endif
d28f9cdf 8701
bec39cab
AC
8702#if defined(S_ISSOCK) && defined(S_IFREG)
8703# if S_ISSOCK (S_IFREG)
8704You lose.
8705# endif
8706#endif
8707
8708_ACEOF
8709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8710 $EGREP "You lose" >/dev/null 2>&1; then
8711 ac_cv_header_stat_broken=yes
d28f9cdf 8712else
bec39cab 8713 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8714fi
8715rm -f conftest*
d28f9cdf 8716
d28f9cdf 8717fi
bec39cab
AC
8718echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8719echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8720if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8721
bec39cab
AC
8722cat >>confdefs.h <<\_ACEOF
8723#define STAT_MACROS_BROKEN 1
8724_ACEOF
8bb2c122 8725
7a292a7a 8726fi
bec39cab
AC
8727
8728echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8729echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8730if test "${ac_cv_header_stdc+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8732else
bec39cab
AC
8733 cat >conftest.$ac_ext <<_ACEOF
8734/* confdefs.h. */
8735_ACEOF
8736cat confdefs.h >>conftest.$ac_ext
8737cat >>conftest.$ac_ext <<_ACEOF
8738/* end confdefs.h. */
8739#include <stdlib.h>
8740#include <stdarg.h>
8741#include <string.h>
8742#include <float.h>
7a292a7a 8743
bec39cab
AC
8744int
8745main ()
8746{
7a292a7a 8747
bec39cab
AC
8748 ;
8749 return 0;
8750}
8751_ACEOF
8752rm -f conftest.$ac_objext
8753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_header_stdc=yes
c906108c 8775else
bec39cab
AC
8776 echo "$as_me: failed program was:" >&5
8777sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8778
bec39cab 8779ac_cv_header_stdc=no
c906108c 8780fi
bec39cab 8781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8782
bec39cab
AC
8783if test $ac_cv_header_stdc = yes; then
8784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8785 cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h. */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h. */
8791#include <string.h>
c906108c 8792
bec39cab
AC
8793_ACEOF
8794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8795 $EGREP "memchr" >/dev/null 2>&1; then
8796 :
8bb2c122 8797else
bec39cab 8798 ac_cv_header_stdc=no
8bb2c122 8799fi
bec39cab
AC
8800rm -f conftest*
8801
c906108c
SS
8802fi
8803
bec39cab
AC
8804if test $ac_cv_header_stdc = yes; then
8805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8806 cat >conftest.$ac_ext <<_ACEOF
8807/* confdefs.h. */
8808_ACEOF
8809cat confdefs.h >>conftest.$ac_ext
8810cat >>conftest.$ac_ext <<_ACEOF
8811/* end confdefs.h. */
8812#include <stdlib.h>
8813
8814_ACEOF
8815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8816 $EGREP "free" >/dev/null 2>&1; then
8817 :
c906108c 8818else
bec39cab 8819 ac_cv_header_stdc=no
c906108c 8820fi
bec39cab
AC
8821rm -f conftest*
8822
c906108c
SS
8823fi
8824
bec39cab
AC
8825if test $ac_cv_header_stdc = yes; then
8826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8827 if test "$cross_compiling" = yes; then
8828 :
c906108c 8829else
bec39cab
AC
8830 cat >conftest.$ac_ext <<_ACEOF
8831/* confdefs.h. */
8832_ACEOF
8833cat confdefs.h >>conftest.$ac_ext
8834cat >>conftest.$ac_ext <<_ACEOF
8835/* end confdefs.h. */
8836#include <ctype.h>
8837#if ((' ' & 0x0FF) == 0x020)
8838# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8839# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8840#else
8841# define ISLOWER(c) \
8842 (('a' <= (c) && (c) <= 'i') \
8843 || ('j' <= (c) && (c) <= 'r') \
8844 || ('s' <= (c) && (c) <= 'z'))
8845# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8846#endif
8847
8848#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8849int
8850main ()
8851{
8852 int i;
8853 for (i = 0; i < 256; i++)
8854 if (XOR (islower (i), ISLOWER (i))
8855 || toupper (i) != TOUPPER (i))
8856 exit(2);
8857 exit (0);
8858}
8859_ACEOF
8860rm -f conftest$ac_exeext
8861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862 (eval $ac_link) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 :
8872else
8873 echo "$as_me: program exited with status $ac_status" >&5
8874echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877( exit $ac_status )
8878ac_cv_header_stdc=no
c906108c 8879fi
bec39cab 8880rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8881fi
c906108c 8882fi
bec39cab
AC
8883fi
8884echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8885echo "${ECHO_T}$ac_cv_header_stdc" >&6
8886if test $ac_cv_header_stdc = yes; then
c906108c 8887
bec39cab
AC
8888cat >>confdefs.h <<\_ACEOF
8889#define STDC_HEADERS 1
8890_ACEOF
c906108c 8891
bec39cab 8892fi
8bb2c122 8893
bec39cab 8894
7cb9022a 8895for ac_header in nlist.h
bec39cab
AC
8896do
8897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8898if eval "test \"\${$as_ac_Header+set}\" = set"; then
8899 echo "$as_me:$LINENO: checking for $ac_header" >&5
8900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8901if eval "test \"\${$as_ac_Header+set}\" = set"; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8903fi
8904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8906else
8907 # Is the header compilable?
8908echo "$as_me:$LINENO: checking $ac_header usability" >&5
8909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8910cat >conftest.$ac_ext <<_ACEOF
8911/* confdefs.h. */
8912_ACEOF
8913cat confdefs.h >>conftest.$ac_ext
8914cat >>conftest.$ac_ext <<_ACEOF
8915/* end confdefs.h. */
8916$ac_includes_default
8917#include <$ac_header>
8918_ACEOF
8919rm -f conftest.$ac_objext
8920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest.$ac_objext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_header_compiler=yes
8942else
8943 echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946ac_header_compiler=no
8947fi
8948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950echo "${ECHO_T}$ac_header_compiler" >&6
8951
8952# Is the header present?
8953echo "$as_me:$LINENO: checking $ac_header presence" >&5
8954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8955cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h. */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h. */
8961#include <$ac_header>
8962_ACEOF
8963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } >/dev/null; then
8971 if test -s conftest.err; then
8972 ac_cpp_err=$ac_c_preproc_warn_flag
8973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8974 else
8975 ac_cpp_err=
8976 fi
c906108c 8977else
bec39cab 8978 ac_cpp_err=yes
c906108c 8979fi
bec39cab
AC
8980if test -z "$ac_cpp_err"; then
8981 ac_header_preproc=yes
c906108c 8982else
bec39cab
AC
8983 echo "$as_me: failed program was:" >&5
8984sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 8985
bec39cab
AC
8986 ac_header_preproc=no
8987fi
8988rm -f conftest.err conftest.$ac_ext
8989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8990echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8991
bec39cab
AC
8992# So? What about this header?
8993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8994 yes:no: )
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8998echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8999 ac_header_preproc=yes
9000 ;;
9001 no:yes:* )
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9007echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9009echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9014 (
9015 cat <<\_ASBOX
9016## ------------------------------------------ ##
9017## Report this to the AC_PACKAGE_NAME lists. ##
9018## ------------------------------------------ ##
9019_ASBOX
9020 ) |
9021 sed "s/^/$as_me: WARNING: /" >&2
9022 ;;
9023esac
9024echo "$as_me:$LINENO: checking for $ac_header" >&5
9025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9026if eval "test \"\${$as_ac_Header+set}\" = set"; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9028else
bec39cab 9029 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9030fi
bec39cab
AC
9031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9033
95ca63c4 9034fi
bec39cab
AC
9035if test `eval echo '${'$as_ac_Header'}'` = yes; then
9036 cat >>confdefs.h <<_ACEOF
9037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9038_ACEOF
9039
95ca63c4
CF
9040fi
9041
bec39cab 9042done
95ca63c4
CF
9043
9044
7cb9022a 9045for ac_header in link.h
bec39cab
AC
9046do
9047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 9048echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
9049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9050if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9052else
7cb9022a 9053 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9054/* confdefs.h. */
9055_ACEOF
9056cat confdefs.h >>conftest.$ac_ext
9057cat >>conftest.$ac_ext <<_ACEOF
9058/* end confdefs.h. */
7cb9022a
MK
9059#if HAVE_SYS_TYPES_H
9060# include <sys/types.h>
9061#endif
9062#if HAVE_NLIST_H
9063# include <nlist.h>
9064#endif
9065
9066
bec39cab
AC
9067#include <$ac_header>
9068_ACEOF
9069rm -f conftest.$ac_objext
9070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9071 (eval $ac_compile) 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag"
9079 || test ! -s conftest.err'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; } &&
9085 { ac_try='test -s conftest.$ac_objext'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 (eval $ac_try) 2>&5
9088 ac_status=$?
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; }; then
7cb9022a 9091 eval "$as_ac_Header=yes"
bec39cab
AC
9092else
9093 echo "$as_me: failed program was:" >&5
9094sed 's/^/| /' conftest.$ac_ext >&5
9095
7cb9022a 9096eval "$as_ac_Header=no"
bec39cab
AC
9097fi
9098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9099fi
9100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9102if test `eval echo '${'$as_ac_Header'}'` = yes; then
9103 cat >>confdefs.h <<_ACEOF
9104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9105_ACEOF
95ca63c4 9106
bec39cab 9107fi
95ca63c4 9108
bec39cab 9109done
95ca63c4 9110
c906108c 9111
7cb9022a 9112for ac_header in machine/reg.h
bec39cab
AC
9113do
9114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9115if eval "test \"\${$as_ac_Header+set}\" = set"; then
9116 echo "$as_me:$LINENO: checking for $ac_header" >&5
9117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9118if eval "test \"\${$as_ac_Header+set}\" = set"; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120fi
9121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9123else
9124 # Is the header compilable?
9125echo "$as_me:$LINENO: checking $ac_header usability" >&5
9126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9127cat >conftest.$ac_ext <<_ACEOF
9128/* confdefs.h. */
9129_ACEOF
9130cat confdefs.h >>conftest.$ac_ext
9131cat >>conftest.$ac_ext <<_ACEOF
9132/* end confdefs.h. */
9133$ac_includes_default
9134#include <$ac_header>
9135_ACEOF
9136rm -f conftest.$ac_objext
9137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138 (eval $ac_compile) 2>conftest.er1
9139 ac_status=$?
9140 grep -v '^ *+' conftest.er1 >conftest.err
9141 rm -f conftest.er1
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try='test -z "$ac_c_werror_flag"
9146 || test ! -s conftest.err'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 (eval $ac_try) 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; } &&
9152 { ac_try='test -s conftest.$ac_objext'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 (eval $ac_try) 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; }; then
9158 ac_header_compiler=yes
9159else
9160 echo "$as_me: failed program was:" >&5
9161sed 's/^/| /' conftest.$ac_ext >&5
9162
9163ac_header_compiler=no
9164fi
9165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9167echo "${ECHO_T}$ac_header_compiler" >&6
9168
9169# Is the header present?
9170echo "$as_me:$LINENO: checking $ac_header presence" >&5
9171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9172cat >conftest.$ac_ext <<_ACEOF
9173/* confdefs.h. */
9174_ACEOF
9175cat confdefs.h >>conftest.$ac_ext
9176cat >>conftest.$ac_ext <<_ACEOF
9177/* end confdefs.h. */
9178#include <$ac_header>
9179_ACEOF
9180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } >/dev/null; then
9188 if test -s conftest.err; then
9189 ac_cpp_err=$ac_c_preproc_warn_flag
9190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9191 else
9192 ac_cpp_err=
9193 fi
75c6e08a 9194else
bec39cab 9195 ac_cpp_err=yes
75c6e08a 9196fi
bec39cab
AC
9197if test -z "$ac_cpp_err"; then
9198 ac_header_preproc=yes
9199else
9200 echo "$as_me: failed program was:" >&5
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
9203 ac_header_preproc=no
75c6e08a 9204fi
bec39cab
AC
9205rm -f conftest.err conftest.$ac_ext
9206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9207echo "${ECHO_T}$ac_header_preproc" >&6
9208
9209# So? What about this header?
9210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9211 yes:no: )
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9216 ac_header_preproc=yes
9217 ;;
9218 no:yes:* )
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9231 (
9232 cat <<\_ASBOX
9233## ------------------------------------------ ##
9234## Report this to the AC_PACKAGE_NAME lists. ##
9235## ------------------------------------------ ##
9236_ASBOX
9237 ) |
9238 sed "s/^/$as_me: WARNING: /" >&2
9239 ;;
9240esac
9241echo "$as_me:$LINENO: checking for $ac_header" >&5
9242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9243if eval "test \"\${$as_ac_Header+set}\" = set"; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9245else
bec39cab
AC
9246 eval "$as_ac_Header=\$ac_header_preproc"
9247fi
9248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9250
75c6e08a 9251fi
bec39cab
AC
9252if test `eval echo '${'$as_ac_Header'}'` = yes; then
9253 cat >>confdefs.h <<_ACEOF
9254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9255_ACEOF
75c6e08a 9256
bec39cab 9257fi
75c6e08a 9258
bec39cab 9259done
75c6e08a
MK
9260
9261
9a156167 9262
bec39cab
AC
9263for ac_header in poll.h sys/poll.h
9264do
9265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9266if eval "test \"\${$as_ac_Header+set}\" = set"; then
9267 echo "$as_me:$LINENO: checking for $ac_header" >&5
9268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9269if eval "test \"\${$as_ac_Header+set}\" = set"; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271fi
9272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9274else
9275 # Is the header compilable?
9276echo "$as_me:$LINENO: checking $ac_header usability" >&5
9277echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9278cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h. */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h. */
9284$ac_includes_default
9285#include <$ac_header>
9286_ACEOF
9287rm -f conftest.$ac_objext
9288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9289 (eval $ac_compile) 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } &&
9296 { ac_try='test -z "$ac_c_werror_flag"
9297 || test ! -s conftest.err'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; } &&
9303 { ac_try='test -s conftest.$ac_objext'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 (eval $ac_try) 2>&5
9306 ac_status=$?
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9309 ac_header_compiler=yes
9310else
9311 echo "$as_me: failed program was:" >&5
9312sed 's/^/| /' conftest.$ac_ext >&5
9313
9314ac_header_compiler=no
9315fi
9316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9318echo "${ECHO_T}$ac_header_compiler" >&6
9319
9320# Is the header present?
9321echo "$as_me:$LINENO: checking $ac_header presence" >&5
9322echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9323cat >conftest.$ac_ext <<_ACEOF
9324/* confdefs.h. */
9325_ACEOF
9326cat confdefs.h >>conftest.$ac_ext
9327cat >>conftest.$ac_ext <<_ACEOF
9328/* end confdefs.h. */
9329#include <$ac_header>
9330_ACEOF
9331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9333 ac_status=$?
9334 grep -v '^ *+' conftest.er1 >conftest.err
9335 rm -f conftest.er1
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } >/dev/null; then
9339 if test -s conftest.err; then
9340 ac_cpp_err=$ac_c_preproc_warn_flag
9341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9342 else
9343 ac_cpp_err=
9344 fi
9a156167 9345else
bec39cab 9346 ac_cpp_err=yes
9a156167 9347fi
bec39cab
AC
9348if test -z "$ac_cpp_err"; then
9349 ac_header_preproc=yes
9350else
9351 echo "$as_me: failed program was:" >&5
9352sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9353
bec39cab 9354 ac_header_preproc=no
9a156167 9355fi
bec39cab
AC
9356rm -f conftest.err conftest.$ac_ext
9357echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9358echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9359
bec39cab
AC
9360# So? What about this header?
9361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9362 yes:no: )
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9364echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9366echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9367 ac_header_preproc=yes
9368 ;;
9369 no:yes:* )
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9371echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9373echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9375echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9377echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9379echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9381echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9382 (
9383 cat <<\_ASBOX
9384## ------------------------------------------ ##
9385## Report this to the AC_PACKAGE_NAME lists. ##
9386## ------------------------------------------ ##
9387_ASBOX
9388 ) |
9389 sed "s/^/$as_me: WARNING: /" >&2
9390 ;;
9391esac
9392echo "$as_me:$LINENO: checking for $ac_header" >&5
9393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9394if eval "test \"\${$as_ac_Header+set}\" = set"; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9396else
bec39cab 9397 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9398fi
bec39cab
AC
9399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9401
bec39cab
AC
9402fi
9403if test `eval echo '${'$as_ac_Header'}'` = yes; then
9404 cat >>confdefs.h <<_ACEOF
9405#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9406_ACEOF
9a156167 9407
bec39cab 9408fi
9a156167 9409
bec39cab 9410done
9a156167 9411
9a156167 9412
9a156167 9413
bec39cab
AC
9414
9415for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9416do
9417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9418if eval "test \"\${$as_ac_Header+set}\" = set"; then
9419 echo "$as_me:$LINENO: checking for $ac_header" >&5
9420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9421if eval "test \"\${$as_ac_Header+set}\" = set"; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423fi
9424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9426else
9427 # Is the header compilable?
9428echo "$as_me:$LINENO: checking $ac_header usability" >&5
9429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9430cat >conftest.$ac_ext <<_ACEOF
9431/* confdefs.h. */
9432_ACEOF
9433cat confdefs.h >>conftest.$ac_ext
9434cat >>conftest.$ac_ext <<_ACEOF
9435/* end confdefs.h. */
9436$ac_includes_default
9437#include <$ac_header>
9438_ACEOF
9439rm -f conftest.$ac_objext
9440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9441 (eval $ac_compile) 2>conftest.er1
9442 ac_status=$?
9443 grep -v '^ *+' conftest.er1 >conftest.err
9444 rm -f conftest.er1
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try='test -z "$ac_c_werror_flag"
9449 || test ! -s conftest.err'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 (eval $ac_try) 2>&5
9452 ac_status=$?
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; } &&
9455 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9461 ac_header_compiler=yes
9462else
9463 echo "$as_me: failed program was:" >&5
9464sed 's/^/| /' conftest.$ac_ext >&5
9465
9466ac_header_compiler=no
9467fi
9468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9470echo "${ECHO_T}$ac_header_compiler" >&6
9471
9472# Is the header present?
9473echo "$as_me:$LINENO: checking $ac_header presence" >&5
9474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9475cat >conftest.$ac_ext <<_ACEOF
9476/* confdefs.h. */
9477_ACEOF
9478cat confdefs.h >>conftest.$ac_ext
9479cat >>conftest.$ac_ext <<_ACEOF
9480/* end confdefs.h. */
9481#include <$ac_header>
9482_ACEOF
9483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } >/dev/null; then
9491 if test -s conftest.err; then
9492 ac_cpp_err=$ac_c_preproc_warn_flag
9493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9494 else
9495 ac_cpp_err=
9496 fi
9a156167 9497else
bec39cab 9498 ac_cpp_err=yes
9a156167 9499fi
bec39cab
AC
9500if test -z "$ac_cpp_err"; then
9501 ac_header_preproc=yes
9502else
9503 echo "$as_me: failed program was:" >&5
9504sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9505
bec39cab 9506 ac_header_preproc=no
9a156167 9507fi
bec39cab
AC
9508rm -f conftest.err conftest.$ac_ext
9509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9510echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9511
bec39cab
AC
9512# So? What about this header?
9513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9514 yes:no: )
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9519 ac_header_preproc=yes
9520 ;;
9521 no:yes:* )
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9525echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9529echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9534 (
9535 cat <<\_ASBOX
9536## ------------------------------------------ ##
9537## Report this to the AC_PACKAGE_NAME lists. ##
9538## ------------------------------------------ ##
9539_ASBOX
9540 ) |
9541 sed "s/^/$as_me: WARNING: /" >&2
9542 ;;
9543esac
9544echo "$as_me:$LINENO: checking for $ac_header" >&5
9545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9546if eval "test \"\${$as_ac_Header+set}\" = set"; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9548else
bec39cab 9549 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9550fi
bec39cab
AC
9551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9553
9554fi
bec39cab
AC
9555if test `eval echo '${'$as_ac_Header'}'` = yes; then
9556 cat >>confdefs.h <<_ACEOF
9557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9558_ACEOF
9a156167 9559
bec39cab
AC
9560fi
9561
9562done
9a156167 9563
c890192f 9564
bec39cab
AC
9565for ac_header in stddef.h
9566do
9567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9568if eval "test \"\${$as_ac_Header+set}\" = set"; then
9569 echo "$as_me:$LINENO: checking for $ac_header" >&5
9570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9571if eval "test \"\${$as_ac_Header+set}\" = set"; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573fi
9574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9576else
9577 # Is the header compilable?
9578echo "$as_me:$LINENO: checking $ac_header usability" >&5
9579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9580cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
9586$ac_includes_default
9587#include <$ac_header>
9588_ACEOF
9589rm -f conftest.$ac_objext
9590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest.$ac_objext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_header_compiler=yes
9612else
9613 echo "$as_me: failed program was:" >&5
9614sed 's/^/| /' conftest.$ac_ext >&5
9615
9616ac_header_compiler=no
9617fi
9618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9619echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620echo "${ECHO_T}$ac_header_compiler" >&6
9621
9622# Is the header present?
9623echo "$as_me:$LINENO: checking $ac_header presence" >&5
9624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9625cat >conftest.$ac_ext <<_ACEOF
9626/* confdefs.h. */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h. */
9631#include <$ac_header>
9632_ACEOF
9633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9635 ac_status=$?
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } >/dev/null; then
9641 if test -s conftest.err; then
9642 ac_cpp_err=$ac_c_preproc_warn_flag
9643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9644 else
9645 ac_cpp_err=
9646 fi
c890192f 9647else
bec39cab
AC
9648 ac_cpp_err=yes
9649fi
9650if test -z "$ac_cpp_err"; then
9651 ac_header_preproc=yes
c890192f 9652else
bec39cab
AC
9653 echo "$as_me: failed program was:" >&5
9654sed 's/^/| /' conftest.$ac_ext >&5
9655
9656 ac_header_preproc=no
c890192f 9657fi
bec39cab
AC
9658rm -f conftest.err conftest.$ac_ext
9659echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9660echo "${ECHO_T}$ac_header_preproc" >&6
9661
9662# So? What about this header?
9663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9664 yes:no: )
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9666echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9668echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9669 ac_header_preproc=yes
9670 ;;
9671 no:yes:* )
9672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9673echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9675echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9677echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9679echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9683echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9684 (
9685 cat <<\_ASBOX
9686## ------------------------------------------ ##
9687## Report this to the AC_PACKAGE_NAME lists. ##
9688## ------------------------------------------ ##
9689_ASBOX
9690 ) |
9691 sed "s/^/$as_me: WARNING: /" >&2
9692 ;;
9693esac
9694echo "$as_me:$LINENO: checking for $ac_header" >&5
9695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9696if eval "test \"\${$as_ac_Header+set}\" = set"; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9698else
bec39cab 9699 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9700fi
bec39cab
AC
9701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9703
c890192f 9704fi
bec39cab
AC
9705if test `eval echo '${'$as_ac_Header'}'` = yes; then
9706 cat >>confdefs.h <<_ACEOF
9707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9708_ACEOF
c890192f 9709
c890192f
MK
9710fi
9711
bec39cab 9712done
9a156167 9713
bec39cab
AC
9714
9715for ac_header in stdlib.h
9716do
9717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9718if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719 echo "$as_me:$LINENO: checking for $ac_header" >&5
9720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9721if eval "test \"\${$as_ac_Header+set}\" = set"; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723fi
9724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9726else
9727 # Is the header compilable?
9728echo "$as_me:$LINENO: checking $ac_header usability" >&5
9729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9730cat >conftest.$ac_ext <<_ACEOF
9731/* confdefs.h. */
9732_ACEOF
9733cat confdefs.h >>conftest.$ac_ext
9734cat >>conftest.$ac_ext <<_ACEOF
9735/* end confdefs.h. */
9736$ac_includes_default
9737#include <$ac_header>
9738_ACEOF
9739rm -f conftest.$ac_objext
9740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try='test -s conftest.$ac_objext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_header_compiler=yes
9762else
9763 echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766ac_header_compiler=no
9767fi
9768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9770echo "${ECHO_T}$ac_header_compiler" >&6
9771
9772# Is the header present?
9773echo "$as_me:$LINENO: checking $ac_header presence" >&5
9774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9775cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
9781#include <$ac_header>
9782_ACEOF
9783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } >/dev/null; then
9791 if test -s conftest.err; then
9792 ac_cpp_err=$ac_c_preproc_warn_flag
9793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9794 else
9795 ac_cpp_err=
9796 fi
9a156167 9797else
bec39cab
AC
9798 ac_cpp_err=yes
9799fi
9800if test -z "$ac_cpp_err"; then
9801 ac_header_preproc=yes
9a156167 9802else
bec39cab
AC
9803 echo "$as_me: failed program was:" >&5
9804sed 's/^/| /' conftest.$ac_ext >&5
9805
9806 ac_header_preproc=no
9a156167 9807fi
bec39cab
AC
9808rm -f conftest.err conftest.$ac_ext
9809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9810echo "${ECHO_T}$ac_header_preproc" >&6
9811
9812# So? What about this header?
9813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9814 yes:no: )
9815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9819 ac_header_preproc=yes
9820 ;;
9821 no:yes:* )
9822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9834 (
9835 cat <<\_ASBOX
9836## ------------------------------------------ ##
9837## Report this to the AC_PACKAGE_NAME lists. ##
9838## ------------------------------------------ ##
9839_ASBOX
9840 ) |
9841 sed "s/^/$as_me: WARNING: /" >&2
9842 ;;
9843esac
9844echo "$as_me:$LINENO: checking for $ac_header" >&5
9845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9846if eval "test \"\${$as_ac_Header+set}\" = set"; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9848else
bec39cab 9849 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9850fi
bec39cab
AC
9851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9853
9a156167 9854fi
bec39cab
AC
9855if test `eval echo '${'$as_ac_Header'}'` = yes; then
9856 cat >>confdefs.h <<_ACEOF
9857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9858_ACEOF
9a156167 9859
9a156167
MK
9860fi
9861
bec39cab
AC
9862done
9863
06825bd1 9864
bec39cab
AC
9865for ac_header in stdint.h
9866do
9867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9868if eval "test \"\${$as_ac_Header+set}\" = set"; then
9869 echo "$as_me:$LINENO: checking for $ac_header" >&5
9870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9871if eval "test \"\${$as_ac_Header+set}\" = set"; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873fi
9874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9876else
9877 # Is the header compilable?
9878echo "$as_me:$LINENO: checking $ac_header usability" >&5
9879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9880cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886$ac_includes_default
9887#include <$ac_header>
9888_ACEOF
9889rm -f conftest.$ac_objext
9890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9891 (eval $ac_compile) 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest.$ac_objext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_header_compiler=yes
9912else
9913 echo "$as_me: failed program was:" >&5
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
9916ac_header_compiler=no
9917fi
9918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9920echo "${ECHO_T}$ac_header_compiler" >&6
9921
9922# Is the header present?
9923echo "$as_me:$LINENO: checking $ac_header presence" >&5
9924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9925cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
9931#include <$ac_header>
9932_ACEOF
9933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } >/dev/null; then
9941 if test -s conftest.err; then
9942 ac_cpp_err=$ac_c_preproc_warn_flag
9943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9944 else
9945 ac_cpp_err=
9946 fi
06825bd1 9947else
bec39cab
AC
9948 ac_cpp_err=yes
9949fi
9950if test -z "$ac_cpp_err"; then
9951 ac_header_preproc=yes
06825bd1 9952else
bec39cab
AC
9953 echo "$as_me: failed program was:" >&5
9954sed 's/^/| /' conftest.$ac_ext >&5
9955
9956 ac_header_preproc=no
06825bd1 9957fi
bec39cab
AC
9958rm -f conftest.err conftest.$ac_ext
9959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9960echo "${ECHO_T}$ac_header_preproc" >&6
9961
9962# So? What about this header?
9963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9964 yes:no: )
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9969 ac_header_preproc=yes
9970 ;;
9971 no:yes:* )
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9984 (
9985 cat <<\_ASBOX
9986## ------------------------------------------ ##
9987## Report this to the AC_PACKAGE_NAME lists. ##
9988## ------------------------------------------ ##
9989_ASBOX
9990 ) |
9991 sed "s/^/$as_me: WARNING: /" >&2
9992 ;;
9993esac
9994echo "$as_me:$LINENO: checking for $ac_header" >&5
9995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9996if eval "test \"\${$as_ac_Header+set}\" = set"; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 9998else
bec39cab 9999 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10000fi
bec39cab
AC
10001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10003
06825bd1 10004fi
bec39cab
AC
10005if test `eval echo '${'$as_ac_Header'}'` = yes; then
10006 cat >>confdefs.h <<_ACEOF
10007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10008_ACEOF
06825bd1 10009
06825bd1 10010fi
4f0be353 10011
bec39cab 10012done
4f0be353 10013
06825bd1 10014
06825bd1 10015
bec39cab
AC
10016
10017for ac_header in string.h memory.h strings.h
10018do
10019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10020if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo "$as_me:$LINENO: checking for $ac_header" >&5
10022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10023if eval "test \"\${$as_ac_Header+set}\" = set"; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025fi
10026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10028else
10029 # Is the header compilable?
10030echo "$as_me:$LINENO: checking $ac_header usability" >&5
10031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10032cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h. */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
10038$ac_includes_default
10039#include <$ac_header>
10040_ACEOF
10041rm -f conftest.$ac_objext
10042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10063 ac_header_compiler=yes
10064else
10065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068ac_header_compiler=no
10069fi
10070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072echo "${ECHO_T}$ac_header_compiler" >&6
10073
10074# Is the header present?
10075echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083#include <$ac_header>
10084_ACEOF
10085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } >/dev/null; then
10093 if test -s conftest.err; then
10094 ac_cpp_err=$ac_c_preproc_warn_flag
10095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10096 else
10097 ac_cpp_err=
10098 fi
06825bd1 10099else
bec39cab
AC
10100 ac_cpp_err=yes
10101fi
10102if test -z "$ac_cpp_err"; then
10103 ac_header_preproc=yes
06825bd1 10104else
bec39cab
AC
10105 echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ac_header_preproc=no
06825bd1 10109fi
bec39cab
AC
10110rm -f conftest.err conftest.$ac_ext
10111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112echo "${ECHO_T}$ac_header_preproc" >&6
10113
10114# So? What about this header?
10115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10116 yes:no: )
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10122 ;;
10123 no:yes:* )
10124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136 (
10137 cat <<\_ASBOX
10138## ------------------------------------------ ##
10139## Report this to the AC_PACKAGE_NAME lists. ##
10140## ------------------------------------------ ##
10141_ASBOX
10142 ) |
10143 sed "s/^/$as_me: WARNING: /" >&2
10144 ;;
10145esac
10146echo "$as_me:$LINENO: checking for $ac_header" >&5
10147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10152fi
bec39cab
AC
10153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10155
06825bd1 10156fi
bec39cab
AC
10157if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160_ACEOF
06825bd1 10161
06825bd1
MK
10162fi
10163
bec39cab 10164done
5ee754fc 10165
bec39cab
AC
10166
10167for ac_header in sys/fault.h
5ee754fc 10168do
bec39cab
AC
10169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10170if eval "test \"\${$as_ac_Header+set}\" = set"; then
10171 echo "$as_me:$LINENO: checking for $ac_header" >&5
10172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10173if eval "test \"\${$as_ac_Header+set}\" = set"; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175fi
10176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10178else
10179 # Is the header compilable?
10180echo "$as_me:$LINENO: checking $ac_header usability" >&5
10181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10182cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h. */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h. */
10188$ac_includes_default
10189#include <$ac_header>
10190_ACEOF
10191rm -f conftest.$ac_objext
10192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_header_compiler=yes
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218ac_header_compiler=no
10219fi
10220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10221echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10222echo "${ECHO_T}$ac_header_compiler" >&6
10223
10224# Is the header present?
10225echo "$as_me:$LINENO: checking $ac_header presence" >&5
10226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10227cat >conftest.$ac_ext <<_ACEOF
10228/* confdefs.h. */
10229_ACEOF
10230cat confdefs.h >>conftest.$ac_ext
10231cat >>conftest.$ac_ext <<_ACEOF
10232/* end confdefs.h. */
10233#include <$ac_header>
10234_ACEOF
10235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } >/dev/null; then
10243 if test -s conftest.err; then
10244 ac_cpp_err=$ac_c_preproc_warn_flag
10245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10246 else
10247 ac_cpp_err=
10248 fi
5ee754fc 10249else
bec39cab 10250 ac_cpp_err=yes
5ee754fc 10251fi
bec39cab
AC
10252if test -z "$ac_cpp_err"; then
10253 ac_header_preproc=yes
10254else
10255 echo "$as_me: failed program was:" >&5
10256sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10257
bec39cab 10258 ac_header_preproc=no
5ee754fc 10259fi
bec39cab
AC
10260rm -f conftest.err conftest.$ac_ext
10261echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10262echo "${ECHO_T}$ac_header_preproc" >&6
10263
10264# So? What about this header?
10265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10266 yes:no: )
10267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10271 ac_header_preproc=yes
10272 ;;
10273 no:yes:* )
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10277echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10281echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10286 (
10287 cat <<\_ASBOX
10288## ------------------------------------------ ##
10289## Report this to the AC_PACKAGE_NAME lists. ##
10290## ------------------------------------------ ##
10291_ASBOX
10292 ) |
10293 sed "s/^/$as_me: WARNING: /" >&2
10294 ;;
10295esac
10296echo "$as_me:$LINENO: checking for $ac_header" >&5
10297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10298if eval "test \"\${$as_ac_Header+set}\" = set"; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10300else
bec39cab 10301 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10302fi
bec39cab
AC
10303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10305
5ee754fc 10306fi
bec39cab
AC
10307if test `eval echo '${'$as_ac_Header'}'` = yes; then
10308 cat >>confdefs.h <<_ACEOF
10309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10310_ACEOF
c906108c 10311
5ee754fc 10312fi
bec39cab
AC
10313
10314done
10315
10316
10317for ac_header in sys/file.h
10318do
10319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320if eval "test \"\${$as_ac_Header+set}\" = set"; then
10321 echo "$as_me:$LINENO: checking for $ac_header" >&5
10322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10323if eval "test \"\${$as_ac_Header+set}\" = set"; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325fi
10326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10328else
10329 # Is the header compilable?
10330echo "$as_me:$LINENO: checking $ac_header usability" >&5
10331echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10332cat >conftest.$ac_ext <<_ACEOF
10333/* confdefs.h. */
10334_ACEOF
10335cat confdefs.h >>conftest.$ac_ext
10336cat >>conftest.$ac_ext <<_ACEOF
10337/* end confdefs.h. */
10338$ac_includes_default
10339#include <$ac_header>
10340_ACEOF
10341rm -f conftest.$ac_objext
10342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343 (eval $ac_compile) 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_c_werror_flag"
10351 || test ! -s conftest.err'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; } &&
10357 { ac_try='test -s conftest.$ac_objext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_header_compiler=yes
10364else
10365 echo "$as_me: failed program was:" >&5
10366sed 's/^/| /' conftest.$ac_ext >&5
10367
10368ac_header_compiler=no
10369fi
10370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10371echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10372echo "${ECHO_T}$ac_header_compiler" >&6
10373
10374# Is the header present?
10375echo "$as_me:$LINENO: checking $ac_header presence" >&5
10376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10377cat >conftest.$ac_ext <<_ACEOF
10378/* confdefs.h. */
10379_ACEOF
10380cat confdefs.h >>conftest.$ac_ext
10381cat >>conftest.$ac_ext <<_ACEOF
10382/* end confdefs.h. */
10383#include <$ac_header>
10384_ACEOF
10385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10387 ac_status=$?
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } >/dev/null; then
10393 if test -s conftest.err; then
10394 ac_cpp_err=$ac_c_preproc_warn_flag
10395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10396 else
10397 ac_cpp_err=
10398 fi
5ee754fc 10399else
bec39cab 10400 ac_cpp_err=yes
5ee754fc 10401fi
bec39cab
AC
10402if test -z "$ac_cpp_err"; then
10403 ac_header_preproc=yes
10404else
10405 echo "$as_me: failed program was:" >&5
10406sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10407
bec39cab 10408 ac_header_preproc=no
5ee754fc 10409fi
bec39cab
AC
10410rm -f conftest.err conftest.$ac_ext
10411echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10412echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10413
bec39cab
AC
10414# So? What about this header?
10415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10416 yes:no: )
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10420echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10421 ac_header_preproc=yes
10422 ;;
10423 no:yes:* )
10424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10425echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10427echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10429echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10431echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10435echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10436 (
10437 cat <<\_ASBOX
10438## ------------------------------------------ ##
10439## Report this to the AC_PACKAGE_NAME lists. ##
10440## ------------------------------------------ ##
10441_ASBOX
10442 ) |
10443 sed "s/^/$as_me: WARNING: /" >&2
10444 ;;
10445esac
10446echo "$as_me:$LINENO: checking for $ac_header" >&5
10447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10448if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10450else
bec39cab
AC
10451 eval "$as_ac_Header=\$ac_header_preproc"
10452fi
10453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10454echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10455
bec39cab
AC
10456fi
10457if test `eval echo '${'$as_ac_Header'}'` = yes; then
10458 cat >>confdefs.h <<_ACEOF
10459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10460_ACEOF
5ee754fc 10461
bec39cab 10462fi
5ee754fc 10463
bec39cab 10464done
5ee754fc 10465
5ee754fc 10466
bec39cab
AC
10467for ac_header in sys/filio.h
10468do
10469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10470if eval "test \"\${$as_ac_Header+set}\" = set"; then
10471 echo "$as_me:$LINENO: checking for $ac_header" >&5
10472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10473if eval "test \"\${$as_ac_Header+set}\" = set"; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475fi
10476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10478else
10479 # Is the header compilable?
10480echo "$as_me:$LINENO: checking $ac_header usability" >&5
10481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10482cat >conftest.$ac_ext <<_ACEOF
10483/* confdefs.h. */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h. */
10488$ac_includes_default
10489#include <$ac_header>
10490_ACEOF
10491rm -f conftest.$ac_objext
10492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493 (eval $ac_compile) 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag"
10501 || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest.$ac_objext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_header_compiler=yes
10514else
10515 echo "$as_me: failed program was:" >&5
10516sed 's/^/| /' conftest.$ac_ext >&5
10517
10518ac_header_compiler=no
10519fi
10520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10522echo "${ECHO_T}$ac_header_compiler" >&6
10523
10524# Is the header present?
10525echo "$as_me:$LINENO: checking $ac_header presence" >&5
10526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10527cat >conftest.$ac_ext <<_ACEOF
10528/* confdefs.h. */
10529_ACEOF
10530cat confdefs.h >>conftest.$ac_ext
10531cat >>conftest.$ac_ext <<_ACEOF
10532/* end confdefs.h. */
10533#include <$ac_header>
10534_ACEOF
10535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } >/dev/null; then
10543 if test -s conftest.err; then
10544 ac_cpp_err=$ac_c_preproc_warn_flag
10545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10546 else
10547 ac_cpp_err=
10548 fi
5ee754fc 10549else
bec39cab 10550 ac_cpp_err=yes
5ee754fc 10551fi
bec39cab
AC
10552if test -z "$ac_cpp_err"; then
10553 ac_header_preproc=yes
10554else
10555 echo "$as_me: failed program was:" >&5
10556sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10557
bec39cab 10558 ac_header_preproc=no
5ee754fc 10559fi
bec39cab
AC
10560rm -f conftest.err conftest.$ac_ext
10561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10562echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10563
bec39cab
AC
10564# So? What about this header?
10565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10566 yes:no: )
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10571 ac_header_preproc=yes
10572 ;;
10573 no:yes:* )
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10577echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10581echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10586 (
10587 cat <<\_ASBOX
10588## ------------------------------------------ ##
10589## Report this to the AC_PACKAGE_NAME lists. ##
10590## ------------------------------------------ ##
10591_ASBOX
10592 ) |
10593 sed "s/^/$as_me: WARNING: /" >&2
10594 ;;
10595esac
10596echo "$as_me:$LINENO: checking for $ac_header" >&5
10597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10598if eval "test \"\${$as_ac_Header+set}\" = set"; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10600else
bec39cab 10601 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10602fi
bec39cab
AC
10603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10605
5ee754fc 10606fi
bec39cab
AC
10607if test `eval echo '${'$as_ac_Header'}'` = yes; then
10608 cat >>confdefs.h <<_ACEOF
10609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10610_ACEOF
5ee754fc
MK
10611
10612fi
10613
bec39cab
AC
10614done
10615
10616
10617for ac_header in sys/ioctl.h
10618do
10619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10620if eval "test \"\${$as_ac_Header+set}\" = set"; then
10621 echo "$as_me:$LINENO: checking for $ac_header" >&5
10622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10623if eval "test \"\${$as_ac_Header+set}\" = set"; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625fi
10626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10628else
10629 # Is the header compilable?
10630echo "$as_me:$LINENO: checking $ac_header usability" >&5
10631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10632cat >conftest.$ac_ext <<_ACEOF
10633/* confdefs.h. */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
10637/* end confdefs.h. */
10638$ac_includes_default
10639#include <$ac_header>
10640_ACEOF
10641rm -f conftest.$ac_objext
10642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>conftest.er1
10644 ac_status=$?
10645 grep -v '^ *+' conftest.er1 >conftest.err
10646 rm -f conftest.er1
10647 cat conftest.err >&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try='test -z "$ac_c_werror_flag"
10651 || test ! -s conftest.err'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try='test -s conftest.$ac_objext'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_header_compiler=yes
10664else
10665 echo "$as_me: failed program was:" >&5
10666sed 's/^/| /' conftest.$ac_ext >&5
10667
10668ac_header_compiler=no
10669fi
10670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10672echo "${ECHO_T}$ac_header_compiler" >&6
10673
10674# Is the header present?
10675echo "$as_me:$LINENO: checking $ac_header presence" >&5
10676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10677cat >conftest.$ac_ext <<_ACEOF
10678/* confdefs.h. */
10679_ACEOF
10680cat confdefs.h >>conftest.$ac_ext
10681cat >>conftest.$ac_ext <<_ACEOF
10682/* end confdefs.h. */
10683#include <$ac_header>
10684_ACEOF
10685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } >/dev/null; then
10693 if test -s conftest.err; then
10694 ac_cpp_err=$ac_c_preproc_warn_flag
10695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10696 else
10697 ac_cpp_err=
10698 fi
5ee754fc 10699else
bec39cab 10700 ac_cpp_err=yes
5ee754fc 10701fi
bec39cab
AC
10702if test -z "$ac_cpp_err"; then
10703 ac_header_preproc=yes
10704else
10705 echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10707
bec39cab 10708 ac_header_preproc=no
5ee754fc 10709fi
bec39cab
AC
10710rm -f conftest.err conftest.$ac_ext
10711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10712echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10713
bec39cab
AC
10714# So? What about this header?
10715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10716 yes:no: )
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10721 ac_header_preproc=yes
10722 ;;
10723 no:yes:* )
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10727echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10731echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10736 (
10737 cat <<\_ASBOX
10738## ------------------------------------------ ##
10739## Report this to the AC_PACKAGE_NAME lists. ##
10740## ------------------------------------------ ##
10741_ASBOX
10742 ) |
10743 sed "s/^/$as_me: WARNING: /" >&2
10744 ;;
10745esac
10746echo "$as_me:$LINENO: checking for $ac_header" >&5
10747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10748if eval "test \"\${$as_ac_Header+set}\" = set"; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10750else
bec39cab 10751 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10752fi
bec39cab
AC
10753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10755
10756fi
bec39cab
AC
10757if test `eval echo '${'$as_ac_Header'}'` = yes; then
10758 cat >>confdefs.h <<_ACEOF
10759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10760_ACEOF
10761
5ee754fc
MK
10762fi
10763
bec39cab 10764done
5ee754fc 10765
5ee754fc 10766
bec39cab 10767for ac_header in sys/param.h
5ee754fc 10768do
bec39cab
AC
10769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10770if eval "test \"\${$as_ac_Header+set}\" = set"; then
10771 echo "$as_me:$LINENO: checking for $ac_header" >&5
10772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10773if eval "test \"\${$as_ac_Header+set}\" = set"; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775fi
10776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10778else
10779 # Is the header compilable?
10780echo "$as_me:$LINENO: checking $ac_header usability" >&5
10781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10782cat >conftest.$ac_ext <<_ACEOF
10783/* confdefs.h. */
10784_ACEOF
10785cat confdefs.h >>conftest.$ac_ext
10786cat >>conftest.$ac_ext <<_ACEOF
10787/* end confdefs.h. */
10788$ac_includes_default
10789#include <$ac_header>
10790_ACEOF
10791rm -f conftest.$ac_objext
10792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10793 (eval $ac_compile) 2>conftest.er1
10794 ac_status=$?
10795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
10800 { ac_try='test -z "$ac_c_werror_flag"
10801 || test ! -s conftest.err'
10802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803 (eval $ac_try) 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; } &&
10807 { ac_try='test -s conftest.$ac_objext'
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 ac_header_compiler=yes
10814else
10815 echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
10817
10818ac_header_compiler=no
10819fi
10820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10822echo "${ECHO_T}$ac_header_compiler" >&6
10823
10824# Is the header present?
10825echo "$as_me:$LINENO: checking $ac_header presence" >&5
10826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10827cat >conftest.$ac_ext <<_ACEOF
10828/* confdefs.h. */
10829_ACEOF
10830cat confdefs.h >>conftest.$ac_ext
10831cat >>conftest.$ac_ext <<_ACEOF
10832/* end confdefs.h. */
10833#include <$ac_header>
10834_ACEOF
10835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } >/dev/null; then
10843 if test -s conftest.err; then
10844 ac_cpp_err=$ac_c_preproc_warn_flag
10845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10846 else
10847 ac_cpp_err=
10848 fi
5ee754fc 10849else
bec39cab 10850 ac_cpp_err=yes
5ee754fc 10851fi
bec39cab
AC
10852if test -z "$ac_cpp_err"; then
10853 ac_header_preproc=yes
10854else
10855 echo "$as_me: failed program was:" >&5
10856sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10857
bec39cab 10858 ac_header_preproc=no
5ee754fc 10859fi
bec39cab
AC
10860rm -f conftest.err conftest.$ac_ext
10861echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10862echo "${ECHO_T}$ac_header_preproc" >&6
10863
10864# So? What about this header?
10865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10866 yes:no: )
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10870echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10871 ac_header_preproc=yes
10872 ;;
10873 no:yes:* )
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10879echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10881echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10885echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10886 (
10887 cat <<\_ASBOX
10888## ------------------------------------------ ##
10889## Report this to the AC_PACKAGE_NAME lists. ##
10890## ------------------------------------------ ##
10891_ASBOX
10892 ) |
10893 sed "s/^/$as_me: WARNING: /" >&2
10894 ;;
10895esac
10896echo "$as_me:$LINENO: checking for $ac_header" >&5
10897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10898if eval "test \"\${$as_ac_Header+set}\" = set"; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10900else
bec39cab 10901 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10902fi
bec39cab
AC
10903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10905
5ee754fc 10906fi
bec39cab
AC
10907if test `eval echo '${'$as_ac_Header'}'` = yes; then
10908 cat >>confdefs.h <<_ACEOF
10909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10910_ACEOF
10911
5ee754fc 10912fi
bec39cab 10913
5ee754fc
MK
10914done
10915
bec39cab
AC
10916
10917for ac_header in sys/proc.h
5ee754fc 10918do
bec39cab 10919as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 10920echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
10921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10922if eval "test \"\${$as_ac_Header+set}\" = set"; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10924else
7cb9022a 10925 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
7cb9022a
MK
10931#if HAVE_SYS_PARAM_H
10932# include <sys/param.h>
10933#endif
10934
10935
bec39cab
AC
10936#include <$ac_header>
10937_ACEOF
10938rm -f conftest.$ac_objext
10939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940 (eval $ac_compile) 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag"
10948 || test ! -s conftest.err'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest.$ac_objext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
7cb9022a 10960 eval "$as_ac_Header=yes"
bec39cab
AC
10961else
10962 echo "$as_me: failed program was:" >&5
10963sed 's/^/| /' conftest.$ac_ext >&5
10964
7cb9022a 10965eval "$as_ac_Header=no"
bec39cab
AC
10966fi
10967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10968fi
bec39cab
AC
10969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10971if test `eval echo '${'$as_ac_Header'}'` = yes; then
10972 cat >>confdefs.h <<_ACEOF
10973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10974_ACEOF
10975
5ee754fc 10976fi
bec39cab 10977
5ee754fc
MK
10978done
10979
bec39cab
AC
10980
10981for ac_header in sys/procfs.h
5ee754fc 10982do
bec39cab
AC
10983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10984if eval "test \"\${$as_ac_Header+set}\" = set"; then
10985 echo "$as_me:$LINENO: checking for $ac_header" >&5
10986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10987if eval "test \"\${$as_ac_Header+set}\" = set"; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989fi
10990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10992else
10993 # Is the header compilable?
10994echo "$as_me:$LINENO: checking $ac_header usability" >&5
10995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10996cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h. */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h. */
11002$ac_includes_default
11003#include <$ac_header>
11004_ACEOF
11005rm -f conftest.$ac_objext
11006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11007 (eval $ac_compile) 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag"
11015 || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_header_compiler=yes
11028else
11029 echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
11032ac_header_compiler=no
11033fi
11034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11036echo "${ECHO_T}$ac_header_compiler" >&6
11037
11038# Is the header present?
11039echo "$as_me:$LINENO: checking $ac_header presence" >&5
11040echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11041cat >conftest.$ac_ext <<_ACEOF
11042/* confdefs.h. */
11043_ACEOF
11044cat confdefs.h >>conftest.$ac_ext
11045cat >>conftest.$ac_ext <<_ACEOF
11046/* end confdefs.h. */
11047#include <$ac_header>
11048_ACEOF
11049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11051 ac_status=$?
11052 grep -v '^ *+' conftest.er1 >conftest.err
11053 rm -f conftest.er1
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } >/dev/null; then
11057 if test -s conftest.err; then
11058 ac_cpp_err=$ac_c_preproc_warn_flag
11059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11060 else
11061 ac_cpp_err=
11062 fi
11063else
11064 ac_cpp_err=yes
5ee754fc 11065fi
bec39cab
AC
11066if test -z "$ac_cpp_err"; then
11067 ac_header_preproc=yes
5ee754fc 11068else
bec39cab
AC
11069 echo "$as_me: failed program was:" >&5
11070sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 ac_header_preproc=no
5ee754fc 11073fi
bec39cab
AC
11074rm -f conftest.err conftest.$ac_ext
11075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11076echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11077
bec39cab
AC
11078# So? What about this header?
11079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11080 yes:no: )
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11085 ac_header_preproc=yes
11086 ;;
11087 no:yes:* )
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11100 (
11101 cat <<\_ASBOX
11102## ------------------------------------------ ##
11103## Report this to the AC_PACKAGE_NAME lists. ##
11104## ------------------------------------------ ##
11105_ASBOX
11106 ) |
11107 sed "s/^/$as_me: WARNING: /" >&2
11108 ;;
11109esac
11110echo "$as_me:$LINENO: checking for $ac_header" >&5
11111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11112if eval "test \"\${$as_ac_Header+set}\" = set"; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11116fi
bec39cab
AC
11117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11119
5ee754fc 11120fi
bec39cab
AC
11121if test `eval echo '${'$as_ac_Header'}'` = yes; then
11122 cat >>confdefs.h <<_ACEOF
11123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11124_ACEOF
11125
5ee754fc 11126fi
bec39cab 11127
5ee754fc
MK
11128done
11129
bec39cab
AC
11130
11131
11132for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11133do
bec39cab
AC
11134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135if eval "test \"\${$as_ac_Header+set}\" = set"; then
11136 echo "$as_me:$LINENO: checking for $ac_header" >&5
11137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11138if eval "test \"\${$as_ac_Header+set}\" = set"; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140fi
11141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11143else
11144 # Is the header compilable?
11145echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11147cat >conftest.$ac_ext <<_ACEOF
11148/* confdefs.h. */
11149_ACEOF
11150cat confdefs.h >>conftest.$ac_ext
11151cat >>conftest.$ac_ext <<_ACEOF
11152/* end confdefs.h. */
11153$ac_includes_default
11154#include <$ac_header>
11155_ACEOF
11156rm -f conftest.$ac_objext
11157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158 (eval $ac_compile) 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -z "$ac_c_werror_flag"
11166 || test ! -s conftest.err'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_header_compiler=yes
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183ac_header_compiler=no
11184fi
11185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11187echo "${ECHO_T}$ac_header_compiler" >&6
11188
11189# Is the header present?
11190echo "$as_me:$LINENO: checking $ac_header presence" >&5
11191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11192cat >conftest.$ac_ext <<_ACEOF
11193/* confdefs.h. */
11194_ACEOF
11195cat confdefs.h >>conftest.$ac_ext
11196cat >>conftest.$ac_ext <<_ACEOF
11197/* end confdefs.h. */
11198#include <$ac_header>
11199_ACEOF
11200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } >/dev/null; then
11208 if test -s conftest.err; then
11209 ac_cpp_err=$ac_c_preproc_warn_flag
11210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11211 else
11212 ac_cpp_err=
11213 fi
11214else
11215 ac_cpp_err=yes
5ee754fc 11216fi
bec39cab
AC
11217if test -z "$ac_cpp_err"; then
11218 ac_header_preproc=yes
5ee754fc 11219else
bec39cab
AC
11220 echo "$as_me: failed program was:" >&5
11221sed 's/^/| /' conftest.$ac_ext >&5
11222
11223 ac_header_preproc=no
5ee754fc 11224fi
bec39cab
AC
11225rm -f conftest.err conftest.$ac_ext
11226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11227echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11228
bec39cab
AC
11229# So? What about this header?
11230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11231 yes:no: )
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11236 ac_header_preproc=yes
11237 ;;
11238 no:yes:* )
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11251 (
11252 cat <<\_ASBOX
11253## ------------------------------------------ ##
11254## Report this to the AC_PACKAGE_NAME lists. ##
11255## ------------------------------------------ ##
11256_ASBOX
11257 ) |
11258 sed "s/^/$as_me: WARNING: /" >&2
11259 ;;
11260esac
11261echo "$as_me:$LINENO: checking for $ac_header" >&5
11262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11263if eval "test \"\${$as_ac_Header+set}\" = set"; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265else
11266 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11267fi
bec39cab
AC
11268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11270
5ee754fc 11271fi
bec39cab
AC
11272if test `eval echo '${'$as_ac_Header'}'` = yes; then
11273 cat >>confdefs.h <<_ACEOF
11274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11275_ACEOF
11276
5ee754fc 11277fi
bec39cab 11278
5ee754fc
MK
11279done
11280
bec39cab
AC
11281
11282
11283for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11284do
bec39cab
AC
11285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11286if eval "test \"\${$as_ac_Header+set}\" = set"; then
11287 echo "$as_me:$LINENO: checking for $ac_header" >&5
11288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11289if eval "test \"\${$as_ac_Header+set}\" = set"; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291fi
11292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11294else
11295 # Is the header compilable?
11296echo "$as_me:$LINENO: checking $ac_header usability" >&5
11297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11298cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304$ac_includes_default
11305#include <$ac_header>
11306_ACEOF
11307rm -f conftest.$ac_objext
11308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11309 (eval $ac_compile) 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_header_compiler=yes
11330else
11331 echo "$as_me: failed program was:" >&5
11332sed 's/^/| /' conftest.$ac_ext >&5
11333
11334ac_header_compiler=no
11335fi
11336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11338echo "${ECHO_T}$ac_header_compiler" >&6
11339
11340# Is the header present?
11341echo "$as_me:$LINENO: checking $ac_header presence" >&5
11342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11343cat >conftest.$ac_ext <<_ACEOF
11344/* confdefs.h. */
11345_ACEOF
11346cat confdefs.h >>conftest.$ac_ext
11347cat >>conftest.$ac_ext <<_ACEOF
11348/* end confdefs.h. */
11349#include <$ac_header>
11350_ACEOF
11351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev/null; then
11359 if test -s conftest.err; then
11360 ac_cpp_err=$ac_c_preproc_warn_flag
11361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11362 else
11363 ac_cpp_err=
11364 fi
11365else
11366 ac_cpp_err=yes
5ee754fc 11367fi
bec39cab
AC
11368if test -z "$ac_cpp_err"; then
11369 ac_header_preproc=yes
5ee754fc 11370else
bec39cab
AC
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374 ac_header_preproc=no
5ee754fc 11375fi
bec39cab
AC
11376rm -f conftest.err conftest.$ac_ext
11377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11379
bec39cab
AC
11380# So? What about this header?
11381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382 yes:no: )
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11388 ;;
11389 no:yes:* )
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11402 (
11403 cat <<\_ASBOX
11404## ------------------------------------------ ##
11405## Report this to the AC_PACKAGE_NAME lists. ##
11406## ------------------------------------------ ##
11407_ASBOX
11408 ) |
11409 sed "s/^/$as_me: WARNING: /" >&2
11410 ;;
11411esac
11412echo "$as_me:$LINENO: checking for $ac_header" >&5
11413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11414if eval "test \"\${$as_ac_Header+set}\" = set"; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416else
11417 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11418fi
bec39cab
AC
11419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11421
5ee754fc 11422fi
bec39cab
AC
11423if test `eval echo '${'$as_ac_Header'}'` = yes; then
11424 cat >>confdefs.h <<_ACEOF
11425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11426_ACEOF
11427
5ee754fc 11428fi
bec39cab 11429
5ee754fc
MK
11430done
11431
bec39cab
AC
11432
11433for ac_header in sys/select.h
5ee754fc 11434do
bec39cab
AC
11435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436if eval "test \"\${$as_ac_Header+set}\" = set"; then
11437 echo "$as_me:$LINENO: checking for $ac_header" >&5
11438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11439if eval "test \"\${$as_ac_Header+set}\" = set"; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441fi
11442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11444else
11445 # Is the header compilable?
11446echo "$as_me:$LINENO: checking $ac_header usability" >&5
11447echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11448cat >conftest.$ac_ext <<_ACEOF
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
11454$ac_includes_default
11455#include <$ac_header>
11456_ACEOF
11457rm -f conftest.$ac_objext
11458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11459 (eval $ac_compile) 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag"
11467 || test ! -s conftest.err'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest.$ac_objext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 ac_header_compiler=yes
11480else
11481 echo "$as_me: failed program was:" >&5
11482sed 's/^/| /' conftest.$ac_ext >&5
11483
11484ac_header_compiler=no
11485fi
11486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11488echo "${ECHO_T}$ac_header_compiler" >&6
11489
11490# Is the header present?
11491echo "$as_me:$LINENO: checking $ac_header presence" >&5
11492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11493cat >conftest.$ac_ext <<_ACEOF
11494/* confdefs.h. */
11495_ACEOF
11496cat confdefs.h >>conftest.$ac_ext
11497cat >>conftest.$ac_ext <<_ACEOF
11498/* end confdefs.h. */
11499#include <$ac_header>
11500_ACEOF
11501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } >/dev/null; then
11509 if test -s conftest.err; then
11510 ac_cpp_err=$ac_c_preproc_warn_flag
11511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11512 else
11513 ac_cpp_err=
11514 fi
11515else
11516 ac_cpp_err=yes
5ee754fc 11517fi
bec39cab
AC
11518if test -z "$ac_cpp_err"; then
11519 ac_header_preproc=yes
5ee754fc 11520else
bec39cab
AC
11521 echo "$as_me: failed program was:" >&5
11522sed 's/^/| /' conftest.$ac_ext >&5
11523
11524 ac_header_preproc=no
5ee754fc 11525fi
bec39cab
AC
11526rm -f conftest.err conftest.$ac_ext
11527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11528echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11529
bec39cab
AC
11530# So? What about this header?
11531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11532 yes:no: )
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11534echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11536echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11537 ac_header_preproc=yes
11538 ;;
11539 no:yes:* )
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11541echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11543echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11545echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11547echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11549echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11551echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11552 (
11553 cat <<\_ASBOX
11554## ------------------------------------------ ##
11555## Report this to the AC_PACKAGE_NAME lists. ##
11556## ------------------------------------------ ##
11557_ASBOX
11558 ) |
11559 sed "s/^/$as_me: WARNING: /" >&2
11560 ;;
11561esac
11562echo "$as_me:$LINENO: checking for $ac_header" >&5
11563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11564if eval "test \"\${$as_ac_Header+set}\" = set"; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566else
11567 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11568fi
bec39cab
AC
11569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11571
5ee754fc 11572fi
bec39cab
AC
11573if test `eval echo '${'$as_ac_Header'}'` = yes; then
11574 cat >>confdefs.h <<_ACEOF
11575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11576_ACEOF
11577
5ee754fc 11578fi
bec39cab 11579
5ee754fc
MK
11580done
11581
bec39cab
AC
11582
11583for ac_header in sys/syscall.h
5ee754fc 11584do
bec39cab
AC
11585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586if eval "test \"\${$as_ac_Header+set}\" = set"; then
11587 echo "$as_me:$LINENO: checking for $ac_header" >&5
11588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11589if eval "test \"\${$as_ac_Header+set}\" = set"; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591fi
11592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11594else
11595 # Is the header compilable?
11596echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11598cat >conftest.$ac_ext <<_ACEOF
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
11604$ac_includes_default
11605#include <$ac_header>
11606_ACEOF
11607rm -f conftest.$ac_objext
11608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609 (eval $ac_compile) 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -z "$ac_c_werror_flag"
11617 || test ! -s conftest.err'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; } &&
11623 { ac_try='test -s conftest.$ac_objext'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 ac_header_compiler=yes
11630else
11631 echo "$as_me: failed program was:" >&5
11632sed 's/^/| /' conftest.$ac_ext >&5
11633
11634ac_header_compiler=no
11635fi
11636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638echo "${ECHO_T}$ac_header_compiler" >&6
11639
11640# Is the header present?
11641echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11643cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649#include <$ac_header>
11650_ACEOF
11651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } >/dev/null; then
11659 if test -s conftest.err; then
11660 ac_cpp_err=$ac_c_preproc_warn_flag
11661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11662 else
11663 ac_cpp_err=
11664 fi
11665else
11666 ac_cpp_err=yes
5ee754fc 11667fi
bec39cab
AC
11668if test -z "$ac_cpp_err"; then
11669 ac_header_preproc=yes
5ee754fc 11670else
bec39cab
AC
11671 echo "$as_me: failed program was:" >&5
11672sed 's/^/| /' conftest.$ac_ext >&5
11673
11674 ac_header_preproc=no
5ee754fc 11675fi
bec39cab
AC
11676rm -f conftest.err conftest.$ac_ext
11677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11678echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11679
bec39cab
AC
11680# So? What about this header?
11681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11682 yes:no: )
11683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11687 ac_header_preproc=yes
11688 ;;
11689 no:yes:* )
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11702 (
11703 cat <<\_ASBOX
11704## ------------------------------------------ ##
11705## Report this to the AC_PACKAGE_NAME lists. ##
11706## ------------------------------------------ ##
11707_ASBOX
11708 ) |
11709 sed "s/^/$as_me: WARNING: /" >&2
11710 ;;
11711esac
11712echo "$as_me:$LINENO: checking for $ac_header" >&5
11713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11714if eval "test \"\${$as_ac_Header+set}\" = set"; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
11717 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11718fi
bec39cab
AC
11719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11721
5ee754fc 11722fi
bec39cab
AC
11723if test `eval echo '${'$as_ac_Header'}'` = yes; then
11724 cat >>confdefs.h <<_ACEOF
11725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11726_ACEOF
11727
5ee754fc 11728fi
bec39cab 11729
5ee754fc
MK
11730done
11731
bec39cab
AC
11732
11733for ac_header in sys/types.h
5ee754fc 11734do
bec39cab
AC
11735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11736if eval "test \"\${$as_ac_Header+set}\" = set"; then
11737 echo "$as_me:$LINENO: checking for $ac_header" >&5
11738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11739if eval "test \"\${$as_ac_Header+set}\" = set"; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741fi
11742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11744else
11745 # Is the header compilable?
11746echo "$as_me:$LINENO: checking $ac_header usability" >&5
11747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11748cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754$ac_includes_default
11755#include <$ac_header>
11756_ACEOF
11757rm -f conftest.$ac_objext
11758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759 (eval $ac_compile) 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_c_werror_flag"
11767 || test ! -s conftest.err'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; } &&
11773 { ac_try='test -s conftest.$ac_objext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_header_compiler=yes
11780else
11781 echo "$as_me: failed program was:" >&5
11782sed 's/^/| /' conftest.$ac_ext >&5
11783
11784ac_header_compiler=no
11785fi
11786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11788echo "${ECHO_T}$ac_header_compiler" >&6
11789
11790# Is the header present?
11791echo "$as_me:$LINENO: checking $ac_header presence" >&5
11792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11793cat >conftest.$ac_ext <<_ACEOF
11794/* confdefs.h. */
11795_ACEOF
11796cat confdefs.h >>conftest.$ac_ext
11797cat >>conftest.$ac_ext <<_ACEOF
11798/* end confdefs.h. */
11799#include <$ac_header>
11800_ACEOF
11801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } >/dev/null; then
11809 if test -s conftest.err; then
11810 ac_cpp_err=$ac_c_preproc_warn_flag
11811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11812 else
11813 ac_cpp_err=
11814 fi
11815else
11816 ac_cpp_err=yes
5ee754fc 11817fi
bec39cab
AC
11818if test -z "$ac_cpp_err"; then
11819 ac_header_preproc=yes
5ee754fc 11820else
bec39cab
AC
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_header_preproc=no
5ee754fc 11825fi
bec39cab
AC
11826rm -f conftest.err conftest.$ac_ext
11827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11828echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11829
bec39cab
AC
11830# So? What about this header?
11831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11832 yes:no: )
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11837 ac_header_preproc=yes
11838 ;;
11839 no:yes:* )
11840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11852 (
11853 cat <<\_ASBOX
11854## ------------------------------------------ ##
11855## Report this to the AC_PACKAGE_NAME lists. ##
11856## ------------------------------------------ ##
11857_ASBOX
11858 ) |
11859 sed "s/^/$as_me: WARNING: /" >&2
11860 ;;
11861esac
11862echo "$as_me:$LINENO: checking for $ac_header" >&5
11863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11864if eval "test \"\${$as_ac_Header+set}\" = set"; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11868fi
bec39cab
AC
11869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11871
5ee754fc 11872fi
bec39cab
AC
11873if test `eval echo '${'$as_ac_Header'}'` = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11876_ACEOF
11877
5ee754fc 11878fi
bec39cab 11879
5ee754fc
MK
11880done
11881
bec39cab
AC
11882
11883for ac_header in sys/user.h
5ee754fc 11884do
bec39cab 11885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11886echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11888if eval "test \"\${$as_ac_Header+set}\" = set"; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11890else
7cb9022a 11891 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11892/* confdefs.h. */
11893_ACEOF
11894cat confdefs.h >>conftest.$ac_ext
11895cat >>conftest.$ac_ext <<_ACEOF
11896/* end confdefs.h. */
7cb9022a
MK
11897#if HAVE_SYS_PARAM_H
11898# include <sys/param.h>
11899#endif
11900
11901
bec39cab
AC
11902#include <$ac_header>
11903_ACEOF
11904rm -f conftest.$ac_objext
11905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest.$ac_objext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
7cb9022a 11926 eval "$as_ac_Header=yes"
bec39cab
AC
11927else
11928 echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
7cb9022a 11931eval "$as_ac_Header=no"
bec39cab
AC
11932fi
11933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11934fi
bec39cab
AC
11935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11937if test `eval echo '${'$as_ac_Header'}'` = yes; then
11938 cat >>confdefs.h <<_ACEOF
11939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11940_ACEOF
11941
5ee754fc 11942fi
bec39cab 11943
5ee754fc
MK
11944done
11945
bec39cab
AC
11946
11947
11948for ac_header in sys/wait.h wait.h
5ee754fc 11949do
bec39cab
AC
11950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11951if eval "test \"\${$as_ac_Header+set}\" = set"; then
11952 echo "$as_me:$LINENO: checking for $ac_header" >&5
11953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11954if eval "test \"\${$as_ac_Header+set}\" = set"; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956fi
11957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11959else
11960 # Is the header compilable?
11961echo "$as_me:$LINENO: checking $ac_header usability" >&5
11962echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11963cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
11969$ac_includes_default
11970#include <$ac_header>
11971_ACEOF
11972rm -f conftest.$ac_objext
11973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11974 (eval $ac_compile) 2>conftest.er1
11975 ac_status=$?
11976 grep -v '^ *+' conftest.er1 >conftest.err
11977 rm -f conftest.er1
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -z "$ac_c_werror_flag"
11982 || test ! -s conftest.err'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try='test -s conftest.$ac_objext'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 ac_header_compiler=yes
11995else
11996 echo "$as_me: failed program was:" >&5
11997sed 's/^/| /' conftest.$ac_ext >&5
11998
11999ac_header_compiler=no
12000fi
12001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12002echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12003echo "${ECHO_T}$ac_header_compiler" >&6
12004
12005# Is the header present?
12006echo "$as_me:$LINENO: checking $ac_header presence" >&5
12007echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12008cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h. */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h. */
12014#include <$ac_header>
12015_ACEOF
12016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } >/dev/null; then
12024 if test -s conftest.err; then
12025 ac_cpp_err=$ac_c_preproc_warn_flag
12026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12027 else
12028 ac_cpp_err=
12029 fi
12030else
12031 ac_cpp_err=yes
5ee754fc 12032fi
bec39cab
AC
12033if test -z "$ac_cpp_err"; then
12034 ac_header_preproc=yes
5ee754fc 12035else
bec39cab
AC
12036 echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038
12039 ac_header_preproc=no
5ee754fc 12040fi
bec39cab
AC
12041rm -f conftest.err conftest.$ac_ext
12042echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12043echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 12044
bec39cab
AC
12045# So? What about this header?
12046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12047 yes:no: )
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12049echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12051echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12052 ac_header_preproc=yes
12053 ;;
12054 no:yes:* )
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12056echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12058echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12060echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12062echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12064echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12066echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12067 (
12068 cat <<\_ASBOX
12069## ------------------------------------------ ##
12070## Report this to the AC_PACKAGE_NAME lists. ##
12071## ------------------------------------------ ##
12072_ASBOX
12073 ) |
12074 sed "s/^/$as_me: WARNING: /" >&2
12075 ;;
12076esac
12077echo "$as_me:$LINENO: checking for $ac_header" >&5
12078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12079if eval "test \"\${$as_ac_Header+set}\" = set"; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12083fi
bec39cab
AC
12084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12086
9608ab8b 12087fi
bec39cab
AC
12088if test `eval echo '${'$as_ac_Header'}'` = yes; then
12089 cat >>confdefs.h <<_ACEOF
12090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12091_ACEOF
12092
9608ab8b 12093fi
bec39cab 12094
9608ab8b 12095done
5ee754fc 12096
bec39cab
AC
12097
12098
12099
12100for ac_header in termios.h termio.h sgtty.h
5ee754fc 12101do
bec39cab
AC
12102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12103if eval "test \"\${$as_ac_Header+set}\" = set"; then
12104 echo "$as_me:$LINENO: checking for $ac_header" >&5
12105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12106if eval "test \"\${$as_ac_Header+set}\" = set"; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108fi
12109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12111else
12112 # Is the header compilable?
12113echo "$as_me:$LINENO: checking $ac_header usability" >&5
12114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12115cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
12121$ac_includes_default
12122#include <$ac_header>
12123_ACEOF
12124rm -f conftest.$ac_objext
12125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126 (eval $ac_compile) 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try='test -z "$ac_c_werror_flag"
12134 || test ! -s conftest.err'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest.$ac_objext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_header_compiler=yes
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151ac_header_compiler=no
12152fi
12153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12155echo "${ECHO_T}$ac_header_compiler" >&6
12156
12157# Is the header present?
12158echo "$as_me:$LINENO: checking $ac_header presence" >&5
12159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12160cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
12166#include <$ac_header>
12167_ACEOF
12168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } >/dev/null; then
12176 if test -s conftest.err; then
12177 ac_cpp_err=$ac_c_preproc_warn_flag
12178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12179 else
12180 ac_cpp_err=
12181 fi
12182else
12183 ac_cpp_err=yes
9608ab8b 12184fi
bec39cab
AC
12185if test -z "$ac_cpp_err"; then
12186 ac_header_preproc=yes
9608ab8b 12187else
bec39cab
AC
12188 echo "$as_me: failed program was:" >&5
12189sed 's/^/| /' conftest.$ac_ext >&5
12190
12191 ac_header_preproc=no
9608ab8b 12192fi
bec39cab
AC
12193rm -f conftest.err conftest.$ac_ext
12194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12195echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12196
bec39cab
AC
12197# So? What about this header?
12198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12199 yes:no: )
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12204 ac_header_preproc=yes
12205 ;;
12206 no:yes:* )
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12219 (
12220 cat <<\_ASBOX
12221## ------------------------------------------ ##
12222## Report this to the AC_PACKAGE_NAME lists. ##
12223## ------------------------------------------ ##
12224_ASBOX
12225 ) |
12226 sed "s/^/$as_me: WARNING: /" >&2
12227 ;;
12228esac
12229echo "$as_me:$LINENO: checking for $ac_header" >&5
12230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12231if eval "test \"\${$as_ac_Header+set}\" = set"; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233else
12234 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12235fi
bec39cab
AC
12236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12238
9608ab8b 12239fi
bec39cab
AC
12240if test `eval echo '${'$as_ac_Header'}'` = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12243_ACEOF
12244
9608ab8b 12245fi
bec39cab 12246
5ee754fc 12247done
9608ab8b 12248
bec39cab
AC
12249
12250for ac_header in unistd.h
78434e59 12251do
bec39cab
AC
12252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12253if eval "test \"\${$as_ac_Header+set}\" = set"; then
12254 echo "$as_me:$LINENO: checking for $ac_header" >&5
12255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12256if eval "test \"\${$as_ac_Header+set}\" = set"; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258fi
12259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12261else
12262 # Is the header compilable?
12263echo "$as_me:$LINENO: checking $ac_header usability" >&5
12264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12265cat >conftest.$ac_ext <<_ACEOF
12266/* confdefs.h. */
12267_ACEOF
12268cat confdefs.h >>conftest.$ac_ext
12269cat >>conftest.$ac_ext <<_ACEOF
12270/* end confdefs.h. */
12271$ac_includes_default
12272#include <$ac_header>
12273_ACEOF
12274rm -f conftest.$ac_objext
12275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag"
12284 || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest.$ac_objext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_header_compiler=yes
12297else
12298 echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
12301ac_header_compiler=no
12302fi
12303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12305echo "${ECHO_T}$ac_header_compiler" >&6
12306
12307# Is the header present?
12308echo "$as_me:$LINENO: checking $ac_header presence" >&5
12309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12310cat >conftest.$ac_ext <<_ACEOF
12311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
12316#include <$ac_header>
12317_ACEOF
12318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } >/dev/null; then
12326 if test -s conftest.err; then
12327 ac_cpp_err=$ac_c_preproc_warn_flag
12328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12329 else
12330 ac_cpp_err=
12331 fi
12332else
12333 ac_cpp_err=yes
78434e59 12334fi
bec39cab
AC
12335if test -z "$ac_cpp_err"; then
12336 ac_header_preproc=yes
78434e59 12337else
bec39cab
AC
12338 echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
12341 ac_header_preproc=no
78434e59 12342fi
bec39cab
AC
12343rm -f conftest.err conftest.$ac_ext
12344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12345echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12346
bec39cab
AC
12347# So? What about this header?
12348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12349 yes:no: )
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12354 ac_header_preproc=yes
12355 ;;
12356 no:yes:* )
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12369 (
12370 cat <<\_ASBOX
12371## ------------------------------------------ ##
12372## Report this to the AC_PACKAGE_NAME lists. ##
12373## ------------------------------------------ ##
12374_ASBOX
12375 ) |
12376 sed "s/^/$as_me: WARNING: /" >&2
12377 ;;
12378esac
12379echo "$as_me:$LINENO: checking for $ac_header" >&5
12380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383else
12384 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12385fi
bec39cab
AC
12386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12388
086ec9eb 12389fi
bec39cab
AC
12390if test `eval echo '${'$as_ac_Header'}'` = yes; then
12391 cat >>confdefs.h <<_ACEOF
12392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12393_ACEOF
12394
086ec9eb 12395fi
bec39cab 12396
086ec9eb
MK
12397done
12398
9608ab8b 12399
b1d19a62 12400# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12401# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12402# think that we don't have <curses.h> if we're using GCC.
12403case $host_os in
b1d19a62 12404 solaris2.[789])
5ee754fc 12405 if test "$GCC" = yes; then
bec39cab
AC
12406
12407cat >>confdefs.h <<\_ACEOF
5ee754fc 12408#define _MSE_INT_H 1
bec39cab 12409_ACEOF
5ee754fc
MK
12410
12411 fi ;;
12412esac
bec39cab
AC
12413
12414
12415
12416
12417for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12418do
bec39cab
AC
12419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420if eval "test \"\${$as_ac_Header+set}\" = set"; then
12421 echo "$as_me:$LINENO: checking for $ac_header" >&5
12422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12423if eval "test \"\${$as_ac_Header+set}\" = set"; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425fi
12426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12428else
12429 # Is the header compilable?
12430echo "$as_me:$LINENO: checking $ac_header usability" >&5
12431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12432cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h. */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h. */
12438$ac_includes_default
12439#include <$ac_header>
12440_ACEOF
12441rm -f conftest.$ac_objext
12442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12443 (eval $ac_compile) 2>conftest.er1
12444 ac_status=$?
12445 grep -v '^ *+' conftest.er1 >conftest.err
12446 rm -f conftest.er1
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try='test -z "$ac_c_werror_flag"
12451 || test ! -s conftest.err'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest.$ac_objext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_header_compiler=yes
12464else
12465 echo "$as_me: failed program was:" >&5
12466sed 's/^/| /' conftest.$ac_ext >&5
12467
12468ac_header_compiler=no
12469fi
12470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12472echo "${ECHO_T}$ac_header_compiler" >&6
12473
12474# Is the header present?
12475echo "$as_me:$LINENO: checking $ac_header presence" >&5
12476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h. */
12483#include <$ac_header>
12484_ACEOF
12485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } >/dev/null; then
12493 if test -s conftest.err; then
12494 ac_cpp_err=$ac_c_preproc_warn_flag
12495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12496 else
12497 ac_cpp_err=
12498 fi
12499else
12500 ac_cpp_err=yes
c906108c 12501fi
bec39cab
AC
12502if test -z "$ac_cpp_err"; then
12503 ac_header_preproc=yes
12504else
12505 echo "$as_me: failed program was:" >&5
12506sed 's/^/| /' conftest.$ac_ext >&5
12507
12508 ac_header_preproc=no
c906108c 12509fi
bec39cab
AC
12510rm -f conftest.err conftest.$ac_ext
12511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12512echo "${ECHO_T}$ac_header_preproc" >&6
12513
12514# So? What about this header?
12515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12516 yes:no: )
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12521 ac_header_preproc=yes
12522 ;;
12523 no:yes:* )
12524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12536 (
12537 cat <<\_ASBOX
12538## ------------------------------------------ ##
12539## Report this to the AC_PACKAGE_NAME lists. ##
12540## ------------------------------------------ ##
12541_ASBOX
12542 ) |
12543 sed "s/^/$as_me: WARNING: /" >&2
12544 ;;
12545esac
12546echo "$as_me:$LINENO: checking for $ac_header" >&5
12547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12548if eval "test \"\${$as_ac_Header+set}\" = set"; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12550else
bec39cab 12551 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12552fi
bec39cab
AC
12553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12555
12556fi
12557if test `eval echo '${'$as_ac_Header'}'` = yes; then
12558 cat >>confdefs.h <<_ACEOF
12559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12560_ACEOF
12561
12562fi
12563
5ee754fc 12564done
c906108c 12565
bec39cab 12566
065a1afc 12567for ac_header in ncurses/term.h
3b78cdbb 12568do
bec39cab
AC
12569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12570if eval "test \"\${$as_ac_Header+set}\" = set"; then
12571 echo "$as_me:$LINENO: checking for $ac_header" >&5
12572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12573if eval "test \"\${$as_ac_Header+set}\" = set"; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575fi
12576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12578else
12579 # Is the header compilable?
12580echo "$as_me:$LINENO: checking $ac_header usability" >&5
12581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12582cat >conftest.$ac_ext <<_ACEOF
12583/* confdefs.h. */
12584_ACEOF
12585cat confdefs.h >>conftest.$ac_ext
12586cat >>conftest.$ac_ext <<_ACEOF
12587/* end confdefs.h. */
12588$ac_includes_default
12589#include <$ac_header>
12590_ACEOF
12591rm -f conftest.$ac_objext
12592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -z "$ac_c_werror_flag"
12601 || test ! -s conftest.err'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try='test -s conftest.$ac_objext'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 ac_header_compiler=yes
12614else
12615 echo "$as_me: failed program was:" >&5
12616sed 's/^/| /' conftest.$ac_ext >&5
12617
12618ac_header_compiler=no
12619fi
12620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12622echo "${ECHO_T}$ac_header_compiler" >&6
12623
12624# Is the header present?
12625echo "$as_me:$LINENO: checking $ac_header presence" >&5
12626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12627cat >conftest.$ac_ext <<_ACEOF
12628/* confdefs.h. */
12629_ACEOF
12630cat confdefs.h >>conftest.$ac_ext
12631cat >>conftest.$ac_ext <<_ACEOF
12632/* end confdefs.h. */
12633#include <$ac_header>
12634_ACEOF
12635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } >/dev/null; then
12643 if test -s conftest.err; then
12644 ac_cpp_err=$ac_c_preproc_warn_flag
12645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12646 else
12647 ac_cpp_err=
12648 fi
12649else
12650 ac_cpp_err=yes
3b78cdbb 12651fi
bec39cab
AC
12652if test -z "$ac_cpp_err"; then
12653 ac_header_preproc=yes
12654else
12655 echo "$as_me: failed program was:" >&5
12656sed 's/^/| /' conftest.$ac_ext >&5
12657
12658 ac_header_preproc=no
3b78cdbb 12659fi
bec39cab
AC
12660rm -f conftest.err conftest.$ac_ext
12661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12662echo "${ECHO_T}$ac_header_preproc" >&6
12663
12664# So? What about this header?
12665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12666 yes:no: )
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12671 ac_header_preproc=yes
12672 ;;
12673 no:yes:* )
12674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12686 (
12687 cat <<\_ASBOX
12688## ------------------------------------------ ##
12689## Report this to the AC_PACKAGE_NAME lists. ##
12690## ------------------------------------------ ##
12691_ASBOX
12692 ) |
12693 sed "s/^/$as_me: WARNING: /" >&2
12694 ;;
12695esac
12696echo "$as_me:$LINENO: checking for $ac_header" >&5
12697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12698if eval "test \"\${$as_ac_Header+set}\" = set"; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12700else
bec39cab
AC
12701 eval "$as_ac_Header=\$ac_header_preproc"
12702fi
12703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12705
3b78cdbb 12706fi
bec39cab
AC
12707if test `eval echo '${'$as_ac_Header'}'` = yes; then
12708 cat >>confdefs.h <<_ACEOF
12709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12710_ACEOF
12711
12712fi
12713
3b78cdbb
DA
12714done
12715
c906108c 12716
065a1afc
JB
12717for ac_header in term.h
12718do
12719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12720echo "$as_me:$LINENO: checking for $ac_header" >&5
12721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12722if eval "test \"\${$as_ac_Header+set}\" = set"; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725 cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h. */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731#if HAVE_CURSES_H
12732# include <curses.h>
12733#endif
12734
12735
12736#include <$ac_header>
12737_ACEOF
12738rm -f conftest.$ac_objext
12739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12740 (eval $ac_compile) 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -z "$ac_c_werror_flag"
12748 || test ! -s conftest.err'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; } &&
12754 { ac_try='test -s conftest.$ac_objext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 eval "$as_ac_Header=yes"
12761else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765eval "$as_ac_Header=no"
12766fi
12767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12768fi
12769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12771if test `eval echo '${'$as_ac_Header'}'` = yes; then
12772 cat >>confdefs.h <<_ACEOF
12773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12774_ACEOF
12775
12776fi
12777
12778done
12779
12780
5ee754fc
MK
12781# FIXME: kettenis/20030102: In most cases we include these
12782# unconditionally, so what's the point in checking these?
bec39cab
AC
12783
12784
12785for ac_header in ctype.h time.h
c906108c 12786do
bec39cab
AC
12787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12788if eval "test \"\${$as_ac_Header+set}\" = set"; then
12789 echo "$as_me:$LINENO: checking for $ac_header" >&5
12790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12791if eval "test \"\${$as_ac_Header+set}\" = set"; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12793fi
12794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12796else
12797 # Is the header compilable?
12798echo "$as_me:$LINENO: checking $ac_header usability" >&5
12799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12800cat >conftest.$ac_ext <<_ACEOF
12801/* confdefs.h. */
12802_ACEOF
12803cat confdefs.h >>conftest.$ac_ext
12804cat >>conftest.$ac_ext <<_ACEOF
12805/* end confdefs.h. */
12806$ac_includes_default
12807#include <$ac_header>
12808_ACEOF
12809rm -f conftest.$ac_objext
12810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12811 (eval $ac_compile) 2>conftest.er1
12812 ac_status=$?
12813 grep -v '^ *+' conftest.er1 >conftest.err
12814 rm -f conftest.er1
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try='test -z "$ac_c_werror_flag"
12819 || test ! -s conftest.err'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest.$ac_objext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 ac_header_compiler=yes
12832else
12833 echo "$as_me: failed program was:" >&5
12834sed 's/^/| /' conftest.$ac_ext >&5
12835
12836ac_header_compiler=no
12837fi
12838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12840echo "${ECHO_T}$ac_header_compiler" >&6
12841
12842# Is the header present?
12843echo "$as_me:$LINENO: checking $ac_header presence" >&5
12844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12845cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h. */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h. */
12851#include <$ac_header>
12852_ACEOF
12853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12855 ac_status=$?
12856 grep -v '^ *+' conftest.er1 >conftest.err
12857 rm -f conftest.er1
12858 cat conftest.err >&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } >/dev/null; then
12861 if test -s conftest.err; then
12862 ac_cpp_err=$ac_c_preproc_warn_flag
12863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12864 else
12865 ac_cpp_err=
12866 fi
12867else
12868 ac_cpp_err=yes
c906108c 12869fi
bec39cab
AC
12870if test -z "$ac_cpp_err"; then
12871 ac_header_preproc=yes
12872else
12873 echo "$as_me: failed program was:" >&5
12874sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 ac_header_preproc=no
c906108c 12877fi
bec39cab
AC
12878rm -f conftest.err conftest.$ac_ext
12879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12880echo "${ECHO_T}$ac_header_preproc" >&6
12881
12882# So? What about this header?
12883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12884 yes:no: )
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12889 ac_header_preproc=yes
12890 ;;
12891 no:yes:* )
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12904 (
12905 cat <<\_ASBOX
12906## ------------------------------------------ ##
12907## Report this to the AC_PACKAGE_NAME lists. ##
12908## ------------------------------------------ ##
12909_ASBOX
12910 ) |
12911 sed "s/^/$as_me: WARNING: /" >&2
12912 ;;
12913esac
12914echo "$as_me:$LINENO: checking for $ac_header" >&5
12915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12916if eval "test \"\${$as_ac_Header+set}\" = set"; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12918else
bec39cab
AC
12919 eval "$as_ac_Header=\$ac_header_preproc"
12920fi
12921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12923
12924fi
12925if test `eval echo '${'$as_ac_Header'}'` = yes; then
12926 cat >>confdefs.h <<_ACEOF
12927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928_ACEOF
12929
c906108c 12930fi
bec39cab 12931
c906108c
SS
12932done
12933
5ee754fc 12934
666ec76f
MK
12935# ------------------------- #
12936# Checks for declarations. #
12937# ------------------------- #
12938
a3828db0
MK
12939echo "$as_me:$LINENO: checking whether free is declared" >&5
12940echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12941if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 12942 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12943else
bec39cab
AC
12944 cat >conftest.$ac_ext <<_ACEOF
12945/* confdefs.h. */
12946_ACEOF
12947cat confdefs.h >>conftest.$ac_ext
12948cat >>conftest.$ac_ext <<_ACEOF
12949/* end confdefs.h. */
a3828db0 12950$ac_includes_default
bec39cab
AC
12951int
12952main ()
12953{
a3828db0
MK
12954#ifndef free
12955 char *p = (char *) free;
666ec76f 12956#endif
a3828db0 12957
bec39cab
AC
12958 ;
12959 return 0;
12960}
12961_ACEOF
12962rm -f conftest.$ac_objext
12963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12964 (eval $ac_compile) 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag"
12972 || test ! -s conftest.err'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest.$ac_objext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
a3828db0 12984 ac_cv_have_decl_free=yes
40a7debc 12985else
bec39cab
AC
12986 echo "$as_me: failed program was:" >&5
12987sed 's/^/| /' conftest.$ac_ext >&5
12988
a3828db0 12989ac_cv_have_decl_free=no
40a7debc 12990fi
bec39cab 12991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 12992fi
a3828db0
MK
12993echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12994echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12995if test $ac_cv_have_decl_free = yes; then
40a7debc 12996
a3828db0
MK
12997cat >>confdefs.h <<_ACEOF
12998#define HAVE_DECL_FREE 1
666ec76f
MK
12999_ACEOF
13000
a3828db0 13001
666ec76f 13002else
a3828db0
MK
13003 cat >>confdefs.h <<_ACEOF
13004#define HAVE_DECL_FREE 0
bec39cab 13005_ACEOF
40a7debc 13006
b9362cc7 13007
666ec76f 13008fi
a3828db0
MK
13009echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13010echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13011if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013else
13014 cat >conftest.$ac_ext <<_ACEOF
13015/* confdefs.h. */
13016_ACEOF
13017cat confdefs.h >>conftest.$ac_ext
13018cat >>conftest.$ac_ext <<_ACEOF
13019/* end confdefs.h. */
666ec76f
MK
13020$ac_includes_default
13021int
13022main ()
13023{
a3828db0
MK
13024#ifndef malloc
13025 char *p = (char *) malloc;
13026#endif
13027
666ec76f
MK
13028 ;
13029 return 0;
13030}
13031_ACEOF
13032rm -f conftest.$ac_objext
13033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>conftest.er1
13035 ac_status=$?
13036 grep -v '^ *+' conftest.er1 >conftest.err
13037 rm -f conftest.er1
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -z "$ac_c_werror_flag"
13042 || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
a3828db0 13054 ac_cv_have_decl_malloc=yes
666ec76f
MK
13055else
13056 echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 13058
a3828db0
MK
13059ac_cv_have_decl_malloc=no
13060fi
13061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13062fi
13063echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13064echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13065if test $ac_cv_have_decl_malloc = yes; then
13066
13067cat >>confdefs.h <<_ACEOF
13068#define HAVE_DECL_MALLOC 1
13069_ACEOF
13070
13071
13072else
13073 cat >>confdefs.h <<_ACEOF
13074#define HAVE_DECL_MALLOC 0
13075_ACEOF
13076
13077
13078fi
13079echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13080echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13081if test "${ac_cv_have_decl_realloc+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083else
13084 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13085/* confdefs.h. */
13086_ACEOF
13087cat confdefs.h >>conftest.$ac_ext
13088cat >>conftest.$ac_ext <<_ACEOF
13089/* end confdefs.h. */
13090$ac_includes_default
bec39cab
AC
13091int
13092main ()
13093{
a3828db0
MK
13094#ifndef realloc
13095 char *p = (char *) realloc;
13096#endif
13097
bec39cab
AC
13098 ;
13099 return 0;
13100}
13101_ACEOF
13102rm -f conftest.$ac_objext
13103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104 (eval $ac_compile) 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try='test -z "$ac_c_werror_flag"
13112 || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest.$ac_objext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
a3828db0 13124 ac_cv_have_decl_realloc=yes
b9362cc7 13125else
bec39cab
AC
13126 echo "$as_me: failed program was:" >&5
13127sed 's/^/| /' conftest.$ac_ext >&5
13128
a3828db0 13129ac_cv_have_decl_realloc=no
b9362cc7 13130fi
bec39cab 13131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13132fi
a3828db0
MK
13133echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13134echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13135if test $ac_cv_have_decl_realloc = yes; then
b9362cc7 13136
666ec76f 13137cat >>confdefs.h <<_ACEOF
a3828db0 13138#define HAVE_DECL_REALLOC 1
bec39cab
AC
13139_ACEOF
13140
bec39cab 13141
a3828db0
MK
13142else
13143 cat >>confdefs.h <<_ACEOF
13144#define HAVE_DECL_REALLOC 0
13145_ACEOF
b9362cc7
AC
13146
13147
a3828db0 13148fi
5ee754fc 13149
a3828db0
MK
13150
13151echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13152echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13153if test "${ac_cv_have_decl_strerror+set}" = set; then
bec39cab
AC
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155else
13156 cat >conftest.$ac_ext <<_ACEOF
13157/* confdefs.h. */
13158_ACEOF
13159cat confdefs.h >>conftest.$ac_ext
13160cat >>conftest.$ac_ext <<_ACEOF
13161/* end confdefs.h. */
a3828db0 13162$ac_includes_default
bec39cab
AC
13163int
13164main ()
13165{
a3828db0
MK
13166#ifndef strerror
13167 char *p = (char *) strerror;
13168#endif
13169
bec39cab
AC
13170 ;
13171 return 0;
13172}
13173_ACEOF
13174rm -f conftest.$ac_objext
13175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176 (eval $ac_compile) 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest.$ac_objext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
a3828db0 13196 ac_cv_have_decl_strerror=yes
c906108c 13197else
bec39cab
AC
13198 echo "$as_me: failed program was:" >&5
13199sed 's/^/| /' conftest.$ac_ext >&5
13200
a3828db0 13201ac_cv_have_decl_strerror=no
c906108c 13202fi
bec39cab 13203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13204fi
a3828db0
MK
13205echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13206echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13207if test $ac_cv_have_decl_strerror = yes; then
c906108c 13208
bec39cab 13209cat >>confdefs.h <<_ACEOF
a3828db0 13210#define HAVE_DECL_STRERROR 1
bec39cab 13211_ACEOF
c906108c 13212
c906108c 13213
a3828db0
MK
13214else
13215 cat >>confdefs.h <<_ACEOF
13216#define HAVE_DECL_STRERROR 0
13217_ACEOF
c906108c 13218
5ee754fc 13219
a3828db0
MK
13220fi
13221echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13222echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13223if test "${ac_cv_have_decl_strstr+set}" = set; then
bec39cab
AC
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225else
13226 cat >conftest.$ac_ext <<_ACEOF
13227/* confdefs.h. */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
13231/* end confdefs.h. */
a3828db0 13232$ac_includes_default
bec39cab
AC
13233int
13234main ()
13235{
a3828db0
MK
13236#ifndef strstr
13237 char *p = (char *) strstr;
bec39cab
AC
13238#endif
13239
13240 ;
13241 return 0;
13242}
13243_ACEOF
13244rm -f conftest.$ac_objext
13245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13246 (eval $ac_compile) 2>conftest.er1
13247 ac_status=$?
13248 grep -v '^ *+' conftest.er1 >conftest.err
13249 rm -f conftest.er1
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
13253 { ac_try='test -z "$ac_c_werror_flag"
13254 || test ! -s conftest.err'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; } &&
13260 { ac_try='test -s conftest.$ac_objext'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
a3828db0 13266 ac_cv_have_decl_strstr=yes
c906108c 13267else
bec39cab
AC
13268 echo "$as_me: failed program was:" >&5
13269sed 's/^/| /' conftest.$ac_ext >&5
13270
a3828db0 13271ac_cv_have_decl_strstr=no
c906108c 13272fi
bec39cab 13273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13274fi
a3828db0
MK
13275echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13276echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13277if test $ac_cv_have_decl_strstr = yes; then
bec39cab 13278
a3828db0
MK
13279cat >>confdefs.h <<_ACEOF
13280#define HAVE_DECL_STRSTR 1
13281_ACEOF
13282
13283
13284else
13285 cat >>confdefs.h <<_ACEOF
13286#define HAVE_DECL_STRSTR 0
bec39cab 13287_ACEOF
c906108c 13288
a3828db0 13289
c906108c
SS
13290fi
13291
a3828db0
MK
13292
13293echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13294echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13295if test "${ac_cv_have_decl_getopt+set}" = set; then
bec39cab 13296 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13297else
bec39cab
AC
13298 cat >conftest.$ac_ext <<_ACEOF
13299/* confdefs.h. */
13300_ACEOF
13301cat confdefs.h >>conftest.$ac_ext
13302cat >>conftest.$ac_ext <<_ACEOF
13303/* end confdefs.h. */
a3828db0
MK
13304$ac_includes_default
13305int
13306main ()
13307{
13308#ifndef getopt
13309 char *p = (char *) getopt;
bec39cab
AC
13310#endif
13311
a3828db0
MK
13312 ;
13313 return 0;
13314}
bec39cab
AC
13315_ACEOF
13316rm -f conftest.$ac_objext
13317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13318 (eval $ac_compile) 2>conftest.er1
13319 ac_status=$?
13320 grep -v '^ *+' conftest.er1 >conftest.err
13321 rm -f conftest.er1
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
13325 { ac_try='test -z "$ac_c_werror_flag"
13326 || test ! -s conftest.err'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest.$ac_objext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
a3828db0 13338 ac_cv_have_decl_getopt=yes
bce58c09 13339else
bec39cab
AC
13340 echo "$as_me: failed program was:" >&5
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
a3828db0 13343ac_cv_have_decl_getopt=no
bce58c09 13344fi
bec39cab 13345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13346fi
a3828db0
MK
13347echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13348echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13349if test $ac_cv_have_decl_getopt = yes; then
bec39cab 13350
a3828db0
MK
13351cat >>confdefs.h <<_ACEOF
13352#define HAVE_DECL_GETOPT 1
13353_ACEOF
bce58c09 13354
a3828db0
MK
13355
13356else
13357 cat >>confdefs.h <<_ACEOF
13358#define HAVE_DECL_GETOPT 0
bec39cab 13359_ACEOF
bce58c09 13360
c906108c 13361
e5a7de23
EZ
13362fi
13363echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13364echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13365if test "${ac_cv_have_decl_snprintf+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
13368 cat >conftest.$ac_ext <<_ACEOF
13369/* confdefs.h. */
13370_ACEOF
13371cat confdefs.h >>conftest.$ac_ext
13372cat >>conftest.$ac_ext <<_ACEOF
13373/* end confdefs.h. */
13374$ac_includes_default
13375int
13376main ()
13377{
13378#ifndef snprintf
13379 char *p = (char *) snprintf;
13380#endif
13381
13382 ;
13383 return 0;
13384}
13385_ACEOF
13386rm -f conftest.$ac_objext
13387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388 (eval $ac_compile) 2>conftest.er1
13389 ac_status=$?
13390 grep -v '^ *+' conftest.er1 >conftest.err
13391 rm -f conftest.er1
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -z "$ac_c_werror_flag"
13396 || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest.$ac_objext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_have_decl_snprintf=yes
13409else
13410 echo "$as_me: failed program was:" >&5
13411sed 's/^/| /' conftest.$ac_ext >&5
13412
13413ac_cv_have_decl_snprintf=no
13414fi
13415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13416fi
13417echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13418echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13419if test $ac_cv_have_decl_snprintf = yes; then
13420
13421cat >>confdefs.h <<_ACEOF
13422#define HAVE_DECL_SNPRINTF 1
13423_ACEOF
13424
13425
13426else
13427 cat >>confdefs.h <<_ACEOF
13428#define HAVE_DECL_SNPRINTF 0
13429_ACEOF
13430
13431
13432fi
13433echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13434echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13435if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437else
13438 cat >conftest.$ac_ext <<_ACEOF
13439/* confdefs.h. */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
13443/* end confdefs.h. */
13444$ac_includes_default
13445int
13446main ()
13447{
13448#ifndef vsnprintf
13449 char *p = (char *) vsnprintf;
13450#endif
13451
13452 ;
13453 return 0;
13454}
13455_ACEOF
13456rm -f conftest.$ac_objext
13457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag"
13466 || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try='test -s conftest.$ac_objext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_cv_have_decl_vsnprintf=yes
13479else
13480 echo "$as_me: failed program was:" >&5
13481sed 's/^/| /' conftest.$ac_ext >&5
13482
13483ac_cv_have_decl_vsnprintf=no
13484fi
13485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13486fi
13487echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13488echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13489if test $ac_cv_have_decl_vsnprintf = yes; then
13490
13491cat >>confdefs.h <<_ACEOF
13492#define HAVE_DECL_VSNPRINTF 1
13493_ACEOF
13494
13495
13496else
13497 cat >>confdefs.h <<_ACEOF
13498#define HAVE_DECL_VSNPRINTF 0
13499_ACEOF
13500
13501
a3828db0 13502fi
5ee754fc 13503
a3828db0
MK
13504
13505
13506# ----------------------- #
13507# Checks for structures. #
13508# ----------------------- #
13509
13510echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13511echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13512if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
bec39cab
AC
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13514else
13515 cat >conftest.$ac_ext <<_ACEOF
13516/* confdefs.h. */
13517_ACEOF
13518cat confdefs.h >>conftest.$ac_ext
13519cat >>conftest.$ac_ext <<_ACEOF
13520/* end confdefs.h. */
a3828db0 13521$ac_includes_default
bec39cab
AC
13522int
13523main ()
13524{
a3828db0
MK
13525static struct stat ac_aggr;
13526if (ac_aggr.st_blocks)
13527return 0;
bec39cab
AC
13528 ;
13529 return 0;
13530}
13531_ACEOF
a3828db0
MK
13532rm -f conftest.$ac_objext
13533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
a3828db0 13548 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
a3828db0 13554 ac_cv_member_struct_stat_st_blocks=yes
bec39cab
AC
13555else
13556 echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
a3828db0
MK
13559cat >conftest.$ac_ext <<_ACEOF
13560/* confdefs.h. */
bec39cab
AC
13561_ACEOF
13562cat confdefs.h >>conftest.$ac_ext
13563cat >>conftest.$ac_ext <<_ACEOF
13564/* end confdefs.h. */
a3828db0 13565$ac_includes_default
bec39cab
AC
13566int
13567main ()
13568{
a3828db0
MK
13569static struct stat ac_aggr;
13570if (sizeof ac_aggr.st_blocks)
13571return 0;
bec39cab
AC
13572 ;
13573 return 0;
13574}
13575_ACEOF
a3828db0
MK
13576rm -f conftest.$ac_objext
13577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_c_werror_flag"
13586 || test ! -s conftest.err'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
a3828db0 13592 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
a3828db0 13598 ac_cv_member_struct_stat_st_blocks=yes
46711df8 13599else
bec39cab
AC
13600 echo "$as_me: failed program was:" >&5
13601sed 's/^/| /' conftest.$ac_ext >&5
13602
a3828db0 13603ac_cv_member_struct_stat_st_blocks=no
46711df8 13604fi
a3828db0 13605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13606fi
a3828db0
MK
13607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13608fi
13609echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13610echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13611if test $ac_cv_member_struct_stat_st_blocks = yes; then
46711df8 13612
a3828db0
MK
13613cat >>confdefs.h <<_ACEOF
13614#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab 13615_ACEOF
46711df8 13616
46711df8 13617
d3ea6809
MM
13618fi
13619
13620echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13621echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13622if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624else
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */
13631$ac_includes_default
13632int
13633main ()
13634{
13635static struct stat ac_aggr;
13636if (ac_aggr.st_blksize)
13637return 0;
13638 ;
13639 return 0;
13640}
13641_ACEOF
13642rm -f conftest.$ac_objext
13643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_member_struct_stat_st_blksize=yes
13665else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669cat >conftest.$ac_ext <<_ACEOF
13670/* confdefs.h. */
13671_ACEOF
13672cat confdefs.h >>conftest.$ac_ext
13673cat >>conftest.$ac_ext <<_ACEOF
13674/* end confdefs.h. */
13675$ac_includes_default
13676int
13677main ()
13678{
13679static struct stat ac_aggr;
13680if (sizeof ac_aggr.st_blksize)
13681return 0;
13682 ;
13683 return 0;
13684}
13685_ACEOF
13686rm -f conftest.$ac_objext
13687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13688 (eval $ac_compile) 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
13695 { ac_try='test -z "$ac_c_werror_flag"
13696 || test ! -s conftest.err'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; } &&
13702 { ac_try='test -s conftest.$ac_objext'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 ac_cv_member_struct_stat_st_blksize=yes
13709else
13710 echo "$as_me: failed program was:" >&5
13711sed 's/^/| /' conftest.$ac_ext >&5
13712
13713ac_cv_member_struct_stat_st_blksize=no
13714fi
13715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13716fi
13717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13718fi
13719echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13720echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13721if test $ac_cv_member_struct_stat_st_blksize = yes; then
13722
13723cat >>confdefs.h <<_ACEOF
13724#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13725_ACEOF
13726
13727
a3828db0 13728fi
46711df8 13729
46711df8 13730
a3828db0
MK
13731# ------------------ #
13732# Checks for types. #
13733# ------------------ #
46711df8 13734
a3828db0
MK
13735echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13736echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13737if test "${ac_cv_type_signal+set}" = set; then
bec39cab
AC
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739else
13740 cat >conftest.$ac_ext <<_ACEOF
13741/* confdefs.h. */
13742_ACEOF
13743cat confdefs.h >>conftest.$ac_ext
13744cat >>conftest.$ac_ext <<_ACEOF
13745/* end confdefs.h. */
a3828db0
MK
13746#include <sys/types.h>
13747#include <signal.h>
13748#ifdef signal
13749# undef signal
bec39cab 13750#endif
bec39cab 13751#ifdef __cplusplus
a3828db0 13752extern "C" void (*signal (int, void (*)(int)))(int);
46711df8 13753#else
a3828db0 13754void (*signal ()) ();
46711df8
MK
13755#endif
13756
bec39cab
AC
13757int
13758main ()
13759{
a3828db0 13760int i;
bec39cab
AC
13761 ;
13762 return 0;
13763}
13764_ACEOF
a3828db0
MK
13765rm -f conftest.$ac_objext
13766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13767 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13768 ac_status=$?
13769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -z "$ac_c_werror_flag"
13775 || test ! -s conftest.err'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
a3828db0 13781 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
a3828db0 13787 ac_cv_type_signal=void
bec39cab
AC
13788else
13789 echo "$as_me: failed program was:" >&5
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
a3828db0 13792ac_cv_type_signal=int
bec39cab 13793fi
a3828db0 13794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 13795fi
a3828db0
MK
13796echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13797echo "${ECHO_T}$ac_cv_type_signal" >&6
bec39cab
AC
13798
13799cat >>confdefs.h <<_ACEOF
a3828db0 13800#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13801_ACEOF
46711df8 13802
46711df8 13803
f9f87d2c
MK
13804echo "$as_me:$LINENO: checking for socklen_t" >&5
13805echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13806if test "${ac_cv_type_socklen_t+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808else
13809 cat >conftest.$ac_ext <<_ACEOF
13810/* confdefs.h. */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
13814/* end confdefs.h. */
13815#include <sys/types.h>
13816#include <sys/socket.h>
13817
13818
13819int
13820main ()
13821{
13822if ((socklen_t *) 0)
13823 return 0;
13824if (sizeof (socklen_t))
13825 return 0;
13826 ;
13827 return 0;
13828}
13829_ACEOF
13830rm -f conftest.$ac_objext
13831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>conftest.er1
13833 ac_status=$?
13834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_c_werror_flag"
13840 || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 ac_cv_type_socklen_t=yes
13853else
13854 echo "$as_me: failed program was:" >&5
13855sed 's/^/| /' conftest.$ac_ext >&5
13856
13857ac_cv_type_socklen_t=no
13858fi
13859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13860fi
13861echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13862echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13863if test $ac_cv_type_socklen_t = yes; then
13864
13865cat >>confdefs.h <<_ACEOF
13866#define HAVE_SOCKLEN_T 1
13867_ACEOF
13868
13869
3be60c3d
MK
13870fi
13871
13872echo "$as_me:$LINENO: checking for uintptr_t" >&5
13873echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13874if test "${ac_cv_type_uintptr_t+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
13883#include <stdint.h>
13884
13885int
13886main ()
13887{
13888if ((uintptr_t *) 0)
13889 return 0;
13890if (sizeof (uintptr_t))
13891 return 0;
13892 ;
13893 return 0;
13894}
13895_ACEOF
13896rm -f conftest.$ac_objext
13897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest.$ac_objext'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_type_uintptr_t=yes
13919else
13920 echo "$as_me: failed program was:" >&5
13921sed 's/^/| /' conftest.$ac_ext >&5
13922
13923ac_cv_type_uintptr_t=no
13924fi
13925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13926fi
13927echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13928echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13929if test $ac_cv_type_uintptr_t = yes; then
13930
13931cat >>confdefs.h <<_ACEOF
13932#define HAVE_UINTPTR_T 1
13933_ACEOF
13934
13935
f9f87d2c
MK
13936fi
13937
46711df8 13938
a3828db0
MK
13939# ------------------------------------- #
13940# Checks for compiler characteristics. #
13941# ------------------------------------- #
13942
13943echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13944echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13945if test "${ac_cv_c_const+set}" = set; then
bec39cab 13946 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13947else
bec39cab
AC
13948 cat >conftest.$ac_ext <<_ACEOF
13949/* confdefs.h. */
13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
13953/* end confdefs.h. */
bec39cab
AC
13954
13955int
46711df8
MK
13956main ()
13957{
a3828db0
MK
13958/* FIXME: Include the comments suggested by Paul. */
13959#ifndef __cplusplus
13960 /* Ultrix mips cc rejects this. */
13961 typedef int charset[2];
13962 const charset x;
13963 /* SunOS 4.1.1 cc rejects this. */
13964 char const *const *ccp;
13965 char **p;
13966 /* NEC SVR4.0.2 mips cc rejects this. */
13967 struct point {int x, y;};
13968 static struct point const zero = {0,0};
13969 /* AIX XL C 1.02.0.0 rejects this.
13970 It does not let you subtract one const X* pointer from another in
13971 an arm of an if-expression whose if-part is not a constant
13972 expression */
13973 const char *g = "string";
13974 ccp = &g + (g ? g-g : 0);
13975 /* HPUX 7.0 cc rejects these. */
13976 ++ccp;
13977 p = (char**) ccp;
13978 ccp = (char const *const *) p;
13979 { /* SCO 3.2v4 cc rejects this. */
13980 char *t;
13981 char const *s = 0 ? (char *) 0 : (char const *) 0;
13982
13983 *t++ = 0;
13984 }
13985 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13986 int x[] = {25, 17};
13987 const int *foo = &x[0];
13988 ++foo;
13989 }
13990 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13991 typedef const int *iptr;
13992 iptr p = 0;
13993 ++p;
13994 }
13995 { /* AIX XL C 1.02.0.0 rejects this saying
13996 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13997 struct s { int j; const int *ap[3]; };
13998 struct s *b; b->j = 5;
13999 }
14000 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14001 const int foo = 10;
14002 }
14003#endif
14004
14005 ;
14006 return 0;
46711df8 14007}
bec39cab 14008_ACEOF
a3828db0
MK
14009rm -f conftest.$ac_objext
14010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
bec39cab
AC
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
a3828db0 14031 ac_cv_c_const=yes
46711df8 14032else
a3828db0 14033 echo "$as_me: failed program was:" >&5
bec39cab
AC
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
a3828db0 14036ac_cv_c_const=no
46711df8 14037fi
a3828db0 14038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 14039fi
a3828db0
MK
14040echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14041echo "${ECHO_T}$ac_cv_c_const" >&6
14042if test $ac_cv_c_const = no; then
46711df8 14043
a3828db0
MK
14044cat >>confdefs.h <<\_ACEOF
14045#define const
bec39cab
AC
14046_ACEOF
14047
46711df8
MK
14048fi
14049
a3828db0
MK
14050echo "$as_me:$LINENO: checking for inline" >&5
14051echo $ECHO_N "checking for inline... $ECHO_C" >&6
14052if test "${ac_cv_c_inline+set}" = set; then
bec39cab 14053 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14054else
a3828db0
MK
14055 ac_cv_c_inline=no
14056for ac_kw in inline __inline__ __inline; do
14057 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14058/* confdefs.h. */
14059_ACEOF
14060cat confdefs.h >>conftest.$ac_ext
14061cat >>conftest.$ac_ext <<_ACEOF
14062/* end confdefs.h. */
a3828db0
MK
14063#ifndef __cplusplus
14064typedef int foo_t;
14065static $ac_kw foo_t static_foo () {return 0; }
14066$ac_kw foo_t foo () {return 0; }
14067#endif
14068
bec39cab
AC
14069_ACEOF
14070rm -f conftest.$ac_objext
14071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>conftest.er1
14073 ac_status=$?
14074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -z "$ac_c_werror_flag"
14080 || test ! -s conftest.err'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest.$ac_objext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
a3828db0 14092 ac_cv_c_inline=$ac_kw; break
bec39cab
AC
14093else
14094 echo "$as_me: failed program was:" >&5
14095sed 's/^/| /' conftest.$ac_ext >&5
14096
bec39cab
AC
14097fi
14098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0 14099done
bec39cab 14100
74c1b268 14101fi
a3828db0
MK
14102echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14103echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 14104
bec39cab 14105
a3828db0
MK
14106case $ac_cv_c_inline in
14107 inline | yes) ;;
14108 *)
14109 case $ac_cv_c_inline in
14110 no) ac_val=;;
14111 *) ac_val=$ac_cv_c_inline;;
14112 esac
14113 cat >>confdefs.h <<_ACEOF
14114#ifndef __cplusplus
14115#define inline $ac_val
14116#endif
14117_ACEOF
bec39cab
AC
14118 ;;
14119esac
bec39cab 14120
74c1b268 14121
a3828db0
MK
14122# ------------------------------ #
14123# Checks for library functions. #
14124# ------------------------------ #
bec39cab 14125
a3828db0
MK
14126# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14127# for constant arguments. Useless!
14128echo "$as_me:$LINENO: checking for working alloca.h" >&5
14129echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14130if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132else
14133 cat >conftest.$ac_ext <<_ACEOF
14134/* confdefs.h. */
14135_ACEOF
14136cat confdefs.h >>conftest.$ac_ext
14137cat >>conftest.$ac_ext <<_ACEOF
14138/* end confdefs.h. */
a3828db0 14139#include <alloca.h>
bec39cab
AC
14140int
14141main ()
14142{
a3828db0 14143char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
14144 ;
14145 return 0;
14146}
14147_ACEOF
14148rm -f conftest.$ac_objext conftest$ac_exeext
14149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14150 (eval $ac_link) 2>conftest.er1
14151 ac_status=$?
14152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
14157 { ac_try='test -z "$ac_c_werror_flag"
14158 || test ! -s conftest.err'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; } &&
14164 { ac_try='test -s conftest$ac_exeext'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
a3828db0 14170 ac_cv_working_alloca_h=yes
bec39cab
AC
14171else
14172 echo "$as_me: failed program was:" >&5
14173sed 's/^/| /' conftest.$ac_ext >&5
14174
a3828db0 14175ac_cv_working_alloca_h=no
bec39cab
AC
14176fi
14177rm -f conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
14179fi
a3828db0
MK
14180echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14181echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14182if test $ac_cv_working_alloca_h = yes; then
14183
14184cat >>confdefs.h <<\_ACEOF
14185#define HAVE_ALLOCA_H 1
bec39cab 14186_ACEOF
74c1b268 14187
74c1b268
AC
14188fi
14189
a3828db0
MK
14190echo "$as_me:$LINENO: checking for alloca" >&5
14191echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14192if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 14193 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 14194else
bec39cab
AC
14195 cat >conftest.$ac_ext <<_ACEOF
14196/* confdefs.h. */
14197_ACEOF
14198cat confdefs.h >>conftest.$ac_ext
14199cat >>conftest.$ac_ext <<_ACEOF
14200/* end confdefs.h. */
a3828db0
MK
14201#ifdef __GNUC__
14202# define alloca __builtin_alloca
14203#else
14204# ifdef _MSC_VER
14205# include <malloc.h>
14206# define alloca _alloca
14207# else
14208# if HAVE_ALLOCA_H
14209# include <alloca.h>
14210# else
14211# ifdef _AIX
14212 #pragma alloca
14213# else
14214# ifndef alloca /* predefined by HP cc +Olibcalls */
14215char *alloca ();
14216# endif
14217# endif
14218# endif
97bf5e38 14219# endif
a3828db0 14220#endif
97bf5e38 14221
bec39cab
AC
14222int
14223main ()
14224{
a3828db0 14225char *p = (char *) alloca (1);
bec39cab
AC
14226 ;
14227 return 0;
14228}
14229_ACEOF
a3828db0
MK
14230rm -f conftest.$ac_objext conftest$ac_exeext
14231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14232 (eval $ac_link) 2>conftest.er1
bec39cab
AC
14233 ac_status=$?
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag"
14240 || test ! -s conftest.err'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
a3828db0 14246 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
a3828db0 14252 ac_cv_func_alloca_works=yes
0200359f 14253else
bec39cab
AC
14254 echo "$as_me: failed program was:" >&5
14255sed 's/^/| /' conftest.$ac_ext >&5
0200359f 14256
a3828db0 14257ac_cv_func_alloca_works=no
0200359f 14258fi
a3828db0
MK
14259rm -f conftest.err conftest.$ac_objext \
14260 conftest$ac_exeext conftest.$ac_ext
72473524 14261fi
a3828db0
MK
14262echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14263echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 14264
a3828db0
MK
14265if test $ac_cv_func_alloca_works = yes; then
14266
14267cat >>confdefs.h <<\_ACEOF
14268#define HAVE_ALLOCA 1
bec39cab
AC
14269_ACEOF
14270
a3828db0
MK
14271else
14272 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14273# that cause trouble. Some versions do not even contain alloca or
14274# contain a buggy version. If you still want to use their alloca,
14275# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 14276
a3828db0 14277ALLOCA=alloca.$ac_objext
bec39cab 14278
a3828db0
MK
14279cat >>confdefs.h <<\_ACEOF
14280#define C_ALLOCA 1
14281_ACEOF
bec39cab 14282
a3828db0
MK
14283
14284echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14285echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14286if test "${ac_cv_os_cray+set}" = set; then
bec39cab 14287 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14288else
a3828db0 14289 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14290/* confdefs.h. */
14291_ACEOF
14292cat confdefs.h >>conftest.$ac_ext
14293cat >>conftest.$ac_ext <<_ACEOF
14294/* end confdefs.h. */
a3828db0
MK
14295#if defined(CRAY) && ! defined(CRAY2)
14296webecray
14297#else
14298wenotbecray
14299#endif
14300
14301_ACEOF
14302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14303 $EGREP "webecray" >/dev/null 2>&1; then
14304 ac_cv_os_cray=yes
14305else
14306 ac_cv_os_cray=no
14307fi
14308rm -f conftest*
14309
14310fi
14311echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14312echo "${ECHO_T}$ac_cv_os_cray" >&6
14313if test $ac_cv_os_cray = yes; then
14314 for ac_func in _getb67 GETB67 getb67; do
14315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14316echo "$as_me:$LINENO: checking for $ac_func" >&5
14317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14318if eval "test \"\${$as_ac_var+set}\" = set"; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320else
14321 cat >conftest.$ac_ext <<_ACEOF
14322/* confdefs.h. */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h. */
14327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14329#define $ac_func innocuous_$ac_func
14330
14331/* System header to define __stub macros and hopefully few prototypes,
14332 which can conflict with char $ac_func (); below.
14333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14334 <limits.h> exists even on freestanding compilers. */
14335
14336#ifdef __STDC__
14337# include <limits.h>
14338#else
14339# include <assert.h>
14340#endif
14341
14342#undef $ac_func
14343
14344/* Override any gcc2 internal prototype to avoid an error. */
14345#ifdef __cplusplus
14346extern "C"
14347{
14348#endif
14349/* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14351char $ac_func ();
14352/* The GNU C library defines this for functions which it implements
14353 to always fail with ENOSYS. Some functions are actually named
14354 something starting with __ and the normal name is an alias. */
14355#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14356choke me
14357#else
14358char (*f) () = $ac_func;
14359#endif
14360#ifdef __cplusplus
14361}
14362#endif
14363
14364int
14365main ()
14366{
14367return f != $ac_func;
14368 ;
14369 return 0;
14370}
14371_ACEOF
14372rm -f conftest.$ac_objext conftest$ac_exeext
14373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14374 (eval $ac_link) 2>conftest.er1
14375 ac_status=$?
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest$ac_exeext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 eval "$as_ac_var=yes"
14395else
14396 echo "$as_me: failed program was:" >&5
14397sed 's/^/| /' conftest.$ac_ext >&5
14398
14399eval "$as_ac_var=no"
14400fi
14401rm -f conftest.err conftest.$ac_objext \
14402 conftest$ac_exeext conftest.$ac_ext
14403fi
14404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14406if test `eval echo '${'$as_ac_var'}'` = yes; then
14407
14408cat >>confdefs.h <<_ACEOF
14409#define CRAY_STACKSEG_END $ac_func
14410_ACEOF
14411
14412 break
14413fi
14414
14415 done
14416fi
14417
14418echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14419echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14420if test "${ac_cv_c_stack_direction+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422else
14423 if test "$cross_compiling" = yes; then
14424 ac_cv_c_stack_direction=0
14425else
14426 cat >conftest.$ac_ext <<_ACEOF
14427/* confdefs.h. */
14428_ACEOF
14429cat confdefs.h >>conftest.$ac_ext
14430cat >>conftest.$ac_ext <<_ACEOF
14431/* end confdefs.h. */
14432int
14433find_stack_direction ()
14434{
14435 static char *addr = 0;
14436 auto char dummy;
14437 if (addr == 0)
14438 {
14439 addr = &dummy;
14440 return find_stack_direction ();
14441 }
14442 else
14443 return (&dummy > addr) ? 1 : -1;
14444}
14445
14446int
14447main ()
14448{
14449 exit (find_stack_direction () < 0);
14450}
14451_ACEOF
14452rm -f conftest$ac_exeext
14453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14454 (eval $ac_link) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; }; then
14463 ac_cv_c_stack_direction=1
14464else
14465 echo "$as_me: program exited with status $ac_status" >&5
14466echo "$as_me: failed program was:" >&5
14467sed 's/^/| /' conftest.$ac_ext >&5
14468
14469( exit $ac_status )
14470ac_cv_c_stack_direction=-1
14471fi
14472rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14473fi
14474fi
14475echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14476echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14477
14478cat >>confdefs.h <<_ACEOF
14479#define STACK_DIRECTION $ac_cv_c_stack_direction
14480_ACEOF
14481
14482
14483fi
14484
14485
14486
14487for ac_header in stdlib.h unistd.h
14488do
14489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14490if eval "test \"\${$as_ac_Header+set}\" = set"; then
14491 echo "$as_me:$LINENO: checking for $ac_header" >&5
14492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14493if eval "test \"\${$as_ac_Header+set}\" = set"; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14495fi
14496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14498else
14499 # Is the header compilable?
14500echo "$as_me:$LINENO: checking $ac_header usability" >&5
14501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14502cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h. */
14508$ac_includes_default
14509#include <$ac_header>
14510_ACEOF
14511rm -f conftest.$ac_objext
14512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513 (eval $ac_compile) 2>conftest.er1
14514 ac_status=$?
bec39cab
AC
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag"
14521 || test ! -s conftest.err'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; } &&
14527 { ac_try='test -s conftest.$ac_objext'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533 ac_header_compiler=yes
14534else
14535 echo "$as_me: failed program was:" >&5
14536sed 's/^/| /' conftest.$ac_ext >&5
14537
14538ac_header_compiler=no
14539fi
14540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14542echo "${ECHO_T}$ac_header_compiler" >&6
14543
14544# Is the header present?
14545echo "$as_me:$LINENO: checking $ac_header presence" >&5
14546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14547cat >conftest.$ac_ext <<_ACEOF
14548/* confdefs.h. */
14549_ACEOF
14550cat confdefs.h >>conftest.$ac_ext
14551cat >>conftest.$ac_ext <<_ACEOF
14552/* end confdefs.h. */
14553#include <$ac_header>
14554_ACEOF
14555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } >/dev/null; then
14563 if test -s conftest.err; then
14564 ac_cpp_err=$ac_c_preproc_warn_flag
14565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14566 else
14567 ac_cpp_err=
14568 fi
14569else
14570 ac_cpp_err=yes
14571fi
14572if test -z "$ac_cpp_err"; then
14573 ac_header_preproc=yes
97bf5e38 14574else
bec39cab
AC
14575 echo "$as_me: failed program was:" >&5
14576sed 's/^/| /' conftest.$ac_ext >&5
14577
14578 ac_header_preproc=no
72473524 14579fi
bec39cab
AC
14580rm -f conftest.err conftest.$ac_ext
14581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14582echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14583
bec39cab
AC
14584# So? What about this header?
14585case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14586 yes:no: )
14587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14590echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14591 ac_header_preproc=yes
14592 ;;
14593 no:yes:* )
14594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14595echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14597echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14599echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14601echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14603echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14605echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14606 (
14607 cat <<\_ASBOX
14608## ------------------------------------------ ##
14609## Report this to the AC_PACKAGE_NAME lists. ##
14610## ------------------------------------------ ##
14611_ASBOX
14612 ) |
14613 sed "s/^/$as_me: WARNING: /" >&2
14614 ;;
14615esac
14616echo "$as_me:$LINENO: checking for $ac_header" >&5
14617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14618if eval "test \"\${$as_ac_Header+set}\" = set"; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14620else
bec39cab
AC
14621 eval "$as_ac_Header=\$ac_header_preproc"
14622fi
14623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14625
14626fi
14627if test `eval echo '${'$as_ac_Header'}'` = yes; then
14628 cat >>confdefs.h <<_ACEOF
14629#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14630_ACEOF
14631
14632fi
14633
14634done
14635
14636
a3828db0 14637for ac_func in getpagesize
bec39cab
AC
14638do
14639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14640echo "$as_me:$LINENO: checking for $ac_func" >&5
14641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14642if eval "test \"\${$as_ac_var+set}\" = set"; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14644else
14645 cat >conftest.$ac_ext <<_ACEOF
14646/* confdefs.h. */
14647_ACEOF
14648cat confdefs.h >>conftest.$ac_ext
14649cat >>conftest.$ac_ext <<_ACEOF
14650/* end confdefs.h. */
14651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14653#define $ac_func innocuous_$ac_func
14654
97bf5e38 14655/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14656 which can conflict with char $ac_func (); below.
14657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658 <limits.h> exists even on freestanding compilers. */
2b2d558c 14659
bec39cab
AC
14660#ifdef __STDC__
14661# include <limits.h>
14662#else
14663# include <assert.h>
14664#endif
97bf5e38 14665
bec39cab
AC
14666#undef $ac_func
14667
14668/* Override any gcc2 internal prototype to avoid an error. */
14669#ifdef __cplusplus
14670extern "C"
14671{
14672#endif
14673/* We use char because int might match the return type of a gcc2
14674 builtin and then its argument prototype would still apply. */
14675char $ac_func ();
97bf5e38
MK
14676/* The GNU C library defines this for functions which it implements
14677 to always fail with ENOSYS. Some functions are actually named
14678 something starting with __ and the normal name is an alias. */
bec39cab 14679#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14680choke me
14681#else
bec39cab
AC
14682char (*f) () = $ac_func;
14683#endif
14684#ifdef __cplusplus
14685}
97bf5e38
MK
14686#endif
14687
bec39cab
AC
14688int
14689main ()
14690{
14691return f != $ac_func;
14692 ;
14693 return 0;
14694}
14695_ACEOF
14696rm -f conftest.$ac_objext conftest$ac_exeext
14697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>conftest.er1
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 eval "$as_ac_var=yes"
14719else
14720 echo "$as_me: failed program was:" >&5
14721sed 's/^/| /' conftest.$ac_ext >&5
14722
14723eval "$as_ac_var=no"
14724fi
14725rm -f conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727fi
14728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14729echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14730if test `eval echo '${'$as_ac_var'}'` = yes; then
14731 cat >>confdefs.h <<_ACEOF
14732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14733_ACEOF
14734
2b2d558c 14735fi
bec39cab 14736done
2b2d558c 14737
a3828db0
MK
14738echo "$as_me:$LINENO: checking for working mmap" >&5
14739echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14740if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 14741 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14742else
bec39cab 14743 if test "$cross_compiling" = yes; then
a3828db0 14744 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
14745else
14746 cat >conftest.$ac_ext <<_ACEOF
a3828db0 14747/* confdefs.h. */
bec39cab
AC
14748_ACEOF
14749cat confdefs.h >>conftest.$ac_ext
14750cat >>conftest.$ac_ext <<_ACEOF
14751/* end confdefs.h. */
a3828db0
MK
14752$ac_includes_default
14753/* malloc might have been renamed as rpl_malloc. */
14754#undef malloc
bec39cab 14755
a3828db0
MK
14756/* Thanks to Mike Haertel and Jim Avera for this test.
14757 Here is a matrix of mmap possibilities:
14758 mmap private not fixed
14759 mmap private fixed at somewhere currently unmapped
14760 mmap private fixed at somewhere already mapped
14761 mmap shared not fixed
14762 mmap shared fixed at somewhere currently unmapped
14763 mmap shared fixed at somewhere already mapped
14764 For private mappings, we should verify that changes cannot be read()
14765 back from the file, nor mmap's back from the file at a different
14766 address. (There have been systems where private was not correctly
14767 implemented like the infamous i386 svr4.0, and systems where the
14768 VM page cache was not coherent with the file system buffer cache
14769 like early versions of FreeBSD and possibly contemporary NetBSD.)
14770 For shared mappings, we should conversely verify that changes get
14771 propagated back to all the places they're supposed to be.
7dfa765c 14772
a3828db0
MK
14773 Grep wants private fixed already mapped.
14774 The main things grep needs to know about mmap are:
14775 * does it exist and is it safe to write into the mmap'd area
14776 * how to use it (BSD variants) */
7dfa765c 14777
a3828db0
MK
14778#include <fcntl.h>
14779#include <sys/mman.h>
7dfa765c 14780
a3828db0
MK
14781#if !STDC_HEADERS && !HAVE_STDLIB_H
14782char *malloc ();
14783#endif
7dfa765c 14784
a3828db0
MK
14785/* This mess was copied from the GNU getpagesize.h. */
14786#if !HAVE_GETPAGESIZE
14787/* Assume that all systems that can run configure have sys/param.h. */
14788# if !HAVE_SYS_PARAM_H
14789# define HAVE_SYS_PARAM_H 1
14790# endif
64bb1671 14791
a3828db0
MK
14792# ifdef _SC_PAGESIZE
14793# define getpagesize() sysconf(_SC_PAGESIZE)
14794# else /* no _SC_PAGESIZE */
14795# if HAVE_SYS_PARAM_H
14796# include <sys/param.h>
14797# ifdef EXEC_PAGESIZE
14798# define getpagesize() EXEC_PAGESIZE
14799# else /* no EXEC_PAGESIZE */
14800# ifdef NBPG
14801# define getpagesize() NBPG * CLSIZE
14802# ifndef CLSIZE
14803# define CLSIZE 1
14804# endif /* no CLSIZE */
14805# else /* no NBPG */
14806# ifdef NBPC
14807# define getpagesize() NBPC
14808# else /* no NBPC */
14809# ifdef PAGESIZE
14810# define getpagesize() PAGESIZE
14811# endif /* PAGESIZE */
14812# endif /* no NBPC */
14813# endif /* no NBPG */
14814# endif /* no EXEC_PAGESIZE */
14815# else /* no HAVE_SYS_PARAM_H */
14816# define getpagesize() 8192 /* punt totally */
14817# endif /* no HAVE_SYS_PARAM_H */
14818# endif /* no _SC_PAGESIZE */
64bb1671 14819
a3828db0 14820#endif /* no HAVE_GETPAGESIZE */
64bb1671 14821
a3828db0
MK
14822int
14823main ()
14824{
14825 char *data, *data2, *data3;
14826 int i, pagesize;
14827 int fd;
97bf5e38 14828
a3828db0
MK
14829 pagesize = getpagesize ();
14830
14831 /* First, make a file with some known garbage in it. */
14832 data = (char *) malloc (pagesize);
14833 if (!data)
14834 exit (1);
14835 for (i = 0; i < pagesize; ++i)
14836 *(data + i) = rand ();
14837 umask (0);
14838 fd = creat ("conftest.mmap", 0600);
14839 if (fd < 0)
14840 exit (1);
14841 if (write (fd, data, pagesize) != pagesize)
14842 exit (1);
14843 close (fd);
14844
14845 /* Next, try to mmap the file at a fixed address which already has
14846 something else allocated at it. If we can, also make sure that
14847 we see the same garbage. */
14848 fd = open ("conftest.mmap", O_RDWR);
14849 if (fd < 0)
14850 exit (1);
14851 data2 = (char *) malloc (2 * pagesize);
14852 if (!data2)
14853 exit (1);
14854 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14855 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14856 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14857 exit (1);
14858 for (i = 0; i < pagesize; ++i)
14859 if (*(data + i) != *(data2 + i))
14860 exit (1);
14861
14862 /* Finally, make sure that changes to the mapped area do not
14863 percolate back to the file as seen by read(). (This is a bug on
14864 some variants of i386 svr4.0.) */
14865 for (i = 0; i < pagesize; ++i)
14866 *(data2 + i) = *(data2 + i) + 1;
14867 data3 = (char *) malloc (pagesize);
14868 if (!data3)
14869 exit (1);
14870 if (read (fd, data3, pagesize) != pagesize)
14871 exit (1);
14872 for (i = 0; i < pagesize; ++i)
14873 if (*(data + i) != *(data3 + i))
14874 exit (1);
14875 close (fd);
14876 exit (0);
97bf5e38 14877}
bec39cab
AC
14878_ACEOF
14879rm -f conftest$ac_exeext
14880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
a3828db0 14890 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 14891else
bec39cab
AC
14892 echo "$as_me: program exited with status $ac_status" >&5
14893echo "$as_me: failed program was:" >&5
14894sed 's/^/| /' conftest.$ac_ext >&5
14895
14896( exit $ac_status )
a3828db0 14897ac_cv_func_mmap_fixed_mapped=no
0afdd437 14898fi
a3828db0 14899rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 14900fi
a3828db0
MK
14901fi
14902echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14903echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14904if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14905
14906cat >>confdefs.h <<\_ACEOF
a3828db0 14907#define HAVE_MMAP 1
bec39cab 14908_ACEOF
0afdd437
MK
14909
14910fi
a3828db0 14911rm -f conftest.mmap
0afdd437 14912
a3828db0
MK
14913echo "$as_me:$LINENO: checking for pid_t" >&5
14914echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14915if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917else
14918 cat >conftest.$ac_ext <<_ACEOF
14919/* confdefs.h. */
14920_ACEOF
14921cat confdefs.h >>conftest.$ac_ext
14922cat >>conftest.$ac_ext <<_ACEOF
14923/* end confdefs.h. */
a3828db0 14924$ac_includes_default
bec39cab
AC
14925int
14926main ()
14927{
a3828db0
MK
14928if ((pid_t *) 0)
14929 return 0;
14930if (sizeof (pid_t))
14931 return 0;
bec39cab
AC
14932 ;
14933 return 0;
14934}
14935_ACEOF
a3828db0
MK
14936rm -f conftest.$ac_objext
14937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14939 ac_status=$?
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
14945 { ac_try='test -z "$ac_c_werror_flag"
14946 || test ! -s conftest.err'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
a3828db0 14952 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
a3828db0 14958 ac_cv_type_pid_t=yes
bec39cab
AC
14959else
14960 echo "$as_me: failed program was:" >&5
14961sed 's/^/| /' conftest.$ac_ext >&5
14962
a3828db0 14963ac_cv_type_pid_t=no
bec39cab 14964fi
a3828db0 14965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 14966fi
a3828db0
MK
14967echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14968echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14969if test $ac_cv_type_pid_t = yes; then
14970 :
14971else
14972
14973cat >>confdefs.h <<_ACEOF
14974#define pid_t int
bec39cab 14975_ACEOF
7e89e357 14976
7e89e357
JT
14977fi
14978
bec39cab 14979
a3828db0
MK
14980
14981for ac_header in unistd.h vfork.h
7be570e7 14982do
a3828db0
MK
14983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14984if eval "test \"\${$as_ac_Header+set}\" = set"; then
14985 echo "$as_me:$LINENO: checking for $ac_header" >&5
14986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14987if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14988 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
14989fi
14990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14992else
a3828db0
MK
14993 # Is the header compilable?
14994echo "$as_me:$LINENO: checking $ac_header usability" >&5
14995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14996cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14997/* confdefs.h. */
14998_ACEOF
14999cat confdefs.h >>conftest.$ac_ext
15000cat >>conftest.$ac_ext <<_ACEOF
15001/* end confdefs.h. */
a3828db0
MK
15002$ac_includes_default
15003#include <$ac_header>
bec39cab 15004_ACEOF
a3828db0
MK
15005rm -f conftest.$ac_objext
15006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15007 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } &&
15014 { ac_try='test -z "$ac_c_werror_flag"
15015 || test ! -s conftest.err'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; } &&
a3828db0 15021 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
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); }; }; then
a3828db0 15027 ac_header_compiler=yes
bec39cab
AC
15028else
15029 echo "$as_me: failed program was:" >&5
15030sed 's/^/| /' conftest.$ac_ext >&5
15031
a3828db0 15032ac_header_compiler=no
bec39cab 15033fi
a3828db0
MK
15034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15036echo "${ECHO_T}$ac_header_compiler" >&6
15037
15038# Is the header present?
15039echo "$as_me:$LINENO: checking $ac_header presence" >&5
15040echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15041cat >conftest.$ac_ext <<_ACEOF
15042/* confdefs.h. */
15043_ACEOF
15044cat confdefs.h >>conftest.$ac_ext
15045cat >>conftest.$ac_ext <<_ACEOF
15046/* end confdefs.h. */
15047#include <$ac_header>
15048_ACEOF
15049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } >/dev/null; then
15057 if test -s conftest.err; then
15058 ac_cpp_err=$ac_c_preproc_warn_flag
15059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15060 else
15061 ac_cpp_err=
15062 fi
15063else
15064 ac_cpp_err=yes
15065fi
15066if test -z "$ac_cpp_err"; then
15067 ac_header_preproc=yes
15068else
15069 echo "$as_me: failed program was:" >&5
15070sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 ac_header_preproc=no
15073fi
15074rm -f conftest.err conftest.$ac_ext
15075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15076echo "${ECHO_T}$ac_header_preproc" >&6
15077
15078# So? What about this header?
15079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15080 yes:no: )
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15085 ac_header_preproc=yes
15086 ;;
15087 no:yes:* )
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15100 (
15101 cat <<\_ASBOX
15102## ------------------------------------------ ##
15103## Report this to the AC_PACKAGE_NAME lists. ##
15104## ------------------------------------------ ##
15105_ASBOX
15106 ) |
15107 sed "s/^/$as_me: WARNING: /" >&2
15108 ;;
15109esac
15110echo "$as_me:$LINENO: checking for $ac_header" >&5
15111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15112if eval "test \"\${$as_ac_Header+set}\" = set"; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15114else
15115 eval "$as_ac_Header=\$ac_header_preproc"
15116fi
15117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15119
bec39cab 15120fi
a3828db0 15121if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 15122 cat >>confdefs.h <<_ACEOF
a3828db0 15123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 15124_ACEOF
14abd0fb 15125
14abd0fb 15126fi
a3828db0 15127
14abd0fb
MK
15128done
15129
bec39cab 15130
a3828db0
MK
15131
15132for ac_func in fork vfork
14abd0fb 15133do
bec39cab
AC
15134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15135echo "$as_me:$LINENO: checking for $ac_func" >&5
15136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15137if eval "test \"\${$as_ac_var+set}\" = set"; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15139else
15140 cat >conftest.$ac_ext <<_ACEOF
15141/* confdefs.h. */
15142_ACEOF
15143cat confdefs.h >>conftest.$ac_ext
15144cat >>conftest.$ac_ext <<_ACEOF
15145/* end confdefs.h. */
15146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15148#define $ac_func innocuous_$ac_func
15149
14abd0fb 15150/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15151 which can conflict with char $ac_func (); below.
15152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15153 <limits.h> exists even on freestanding compilers. */
15154
15155#ifdef __STDC__
15156# include <limits.h>
15157#else
15158# include <assert.h>
15159#endif
14abd0fb 15160
bec39cab 15161#undef $ac_func
14abd0fb 15162
bec39cab
AC
15163/* Override any gcc2 internal prototype to avoid an error. */
15164#ifdef __cplusplus
15165extern "C"
15166{
15167#endif
15168/* We use char because int might match the return type of a gcc2
15169 builtin and then its argument prototype would still apply. */
15170char $ac_func ();
14abd0fb
MK
15171/* The GNU C library defines this for functions which it implements
15172 to always fail with ENOSYS. Some functions are actually named
15173 something starting with __ and the normal name is an alias. */
15174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15175choke me
15176#else
bec39cab
AC
15177char (*f) () = $ac_func;
15178#endif
15179#ifdef __cplusplus
15180}
14abd0fb
MK
15181#endif
15182
bec39cab
AC
15183int
15184main ()
15185{
15186return f != $ac_func;
15187 ;
15188 return 0;
15189}
15190_ACEOF
15191rm -f conftest.$ac_objext conftest$ac_exeext
15192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193 (eval $ac_link) 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag"
15201 || test ! -s conftest.err'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try='test -s conftest$ac_exeext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 eval "$as_ac_var=yes"
15214else
15215 echo "$as_me: failed program was:" >&5
15216sed 's/^/| /' conftest.$ac_ext >&5
15217
15218eval "$as_ac_var=no"
15219fi
15220rm -f conftest.err conftest.$ac_objext \
15221 conftest$ac_exeext conftest.$ac_ext
15222fi
15223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15225if test `eval echo '${'$as_ac_var'}'` = yes; then
15226 cat >>confdefs.h <<_ACEOF
15227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15228_ACEOF
7be570e7 15229
7be570e7
JM
15230fi
15231done
15232
a3828db0
MK
15233if test "x$ac_cv_func_fork" = xyes; then
15234 echo "$as_me:$LINENO: checking for working fork" >&5
15235echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15236if test "${ac_cv_func_fork_works+set}" = set; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15238else
15239 if test "$cross_compiling" = yes; then
15240 ac_cv_func_fork_works=cross
15241else
15242 cat >conftest.$ac_ext <<_ACEOF
15243/* By Ruediger Kuhlmann. */
15244 #include <sys/types.h>
15245 #if HAVE_UNISTD_H
15246 # include <unistd.h>
15247 #endif
15248 /* Some systems only have a dummy stub for fork() */
15249 int main ()
15250 {
15251 if (fork() < 0)
15252 exit (1);
15253 exit (0);
15254 }
15255_ACEOF
15256rm -f conftest$ac_exeext
15257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15258 (eval $ac_link) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_func_fork_works=yes
15268else
15269 echo "$as_me: program exited with status $ac_status" >&5
15270echo "$as_me: failed program was:" >&5
15271sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 15272
a3828db0
MK
15273( exit $ac_status )
15274ac_cv_func_fork_works=no
15275fi
15276rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15277fi
15278fi
15279echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15280echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15281
15282else
15283 ac_cv_func_fork_works=$ac_cv_func_fork
15284fi
15285if test "x$ac_cv_func_fork_works" = xcross; then
15286 case $host in
15287 *-*-amigaos* | *-*-msdosdjgpp*)
15288 # Override, as these systems have only a dummy fork() stub
15289 ac_cv_func_fork_works=no
15290 ;;
15291 *)
15292 ac_cv_func_fork_works=yes
15293 ;;
15294 esac
15295 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15296echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15297fi
15298ac_cv_func_vfork_works=$ac_cv_func_vfork
15299if test "x$ac_cv_func_vfork" = xyes; then
15300 echo "$as_me:$LINENO: checking for working vfork" >&5
15301echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15302if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 15303 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
15304else
15305 if test "$cross_compiling" = yes; then
15306 ac_cv_func_vfork_works=cross
bec39cab
AC
15307else
15308 cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
a3828db0
MK
15314/* Thanks to Paul Eggert for this test. */
15315#include <stdio.h>
15316#include <stdlib.h>
15317#include <sys/types.h>
15318#include <sys/stat.h>
15319#include <sys/wait.h>
15320#if HAVE_UNISTD_H
15321# include <unistd.h>
bec39cab 15322#endif
a3828db0
MK
15323#if HAVE_VFORK_H
15324# include <vfork.h>
bec39cab 15325#endif
a3828db0
MK
15326/* On some sparc systems, changes by the child to local and incoming
15327 argument registers are propagated back to the parent. The compiler
15328 is told about this with #include <vfork.h>, but some compilers
15329 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15330 static variable whose address is put into a register that is
15331 clobbered by the vfork. */
15332static void
bec39cab 15333#ifdef __cplusplus
a3828db0
MK
15334sparc_address_test (int arg)
15335# else
15336sparc_address_test (arg) int arg;
c906108c 15337#endif
a3828db0
MK
15338{
15339 static pid_t child;
15340 if (!child) {
15341 child = vfork ();
15342 if (child < 0) {
15343 perror ("vfork");
15344 _exit(2);
15345 }
15346 if (!child) {
15347 arg = getpid();
15348 write(-1, "", 0);
15349 _exit (arg);
15350 }
15351 }
15352}
97bf5e38 15353
bec39cab
AC
15354int
15355main ()
15356{
a3828db0
MK
15357 pid_t parent = getpid ();
15358 pid_t child;
15359
15360 sparc_address_test (0);
15361
15362 child = vfork ();
15363
15364 if (child == 0) {
15365 /* Here is another test for sparc vfork register problems. This
15366 test uses lots of local variables, at least as many local
15367 variables as main has allocated so far including compiler
15368 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15369 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15370 reuse the register of parent for one of the local variables,
15371 since it will think that parent can't possibly be used any more
15372 in this routine. Assigning to the local variable will thus
15373 munge parent in the parent process. */
15374 pid_t
15375 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15376 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15377 /* Convince the compiler that p..p7 are live; otherwise, it might
15378 use the same hardware register for all 8 local variables. */
15379 if (p != p1 || p != p2 || p != p3 || p != p4
15380 || p != p5 || p != p6 || p != p7)
15381 _exit(1);
15382
15383 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15384 from child file descriptors. If the child closes a descriptor
15385 before it execs or exits, this munges the parent's descriptor
15386 as well. Test for this by closing stdout in the child. */
15387 _exit(close(fileno(stdout)) != 0);
15388 } else {
15389 int status;
15390 struct stat st;
15391
15392 while (wait(&status) != child)
15393 ;
15394 exit(
15395 /* Was there some problem with vforking? */
15396 child < 0
15397
15398 /* Did the child fail? (This shouldn't happen.) */
15399 || status
15400
15401 /* Did the vfork/compiler bug occur? */
15402 || parent != getpid()
15403
15404 /* Did the file descriptor bug occur? */
15405 || fstat(fileno(stdout), &st) != 0
15406 );
15407 }
bec39cab
AC
15408}
15409_ACEOF
a3828db0 15410rm -f conftest$ac_exeext
bec39cab 15411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 15412 (eval $ac_link) 2>&5
bec39cab
AC
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 15415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
a3828db0
MK
15421 ac_cv_func_vfork_works=yes
15422else
15423 echo "$as_me: program exited with status $ac_status" >&5
15424echo "$as_me: failed program was:" >&5
15425sed 's/^/| /' conftest.$ac_ext >&5
15426
15427( exit $ac_status )
15428ac_cv_func_vfork_works=no
15429fi
15430rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15431fi
15432fi
15433echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15434echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15435
15436fi;
15437if test "x$ac_cv_func_fork_works" = xcross; then
15438 ac_cv_func_vfork_works=$ac_cv_func_vfork
15439 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15440echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15441fi
15442
15443if test "x$ac_cv_func_vfork_works" = xyes; then
15444
15445cat >>confdefs.h <<\_ACEOF
15446#define HAVE_WORKING_VFORK 1
15447_ACEOF
15448
bec39cab 15449else
bec39cab 15450
a3828db0
MK
15451cat >>confdefs.h <<\_ACEOF
15452#define vfork fork
15453_ACEOF
15454
bec39cab 15455fi
a3828db0
MK
15456if test "x$ac_cv_func_fork_works" = xyes; then
15457
15458cat >>confdefs.h <<\_ACEOF
15459#define HAVE_WORKING_FORK 1
bec39cab 15460_ACEOF
c906108c 15461
c906108c
SS
15462fi
15463
bec39cab
AC
15464
15465
a3828db0 15466for ac_func in canonicalize_file_name realpath
97bf5e38 15467do
bec39cab
AC
15468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15469echo "$as_me:$LINENO: checking for $ac_func" >&5
15470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15471if eval "test \"\${$as_ac_var+set}\" = set"; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473else
15474 cat >conftest.$ac_ext <<_ACEOF
15475/* confdefs.h. */
15476_ACEOF
15477cat confdefs.h >>conftest.$ac_ext
15478cat >>conftest.$ac_ext <<_ACEOF
15479/* end confdefs.h. */
15480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15482#define $ac_func innocuous_$ac_func
15483
d3ea6809
MM
15484/* System header to define __stub macros and hopefully few prototypes,
15485 which can conflict with char $ac_func (); below.
15486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15487 <limits.h> exists even on freestanding compilers. */
15488
15489#ifdef __STDC__
15490# include <limits.h>
15491#else
15492# include <assert.h>
15493#endif
15494
15495#undef $ac_func
15496
15497/* Override any gcc2 internal prototype to avoid an error. */
15498#ifdef __cplusplus
15499extern "C"
15500{
15501#endif
15502/* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15504char $ac_func ();
15505/* The GNU C library defines this for functions which it implements
15506 to always fail with ENOSYS. Some functions are actually named
15507 something starting with __ and the normal name is an alias. */
15508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15509choke me
15510#else
15511char (*f) () = $ac_func;
15512#endif
15513#ifdef __cplusplus
15514}
15515#endif
15516
15517int
15518main ()
15519{
15520return f != $ac_func;
15521 ;
15522 return 0;
15523}
15524_ACEOF
15525rm -f conftest.$ac_objext conftest$ac_exeext
15526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15527 (eval $ac_link) 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest$ac_exeext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 eval "$as_ac_var=yes"
15548else
15549 echo "$as_me: failed program was:" >&5
15550sed 's/^/| /' conftest.$ac_ext >&5
15551
15552eval "$as_ac_var=no"
15553fi
15554rm -f conftest.err conftest.$ac_objext \
15555 conftest$ac_exeext conftest.$ac_ext
15556fi
15557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15559if test `eval echo '${'$as_ac_var'}'` = yes; then
15560 cat >>confdefs.h <<_ACEOF
15561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15562_ACEOF
15563
15564fi
15565done
15566
15567
15568
15569for ac_func in getuid getgid
15570do
15571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15572echo "$as_me:$LINENO: checking for $ac_func" >&5
15573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15574if eval "test \"\${$as_ac_var+set}\" = set"; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15576else
15577 cat >conftest.$ac_ext <<_ACEOF
15578/* confdefs.h. */
15579_ACEOF
15580cat confdefs.h >>conftest.$ac_ext
15581cat >>conftest.$ac_ext <<_ACEOF
15582/* end confdefs.h. */
15583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15585#define $ac_func innocuous_$ac_func
15586
97bf5e38 15587/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15588 which can conflict with char $ac_func (); below.
15589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15590 <limits.h> exists even on freestanding compilers. */
c906108c 15591
bec39cab
AC
15592#ifdef __STDC__
15593# include <limits.h>
15594#else
15595# include <assert.h>
15596#endif
97bf5e38 15597
bec39cab
AC
15598#undef $ac_func
15599
15600/* Override any gcc2 internal prototype to avoid an error. */
15601#ifdef __cplusplus
15602extern "C"
15603{
15604#endif
15605/* We use char because int might match the return type of a gcc2
15606 builtin and then its argument prototype would still apply. */
15607char $ac_func ();
97bf5e38
MK
15608/* The GNU C library defines this for functions which it implements
15609 to always fail with ENOSYS. Some functions are actually named
15610 something starting with __ and the normal name is an alias. */
15611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15612choke me
c906108c 15613#else
bec39cab
AC
15614char (*f) () = $ac_func;
15615#endif
15616#ifdef __cplusplus
15617}
c906108c 15618#endif
97bf5e38 15619
bec39cab
AC
15620int
15621main ()
15622{
15623return f != $ac_func;
15624 ;
15625 return 0;
15626}
15627_ACEOF
15628rm -f conftest.$ac_objext conftest$ac_exeext
15629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15630 (eval $ac_link) 2>conftest.er1
15631 ac_status=$?
15632 grep -v '^ *+' conftest.er1 >conftest.err
15633 rm -f conftest.er1
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag"
15638 || test ! -s conftest.err'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest$ac_exeext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 eval "$as_ac_var=yes"
15651else
15652 echo "$as_me: failed program was:" >&5
15653sed 's/^/| /' conftest.$ac_ext >&5
15654
15655eval "$as_ac_var=no"
15656fi
15657rm -f conftest.err conftest.$ac_objext \
15658 conftest$ac_exeext conftest.$ac_ext
15659fi
15660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15662if test `eval echo '${'$as_ac_var'}'` = yes; then
15663 cat >>confdefs.h <<_ACEOF
15664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15665_ACEOF
c906108c 15666
c906108c 15667fi
97bf5e38 15668done
c906108c 15669
bec39cab 15670
a3828db0 15671for ac_func in poll
97bf5e38 15672do
bec39cab
AC
15673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15674echo "$as_me:$LINENO: checking for $ac_func" >&5
15675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15676if eval "test \"\${$as_ac_var+set}\" = set"; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678else
15679 cat >conftest.$ac_ext <<_ACEOF
15680/* confdefs.h. */
15681_ACEOF
15682cat confdefs.h >>conftest.$ac_ext
15683cat >>conftest.$ac_ext <<_ACEOF
15684/* end confdefs.h. */
15685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15687#define $ac_func innocuous_$ac_func
15688
97bf5e38 15689/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15690 which can conflict with char $ac_func (); below.
15691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15692 <limits.h> exists even on freestanding compilers. */
15693
15694#ifdef __STDC__
15695# include <limits.h>
15696#else
15697# include <assert.h>
15698#endif
c906108c 15699
bec39cab 15700#undef $ac_func
97bf5e38 15701
bec39cab
AC
15702/* Override any gcc2 internal prototype to avoid an error. */
15703#ifdef __cplusplus
15704extern "C"
15705{
15706#endif
15707/* We use char because int might match the return type of a gcc2
15708 builtin and then its argument prototype would still apply. */
15709char $ac_func ();
97bf5e38
MK
15710/* The GNU C library defines this for functions which it implements
15711 to always fail with ENOSYS. Some functions are actually named
15712 something starting with __ and the normal name is an alias. */
15713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15714choke me
c906108c 15715#else
bec39cab
AC
15716char (*f) () = $ac_func;
15717#endif
15718#ifdef __cplusplus
15719}
c906108c 15720#endif
97bf5e38 15721
bec39cab
AC
15722int
15723main ()
15724{
15725return f != $ac_func;
15726 ;
15727 return 0;
15728}
15729_ACEOF
15730rm -f conftest.$ac_objext conftest$ac_exeext
15731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732 (eval $ac_link) 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -z "$ac_c_werror_flag"
15740 || test ! -s conftest.err'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest$ac_exeext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 eval "$as_ac_var=yes"
15753else
15754 echo "$as_me: failed program was:" >&5
15755sed 's/^/| /' conftest.$ac_ext >&5
15756
15757eval "$as_ac_var=no"
15758fi
15759rm -f conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15761fi
15762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15764if test `eval echo '${'$as_ac_var'}'` = yes; then
15765 cat >>confdefs.h <<_ACEOF
15766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15767_ACEOF
c906108c 15768
c906108c 15769fi
97bf5e38 15770done
c906108c 15771
bec39cab 15772
a3828db0 15773for ac_func in pread64
97bf5e38 15774do
bec39cab
AC
15775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776echo "$as_me:$LINENO: checking for $ac_func" >&5
15777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15778if eval "test \"\${$as_ac_var+set}\" = set"; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780else
15781 cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15789#define $ac_func innocuous_$ac_func
15790
97bf5e38 15791/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15792 which can conflict with char $ac_func (); below.
15793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15794 <limits.h> exists even on freestanding compilers. */
15795
15796#ifdef __STDC__
15797# include <limits.h>
15798#else
15799# include <assert.h>
15800#endif
c906108c 15801
bec39cab 15802#undef $ac_func
97bf5e38 15803
bec39cab
AC
15804/* Override any gcc2 internal prototype to avoid an error. */
15805#ifdef __cplusplus
15806extern "C"
15807{
15808#endif
15809/* We use char because int might match the return type of a gcc2
15810 builtin and then its argument prototype would still apply. */
15811char $ac_func ();
97bf5e38
MK
15812/* The GNU C library defines this for functions which it implements
15813 to always fail with ENOSYS. Some functions are actually named
15814 something starting with __ and the normal name is an alias. */
15815#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15816choke me
c906108c 15817#else
bec39cab
AC
15818char (*f) () = $ac_func;
15819#endif
15820#ifdef __cplusplus
15821}
c906108c 15822#endif
97bf5e38 15823
bec39cab
AC
15824int
15825main ()
15826{
15827return f != $ac_func;
15828 ;
15829 return 0;
15830}
15831_ACEOF
15832rm -f conftest.$ac_objext conftest$ac_exeext
15833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15834 (eval $ac_link) 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -z "$ac_c_werror_flag"
15842 || test ! -s conftest.err'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 eval "$as_ac_var=yes"
15855else
15856 echo "$as_me: failed program was:" >&5
15857sed 's/^/| /' conftest.$ac_ext >&5
15858
15859eval "$as_ac_var=no"
15860fi
15861rm -f conftest.err conftest.$ac_objext \
15862 conftest$ac_exeext conftest.$ac_ext
15863fi
15864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15865echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15866if test `eval echo '${'$as_ac_var'}'` = yes; then
15867 cat >>confdefs.h <<_ACEOF
15868#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15869_ACEOF
c906108c 15870
c906108c 15871fi
97bf5e38 15872done
c906108c 15873
bec39cab 15874
a3828db0 15875for ac_func in sbrk
b757528f 15876do
bec39cab
AC
15877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15878echo "$as_me:$LINENO: checking for $ac_func" >&5
15879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15880if eval "test \"\${$as_ac_var+set}\" = set"; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882else
15883 cat >conftest.$ac_ext <<_ACEOF
15884/* confdefs.h. */
15885_ACEOF
15886cat confdefs.h >>conftest.$ac_ext
15887cat >>conftest.$ac_ext <<_ACEOF
15888/* end confdefs.h. */
15889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15891#define $ac_func innocuous_$ac_func
15892
b757528f 15893/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15894 which can conflict with char $ac_func (); below.
15895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15896 <limits.h> exists even on freestanding compilers. */
15897
15898#ifdef __STDC__
15899# include <limits.h>
15900#else
15901# include <assert.h>
15902#endif
b757528f 15903
bec39cab 15904#undef $ac_func
b757528f 15905
bec39cab
AC
15906/* Override any gcc2 internal prototype to avoid an error. */
15907#ifdef __cplusplus
15908extern "C"
15909{
15910#endif
15911/* We use char because int might match the return type of a gcc2
15912 builtin and then its argument prototype would still apply. */
15913char $ac_func ();
b757528f
JJ
15914/* The GNU C library defines this for functions which it implements
15915 to always fail with ENOSYS. Some functions are actually named
15916 something starting with __ and the normal name is an alias. */
15917#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15918choke me
15919#else
bec39cab
AC
15920char (*f) () = $ac_func;
15921#endif
15922#ifdef __cplusplus
15923}
b757528f
JJ
15924#endif
15925
bec39cab
AC
15926int
15927main ()
15928{
15929return f != $ac_func;
15930 ;
15931 return 0;
15932}
15933_ACEOF
15934rm -f conftest.$ac_objext conftest$ac_exeext
15935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag"
15944 || test ! -s conftest.err'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest$ac_exeext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 eval "$as_ac_var=yes"
15957else
15958 echo "$as_me: failed program was:" >&5
15959sed 's/^/| /' conftest.$ac_ext >&5
15960
15961eval "$as_ac_var=no"
15962fi
15963rm -f conftest.err conftest.$ac_objext \
15964 conftest$ac_exeext conftest.$ac_ext
15965fi
15966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15967echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15968if test `eval echo '${'$as_ac_var'}'` = yes; then
15969 cat >>confdefs.h <<_ACEOF
15970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15971_ACEOF
b757528f 15972
b757528f
JJ
15973fi
15974done
15975
bec39cab 15976
a3828db0
MK
15977
15978for ac_func in setpgid setpgrp
bcb3dc3d 15979do
bec39cab
AC
15980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15981echo "$as_me:$LINENO: checking for $ac_func" >&5
15982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15983if eval "test \"\${$as_ac_var+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985else
15986 cat >conftest.$ac_ext <<_ACEOF
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15994#define $ac_func innocuous_$ac_func
15995
bcb3dc3d 15996/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15997 which can conflict with char $ac_func (); below.
15998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15999 <limits.h> exists even on freestanding compilers. */
16000
16001#ifdef __STDC__
16002# include <limits.h>
16003#else
16004# include <assert.h>
16005#endif
bcb3dc3d 16006
bec39cab 16007#undef $ac_func
bcb3dc3d 16008
bec39cab
AC
16009/* Override any gcc2 internal prototype to avoid an error. */
16010#ifdef __cplusplus
16011extern "C"
16012{
16013#endif
16014/* We use char because int might match the return type of a gcc2
16015 builtin and then its argument prototype would still apply. */
16016char $ac_func ();
bcb3dc3d
MK
16017/* The GNU C library defines this for functions which it implements
16018 to always fail with ENOSYS. Some functions are actually named
16019 something starting with __ and the normal name is an alias. */
16020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16021choke me
16022#else
bec39cab
AC
16023char (*f) () = $ac_func;
16024#endif
16025#ifdef __cplusplus
16026}
bcb3dc3d
MK
16027#endif
16028
bec39cab
AC
16029int
16030main ()
16031{
16032return f != $ac_func;
16033 ;
16034 return 0;
16035}
16036_ACEOF
16037rm -f conftest.$ac_objext conftest$ac_exeext
16038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039 (eval $ac_link) 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -z "$ac_c_werror_flag"
16047 || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try='test -s conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 eval "$as_ac_var=yes"
16060else
16061 echo "$as_me: failed program was:" >&5
16062sed 's/^/| /' conftest.$ac_ext >&5
16063
16064eval "$as_ac_var=no"
16065fi
16066rm -f conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16068fi
16069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16071if test `eval echo '${'$as_ac_var'}'` = yes; then
16072 cat >>confdefs.h <<_ACEOF
16073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16074_ACEOF
bcb3dc3d 16075
bcb3dc3d
MK
16076fi
16077done
16078
bec39cab 16079
a3828db0
MK
16080
16081
16082for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 16083do
bec39cab
AC
16084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16085echo "$as_me:$LINENO: checking for $ac_func" >&5
16086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16087if eval "test \"\${$as_ac_var+set}\" = set"; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089else
16090 cat >conftest.$ac_ext <<_ACEOF
16091/* confdefs.h. */
16092_ACEOF
16093cat confdefs.h >>conftest.$ac_ext
16094cat >>conftest.$ac_ext <<_ACEOF
16095/* end confdefs.h. */
16096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16098#define $ac_func innocuous_$ac_func
16099
8b9cf735 16100/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16101 which can conflict with char $ac_func (); below.
16102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16103 <limits.h> exists even on freestanding compilers. */
16104
16105#ifdef __STDC__
16106# include <limits.h>
16107#else
16108# include <assert.h>
16109#endif
8b9cf735 16110
bec39cab 16111#undef $ac_func
8b9cf735 16112
a3828db0
MK
16113/* Override any gcc2 internal prototype to avoid an error. */
16114#ifdef __cplusplus
16115extern "C"
16116{
16117#endif
16118/* We use char because int might match the return type of a gcc2
16119 builtin and then its argument prototype would still apply. */
16120char $ac_func ();
16121/* The GNU C library defines this for functions which it implements
16122 to always fail with ENOSYS. Some functions are actually named
16123 something starting with __ and the normal name is an alias. */
16124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16125choke me
16126#else
16127char (*f) () = $ac_func;
16128#endif
16129#ifdef __cplusplus
16130}
16131#endif
16132
bec39cab
AC
16133int
16134main ()
16135{
a3828db0 16136return f != $ac_func;
bec39cab
AC
16137 ;
16138 return 0;
16139}
16140_ACEOF
a3828db0
MK
16141rm -f conftest.$ac_objext conftest$ac_exeext
16142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16143 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16144 ac_status=$?
16145 grep -v '^ *+' conftest.er1 >conftest.err
16146 rm -f conftest.er1
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try='test -z "$ac_c_werror_flag"
16151 || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
a3828db0 16157 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
a3828db0 16163 eval "$as_ac_var=yes"
086ec9eb 16164else
bec39cab
AC
16165 echo "$as_me: failed program was:" >&5
16166sed 's/^/| /' conftest.$ac_ext >&5
16167
a3828db0
MK
16168eval "$as_ac_var=no"
16169fi
16170rm -f conftest.err conftest.$ac_objext \
16171 conftest$ac_exeext conftest.$ac_ext
16172fi
16173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16175if test `eval echo '${'$as_ac_var'}'` = yes; then
16176 cat >>confdefs.h <<_ACEOF
16177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16178_ACEOF
16179
086ec9eb 16180fi
a3828db0
MK
16181done
16182
16183
16184for ac_func in socketpair
16185do
16186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16187echo "$as_me:$LINENO: checking for $ac_func" >&5
16188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16189if eval "test \"\${$as_ac_var+set}\" = set"; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16191else
16192 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16193/* confdefs.h. */
16194_ACEOF
16195cat confdefs.h >>conftest.$ac_ext
16196cat >>conftest.$ac_ext <<_ACEOF
16197/* end confdefs.h. */
a3828db0
MK
16198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16200#define $ac_func innocuous_$ac_func
16201
16202/* System header to define __stub macros and hopefully few prototypes,
16203 which can conflict with char $ac_func (); below.
16204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16205 <limits.h> exists even on freestanding compilers. */
16206
16207#ifdef __STDC__
16208# include <limits.h>
16209#else
16210# include <assert.h>
16211#endif
16212
16213#undef $ac_func
16214
16215/* Override any gcc2 internal prototype to avoid an error. */
16216#ifdef __cplusplus
16217extern "C"
16218{
16219#endif
16220/* We use char because int might match the return type of a gcc2
16221 builtin and then its argument prototype would still apply. */
16222char $ac_func ();
16223/* The GNU C library defines this for functions which it implements
16224 to always fail with ENOSYS. Some functions are actually named
16225 something starting with __ and the normal name is an alias. */
16226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16227choke me
16228#else
16229char (*f) () = $ac_func;
16230#endif
16231#ifdef __cplusplus
16232}
16233#endif
16234
bec39cab
AC
16235int
16236main ()
16237{
a3828db0 16238return f != $ac_func;
bec39cab
AC
16239 ;
16240 return 0;
16241}
16242_ACEOF
a3828db0
MK
16243rm -f conftest.$ac_objext conftest$ac_exeext
16244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16245 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16246 ac_status=$?
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try='test -z "$ac_c_werror_flag"
16253 || test ! -s conftest.err'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
a3828db0 16259 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
a3828db0 16265 eval "$as_ac_var=yes"
086ec9eb 16266else
bec39cab
AC
16267 echo "$as_me: failed program was:" >&5
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
a3828db0 16270eval "$as_ac_var=no"
086ec9eb 16271fi
a3828db0
MK
16272rm -f conftest.err conftest.$ac_objext \
16273 conftest$ac_exeext conftest.$ac_ext
086ec9eb 16274fi
a3828db0
MK
16275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16277if test `eval echo '${'$as_ac_var'}'` = yes; then
16278 cat >>confdefs.h <<_ACEOF
16279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16280_ACEOF
086ec9eb
MK
16281
16282fi
a3828db0 16283done
086ec9eb 16284
a3828db0
MK
16285
16286for ac_func in syscall
16287do
16288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16289echo "$as_me:$LINENO: checking for $ac_func" >&5
16290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16291if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16292 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
16293else
16294 cat >conftest.$ac_ext <<_ACEOF
16295/* confdefs.h. */
16296_ACEOF
16297cat confdefs.h >>conftest.$ac_ext
16298cat >>conftest.$ac_ext <<_ACEOF
16299/* end confdefs.h. */
a3828db0
MK
16300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16302#define $ac_func innocuous_$ac_func
16303
16304/* System header to define __stub macros and hopefully few prototypes,
16305 which can conflict with char $ac_func (); below.
16306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16307 <limits.h> exists even on freestanding compilers. */
16308
16309#ifdef __STDC__
16310# include <limits.h>
16311#else
16312# include <assert.h>
16313#endif
16314
16315#undef $ac_func
16316
16317/* Override any gcc2 internal prototype to avoid an error. */
16318#ifdef __cplusplus
16319extern "C"
16320{
16321#endif
16322/* We use char because int might match the return type of a gcc2
16323 builtin and then its argument prototype would still apply. */
16324char $ac_func ();
16325/* The GNU C library defines this for functions which it implements
16326 to always fail with ENOSYS. Some functions are actually named
16327 something starting with __ and the normal name is an alias. */
16328#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16329choke me
16330#else
16331char (*f) () = $ac_func;
16332#endif
16333#ifdef __cplusplus
16334}
c906108c 16335#endif
97bf5e38 16336
bec39cab
AC
16337int
16338main ()
97bf5e38 16339{
a3828db0 16340return f != $ac_func;
bec39cab
AC
16341 ;
16342 return 0;
97bf5e38 16343}
bec39cab 16344_ACEOF
a3828db0 16345rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 16346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16347 (eval $ac_link) 2>conftest.er1
bec39cab 16348 ac_status=$?
a3828db0
MK
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
bec39cab 16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
a3828db0 16367 eval "$as_ac_var=yes"
c906108c 16368else
a3828db0 16369 echo "$as_me: failed program was:" >&5
bec39cab
AC
16370sed 's/^/| /' conftest.$ac_ext >&5
16371
a3828db0 16372eval "$as_ac_var=no"
97bf5e38 16373fi
a3828db0
MK
16374rm -f conftest.err conftest.$ac_objext \
16375 conftest$ac_exeext conftest.$ac_ext
16376fi
16377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16378echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16379if test `eval echo '${'$as_ac_var'}'` = yes; then
16380 cat >>confdefs.h <<_ACEOF
16381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16382_ACEOF
c906108c
SS
16383
16384fi
a3828db0 16385done
c906108c 16386
a3828db0
MK
16387
16388for ac_func in ttrace
16389do
16390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16391echo "$as_me:$LINENO: checking for $ac_func" >&5
16392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16393if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16394 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 16395else
bec39cab
AC
16396 cat >conftest.$ac_ext <<_ACEOF
16397/* confdefs.h. */
16398_ACEOF
16399cat confdefs.h >>conftest.$ac_ext
16400cat >>conftest.$ac_ext <<_ACEOF
16401/* end confdefs.h. */
a3828db0
MK
16402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16404#define $ac_func innocuous_$ac_func
b83266a0 16405
a3828db0
MK
16406/* System header to define __stub macros and hopefully few prototypes,
16407 which can conflict with char $ac_func (); below.
16408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16409 <limits.h> exists even on freestanding compilers. */
16410
16411#ifdef __STDC__
16412# include <limits.h>
16413#else
16414# include <assert.h>
16415#endif
16416
16417#undef $ac_func
16418
16419/* Override any gcc2 internal prototype to avoid an error. */
16420#ifdef __cplusplus
16421extern "C"
16422{
16423#endif
16424/* We use char because int might match the return type of a gcc2
16425 builtin and then its argument prototype would still apply. */
16426char $ac_func ();
16427/* The GNU C library defines this for functions which it implements
16428 to always fail with ENOSYS. Some functions are actually named
16429 something starting with __ and the normal name is an alias. */
16430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16431choke me
16432#else
16433char (*f) () = $ac_func;
16434#endif
16435#ifdef __cplusplus
16436}
16437#endif
97bf5e38 16438
bec39cab
AC
16439int
16440main ()
16441{
a3828db0 16442return f != $ac_func;
bec39cab
AC
16443 ;
16444 return 0;
16445}
16446_ACEOF
a3828db0
MK
16447rm -f conftest.$ac_objext conftest$ac_exeext
16448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16450 ac_status=$?
16451 grep -v '^ *+' conftest.er1 >conftest.err
16452 rm -f conftest.er1
16453 cat conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } &&
16456 { ac_try='test -z "$ac_c_werror_flag"
16457 || test ! -s conftest.err'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
a3828db0 16463 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
a3828db0 16469 eval "$as_ac_var=yes"
b83266a0 16470else
bec39cab
AC
16471 echo "$as_me: failed program was:" >&5
16472sed 's/^/| /' conftest.$ac_ext >&5
16473
a3828db0 16474eval "$as_ac_var=no"
b83266a0 16475fi
a3828db0
MK
16476rm -f conftest.err conftest.$ac_objext \
16477 conftest$ac_exeext conftest.$ac_ext
b83266a0 16478fi
a3828db0
MK
16479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16480echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16481if test `eval echo '${'$as_ac_var'}'` = yes; then
16482 cat >>confdefs.h <<_ACEOF
16483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16484_ACEOF
b83266a0 16485
97bf5e38 16486fi
a3828db0 16487done
b83266a0 16488
a3828db0
MK
16489
16490for ac_func in wborder
16491do
16492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16493echo "$as_me:$LINENO: checking for $ac_func" >&5
16494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16495if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497else
16498 cat >conftest.$ac_ext <<_ACEOF
16499/* confdefs.h. */
16500_ACEOF
16501cat confdefs.h >>conftest.$ac_ext
16502cat >>conftest.$ac_ext <<_ACEOF
16503/* end confdefs.h. */
a3828db0
MK
16504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16506#define $ac_func innocuous_$ac_func
a4db0f07 16507
a3828db0
MK
16508/* System header to define __stub macros and hopefully few prototypes,
16509 which can conflict with char $ac_func (); below.
16510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16511 <limits.h> exists even on freestanding compilers. */
16512
16513#ifdef __STDC__
16514# include <limits.h>
16515#else
16516# include <assert.h>
16517#endif
16518
16519#undef $ac_func
16520
16521/* Override any gcc2 internal prototype to avoid an error. */
16522#ifdef __cplusplus
16523extern "C"
16524{
16525#endif
16526/* We use char because int might match the return type of a gcc2
16527 builtin and then its argument prototype would still apply. */
16528char $ac_func ();
16529/* The GNU C library defines this for functions which it implements
16530 to always fail with ENOSYS. Some functions are actually named
16531 something starting with __ and the normal name is an alias. */
16532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16533choke me
16534#else
16535char (*f) () = $ac_func;
16536#endif
16537#ifdef __cplusplus
16538}
16539#endif
97bf5e38 16540
bec39cab
AC
16541int
16542main ()
16543{
a3828db0 16544return f != $ac_func;
bec39cab
AC
16545 ;
16546 return 0;
16547}
16548_ACEOF
a3828db0
MK
16549rm -f conftest.$ac_objext conftest$ac_exeext
16550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16551 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16552 ac_status=$?
16553 grep -v '^ *+' conftest.er1 >conftest.err
16554 rm -f conftest.er1
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try='test -z "$ac_c_werror_flag"
16559 || test ! -s conftest.err'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; } &&
a3828db0 16565 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
a3828db0 16571 eval "$as_ac_var=yes"
a4db0f07 16572else
bec39cab
AC
16573 echo "$as_me: failed program was:" >&5
16574sed 's/^/| /' conftest.$ac_ext >&5
16575
a3828db0 16576eval "$as_ac_var=no"
a4db0f07 16577fi
a3828db0
MK
16578rm -f conftest.err conftest.$ac_objext \
16579 conftest$ac_exeext conftest.$ac_ext
a4db0f07 16580fi
a3828db0
MK
16581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16582echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16583if test `eval echo '${'$as_ac_var'}'` = yes; then
16584 cat >>confdefs.h <<_ACEOF
16585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16586_ACEOF
a4db0f07
RH
16587
16588fi
a3828db0 16589done
c906108c 16590
06825bd1 16591
a3828db0
MK
16592# Check the return and argument types of ptrace. No canned test for
16593# this, so roll our own.
16594gdb_ptrace_headers='
16595#if HAVE_SYS_TYPES_H
16596# include <sys/types.h>
16597#endif
16598#if HAVE_SYS_PTRACE_H
16599# include <sys/ptrace.h>
16600#endif
16601#if HAVE_UNISTD_H
16602# include <unistd.h>
16603#endif
16604'
16605# There is no point in checking if we don't have a prototype.
16606echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16607echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16608if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610else
16611 cat >conftest.$ac_ext <<_ACEOF
16612/* confdefs.h. */
16613_ACEOF
16614cat confdefs.h >>conftest.$ac_ext
16615cat >>conftest.$ac_ext <<_ACEOF
16616/* end confdefs.h. */
a3828db0
MK
16617$gdb_ptrace_headers
16618
bec39cab
AC
16619int
16620main ()
16621{
a3828db0
MK
16622#ifndef ptrace
16623 char *p = (char *) ptrace;
06825bd1 16624#endif
a3828db0 16625
bec39cab
AC
16626 ;
16627 return 0;
16628}
16629_ACEOF
16630rm -f conftest.$ac_objext
16631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16632 (eval $ac_compile) 2>conftest.er1
16633 ac_status=$?
16634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -z "$ac_c_werror_flag"
16640 || test ! -s conftest.err'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest.$ac_objext'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
a3828db0 16652 ac_cv_have_decl_ptrace=yes
06825bd1 16653else
bec39cab
AC
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
a3828db0 16657ac_cv_have_decl_ptrace=no
06825bd1 16658fi
bec39cab 16659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16660fi
a3828db0
MK
16661echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16662echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16663if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 16664
a3828db0
MK
16665cat >>confdefs.h <<_ACEOF
16666#define HAVE_DECL_PTRACE 1
16667_ACEOF
bec39cab 16668
bec39cab 16669
a3828db0
MK
16670else
16671 cat >>confdefs.h <<_ACEOF
16672#define HAVE_DECL_PTRACE 0
bec39cab 16673_ACEOF
06825bd1 16674
a3828db0
MK
16675
16676 : ${gdb_cv_func_ptrace_ret='int'}
16677 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16678
06825bd1
MK
16679fi
16680
a3828db0
MK
16681
16682# Check return type.
16683echo "$as_me:$LINENO: checking return type of ptrace" >&5
16684echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16685if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687else
16688 cat >conftest.$ac_ext <<_ACEOF
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
a3828db0 16694$gdb_ptrace_headers
bec39cab
AC
16695int
16696main ()
16697{
a3828db0 16698extern int ptrace ();
bec39cab
AC
16699 ;
16700 return 0;
16701}
16702_ACEOF
16703rm -f conftest.$ac_objext
16704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16705 (eval $ac_compile) 2>conftest.er1
16706 ac_status=$?
16707 grep -v '^ *+' conftest.er1 >conftest.err
16708 rm -f conftest.er1
16709 cat conftest.err >&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
16712 { ac_try='test -z "$ac_c_werror_flag"
16713 || test ! -s conftest.err'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
a3828db0 16725 gdb_cv_func_ptrace_ret='int'
70f9f479 16726else
bec39cab
AC
16727 echo "$as_me: failed program was:" >&5
16728sed 's/^/| /' conftest.$ac_ext >&5
16729
a3828db0 16730gdb_cv_func_ptrace_ret='long'
70f9f479 16731fi
bec39cab 16732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16733fi
a3828db0
MK
16734echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16735echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 16736
a3828db0
MK
16737cat >>confdefs.h <<_ACEOF
16738#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 16739_ACEOF
70f9f479 16740
a3828db0
MK
16741# Check argument types.
16742echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16743echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16744if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16746else
a3828db0
MK
16747
16748for gdb_arg1 in 'int' 'long'; do
16749 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16750 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16751 for gdb_arg4 in 'int' 'long'; do
16752 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
a3828db0 16758$gdb_ptrace_headers
bec39cab
AC
16759int
16760main ()
16761{
a3828db0
MK
16762
16763extern $gdb_cv_func_ptrace_ret
16764 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16765
bec39cab
AC
16766 ;
16767 return 0;
16768}
16769_ACEOF
16770rm -f conftest.$ac_objext
16771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772 (eval $ac_compile) 2>conftest.er1
16773 ac_status=$?
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
16779 { ac_try='test -z "$ac_c_werror_flag"
16780 || test ! -s conftest.err'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest.$ac_objext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
a3828db0
MK
16792 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16793 break 4;
5c7f2947 16794else
bec39cab
AC
16795 echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
5c7f2947 16798fi
bec39cab 16799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16800 for gdb_arg5 in 'int *' 'int' 'long'; do
16801 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16802/* confdefs.h. */
16803_ACEOF
16804cat confdefs.h >>conftest.$ac_ext
16805cat >>conftest.$ac_ext <<_ACEOF
16806/* end confdefs.h. */
a3828db0 16807$gdb_ptrace_headers
bec39cab
AC
16808int
16809main ()
16810{
a3828db0
MK
16811
16812extern $gdb_cv_func_ptrace_ret
16813 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16814
bec39cab
AC
16815 ;
16816 return 0;
16817}
16818_ACEOF
16819rm -f conftest.$ac_objext
16820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821 (eval $ac_compile) 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -z "$ac_c_werror_flag"
16829 || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
a3828db0
MK
16841
16842gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16843 break 5;
78434e59 16844else
bec39cab
AC
16845 echo "$as_me: failed program was:" >&5
16846sed 's/^/| /' conftest.$ac_ext >&5
16847
78434e59 16848fi
bec39cab 16849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16850 done
16851 done
16852 done
16853 done
16854done
16855# Provide a safe default value.
16856: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16857
78434e59 16858fi
a3828db0
MK
16859echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16860echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16861ac_save_IFS=$IFS; IFS=','
16862set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16863IFS=$ac_save_IFS
16864shift
bec39cab 16865
a3828db0
MK
16866cat >>confdefs.h <<_ACEOF
16867#define PTRACE_TYPE_ARG3 $3
16868_ACEOF
16869
16870if test -n "$5"; then
16871
16872cat >>confdefs.h <<_ACEOF
16873#define PTRACE_TYPE_ARG5 $5
bec39cab 16874_ACEOF
78434e59
MK
16875
16876fi
16877
a3828db0
MK
16878if test "$cross_compiling" = no; then
16879 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16880echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16881if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16882 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16883else
16884 if test "$cross_compiling" = yes; then
16885 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16886echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16887 { (exit 1); exit 1; }; }
bec39cab
AC
16888else
16889 cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
a3828db0
MK
16895#if HAVE_UNISTD_H
16896# include <unistd.h>
16897#endif
16898
bec39cab
AC
16899int
16900main ()
16901{
a3828db0
MK
16902/* If this system has a BSD-style setpgrp which takes arguments,
16903 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16904 exit successfully. */
16905 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
16906 ;
16907 return 0;
16908}
16909_ACEOF
a3828db0
MK
16910rm -f conftest$ac_exeext
16911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>&5
bec39cab
AC
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
a3828db0 16921 ac_cv_func_setpgrp_void=no
c906108c 16922else
a3828db0
MK
16923 echo "$as_me: program exited with status $ac_status" >&5
16924echo "$as_me: failed program was:" >&5
bec39cab
AC
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
a3828db0
MK
16927( exit $ac_status )
16928ac_cv_func_setpgrp_void=yes
c906108c 16929fi
a3828db0 16930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 16931fi
a3828db0
MK
16932fi
16933echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16934echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16935if test $ac_cv_func_setpgrp_void = yes; then
16936
16937cat >>confdefs.h <<\_ACEOF
16938#define SETPGRP_VOID 1
bec39cab 16939_ACEOF
97bf5e38
MK
16940
16941fi
a3828db0
MK
16942
16943else
16944 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16945echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16946if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16947 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16948else
bec39cab
AC
16949 cat >conftest.$ac_ext <<_ACEOF
16950/* confdefs.h. */
16951_ACEOF
16952cat confdefs.h >>conftest.$ac_ext
16953cat >>conftest.$ac_ext <<_ACEOF
16954/* end confdefs.h. */
a3828db0
MK
16955
16956#include <unistd.h>
16957
bec39cab
AC
16958int
16959main ()
16960{
a3828db0
MK
16961
16962 if (setpgrp(1,1) == -1)
16963 exit (0);
16964 else
16965 exit (1);
16966
bec39cab
AC
16967 ;
16968 return 0;
16969}
16970_ACEOF
16971rm -f conftest.$ac_objext
16972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16973 (eval $ac_compile) 2>conftest.er1
16974 ac_status=$?
16975 grep -v '^ *+' conftest.er1 >conftest.err
16976 rm -f conftest.er1
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -z "$ac_c_werror_flag"
16981 || test ! -s conftest.err'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; } &&
16987 { ac_try='test -s conftest.$ac_objext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
a3828db0 16993 ac_cv_func_setpgrp_void=no
c906108c 16994else
bec39cab
AC
16995 echo "$as_me: failed program was:" >&5
16996sed 's/^/| /' conftest.$ac_ext >&5
16997
a3828db0 16998ac_cv_func_setpgrp_void=yes
c906108c 16999fi
bec39cab 17000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17001fi
a3828db0
MK
17002echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17003echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17004if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 17005 cat >>confdefs.h <<\_ACEOF
a3828db0 17006#define SETPGRP_VOID 1
bec39cab 17007_ACEOF
c3f6f71d 17008
a3828db0 17009fi
c906108c
SS
17010fi
17011
a3828db0
MK
17012# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17013# since sigsetjmp might only be defined as a macro.
17014echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17015echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17016if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17018else
17019 cat >conftest.$ac_ext <<_ACEOF
17020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
a3828db0
MK
17025
17026#include <setjmp.h>
17027
bec39cab
AC
17028int
17029main ()
17030{
a3828db0 17031sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
17032 ;
17033 return 0;
17034}
17035_ACEOF
17036rm -f conftest.$ac_objext
17037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17038 (eval $ac_compile) 2>conftest.er1
17039 ac_status=$?
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
17045 { ac_try='test -z "$ac_c_werror_flag"
17046 || test ! -s conftest.err'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest.$ac_objext'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
a3828db0 17058 gdb_cv_func_sigsetjmp=yes
c906108c 17059else
bec39cab
AC
17060 echo "$as_me: failed program was:" >&5
17061sed 's/^/| /' conftest.$ac_ext >&5
17062
a3828db0 17063gdb_cv_func_sigsetjmp=no
c906108c 17064fi
bec39cab 17065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17066fi
a3828db0
MK
17067echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17068echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
17069if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 17070
a3828db0
MK
17071cat >>confdefs.h <<\_ACEOF
17072#define HAVE_SIGSETJMP 1
bec39cab 17073_ACEOF
c906108c 17074
97bf5e38 17075fi
c906108c 17076
a3828db0
MK
17077# Assume we'll default to using the included libiberty regex.
17078gdb_use_included_regex=yes
17079
17080# However, if the system regex is GNU regex, then default to *not*
17081# using the included regex.
17082echo "$as_me:$LINENO: checking for GNU regex" >&5
17083echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
17084if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086else
17087 cat >conftest.$ac_ext <<_ACEOF
17088/* confdefs.h. */
17089_ACEOF
17090cat confdefs.h >>conftest.$ac_ext
17091cat >>conftest.$ac_ext <<_ACEOF
17092/* end confdefs.h. */
a3828db0 17093#include <gnu-versions.h>
bec39cab
AC
17094int
17095main ()
17096{
a3828db0
MK
17097#define REGEX_INTERFACE_VERSION 1
17098#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17099# error "Version mismatch"
17100#endif
bec39cab
AC
17101 ;
17102 return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext
17106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
a3828db0 17127 gdb_cv_have_gnu_regex=yes
c906108c 17128else
bec39cab
AC
17129 echo "$as_me: failed program was:" >&5
17130sed 's/^/| /' conftest.$ac_ext >&5
17131
a3828db0 17132gdb_cv_have_gnu_regex=no
c906108c 17133fi
bec39cab 17134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17135fi
a3828db0
MK
17136echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17137echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17138if test $gdb_cv_have_gnu_regex = yes; then
17139 gdb_use_included_regex=no
17140fi
c906108c 17141
a3828db0
MK
17142
17143# Check whether --with-included-regex or --without-included-regex was given.
17144if test "${with_included_regex+set}" = set; then
17145 withval="$with_included_regex"
17146 gdb_with_regex=$withval
17147else
17148 gdb_with_regex=$gdb_use_included_regex
17149fi;
17150if test "$gdb_with_regex" = yes; then
17151
17152cat >>confdefs.h <<\_ACEOF
17153#define USE_INCLUDED_REGEX 1
bec39cab 17154_ACEOF
c906108c 17155
97bf5e38 17156fi
c906108c 17157
5c45e068
MK
17158# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17159echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17160echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17161if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17163else
17164 cat >conftest.$ac_ext <<_ACEOF
17165/* confdefs.h. */
17166_ACEOF
17167cat confdefs.h >>conftest.$ac_ext
17168cat >>conftest.$ac_ext <<_ACEOF
17169/* end confdefs.h. */
a3828db0
MK
17170#include <sys/param.h>
17171#include <sys/proc.h>
5c45e068
MK
17172
17173
bec39cab
AC
17174int
17175main ()
17176{
5c45e068
MK
17177static struct thread ac_aggr;
17178if (ac_aggr.td_pcb)
17179return 0;
bec39cab
AC
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184rm -f conftest.$ac_objext
17185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17186 (eval $ac_compile) 2>conftest.er1
17187 ac_status=$?
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try='test -z "$ac_c_werror_flag"
17194 || test ! -s conftest.err'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; } &&
17200 { ac_try='test -s conftest.$ac_objext'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17203 ac_status=$?
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
5c45e068 17206 ac_cv_member_struct_thread_td_pcb=yes
c906108c 17207else
bec39cab
AC
17208 echo "$as_me: failed program was:" >&5
17209sed 's/^/| /' conftest.$ac_ext >&5
17210
5c45e068
MK
17211cat >conftest.$ac_ext <<_ACEOF
17212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
17217#include <sys/param.h>
17218#include <sys/proc.h>
17219
17220
17221int
17222main ()
17223{
17224static struct thread ac_aggr;
17225if (sizeof ac_aggr.td_pcb)
17226return 0;
17227 ;
17228 return 0;
17229}
17230_ACEOF
17231rm -f conftest.$ac_objext
17232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233 (eval $ac_compile) 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
17240 { ac_try='test -z "$ac_c_werror_flag"
17241 || test ! -s conftest.err'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest.$ac_objext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_member_struct_thread_td_pcb=yes
17254else
17255 echo "$as_me: failed program was:" >&5
17256sed 's/^/| /' conftest.$ac_ext >&5
17257
17258ac_cv_member_struct_thread_td_pcb=no
17259fi
17260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17261fi
bec39cab 17262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17263fi
5c45e068
MK
17264echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17265echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17266if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 17267
5c45e068 17268cat >>confdefs.h <<_ACEOF
a3828db0 17269#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 17270_ACEOF
c906108c 17271
5c45e068 17272
97bf5e38 17273fi
c906108c 17274
5c45e068 17275
a3828db0
MK
17276# See if <sys/lwp.h> defines `struct lwp`.
17277echo "$as_me:$LINENO: checking for struct lwp" >&5
17278echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17279if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17281else
17282 cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
a3828db0
MK
17288#include <sys/param.h>
17289#include <sys/lwp.h>
bec39cab
AC
17290int
17291main ()
17292{
a3828db0 17293struct lwp l;
bec39cab
AC
17294 ;
17295 return 0;
17296}
17297_ACEOF
17298rm -f conftest.$ac_objext
17299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17300 (eval $ac_compile) 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag"
17308 || test ! -s conftest.err'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest.$ac_objext'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
a3828db0 17320 gdb_cv_struct_lwp=yes
c906108c 17321else
bec39cab
AC
17322 echo "$as_me: failed program was:" >&5
17323sed 's/^/| /' conftest.$ac_ext >&5
17324
a3828db0 17325gdb_cv_struct_lwp=no
c906108c 17326fi
bec39cab 17327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17328fi
a3828db0
MK
17329echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17330echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17331if test $gdb_cv_struct_lwp = yes; then
c906108c 17332
a3828db0
MK
17333cat >>confdefs.h <<\_ACEOF
17334#define HAVE_STRUCT_LWP 1
bec39cab 17335_ACEOF
c906108c 17336
97bf5e38 17337fi
c906108c 17338
a3828db0
MK
17339# See if <machine/reg.h> degines `struct reg'.
17340echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17341echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17342if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344else
17345 cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h. */
a3828db0
MK
17351#include <sys/types.h>
17352#include <machine/reg.h>
bec39cab
AC
17353int
17354main ()
17355{
a3828db0 17356struct reg r;
bec39cab
AC
17357 ;
17358 return 0;
17359}
17360_ACEOF
17361rm -f conftest.$ac_objext
17362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17363 (eval $ac_compile) 2>conftest.er1
17364 ac_status=$?
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -f conftest.er1
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
17370 { ac_try='test -z "$ac_c_werror_flag"
17371 || test ! -s conftest.err'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest.$ac_objext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
a3828db0 17383 gdb_cv_struct_reg=yes
27ca5dad 17384else
bec39cab
AC
17385 echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
a3828db0 17388gdb_cv_struct_reg=no
27ca5dad 17389fi
bec39cab 17390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 17391fi
a3828db0
MK
17392echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17393echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17394if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
17395
17396cat >>confdefs.h <<\_ACEOF
a3828db0 17397#define HAVE_STRUCT_REG 1
bec39cab 17398_ACEOF
27ca5dad
MC
17399
17400fi
97bf5e38 17401
a3828db0
MK
17402# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17403# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
5c45e068
MK
17404echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17405echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17406if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 17407 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17408else
bec39cab
AC
17409 cat >conftest.$ac_ext <<_ACEOF
17410/* confdefs.h. */
17411_ACEOF
17412cat confdefs.h >>conftest.$ac_ext
17413cat >>conftest.$ac_ext <<_ACEOF
17414/* end confdefs.h. */
a3828db0 17415#include <machine/reg.h>
5c45e068
MK
17416
17417int
17418main ()
17419{
17420static struct reg ac_aggr;
17421if (ac_aggr.r_fs)
17422return 0;
17423 ;
17424 return 0;
17425}
17426_ACEOF
17427rm -f conftest.$ac_objext
17428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag"
17437 || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest.$ac_objext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 ac_cv_member_struct_reg_r_fs=yes
17450else
17451 echo "$as_me: failed program was:" >&5
17452sed 's/^/| /' conftest.$ac_ext >&5
17453
17454cat >conftest.$ac_ext <<_ACEOF
17455/* confdefs.h. */
17456_ACEOF
17457cat confdefs.h >>conftest.$ac_ext
17458cat >>conftest.$ac_ext <<_ACEOF
17459/* end confdefs.h. */
17460#include <machine/reg.h>
17461
bec39cab
AC
17462int
17463main ()
17464{
5c45e068
MK
17465static struct reg ac_aggr;
17466if (sizeof ac_aggr.r_fs)
17467return 0;
bec39cab
AC
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext
17473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17474 (eval $ac_compile) 2>conftest.er1
17475 ac_status=$?
17476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try='test -z "$ac_c_werror_flag"
17482 || test ! -s conftest.err'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try='test -s conftest.$ac_objext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
5c45e068 17494 ac_cv_member_struct_reg_r_fs=yes
3862412b 17495else
bec39cab
AC
17496 echo "$as_me: failed program was:" >&5
17497sed 's/^/| /' conftest.$ac_ext >&5
17498
5c45e068 17499ac_cv_member_struct_reg_r_fs=no
3862412b 17500fi
bec39cab 17501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17502fi
5c45e068
MK
17503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17504fi
17505echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17506echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17507if test $ac_cv_member_struct_reg_r_fs = yes; then
17508
17509cat >>confdefs.h <<_ACEOF
a3828db0 17510#define HAVE_STRUCT_REG_R_FS 1
bec39cab 17511_ACEOF
3862412b 17512
5c45e068 17513
97bf5e38 17514fi
5c45e068
MK
17515echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17516echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17517if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 17518 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17519else
bec39cab
AC
17520 cat >conftest.$ac_ext <<_ACEOF
17521/* confdefs.h. */
17522_ACEOF
17523cat confdefs.h >>conftest.$ac_ext
17524cat >>conftest.$ac_ext <<_ACEOF
17525/* end confdefs.h. */
a3828db0 17526#include <machine/reg.h>
5c45e068 17527
bec39cab
AC
17528int
17529main ()
17530{
5c45e068
MK
17531static struct reg ac_aggr;
17532if (ac_aggr.r_gs)
17533return 0;
bec39cab
AC
17534 ;
17535 return 0;
17536}
17537_ACEOF
17538rm -f conftest.$ac_objext
17539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17540 (eval $ac_compile) 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try='test -z "$ac_c_werror_flag"
17548 || test ! -s conftest.err'
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest.$ac_objext'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; }; then
5c45e068 17560 ac_cv_member_struct_reg_r_gs=yes
3862412b 17561else
bec39cab
AC
17562 echo "$as_me: failed program was:" >&5
17563sed 's/^/| /' conftest.$ac_ext >&5
17564
5c45e068
MK
17565cat >conftest.$ac_ext <<_ACEOF
17566/* confdefs.h. */
17567_ACEOF
17568cat confdefs.h >>conftest.$ac_ext
17569cat >>conftest.$ac_ext <<_ACEOF
17570/* end confdefs.h. */
17571#include <machine/reg.h>
17572
17573int
17574main ()
17575{
17576static struct reg ac_aggr;
17577if (sizeof ac_aggr.r_gs)
17578return 0;
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext
17584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17585 (eval $ac_compile) 2>conftest.er1
17586 ac_status=$?
17587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_c_werror_flag"
17593 || test ! -s conftest.err'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try='test -s conftest.$ac_objext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_member_struct_reg_r_gs=yes
17606else
17607 echo "$as_me: failed program was:" >&5
17608sed 's/^/| /' conftest.$ac_ext >&5
17609
17610ac_cv_member_struct_reg_r_gs=no
3862412b 17611fi
bec39cab 17612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17613fi
5c45e068
MK
17614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17615fi
17616echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17617echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17618if test $ac_cv_member_struct_reg_r_gs = yes; then
17619
17620cat >>confdefs.h <<_ACEOF
a3828db0 17621#define HAVE_STRUCT_REG_R_GS 1
bec39cab 17622_ACEOF
3862412b 17623
5c45e068 17624
97bf5e38 17625fi
3862412b 17626
5c45e068 17627
a3828db0
MK
17628# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17629echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17630echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17631if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 17632 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17633else
bec39cab
AC
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. */
a3828db0 17640#include <sys/ptrace.h>
bec39cab
AC
17641int
17642main ()
17643{
a3828db0 17644PTRACE_GETREGS;
bec39cab
AC
17645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext
17650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17651 (eval $ac_compile) 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_c_werror_flag"
17659 || test ! -s conftest.err'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest.$ac_objext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
a3828db0 17671 gdb_cv_have_ptrace_getregs=yes
451928c5 17672else
bec39cab
AC
17673 echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
a3828db0 17676gdb_cv_have_ptrace_getregs=no
451928c5 17677fi
bec39cab 17678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17679fi
17680
a3828db0
MK
17681echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17682echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17683if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
17684
17685cat >>confdefs.h <<\_ACEOF
a3828db0 17686#define HAVE_PTRACE_GETREGS 1
bec39cab 17687_ACEOF
451928c5 17688
97bf5e38 17689fi
451928c5 17690
a3828db0
MK
17691# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17692echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17693echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17694if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 17695 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17696else
bec39cab
AC
17697 cat >conftest.$ac_ext <<_ACEOF
17698/* confdefs.h. */
17699_ACEOF
17700cat confdefs.h >>conftest.$ac_ext
17701cat >>conftest.$ac_ext <<_ACEOF
17702/* end confdefs.h. */
a3828db0 17703#include <sys/ptrace.h>
bec39cab
AC
17704int
17705main ()
17706{
a3828db0 17707PTRACE_GETFPXREGS;
bec39cab
AC
17708 ;
17709 return 0;
17710}
17711_ACEOF
17712rm -f conftest.$ac_objext
17713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714 (eval $ac_compile) 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_c_werror_flag"
17722 || test ! -s conftest.err'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
a3828db0 17734 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 17735else
bec39cab
AC
17736 echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
a3828db0 17739gdb_cv_have_ptrace_getfpxregs=no
451928c5 17740fi
bec39cab 17741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17742fi
17743
a3828db0
MK
17744echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17745echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17746if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
17747
17748cat >>confdefs.h <<\_ACEOF
a3828db0 17749#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 17750_ACEOF
451928c5 17751
97bf5e38 17752fi
451928c5 17753
a3828db0
MK
17754# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17755echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17756echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17757if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 17758 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17759else
bec39cab
AC
17760 cat >conftest.$ac_ext <<_ACEOF
17761/* confdefs.h. */
17762_ACEOF
17763cat confdefs.h >>conftest.$ac_ext
17764cat >>conftest.$ac_ext <<_ACEOF
17765/* end confdefs.h. */
a3828db0
MK
17766#include <sys/types.h>
17767#include <sys/ptrace.h>
bec39cab
AC
17768int
17769main ()
17770{
a3828db0 17771PT_GETDBREGS;
bec39cab
AC
17772 ;
17773 return 0;
17774}
17775_ACEOF
17776rm -f conftest.$ac_objext
17777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17778 (eval $ac_compile) 2>conftest.er1
17779 ac_status=$?
17780 grep -v '^ *+' conftest.er1 >conftest.err
17781 rm -f conftest.er1
17782 cat conftest.err >&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -z "$ac_c_werror_flag"
17786 || test ! -s conftest.err'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; } &&
17792 { ac_try='test -s conftest.$ac_objext'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
a3828db0 17798 gdb_cv_have_pt_getdbregs=yes
3862412b 17799else
bec39cab
AC
17800 echo "$as_me: failed program was:" >&5
17801sed 's/^/| /' conftest.$ac_ext >&5
17802
a3828db0 17803gdb_cv_have_pt_getdbregs=no
3862412b 17804fi
bec39cab 17805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17806fi
17807
a3828db0
MK
17808echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17809echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17810if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
17811
17812cat >>confdefs.h <<\_ACEOF
a3828db0 17813#define HAVE_PT_GETDBREGS 1
bec39cab 17814_ACEOF
3862412b 17815
97bf5e38 17816fi
3862412b 17817
a3828db0
MK
17818# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17819echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17820echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17821if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 17822 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17823else
bec39cab
AC
17824 cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
a3828db0
MK
17830#include <sys/types.h>
17831#include <sys/ptrace.h>
bec39cab
AC
17832int
17833main ()
17834{
a3828db0 17835PT_GETXMMREGS;
bec39cab
AC
17836 ;
17837 return 0;
17838}
17839_ACEOF
17840rm -f conftest.$ac_objext
17841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17842 (eval $ac_compile) 2>conftest.er1
17843 ac_status=$?
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try='test -z "$ac_c_werror_flag"
17850 || test ! -s conftest.err'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest.$ac_objext'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
a3828db0 17862 gdb_cv_have_pt_getxmmregs=yes
3862412b 17863else
bec39cab
AC
17864 echo "$as_me: failed program was:" >&5
17865sed 's/^/| /' conftest.$ac_ext >&5
17866
a3828db0 17867gdb_cv_have_pt_getxmmregs=no
3862412b 17868fi
bec39cab 17869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17870fi
17871
a3828db0
MK
17872echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17873echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17874if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
17875
17876cat >>confdefs.h <<\_ACEOF
a3828db0 17877#define HAVE_PT_GETXMMREGS 1
bec39cab 17878_ACEOF
3862412b 17879
97bf5e38 17880fi
3862412b 17881
97bf5e38
MK
17882# If we are configured native on GNU/Linux, work around problems with
17883# sys/procfs.h
17884# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17885
17886if test "${target}" = "${host}"; then
17887 case "${host}" in
17888 i[3456]86-*-linux*)
60ca704f
SE
17889
17890cat >>confdefs.h <<\_ACEOF
97bf5e38 17891#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17892_ACEOF
97bf5e38 17893
60ca704f
SE
17894
17895cat >>confdefs.h <<\_ACEOF
97bf5e38 17896#define sys_quotactl 1
bec39cab 17897_ACEOF
97bf5e38
MK
17898
17899 ;;
97bf5e38 17900 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
17901
17902cat >>confdefs.h <<\_ACEOF
97bf5e38 17903#define NEW_PROC_API 1
bec39cab 17904_ACEOF
97bf5e38
MK
17905
17906 ;;
0bbc026e 17907 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
17908
17909cat >>confdefs.h <<\_ACEOF
97bf5e38 17910#define NEW_PROC_API 1
bec39cab 17911_ACEOF
c960c18f
AC
17912
17913 ;;
17914 mips-sgi-irix5*)
17915 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
17916
17917cat >>confdefs.h <<\_ACEOF
c960c18f 17918#define _KMEMUSER 1
bec39cab 17919_ACEOF
97bf5e38
MK
17920
17921 ;;
17922 esac
17923fi
17924
17925if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17926 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17927echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17928 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17930else
17931 cat >conftest.$ac_ext <<_ACEOF
17932/* confdefs.h. */
17933_ACEOF
17934cat confdefs.h >>conftest.$ac_ext
17935cat >>conftest.$ac_ext <<_ACEOF
17936/* end confdefs.h. */
596c9d4b
KB
17937
17938#define _SYSCALL32
17939#include <sys/procfs.h>
bec39cab
AC
17940int
17941main ()
17942{
97bf5e38 17943pstatus_t avar
bec39cab
AC
17944 ;
17945 return 0;
17946}
17947_ACEOF
17948rm -f conftest.$ac_objext
17949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17950 (eval $ac_compile) 2>conftest.er1
17951 ac_status=$?
17952 grep -v '^ *+' conftest.er1 >conftest.err
17953 rm -f conftest.er1
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } &&
17957 { ac_try='test -z "$ac_c_werror_flag"
17958 || test ! -s conftest.err'
17959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960 (eval $ac_try) 2>&5
17961 ac_status=$?
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; } &&
17964 { ac_try='test -s conftest.$ac_objext'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
97bf5e38 17970 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17971else
bec39cab
AC
17972 echo "$as_me: failed program was:" >&5
17973sed 's/^/| /' conftest.$ac_ext >&5
17974
17975bfd_cv_have_sys_procfs_type_pstatus_t=no
17976
596c9d4b 17977fi
bec39cab 17978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17979fi
17980
97bf5e38 17981 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17982
17983cat >>confdefs.h <<\_ACEOF
97bf5e38 17984#define HAVE_PSTATUS_T 1
bec39cab 17985_ACEOF
596c9d4b
KB
17986
17987 fi
bec39cab
AC
17988 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17989echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17990
bec39cab
AC
17991 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17992echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17993 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17995else
bec39cab
AC
17996 cat >conftest.$ac_ext <<_ACEOF
17997/* confdefs.h. */
17998_ACEOF
17999cat confdefs.h >>conftest.$ac_ext
18000cat >>conftest.$ac_ext <<_ACEOF
18001/* end confdefs.h. */
596c9d4b
KB
18002
18003#define _SYSCALL32
18004#include <sys/procfs.h>
bec39cab
AC
18005int
18006main ()
18007{
97bf5e38 18008prrun_t avar
bec39cab
AC
18009 ;
18010 return 0;
18011}
18012_ACEOF
18013rm -f conftest.$ac_objext
18014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18015 (eval $ac_compile) 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -z "$ac_c_werror_flag"
18023 || test ! -s conftest.err'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; } &&
18029 { ac_try='test -s conftest.$ac_objext'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
97bf5e38 18035 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 18036else
bec39cab
AC
18037 echo "$as_me: failed program was:" >&5
18038sed 's/^/| /' conftest.$ac_ext >&5
18039
18040bfd_cv_have_sys_procfs_type_prrun_t=no
18041
596c9d4b 18042fi
bec39cab 18043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18044fi
18045
97bf5e38 18046 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
18047
18048cat >>confdefs.h <<\_ACEOF
97bf5e38 18049#define HAVE_PRRUN_T 1
bec39cab 18050_ACEOF
596c9d4b
KB
18051
18052 fi
bec39cab
AC
18053 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18054echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 18055
bec39cab
AC
18056 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18057echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
18058 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18060else
bec39cab
AC
18061 cat >conftest.$ac_ext <<_ACEOF
18062/* confdefs.h. */
18063_ACEOF
18064cat confdefs.h >>conftest.$ac_ext
18065cat >>conftest.$ac_ext <<_ACEOF
18066/* end confdefs.h. */
596c9d4b
KB
18067
18068#define _SYSCALL32
18069#include <sys/procfs.h>
bec39cab
AC
18070int
18071main ()
18072{
97bf5e38 18073gregset_t avar
bec39cab
AC
18074 ;
18075 return 0;
18076}
18077_ACEOF
18078rm -f conftest.$ac_objext
18079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18080 (eval $ac_compile) 2>conftest.er1
18081 ac_status=$?
18082 grep -v '^ *+' conftest.er1 >conftest.err
18083 rm -f conftest.er1
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
97bf5e38 18100 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 18101else
bec39cab
AC
18102 echo "$as_me: failed program was:" >&5
18103sed 's/^/| /' conftest.$ac_ext >&5
18104
18105bfd_cv_have_sys_procfs_type_gregset_t=no
18106
596c9d4b 18107fi
bec39cab 18108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18109fi
18110
97bf5e38 18111 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
18112
18113cat >>confdefs.h <<\_ACEOF
97bf5e38 18114#define HAVE_GREGSET_T 1
bec39cab 18115_ACEOF
596c9d4b
KB
18116
18117 fi
bec39cab
AC
18118 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18119echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 18120
bec39cab
AC
18121 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18122echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18123 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 18125else
bec39cab
AC
18126 cat >conftest.$ac_ext <<_ACEOF
18127/* confdefs.h. */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h. */
97bf5e38
MK
18132
18133#define _SYSCALL32
d84dd0c5 18134#include <sys/procfs.h>
bec39cab
AC
18135int
18136main ()
18137{
97bf5e38 18138fpregset_t avar
bec39cab
AC
18139 ;
18140 return 0;
18141}
18142_ACEOF
18143rm -f conftest.$ac_objext
18144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try='test -z "$ac_c_werror_flag"
18153 || test ! -s conftest.err'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try='test -s conftest.$ac_objext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
97bf5e38 18165 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 18166else
bec39cab
AC
18167 echo "$as_me: failed program was:" >&5
18168sed 's/^/| /' conftest.$ac_ext >&5
18169
18170bfd_cv_have_sys_procfs_type_fpregset_t=no
18171
d84dd0c5 18172fi
bec39cab 18173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
18174fi
18175
97bf5e38 18176 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
18177
18178cat >>confdefs.h <<\_ACEOF
97bf5e38 18179#define HAVE_FPREGSET_T 1
bec39cab 18180_ACEOF
d84dd0c5 18181
97bf5e38 18182 fi
bec39cab
AC
18183 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18184echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 18185
bec39cab
AC
18186 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18187echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18188 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18190else
bec39cab
AC
18191 cat >conftest.$ac_ext <<_ACEOF
18192/* confdefs.h. */
18193_ACEOF
18194cat confdefs.h >>conftest.$ac_ext
18195cat >>conftest.$ac_ext <<_ACEOF
18196/* end confdefs.h. */
c906108c 18197
97bf5e38
MK
18198#define _SYSCALL32
18199#include <sys/procfs.h>
bec39cab
AC
18200int
18201main ()
18202{
97bf5e38 18203prgregset_t avar
bec39cab
AC
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest.$ac_objext
18209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18210 (eval $ac_compile) 2>conftest.er1
18211 ac_status=$?
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try='test -z "$ac_c_werror_flag"
18218 || test ! -s conftest.err'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try='test -s conftest.$ac_objext'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
97bf5e38 18230 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 18231else
bec39cab
AC
18232 echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235bfd_cv_have_sys_procfs_type_prgregset_t=no
18236
c906108c 18237fi
bec39cab 18238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18239fi
18240
97bf5e38 18241 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
18242
18243cat >>confdefs.h <<\_ACEOF
97bf5e38 18244#define HAVE_PRGREGSET_T 1
bec39cab 18245_ACEOF
c906108c 18246
97bf5e38 18247 fi
bec39cab
AC
18248 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18249echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 18250
bec39cab
AC
18251 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18252echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18253 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18254 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18255else
bec39cab
AC
18256 cat >conftest.$ac_ext <<_ACEOF
18257/* confdefs.h. */
18258_ACEOF
18259cat confdefs.h >>conftest.$ac_ext
18260cat >>conftest.$ac_ext <<_ACEOF
18261/* end confdefs.h. */
97bf5e38
MK
18262
18263#define _SYSCALL32
18264#include <sys/procfs.h>
bec39cab
AC
18265int
18266main ()
18267{
97bf5e38 18268prfpregset_t avar
bec39cab
AC
18269 ;
18270 return 0;
18271}
18272_ACEOF
18273rm -f conftest.$ac_objext
18274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18275 (eval $ac_compile) 2>conftest.er1
18276 ac_status=$?
18277 grep -v '^ *+' conftest.er1 >conftest.err
18278 rm -f conftest.er1
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag"
18283 || test ! -s conftest.err'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest.$ac_objext'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
97bf5e38 18295 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 18296else
bec39cab
AC
18297 echo "$as_me: failed program was:" >&5
18298sed 's/^/| /' conftest.$ac_ext >&5
18299
18300bfd_cv_have_sys_procfs_type_prfpregset_t=no
18301
d45fe813 18302fi
bec39cab 18303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18304fi
18305
97bf5e38 18306 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18307
18308cat >>confdefs.h <<\_ACEOF
97bf5e38 18309#define HAVE_PRFPREGSET_T 1
bec39cab 18310_ACEOF
d45fe813 18311
97bf5e38 18312 fi
bec39cab
AC
18313 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18314echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 18315
bec39cab
AC
18316 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18317echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18318 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18320else
bec39cab
AC
18321 cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
97bf5e38
MK
18327
18328#define _SYSCALL32
18329#include <sys/procfs.h>
bec39cab
AC
18330int
18331main ()
18332{
97bf5e38 18333prgregset32_t avar
bec39cab
AC
18334 ;
18335 return 0;
18336}
18337_ACEOF
18338rm -f conftest.$ac_objext
18339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18340 (eval $ac_compile) 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -z "$ac_c_werror_flag"
18348 || test ! -s conftest.err'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest.$ac_objext'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
97bf5e38 18360 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 18361else
bec39cab
AC
18362 echo "$as_me: failed program was:" >&5
18363sed 's/^/| /' conftest.$ac_ext >&5
18364
18365bfd_cv_have_sys_procfs_type_prgregset32_t=no
18366
d45fe813 18367fi
bec39cab 18368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18369fi
18370
97bf5e38 18371 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18372
18373cat >>confdefs.h <<\_ACEOF
97bf5e38 18374#define HAVE_PRGREGSET32_T 1
bec39cab 18375_ACEOF
d45fe813 18376
97bf5e38 18377 fi
bec39cab
AC
18378 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18379echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18380
bec39cab
AC
18381 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18382echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18383 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18385else
bec39cab
AC
18386 cat >conftest.$ac_ext <<_ACEOF
18387/* confdefs.h. */
18388_ACEOF
18389cat confdefs.h >>conftest.$ac_ext
18390cat >>conftest.$ac_ext <<_ACEOF
18391/* end confdefs.h. */
97bf5e38
MK
18392
18393#define _SYSCALL32
18394#include <sys/procfs.h>
bec39cab
AC
18395int
18396main ()
18397{
97bf5e38 18398prfpregset32_t avar
bec39cab
AC
18399 ;
18400 return 0;
18401}
18402_ACEOF
18403rm -f conftest.$ac_objext
18404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18405 (eval $ac_compile) 2>conftest.er1
18406 ac_status=$?
18407 grep -v '^ *+' conftest.er1 >conftest.err
18408 rm -f conftest.er1
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
18412 { ac_try='test -z "$ac_c_werror_flag"
18413 || test ! -s conftest.err'
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try='test -s conftest.$ac_objext'
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
97bf5e38 18425 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18426else
bec39cab
AC
18427 echo "$as_me: failed program was:" >&5
18428sed 's/^/| /' conftest.$ac_ext >&5
18429
18430bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18431
d45fe813 18432fi
bec39cab 18433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18434fi
18435
97bf5e38 18436 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18437
18438cat >>confdefs.h <<\_ACEOF
97bf5e38 18439#define HAVE_PRFPREGSET32_T 1
bec39cab 18440_ACEOF
d45fe813 18441
97bf5e38 18442 fi
bec39cab
AC
18443 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18444echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18445
bec39cab
AC
18446 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18447echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18448 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18450else
bec39cab
AC
18451 cat >conftest.$ac_ext <<_ACEOF
18452/* confdefs.h. */
18453_ACEOF
18454cat confdefs.h >>conftest.$ac_ext
18455cat >>conftest.$ac_ext <<_ACEOF
18456/* end confdefs.h. */
97bf5e38 18457
d45fe813 18458#define _SYSCALL32
97bf5e38 18459#include <sys/procfs.h>
bec39cab
AC
18460int
18461main ()
18462{
97bf5e38 18463lwpid_t avar
bec39cab
AC
18464 ;
18465 return 0;
18466}
18467_ACEOF
18468rm -f conftest.$ac_objext
18469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18470 (eval $ac_compile) 2>conftest.er1
18471 ac_status=$?
18472 grep -v '^ *+' conftest.er1 >conftest.err
18473 rm -f conftest.er1
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
18477 { ac_try='test -z "$ac_c_werror_flag"
18478 || test ! -s conftest.err'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try='test -s conftest.$ac_objext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
97bf5e38 18490 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18491else
bec39cab
AC
18492 echo "$as_me: failed program was:" >&5
18493sed 's/^/| /' conftest.$ac_ext >&5
18494
18495bfd_cv_have_sys_procfs_type_lwpid_t=no
18496
d45fe813 18497fi
bec39cab 18498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18499fi
18500
97bf5e38 18501 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18502
18503cat >>confdefs.h <<\_ACEOF
97bf5e38 18504#define HAVE_LWPID_T 1
bec39cab 18505_ACEOF
d45fe813 18506
97bf5e38 18507 fi
bec39cab
AC
18508 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18509echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18510
bec39cab
AC
18511 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18512echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18513 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18515else
bec39cab
AC
18516 cat >conftest.$ac_ext <<_ACEOF
18517/* confdefs.h. */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h. */
c906108c 18522
97bf5e38
MK
18523#define _SYSCALL32
18524#include <sys/procfs.h>
bec39cab
AC
18525int
18526main ()
18527{
97bf5e38 18528psaddr_t avar
bec39cab
AC
18529 ;
18530 return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext
18534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
97bf5e38 18555 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18556else
bec39cab
AC
18557 echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560bfd_cv_have_sys_procfs_type_psaddr_t=no
18561
c906108c 18562fi
bec39cab 18563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18564fi
18565
97bf5e38 18566 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18567
18568cat >>confdefs.h <<\_ACEOF
97bf5e38 18569#define HAVE_PSADDR_T 1
bec39cab 18570_ACEOF
c906108c 18571
97bf5e38 18572 fi
bec39cab
AC
18573 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18574echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18575
bec39cab
AC
18576 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18577echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18578 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18580else
bec39cab
AC
18581 cat >conftest.$ac_ext <<_ACEOF
18582/* confdefs.h. */
18583_ACEOF
18584cat confdefs.h >>conftest.$ac_ext
18585cat >>conftest.$ac_ext <<_ACEOF
18586/* end confdefs.h. */
c906108c 18587
97bf5e38
MK
18588#define _SYSCALL32
18589#include <sys/procfs.h>
bec39cab
AC
18590int
18591main ()
18592{
97bf5e38 18593prsysent_t avar
bec39cab
AC
18594 ;
18595 return 0;
18596}
18597_ACEOF
18598rm -f conftest.$ac_objext
18599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18600 (eval $ac_compile) 2>conftest.er1
18601 ac_status=$?
18602 grep -v '^ *+' conftest.er1 >conftest.err
18603 rm -f conftest.er1
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try='test -z "$ac_c_werror_flag"
18608 || test ! -s conftest.err'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; } &&
18614 { ac_try='test -s conftest.$ac_objext'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
97bf5e38 18620 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18621else
bec39cab
AC
18622 echo "$as_me: failed program was:" >&5
18623sed 's/^/| /' conftest.$ac_ext >&5
18624
18625bfd_cv_have_sys_procfs_type_prsysent_t=no
18626
c906108c 18627fi
bec39cab 18628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18629fi
18630
97bf5e38 18631 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18632
18633cat >>confdefs.h <<\_ACEOF
97bf5e38 18634#define HAVE_PRSYSENT_T 1
bec39cab 18635_ACEOF
c906108c 18636
97bf5e38 18637 fi
bec39cab
AC
18638 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18639echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18640
bec39cab
AC
18641 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18642echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18643 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18644 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18645else
bec39cab
AC
18646 cat >conftest.$ac_ext <<_ACEOF
18647/* confdefs.h. */
18648_ACEOF
18649cat confdefs.h >>conftest.$ac_ext
18650cat >>conftest.$ac_ext <<_ACEOF
18651/* end confdefs.h. */
c906108c 18652
97bf5e38
MK
18653#define _SYSCALL32
18654#include <sys/procfs.h>
bec39cab
AC
18655int
18656main ()
18657{
97bf5e38 18658pr_sigset_t avar
bec39cab
AC
18659 ;
18660 return 0;
18661}
18662_ACEOF
18663rm -f conftest.$ac_objext
18664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18665 (eval $ac_compile) 2>conftest.er1
18666 ac_status=$?
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
18672 { ac_try='test -z "$ac_c_werror_flag"
18673 || test ! -s conftest.err'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; } &&
18679 { ac_try='test -s conftest.$ac_objext'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }; then
97bf5e38 18685 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18686else
bec39cab
AC
18687 echo "$as_me: failed program was:" >&5
18688sed 's/^/| /' conftest.$ac_ext >&5
18689
18690bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18691
c906108c 18692fi
bec39cab 18693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18694fi
18695
97bf5e38 18696 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18697
18698cat >>confdefs.h <<\_ACEOF
97bf5e38 18699#define HAVE_PR_SIGSET_T 1
bec39cab 18700_ACEOF
c906108c 18701
97bf5e38 18702 fi
bec39cab
AC
18703 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18704echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18705
bec39cab
AC
18706 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18707echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18708 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18710else
bec39cab
AC
18711 cat >conftest.$ac_ext <<_ACEOF
18712/* confdefs.h. */
18713_ACEOF
18714cat confdefs.h >>conftest.$ac_ext
18715cat >>conftest.$ac_ext <<_ACEOF
18716/* end confdefs.h. */
c906108c 18717
97bf5e38
MK
18718#define _SYSCALL32
18719#include <sys/procfs.h>
bec39cab
AC
18720int
18721main ()
18722{
97bf5e38 18723pr_sigaction64_t avar
bec39cab
AC
18724 ;
18725 return 0;
18726}
18727_ACEOF
18728rm -f conftest.$ac_objext
18729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730 (eval $ac_compile) 2>conftest.er1
18731 ac_status=$?
18732 grep -v '^ *+' conftest.er1 >conftest.err
18733 rm -f conftest.er1
18734 cat conftest.err >&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } &&
18737 { ac_try='test -z "$ac_c_werror_flag"
18738 || test ! -s conftest.err'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s conftest.$ac_objext'
18745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746 (eval $ac_try) 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
97bf5e38 18750 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18751else
bec39cab
AC
18752 echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18756
c906108c 18757fi
bec39cab 18758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18759fi
18760
97bf5e38 18761 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18762
18763cat >>confdefs.h <<\_ACEOF
97bf5e38 18764#define HAVE_PR_SIGACTION64_T 1
bec39cab 18765_ACEOF
c906108c 18766
97bf5e38 18767 fi
bec39cab
AC
18768 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18769echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18770
bec39cab
AC
18771 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18772echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18773 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18775else
bec39cab
AC
18776 cat >conftest.$ac_ext <<_ACEOF
18777/* confdefs.h. */
18778_ACEOF
18779cat confdefs.h >>conftest.$ac_ext
18780cat >>conftest.$ac_ext <<_ACEOF
18781/* end confdefs.h. */
97bf5e38
MK
18782
18783#define _SYSCALL32
18784#include <sys/procfs.h>
bec39cab
AC
18785int
18786main ()
18787{
97bf5e38 18788pr_siginfo64_t avar
bec39cab
AC
18789 ;
18790 return 0;
18791}
18792_ACEOF
18793rm -f conftest.$ac_objext
18794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18795 (eval $ac_compile) 2>conftest.er1
18796 ac_status=$?
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try='test -z "$ac_c_werror_flag"
18803 || test ! -s conftest.err'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try='test -s conftest.$ac_objext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
97bf5e38
MK
18815 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18816else
bec39cab
AC
18817 echo "$as_me: failed program was:" >&5
18818sed 's/^/| /' conftest.$ac_ext >&5
18819
18820bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18821
97bf5e38 18822fi
bec39cab 18823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18824fi
c906108c 18825
97bf5e38 18826 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18827
18828cat >>confdefs.h <<\_ACEOF
97bf5e38 18829#define HAVE_PR_SIGINFO64_T 1
bec39cab 18830_ACEOF
c906108c 18831
97bf5e38 18832 fi
bec39cab
AC
18833 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18834echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18835
18836
97bf5e38
MK
18837
18838
18839
97bf5e38 18840 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18841 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18842echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18843 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18845else
18846 if test "$cross_compiling" = yes; then
97bf5e38 18847 gdb_cv_prfpregset_t_broken=yes
c906108c 18848else
bec39cab
AC
18849 cat >conftest.$ac_ext <<_ACEOF
18850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
97bf5e38
MK
18855#include <sys/procfs.h>
18856 int main ()
18857 {
18858 if (sizeof (prfpregset_t) == sizeof (void *))
18859 return 1;
18860 return 0;
18861 }
bec39cab
AC
18862_ACEOF
18863rm -f conftest$ac_exeext
18864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18865 (eval $ac_link) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
97bf5e38 18874 gdb_cv_prfpregset_t_broken=no
c906108c 18875else
bec39cab
AC
18876 echo "$as_me: program exited with status $ac_status" >&5
18877echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880( exit $ac_status )
18881gdb_cv_prfpregset_t_broken=yes
c906108c 18882fi
bec39cab 18883rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18884fi
c906108c
SS
18885fi
18886
bec39cab
AC
18887 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18888echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18889 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
18890
18891cat >>confdefs.h <<\_ACEOF
97bf5e38 18892#define PRFPREGSET_T_BROKEN 1
bec39cab 18893_ACEOF
c906108c 18894
97bf5e38
MK
18895 fi
18896 fi
c906108c 18897
bec39cab
AC
18898
18899 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18900echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18901 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18903else
bec39cab
AC
18904 cat >conftest.$ac_ext <<_ACEOF
18905/* confdefs.h. */
18906_ACEOF
18907cat confdefs.h >>conftest.$ac_ext
18908cat >>conftest.$ac_ext <<_ACEOF
18909/* end confdefs.h. */
97bf5e38
MK
18910#include <unistd.h>
18911#include <sys/types.h>
18912#include <sys/procfs.h>
18913
bec39cab
AC
18914int
18915main ()
18916{
97bf5e38
MK
18917
18918 int dummy;;
18919 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18920
18921 ;
18922 return 0;
18923}
18924_ACEOF
18925rm -f conftest.$ac_objext
18926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try='test -z "$ac_c_werror_flag"
18935 || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest.$ac_objext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
97bf5e38 18947 gdb_cv_have_procfs_piocset=yes
c906108c 18948else
bec39cab
AC
18949 echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952gdb_cv_have_procfs_piocset=no
c906108c 18953fi
bec39cab 18954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18955fi
97bf5e38 18956
bec39cab
AC
18957 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18958echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18959 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
18960
18961cat >>confdefs.h <<\_ACEOF
97bf5e38 18962#define HAVE_PROCFS_PIOCSET 1
bec39cab 18963_ACEOF
97bf5e38
MK
18964
18965 fi
c906108c 18966fi
c906108c 18967
97bf5e38 18968if test ${host} = ${target} ; then
bec39cab
AC
18969
18970 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18971echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18972 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974else
18975 cat >conftest.$ac_ext <<_ACEOF
18976/* confdefs.h. */
18977_ACEOF
18978cat confdefs.h >>conftest.$ac_ext
18979cat >>conftest.$ac_ext <<_ACEOF
18980/* end confdefs.h. */
97bf5e38 18981#include <link.h>
bec39cab
AC
18982int
18983main ()
18984{
97bf5e38 18985struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18986 ;
18987 return 0;
18988}
18989_ACEOF
18990rm -f conftest.$ac_objext
18991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18992 (eval $ac_compile) 2>conftest.er1
18993 ac_status=$?
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try='test -z "$ac_c_werror_flag"
19000 || test ! -s conftest.err'
19001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002 (eval $ac_try) 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; } &&
19006 { ac_try='test -s conftest.$ac_objext'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
97bf5e38 19012 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 19013else
bec39cab
AC
19014 echo "$as_me: failed program was:" >&5
19015sed 's/^/| /' conftest.$ac_ext >&5
19016
19017gdb_cv_have_struct_link_map_with_l_members=no
c906108c 19018fi
bec39cab 19019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19020fi
19021
bec39cab
AC
19022 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19023echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 19024 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
19025
19026cat >>confdefs.h <<\_ACEOF
97bf5e38 19027#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 19028_ACEOF
97bf5e38
MK
19029
19030 fi
19031
bec39cab
AC
19032
19033 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19034echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
19035 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19037else
bec39cab
AC
19038 cat >conftest.$ac_ext <<_ACEOF
19039/* confdefs.h. */
19040_ACEOF
19041cat confdefs.h >>conftest.$ac_ext
19042cat >>conftest.$ac_ext <<_ACEOF
19043/* end confdefs.h. */
97bf5e38
MK
19044#include <sys/types.h>
19045#include <link.h>
bec39cab
AC
19046int
19047main ()
19048{
97bf5e38 19049struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
19050 ;
19051 return 0;
19052}
19053_ACEOF
19054rm -f conftest.$ac_objext
19055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19057 ac_status=$?
19058 grep -v '^ *+' conftest.er1 >conftest.err
19059 rm -f conftest.er1
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
97bf5e38
MK
19076 gdb_cv_have_struct_link_map_with_lm_members=yes
19077else
bec39cab
AC
19078 echo "$as_me: failed program was:" >&5
19079sed 's/^/| /' conftest.$ac_ext >&5
19080
19081gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 19082fi
bec39cab 19083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19084fi
c906108c 19085
bec39cab
AC
19086 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19087echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 19088 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
19089
19090cat >>confdefs.h <<\_ACEOF
97bf5e38 19091#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 19092_ACEOF
97bf5e38
MK
19093
19094 fi
19095
bec39cab
AC
19096
19097 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19098echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19099 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19101else
bec39cab
AC
19102 cat >conftest.$ac_ext <<_ACEOF
19103/* confdefs.h. */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h. */
97bf5e38
MK
19108#include <sys/types.h>
19109#ifdef HAVE_NLIST_H
19110#include <nlist.h>
19111#endif
19112#include <link.h>
bec39cab
AC
19113int
19114main ()
19115{
97bf5e38 19116struct so_map lm; (void) lm.som_addr;
bec39cab
AC
19117 ;
19118 return 0;
19119}
19120_ACEOF
19121rm -f conftest.$ac_objext
19122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123 (eval $ac_compile) 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_c_werror_flag"
19131 || test ! -s conftest.err'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest.$ac_objext'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
97bf5e38
MK
19143 gdb_cv_have_struct_so_map_with_som_members=yes
19144else
bec39cab
AC
19145 echo "$as_me: failed program was:" >&5
19146sed 's/^/| /' conftest.$ac_ext >&5
19147
19148gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 19149fi
bec39cab 19150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19151fi
c906108c 19152
bec39cab
AC
19153 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19154echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 19155 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
19156
19157cat >>confdefs.h <<\_ACEOF
97bf5e38 19158#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 19159_ACEOF
c906108c 19160
97bf5e38 19161 fi
c906108c 19162
bec39cab
AC
19163
19164 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19165echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19166 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19168else
bec39cab
AC
19169 cat >conftest.$ac_ext <<_ACEOF
19170/* confdefs.h. */
19171_ACEOF
19172cat confdefs.h >>conftest.$ac_ext
19173cat >>conftest.$ac_ext <<_ACEOF
19174/* end confdefs.h. */
97bf5e38
MK
19175#define _SYSCALL32
19176#include <sys/link.h>
bec39cab
AC
19177int
19178main ()
19179{
97bf5e38 19180struct link_map32 l;
bec39cab
AC
19181 ;
19182 return 0;
19183}
19184_ACEOF
19185rm -f conftest.$ac_objext
19186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187 (eval $ac_compile) 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag"
19195 || test ! -s conftest.err'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; } &&
19201 { ac_try='test -s conftest.$ac_objext'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
97bf5e38
MK
19207 gdb_cv_have_struct_link_map32=yes
19208else
bec39cab
AC
19209 echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212gdb_cv_have_struct_link_map32=no
97bf5e38 19213fi
bec39cab 19214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19215fi
c906108c 19216
bec39cab
AC
19217 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19218echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 19219 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
19220
19221cat >>confdefs.h <<\_ACEOF
97bf5e38 19222#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 19223_ACEOF
c906108c 19224
60ca704f
SE
19225
19226cat >>confdefs.h <<\_ACEOF
97bf5e38 19227#define _SYSCALL32 1
bec39cab 19228_ACEOF
c906108c 19229
97bf5e38
MK
19230 fi
19231fi
c906108c 19232
bc8bcb4b 19233# Check if the compiler supports the `long long' type.
c906108c 19234
bec39cab
AC
19235echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19236echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19237if test "${gdb_cv_c_long_long+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19239else
bec39cab
AC
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. */
bc8bcb4b 19246extern long long foo;
bec39cab
AC
19247int
19248main ()
19249{
bc8bcb4b 19250switch (foo & 2) { case 0: return 1; }
bec39cab
AC
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
97bf5e38
MK
19277 gdb_cv_c_long_long=yes
19278else
bec39cab
AC
19279 echo "$as_me: failed program was:" >&5
19280sed 's/^/| /' conftest.$ac_ext >&5
19281
19282gdb_cv_c_long_long=no
97bf5e38 19283fi
bec39cab 19284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19285fi
bec39cab
AC
19286echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19287echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 19288if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
19289
19290cat >>confdefs.h <<\_ACEOF
97bf5e38 19291#define CC_HAS_LONG_LONG 1
bec39cab 19292_ACEOF
97bf5e38
MK
19293
19294fi
19295
bc8bcb4b 19296# Check if the compiler and runtime support printing long longs.
97bf5e38 19297
bec39cab
AC
19298echo "$as_me:$LINENO: checking for long long support in printf" >&5
19299echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19300if test "${gdb_cv_printf_has_long_long+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19302else
19303 if test "$cross_compiling" = yes; then
19304 gdb_cv_printf_has_long_long=no
19305else
bec39cab
AC
19306 cat >conftest.$ac_ext <<_ACEOF
19307/* confdefs.h. */
19308_ACEOF
19309cat confdefs.h >>conftest.$ac_ext
19310cat >>conftest.$ac_ext <<_ACEOF
19311/* end confdefs.h. */
bc8bcb4b
MK
19312$ac_includes_default
19313int
19314main ()
19315{
19316char buf[32];
97bf5e38
MK
19317 long long l = 0;
19318 l = (l << 16) + 0x0123;
19319 l = (l << 16) + 0x4567;
19320 l = (l << 16) + 0x89ab;
19321 l = (l << 16) + 0xcdef;
19322 sprintf (buf, "0x%016llx", l);
19323 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
19324 ;
19325 return 0;
c906108c 19326}
bec39cab
AC
19327_ACEOF
19328rm -f conftest$ac_exeext
19329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19330 (eval $ac_link) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
97bf5e38
MK
19339 gdb_cv_printf_has_long_long=yes
19340else
bec39cab
AC
19341 echo "$as_me: program exited with status $ac_status" >&5
19342echo "$as_me: failed program was:" >&5
19343sed 's/^/| /' conftest.$ac_ext >&5
19344
19345( exit $ac_status )
19346gdb_cv_printf_has_long_long=no
97bf5e38 19347fi
bec39cab 19348rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19349fi
97bf5e38 19350fi
bc8bcb4b
MK
19351echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19352echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 19353if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
19354
19355cat >>confdefs.h <<\_ACEOF
97bf5e38 19356#define PRINTF_HAS_LONG_LONG 1
bec39cab 19357_ACEOF
97bf5e38
MK
19358
19359fi
97bf5e38 19360
bc8bcb4b
MK
19361# Check if the compiler supports the `long double' type. We can't use
19362# AC_C_LONG_DOUBLE because that one does additional checks on the
19363# constants defined in <float.h> that fail on some systems,
19364# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 19365
bec39cab
AC
19366echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19367echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 19368if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 19369 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19370else
bec39cab
AC
19371 cat >conftest.$ac_ext <<_ACEOF
19372/* confdefs.h. */
19373_ACEOF
19374cat confdefs.h >>conftest.$ac_ext
19375cat >>conftest.$ac_ext <<_ACEOF
19376/* end confdefs.h. */
97bf5e38 19377long double foo;
bec39cab
AC
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
bc8bcb4b 19401 gdb_cv_c_long_double=yes
97bf5e38 19402else
bec39cab
AC
19403 echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
bc8bcb4b 19406gdb_cv_c_long_double=no
97bf5e38 19407fi
bec39cab 19408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19409fi
bc8bcb4b
MK
19410echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19411echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19412if test $gdb_cv_c_long_double = yes; then
c906108c 19413
bc8bcb4b 19414cat >>confdefs.h <<\_ACEOF
97bf5e38 19415#define HAVE_LONG_DOUBLE 1
bec39cab 19416_ACEOF
97bf5e38
MK
19417
19418fi
19419
bc8bcb4b 19420# Check if the compiler and runtime support printing long doubles.
97bf5e38 19421
bec39cab
AC
19422echo "$as_me:$LINENO: checking for long double support in printf" >&5
19423echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19424if test "${gdb_cv_printf_has_long_double+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19426else
19427 if test "$cross_compiling" = yes; then
19428 gdb_cv_printf_has_long_double=no
19429else
bec39cab
AC
19430 cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
bc8bcb4b
MK
19436$ac_includes_default
19437int
19438main ()
19439{
19440char buf[16];
97bf5e38
MK
19441 long double f = 3.141592653;
19442 sprintf (buf, "%Lg", f);
19443 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
19444 ;
19445 return 0;
97bf5e38 19446}
bec39cab
AC
19447_ACEOF
19448rm -f conftest$ac_exeext
19449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19450 (eval $ac_link) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
97bf5e38 19459 gdb_cv_printf_has_long_double=yes
c906108c 19460else
bec39cab
AC
19461 echo "$as_me: program exited with status $ac_status" >&5
19462echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465( exit $ac_status )
19466gdb_cv_printf_has_long_double=no
c906108c 19467fi
bec39cab 19468rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19469fi
c906108c 19470fi
bc8bcb4b
MK
19471echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19472echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 19473if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
19474
19475cat >>confdefs.h <<\_ACEOF
97bf5e38 19476#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19477_ACEOF
97bf5e38
MK
19478
19479fi
97bf5e38 19480
bc8bcb4b 19481# Check if the compiler and runtime support scanning long doubles.
97bf5e38 19482
bec39cab
AC
19483echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19484echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19485if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19487else
19488 if test "$cross_compiling" = yes; then
19489 gdb_cv_scanf_has_long_double=no
19490else
bec39cab
AC
19491 cat >conftest.$ac_ext <<_ACEOF
19492/* confdefs.h. */
19493_ACEOF
19494cat confdefs.h >>conftest.$ac_ext
19495cat >>conftest.$ac_ext <<_ACEOF
19496/* end confdefs.h. */
bc8bcb4b
MK
19497#include <stdio.h>
19498int
19499main ()
19500{
19501char *buf = "3.141592653";
97bf5e38
MK
19502 long double f = 0;
19503 sscanf (buf, "%Lg", &f);
19504 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
19505 ;
19506 return 0;
97bf5e38 19507}
bec39cab
AC
19508_ACEOF
19509rm -f conftest$ac_exeext
19510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511 (eval $ac_link) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
97bf5e38
MK
19520 gdb_cv_scanf_has_long_double=yes
19521else
bec39cab
AC
19522 echo "$as_me: program exited with status $ac_status" >&5
19523echo "$as_me: failed program was:" >&5
19524sed 's/^/| /' conftest.$ac_ext >&5
19525
19526( exit $ac_status )
19527gdb_cv_scanf_has_long_double=no
97bf5e38 19528fi
bec39cab 19529rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19530fi
c906108c 19531fi
bc8bcb4b
MK
19532echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19533echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 19534if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
19535
19536cat >>confdefs.h <<\_ACEOF
97bf5e38 19537#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19538_ACEOF
97bf5e38
MK
19539
19540fi
c906108c 19541
438013df
AO
19542case ${host_os} in
19543aix*)
bec39cab
AC
19544 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19545echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19546if test "${gdb_cv_bigtoc+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19548else
bec39cab 19549
438013df
AO
19550 SAVE_LDFLAGS=$LDFLAGS
19551
19552 case $GCC in
19553 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19554 *) gdb_cv_bigtoc=-bbigtoc ;;
19555 esac
19556
19557 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19558 cat >conftest.$ac_ext <<_ACEOF
19559/* confdefs.h. */
19560_ACEOF
19561cat confdefs.h >>conftest.$ac_ext
19562cat >>conftest.$ac_ext <<_ACEOF
19563/* end confdefs.h. */
438013df 19564
bec39cab
AC
19565int
19566main ()
19567{
438013df 19568int i;
bec39cab
AC
19569 ;
19570 return 0;
19571}
19572_ACEOF
19573rm -f conftest.$ac_objext conftest$ac_exeext
19574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19575 (eval $ac_link) 2>conftest.er1
19576 ac_status=$?
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try='test -z "$ac_c_werror_flag"
19583 || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest$ac_exeext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
438013df
AO
19595 :
19596else
bec39cab
AC
19597 echo "$as_me: failed program was:" >&5
19598sed 's/^/| /' conftest.$ac_ext >&5
19599
19600gdb_cv_bigtoc=
438013df 19601fi
bec39cab
AC
19602rm -f conftest.err conftest.$ac_objext \
19603 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19604 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19605
bec39cab
AC
19606fi
19607echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19608echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19609 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19610 ;;
19611esac
19612
c906108c
SS
19613
19614
19615if test ${build} = ${host} -a ${host} = ${target} ; then
19616 case ${host_os} in
19617 hpux*)
bec39cab
AC
19618 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19619echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19620 if test -f /usr/include/dce/cma_config.h ; then
19621 if test "$GCC" = "yes" ; then
bec39cab
AC
19622 echo "$as_me:$LINENO: result: yes" >&5
19623echo "${ECHO_T}yes" >&6
60ca704f
SE
19624
19625cat >>confdefs.h <<\_ACEOF
c906108c 19626#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19627_ACEOF
c906108c 19628
3483b318 19629 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19630 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19631 else
bec39cab
AC
19632 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19633echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19634 fi
19635 else
bec39cab
AC
19636 echo "$as_me:$LINENO: result: no" >&5
19637echo "${ECHO_T}no" >&6
c906108c
SS
19638 fi
19639 ;;
19640 solaris*)
d92419e5
JB
19641 # See if thread_db library is around for Solaris thread debugging.
19642 # Note that we must explicitly test for version 1 of the library
19643 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19644 # the same API.
bec39cab
AC
19645 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19646echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19647 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19648 echo "$as_me:$LINENO: result: yes" >&5
19649echo "${ECHO_T}yes" >&6
60ca704f
SE
19650
19651cat >>confdefs.h <<\_ACEOF
c906108c 19652#define HAVE_THREAD_DB_LIB 1
bec39cab 19653_ACEOF
c906108c 19654
3483b318 19655 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19656 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19657
19658echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19659echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19660if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19662else
bec39cab 19663 ac_check_lib_save_LIBS=$LIBS
c906108c 19664LIBS="-ldl $LIBS"
bec39cab
AC
19665cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671
c906108c 19672/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19673#ifdef __cplusplus
19674extern "C"
19675#endif
c906108c 19676/* We use char because int might match the return type of a gcc2
bec39cab
AC
19677 builtin and then its argument prototype would still apply. */
19678char dlopen ();
19679int
19680main ()
19681{
19682dlopen ();
19683 ;
19684 return 0;
19685}
19686_ACEOF
19687rm -f conftest.$ac_objext conftest$ac_exeext
19688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19689 (eval $ac_link) 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -z "$ac_c_werror_flag"
19697 || test ! -s conftest.err'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest$ac_exeext'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_lib_dl_dlopen=yes
19710else
19711 echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714ac_cv_lib_dl_dlopen=no
19715fi
19716rm -f conftest.err conftest.$ac_objext \
19717 conftest$ac_exeext conftest.$ac_ext
19718LIBS=$ac_check_lib_save_LIBS
19719fi
19720echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19721echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19722if test $ac_cv_lib_dl_dlopen = yes; then
19723 cat >>confdefs.h <<_ACEOF
19724#define HAVE_LIBDL 1
19725_ACEOF
c906108c
SS
19726
19727 LIBS="-ldl $LIBS"
19728
c906108c
SS
19729fi
19730
19731 if test "$GCC" = "yes" ; then
19732 # The GNU linker requires the -export-dynamic option to make
19733 # all symbols visible in the dynamic symbol table.
19734 hold_ldflags=$LDFLAGS
bec39cab
AC
19735 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19736echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19737 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
19738 cat >conftest.$ac_ext <<_ACEOF
19739/* confdefs.h. */
19740_ACEOF
19741cat confdefs.h >>conftest.$ac_ext
19742cat >>conftest.$ac_ext <<_ACEOF
19743/* end confdefs.h. */
c906108c 19744
bec39cab
AC
19745int
19746main ()
19747{
c906108c 19748int i;
bec39cab
AC
19749 ;
19750 return 0;
19751}
19752_ACEOF
19753rm -f conftest.$ac_objext conftest$ac_exeext
19754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19755 (eval $ac_link) 2>conftest.er1
19756 ac_status=$?
19757 grep -v '^ *+' conftest.er1 >conftest.err
19758 rm -f conftest.er1
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -z "$ac_c_werror_flag"
19763 || test ! -s conftest.err'
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest$ac_exeext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
c906108c
SS
19775 found=yes
19776else
bec39cab
AC
19777 echo "$as_me: failed program was:" >&5
19778sed 's/^/| /' conftest.$ac_ext >&5
19779
19780found=no
c906108c 19781fi
bec39cab
AC
19782rm -f conftest.err conftest.$ac_objext \
19783 conftest$ac_exeext conftest.$ac_ext
c906108c 19784 LDFLAGS=$hold_ldflags
bec39cab
AC
19785 echo "$as_me:$LINENO: result: $found" >&5
19786echo "${ECHO_T}$found" >&6
c906108c
SS
19787 if test $found = yes; then
19788 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19789 fi
19790 fi
19791 # Sun randomly tweaked the prototypes in <proc_service.h>
19792 # at one point.
bec39cab
AC
19793 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19794echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19795 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19797else
bec39cab
AC
19798
19799 cat >conftest.$ac_ext <<_ACEOF
19800/* confdefs.h. */
19801_ACEOF
19802cat confdefs.h >>conftest.$ac_ext
19803cat >>conftest.$ac_ext <<_ACEOF
19804/* end confdefs.h. */
c906108c
SS
19805
19806 #include <proc_service.h>
19807 ps_err_e ps_pdwrite
19808 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19809
bec39cab
AC
19810int
19811main ()
19812{
19813
19814 ;
19815 return 0;
19816}
19817_ACEOF
19818rm -f conftest.$ac_objext
19819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19820 (eval $ac_compile) 2>conftest.er1
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } &&
19827 { ac_try='test -z "$ac_c_werror_flag"
19828 || test ! -s conftest.err'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19831 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } &&
19834 { ac_try='test -s conftest.$ac_objext'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19837 ac_status=$?
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; }; then
c906108c
SS
19840 gdb_cv_proc_service_is_old=no
19841else
bec39cab
AC
19842 echo "$as_me: failed program was:" >&5
19843sed 's/^/| /' conftest.$ac_ext >&5
19844
19845gdb_cv_proc_service_is_old=yes
c906108c 19846fi
bec39cab
AC
19847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19848
c906108c
SS
19849fi
19850
bec39cab
AC
19851 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19852echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19853 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
19854
19855cat >>confdefs.h <<\_ACEOF
c906108c 19856#define PROC_SERVICE_IS_OLD 1
bec39cab 19857_ACEOF
c906108c
SS
19858
19859 fi
19860 else
bec39cab
AC
19861 echo "$as_me:$LINENO: result: no" >&5
19862echo "${ECHO_T}no" >&6
c906108c
SS
19863 fi
19864 ;;
d92419e5 19865 aix*)
bec39cab
AC
19866 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19867echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19868 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870else
19871 cat >conftest.$ac_ext <<_ACEOF
19872/* confdefs.h. */
19873_ACEOF
19874cat confdefs.h >>conftest.$ac_ext
19875cat >>conftest.$ac_ext <<_ACEOF
19876/* end confdefs.h. */
d92419e5 19877#include <sys/pthdebug.h>
bec39cab
AC
19878int
19879main ()
19880{
d92419e5
JB
19881#ifndef PTHDB_VERSION_3
19882 #error
19883 #endif
bec39cab
AC
19884 ;
19885 return 0;
19886}
19887_ACEOF
19888rm -f conftest.$ac_objext
19889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19890 (eval $ac_compile) 2>conftest.er1
19891 ac_status=$?
19892 grep -v '^ *+' conftest.er1 >conftest.err
19893 rm -f conftest.er1
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } &&
19897 { ac_try='test -z "$ac_c_werror_flag"
19898 || test ! -s conftest.err'
19899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900 (eval $ac_try) 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest.$ac_objext'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19907 ac_status=$?
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
d92419e5
JB
19910 gdb_cv_have_aix_thread_debug=yes
19911else
bec39cab
AC
19912 echo "$as_me: failed program was:" >&5
19913sed 's/^/| /' conftest.$ac_ext >&5
19914
19915gdb_cv_have_aix_thread_debug=no
d92419e5 19916fi
bec39cab 19917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19918fi
19919
bec39cab
AC
19920 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19921echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19922 if test $gdb_cv_have_aix_thread_debug = yes; then
19923 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19924 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19925 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19926 fi
19927 ;;
c906108c 19928 esac
bec39cab 19929
c906108c
SS
19930fi
19931
3f47be5c 19932if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19933 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19934echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19935if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19937else
19938 cat >conftest.$ac_ext <<_ACEOF
19939/* confdefs.h. */
19940_ACEOF
19941cat confdefs.h >>conftest.$ac_ext
19942cat >>conftest.$ac_ext <<_ACEOF
19943/* end confdefs.h. */
3f47be5c 19944#include <thread_db.h>
bec39cab
AC
19945int
19946main ()
19947{
3f47be5c 19948int i = TD_NOTALLOC;
bec39cab
AC
19949 ;
19950 return 0;
19951}
19952_ACEOF
19953rm -f conftest.$ac_objext
19954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19955 (eval $ac_compile) 2>conftest.er1
19956 ac_status=$?
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try='test -z "$ac_c_werror_flag"
19963 || test ! -s conftest.err'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest.$ac_objext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
3f47be5c
EZ
19975 gdb_cv_thread_db_h_has_td_notalloc=yes
19976else
bec39cab
AC
19977 echo "$as_me: failed program was:" >&5
19978sed 's/^/| /' conftest.$ac_ext >&5
19979
19980gdb_cv_thread_db_h_has_td_notalloc=no
19981
3f47be5c 19982fi
bec39cab 19983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19984
bec39cab
AC
19985fi
19986echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19987echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19988fi
19989if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19990
19991cat >>confdefs.h <<\_ACEOF
3f47be5c 19992#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19993_ACEOF
3f47be5c
EZ
19994
19995fi
19996
b757528f 19997if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19998 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19999echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
20000if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20002else
20003 cat >conftest.$ac_ext <<_ACEOF
20004/* confdefs.h. */
20005_ACEOF
20006cat confdefs.h >>conftest.$ac_ext
20007cat >>conftest.$ac_ext <<_ACEOF
20008/* end confdefs.h. */
b757528f 20009#include <sys/syscall.h>
bec39cab
AC
20010int
20011main ()
20012{
b757528f 20013int i = __NR_tkill;
bec39cab
AC
20014 ;
20015 return 0;
20016}
20017_ACEOF
20018rm -f conftest.$ac_objext
20019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20020 (eval $ac_compile) 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest.$ac_objext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
b757528f
JJ
20040 gdb_cv_sys_syscall_h_has_tkill=yes
20041else
bec39cab
AC
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045gdb_cv_sys_syscall_h_has_tkill=no
20046
b757528f 20047fi
bec39cab 20048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 20049
bec39cab
AC
20050fi
20051echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20052echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
20053fi
20054if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
20055
20056cat >>confdefs.h <<\_ACEOF
b757528f 20057#define HAVE_TKILL_SYSCALL 1
bec39cab 20058_ACEOF
b757528f
JJ
20059
20060fi
20061
fb40c209 20062
bec39cab 20063
030292b7
DJ
20064# Check whether --with-sysroot or --without-sysroot was given.
20065if test "${with_sysroot+set}" = set; then
20066 withval="$with_sysroot"
bec39cab 20067
030292b7 20068 case ${with_sysroot} in
715d1656 20069 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
20070 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
20071 esac
20072
20073 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20074
20075 if test "x$exec_prefix" = xNONE; then
20076 if test "x$prefix" = xNONE; then
20077 test_prefix=/usr/local
20078 else
20079 test_prefix=$prefix
20080 fi
20081 else
20082 test_prefix=$exec_prefix
20083 fi
20084 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
20085 "${test_prefix}"|"${test_prefix}/"*|\
20086 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
20087 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20088 TARGET_SYSTEM_ROOT_DEFINE="$t"
20089 ;;
20090 esac
20091
20092else
bec39cab 20093
030292b7
DJ
20094 TARGET_SYSTEM_ROOT=
20095 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20096
bec39cab 20097fi;
030292b7
DJ
20098
20099
20100
3b851bce
AC
20101# NOTE: Don't add -Wall or -Wunused, they both include
20102# -Wunused-parameter which reports bogus warnings.
20103# NOTE: If you add to this list, remember to update
20104# gdb/doc/gdbint.texinfo.
1decb323 20105build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 20106-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
7be93b9e 20107-Wunused-label -Wunused-function -Wno-pointer-sign"
a3b362c4
JB
20108
20109# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 20110if test x${CFLAGS+set} = xset; then
a3b362c4
JB
20111 case "${CFLAGS}" in
20112 *"-O0"* ) ;;
20113 *"-O"* )
20114 build_warnings="${build_warnings} -Wuninitialized"
20115 ;;
20116 esac
20117else
20118 build_warnings="${build_warnings} -Wuninitialized"
20119fi
20120
d8038014 20121# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 20122# -Wunused-function -Wunused-variable -Wunused-value
93d56215 20123# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
20124# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
20125# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
20126# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
20127# Check whether --enable-build-warnings or --disable-build-warnings was given.
20128if test "${enable_build_warnings+set}" = set; then
20129 enableval="$enable_build_warnings"
1decb323 20130 case "${enableval}" in
c906108c
SS
20131 yes) ;;
20132 no) build_warnings="-w";;
20133 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20134 build_warnings="${build_warnings} ${t}";;
20135 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20136 build_warnings="${t} ${build_warnings}";;
20137 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20138esac
d4f3574e 20139if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 20140 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 20141fi
bec39cab 20142fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
20143if test "${enable_gdb_build_warnings+set}" = set; then
20144 enableval="$enable_gdb_build_warnings"
20145 case "${enableval}" in
20146 yes) ;;
20147 no) build_warnings="-w";;
20148 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20149 build_warnings="${build_warnings} ${t}";;
20150 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20151 build_warnings="${t} ${build_warnings}";;
20152 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20153esac
20154if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20155 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20156fi
bec39cab 20157fi; WARN_CFLAGS=""
104c1213 20158WERROR_CFLAGS=""
c906108c
SS
20159if test "x${build_warnings}" != x -a "x$GCC" = xyes
20160then
bec39cab
AC
20161 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20162echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
20163 # Separate out the -Werror flag as some files just cannot be
20164 # compiled with it enabled.
20165 for w in ${build_warnings}; do
20166 case $w in
20167 -Werr*) WERROR_CFLAGS=-Werror ;;
20168 *) # Check that GCC accepts it
4536bbc6
AC
20169 saved_CFLAGS="$CFLAGS"
20170 CFLAGS="$CFLAGS $w"
bec39cab
AC
20171 cat >conftest.$ac_ext <<_ACEOF
20172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h. */
4536bbc6 20177
bec39cab
AC
20178int
20179main ()
20180{
4536bbc6 20181
bec39cab
AC
20182 ;
20183 return 0;
20184}
20185_ACEOF
20186rm -f conftest.$ac_objext
20187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20188 (eval $ac_compile) 2>conftest.er1
20189 ac_status=$?
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
20195 { ac_try='test -z "$ac_c_werror_flag"
20196 || test ! -s conftest.err'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
4536bbc6
AC
20208 WARN_CFLAGS="${WARN_CFLAGS} $w"
20209else
bec39cab
AC
20210 echo "$as_me: failed program was:" >&5
20211sed 's/^/| /' conftest.$ac_ext >&5
20212
4536bbc6 20213fi
bec39cab 20214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 20215 CFLAGS="$saved_CFLAGS"
746a987d
AC
20216 esac
20217 done
bec39cab
AC
20218 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20219echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
20220fi
20221
20222
104c1213 20223
7a292a7a 20224# In the Cygwin environment, we need some additional flags.
bec39cab
AC
20225echo "$as_me:$LINENO: checking for cygwin" >&5
20226echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20227if test "${gdb_cv_os_cygwin+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229else
20230 cat >conftest.$ac_ext <<_ACEOF
20231/* confdefs.h. */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h. */
7a292a7a
SS
20236
20237#if defined (__CYGWIN__) || defined (__CYGWIN32__)
20238lose
20239#endif
bec39cab 20240_ACEOF
7a292a7a 20241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 20242 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
20243 gdb_cv_os_cygwin=yes
20244else
7a292a7a
SS
20245 gdb_cv_os_cygwin=no
20246fi
20247rm -f conftest*
20248
20249fi
bec39cab
AC
20250echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20251echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 20252
aff38e61 20253
3eb25fda 20254SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 20255case ${host} in
95cbc983
AC
20256 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20257 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
3eb25fda 20258 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o" ;;
aff38e61
AC
20259esac
20260
20261
cd0fc7c3
SS
20262# libreadline needs libuser32.a in a cygwin environment
20263WIN32LIBS=
20264if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
20265 WIN32LIBS="-luser32"
20266 case "${target}" in
20267 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20268 ;;
20269 esac
cd0fc7c3 20270fi
c906108c 20271
b4505029
MM
20272# The ser-tcp.c module requires sockets.
20273case ${host} in
20274 *mingw32*)
20275
20276cat >>confdefs.h <<\_ACEOF
20277#define USE_WIN32API 1
20278_ACEOF
20279
20280 WIN32LIBS="$WIN32LIBS -lws2_32"
20281 ;;
20282esac
20283
7a292a7a 20284
3fc11d3e
JM
20285LIBGUI="../libgui/src/libgui.a"
20286GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20287
20288
7a292a7a 20289
3fc11d3e
JM
20290WIN32LDAPP=
20291
20292
20293
d91670b9
CV
20294case "${host}" in
20295*-*-cygwin*)
20296 configdir="win"
20297 ;;
20298*)
20299 configdir="unix"
20300 ;;
20301esac
3fc11d3e
JM
20302
20303GDBTKLIBS=
20304if test "${enable_gdbtk}" = "yes"; then
20305
d1c3b63a
KS
20306 # Gdbtk must have an absolute path to srcdir in order to run
20307 # properly when not installed.
20308 here=`pwd`
20309 cd ${srcdir}
20310 GDBTK_SRC_DIR=`pwd`
20311 cd $here
20312
bec39cab 20313
3fc11d3e
JM
20314#
20315# Ok, lets find the tcl configuration
bec39cab 20316# First, look for one uninstalled.
3fc11d3e
JM
20317# the alternative search directory is invoked by --with-tclconfig
20318#
20319
20320if test x"${no_tcl}" = x ; then
20321 # we reset no_tcl in case something fails here
20322 no_tcl=true
bec39cab
AC
20323
20324# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
20325if test "${with_tclconfig+set}" = set; then
20326 withval="$with_tclconfig"
20327 with_tclconfig=${withval}
bec39cab
AC
20328fi;
20329 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20330echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20331 if test "${ac_cv_c_tclconfig+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20333else
bec39cab 20334
3fc11d3e
JM
20335
20336 # First check to see if --with-tclconfig was specified.
20337 if test x"${with_tclconfig}" != x ; then
20338 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20339 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20340 else
bec39cab
AC
20341 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20342echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20343 { (exit 1); exit 1; }; }
3fc11d3e
JM
20344 fi
20345 fi
20346
20347 # then check for a private Tcl installation
20348 if test x"${ac_cv_c_tclconfig}" = x ; then
20349 for i in \
20350 ../tcl \
20351 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20352 ../../tcl \
20353 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20354 ../../../tcl \
20355 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20356 if test -f "$i/${configdir}/tclConfig.sh" ; then
20357 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20358 break
20359 fi
20360 done
20361 fi
20362 # check in a few common install locations
20363 if test x"${ac_cv_c_tclconfig}" = x ; then
20364 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20365 if test -f "$i/tclConfig.sh" ; then
20366 ac_cv_c_tclconfig=`(cd $i; pwd)`
20367 break
20368 fi
20369 done
20370 fi
20371 # check in a few other private locations
20372 if test x"${ac_cv_c_tclconfig}" = x ; then
20373 for i in \
20374 ${srcdir}/../tcl \
20375 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20376 if test -f "$i/${configdir}/tclConfig.sh" ; then
20377 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20378 break
20379 fi
20380 done
20381 fi
bec39cab 20382
3fc11d3e
JM
20383fi
20384
20385 if test x"${ac_cv_c_tclconfig}" = x ; then
20386 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
20387 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20388echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
20389 else
20390 no_tcl=
20391 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
20392 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20393echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
20394 fi
20395fi
20396
20397 if test -z "${no_tcl}"; then
bec39cab 20398
3fc11d3e
JM
20399 . $TCLCONFIG
20400
3fc11d3e
JM
20401
20402
20403
20404
3fc11d3e
JM
20405
20406
20407
bec39cab
AC
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
3fc11d3e
JM
20427#
20428# Ok, lets find the tk configuration
bec39cab 20429# First, look for one uninstalled.
3fc11d3e
JM
20430# the alternative search directory is invoked by --with-tkconfig
20431#
20432
20433if test x"${no_tk}" = x ; then
20434 # we reset no_tk in case something fails here
20435 no_tk=true
bec39cab
AC
20436
20437# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20438if test "${with_tkconfig+set}" = set; then
20439 withval="$with_tkconfig"
20440 with_tkconfig=${withval}
bec39cab
AC
20441fi;
20442 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20443echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20444 if test "${ac_cv_c_tkconfig+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20446else
bec39cab 20447
3fc11d3e
JM
20448
20449 # First check to see if --with-tkconfig was specified.
20450 if test x"${with_tkconfig}" != x ; then
20451 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20452 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20453 else
bec39cab
AC
20454 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20455echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20456 { (exit 1); exit 1; }; }
3fc11d3e
JM
20457 fi
20458 fi
20459
20460 # then check for a private Tk library
20461 if test x"${ac_cv_c_tkconfig}" = x ; then
20462 for i in \
20463 ../tk \
20464 `ls -dr ../tk[4-9]* 2>/dev/null` \
20465 ../../tk \
20466 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20467 ../../../tk \
20468 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20469 if test -f "$i/${configdir}/tkConfig.sh" ; then
20470 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20471 break
20472 fi
20473 done
20474 fi
20475 # check in a few common install locations
20476 if test x"${ac_cv_c_tkconfig}" = x ; then
20477 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20478 if test -f "$i/tkConfig.sh" ; then
20479 ac_cv_c_tkconfig=`(cd $i; pwd)`
20480 break
20481 fi
20482 done
20483 fi
20484 # check in a few other private locations
20485 if test x"${ac_cv_c_tkconfig}" = x ; then
20486 for i in \
20487 ${srcdir}/../tk \
20488 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20489 if test -f "$i/${configdir}/tkConfig.sh" ; then
20490 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20491 break
20492 fi
20493 done
20494 fi
bec39cab 20495
3fc11d3e
JM
20496fi
20497
20498 if test x"${ac_cv_c_tkconfig}" = x ; then
20499 TKCONFIG="# no Tk configs found"
bec39cab
AC
20500 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20501echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20502 else
20503 no_tk=
20504 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20505 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20506echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20507 fi
20508fi
20509
20510
20511
dd2504ab
JM
20512 # now look for Tcl library stuff
20513
d91670b9 20514 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20515
20516 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20517
3fc11d3e
JM
20518 # If $no_tk is nonempty, then we can't do Tk, and there is no
20519 # point to doing Tcl.
20520 if test -z "${no_tk}"; then
bec39cab 20521
3fc11d3e
JM
20522 if test -f "$TKCONFIG" ; then
20523 . $TKCONFIG
20524 fi
20525
3fc11d3e 20526
3fc11d3e
JM
20527
20528
3fc11d3e 20529
bec39cab
AC
20530
20531
20532
20533
20534
20535
20536
20537
20538
3fc11d3e
JM
20539#
20540# Ok, lets find the tcl source trees so we can use the headers
20541# Warning: transition of version 9 to 10 will break this algorithm
20542# because 10 sorts before 9. We also look for just tcl. We have to
20543# be careful that we don't match stuff like tclX by accident.
20544# the alternative search directory is involked by --with-tclinclude
20545#
20546
20547no_tcl=true
bec39cab
AC
20548echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20549echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20550
3fc11d3e
JM
20551# Check whether --with-tclinclude or --without-tclinclude was given.
20552if test "${with_tclinclude+set}" = set; then
20553 withval="$with_tclinclude"
20554 with_tclinclude=${withval}
bec39cab
AC
20555fi;
20556if test "${ac_cv_c_tclh+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20558else
bec39cab 20559
3fc11d3e
JM
20560# first check to see if --with-tclinclude was specified
20561if test x"${with_tclinclude}" != x ; then
20562 if test -f ${with_tclinclude}/tclInt.h ; then
20563 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20564 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20565 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20566 else
bec39cab
AC
20567 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20568echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20569 { (exit 1); exit 1; }; }
3fc11d3e
JM
20570 fi
20571fi
20572
20573# next check if it came with Tcl configuration file
20574if test x"${ac_cv_c_tclconfig}" = x ; then
20575 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20576 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20577 fi
20578fi
20579
20580# next check in private source directory
20581#
20582# since ls returns lowest version numbers first, reverse its output
20583if test x"${ac_cv_c_tclh}" = x ; then
20584 for i in \
20585 ${srcdir}/../tcl \
20586 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20587 ${srcdir}/../../tcl \
20588 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20589 ${srcdir}/../../../tcl \
20590 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20591 if test -f $i/generic/tclInt.h ; then
20592 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20593 break
20594 fi
20595 done
20596fi
20597# finally check in a few common install locations
20598#
20599# since ls returns lowest version numbers first, reverse its output
20600if test x"${ac_cv_c_tclh}" = x ; then
20601 for i in \
20602 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20603 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20604 /usr/local/src/tcl \
20605 /usr/local/lib/tcl \
20606 ${prefix}/include ; do
20607 if test -f $i/generic/tclInt.h ; then
20608 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20609 break
20610 fi
20611 done
20612fi
20613# see if one is installed
20614if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20615 if test "${ac_cv_header_tclInt_h+set}" = set; then
20616 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20617echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20618if test "${ac_cv_header_tclInt_h+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20620fi
20621echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20622echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20623else
20624 # Is the header compilable?
20625echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20626echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20627cat >conftest.$ac_ext <<_ACEOF
20628/* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h. */
20633$ac_includes_default
20634#include <tclInt.h>
20635_ACEOF
20636rm -f conftest.$ac_objext
20637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20638 (eval $ac_compile) 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag"
20646 || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest.$ac_objext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_header_compiler=yes
20659else
20660 echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663ac_header_compiler=no
20664fi
20665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20667echo "${ECHO_T}$ac_header_compiler" >&6
20668
20669# Is the header present?
20670echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20671echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20672cat >conftest.$ac_ext <<_ACEOF
20673/* confdefs.h. */
20674_ACEOF
20675cat confdefs.h >>conftest.$ac_ext
20676cat >>conftest.$ac_ext <<_ACEOF
20677/* end confdefs.h. */
3fc11d3e 20678#include <tclInt.h>
bec39cab
AC
20679_ACEOF
20680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } >/dev/null; then
20688 if test -s conftest.err; then
20689 ac_cpp_err=$ac_c_preproc_warn_flag
20690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20691 else
20692 ac_cpp_err=
20693 fi
20694else
20695 ac_cpp_err=yes
3fc11d3e 20696fi
bec39cab
AC
20697if test -z "$ac_cpp_err"; then
20698 ac_header_preproc=yes
20699else
20700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703 ac_header_preproc=no
3fc11d3e 20704fi
bec39cab
AC
20705rm -f conftest.err conftest.$ac_ext
20706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20707echo "${ECHO_T}$ac_header_preproc" >&6
20708
20709# So? What about this header?
20710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20711 yes:no: )
20712 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20713echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20715echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20716 ac_header_preproc=yes
20717 ;;
20718 no:yes:* )
20719 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20720echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20722echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20724echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20726echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20728echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20729 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20730echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20731 (
20732 cat <<\_ASBOX
20733## ------------------------------------------ ##
20734## Report this to the AC_PACKAGE_NAME lists. ##
20735## ------------------------------------------ ##
20736_ASBOX
20737 ) |
20738 sed "s/^/$as_me: WARNING: /" >&2
20739 ;;
20740esac
20741echo "$as_me:$LINENO: checking for tclInt.h" >&5
20742echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20743if test "${ac_cv_header_tclInt_h+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745else
20746 ac_cv_header_tclInt_h=$ac_header_preproc
20747fi
20748echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20749echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20750
20751fi
20752if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20753 ac_cv_c_tclh=installed
20754else
bec39cab 20755 ac_cv_c_tclh=""
3fc11d3e
JM
20756fi
20757
bec39cab 20758
3fc11d3e
JM
20759fi
20760
20761fi
20762
20763if test x"${ac_cv_c_tclh}" = x ; then
20764 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20765 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20766echo "$as_me: error: Can't find Tcl private headers" >&2;}
20767 { (exit 1); exit 1; }; }
3fc11d3e
JM
20768fi
20769if test x"${ac_cv_c_tclh}" != x ; then
20770 no_tcl=""
20771 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20772 echo "$as_me:$LINENO: result: is installed" >&5
20773echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20774 TCLHDIR=""
20775 else
bec39cab
AC
20776 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20777echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20778 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20779 TCLHDIR="-I${ac_cv_c_tclh}"
20780 fi
20781fi
20782
20783
20784
bec39cab 20785
3fc11d3e
JM
20786#
20787# Ok, lets find the tk source trees so we can use the headers
20788# If the directory (presumably symlink) named "tk" exists, use that one
20789# in preference to any others. Same logic is used when choosing library
20790# and again with Tcl. The search order is the best place to look first, then in
20791# decreasing significance. The loop breaks if the trigger file is found.
20792# Note the gross little conversion here of srcdir by cd'ing to the found
20793# directory. This converts the path from a relative to an absolute, so
20794# recursive cache variables for the path will work right. We check all
20795# the possible paths in one loop rather than many seperate loops to speed
20796# things up.
20797# the alternative search directory is involked by --with-tkinclude
20798#
20799no_tk=true
bec39cab
AC
20800echo "$as_me:$LINENO: checking for Tk private headers" >&5
20801echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20802
3fc11d3e
JM
20803# Check whether --with-tkinclude or --without-tkinclude was given.
20804if test "${with_tkinclude+set}" = set; then
20805 withval="$with_tkinclude"
20806 with_tkinclude=${withval}
bec39cab
AC
20807fi;
20808if test "${ac_cv_c_tkh+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20810else
bec39cab 20811
3fc11d3e
JM
20812# first check to see if --with-tkinclude was specified
20813if test x"${with_tkinclude}" != x ; then
20814 if test -f ${with_tkinclude}/tk.h ; then
20815 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20816 elif test -f ${with_tkinclude}/generic/tk.h ; then
20817 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20818 else
bec39cab
AC
20819 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20820echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20821 { (exit 1); exit 1; }; }
3fc11d3e
JM
20822 fi
20823fi
20824
20825# next check if it came with Tk configuration file
20826if test x"${ac_cv_c_tkconfig}" = x ; then
20827 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20828 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20829 fi
20830fi
20831
20832# next check in private source directory
20833#
20834# since ls returns lowest version numbers first, reverse its output
20835if test x"${ac_cv_c_tkh}" = x ; then
20836 for i in \
20837 ${srcdir}/../tk \
20838 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20839 ${srcdir}/../../tk \
20840 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20841 ${srcdir}/../../../tk \
20842 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20843 if test -f $i/generic/tk.h ; then
20844 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20845 break
20846 fi
20847 done
20848fi
20849# finally check in a few common install locations
20850#
20851# since ls returns lowest version numbers first, reverse its output
20852if test x"${ac_cv_c_tkh}" = x ; then
20853 for i in \
20854 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20855 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20856 /usr/local/src/tk \
20857 /usr/local/lib/tk \
20858 ${prefix}/include ; do
20859 if test -f $i/generic/tk.h ; then
20860 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20861 break
20862 fi
20863 done
20864fi
20865# see if one is installed
20866if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20867 if test "${ac_cv_header_tk_h+set}" = set; then
20868 echo "$as_me:$LINENO: checking for tk.h" >&5
20869echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20870if test "${ac_cv_header_tk_h+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20872fi
20873echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20874echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20875else
20876 # Is the header compilable?
20877echo "$as_me:$LINENO: checking tk.h usability" >&5
20878echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20879cat >conftest.$ac_ext <<_ACEOF
20880/* confdefs.h. */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h. */
20885$ac_includes_default
3fc11d3e 20886#include <tk.h>
bec39cab
AC
20887_ACEOF
20888rm -f conftest.$ac_objext
20889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20890 (eval $ac_compile) 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try='test -z "$ac_c_werror_flag"
20898 || test ! -s conftest.err'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try='test -s conftest.$ac_objext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_header_compiler=yes
20911else
20912 echo "$as_me: failed program was:" >&5
20913sed 's/^/| /' conftest.$ac_ext >&5
20914
20915ac_header_compiler=no
20916fi
20917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20919echo "${ECHO_T}$ac_header_compiler" >&6
20920
20921# Is the header present?
20922echo "$as_me:$LINENO: checking tk.h presence" >&5
20923echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20924cat >conftest.$ac_ext <<_ACEOF
20925/* confdefs.h. */
20926_ACEOF
20927cat confdefs.h >>conftest.$ac_ext
20928cat >>conftest.$ac_ext <<_ACEOF
20929/* end confdefs.h. */
20930#include <tk.h>
20931_ACEOF
20932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20934 ac_status=$?
20935 grep -v '^ *+' conftest.er1 >conftest.err
20936 rm -f conftest.er1
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } >/dev/null; then
20940 if test -s conftest.err; then
20941 ac_cpp_err=$ac_c_preproc_warn_flag
20942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20943 else
20944 ac_cpp_err=
20945 fi
20946else
20947 ac_cpp_err=yes
3fc11d3e 20948fi
bec39cab
AC
20949if test -z "$ac_cpp_err"; then
20950 ac_header_preproc=yes
20951else
20952 echo "$as_me: failed program was:" >&5
20953sed 's/^/| /' conftest.$ac_ext >&5
20954
20955 ac_header_preproc=no
20956fi
20957rm -f conftest.err conftest.$ac_ext
20958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20959echo "${ECHO_T}$ac_header_preproc" >&6
20960
20961# So? What about this header?
20962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20963 yes:no: )
20964 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20965echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20967echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20968 ac_header_preproc=yes
20969 ;;
20970 no:yes:* )
20971 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20972echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20974echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20976echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20977 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20978echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20979 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20980echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20981 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20982echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20983 (
20984 cat <<\_ASBOX
20985## ------------------------------------------ ##
20986## Report this to the AC_PACKAGE_NAME lists. ##
20987## ------------------------------------------ ##
20988_ASBOX
20989 ) |
20990 sed "s/^/$as_me: WARNING: /" >&2
20991 ;;
20992esac
20993echo "$as_me:$LINENO: checking for tk.h" >&5
20994echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20995if test "${ac_cv_header_tk_h+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20997else
20998 ac_cv_header_tk_h=$ac_header_preproc
20999fi
21000echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21001echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21002
3fc11d3e 21003fi
bec39cab 21004if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
21005 ac_cv_c_tkh=installed
21006else
bec39cab 21007 ac_cv_c_tkh=""
3fc11d3e
JM
21008fi
21009
bec39cab 21010
3fc11d3e
JM
21011fi
21012
21013fi
21014
21015if test x"${ac_cv_c_tkh}" != x ; then
21016 no_tk=""
21017 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
21018 echo "$as_me:$LINENO: result: is installed" >&5
21019echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
21020 TKHDIR=""
21021 else
bec39cab
AC
21022 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
21023echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
21024 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
21025 TKHDIR="-I${ac_cv_c_tkh}"
21026 fi
21027else
21028 TKHDIR="# no Tk directory found"
bec39cab
AC
21029 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21030echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
21031 no_tk=true
21032fi
21033
21034
21035
bec39cab
AC
21036
21037echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21038echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21039if test x"${ac_cv_c_itclh}" = x ; then
21040 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
21041 if test -f $i/generic/itcl.h ; then
21042 ac_cv_c_itclh=`(cd $i/generic; pwd)`
21043 break
21044 fi
21045 done
21046fi
21047if test x"${ac_cv_c_itclh}" = x ; then
21048 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
21049 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21050echo "$as_me: error: Can't find Itcl private headers" >&2;}
21051 { (exit 1); exit 1; }; }
3fc11d3e
JM
21052fi
21053if test x"${ac_cv_c_itclh}" != x ; then
21054 ITCLHDIR="-I${ac_cv_c_itclh}"
21055fi
21056# should always be here
21057# ITCLLIB="../itcl/itcl/unix/libitcl.a"
21058
21059#AC_SUBST(ITCLLIB)
21060
bec39cab
AC
21061
21062echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21063echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21064if test x"${ac_cv_c_itkh}" = x ; then
21065 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
21066 if test -f $i/generic/itk.h ; then
21067 ac_cv_c_itkh=`(cd $i/generic; pwd)`
21068 break
21069 fi
21070 done
21071fi
21072if test x"${ac_cv_c_itkh}" = x ; then
21073 ITKHDIR="# no Itk private headers found"
bec39cab
AC
21074 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21075echo "$as_me: error: Can't find Itk private headers" >&2;}
21076 { (exit 1); exit 1; }; }
3fc11d3e
JM
21077fi
21078if test x"${ac_cv_c_itkh}" != x ; then
21079 ITKHDIR="-I${ac_cv_c_itkh}"
21080fi
21081# should always be here
21082# ITKLIB="../itcl/itk/unix/libitk.a"
21083
21084#AC_SUBST(ITKLIB)
21085
3fc11d3e 21086
dd2504ab
JM
21087
21088 # now look for Tk library stuff
21089
d91670b9 21090 tkdir="../tk/${configdir}/"
dd2504ab
JM
21091
21092 TK_DEPS="${tkdir}${TK_LIB_FILE}"
21093
3fc11d3e
JM
21094 # now look for Itcl library stuff
21095
bec39cab 21096
3fc11d3e
JM
21097#
21098# Ok, lets find the itcl configuration
bec39cab 21099# First, look for one uninstalled.
3fc11d3e
JM
21100# the alternative search directory is invoked by --with-itclconfig
21101#
21102
21103if test x"${no_itcl}" = x ; then
21104 # we reset no_itcl in case something fails here
21105 no_itcl=true
bec39cab
AC
21106
21107# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
21108if test "${with_itclconfig+set}" = set; then
21109 withval="$with_itclconfig"
21110 with_itclconfig=${withval}
bec39cab
AC
21111fi;
21112 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
21113echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
21114 if test "${ac_cv_c_itclconfig+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21116else
bec39cab 21117
3fc11d3e
JM
21118
21119 # First check to see if --with-itclconfig was specified.
21120 if test x"${with_itclconfig}" != x ; then
21121 if test -f "${with_itclconfig}/itclConfig.sh" ; then
21122 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
21123 else
bec39cab
AC
21124 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
21125echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
21126 { (exit 1); exit 1; }; }
3fc11d3e
JM
21127 fi
21128 fi
21129
21130 # then check for a private Itcl library
21131 if test x"${ac_cv_c_itclconfig}" = x ; then
21132 for i in \
21133 ../itcl/itcl \
21134 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21135 ../../itcl \
21136 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21137 ../../../itcl \
21138 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21139 if test -f "$i/itclConfig.sh" ; then
21140 ac_cv_c_itclconfig=`(cd $i; pwd)`
21141 break
21142 fi
21143 done
21144 fi
21145 # check in a few common install locations
21146 if test x"${ac_cv_c_itclconfig}" = x ; then
21147 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21148 if test -f "$i/itclConfig.sh" ; then
21149 ac_cv_c_itclconfig=`(cd $i; pwd)`
21150 break
21151 fi
21152 done
21153 fi
21154 # check in a few other private locations
21155 if test x"${ac_cv_c_itclconfig}" = x ; then
21156 for i in \
21157 ${srcdir}/../itcl/itcl \
21158 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21159 if test -f "$i/itclConfig.sh" ; then
21160 ac_cv_c_itclconfig=`(cd $i; pwd)`
21161 break
21162 fi
21163 done
21164 fi
bec39cab 21165
3fc11d3e
JM
21166fi
21167
21168 if test x"${ac_cv_c_itclconfig}" = x ; then
21169 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
21170 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21171echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
21172 else
21173 no_itcl=
21174 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
21175 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21176echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
21177 fi
21178fi
21179
21180 if test -z "${no_itcl}"; then
bec39cab 21181
3fc11d3e
JM
21182 if test -f "$ITCLCONFIG" ; then
21183 . $ITCLCONFIG
21184 fi
21185
3fc11d3e 21186
3fc11d3e
JM
21187
21188
bec39cab
AC
21189
21190
21191
21192
21193
21194
21195
3fc11d3e
JM
21196
21197 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 21198 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
21199 fi
21200
bec39cab 21201
3fc11d3e 21202 # now look for Itk library stuff
bec39cab 21203
3fc11d3e
JM
21204#
21205# Ok, lets find the itk configuration
bec39cab 21206# First, look for one uninstalled.
3fc11d3e
JM
21207# the alternative search directory is invoked by --with-itkconfig
21208#
21209
21210if test x"${no_itk}" = x ; then
21211 # we reset no_itk in case something fails here
21212 no_itk=true
bec39cab
AC
21213
21214# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
21215if test "${with_itkconfig+set}" = set; then
21216 withval="$with_itkconfig"
21217 with_itkconfig=${withval}
bec39cab
AC
21218fi;
21219 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21220echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21221 if test "${ac_cv_c_itkconfig+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21223else
bec39cab 21224
3fc11d3e
JM
21225
21226 # First check to see if --with-itkconfig was specified.
21227 if test x"${with_itkconfig}" != x ; then
21228 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21229 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21230 else
bec39cab
AC
21231 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21232echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21233 { (exit 1); exit 1; }; }
3fc11d3e
JM
21234 fi
21235 fi
21236
21237 # then check for a private Itk library
21238 if test x"${ac_cv_c_itkconfig}" = x ; then
21239 for i in \
21240 ../itcl/itk \
21241 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21242 ../../itk \
21243 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21244 ../../../itk \
21245 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21246 if test -f "$i/itkConfig.sh" ; then
21247 ac_cv_c_itkconfig=`(cd $i; pwd)`
21248 break
21249 fi
21250 done
21251 fi
21252 # check in a few common install locations
21253 if test x"${ac_cv_c_itkconfig}" = x ; then
21254 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21255 if test -f "$i/itkConfig.sh" ; then
21256 ac_cv_c_itkconfig=`(cd $i; pwd)`
21257 break
21258 fi
21259 done
21260 fi
21261 # check in a few other private locations
21262 if test x"${ac_cv_c_itkconfig}" = x ; then
21263 for i in \
21264 ${srcdir}/../itcl/itk \
21265 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21266 if test -f "$i/itkConfig.sh" ; then
21267 ac_cv_c_itkconfig=`(cd $i; pwd)`
21268 break
21269 fi
21270 done
21271 fi
bec39cab 21272
3fc11d3e
JM
21273fi
21274
21275 if test x"${ac_cv_c_itkconfig}" = x ; then
21276 ITKCONFIG="# no Itk configs found"
bec39cab
AC
21277 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21278echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
21279 else
21280 no_itk=
21281 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
21282 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21283echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
21284 fi
21285fi
21286
21287
bec39cab
AC
21288 if test -z "${no_itcl}"; then
21289
21290 if test -f "$ITKCONFIG" ; then
21291 . $ITKCONFIG
21292 fi
21293
21294
21295
21296
21297
21298
3fc11d3e 21299
3fc11d3e 21300
3fc11d3e
JM
21301
21302
3fc11d3e
JM
21303
21304
3fc11d3e 21305 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 21306 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
21307 fi
21308
4226a5a5 21309 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
21310
21311 # Include some libraries that Tcl and Tk want.
b2a1bd4f 21312 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
21313 # Yes, the ordering seems wrong here. But it isn't.
21314 # TK_LIBS is the list of libraries that need to be linked
21315 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21316 # were in LIBS then any link tests after this point would
21317 # try to include things like `$(LIBGUI)', which wouldn't work.
21318 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
21319
21320 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21321 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21322 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
21323 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21324 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21325 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21326 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
21327
21328 if test x$gdb_cv_os_cygwin = xyes; then
21329 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21330 WIN32LDAPP="-Wl,--subsystem,console"
21331 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21332 fi
21333 fi
21334 fi
ffc6a242 21335
bec39cab
AC
21336
21337
21338subdirs="$subdirs gdbtk"
3ace7edb 21339
3fc11d3e
JM
21340fi
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
dd2504ab 21354
bec39cab
AC
21355echo "$as_me:$LINENO: checking for X" >&5
21356echo $ECHO_N "checking for X... $ECHO_C" >&6
21357
c906108c
SS
21358
21359# Check whether --with-x or --without-x was given.
21360if test "${with_x+set}" = set; then
21361 withval="$with_x"
c906108c 21362
bec39cab 21363fi;
c906108c
SS
21364# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21365if test "x$with_x" = xno; then
21366 # The user explicitly disabled X.
21367 have_x=disabled
21368else
21369 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21370 # Both variables are already set.
21371 have_x=yes
21372 else
bec39cab
AC
21373 if test "${ac_cv_have_x+set}" = set; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21375else
21376 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
21377ac_x_includes=no ac_x_libraries=no
21378rm -fr conftest.dir
21379if mkdir conftest.dir; then
21380 cd conftest.dir
c906108c 21381 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 21382 cat >Imakefile <<'_ACEOF'
c906108c
SS
21383acfindx:
21384 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 21385_ACEOF
c906108c
SS
21386 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21387 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21388 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21389 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21390 for ac_extension in a so sl; do
21391 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
21392 test -f $ac_im_libdir/libX11.$ac_extension; then
21393 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
21394 fi
21395 done
21396 # Screen out bogus values from the imake configuration. They are
21397 # bogus both because they are the default anyway, and because
21398 # using them would break gcc on systems where it needs fixed includes.
bec39cab 21399 case $ac_im_incroot in
c906108c 21400 /usr/include) ;;
bec39cab 21401 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 21402 esac
bec39cab 21403 case $ac_im_usrlibdir in
c906108c 21404 /usr/lib | /lib) ;;
bec39cab 21405 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
21406 esac
21407 fi
21408 cd ..
bec39cab 21409 rm -fr conftest.dir
c906108c
SS
21410fi
21411
bec39cab
AC
21412# Standard set of common directories for X headers.
21413# Check X11 before X11Rn because it is often a symlink to the current release.
21414ac_x_header_dirs='
21415/usr/X11/include
21416/usr/X11R6/include
21417/usr/X11R5/include
21418/usr/X11R4/include
21419
21420/usr/include/X11
21421/usr/include/X11R6
21422/usr/include/X11R5
21423/usr/include/X11R4
21424
21425/usr/local/X11/include
21426/usr/local/X11R6/include
21427/usr/local/X11R5/include
21428/usr/local/X11R4/include
21429
21430/usr/local/include/X11
21431/usr/local/include/X11R6
21432/usr/local/include/X11R5
21433/usr/local/include/X11R4
21434
21435/usr/X386/include
21436/usr/x386/include
21437/usr/XFree86/include/X11
21438
21439/usr/include
21440/usr/local/include
21441/usr/unsupported/include
21442/usr/athena/include
21443/usr/local/x11r5/include
21444/usr/lpp/Xamples/include
21445
21446/usr/openwin/include
21447/usr/openwin/share/include'
21448
21449if test "$ac_x_includes" = no; then
21450 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 21451 # First, try using that file with no special directory specified.
bec39cab
AC
21452 cat >conftest.$ac_ext <<_ACEOF
21453/* confdefs.h. */
21454_ACEOF
21455cat confdefs.h >>conftest.$ac_ext
21456cat >>conftest.$ac_ext <<_ACEOF
21457/* end confdefs.h. */
21458#include <X11/Intrinsic.h>
21459_ACEOF
21460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } >/dev/null; then
21468 if test -s conftest.err; then
21469 ac_cpp_err=$ac_c_preproc_warn_flag
21470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21471 else
21472 ac_cpp_err=
21473 fi
21474else
21475 ac_cpp_err=yes
21476fi
21477if test -z "$ac_cpp_err"; then
c906108c
SS
21478 # We can compile using X headers with no special include directory.
21479ac_x_includes=
21480else
bec39cab
AC
21481 echo "$as_me: failed program was:" >&5
21482sed 's/^/| /' conftest.$ac_ext >&5
21483
21484 for ac_dir in $ac_x_header_dirs; do
21485 if test -r "$ac_dir/X11/Intrinsic.h"; then
21486 ac_x_includes=$ac_dir
21487 break
21488 fi
21489done
c906108c 21490fi
bec39cab
AC
21491rm -f conftest.err conftest.$ac_ext
21492fi # $ac_x_includes = no
c906108c 21493
bec39cab 21494if test "$ac_x_libraries" = no; then
c906108c 21495 # Check for the libraries.
c906108c
SS
21496 # See if we find them without any special options.
21497 # Don't add to $LIBS permanently.
bec39cab
AC
21498 ac_save_LIBS=$LIBS
21499 LIBS="-lXt $LIBS"
21500 cat >conftest.$ac_ext <<_ACEOF
21501/* confdefs.h. */
21502_ACEOF
21503cat confdefs.h >>conftest.$ac_ext
21504cat >>conftest.$ac_ext <<_ACEOF
21505/* end confdefs.h. */
21506#include <X11/Intrinsic.h>
21507int
21508main ()
21509{
21510XtMalloc (0)
21511 ;
21512 return 0;
21513}
21514_ACEOF
21515rm -f conftest.$ac_objext conftest$ac_exeext
21516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21517 (eval $ac_link) 2>conftest.er1
21518 ac_status=$?
21519 grep -v '^ *+' conftest.er1 >conftest.err
21520 rm -f conftest.er1
21521 cat conftest.err >&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); } &&
21524 { ac_try='test -z "$ac_c_werror_flag"
21525 || test ! -s conftest.err'
21526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527 (eval $ac_try) 2>&5
21528 ac_status=$?
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); }; } &&
21531 { ac_try='test -s conftest$ac_exeext'
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21534 ac_status=$?
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; }; then
21537 LIBS=$ac_save_LIBS
c906108c
SS
21538# We can link X programs with no special library path.
21539ac_x_libraries=
21540else
bec39cab
AC
21541 echo "$as_me: failed program was:" >&5
21542sed 's/^/| /' conftest.$ac_ext >&5
21543
21544LIBS=$ac_save_LIBS
21545for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21546do
bec39cab 21547 # Don't even attempt the hair of trying to link an X program!
c906108c 21548 for ac_extension in a so sl; do
bec39cab 21549 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
21550 ac_x_libraries=$ac_dir
21551 break 2
21552 fi
21553 done
21554done
21555fi
bec39cab
AC
21556rm -f conftest.err conftest.$ac_objext \
21557 conftest$ac_exeext conftest.$ac_ext
21558fi # $ac_x_libraries = no
c906108c 21559
bec39cab 21560if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21561 # Didn't find X anywhere. Cache the known absence of X.
21562 ac_cv_have_x="have_x=no"
21563else
21564 # Record where we found X for the cache.
21565 ac_cv_have_x="have_x=yes \
bec39cab 21566 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21567fi
21568fi
bec39cab 21569
c906108c
SS
21570 fi
21571 eval "$ac_cv_have_x"
21572fi # $with_x != no
21573
21574if test "$have_x" != yes; then
bec39cab
AC
21575 echo "$as_me:$LINENO: result: $have_x" >&5
21576echo "${ECHO_T}$have_x" >&6
c906108c
SS
21577 no_x=yes
21578else
21579 # If each of the values was on the command line, it overrides each guess.
21580 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21581 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21582 # Update the cache value to reflect the command line values.
21583 ac_cv_have_x="have_x=yes \
21584 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bec39cab
AC
21585 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21586echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
21587fi
21588
21589
9cc52bde
MK
21590# Check whether we should enable the TUI, but only do so if we really
21591# can.
21592if test x"$enable_tui" = xyes; then
21593 if test -d $srcdir/tui; then
21594 if test "$ac_cv_search_waddstr" != no; then
21595 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21596 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21597 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21598 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21599 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21600 CONFIG_ALL="${CONFIG_ALL} all-tui"
21601 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21602 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21603 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21604 else
bec39cab
AC
21605 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21606echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21607 fi
21608 fi
21609fi
21610
bec39cab
AC
21611# Unlike the sim directory, whether a simulator is linked is controlled by
21612# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21613# This code just checks for a few cases where we'd like to ignore those
21614# definitions, even when they're present in the '.mt' file. These cases
21615# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21616# not part of the source tree.
7a292a7a
SS
21617#
21618# Check whether --enable-sim or --disable-sim was given.
21619if test "${enable_sim+set}" = set; then
21620 enableval="$enable_sim"
21621 echo "enable_sim = $enable_sim";
21622 echo "enableval = ${enableval}";
21623 case "${enableval}" in
21624 yes) ignore_sim=false ;;
21625 no) ignore_sim=true ;;
21626 *) ignore_sim=false ;;
21627 esac
21628else
21629 ignore_sim=false
bec39cab 21630fi;
7a292a7a
SS
21631
21632if test ! -d "${srcdir}/../sim"; then
21633 ignore_sim=true
21634fi
21635
21636if test "${ignore_sim}" = "true"; then
21637 IGNORE_SIM="SIM="
21638 IGNORE_SIM_OBS="SIM_OBS="
21639else
21640 IGNORE_SIM=""
21641 IGNORE_SIM_OBS=""
60ca704f
SE
21642
21643cat >>confdefs.h <<\_ACEOF
7a292a7a 21644#define WITH_SIM 1
bec39cab 21645_ACEOF
7a292a7a
SS
21646
21647fi
21648
21649
21650
c906108c
SS
21651
21652
21653
21654
21655
21656
dfcd3bfb 21657
e56ac5c3
AC
21658
21659
b3a90332
AC
21660
21661
c35f4ffc 21662# List of host floatformats.
bec39cab
AC
21663
21664cat >>confdefs.h <<_ACEOF
c35f4ffc 21665#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21666_ACEOF
c35f4ffc 21667
bec39cab
AC
21668
21669cat >>confdefs.h <<_ACEOF
c35f4ffc 21670#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21671_ACEOF
21672
c35f4ffc 21673
bec39cab 21674cat >>confdefs.h <<_ACEOF
c35f4ffc 21675#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21676_ACEOF
c35f4ffc
AC
21677
21678
c906108c
SS
21679# target_subdir is used by the testsuite to find the target libraries.
21680target_subdir=
21681if test "${host}" != "${target}"; then
21682 target_subdir="${target_alias}/"
21683fi
21684
21685
21686frags=
0dad8a66
MK
21687if test "${target}" = "${host}"; then
21688 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21689 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21690 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21691echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21692 { (exit 1); exit 1; }; }
0dad8a66
MK
21693 fi
21694 frags="$frags $host_makefile_frag"
21695else
21696 host_makefile_frag=/dev/null
c906108c 21697fi
c906108c
SS
21698
21699target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21700if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21701 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21702echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21703 { (exit 1); exit 1; }; }
c906108c
SS
21704fi
21705frags="$frags $target_makefile_frag"
21706
21707
21708
21709
21710
21711hostfile=`sed -n '
21712s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21713' ${host_makefile_frag}`
21714
21715targetfile=`sed -n '
2c0fc042 21716s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21717' ${target_makefile_frag}`
21718
c906108c 21719if test "${target}" = "${host}"; then
a85f51e7
DJ
21720# We pick this up from the host configuration file (.mh) because we
21721# do not have a native configuration Makefile fragment.
c906108c
SS
21722nativefile=`sed -n '
21723s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21724' ${host_makefile_frag}`
c906108c
SS
21725fi
21726
21727
b00a8037 21728if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21729
21730cat >>confdefs.h <<_ACEOF
b00a8037 21731#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21732_ACEOF
b00a8037
DJ
21733
21734fi
21735
8dcde887
MK
21736# Enable multi-ice-gdb-server.
21737# Check whether --enable-multi-ice or --disable-multi-ice was given.
21738if test "${enable_multi_ice+set}" = set; then
21739 enableval="$enable_multi_ice"
21740 case $enableval in
21741 yes | no)
21742 ;;
bec39cab
AC
21743 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21744echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21745 { (exit 1); exit 1; }; } ;;
8dcde887 21746 esac
bec39cab 21747fi;
8dcde887 21748if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21749
21750
21751subdirs="$subdirs multi-ice"
3ace7edb 21752
a85f51e7
DJ
21753fi
21754
8dcde887
MK
21755# We only build gdbserver automatically if host and target are the same.
21756if test "x$target" = "x$host"; then
bec39cab
AC
21757 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21758echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21759 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21760 echo "$as_me:$LINENO: result: yes" >&5
21761echo "${ECHO_T}yes" >&6
21762
21763
21764subdirs="$subdirs gdbserver"
3ace7edb 21765
8dcde887 21766 else
bec39cab
AC
21767 echo "$as_me:$LINENO: result: no" >&5
21768echo "${ECHO_T}no" >&6
8dcde887
MK
21769 fi
21770fi
21771
065a1afc
JB
21772# We configure the nlm subdirectory on netware targets, as instructed
21773# by configure.tgt.
21774if test "x$build_nlm" = xyes; then
21775
21776
21777subdirs="$subdirs nlm"
21778
21779fi
21780
2c0fc042
AC
21781# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21782# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21783# to an empty version.
c906108c
SS
21784
21785files=
21786links=
5a2402b8 21787
c906108c 21788rm -f xm.h
5a2402b8 21789xm_h=""
c906108c 21790if test "${hostfile}" != ""; then
5a2402b8 21791 xm_h=xm.h
0f475e27
AC
21792 case "${hostfile}" in
21793 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21794 * ) GDB_XM_FILE="${hostfile}"
21795 esac
5a2402b8
AC
21796 files="${files} ${GDB_XM_FILE}"
21797 links="${links} xm.h"
60ca704f
SE
21798
21799cat >>confdefs.h <<_ACEOF
b78960be 21800#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21801_ACEOF
5a2402b8 21802
c906108c 21803fi
5a2402b8
AC
21804
21805
c906108c 21806rm -f tm.h
5a2402b8 21807tm_h=""
c906108c 21808if test "${targetfile}" != ""; then
5a2402b8 21809 tm_h=tm.h
0f475e27 21810 case "${targetfile}" in
b8c4aece 21811 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21812 * ) GDB_TM_FILE="${targetfile}"
21813 esac
5a2402b8
AC
21814 files="${files} ${GDB_TM_FILE}"
21815 links="${links} tm.h"
60ca704f
SE
21816
21817cat >>confdefs.h <<_ACEOF
b78960be 21818#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21819_ACEOF
5a2402b8 21820
c906108c 21821fi
5a2402b8
AC
21822
21823
c906108c 21824rm -f nm.h
5a2402b8 21825nm_h=""
c906108c 21826if test "${nativefile}" != ""; then
5a2402b8 21827 nm_h=nm.h
0f475e27
AC
21828 case "${nativefile}" in
21829 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21830 * ) GDB_NM_FILE="${nativefile}"
21831 esac
5a2402b8
AC
21832 files="${files} ${GDB_NM_FILE}"
21833 links="${links} nm.h"
60ca704f
SE
21834
21835cat >>confdefs.h <<_ACEOF
b78960be 21836#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21837_ACEOF
5a2402b8 21838
c906108c 21839fi
5a2402b8
AC
21840
21841
bec39cab
AC
21842ac_sources="$files"
21843ac_dests="$links"
21844while test -n "$ac_sources"; do
21845 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21846 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21847 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21848done
21849 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21850
21851
c906108c
SS
21852
21853
c906108c 21854
c906108c 21855
bec39cab
AC
21856cat >>confdefs.h <<\_ACEOF
21857#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21858_ACEOF
c906108c 21859
234b45d4 21860
234b45d4
KB
21861
21862
21863
bec39cab 21864# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21865if test "${with_libiconv_prefix+set}" = set; then
21866 withval="$with_libiconv_prefix"
bec39cab 21867
234b45d4
KB
21868 for dir in `echo "$withval" | tr : ' '`; do
21869 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21870 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21871 done
234b45d4 21872
bec39cab 21873fi;
234b45d4 21874
bec39cab
AC
21875 echo "$as_me:$LINENO: checking for iconv" >&5
21876echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21877if test "${am_cv_func_iconv+set}" = set; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21879else
bec39cab 21880
234b45d4
KB
21881 am_cv_func_iconv="no, consider installing GNU libiconv"
21882 am_cv_lib_iconv=no
bec39cab
AC
21883 cat >conftest.$ac_ext <<_ACEOF
21884/* confdefs.h. */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h. */
234b45d4
KB
21889#include <stdlib.h>
21890#include <iconv.h>
bec39cab
AC
21891int
21892main ()
21893{
234b45d4
KB
21894iconv_t cd = iconv_open("","");
21895 iconv(cd,NULL,NULL,NULL,NULL);
21896 iconv_close(cd);
bec39cab
AC
21897 ;
21898 return 0;
21899}
21900_ACEOF
21901rm -f conftest.$ac_objext conftest$ac_exeext
21902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21903 (eval $ac_link) 2>conftest.er1
21904 ac_status=$?
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
21910 { ac_try='test -z "$ac_c_werror_flag"
21911 || test ! -s conftest.err'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try='test -s conftest$ac_exeext'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
234b45d4
KB
21923 am_cv_func_iconv=yes
21924else
bec39cab
AC
21925 echo "$as_me: failed program was:" >&5
21926sed 's/^/| /' conftest.$ac_ext >&5
21927
234b45d4 21928fi
bec39cab
AC
21929rm -f conftest.err conftest.$ac_objext \
21930 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21931 if test "$am_cv_func_iconv" != yes; then
21932 am_save_LIBS="$LIBS"
21933 LIBS="$LIBS -liconv"
bec39cab
AC
21934 cat >conftest.$ac_ext <<_ACEOF
21935/* confdefs.h. */
21936_ACEOF
21937cat confdefs.h >>conftest.$ac_ext
21938cat >>conftest.$ac_ext <<_ACEOF
21939/* end confdefs.h. */
234b45d4
KB
21940#include <stdlib.h>
21941#include <iconv.h>
bec39cab
AC
21942int
21943main ()
21944{
234b45d4
KB
21945iconv_t cd = iconv_open("","");
21946 iconv(cd,NULL,NULL,NULL,NULL);
21947 iconv_close(cd);
bec39cab
AC
21948 ;
21949 return 0;
21950}
21951_ACEOF
21952rm -f conftest.$ac_objext conftest$ac_exeext
21953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21954 (eval $ac_link) 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
21961 { ac_try='test -z "$ac_c_werror_flag"
21962 || test ! -s conftest.err'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; } &&
21968 { ac_try='test -s conftest$ac_exeext'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }; then
234b45d4
KB
21974 am_cv_lib_iconv=yes
21975 am_cv_func_iconv=yes
21976else
bec39cab
AC
21977 echo "$as_me: failed program was:" >&5
21978sed 's/^/| /' conftest.$ac_ext >&5
21979
234b45d4 21980fi
bec39cab
AC
21981rm -f conftest.err conftest.$ac_objext \
21982 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21983 LIBS="$am_save_LIBS"
21984 fi
bec39cab
AC
21985
21986fi
21987echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21988echo "${ECHO_T}$am_cv_func_iconv" >&6
21989 if test "$am_cv_func_iconv" = yes; then
21990
21991cat >>confdefs.h <<\_ACEOF
21992#define HAVE_ICONV 1
21993_ACEOF
21994
21995 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21996echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21997 if test "${am_cv_proto_iconv+set}" = set; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
21999else
22000
22001 cat >conftest.$ac_ext <<_ACEOF
22002/* confdefs.h. */
22003_ACEOF
22004cat confdefs.h >>conftest.$ac_ext
22005cat >>conftest.$ac_ext <<_ACEOF
22006/* end confdefs.h. */
22007
22008#include <stdlib.h>
22009#include <iconv.h>
22010extern
22011#ifdef __cplusplus
22012"C"
22013#endif
22014#if defined(__STDC__) || defined(__cplusplus)
22015size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22016#else
22017size_t iconv();
22018#endif
22019
22020int
22021main ()
22022{
22023
22024 ;
22025 return 0;
22026}
22027_ACEOF
22028rm -f conftest.$ac_objext
22029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22030 (eval $ac_compile) 2>conftest.er1
22031 ac_status=$?
22032 grep -v '^ *+' conftest.er1 >conftest.err
22033 rm -f conftest.er1
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } &&
22037 { ac_try='test -z "$ac_c_werror_flag"
22038 || test ! -s conftest.err'
22039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040 (eval $ac_try) 2>&5
22041 ac_status=$?
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; } &&
22044 { ac_try='test -s conftest.$ac_objext'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; }; then
22050 am_cv_proto_iconv_arg1=""
22051else
22052 echo "$as_me: failed program was:" >&5
22053sed 's/^/| /' conftest.$ac_ext >&5
22054
22055am_cv_proto_iconv_arg1="const"
22056fi
22057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22058 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);"
22059fi
22060
22061 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22062 echo "$as_me:$LINENO: result: ${ac_t:-
22063 }$am_cv_proto_iconv" >&5
22064echo "${ECHO_T}${ac_t:-
22065 }$am_cv_proto_iconv" >&6
22066
22067cat >>confdefs.h <<_ACEOF
22068#define ICONV_CONST $am_cv_proto_iconv_arg1
22069_ACEOF
22070
22071 fi
22072 LIBICONV=
22073 if test "$am_cv_lib_iconv" = yes; then
22074 LIBICONV="-liconv"
22075 fi
22076
22077
22078
22079 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
22080 ac_config_commands="$ac_config_commands default"
22081cat >confcache <<\_ACEOF
22082# This file is a shell script that caches the results of configure
22083# tests run on this system so they can be shared between configure
22084# scripts and configure runs, see configure's option --config-cache.
22085# It is not useful on other systems. If it contains results you don't
22086# want to keep, you may remove or edit it.
22087#
22088# config.status only pays attention to the cache file if you give it
22089# the --recheck option to rerun configure.
22090#
22091# `ac_cv_env_foo' variables (set or unset) will be overridden when
22092# loading this file, other *unset* `ac_cv_foo' will be assigned the
22093# following values.
22094
22095_ACEOF
22096
22097# The following way of writing the cache mishandles newlines in values,
22098# but we know of no workaround that is simple, portable, and efficient.
22099# So, don't put newlines in cache variables' values.
22100# Ultrix sh set writes to stderr and can't be redirected directly,
22101# and sets the high bit in the cache file unless we assign to the vars.
22102{
22103 (set) 2>&1 |
22104 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22105 *ac_space=\ *)
22106 # `set' does not quote correctly, so add quotes (double-quote
22107 # substitution turns \\\\ into \\, and sed turns \\ into \).
22108 sed -n \
22109 "s/'/'\\\\''/g;
22110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22111 ;;
22112 *)
22113 # `set' quotes correctly as required by POSIX, so do not add quotes.
22114 sed -n \
22115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22116 ;;
22117 esac;
22118} |
22119 sed '
22120 t clear
22121 : clear
22122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22123 t end
22124 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22125 : end' >>confcache
22126if diff $cache_file confcache >/dev/null 2>&1; then :; else
22127 if test -w $cache_file; then
22128 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22129 cat confcache >$cache_file
22130 else
22131 echo "not updating unwritable cache $cache_file"
22132 fi
22133fi
22134rm -f confcache
22135
22136test "x$prefix" = xNONE && prefix=$ac_default_prefix
22137# Let make expand exec_prefix.
22138test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22139
22140# VPATH may cause trouble with some makes, so we remove $(srcdir),
22141# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22142# trailing colons and then remove the whole line if VPATH becomes empty
22143# (actually we leave an empty line to preserve line numbers).
22144if test "x$srcdir" = x.; then
22145 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22146s/:*\$(srcdir):*/:/;
22147s/:*\${srcdir}:*/:/;
22148s/:*@srcdir@:*/:/;
22149s/^\([^=]*=[ ]*\):*/\1/;
22150s/:*$//;
22151s/^[^=]*=[ ]*$//;
22152}'
22153fi
22154
22155DEFS=-DHAVE_CONFIG_H
22156
22157ac_libobjs=
22158ac_ltlibobjs=
22159for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22160 # 1. Remove the extension, and $U if already installed.
22161 ac_i=`echo "$ac_i" |
22162 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22163 # 2. Add them.
22164 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22165 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22166done
22167LIBOBJS=$ac_libobjs
22168
22169LTLIBOBJS=$ac_ltlibobjs
22170
22171
85981d60
AC
22172if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22173 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22174Usually this means the macro was only invoked conditionally." >&5
22175echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22176Usually this means the macro was only invoked conditionally." >&2;}
22177 { (exit 1); exit 1; }; }
22178fi
bec39cab
AC
22179
22180: ${CONFIG_STATUS=./config.status}
22181ac_clean_files_save=$ac_clean_files
22182ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22183{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22184echo "$as_me: creating $CONFIG_STATUS" >&6;}
22185cat >$CONFIG_STATUS <<_ACEOF
22186#! $SHELL
22187# Generated by $as_me.
22188# Run this file to recreate the current configuration.
22189# Compiler output produced by configure, useful for debugging
22190# configure, is in config.log if it exists.
22191
22192debug=false
22193ac_cs_recheck=false
22194ac_cs_silent=false
22195SHELL=\${CONFIG_SHELL-$SHELL}
22196_ACEOF
22197
22198cat >>$CONFIG_STATUS <<\_ACEOF
22199## --------------------- ##
22200## M4sh Initialization. ##
22201## --------------------- ##
22202
22203# Be Bourne compatible
22204if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22205 emulate sh
22206 NULLCMD=:
22207 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22208 # is contrary to our usage. Disable this feature.
22209 alias -g '${1+"$@"}'='"$@"'
22210elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22211 set -o posix
22212fi
22213DUALCASE=1; export DUALCASE # for MKS sh
22214
22215# Support unset when possible.
22216if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22217 as_unset=unset
22218else
22219 as_unset=false
22220fi
22221
22222
22223# Work around bugs in pre-3.0 UWIN ksh.
22224$as_unset ENV MAIL MAILPATH
22225PS1='$ '
22226PS2='> '
22227PS4='+ '
22228
22229# NLS nuisances.
22230for as_var in \
22231 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22232 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22233 LC_TELEPHONE LC_TIME
22234do
22235 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22236 eval $as_var=C; export $as_var
22237 else
22238 $as_unset $as_var
22239 fi
22240done
22241
22242# Required to use basename.
22243if expr a : '\(a\)' >/dev/null 2>&1; then
22244 as_expr=expr
22245else
22246 as_expr=false
22247fi
22248
22249if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22250 as_basename=basename
22251else
22252 as_basename=false
22253fi
22254
22255
22256# Name of the executable.
22257as_me=`$as_basename "$0" ||
22258$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22259 X"$0" : 'X\(//\)$' \| \
22260 X"$0" : 'X\(/\)$' \| \
22261 . : '\(.\)' 2>/dev/null ||
22262echo X/"$0" |
22263 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22264 /^X\/\(\/\/\)$/{ s//\1/; q; }
22265 /^X\/\(\/\).*/{ s//\1/; q; }
22266 s/.*/./; q'`
22267
22268
22269# PATH needs CR, and LINENO needs CR and PATH.
22270# Avoid depending upon Character Ranges.
22271as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22272as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22273as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22274as_cr_digits='0123456789'
22275as_cr_alnum=$as_cr_Letters$as_cr_digits
22276
22277# The user is always right.
22278if test "${PATH_SEPARATOR+set}" != set; then
22279 echo "#! /bin/sh" >conf$$.sh
22280 echo "exit 0" >>conf$$.sh
22281 chmod +x conf$$.sh
22282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22283 PATH_SEPARATOR=';'
22284 else
22285 PATH_SEPARATOR=:
22286 fi
22287 rm -f conf$$.sh
22288fi
22289
22290
22291 as_lineno_1=$LINENO
22292 as_lineno_2=$LINENO
22293 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22294 test "x$as_lineno_1" != "x$as_lineno_2" &&
22295 test "x$as_lineno_3" = "x$as_lineno_2" || {
22296 # Find who we are. Look in the path if we contain no path at all
22297 # relative or not.
22298 case $0 in
22299 *[\\/]* ) as_myself=$0 ;;
22300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22301for as_dir in $PATH
22302do
22303 IFS=$as_save_IFS
22304 test -z "$as_dir" && as_dir=.
22305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22306done
22307
22308 ;;
22309 esac
22310 # We did not find ourselves, most probably we were run as `sh COMMAND'
22311 # in which case we are not to be found in the path.
22312 if test "x$as_myself" = x; then
22313 as_myself=$0
22314 fi
22315 if test ! -f "$as_myself"; then
22316 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22317echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22318 { (exit 1); exit 1; }; }
22319 fi
22320 case $CONFIG_SHELL in
22321 '')
22322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22323for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22324do
22325 IFS=$as_save_IFS
22326 test -z "$as_dir" && as_dir=.
22327 for as_base in sh bash ksh sh5; do
22328 case $as_dir in
22329 /*)
22330 if ("$as_dir/$as_base" -c '
22331 as_lineno_1=$LINENO
22332 as_lineno_2=$LINENO
22333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22334 test "x$as_lineno_1" != "x$as_lineno_2" &&
22335 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22336 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22337 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22338 CONFIG_SHELL=$as_dir/$as_base
22339 export CONFIG_SHELL
22340 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22341 fi;;
22342 esac
22343 done
22344done
22345;;
22346 esac
22347
22348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22349 # uniformly replaced by the line number. The first 'sed' inserts a
22350 # line-number line before each line; the second 'sed' does the real
22351 # work. The second script uses 'N' to pair each line-number line
22352 # with the numbered line, and appends trailing '-' during
22353 # substitution so that $LINENO is not a special case at line end.
22354 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22355 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22356 sed '=' <$as_myself |
22357 sed '
22358 N
22359 s,$,-,
22360 : loop
22361 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22362 t loop
22363 s,-$,,
22364 s,^['$as_cr_digits']*\n,,
22365 ' >$as_me.lineno &&
22366 chmod +x $as_me.lineno ||
22367 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22368echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22369 { (exit 1); exit 1; }; }
22370
22371 # Don't try to exec as it changes $[0], causing all sort of problems
22372 # (the dirname of $[0] is not the place where we might find the
22373 # original and so on. Autoconf is especially sensible to this).
22374 . ./$as_me.lineno
22375 # Exit status is that of the last command.
22376 exit
22377}
22378
22379
22380case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22381 *c*,-n*) ECHO_N= ECHO_C='
22382' ECHO_T=' ' ;;
22383 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22384 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22385esac
22386
22387if expr a : '\(a\)' >/dev/null 2>&1; then
22388 as_expr=expr
22389else
22390 as_expr=false
22391fi
22392
22393rm -f conf$$ conf$$.exe conf$$.file
22394echo >conf$$.file
22395if ln -s conf$$.file conf$$ 2>/dev/null; then
22396 # We could just check for DJGPP; but this test a) works b) is more generic
22397 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22398 if test -f conf$$.exe; then
22399 # Don't use ln at all; we don't have any links
22400 as_ln_s='cp -p'
22401 else
22402 as_ln_s='ln -s'
22403 fi
22404elif ln conf$$.file conf$$ 2>/dev/null; then
22405 as_ln_s=ln
22406else
22407 as_ln_s='cp -p'
22408fi
22409rm -f conf$$ conf$$.exe conf$$.file
22410
22411if mkdir -p . 2>/dev/null; then
22412 as_mkdir_p=:
22413else
22414 test -d ./-p && rmdir ./-p
22415 as_mkdir_p=false
22416fi
22417
22418as_executable_p="test -f"
22419
22420# Sed expression to map a string onto a valid CPP name.
22421as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22422
22423# Sed expression to map a string onto a valid variable name.
22424as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22425
22426
22427# IFS
22428# We need space, tab and new line, in precisely that order.
22429as_nl='
22430'
22431IFS=" $as_nl"
22432
22433# CDPATH.
22434$as_unset CDPATH
22435
22436exec 6>&1
22437
22438# Open the log real soon, to keep \$[0] and so on meaningful, and to
22439# report actual input values of CONFIG_FILES etc. instead of their
22440# values after options handling. Logging --version etc. is OK.
22441exec 5>>config.log
22442{
22443 echo
22444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22445## Running $as_me. ##
22446_ASBOX
22447} >&5
22448cat >&5 <<_CSEOF
22449
22450This file was extended by $as_me, which was
22451generated by GNU Autoconf 2.59. Invocation command line was
22452
22453 CONFIG_FILES = $CONFIG_FILES
22454 CONFIG_HEADERS = $CONFIG_HEADERS
22455 CONFIG_LINKS = $CONFIG_LINKS
22456 CONFIG_COMMANDS = $CONFIG_COMMANDS
22457 $ $0 $@
22458
22459_CSEOF
22460echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22461echo >&5
22462_ACEOF
22463
22464# Files that config.status was made for.
22465if test -n "$ac_config_files"; then
22466 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22467fi
22468
22469if test -n "$ac_config_headers"; then
22470 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22471fi
22472
22473if test -n "$ac_config_links"; then
22474 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22475fi
22476
bec39cab
AC
22477if test -n "$ac_config_commands"; then
22478 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22479fi
234b45d4 22480
bec39cab 22481cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22482
bec39cab
AC
22483ac_cs_usage="\
22484\`$as_me' instantiates files from templates according to the
22485current configuration.
234b45d4 22486
bec39cab 22487Usage: $0 [OPTIONS] [FILE]...
234b45d4 22488
bec39cab
AC
22489 -h, --help print this help, then exit
22490 -V, --version print version number, then exit
22491 -q, --quiet do not print progress messages
22492 -d, --debug don't remove temporary files
22493 --recheck update $as_me by reconfiguring in the same conditions
22494 --file=FILE[:TEMPLATE]
22495 instantiate the configuration file FILE
22496 --header=FILE[:TEMPLATE]
22497 instantiate the configuration header FILE
234b45d4 22498
bec39cab
AC
22499Configuration files:
22500$config_files
234b45d4 22501
bec39cab
AC
22502Configuration headers:
22503$config_headers
234b45d4 22504
bec39cab
AC
22505Configuration links:
22506$config_links
234b45d4 22507
bec39cab
AC
22508Configuration commands:
22509$config_commands
22510
22511Report bugs to <bug-autoconf@gnu.org>."
22512_ACEOF
22513
22514cat >>$CONFIG_STATUS <<_ACEOF
22515ac_cs_version="\\
22516config.status
22517configured by $0, generated by GNU Autoconf 2.59,
22518 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22519
22520Copyright (C) 2003 Free Software Foundation, Inc.
22521This config.status script is free software; the Free Software Foundation
22522gives unlimited permission to copy, distribute and modify it."
22523srcdir=$srcdir
22524INSTALL="$INSTALL"
22525_ACEOF
22526
22527cat >>$CONFIG_STATUS <<\_ACEOF
22528# If no file are specified by the user, then we need to provide default
22529# value. By we need to know if files were specified by the user.
22530ac_need_defaults=:
22531while test $# != 0
22532do
22533 case $1 in
22534 --*=*)
22535 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22536 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22537 ac_shift=:
c906108c 22538 ;;
bec39cab
AC
22539 -*)
22540 ac_option=$1
22541 ac_optarg=$2
22542 ac_shift=shift
c906108c 22543 ;;
bec39cab
AC
22544 *) # This is not an option, so the user has probably given explicit
22545 # arguments.
22546 ac_option=$1
22547 ac_need_defaults=false;;
22548 esac
c906108c 22549
bec39cab
AC
22550 case $ac_option in
22551 # Handling of the options.
22552_ACEOF
22553cat >>$CONFIG_STATUS <<\_ACEOF
22554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22555 ac_cs_recheck=: ;;
22556 --version | --vers* | -V )
22557 echo "$ac_cs_version"; exit 0 ;;
22558 --he | --h)
22559 # Conflict between --help and --header
22560 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22561Try \`$0 --help' for more information." >&5
22562echo "$as_me: error: ambiguous option: $1
22563Try \`$0 --help' for more information." >&2;}
22564 { (exit 1); exit 1; }; };;
22565 --help | --hel | -h )
22566 echo "$ac_cs_usage"; exit 0 ;;
22567 --debug | --d* | -d )
22568 debug=: ;;
22569 --file | --fil | --fi | --f )
22570 $ac_shift
22571 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22572 ac_need_defaults=false;;
22573 --header | --heade | --head | --hea )
22574 $ac_shift
22575 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22576 ac_need_defaults=false;;
22577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22578 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22579 ac_cs_silent=: ;;
c906108c 22580
bec39cab
AC
22581 # This is an error.
22582 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22583Try \`$0 --help' for more information." >&5
22584echo "$as_me: error: unrecognized option: $1
22585Try \`$0 --help' for more information." >&2;}
22586 { (exit 1); exit 1; }; } ;;
c906108c 22587
bec39cab 22588 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22589
bec39cab
AC
22590 esac
22591 shift
22592done
c906108c 22593
bec39cab 22594ac_configure_extra_args=
c906108c 22595
bec39cab
AC
22596if $ac_cs_silent; then
22597 exec 6>/dev/null
22598 ac_configure_extra_args="$ac_configure_extra_args --silent"
22599fi
c906108c 22600
bec39cab
AC
22601_ACEOF
22602cat >>$CONFIG_STATUS <<_ACEOF
22603if \$ac_cs_recheck; then
22604 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22605 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22606fi
22607
22608_ACEOF
22609
22610cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22611#
bec39cab 22612# INIT-COMMANDS section.
c906108c 22613#
c906108c 22614
bec39cab
AC
22615
22616gdb_host_cpu=$gdb_host_cpu
22617gdb_target_cpu=$gdb_target_cpu
22618nativefile=$nativefile
22619
22620
22621_ACEOF
22622
22623
22624
22625cat >>$CONFIG_STATUS <<\_ACEOF
22626for ac_config_target in $ac_config_targets
c906108c 22627do
bec39cab
AC
22628 case "$ac_config_target" in
22629 # Handling of arguments.
22630 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22631 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22632 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22633 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22634 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22635 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22636echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22637 { (exit 1); exit 1; }; };;
c906108c
SS
22638 esac
22639done
22640
bec39cab
AC
22641# If the user did not use the arguments to specify the items to instantiate,
22642# then the envvar interface is used. Set only those that are not.
22643# We use the long form for the default assignment because of an extremely
22644# bizarre bug on SunOS 4.1.3.
22645if $ac_need_defaults; then
22646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22648 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22650fi
22651
22652# Have a temporary directory for convenience. Make it in the build tree
22653# simply because there is no reason to put it here, and in addition,
22654# creating and moving files from /tmp can sometimes cause problems.
22655# Create a temporary directory, and hook for its removal unless debugging.
22656$debug ||
22657{
22658 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22659 trap '{ (exit 1); exit 1; }' 1 2 13 15
22660}
c906108c 22661
bec39cab 22662# Create a (secure) tmp directory for tmp files.
c906108c 22663
bec39cab
AC
22664{
22665 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22666 test -n "$tmp" && test -d "$tmp"
22667} ||
22668{
22669 tmp=./confstat$$-$RANDOM
22670 (umask 077 && mkdir $tmp)
22671} ||
22672{
22673 echo "$me: cannot create a temporary directory in ." >&2
22674 { (exit 1); exit 1; }
22675}
22676
22677_ACEOF
22678
22679cat >>$CONFIG_STATUS <<_ACEOF
22680
22681#
22682# CONFIG_FILES section.
22683#
22684
22685# No need to generate the scripts if there are no CONFIG_FILES.
22686# This happens for instance when ./config.status config.h
22687if test -n "\$CONFIG_FILES"; then
22688 # Protect against being on the right side of a sed subst in config.status.
22689 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22690 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22691s,@SHELL@,$SHELL,;t t
22692s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22693s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22694s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22695s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22696s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22697s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22698s,@exec_prefix@,$exec_prefix,;t t
22699s,@prefix@,$prefix,;t t
22700s,@program_transform_name@,$program_transform_name,;t t
22701s,@bindir@,$bindir,;t t
22702s,@sbindir@,$sbindir,;t t
22703s,@libexecdir@,$libexecdir,;t t
22704s,@datadir@,$datadir,;t t
22705s,@sysconfdir@,$sysconfdir,;t t
22706s,@sharedstatedir@,$sharedstatedir,;t t
22707s,@localstatedir@,$localstatedir,;t t
22708s,@libdir@,$libdir,;t t
22709s,@includedir@,$includedir,;t t
22710s,@oldincludedir@,$oldincludedir,;t t
22711s,@infodir@,$infodir,;t t
22712s,@mandir@,$mandir,;t t
22713s,@build_alias@,$build_alias,;t t
22714s,@host_alias@,$host_alias,;t t
22715s,@target_alias@,$target_alias,;t t
22716s,@DEFS@,$DEFS,;t t
22717s,@ECHO_C@,$ECHO_C,;t t
22718s,@ECHO_N@,$ECHO_N,;t t
22719s,@ECHO_T@,$ECHO_T,;t t
22720s,@LIBS@,$LIBS,;t t
22721s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22722s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22723s,@MAINT@,$MAINT,;t t
22724s,@CC@,$CC,;t t
22725s,@CFLAGS@,$CFLAGS,;t t
22726s,@LDFLAGS@,$LDFLAGS,;t t
22727s,@CPPFLAGS@,$CPPFLAGS,;t t
22728s,@ac_ct_CC@,$ac_ct_CC,;t t
22729s,@EXEEXT@,$EXEEXT,;t t
22730s,@OBJEXT@,$OBJEXT,;t t
22731s,@CPP@,$CPP,;t t
22732s,@EGREP@,$EGREP,;t t
22733s,@build@,$build,;t t
22734s,@build_cpu@,$build_cpu,;t t
22735s,@build_vendor@,$build_vendor,;t t
22736s,@build_os@,$build_os,;t t
22737s,@host@,$host,;t t
22738s,@host_cpu@,$host_cpu,;t t
22739s,@host_vendor@,$host_vendor,;t t
22740s,@host_os@,$host_os,;t t
22741s,@target@,$target,;t t
22742s,@target_cpu@,$target_cpu,;t t
22743s,@target_vendor@,$target_vendor,;t t
22744s,@target_os@,$target_os,;t t
c21a4eee 22745s,@SET_MAKE@,$SET_MAKE,;t t
bec39cab
AC
22746s,@RANLIB@,$RANLIB,;t t
22747s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
bec39cab
AC
22748s,@ALLOCA@,$ALLOCA,;t t
22749s,@USE_NLS@,$USE_NLS,;t t
22750s,@MSGFMT@,$MSGFMT,;t t
22751s,@GMSGFMT@,$GMSGFMT,;t t
22752s,@XGETTEXT@,$XGETTEXT,;t t
22753s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22754s,@CATALOGS@,$CATALOGS,;t t
22755s,@CATOBJEXT@,$CATOBJEXT,;t t
22756s,@DATADIRNAME@,$DATADIRNAME,;t t
22757s,@GMOFILES@,$GMOFILES,;t t
22758s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22759s,@INTLDEPS@,$INTLDEPS,;t t
22760s,@INTLLIBS@,$INTLLIBS,;t t
22761s,@INTLOBJS@,$INTLOBJS,;t t
22762s,@POFILES@,$POFILES,;t t
22763s,@POSUB@,$POSUB,;t t
22764s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22765s,@GT_NO@,$GT_NO,;t t
22766s,@GT_YES@,$GT_YES,;t t
22767s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22768s,@l@,$l,;t t
22769s,@localedir@,$localedir,;t t
22770s,@PACKAGE@,$PACKAGE,;t t
22771s,@subdirs@,$subdirs,;t t
22772s,@AWK@,$AWK,;t t
22773s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22774s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22775s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22776s,@LN_S@,$LN_S,;t t
22777s,@YACC@,$YACC,;t t
22778s,@AR@,$AR,;t t
22779s,@ac_ct_AR@,$ac_ct_AR,;t t
22780s,@DLLTOOL@,$DLLTOOL,;t t
22781s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22782s,@WINDRES@,$WINDRES,;t t
22783s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22784s,@MIG@,$MIG,;t t
22785s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22786s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22787s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22788s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22789s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22790s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22791s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22792s,@WIN32LIBS@,$WIN32LIBS,;t t
22793s,@LIBGUI@,$LIBGUI,;t t
22794s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22795s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22796s,@TCL_VERSION@,$TCL_VERSION,;t t
22797s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22798s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22799s,@TCL_CC@,$TCL_CC,;t t
22800s,@TCL_DEFS@,$TCL_DEFS,;t t
22801s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22802s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22803s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22804s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22805s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22806s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22807s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22808s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22809s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22810s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22811s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22812s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22813s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22814s,@TK_VERSION@,$TK_VERSION,;t t
22815s,@TK_DEFS@,$TK_DEFS,;t t
22816s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22817s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22818s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22819s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22820s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22821s,@TCLHDIR@,$TCLHDIR,;t t
22822s,@TKHDIR@,$TKHDIR,;t t
22823s,@ITCLHDIR@,$ITCLHDIR,;t t
22824s,@ITKHDIR@,$ITKHDIR,;t t
22825s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22826s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22827s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22828s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22829s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22830s,@ITK_VERSION@,$ITK_VERSION,;t t
22831s,@ITK_DEFS@,$ITK_DEFS,;t t
22832s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22833s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22834s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22835s,@X_CFLAGS@,$X_CFLAGS,;t t
22836s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22837s,@X_LIBS@,$X_LIBS,;t t
22838s,@TCL_DEPS@,$TCL_DEPS,;t t
22839s,@TK_DEPS@,$TK_DEPS,;t t
22840s,@ITCLLIB@,$ITCLLIB,;t t
22841s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22842s,@ITKLIB@,$ITKLIB,;t t
22843s,@ITK_DEPS@,$ITK_DEPS,;t t
22844s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22845s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22846s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22847s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22848s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22849s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22850s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22851s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22852s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22853s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22854s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22855s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22856s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22857s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22858s,@target_subdir@,$target_subdir,;t t
22859s,@frags@,$frags,;t t
22860s,@xm_h@,$xm_h,;t t
22861s,@tm_h@,$tm_h,;t t
22862s,@nm_h@,$nm_h,;t t
22863s,@LIBICONV@,$LIBICONV,;t t
22864s,@LIBOBJS@,$LIBOBJS,;t t
22865s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22866/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22867s,@host_makefile_frag@,,;t t
c906108c 22868/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22869s,@target_makefile_frag@,,;t t
c906108c 22870CEOF
bec39cab
AC
22871
22872_ACEOF
22873
22874 cat >>$CONFIG_STATUS <<\_ACEOF
22875 # Split the substitutions into bite-sized pieces for seds with
22876 # small command number limits, like on Digital OSF/1 and HP-UX.
22877 ac_max_sed_lines=48
22878 ac_sed_frag=1 # Number of current file.
22879 ac_beg=1 # First line for current file.
22880 ac_end=$ac_max_sed_lines # Line after last line for current file.
22881 ac_more_lines=:
22882 ac_sed_cmds=
22883 while $ac_more_lines; do
22884 if test $ac_beg -gt 1; then
22885 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22886 else
22887 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22888 fi
22889 if test ! -s $tmp/subs.frag; then
22890 ac_more_lines=false
c906108c 22891 else
bec39cab
AC
22892 # The purpose of the label and of the branching condition is to
22893 # speed up the sed processing (if there are no `@' at all, there
22894 # is no need to browse any of the substitutions).
22895 # These are the two extra sed commands mentioned above.
22896 (echo ':t
22897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22898 if test -z "$ac_sed_cmds"; then
22899 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22900 else
22901 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22902 fi
22903 ac_sed_frag=`expr $ac_sed_frag + 1`
22904 ac_beg=$ac_end
22905 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22906 fi
bec39cab
AC
22907 done
22908 if test -z "$ac_sed_cmds"; then
22909 ac_sed_cmds=cat
c906108c 22910 fi
bec39cab 22911fi # test -n "$CONFIG_FILES"
c906108c 22912
bec39cab
AC
22913_ACEOF
22914cat >>$CONFIG_STATUS <<\_ACEOF
22915for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22916 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22917 case $ac_file in
22918 - | *:- | *:-:* ) # input from stdin
22919 cat >$tmp/stdin
22920 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22921 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22922 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22923 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22924 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22925 esac
22926
bec39cab
AC
22927 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22928 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22929$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22930 X"$ac_file" : 'X\(//\)[^/]' \| \
22931 X"$ac_file" : 'X\(//\)$' \| \
22932 X"$ac_file" : 'X\(/\)' \| \
22933 . : '\(.\)' 2>/dev/null ||
22934echo X"$ac_file" |
22935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22937 /^X\(\/\/\)$/{ s//\1/; q; }
22938 /^X\(\/\).*/{ s//\1/; q; }
22939 s/.*/./; q'`
22940 { if $as_mkdir_p; then
22941 mkdir -p "$ac_dir"
c906108c 22942 else
bec39cab
AC
22943 as_dir="$ac_dir"
22944 as_dirs=
22945 while test ! -d "$as_dir"; do
22946 as_dirs="$as_dir $as_dirs"
22947 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22948$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22949 X"$as_dir" : 'X\(//\)[^/]' \| \
22950 X"$as_dir" : 'X\(//\)$' \| \
22951 X"$as_dir" : 'X\(/\)' \| \
22952 . : '\(.\)' 2>/dev/null ||
22953echo X"$as_dir" |
22954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22956 /^X\(\/\/\)$/{ s//\1/; q; }
22957 /^X\(\/\).*/{ s//\1/; q; }
22958 s/.*/./; q'`
22959 done
22960 test ! -n "$as_dirs" || mkdir $as_dirs
22961 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22962echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22963 { (exit 1); exit 1; }; }; }
c906108c 22964
bec39cab
AC
22965 ac_builddir=.
22966
22967if test "$ac_dir" != .; then
22968 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22969 # A "../" for each directory in $ac_dir_suffix.
22970 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22971else
22972 ac_dir_suffix= ac_top_builddir=
22973fi
22974
22975case $srcdir in
22976 .) # No --srcdir option. We are building in place.
22977 ac_srcdir=.
22978 if test -z "$ac_top_builddir"; then
22979 ac_top_srcdir=.
22980 else
22981 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22982 fi ;;
22983 [\\/]* | ?:[\\/]* ) # Absolute path.
22984 ac_srcdir=$srcdir$ac_dir_suffix;
22985 ac_top_srcdir=$srcdir ;;
c906108c 22986 *) # Relative path.
bec39cab
AC
22987 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22988 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22989esac
22990
22991# Do not use `cd foo && pwd` to compute absolute paths, because
22992# the directories may not exist.
22993case `pwd` in
22994.) ac_abs_builddir="$ac_dir";;
22995*)
22996 case "$ac_dir" in
22997 .) ac_abs_builddir=`pwd`;;
22998 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22999 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23000 esac;;
23001esac
23002case $ac_abs_builddir in
23003.) ac_abs_top_builddir=${ac_top_builddir}.;;
23004*)
23005 case ${ac_top_builddir}. in
23006 .) ac_abs_top_builddir=$ac_abs_builddir;;
23007 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23008 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23009 esac;;
23010esac
23011case $ac_abs_builddir in
23012.) ac_abs_srcdir=$ac_srcdir;;
23013*)
23014 case $ac_srcdir in
23015 .) ac_abs_srcdir=$ac_abs_builddir;;
23016 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23017 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23018 esac;;
23019esac
23020case $ac_abs_builddir in
23021.) ac_abs_top_srcdir=$ac_top_srcdir;;
23022*)
23023 case $ac_top_srcdir in
23024 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23025 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23026 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23027 esac;;
23028esac
c906108c 23029
c906108c 23030
bec39cab
AC
23031 case $INSTALL in
23032 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23033 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
23034 esac
23035
bec39cab
AC
23036 if test x"$ac_file" != x-; then
23037 { echo "$as_me:$LINENO: creating $ac_file" >&5
23038echo "$as_me: creating $ac_file" >&6;}
23039 rm -f "$ac_file"
23040 fi
23041 # Let's still pretend it is `configure' which instantiates (i.e., don't
23042 # use $as_me), people would be surprised to read:
23043 # /* config.h. Generated by config.status. */
23044 if test x"$ac_file" = x-; then
23045 configure_input=
23046 else
23047 configure_input="$ac_file. "
23048 fi
23049 configure_input=$configure_input"Generated from `echo $ac_file_in |
23050 sed 's,.*/,,'` by configure."
23051
23052 # First look for the input files in the build tree, otherwise in the
23053 # src tree.
23054 ac_file_inputs=`IFS=:
23055 for f in $ac_file_in; do
23056 case $f in
23057 -) echo $tmp/stdin ;;
23058 [\\/$]*)
23059 # Absolute (can't be DOS-style, as IFS=:)
23060 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23061echo "$as_me: error: cannot find input file: $f" >&2;}
23062 { (exit 1); exit 1; }; }
23063 echo "$f";;
23064 *) # Relative
23065 if test -f "$f"; then
23066 # Build tree
23067 echo "$f"
23068 elif test -f "$srcdir/$f"; then
23069 # Source tree
23070 echo "$srcdir/$f"
23071 else
23072 # /dev/null tree
23073 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23074echo "$as_me: error: cannot find input file: $f" >&2;}
23075 { (exit 1); exit 1; }; }
23076 fi;;
23077 esac
23078 done` || { (exit 1); exit 1; }
23079_ACEOF
23080cat >>$CONFIG_STATUS <<_ACEOF
23081 sed "$ac_vpsub
23082$extrasub
23083_ACEOF
23084cat >>$CONFIG_STATUS <<\_ACEOF
23085:t
23086/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23087s,@configure_input@,$configure_input,;t t
23088s,@srcdir@,$ac_srcdir,;t t
23089s,@abs_srcdir@,$ac_abs_srcdir,;t t
23090s,@top_srcdir@,$ac_top_srcdir,;t t
23091s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23092s,@builddir@,$ac_builddir,;t t
23093s,@abs_builddir@,$ac_abs_builddir,;t t
23094s,@top_builddir@,$ac_top_builddir,;t t
23095s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23096s,@INSTALL@,$ac_INSTALL,;t t
23097" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23098 rm -f $tmp/stdin
23099 if test x"$ac_file" != x-; then
23100 mv $tmp/out $ac_file
23101 else
23102 cat $tmp/out
23103 rm -f $tmp/out
23104 fi
23105
23106done
23107_ACEOF
23108cat >>$CONFIG_STATUS <<\_ACEOF
23109
23110#
23111# CONFIG_HEADER section.
23112#
c906108c
SS
23113
23114# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23115# NAME is the cpp macro being defined and VALUE is the value it is being given.
23116#
23117# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
23118ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23119ac_dB='[ ].*$,\1#\2'
23120ac_dC=' '
23121ac_dD=',;t'
23122# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23123ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23124ac_uB='$,\1#\2define\3'
c906108c 23125ac_uC=' '
bec39cab
AC
23126ac_uD=',;t'
23127
23128for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 23129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
23130 case $ac_file in
23131 - | *:- | *:-:* ) # input from stdin
23132 cat >$tmp/stdin
23133 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23134 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23135 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23137 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
23138 esac
23139
bec39cab
AC
23140 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23141echo "$as_me: creating $ac_file" >&6;}
23142
23143 # First look for the input files in the build tree, otherwise in the
23144 # src tree.
23145 ac_file_inputs=`IFS=:
23146 for f in $ac_file_in; do
23147 case $f in
23148 -) echo $tmp/stdin ;;
23149 [\\/$]*)
23150 # Absolute (can't be DOS-style, as IFS=:)
23151 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23152echo "$as_me: error: cannot find input file: $f" >&2;}
23153 { (exit 1); exit 1; }; }
23154 # Do quote $f, to prevent DOS paths from being IFS'd.
23155 echo "$f";;
23156 *) # Relative
23157 if test -f "$f"; then
23158 # Build tree
23159 echo "$f"
23160 elif test -f "$srcdir/$f"; then
23161 # Source tree
23162 echo "$srcdir/$f"
23163 else
23164 # /dev/null tree
23165 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23166echo "$as_me: error: cannot find input file: $f" >&2;}
23167 { (exit 1); exit 1; }; }
23168 fi;;
23169 esac
23170 done` || { (exit 1); exit 1; }
23171 # Remove the trailing spaces.
23172 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23173
23174_ACEOF
23175
23176# Transform confdefs.h into two sed scripts, `conftest.defines' and
23177# `conftest.undefs', that substitutes the proper values into
23178# config.h.in to produce config.h. The first handles `#define'
23179# templates, and the second `#undef' templates.
23180# And first: Protect against being on the right side of a sed subst in
23181# config.status. Protect against being in an unquoted here document
23182# in config.status.
23183rm -f conftest.defines conftest.undefs
23184# Using a here document instead of a string reduces the quoting nightmare.
23185# Putting comments in sed scripts is not portable.
23186#
23187# `end' is used to avoid that the second main sed command (meant for
23188# 0-ary CPP macros) applies to n-ary macro definitions.
23189# See the Autoconf documentation for `clear'.
23190cat >confdef2sed.sed <<\_ACEOF
23191s/[\\&,]/\\&/g
23192s,[\\$`],\\&,g
23193t clear
23194: clear
23195s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23196t end
23197s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23198: end
23199_ACEOF
23200# If some macros were called several times there might be several times
23201# the same #defines, which is useless. Nevertheless, we may not want to
23202# sort them, since we want the *last* AC-DEFINE to be honored.
23203uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23204sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23205rm -f confdef2sed.sed
c906108c
SS
23206
23207# This sed command replaces #undef with comments. This is necessary, for
23208# example, in the case of _POSIX_SOURCE, which is predefined and required
23209# on some systems where configure will not decide to define it.
bec39cab
AC
23210cat >>conftest.undefs <<\_ACEOF
23211s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23212_ACEOF
23213
23214# Break up conftest.defines because some shells have a limit on the size
23215# of here documents, and old seds have small limits too (100 cmds).
23216echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23217echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23218echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23219echo ' :' >>$CONFIG_STATUS
23220rm -f conftest.tail
23221while grep . conftest.defines >/dev/null
23222do
23223 # Write a limited-size here document to $tmp/defines.sed.
23224 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23225 # Speed up: don't consider the non `#define' lines.
23226 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23227 # Work around the forget-to-reset-the-flag bug.
23228 echo 't clr' >>$CONFIG_STATUS
23229 echo ': clr' >>$CONFIG_STATUS
23230 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23231 echo 'CEOF
23232 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23233 rm -f $tmp/in
23234 mv $tmp/out $tmp/in
23235' >>$CONFIG_STATUS
23236 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23237 rm -f conftest.defines
23238 mv conftest.tail conftest.defines
23239done
23240rm -f conftest.defines
23241echo ' fi # grep' >>$CONFIG_STATUS
23242echo >>$CONFIG_STATUS
c906108c 23243
bec39cab
AC
23244# Break up conftest.undefs because some shells have a limit on the size
23245# of here documents, and old seds have small limits too (100 cmds).
23246echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 23247rm -f conftest.tail
bec39cab 23248while grep . conftest.undefs >/dev/null
c906108c 23249do
bec39cab
AC
23250 # Write a limited-size here document to $tmp/undefs.sed.
23251 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23252 # Speed up: don't consider the non `#undef'
23253 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23254 # Work around the forget-to-reset-the-flag bug.
23255 echo 't clr' >>$CONFIG_STATUS
23256 echo ': clr' >>$CONFIG_STATUS
23257 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 23258 echo 'CEOF
bec39cab
AC
23259 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23260 rm -f $tmp/in
23261 mv $tmp/out $tmp/in
23262' >>$CONFIG_STATUS
23263 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23264 rm -f conftest.undefs
23265 mv conftest.tail conftest.undefs
23266done
23267rm -f conftest.undefs
23268
23269cat >>$CONFIG_STATUS <<\_ACEOF
23270 # Let's still pretend it is `configure' which instantiates (i.e., don't
23271 # use $as_me), people would be surprised to read:
23272 # /* config.h. Generated by config.status. */
23273 if test x"$ac_file" = x-; then
23274 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 23275 else
bec39cab 23276 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 23277 fi
bec39cab
AC
23278 cat $tmp/in >>$tmp/config.h
23279 rm -f $tmp/in
23280 if test x"$ac_file" != x-; then
23281 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23282 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23283echo "$as_me: $ac_file is unchanged" >&6;}
23284 else
23285 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23286$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23287 X"$ac_file" : 'X\(//\)[^/]' \| \
23288 X"$ac_file" : 'X\(//\)$' \| \
23289 X"$ac_file" : 'X\(/\)' \| \
23290 . : '\(.\)' 2>/dev/null ||
23291echo X"$ac_file" |
23292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23294 /^X\(\/\/\)$/{ s//\1/; q; }
23295 /^X\(\/\).*/{ s//\1/; q; }
23296 s/.*/./; q'`
23297 { if $as_mkdir_p; then
23298 mkdir -p "$ac_dir"
23299 else
23300 as_dir="$ac_dir"
23301 as_dirs=
23302 while test ! -d "$as_dir"; do
23303 as_dirs="$as_dir $as_dirs"
23304 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23306 X"$as_dir" : 'X\(//\)[^/]' \| \
23307 X"$as_dir" : 'X\(//\)$' \| \
23308 X"$as_dir" : 'X\(/\)' \| \
23309 . : '\(.\)' 2>/dev/null ||
23310echo X"$as_dir" |
23311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23313 /^X\(\/\/\)$/{ s//\1/; q; }
23314 /^X\(\/\).*/{ s//\1/; q; }
23315 s/.*/./; q'`
23316 done
23317 test ! -n "$as_dirs" || mkdir $as_dirs
23318 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23319echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23320 { (exit 1); exit 1; }; }; }
c906108c 23321
bec39cab
AC
23322 rm -f $ac_file
23323 mv $tmp/config.h $ac_file
23324 fi
23325 else
23326 cat $tmp/config.h
23327 rm -f $tmp/config.h
23328 fi
23329done
23330_ACEOF
23331cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23332
bec39cab
AC
23333#
23334# CONFIG_LINKS section.
23335#
c906108c 23336
bec39cab
AC
23337for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23338 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23339 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 23340
bec39cab
AC
23341 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23342echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
23343
23344 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
23345 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23346echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23347 { (exit 1); exit 1; }; }
c906108c
SS
23348 fi
23349 rm -f $ac_dest
23350
23351 # Make relative symlinks.
bec39cab
AC
23352 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23353$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23354 X"$ac_dest" : 'X\(//\)[^/]' \| \
23355 X"$ac_dest" : 'X\(//\)$' \| \
23356 X"$ac_dest" : 'X\(/\)' \| \
23357 . : '\(.\)' 2>/dev/null ||
23358echo X"$ac_dest" |
23359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23361 /^X\(\/\/\)$/{ s//\1/; q; }
23362 /^X\(\/\).*/{ s//\1/; q; }
23363 s/.*/./; q'`
23364 { if $as_mkdir_p; then
23365 mkdir -p "$ac_dest_dir"
c906108c 23366 else
bec39cab
AC
23367 as_dir="$ac_dest_dir"
23368 as_dirs=
23369 while test ! -d "$as_dir"; do
23370 as_dirs="$as_dir $as_dirs"
23371 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23372$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23373 X"$as_dir" : 'X\(//\)[^/]' \| \
23374 X"$as_dir" : 'X\(//\)$' \| \
23375 X"$as_dir" : 'X\(/\)' \| \
23376 . : '\(.\)' 2>/dev/null ||
23377echo X"$as_dir" |
23378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23380 /^X\(\/\/\)$/{ s//\1/; q; }
23381 /^X\(\/\).*/{ s//\1/; q; }
23382 s/.*/./; q'`
23383 done
23384 test ! -n "$as_dirs" || mkdir $as_dirs
23385 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23386echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23387 { (exit 1); exit 1; }; }; }
23388
23389 ac_builddir=.
23390
23391if test "$ac_dest_dir" != .; then
23392 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23393 # A "../" for each directory in $ac_dir_suffix.
23394 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23395else
23396 ac_dir_suffix= ac_top_builddir=
23397fi
23398
23399case $srcdir in
23400 .) # No --srcdir option. We are building in place.
23401 ac_srcdir=.
23402 if test -z "$ac_top_builddir"; then
23403 ac_top_srcdir=.
23404 else
23405 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23406 fi ;;
23407 [\\/]* | ?:[\\/]* ) # Absolute path.
23408 ac_srcdir=$srcdir$ac_dir_suffix;
23409 ac_top_srcdir=$srcdir ;;
23410 *) # Relative path.
23411 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23412 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23413esac
23414
23415# Do not use `cd foo && pwd` to compute absolute paths, because
23416# the directories may not exist.
23417case `pwd` in
23418.) ac_abs_builddir="$ac_dest_dir";;
23419*)
23420 case "$ac_dest_dir" in
23421 .) ac_abs_builddir=`pwd`;;
23422 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23423 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23424 esac;;
23425esac
23426case $ac_abs_builddir in
23427.) ac_abs_top_builddir=${ac_top_builddir}.;;
23428*)
23429 case ${ac_top_builddir}. in
23430 .) ac_abs_top_builddir=$ac_abs_builddir;;
23431 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23432 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23433 esac;;
23434esac
23435case $ac_abs_builddir in
23436.) ac_abs_srcdir=$ac_srcdir;;
23437*)
23438 case $ac_srcdir in
23439 .) ac_abs_srcdir=$ac_abs_builddir;;
23440 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23441 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23442 esac;;
23443esac
23444case $ac_abs_builddir in
23445.) ac_abs_top_srcdir=$ac_top_srcdir;;
23446*)
23447 case $ac_top_srcdir in
23448 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23449 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23450 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23451 esac;;
23452esac
c906108c 23453
bec39cab
AC
23454
23455 case $srcdir in
23456 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23457 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23458 esac
23459
bec39cab
AC
23460 # Try a symlink, then a hard link, then a copy.
23461 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23462 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23463 cp -p $srcdir/$ac_source $ac_dest ||
23464 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23465echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23466 { (exit 1); exit 1; }; }
c906108c 23467done
bec39cab
AC
23468_ACEOF
23469cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23470
bec39cab
AC
23471#
23472# CONFIG_COMMANDS section.
23473#
23474for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23475 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23476 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23477 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23478$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23479 X"$ac_dest" : 'X\(//\)[^/]' \| \
23480 X"$ac_dest" : 'X\(//\)$' \| \
23481 X"$ac_dest" : 'X\(/\)' \| \
23482 . : '\(.\)' 2>/dev/null ||
23483echo X"$ac_dest" |
23484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23486 /^X\(\/\/\)$/{ s//\1/; q; }
23487 /^X\(\/\).*/{ s//\1/; q; }
23488 s/.*/./; q'`
23489 { if $as_mkdir_p; then
23490 mkdir -p "$ac_dir"
23491 else
23492 as_dir="$ac_dir"
23493 as_dirs=
23494 while test ! -d "$as_dir"; do
23495 as_dirs="$as_dir $as_dirs"
23496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23497$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23498 X"$as_dir" : 'X\(//\)[^/]' \| \
23499 X"$as_dir" : 'X\(//\)$' \| \
23500 X"$as_dir" : 'X\(/\)' \| \
23501 . : '\(.\)' 2>/dev/null ||
23502echo X"$as_dir" |
23503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23505 /^X\(\/\/\)$/{ s//\1/; q; }
23506 /^X\(\/\).*/{ s//\1/; q; }
23507 s/.*/./; q'`
23508 done
23509 test ! -n "$as_dirs" || mkdir $as_dirs
23510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23511echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23512 { (exit 1); exit 1; }; }; }
23513
23514 ac_builddir=.
23515
23516if test "$ac_dir" != .; then
23517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23518 # A "../" for each directory in $ac_dir_suffix.
23519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23520else
23521 ac_dir_suffix= ac_top_builddir=
23522fi
23523
23524case $srcdir in
23525 .) # No --srcdir option. We are building in place.
23526 ac_srcdir=.
23527 if test -z "$ac_top_builddir"; then
23528 ac_top_srcdir=.
23529 else
23530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23531 fi ;;
23532 [\\/]* | ?:[\\/]* ) # Absolute path.
23533 ac_srcdir=$srcdir$ac_dir_suffix;
23534 ac_top_srcdir=$srcdir ;;
23535 *) # Relative path.
23536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23538esac
23539
23540# Do not use `cd foo && pwd` to compute absolute paths, because
23541# the directories may not exist.
23542case `pwd` in
23543.) ac_abs_builddir="$ac_dir";;
23544*)
23545 case "$ac_dir" in
23546 .) ac_abs_builddir=`pwd`;;
23547 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23548 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23549 esac;;
23550esac
23551case $ac_abs_builddir in
23552.) ac_abs_top_builddir=${ac_top_builddir}.;;
23553*)
23554 case ${ac_top_builddir}. in
23555 .) ac_abs_top_builddir=$ac_abs_builddir;;
23556 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23557 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23558 esac;;
23559esac
23560case $ac_abs_builddir in
23561.) ac_abs_srcdir=$ac_srcdir;;
23562*)
23563 case $ac_srcdir in
23564 .) ac_abs_srcdir=$ac_abs_builddir;;
23565 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23566 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23567 esac;;
23568esac
23569case $ac_abs_builddir in
23570.) ac_abs_top_srcdir=$ac_top_srcdir;;
23571*)
23572 case $ac_top_srcdir in
23573 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23574 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23575 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23576 esac;;
23577esac
c906108c 23578
c906108c 23579
bec39cab
AC
23580 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23581echo "$as_me: executing $ac_dest commands" >&6;}
23582 case $ac_dest in
23583 default )
c906108c 23584
2c0fc042 23585sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23586/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23587/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23588mv -f Makefile.tmp Makefile
23589
2acceee2 23590
c906108c
SS
23591case x$CONFIG_HEADERS in
23592xconfig.h:config.in)
23593echo > stamp-h ;;
23594esac
bec39cab
AC
23595 ;;
23596 esac
23597done
23598_ACEOF
c906108c 23599
bec39cab
AC
23600cat >>$CONFIG_STATUS <<\_ACEOF
23601
23602{ (exit 0); exit 0; }
23603_ACEOF
c906108c 23604chmod +x $CONFIG_STATUS
bec39cab
AC
23605ac_clean_files=$ac_clean_files_save
23606
23607
23608# configure is writing to config.log, and then calls config.status.
23609# config.status does its own redirection, appending to config.log.
23610# Unfortunately, on DOS this fails, as config.log is still kept open
23611# by configure, so config.status won't be able to write to it; its
23612# output is simply discarded. So we exec the FD to /dev/null,
23613# effectively closing config.log, so it can be properly (re)opened and
23614# appended to by config.status. When coming back to configure, we
23615# need to make the FD available again.
23616if test "$no_create" != yes; then
23617 ac_cs_success=:
23618 ac_config_status_args=
23619 test "$silent" = yes &&
23620 ac_config_status_args="$ac_config_status_args --quiet"
23621 exec 5>/dev/null
23622 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23623 exec 5>>config.log
23624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23625 # would make configure fail if this is the last instruction.
23626 $ac_cs_success || { (exit 1); exit 1; }
23627fi
c906108c 23628
bec39cab
AC
23629#
23630# CONFIG_SUBDIRS section.
23631#
c906108c
SS
23632if test "$no_recursion" != yes; then
23633
23634 # Remove --cache-file and --srcdir arguments so they do not pile up.
23635 ac_sub_configure_args=
23636 ac_prev=
23637 for ac_arg in $ac_configure_args; do
23638 if test -n "$ac_prev"; then
23639 ac_prev=
23640 continue
23641 fi
bec39cab 23642 case $ac_arg in
c906108c
SS
23643 -cache-file | --cache-file | --cache-fil | --cache-fi \
23644 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23645 ac_prev=cache_file ;;
23646 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23647 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23648 | --c=*)
23649 ;;
23650 --config-cache | -C)
c906108c
SS
23651 ;;
23652 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23653 ac_prev=srcdir ;;
23654 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23655 ;;
bec39cab
AC
23656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23657 ac_prev=prefix ;;
23658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23659 ;;
c906108c
SS
23660 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23661 esac
23662 done
23663
bec39cab
AC
23664 # Always prepend --prefix to ensure using the same prefix
23665 # in subdir configurations.
23666 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23667
23668 ac_popdir=`pwd`
23669 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23670
23671 # Do not complain, so a configure script can configure whichever
23672 # parts of a large source tree are present.
bec39cab 23673 test -d $srcdir/$ac_dir || continue
c906108c 23674
bec39cab
AC
23675 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23676echo "$as_me: configuring in $ac_dir" >&6;}
23677 { if $as_mkdir_p; then
23678 mkdir -p "$ac_dir"
23679 else
23680 as_dir="$ac_dir"
23681 as_dirs=
23682 while test ! -d "$as_dir"; do
23683 as_dirs="$as_dir $as_dirs"
23684 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23685$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23686 X"$as_dir" : 'X\(//\)[^/]' \| \
23687 X"$as_dir" : 'X\(//\)$' \| \
23688 X"$as_dir" : 'X\(/\)' \| \
23689 . : '\(.\)' 2>/dev/null ||
23690echo X"$as_dir" |
23691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23693 /^X\(\/\/\)$/{ s//\1/; q; }
23694 /^X\(\/\).*/{ s//\1/; q; }
23695 s/.*/./; q'`
23696 done
23697 test ! -n "$as_dirs" || mkdir $as_dirs
23698 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23699echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23700 { (exit 1); exit 1; }; }; }
c906108c 23701
bec39cab
AC
23702 ac_builddir=.
23703
23704if test "$ac_dir" != .; then
23705 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23706 # A "../" for each directory in $ac_dir_suffix.
23707 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23708else
23709 ac_dir_suffix= ac_top_builddir=
23710fi
23711
23712case $srcdir in
23713 .) # No --srcdir option. We are building in place.
23714 ac_srcdir=.
23715 if test -z "$ac_top_builddir"; then
23716 ac_top_srcdir=.
23717 else
23718 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23719 fi ;;
23720 [\\/]* | ?:[\\/]* ) # Absolute path.
23721 ac_srcdir=$srcdir$ac_dir_suffix;
23722 ac_top_srcdir=$srcdir ;;
23723 *) # Relative path.
23724 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23725 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23726esac
c906108c 23727
bec39cab
AC
23728# Do not use `cd foo && pwd` to compute absolute paths, because
23729# the directories may not exist.
23730case `pwd` in
23731.) ac_abs_builddir="$ac_dir";;
23732*)
23733 case "$ac_dir" in
23734 .) ac_abs_builddir=`pwd`;;
23735 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23736 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23737 esac;;
23738esac
23739case $ac_abs_builddir in
23740.) ac_abs_top_builddir=${ac_top_builddir}.;;
23741*)
23742 case ${ac_top_builddir}. in
23743 .) ac_abs_top_builddir=$ac_abs_builddir;;
23744 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23745 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23746 esac;;
23747esac
23748case $ac_abs_builddir in
23749.) ac_abs_srcdir=$ac_srcdir;;
23750*)
23751 case $ac_srcdir in
23752 .) ac_abs_srcdir=$ac_abs_builddir;;
23753 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23754 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23755 esac;;
23756esac
23757case $ac_abs_builddir in
23758.) ac_abs_top_srcdir=$ac_top_srcdir;;
23759*)
23760 case $ac_top_srcdir in
23761 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23762 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23763 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23764 esac;;
23765esac
c906108c 23766
c906108c 23767
bec39cab 23768 cd $ac_dir
c906108c
SS
23769
23770 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23771 if test -f $ac_srcdir/configure.gnu; then
23772 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23773 elif test -f $ac_srcdir/configure; then
23774 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23775 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23776 ac_sub_configure=$ac_configure
23777 else
bec39cab
AC
23778 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23779echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23780 ac_sub_configure=
23781 fi
23782
23783 # The recursion is here.
23784 if test -n "$ac_sub_configure"; then
c906108c 23785 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23786 case $cache_file in
23787 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23788 *) # Relative path.
bec39cab 23789 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23790 esac
c906108c 23791
bec39cab
AC
23792 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23793echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23794 # The eval makes quoting arguments work.
bec39cab
AC
23795 eval $ac_sub_configure $ac_sub_configure_args \
23796 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23797 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23798echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23799 { (exit 1); exit 1; }; }
c906108c
SS
23800 fi
23801
23802 cd $ac_popdir
23803 done
23804fi
23805
23806
23807exit 0
This page took 1.868698 seconds and 4 git commands to generate.