* findvar.c (address_from_register): New function.
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
b4e70030 3# Generated by GNU Autoconf 2.59.
c906108c 4#
b4e70030 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+"$@"}'='"$@"'
b4e70030
JB
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
bec39cab
AC
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.
b4e70030 33$as_unset ENV MAIL MAILPATH
bec39cab
AC
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
b4e70030 47 $as_unset $as_var
bec39cab
AC
48 fi
49done
50
51# Required to use basename.
b4e70030 52if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
53 as_expr=expr
54else
55 as_expr=false
56fi
57
b4e70030 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
b4e70030 66as_me=`$as_basename "$0" ||
bec39cab
AC
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
bec39cab 71echo X/"$0" |
b4e70030
JB
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
bec39cab 76
4e8d927d 77
b4e70030
JB
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
4e8d927d 85
b4e70030
JB
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
4e8d927d
DJ
97fi
98
4e8d927d 99
b4e70030
JB
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
4e8d927d 116
b4e70030
JB
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 '')
bec39cab 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4e70030 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab
AC
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
b4e70030
JB
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
bec39cab 137 /*)
b4e70030 138 if ("$as_dir/$as_base" -c '
4e8d927d
DJ
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
b4e70030 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4e8d927d 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
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
bec39cab
AC
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
b4e70030
JB
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.
bec39cab 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
bec39cab
AC
165 sed '
166 N
b4e70030
JB
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 170 t loop
b4e70030
JB
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
bec39cab 173 ' >$as_me.lineno &&
b4e70030 174 chmod +x $as_me.lineno ||
bec39cab
AC
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
b4e70030
JB
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
bec39cab
AC
182 # Exit status is that of the last command.
183 exit
184}
185
186
b4e70030
JB
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= ;;
bec39cab
AC
192esac
193
b4e70030 194if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
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
b4e70030
JB
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
bec39cab 207 as_ln_s='cp -p'
b4e70030
JB
208 else
209 as_ln_s='ln -s'
210 fi
bec39cab
AC
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
b4e70030 216rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
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
b4e70030 225as_executable_p="test -f"
bec39cab
AC
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
b4e70030
JB
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
bec39cab 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
b4e70030
JB
249exec 6>&1
250
bec39cab
AC
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
b4e70030
JB
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
bec39cab
AC
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
20e95c23 275ac_subdirs_all="$ac_subdirs_all doc testsuite"
bec39cab
AC
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
b4e70030
JB
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
bec39cab
AC
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
b4e70030
JB
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
3841debe 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
b4e70030 317ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
318
319# Initialize some variables set by options.
bec39cab
AC
320ac_init_help=
321ac_init_version=false
c906108c
SS
322# The variables have the same names as the options, with
323# dashes changed to underlines.
bec39cab 324cache_file=/dev/null
c906108c 325exec_prefix=NONE
c906108c 326no_create=
c906108c
SS
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
c906108c
SS
335verbose=
336x_includes=NONE
337x_libraries=NONE
bec39cab
AC
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
b4e70030 347datadir='${prefix}/share'
c906108c
SS
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
b4e70030 351libdir='${exec_prefix}/lib'
c906108c
SS
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
b4e70030
JB
354infodir='${prefix}/info'
355mandir='${prefix}/man'
c906108c 356
c906108c
SS
357ac_prev=
358for ac_option
359do
c906108c
SS
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
b4e70030 362 eval "$ac_prev=\$ac_option"
c906108c
SS
363 ac_prev=
364 continue
365 fi
366
b4e70030 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
b4e70030 371 case $ac_option in
c906108c
SS
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 376 bindir=$ac_optarg ;;
c906108c
SS
377
378 -build | --build | --buil | --bui | --bu)
bec39cab 379 ac_prev=build_alias ;;
c906108c 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 381 build_alias=$ac_optarg ;;
c906108c
SS
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
c906108c 392
b4e70030 393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 394 ac_prev=datadir ;;
b4e70030
JB
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
bec39cab 397 datadir=$ac_optarg ;;
c906108c
SS
398
399 -disable-* | --disable-*)
bec39cab 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 401 # Reject names that are not valid shell variable names.
bec39cab
AC
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 406 eval "enable_$ac_feature=no" ;;
c906108c
SS
407
408 -enable-* | --enable-*)
bec39cab 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 410 # Reject names that are not valid shell variable names.
bec39cab
AC
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
bec39cab 428 exec_prefix=$ac_optarg ;;
c906108c
SS
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
bec39cab
AC
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
c906108c
SS
440
441 -host | --host | --hos | --ho)
bec39cab 442 ac_prev=host_alias ;;
c906108c 443 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 444 host_alias=$ac_optarg ;;
c906108c
SS
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 451 includedir=$ac_optarg ;;
c906108c
SS
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 456 infodir=$ac_optarg ;;
c906108c
SS
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 461 libdir=$ac_optarg ;;
c906108c
SS
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
bec39cab 468 libexecdir=$ac_optarg ;;
c906108c
SS
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 477 localstatedir=$ac_optarg ;;
c906108c
SS
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 482 mandir=$ac_optarg ;;
c906108c
SS
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 489 | --no-cr | --no-c | -n)
c906108c
SS
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 503 oldincludedir=$ac_optarg ;;
c906108c
SS
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 508 prefix=$ac_optarg ;;
c906108c
SS
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 515 program_prefix=$ac_optarg ;;
c906108c
SS
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 522 program_suffix=$ac_optarg ;;
c906108c
SS
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 539 program_transform_name=$ac_optarg ;;
c906108c
SS
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
bec39cab 549 sbindir=$ac_optarg ;;
c906108c
SS
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
bec39cab 560 sharedstatedir=$ac_optarg ;;
c906108c
SS
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
bec39cab 565 site=$ac_optarg ;;
3ace7edb 566
c906108c
SS
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 570 srcdir=$ac_optarg ;;
c906108c
SS
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 577 sysconfdir=$ac_optarg ;;
c906108c
SS
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 580 ac_prev=target_alias ;;
c906108c 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 582 target_alias=$ac_optarg ;;
c906108c
SS
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
bec39cab
AC
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
c906108c
SS
589
590 -with-* | --with-*)
bec39cab 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 592 # Reject names that are not valid shell variable names.
bec39cab
AC
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
c906108c 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
602
603 -without-* | --without-*)
bec39cab 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 605 # Reject names that are not valid shell variable names.
bec39cab
AC
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 610 eval "with_$ac_package=no" ;;
c906108c
SS
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 621 x_includes=$ac_optarg ;;
c906108c
SS
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 628 x_libraries=$ac_optarg ;;
c906108c 629
bec39cab
AC
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
c906108c
SS
633 ;;
634
bec39cab
AC
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
b4e70030
JB
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
643 export $ac_envvar ;;
644
c906108c 645 *)
bec39cab
AC
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
bec39cab
AC
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
c906108c 660fi
c906108c 661
b4e70030
JB
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
c906108c 664do
b4e70030 665 eval ac_val=$`echo $ac_var`
bec39cab 666 case $ac_val in
b4e70030
JB
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
c906108c
SS
682 esac
683done
684
bec39cab
AC
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
c906108c 702
bec39cab
AC
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
c906108c 707
c906108c
SS
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
b4e70030
JB
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
bec39cab 719echo X"$0" |
b4e70030
JB
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
c906108c 725 srcdir=$ac_confdir
b4e70030 726 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
b4e70030
JB
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 738 { (exit 1); exit 1; }; }
b4e70030 739 fi
c906108c 740fi
b4e70030
JB
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 743 { (exit 1); exit 1; }; }
b4e70030
JB
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
c906108c 777
bec39cab
AC
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
b4e70030
JB
805_ACEOF
806
807 cat <<_ACEOF
bec39cab
AC
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
bec39cab
AC
863 --disable-gdbcli disable command-line interface (CLI)
864 --disable-gdbmi disable machine-interface (MI)
865 --enable-tui enable full-screen terminal user interface (TUI)
866 --enable-gdbtk enable gdbtk graphical user interface (GUI)
867 --enable-profiling enable profiling of GDB
3841debe 868 --disable-rpath do not hardcode runtime library paths
094a342e 869 --enable-werror treat compile warnings as errors
bec39cab
AC
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)
bec39cab
AC
878 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
3841debe
DJ
880 --with-gnu-ld assume the C compiler uses GNU ld default=no
881 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
882 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
883 --without-included-regex don't use included regex; this is the default
884 on systems with version 2 of the GNU C library
885 (use with caution on other system)
886 --with-sysroot=DIR Search for usr/lib et al within DIR.
887 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
888 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
889 --with-tclinclude=DIR Directory where tcl private headers are
890 --with-tkinclude=DIR Directory where tk private headers are
891 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
892 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
893 --with-x use the X Window System
894 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
895
896Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
b4e70030
JB
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
bec39cab
AC
903 CPP C preprocessor
904
905Use these variables to override the choices made by `configure' or to help
906it to find libraries and programs with nonstandard names/locations.
907
908_ACEOF
909fi
910
911if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
b4e70030 913 ac_popdir=`pwd`
bec39cab
AC
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
916 ac_builddir=.
917
b4e70030 918if test "$ac_dir" != .; then
bec39cab 919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922else
923 ac_dir_suffix= ac_top_builddir=
924fi
bec39cab
AC
925
926case $srcdir in
b4e70030 927 .) # No --srcdir option. We are building in place.
bec39cab 928 ac_srcdir=.
b4e70030
JB
929 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=.
931 else
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 fi ;;
934 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 935 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
936 ac_top_srcdir=$srcdir ;;
937 *) # Relative path.
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940esac
941
942# Do not use `cd foo && pwd` to compute absolute paths, because
943# the directories may not exist.
944case `pwd` in
945.) ac_abs_builddir="$ac_dir";;
946*)
947 case "$ac_dir" in
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_top_builddir=${ac_top_builddir}.;;
955*)
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_srcdir=$ac_srcdir;;
964*)
965 case $ac_srcdir in
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 esac;;
970esac
971case $ac_abs_builddir in
972.) ac_abs_top_srcdir=$ac_top_srcdir;;
973*)
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978 esac;;
bec39cab
AC
979esac
980
b4e70030
JB
981 cd $ac_dir
982 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 983 if test -f $ac_srcdir/configure.gnu; then
b4e70030 984 echo
bec39cab
AC
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
b4e70030 987 echo
bec39cab 988 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
991 echo
992 $ac_configure --help
3ace7edb 993 else
bec39cab 994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
995 fi
996 cd $ac_popdir
bec39cab
AC
997 done
998fi
999
b4e70030 1000test -n "$ac_init_help" && exit 0
bec39cab
AC
1001if $ac_init_version; then
1002 cat <<\_ACEOF
1003
b4e70030 1004Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1005This configure script is free software; the Free Software Foundation
1006gives unlimited permission to copy, distribute and modify it.
1007_ACEOF
b4e70030 1008 exit 0
bec39cab 1009fi
b4e70030
JB
1010exec 5>config.log
1011cat >&5 <<_ACEOF
bec39cab
AC
1012This file contains any messages produced by compilers while
1013running configure, to aid debugging if configure makes a mistake.
1014
1015It was created by $as_me, which was
b4e70030 1016generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1017
1018 $ $0 $@
1019
1020_ACEOF
1021{
1022cat <<_ASUNAME
1023## --------- ##
1024## Platform. ##
1025## --------- ##
1026
1027hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032
1033/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1035
1036/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1039hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1040/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1043
1044_ASUNAME
1045
1046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1047for as_dir in $PATH
1048do
1049 IFS=$as_save_IFS
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1052done
1053
1054} >&5
1055
1056cat >&5 <<_ACEOF
1057
1058
1059## ----------- ##
1060## Core tests. ##
1061## ----------- ##
1062
1063_ACEOF
1064
1065
1066# Keep a trace of the command line.
1067# Strip out --no-create and --no-recursion so they do not pile up.
1068# Strip out --silent because we don't want to record it for future runs.
1069# Also quote any args containing shell meta-characters.
1070# Make two passes to allow for proper duplicate-argument suppression.
1071ac_configure_args=
1072ac_configure_args0=
1073ac_configure_args1=
1074ac_sep=
1075ac_must_keep_next=false
1076for ac_pass in 1 2
1077do
1078 for ac_arg
1079 do
1080 case $ac_arg in
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 continue ;;
b4e70030 1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087 esac
1088 case $ac_pass in
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 2)
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1094 else
1095 case $ac_arg in
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 esac
1103 ;;
1104 -* ) ac_must_keep_next=true ;;
1105 esac
1106 fi
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1109 ac_sep=" "
1110 ;;
1111 esac
1112 done
1113done
1114$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116
1117# When interrupted or exit'd, cleanup temporary files, and complete
1118# config.log. We remove comments because anyway the quotes in there
1119# would cause problems or look ugly.
b4e70030
JB
1120# WARNING: Be sure not to use single quotes in there, as some shells,
1121# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1122trap 'exit_status=$?
1123 # Save into config.log some information that might help in debugging.
1124 {
1125 echo
1126
1127 cat <<\_ASBOX
1128## ---------------- ##
1129## Cache variables. ##
1130## ---------------- ##
1131_ASBOX
1132 echo
1133 # The following way of writing the cache mishandles newlines in values,
b4e70030 1134{
bec39cab 1135 (set) 2>&1 |
b4e70030
JB
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 *ac_space=\ *)
bec39cab 1138 sed -n \
b4e70030
JB
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 ;;
bec39cab 1142 *)
b4e70030
JB
1143 sed -n \
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1145 ;;
b4e70030
JB
1146 esac;
1147}
bec39cab
AC
1148 echo
1149
1150 cat <<\_ASBOX
1151## ----------------- ##
1152## Output variables. ##
1153## ----------------- ##
1154_ASBOX
1155 echo
1156 for ac_var in $ac_subst_vars
1157 do
b4e70030
JB
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1160 done | sort
1161 echo
1162
1163 if test -n "$ac_subst_files"; then
1164 cat <<\_ASBOX
b4e70030
JB
1165## ------------- ##
1166## Output files. ##
1167## ------------- ##
bec39cab
AC
1168_ASBOX
1169 echo
1170 for ac_var in $ac_subst_files
1171 do
b4e70030
JB
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1174 done | sort
1175 echo
1176 fi
1177
1178 if test -s confdefs.h; then
1179 cat <<\_ASBOX
1180## ----------- ##
1181## confdefs.h. ##
1182## ----------- ##
1183_ASBOX
1184 echo
b4e70030 1185 sed "/^$/d" confdefs.h | sort
bec39cab 1186 echo
3ace7edb 1187 fi
bec39cab
AC
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1191 } >&5
b4e70030
JB
1192 rm -f core *.core &&
1193 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1194 exit $exit_status
b4e70030 1195 ' 0
bec39cab
AC
1196for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1198done
1199ac_signal=0
1200
1201# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1202rm -rf conftest* confdefs.h
1203# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204echo >confdefs.h
bec39cab
AC
1205
1206# Predefined preprocessor variables.
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_NAME "$PACKAGE_NAME"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_VERSION "$PACKAGE_VERSION"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_STRING "$PACKAGE_STRING"
1225_ACEOF
1226
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1230_ACEOF
1231
1232
1233# Let the site file select an alternate cache file if it wants to.
1234# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1235if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 else
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 fi
c906108c 1241fi
b4e70030 1242for ac_site_file in $CONFIG_SITE; do
c906108c 1243 if test -r "$ac_site_file"; then
bec39cab
AC
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1247 . "$ac_site_file"
1248 fi
1249done
1250
1251if test -r "$cache_file"; then
bec39cab
AC
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256echo "$as_me: loading cache $cache_file" >&6;}
1257 case $cache_file in
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1260 esac
1261 fi
c906108c 1262else
bec39cab
AC
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264echo "$as_me: creating cache $cache_file" >&6;}
1265 >$cache_file
1266fi
1267
1268# Check that the precious variables saved in the cache have kept the same
1269# value.
1270ac_cache_corrupted=false
b4e70030
JB
1271for ac_var in `(set) 2>&1 |
1272 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1277 case $ac_old_set,$ac_new_set in
1278 set,)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,set)
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1286 ,);;
1287 *)
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292echo "$as_me: former value: $ac_old_val" >&2;}
1293 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294echo "$as_me: current value: $ac_new_val" >&2;}
1295 ac_cache_corrupted=:
1296 fi;;
1297 esac
1298 # Pass precious variables to config.status.
1299 if test "$ac_new_set" = set; then
1300 case $ac_new_val in
b4e70030
JB
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1303 *) ac_arg=$ac_var=$ac_new_val ;;
1304 esac
1305 case " $ac_configure_args " in
1306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1308 esac
1309 fi
1310done
1311if $ac_cache_corrupted; then
1312 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316 { (exit 1); exit 1; }; }
c906108c
SS
1317fi
1318
b4e70030
JB
1319ac_ext=c
1320ac_cpp='$CPP $CPPFLAGS'
1321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1324
1325
bec39cab
AC
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
bec39cab 1342
b4e70030
JB
1343 ac_config_headers="$ac_config_headers config.h:config.in"
1344
1345echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1346echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1347 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1348if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1349 enableval="$enable_maintainer_mode"
1350 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1351else
1352 USE_MAINTAINER_MODE=no
b4e70030
JB
1353fi;
1354 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1355echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1356
413ccac7
AC
1357
1358if test $USE_MAINTAINER_MODE = yes; then
1359 MAINTAINER_MODE_TRUE=
1360 MAINTAINER_MODE_FALSE='#'
1361else
1362 MAINTAINER_MODE_TRUE='#'
1363 MAINTAINER_MODE_FALSE=
1364fi
85981d60 1365
413ccac7 1366 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1367
c906108c 1368
bec39cab
AC
1369
1370ac_ext=c
1371ac_cpp='$CPP $CPPFLAGS'
1372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1378echo "$as_me:$LINENO: checking for $ac_word" >&5
1379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1380if test "${ac_cv_prog_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC="$CC" # Let the user override the test.
1385else
1386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387for as_dir in $PATH
1388do
1389 IFS=$as_save_IFS
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395 break 2
1396 fi
1397done
1398done
1399
1400fi
1401fi
1402CC=$ac_cv_prog_CC
1403if test -n "$CC"; then
b4e70030
JB
1404 echo "$as_me:$LINENO: result: $CC" >&5
1405echo "${ECHO_T}$CC" >&6
bec39cab 1406else
b4e70030
JB
1407 echo "$as_me:$LINENO: result: no" >&5
1408echo "${ECHO_T}no" >&6
bec39cab
AC
1409fi
1410
1411fi
1412if test -z "$ac_cv_prog_CC"; then
1413 ac_ct_CC=$CC
1414 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1415set dummy gcc; ac_word=$2
b4e70030
JB
1416echo "$as_me:$LINENO: checking for $ac_word" >&5
1417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1418if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
1421 if test -n "$ac_ct_CC"; then
1422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1423else
1424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425for as_dir in $PATH
1426do
1427 IFS=$as_save_IFS
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1431 ac_cv_prog_ac_ct_CC="gcc"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 break 2
1434 fi
1435done
1436done
1437
1438fi
1439fi
1440ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441if test -n "$ac_ct_CC"; then
b4e70030
JB
1442 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1444else
b4e70030
JB
1445 echo "$as_me:$LINENO: result: no" >&5
1446echo "${ECHO_T}no" >&6
bec39cab
AC
1447fi
1448
b4e70030 1449 CC=$ac_ct_CC
bec39cab
AC
1450else
1451 CC="$ac_cv_prog_CC"
1452fi
1453
1454if test -z "$CC"; then
b4e70030
JB
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1457set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1458echo "$as_me:$LINENO: checking for $ac_word" >&5
1459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1460if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1462else
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1465else
bec39cab
AC
1466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467for as_dir in $PATH
1468do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1473 ac_cv_prog_CC="${ac_tool_prefix}cc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 break 2
1476 fi
1477done
1478done
1479
c906108c
SS
1480fi
1481fi
bec39cab 1482CC=$ac_cv_prog_CC
c906108c 1483if test -n "$CC"; then
b4e70030
JB
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485echo "${ECHO_T}$CC" >&6
c906108c 1486else
b4e70030
JB
1487 echo "$as_me:$LINENO: result: no" >&5
1488echo "${ECHO_T}no" >&6
c906108c
SS
1489fi
1490
b4e70030
JB
1491fi
1492if test -z "$ac_cv_prog_CC"; then
1493 ac_ct_CC=$CC
1494 # Extract the first word of "cc", so it can be a program name with args.
1495set dummy cc; ac_word=$2
1496echo "$as_me:$LINENO: checking for $ac_word" >&5
1497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503else
1504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505for as_dir in $PATH
1506do
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 break 2
4e8d927d 1514 fi
b4e70030
JB
1515done
1516done
1517
1518fi
1519fi
1520ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523echo "${ECHO_T}$ac_ct_CC" >&6
1524else
1525 echo "$as_me:$LINENO: result: no" >&5
1526echo "${ECHO_T}no" >&6
1527fi
1528
1529 CC=$ac_ct_CC
1530else
1531 CC="$ac_cv_prog_CC"
1532fi
1533
bec39cab 1534fi
c906108c
SS
1535if test -z "$CC"; then
1536 # Extract the first word of "cc", so it can be a program name with args.
1537set dummy cc; ac_word=$2
b4e70030
JB
1538echo "$as_me:$LINENO: checking for $ac_word" >&5
1539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1540if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1542else
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1545else
c906108c 1546 ac_prog_rejected=no
bec39cab
AC
1547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548for as_dir in $PATH
1549do
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555 ac_prog_rejected=yes
1556 continue
1557 fi
1558 ac_cv_prog_CC="cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562done
1563done
1564
c906108c
SS
1565if test $ac_prog_rejected = yes; then
1566 # We found a bogon in the path, so make sure we never use it.
1567 set dummy $ac_cv_prog_CC
1568 shift
bec39cab 1569 if test $# != 0; then
c906108c
SS
1570 # We chose a different compiler from the bogus one.
1571 # However, it has the same basename, so the bogon will be chosen
1572 # first if we set CC to just the basename; use the full file name.
1573 shift
bec39cab 1574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1575 fi
1576fi
1577fi
1578fi
bec39cab 1579CC=$ac_cv_prog_CC
c906108c 1580if test -n "$CC"; then
b4e70030
JB
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582echo "${ECHO_T}$CC" >&6
c906108c 1583else
b4e70030
JB
1584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
c906108c
SS
1586fi
1587
bec39cab
AC
1588fi
1589if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
b4e70030 1591 for ac_prog in cl
bec39cab
AC
1592 do
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1595echo "$as_me:$LINENO: checking for $ac_word" >&5
1596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1597if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1599else
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1602else
bec39cab
AC
1603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604for as_dir in $PATH
1605do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 break 2
1613 fi
1614done
1615done
1616
c906108c
SS
1617fi
1618fi
bec39cab 1619CC=$ac_cv_prog_CC
c906108c 1620if test -n "$CC"; then
b4e70030
JB
1621 echo "$as_me:$LINENO: result: $CC" >&5
1622echo "${ECHO_T}$CC" >&6
c906108c 1623else
b4e70030
JB
1624 echo "$as_me:$LINENO: result: no" >&5
1625echo "${ECHO_T}no" >&6
c906108c 1626fi
bec39cab
AC
1627
1628 test -n "$CC" && break
1629 done
1630fi
1631if test -z "$CC"; then
1632 ac_ct_CC=$CC
b4e70030 1633 for ac_prog in cl
bec39cab
AC
1634do
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636set dummy $ac_prog; ac_word=$2
b4e70030
JB
1637echo "$as_me:$LINENO: checking for $ac_word" >&5
1638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644else
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1652 ac_cv_prog_ac_ct_CC="$ac_prog"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
c906108c 1655 fi
bec39cab
AC
1656done
1657done
1658
1659fi
1660fi
1661ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662if test -n "$ac_ct_CC"; then
b4e70030
JB
1663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1665else
b4e70030
JB
1666 echo "$as_me:$LINENO: result: no" >&5
1667echo "${ECHO_T}no" >&6
c906108c
SS
1668fi
1669
bec39cab
AC
1670 test -n "$ac_ct_CC" && break
1671done
c906108c 1672
b4e70030 1673 CC=$ac_ct_CC
bec39cab
AC
1674fi
1675
1676fi
1677
1678
1679test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680See \`config.log' for more details." >&5
1681echo "$as_me: error: no acceptable C compiler found in \$PATH
1682See \`config.log' for more details." >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685# Provide some information about the compiler.
b4e70030
JB
1686echo "$as_me:$LINENO:" \
1687 "checking for C compiler version" >&5
bec39cab 1688ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1689{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1691 ac_status=$?
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
b4e70030
JB
1694{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1696 ac_status=$?
1697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698 (exit $ac_status); }
b4e70030
JB
1699{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704
1705cat >conftest.$ac_ext <<_ACEOF
1706/* confdefs.h. */
1707_ACEOF
1708cat confdefs.h >>conftest.$ac_ext
1709cat >>conftest.$ac_ext <<_ACEOF
1710/* end confdefs.h. */
1711
1712int
1713main ()
1714{
1715
1716 ;
1717 return 0;
1718}
1719_ACEOF
1720ac_clean_files_save=$ac_clean_files
b4e70030 1721ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1722# Try to create an executable without -o first, disregard a.out.
1723# It will help us diagnose broken compilers, and finding out an intuition
1724# of exeext.
b4e70030
JB
1725echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1726echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1727ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1729 (eval $ac_link_default) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }; then
b4e70030
JB
1733 # Find the output, starting from the most likely. This scheme is
1734# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1735# resort.
1736
1737# Be careful to initialize this variable, since it used to be cached.
1738# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1739ac_cv_exeext=
1740# b.out is created by i960 compilers.
1741for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1742do
1743 test -f "$ac_file" || continue
1744 case $ac_file in
b4e70030
JB
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1746 ;;
1747 conftest.$ac_ext )
1748 # This is the source file.
1749 ;;
1750 [ab].out )
1751 # We found the default executable, but exeext='' is most
1752 # certainly right.
1753 break;;
1754 *.* )
1755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool,
1757 # but it would be cool to find out if it's true. Does anybody
1758 # maintain Libtool? --akim.
1759 export ac_cv_exeext
1760 break;;
1761 * )
1762 break;;
bec39cab
AC
1763 esac
1764done
1765else
1766 echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1770See \`config.log' for more details." >&5
1771echo "$as_me: error: C compiler cannot create executables
1772See \`config.log' for more details." >&2;}
1773 { (exit 77); exit 77; }; }
1774fi
1775
b4e70030
JB
1776ac_exeext=$ac_cv_exeext
1777echo "$as_me:$LINENO: result: $ac_file" >&5
1778echo "${ECHO_T}$ac_file" >&6
1779
1780# Check the compiler produces executables we can run. If not, either
bec39cab 1781# the compiler is broken, or we cross compile.
b4e70030
JB
1782echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1783echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1784# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785# If not cross compiling, check that we can run a simple program.
1786if test "$cross_compiling" != yes; then
1787 if { ac_try='./$ac_file'
1788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1793 cross_compiling=no
c906108c 1794 else
bec39cab
AC
1795 if test "$cross_compiling" = maybe; then
1796 cross_compiling=yes
1797 else
1798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1799If you meant to cross compile, use \`--host'.
1800See \`config.log' for more details." >&5
1801echo "$as_me: error: cannot run C compiled programs.
1802If you meant to cross compile, use \`--host'.
1803See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1805 fi
c906108c 1806 fi
bec39cab 1807fi
b4e70030
JB
1808echo "$as_me:$LINENO: result: yes" >&5
1809echo "${ECHO_T}yes" >&6
bec39cab 1810
b4e70030
JB
1811rm -f a.out a.exe conftest$ac_cv_exeext b.out
1812ac_clean_files=$ac_clean_files_save
1813# Check the compiler produces executables we can run. If not, either
1814# the compiler is broken, or we cross compile.
1815echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1816echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1817echo "$as_me:$LINENO: result: $cross_compiling" >&5
1818echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1819
b4e70030
JB
1820echo "$as_me:$LINENO: checking for suffix of executables" >&5
1821echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1823 (eval $ac_link) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
b4e70030
JB
1827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1828# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1829# work properly (i.e., refer to `conftest.exe'), while it won't with
1830# `rm'.
1831for ac_file in conftest.exe conftest conftest.*; do
1832 test -f "$ac_file" || continue
1833 case $ac_file in
1834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 export ac_cv_exeext
1837 break;;
1838 * ) break;;
1839 esac
1840done
c906108c 1841else
bec39cab
AC
1842 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1843See \`config.log' for more details." >&5
1844echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1845See \`config.log' for more details." >&2;}
1846 { (exit 1); exit 1; }; }
c906108c 1847fi
c906108c 1848
b4e70030
JB
1849rm -f conftest$ac_cv_exeext
1850echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1851echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1852
b4e70030 1853rm -f conftest.$ac_ext
bec39cab
AC
1854EXEEXT=$ac_cv_exeext
1855ac_exeext=$EXEEXT
b4e70030
JB
1856echo "$as_me:$LINENO: checking for suffix of object files" >&5
1857echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1858if test "${ac_cv_objext+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
b4e70030
JB
1861 cat >conftest.$ac_ext <<_ACEOF
1862/* confdefs.h. */
1863_ACEOF
1864cat confdefs.h >>conftest.$ac_ext
1865cat >>conftest.$ac_ext <<_ACEOF
1866/* end confdefs.h. */
1867
1868int
1869main ()
1870{
1871
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876rm -f conftest.o conftest.obj
bec39cab
AC
1877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1879 ac_status=$?
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
b4e70030 1882 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1883 case $ac_file in
b4e70030 1884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1886 break;;
1887 esac
1888done
c906108c 1889else
bec39cab
AC
1890 echo "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1894See \`config.log' for more details." >&5
1895echo "$as_me: error: cannot compute suffix of object files: cannot compile
1896See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
c906108c
SS
1898fi
1899
b4e70030 1900rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1901fi
b4e70030
JB
1902echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1903echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1904OBJEXT=$ac_cv_objext
1905ac_objext=$OBJEXT
b4e70030
JB
1906echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1907echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1908if test "${ac_cv_c_compiler_gnu+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1910else
bec39cab
AC
1911 cat >conftest.$ac_ext <<_ACEOF
1912/* confdefs.h. */
1913_ACEOF
1914cat confdefs.h >>conftest.$ac_ext
1915cat >>conftest.$ac_ext <<_ACEOF
1916/* end confdefs.h. */
1917
1918int
1919main ()
1920{
1921#ifndef __GNUC__
1922 choke me
1923#endif
1924
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929rm -f conftest.$ac_objext
1930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>conftest.er1
1932 ac_status=$?
1933 grep -v '^ *+' conftest.er1 >conftest.err
1934 rm -f conftest.er1
1935 cat conftest.err >&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); } &&
b4e70030
JB
1938 { ac_try='test -z "$ac_c_werror_flag"
1939 || test ! -s conftest.err'
bec39cab
AC
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 (eval $ac_try) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1951 ac_compiler_gnu=yes
1952else
1953 echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
b4e70030 1956ac_compiler_gnu=no
bec39cab
AC
1957fi
1958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1959ac_cv_c_compiler_gnu=$ac_compiler_gnu
1960
1961fi
b4e70030
JB
1962echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1963echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1964GCC=`test $ac_compiler_gnu = yes && echo yes`
1965ac_test_CFLAGS=${CFLAGS+set}
1966ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1967CFLAGS="-g"
1968echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1969echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1970if test "${ac_cv_prog_cc_g+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
b4e70030 1973 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979
1980int
1981main ()
1982{
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
b4e70030
JB
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
bec39cab
AC
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
c906108c
SS
2010 ac_cv_prog_cc_g=yes
2011else
bec39cab
AC
2012 echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2014
b4e70030 2015ac_cv_prog_cc_g=no
4e8d927d 2016fi
bec39cab
AC
2017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018fi
b4e70030
JB
2019echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2020echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2021if test "$ac_test_CFLAGS" = set; then
bec39cab 2022 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2023elif test $ac_cv_prog_cc_g = yes; then
2024 if test "$GCC" = yes; then
2025 CFLAGS="-g -O2"
2026 else
2027 CFLAGS="-g"
2028 fi
2029else
2030 if test "$GCC" = yes; then
2031 CFLAGS="-O2"
2032 else
2033 CFLAGS=
2034 fi
2035fi
b4e70030
JB
2036echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2037echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2038if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
b4e70030 2041 ac_cv_prog_cc_stdc=no
bec39cab
AC
2042ac_save_CC=$CC
2043cat >conftest.$ac_ext <<_ACEOF
2044/* confdefs.h. */
2045_ACEOF
2046cat confdefs.h >>conftest.$ac_ext
2047cat >>conftest.$ac_ext <<_ACEOF
2048/* end confdefs.h. */
c906108c
SS
2049#include <stdarg.h>
2050#include <stdio.h>
2051#include <sys/types.h>
2052#include <sys/stat.h>
2053/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2054struct buf { int x; };
2055FILE * (*rcsopen) (struct buf *, struct stat *, int);
2056static char *e (p, i)
2057 char **p;
2058 int i;
2059{
2060 return p[i];
2061}
2062static char *f (char * (*g) (char **, int), char **p, ...)
2063{
2064 char *s;
2065 va_list v;
2066 va_start (v,p);
2067 s = g (p, va_arg (v,int));
2068 va_end (v);
2069 return s;
2070}
bec39cab
AC
2071
2072/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2073 function prototypes and stuff, but not '\xHH' hex character constants.
2074 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2075 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2077 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2078 that's true only with -std1. */
bec39cab
AC
2079int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2080
c906108c
SS
2081int test (int i, double x);
2082struct s1 {int (*f) (int a);};
2083struct s2 {int (*f) (double a);};
2084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2085int argc;
2086char **argv;
bec39cab
AC
2087int
2088main ()
2089{
c906108c 2090return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2091 ;
2092 return 0;
2093}
2094_ACEOF
b4e70030
JB
2095# Don't try gcc -ansi; that turns off useful extensions and
2096# breaks some systems' header files.
2097# AIX -qlanglvl=ansi
2098# Ultrix and OSF/1 -std1
2099# HP-UX 10.20 and later -Ae
2100# HP-UX older versions -Aa -D_HPUX_SOURCE
2101# SVR4 -Xc -D__EXTENSIONS__
2102for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2103do
2104 CC="$ac_save_CC $ac_arg"
2105 rm -f conftest.$ac_objext
2106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2108 ac_status=$?
2109 grep -v '^ *+' conftest.er1 >conftest.err
2110 rm -f conftest.er1
2111 cat conftest.err >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
b4e70030
JB
2114 { ac_try='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
bec39cab
AC
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
b4e70030
JB
2127 ac_cv_prog_cc_stdc=$ac_arg
2128break
c906108c 2129else
bec39cab
AC
2130 echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
c906108c 2133fi
bec39cab 2134rm -f conftest.err conftest.$ac_objext
c906108c 2135done
b4e70030 2136rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2137CC=$ac_save_CC
c906108c
SS
2138
2139fi
b4e70030
JB
2140
2141case "x$ac_cv_prog_cc_stdc" in
2142 x|xno)
2143 echo "$as_me:$LINENO: result: none needed" >&5
2144echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2145 *)
b4e70030
JB
2146 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2147echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2148 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2149esac
2150
b4e70030
JB
2151# Some people use a C++ compiler to compile C. Since we use `exit',
2152# in C++ we need to declare it. In case someone uses the same compiler
2153# for both compiling C and C++ we need to have the C++ compiler decide
2154# the declaration of exit, since it's the most demanding environment.
2155cat >conftest.$ac_ext <<_ACEOF
2156#ifndef __cplusplus
2157 choke me
2158#endif
2159_ACEOF
2160rm -f conftest.$ac_objext
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2163 ac_status=$?
2164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 for ac_declaration in \
2183 '' \
2184 'extern "C" void std::exit (int) throw (); using std::exit;' \
2185 'extern "C" void std::exit (int); using std::exit;' \
2186 'extern "C" void exit (int) throw ();' \
2187 'extern "C" void exit (int);' \
2188 'void exit (int);'
2189do
2190 cat >conftest.$ac_ext <<_ACEOF
2191/* confdefs.h. */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h. */
2196$ac_declaration
2197#include <stdlib.h>
2198int
2199main ()
2200{
2201exit (42);
2202 ;
2203 return 0;
2204}
2205_ACEOF
2206rm -f conftest.$ac_objext
2207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag"
2216 || test ! -s conftest.err'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 :
2229else
2230 echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233continue
2234fi
2235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2236 cat >conftest.$ac_ext <<_ACEOF
2237/* confdefs.h. */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h. */
2242$ac_declaration
2243int
2244main ()
2245{
2246exit (42);
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251rm -f conftest.$ac_objext
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 break
2274else
2275 echo "$as_me: failed program was:" >&5
2276sed 's/^/| /' conftest.$ac_ext >&5
2277
2278fi
2279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280done
2281rm -f conftest*
2282if test -n "$ac_declaration"; then
2283 echo '#ifdef __cplusplus' >>confdefs.h
2284 echo $ac_declaration >>confdefs.h
2285 echo '#endif' >>confdefs.h
2286fi
2287
2288else
2289 echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2291
b4e70030
JB
2292fi
2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2299
60ca704f 2300
bec39cab
AC
2301cat >>confdefs.h <<\_ACEOF
2302#define _GNU_SOURCE 1
2303_ACEOF
c906108c
SS
2304
2305
8bb2c122 2306
bec39cab
AC
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2312echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2313echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2314# On Suns, sometimes $CPP names a directory.
2315if test -n "$CPP" && test -d "$CPP"; then
2316 CPP=
8bb2c122 2317fi
bec39cab
AC
2318if test -z "$CPP"; then
2319 if test "${ac_cv_prog_CPP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322 # Double quotes because CPP needs to be expanded
2323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2324 do
2325 ac_preproc_ok=false
2326for ac_c_preproc_warn_flag in '' yes
2327do
2328 # Use a header file that comes with gcc, so configuring glibc
2329 # with a fresh cross-compiler works.
2330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331 # <limits.h> exists even on freestanding compilers.
2332 # On the NeXT, cc -E runs the code through the compiler's parser,
2333 # not just through cpp. "Syntax error" is here to catch this case.
2334 cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
2340#ifdef __STDC__
2341# include <limits.h>
2342#else
2343# include <assert.h>
2344#endif
2345 Syntax error
2346_ACEOF
2347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2358 else
2359 ac_cpp_err=
2360 fi
8bb2c122 2361else
bec39cab 2362 ac_cpp_err=yes
8bb2c122 2363fi
bec39cab
AC
2364if test -z "$ac_cpp_err"; then
2365 :
8bb2c122 2366else
bec39cab
AC
2367 echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 # Broken: fails on valid input.
2371continue
2372fi
2373rm -f conftest.err conftest.$ac_ext
2374
b4e70030 2375 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2376 # can be detected and how.
2377 cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383#include <ac_nonexistent.h>
2384_ACEOF
2385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } >/dev/null; then
2393 if test -s conftest.err; then
2394 ac_cpp_err=$ac_c_preproc_warn_flag
2395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2396 else
2397 ac_cpp_err=
2398 fi
8bb2c122 2399else
bec39cab 2400 ac_cpp_err=yes
8bb2c122 2401fi
bec39cab
AC
2402if test -z "$ac_cpp_err"; then
2403 # Broken: success on invalid input.
2404continue
8bb2c122 2405else
bec39cab
AC
2406 echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2408
bec39cab
AC
2409 # Passes both tests.
2410ac_preproc_ok=:
2411break
8bb2c122 2412fi
bec39cab 2413rm -f conftest.err conftest.$ac_ext
8bb2c122 2414
bec39cab
AC
2415done
2416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2417rm -f conftest.err conftest.$ac_ext
2418if $ac_preproc_ok; then
2419 break
2420fi
8bb2c122 2421
bec39cab
AC
2422 done
2423 ac_cv_prog_CPP=$CPP
ddc9cd0f 2424
c906108c 2425fi
bec39cab
AC
2426 CPP=$ac_cv_prog_CPP
2427else
2428 ac_cv_prog_CPP=$CPP
c906108c 2429fi
b4e70030
JB
2430echo "$as_me:$LINENO: result: $CPP" >&5
2431echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2432ac_preproc_ok=false
2433for ac_c_preproc_warn_flag in '' yes
2434do
2435 # Use a header file that comes with gcc, so configuring glibc
2436 # with a fresh cross-compiler works.
2437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2438 # <limits.h> exists even on freestanding compilers.
2439 # On the NeXT, cc -E runs the code through the compiler's parser,
2440 # not just through cpp. "Syntax error" is here to catch this case.
2441 cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h. */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h. */
2447#ifdef __STDC__
2448# include <limits.h>
2449#else
2450# include <assert.h>
2451#endif
2452 Syntax error
2453_ACEOF
2454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2465 else
2466 ac_cpp_err=
2467 fi
c906108c 2468else
bec39cab 2469 ac_cpp_err=yes
c906108c 2470fi
bec39cab
AC
2471if test -z "$ac_cpp_err"; then
2472 :
c906108c 2473else
bec39cab
AC
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 # Broken: fails on valid input.
2478continue
2479fi
2480rm -f conftest.err conftest.$ac_ext
2481
b4e70030 2482 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2483 # can be detected and how.
2484 cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490#include <ac_nonexistent.h>
2491_ACEOF
2492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2503 else
2504 ac_cpp_err=
2505 fi
c906108c 2506else
bec39cab 2507 ac_cpp_err=yes
c906108c 2508fi
bec39cab
AC
2509if test -z "$ac_cpp_err"; then
2510 # Broken: success on invalid input.
2511continue
c906108c 2512else
bec39cab
AC
2513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2515
bec39cab
AC
2516 # Passes both tests.
2517ac_preproc_ok=:
2518break
c906108c 2519fi
bec39cab 2520rm -f conftest.err conftest.$ac_ext
c906108c 2521
bec39cab
AC
2522done
2523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2524rm -f conftest.err conftest.$ac_ext
2525if $ac_preproc_ok; then
c906108c
SS
2526 :
2527else
bec39cab
AC
2528 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2529See \`config.log' for more details." >&5
2530echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2531See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
c906108c 2533fi
c906108c 2534
bec39cab
AC
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
b4e70030
JB
2542echo "$as_me:$LINENO: checking for egrep" >&5
2543echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2544if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
b4e70030
JB
2547 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2548 then ac_cv_prog_egrep='grep -E'
2549 else ac_cv_prog_egrep='egrep'
bec39cab 2550 fi
4e8d927d 2551fi
b4e70030
JB
2552echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2553echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2554 EGREP=$ac_cv_prog_egrep
c906108c 2555
bec39cab
AC
2556
2557
b4e70030
JB
2558echo "$as_me:$LINENO: checking for AIX" >&5
2559echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2560cat >conftest.$ac_ext <<_ACEOF
2561/* confdefs.h. */
2562_ACEOF
2563cat confdefs.h >>conftest.$ac_ext
2564cat >>conftest.$ac_ext <<_ACEOF
2565/* end confdefs.h. */
2566#ifdef _AIX
2567 yes
2568#endif
2569
2570_ACEOF
c906108c 2571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2572 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2573 echo "$as_me:$LINENO: result: yes" >&5
2574echo "${ECHO_T}yes" >&6
bec39cab
AC
2575cat >>confdefs.h <<\_ACEOF
2576#define _ALL_SOURCE 1
2577_ACEOF
2578
c906108c 2579else
b4e70030
JB
2580 echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
c906108c
SS
2582fi
2583rm -f conftest*
2584
c906108c 2585
b4e70030
JB
2586echo "$as_me:$LINENO: checking for library containing strerror" >&5
2587echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2588if test "${ac_cv_search_strerror+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2590else
bec39cab 2591 ac_func_search_save_LIBS=$LIBS
b4e70030 2592ac_cv_search_strerror=no
bec39cab
AC
2593cat >conftest.$ac_ext <<_ACEOF
2594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
c906108c 2599
b4e70030 2600/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2601#ifdef __cplusplus
2602extern "C"
2603#endif
b4e70030
JB
2604/* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
bec39cab
AC
2606char strerror ();
2607int
2608main ()
2609{
b4e70030 2610strerror ();
bec39cab
AC
2611 ;
2612 return 0;
2613}
2614_ACEOF
b4e70030 2615rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
b4e70030
JB
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
bec39cab
AC
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest$ac_exeext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
b4e70030 2637 ac_cv_search_strerror="none required"
c906108c 2638else
bec39cab
AC
2639 echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2641
2642fi
bec39cab 2643rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2644 conftest$ac_exeext conftest.$ac_ext
2645if test "$ac_cv_search_strerror" = no; then
2646 for ac_lib in cposix; do
2647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2648 cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h. */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h. */
2654
2655/* Override any gcc2 internal prototype to avoid an error. */
2656#ifdef __cplusplus
2657extern "C"
2658#endif
2659/* We use char because int might match the return type of a gcc2
2660 builtin and then its argument prototype would still apply. */
2661char strerror ();
2662int
2663main ()
2664{
2665strerror ();
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext conftest$ac_exeext
2671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672 (eval $ac_link) 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest$ac_exeext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_search_strerror="-l$ac_lib"
2693break
4e8d927d 2694else
b4e70030
JB
2695 echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698fi
2699rm -f conftest.err conftest.$ac_objext \
2700 conftest$ac_exeext conftest.$ac_ext
2701 done
c906108c 2702fi
bec39cab 2703LIBS=$ac_func_search_save_LIBS
c906108c 2704fi
b4e70030
JB
2705echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2706echo "${ECHO_T}$ac_cv_search_strerror" >&6
2707if test "$ac_cv_search_strerror" != no; then
2708 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2709
c906108c
SS
2710fi
2711
c906108c 2712
c906108c 2713
bec39cab 2714
b4e70030
JB
2715echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2716echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2717if test "${am_cv_prog_cc_stdc+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2719else
bec39cab
AC
2720 am_cv_prog_cc_stdc=no
2721ac_save_CC="$CC"
2722# Don't try gcc -ansi; that turns off useful extensions and
2723# breaks some systems' header files.
2724# AIX -qlanglvl=ansi
2725# Ultrix and OSF/1 -std1
2726# HP-UX 10.20 and later -Ae
2727# HP-UX older versions -Aa -D_HPUX_SOURCE
2728# SVR4 -Xc -D__EXTENSIONS__
2729for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730do
2731 CC="$ac_save_CC $ac_arg"
2732 cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h. */
2738#include <stdarg.h>
2739#include <stdio.h>
2740#include <sys/types.h>
2741#include <sys/stat.h>
2742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743struct buf { int x; };
2744FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745static char *e (p, i)
2746 char **p;
2747 int i;
2748{
2749 return p[i];
2750}
2751static char *f (char * (*g) (char **, int), char **p, ...)
2752{
2753 char *s;
2754 va_list v;
2755 va_start (v,p);
2756 s = g (p, va_arg (v,int));
2757 va_end (v);
2758 return s;
2759}
2760int test (int i, double x);
2761struct s1 {int (*f) (int a);};
2762struct s2 {int (*f) (double a);};
2763int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764int argc;
2765char **argv;
c906108c 2766
bec39cab
AC
2767int
2768main ()
2769{
c906108c 2770
bec39cab 2771return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2772
bec39cab
AC
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
b4e70030
JB
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
bec39cab
AC
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2800else
bec39cab
AC
2801 echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2803
2804fi
bec39cab
AC
2805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806done
2807CC="$ac_save_CC"
c906108c
SS
2808
2809fi
2810
bec39cab 2811if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2812 echo "$as_me:$LINENO: result: none needed" >&5
2813echo "${ECHO_T}none needed" >&6
c906108c 2814else
b4e70030
JB
2815 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2816echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2817fi
bec39cab
AC
2818case "x$am_cv_prog_cc_stdc" in
2819 x|xno) ;;
2820 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2821esac
c906108c 2822
c906108c 2823
bec39cab
AC
2824ac_aux_dir=
2825for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2826 if test -f $ac_dir/install-sh; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install-sh -c"
2829 break
2830 elif test -f $ac_dir/install.sh; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/install.sh -c"
2833 break
2834 elif test -f $ac_dir/shtool; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/shtool install -c"
2837 break
2838 fi
2839done
2840if test -z "$ac_aux_dir"; then
2841 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2842echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2843 { (exit 1); exit 1; }; }
c906108c 2844fi
bec39cab
AC
2845ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2846ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2847ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2848
bec39cab
AC
2849# Make sure we can run config.sub.
2850$ac_config_sub sun4 >/dev/null 2>&1 ||
2851 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2852echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2853 { (exit 1); exit 1; }; }
2854
b4e70030
JB
2855echo "$as_me:$LINENO: checking build system type" >&5
2856echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2857if test "${ac_cv_build+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
b4e70030
JB
2860 ac_cv_build_alias=$build_alias
2861test -z "$ac_cv_build_alias" &&
2862 ac_cv_build_alias=`$ac_config_guess`
2863test -z "$ac_cv_build_alias" &&
bec39cab
AC
2864 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2865echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2866 { (exit 1); exit 1; }; }
b4e70030
JB
2867ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2869echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2870 { (exit 1); exit 1; }; }
2871
2872fi
b4e70030
JB
2873echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2874echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2875build=$ac_cv_build
b4e70030
JB
2876build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2877build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2878build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2879
2880
b4e70030
JB
2881echo "$as_me:$LINENO: checking host system type" >&5
2882echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2883if test "${ac_cv_host+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
b4e70030
JB
2886 ac_cv_host_alias=$host_alias
2887test -z "$ac_cv_host_alias" &&
2888 ac_cv_host_alias=$ac_cv_build_alias
2889ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2890 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2891echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2892 { (exit 1); exit 1; }; }
2893
2894fi
b4e70030
JB
2895echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2896echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2897host=$ac_cv_host
b4e70030
JB
2898host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2899host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2900host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2901
2902
b4e70030
JB
2903echo "$as_me:$LINENO: checking target system type" >&5
2904echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2905if test "${ac_cv_target+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
b4e70030
JB
2908 ac_cv_target_alias=$target_alias
2909test "x$ac_cv_target_alias" = "x" &&
2910 ac_cv_target_alias=$ac_cv_host_alias
2911ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2912 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2913echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2914 { (exit 1); exit 1; }; }
2915
2916fi
b4e70030
JB
2917echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2918echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2919target=$ac_cv_target
b4e70030
JB
2920target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2921target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2922target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2923
c906108c 2924
bec39cab
AC
2925# The aliases save the names the user supplied, while $host etc.
2926# will get canonicalized.
2927test -n "$target_alias" &&
2928 test "$program_prefix$program_suffix$program_transform_name" = \
2929 NONENONEs,x,x, &&
2930 program_prefix=${target_alias}-
c906108c 2931
c906108c 2932
bec39cab
AC
2933CONFIG_OBS=
2934CONFIG_DEPS=
2935CONFIG_SRCS=
2936ENABLE_CFLAGS=
c906108c 2937
bec39cab
AC
2938CONFIG_ALL=
2939CONFIG_CLEAN=
2940CONFIG_INSTALL=
2941CONFIG_UNINSTALL=
2942
20e95c23
DJ
2943# If we haven't got the data from the intl directory,
2944# assume NLS is disabled.
2945USE_NLS=no
2946LIBINTL=
2947LIBINTL_DEP=
2948INCINTL=
2949XGETTEXT=
2950GMSGFMT=
2951POSUB=
3841debe
DJ
2952
2953if test -f ../intl/config.intl; then
2954 . ../intl/config.intl
20e95c23
DJ
2955fi
2956echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2957echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2958if test x"$USE_NLS" != xyes; then
b4e70030
JB
2959 echo "$as_me:$LINENO: result: no" >&5
2960echo "${ECHO_T}no" >&6
c906108c 2961else
20e95c23
DJ
2962 echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6
c906108c 2964
20e95c23
DJ
2965cat >>confdefs.h <<\_ACEOF
2966#define ENABLE_NLS 1
bec39cab 2967_ACEOF
c906108c 2968
c906108c 2969
20e95c23
DJ
2970 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2971echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2972 # Look for .po and .gmo files in the source directory.
2973 CATALOGS=
2974 XLINGUAS=
2975 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2976 # If there aren't any .gmo files the shell will give us the
2977 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2978 # weeded out.
2979 case "$cat" in *\**)
2980 continue;;
2981 esac
2982 # The quadruple backslash is collapsed to a double backslash
2983 # by the backticks, then collapsed again by the double quotes,
2984 # leaving us with one backslash in the sed expression (right
2985 # before the dot that mustn't act as a wildcard).
2986 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2987 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2988 # The user is allowed to set LINGUAS to a list of languages to
2989 # install catalogs for. If it's empty that means "all of them."
2990 if test "x$LINGUAS" = x; then
2991 CATALOGS="$CATALOGS $cat"
2992 XLINGUAS="$XLINGUAS $lang"
2993 else
2994 case "$LINGUAS" in *$lang*)
2995 CATALOGS="$CATALOGS $cat"
2996 XLINGUAS="$XLINGUAS $lang"
2997 ;;
2998 esac
2999 fi
3000 done
3001 LINGUAS="$XLINGUAS"
3002 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3003echo "${ECHO_T}$LINGUAS" >&6
c906108c 3004
c906108c 3005
20e95c23 3006 DATADIRNAME=share
c906108c 3007
20e95c23 3008 INSTOBJEXT=.mo
c906108c 3009
20e95c23
DJ
3010 GENCAT=gencat
3011
3012 CATOBJEXT=.gmo
3013
3014fi
3015
3016localedir='${datadir}/locale'
c906108c 3017
bec39cab 3018
20e95c23 3019if test x"$USE_NLS" = xyes; then
bec39cab
AC
3020 CONFIG_ALL="$CONFIG_ALL all-po"
3021 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3022 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3023 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3024fi
3025
3026PACKAGE=gdb
3027
3028cat >>confdefs.h <<_ACEOF
3029#define PACKAGE "$PACKAGE"
3030_ACEOF
3031
3032
3033
3034debugdir=${libdir}/debug
3035
3036
b4e70030 3037# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 3038if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
3039 withval="$with_separate_debug_dir"
3040 debugdir="${withval}"
3041fi;
bec39cab
AC
3042
3043
3044 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3046 ac_define_dir=`eval echo $debugdir`
3047 ac_define_dir=`eval echo $ac_define_dir`
3048
3049cat >>confdefs.h <<_ACEOF
3050#define DEBUGDIR "$ac_define_dir"
3051_ACEOF
3052
3053
3054#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3055
b4e70030
JB
3056
3057
bec39cab
AC
3058subdirs="$subdirs doc testsuite"
3059
3060
121ce6e5
DJ
3061# Provide defaults for some variables set by the per-host and per-target
3062# configuration.
3063gdb_host_obs=posix-hdep.o
3064
bec39cab
AC
3065. $srcdir/configure.host
3066
3067. $srcdir/configure.tgt
3068
3069# Fetch the default architecture and default target vector from BFD.
3070targ=$target; . $srcdir/../bfd/config.bfd
3071
3072# We only want the first architecture, so strip off the others if
3073# there is more than one.
3074targ_archs=`echo $targ_archs | sed 's/ .*//'`
3075
3076if test "x$targ_archs" != x; then
3077
3078cat >>confdefs.h <<_ACEOF
3079#define DEFAULT_BFD_ARCH $targ_archs
3080_ACEOF
3081
3082fi
3083if test "x$targ_defvec" != x; then
3084
3085cat >>confdefs.h <<_ACEOF
3086#define DEFAULT_BFD_VEC $targ_defvec
3087_ACEOF
3088
3089fi
3090
3091test "$program_prefix" != NONE &&
b4e70030 3092 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3093# Use a double $ so make ignores it.
3094test "$program_suffix" != NONE &&
b4e70030 3095 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3096# Double any \ or $. echo might interpret backslashes.
3097# By default was `s,x,x', remove it if useless.
3098cat <<\_ACEOF >conftest.sed
3099s/[\\$]/&&/g;s/;s,x,x,$//
3100_ACEOF
3101program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3102rm conftest.sed
bec39cab
AC
3103
3104
3105# The CLI cannot be disabled yet, but may be in the future.
3106
3107# Enable CLI.
b4e70030 3108# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3109if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3110 enableval="$enable_gdbcli"
3111 case $enableval in
bec39cab
AC
3112 yes)
3113 ;;
3114 no)
3115 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3116echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3117 { (exit 1); exit 1; }; } ;;
3118 *)
3119 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3120echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3121 { (exit 1); exit 1; }; } ;;
3122 esac
3123else
3124 enable_gdbcli=yes
b4e70030 3125fi;
bec39cab
AC
3126if test x"$enable_gdbcli" = xyes; then
3127 if test -d $srcdir/cli; then
3128 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3129 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3130 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3131 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3132 fi
3133fi
3134
3135# Enable MI.
b4e70030 3136# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3137if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3138 enableval="$enable_gdbmi"
3139 case $enableval in
bec39cab
AC
3140 yes | no)
3141 ;;
3142 *)
3143 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3144echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3145 { (exit 1); exit 1; }; } ;;
3146 esac
3147else
3148 enable_gdbmi=yes
b4e70030 3149fi;
bec39cab
AC
3150if test x"$enable_gdbmi" = xyes; then
3151 if test -d $srcdir/mi; then
3152 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3153 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3154 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3155 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3156 fi
3157fi
3158
3159# Enable TUI.
b4e70030 3160# Check whether --enable-tui or --disable-tui was given.
bec39cab 3161if test "${enable_tui+set}" = set; then
b4e70030
JB
3162 enableval="$enable_tui"
3163 case $enableval in
bec39cab
AC
3164 yes | no)
3165 ;;
3166 *)
3167 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3168echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3169 { (exit 1); exit 1; }; } ;;
3170 esac
3171else
3172 enable_tui=yes
b4e70030 3173fi;
bec39cab
AC
3174
3175# Enable gdbtk.
b4e70030 3176# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3177if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3178 enableval="$enable_gdbtk"
3179 case $enableval in
bec39cab
AC
3180 yes | no)
3181 ;;
3182 *)
3183 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3184echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3185 { (exit 1); exit 1; }; } ;;
3186 esac
3187else
04ac69aa 3188 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3189 enable_gdbtk=yes
3190 else
3191 enable_gdbtk=no
3192 fi
b4e70030 3193fi;
bec39cab
AC
3194# We unconditionally disable gdbtk tests on selected platforms.
3195case $host_os in
3196 go32* | windows*)
3197 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3198echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3199 enable_gdbtk=no ;;
3200esac
3201
3202# Libunwind support.
20e95c23
DJ
3203echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3204echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3205if test "${ac_cv_header_stdc+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208 cat >conftest.$ac_ext <<_ACEOF
3209/* confdefs.h. */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h. */
3214#include <stdlib.h>
3215#include <stdarg.h>
3216#include <string.h>
3217#include <float.h>
3218
3219int
3220main ()
3221{
3222
3223 ;
3224 return 0;
3225}
3226_ACEOF
3227rm -f conftest.$ac_objext
3228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag"
3237 || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_header_stdc=yes
3250else
3251 echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254ac_cv_header_stdc=no
3255fi
3256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257
3258if test $ac_cv_header_stdc = yes; then
3259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3260 cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266#include <string.h>
3267
3268_ACEOF
3269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270 $EGREP "memchr" >/dev/null 2>&1; then
3271 :
3272else
3273 ac_cv_header_stdc=no
3274fi
3275rm -f conftest*
3276
3277fi
3278
3279if test $ac_cv_header_stdc = yes; then
3280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3281 cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
3287#include <stdlib.h>
3288
3289_ACEOF
3290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "free" >/dev/null 2>&1; then
3292 :
3293else
3294 ac_cv_header_stdc=no
3295fi
3296rm -f conftest*
3297
3298fi
3299
3300if test $ac_cv_header_stdc = yes; then
3301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3302 if test "$cross_compiling" = yes; then
3303 :
3304else
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311#include <ctype.h>
3312#if ((' ' & 0x0FF) == 0x020)
3313# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3314# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3315#else
3316# define ISLOWER(c) \
3317 (('a' <= (c) && (c) <= 'i') \
3318 || ('j' <= (c) && (c) <= 'r') \
3319 || ('s' <= (c) && (c) <= 'z'))
3320# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3321#endif
3322
3323#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3324int
3325main ()
3326{
3327 int i;
3328 for (i = 0; i < 256; i++)
3329 if (XOR (islower (i), ISLOWER (i))
3330 || toupper (i) != TOUPPER (i))
3331 exit(2);
3332 exit (0);
3333}
3334_ACEOF
3335rm -f conftest$ac_exeext
3336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3337 (eval $ac_link) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 :
3347else
3348 echo "$as_me: program exited with status $ac_status" >&5
3349echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352( exit $ac_status )
3353ac_cv_header_stdc=no
3354fi
3355rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3356fi
3357fi
3358fi
3359echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3360echo "${ECHO_T}$ac_cv_header_stdc" >&6
3361if test $ac_cv_header_stdc = yes; then
3362
3363cat >>confdefs.h <<\_ACEOF
3364#define STDC_HEADERS 1
3365_ACEOF
3366
3367fi
3368
3369# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3380 inttypes.h stdint.h unistd.h
3381do
3382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3383echo "$as_me:$LINENO: checking for $ac_header" >&5
3384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3385if eval "test \"\${$as_ac_Header+set}\" = set"; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388 cat >conftest.$ac_ext <<_ACEOF
3389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
3394$ac_includes_default
3395
3396#include <$ac_header>
3397_ACEOF
3398rm -f conftest.$ac_objext
3399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 eval "$as_ac_Header=yes"
3421else
3422 echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425eval "$as_ac_Header=no"
3426fi
3427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428fi
3429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3431if test `eval echo '${'$as_ac_Header'}'` = yes; then
3432 cat >>confdefs.h <<_ACEOF
3433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3434_ACEOF
3435
3436fi
3437
3438done
3439
3440
bec39cab 3441
b4e70030 3442# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3443if test "${with_libunwind+set}" = set; then
b4e70030
JB
3444 withval="$with_libunwind"
3445 case "${withval}" in
bec39cab
AC
3446 yes) enable_libunwind=yes ;;
3447 no) enable_libunwind=no ;;
3448 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3449echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3450 { (exit 1); exit 1; }; } ;;
3451esac
3452else
3453
3454
3455for ac_header in libunwind.h
3456do
3457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3458if eval "test \"\${$as_ac_Header+set}\" = set"; then
3459 echo "$as_me:$LINENO: checking for $ac_header" >&5
3460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3461if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463fi
b4e70030
JB
3464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3466else
3467 # Is the header compilable?
b4e70030
JB
3468echo "$as_me:$LINENO: checking $ac_header usability" >&5
3469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3470cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h. */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h. */
3476$ac_includes_default
3477#include <$ac_header>
3478_ACEOF
3479rm -f conftest.$ac_objext
3480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481 (eval $ac_compile) 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
b4e70030
JB
3488 { ac_try='test -z "$ac_c_werror_flag"
3489 || test ! -s conftest.err'
bec39cab
AC
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_header_compiler=yes
3502else
3503 echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
b4e70030 3506ac_header_compiler=no
bec39cab
AC
3507fi
3508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3510echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3511
3512# Is the header present?
b4e70030
JB
3513echo "$as_me:$LINENO: checking $ac_header presence" >&5
3514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3515cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
3521#include <$ac_header>
3522_ACEOF
3523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev/null; then
3531 if test -s conftest.err; then
3532 ac_cpp_err=$ac_c_preproc_warn_flag
3533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3534 else
3535 ac_cpp_err=
3536 fi
3537else
3538 ac_cpp_err=yes
3539fi
3540if test -z "$ac_cpp_err"; then
3541 ac_header_preproc=yes
3542else
3543 echo "$as_me: failed program was:" >&5
3544sed 's/^/| /' conftest.$ac_ext >&5
3545
3546 ac_header_preproc=no
3547fi
3548rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3550echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3551
3552# So? What about this header?
3553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3554 yes:no: )
3555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3559 ac_header_preproc=yes
3560 ;;
3561 no:yes:* )
3562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3574 (
3575 cat <<\_ASBOX
3576## ------------------------------------------ ##
3577## Report this to the AC_PACKAGE_NAME lists. ##
3578## ------------------------------------------ ##
3579_ASBOX
3580 ) |
3581 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3582 ;;
3583esac
b4e70030
JB
3584echo "$as_me:$LINENO: checking for $ac_header" >&5
3585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3586if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 eval "$as_ac_Header=\$ac_header_preproc"
3590fi
b4e70030
JB
3591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3593
3594fi
3595if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598_ACEOF
3599
3600fi
3601
3602done
3603
3604
3605for ac_header in libunwind-ia64.h
3606do
3607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3608if eval "test \"\${$as_ac_Header+set}\" = set"; then
3609 echo "$as_me:$LINENO: checking for $ac_header" >&5
3610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613fi
b4e70030
JB
3614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3616else
3617 # Is the header compilable?
b4e70030
JB
3618echo "$as_me:$LINENO: checking $ac_header usability" >&5
3619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3620cat >conftest.$ac_ext <<_ACEOF
3621/* confdefs.h. */
3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h. */
3626$ac_includes_default
3627#include <$ac_header>
3628_ACEOF
3629rm -f conftest.$ac_objext
3630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
b4e70030
JB
3638 { ac_try='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
bec39cab
AC
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 ac_header_compiler=yes
3652else
3653 echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
3655
b4e70030 3656ac_header_compiler=no
bec39cab
AC
3657fi
3658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3660echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3661
3662# Is the header present?
b4e70030
JB
3663echo "$as_me:$LINENO: checking $ac_header presence" >&5
3664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3665cat >conftest.$ac_ext <<_ACEOF
3666/* confdefs.h. */
3667_ACEOF
3668cat confdefs.h >>conftest.$ac_ext
3669cat >>conftest.$ac_ext <<_ACEOF
3670/* end confdefs.h. */
3671#include <$ac_header>
3672_ACEOF
3673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } >/dev/null; then
3681 if test -s conftest.err; then
3682 ac_cpp_err=$ac_c_preproc_warn_flag
3683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3684 else
3685 ac_cpp_err=
3686 fi
3687else
3688 ac_cpp_err=yes
3689fi
3690if test -z "$ac_cpp_err"; then
3691 ac_header_preproc=yes
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696 ac_header_preproc=no
3697fi
3698rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3700echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3701
3702# So? What about this header?
3703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3704 yes:no: )
3705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3709 ac_header_preproc=yes
3710 ;;
3711 no:yes:* )
3712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3724 (
3725 cat <<\_ASBOX
3726## ------------------------------------------ ##
3727## Report this to the AC_PACKAGE_NAME lists. ##
3728## ------------------------------------------ ##
3729_ASBOX
3730 ) |
3731 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3732 ;;
3733esac
b4e70030
JB
3734echo "$as_me:$LINENO: checking for $ac_header" >&5
3735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3736if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 eval "$as_ac_Header=\$ac_header_preproc"
3740fi
b4e70030
JB
3741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3743
3744fi
3745if test `eval echo '${'$as_ac_Header'}'` = yes; then
3746 cat >>confdefs.h <<_ACEOF
3747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3748_ACEOF
3749
3750fi
3751
3752done
3753
3754 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3755 enable_libunwind=yes;
3756 fi
3757
b4e70030 3758fi;
bec39cab
AC
3759
3760if test x"$enable_libunwind" = xyes; then
3761
3762for ac_header in libunwind.h
3763do
3764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3765if eval "test \"\${$as_ac_Header+set}\" = set"; then
3766 echo "$as_me:$LINENO: checking for $ac_header" >&5
3767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3768if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770fi
b4e70030
JB
3771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3773else
3774 # Is the header compilable?
b4e70030
JB
3775echo "$as_me:$LINENO: checking $ac_header usability" >&5
3776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3777cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783$ac_includes_default
3784#include <$ac_header>
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
b4e70030
JB
3795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
bec39cab
AC
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_header_compiler=yes
3809else
3810 echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
b4e70030 3813ac_header_compiler=no
bec39cab
AC
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3817echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3818
3819# Is the header present?
b4e70030
JB
3820echo "$as_me:$LINENO: checking $ac_header presence" >&5
3821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3822cat >conftest.$ac_ext <<_ACEOF
3823/* confdefs.h. */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h. */
3828#include <$ac_header>
3829_ACEOF
3830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null; then
3838 if test -s conftest.err; then
3839 ac_cpp_err=$ac_c_preproc_warn_flag
3840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3841 else
3842 ac_cpp_err=
3843 fi
3844else
3845 ac_cpp_err=yes
3846fi
3847if test -z "$ac_cpp_err"; then
3848 ac_header_preproc=yes
3849else
3850 echo "$as_me: failed program was:" >&5
3851sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 ac_header_preproc=no
3854fi
3855rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3857echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3858
3859# So? What about this header?
3860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3861 yes:no: )
3862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3866 ac_header_preproc=yes
3867 ;;
3868 no:yes:* )
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3881 (
3882 cat <<\_ASBOX
3883## ------------------------------------------ ##
3884## Report this to the AC_PACKAGE_NAME lists. ##
3885## ------------------------------------------ ##
3886_ASBOX
3887 ) |
3888 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3889 ;;
3890esac
b4e70030
JB
3891echo "$as_me:$LINENO: checking for $ac_header" >&5
3892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3893if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896 eval "$as_ac_Header=\$ac_header_preproc"
3897fi
b4e70030
JB
3898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3900
3901fi
3902if test `eval echo '${'$as_ac_Header'}'` = yes; then
3903 cat >>confdefs.h <<_ACEOF
3904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3905_ACEOF
3906
3907fi
3908
3909done
3910
3911
3912for ac_header in libunwind-ia64.h
3913do
3914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3915if eval "test \"\${$as_ac_Header+set}\" = set"; then
3916 echo "$as_me:$LINENO: checking for $ac_header" >&5
3917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3918if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920fi
b4e70030
JB
3921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3923else
3924 # Is the header compilable?
b4e70030
JB
3925echo "$as_me:$LINENO: checking $ac_header usability" >&5
3926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3927cat >conftest.$ac_ext <<_ACEOF
3928/* confdefs.h. */
3929_ACEOF
3930cat confdefs.h >>conftest.$ac_ext
3931cat >>conftest.$ac_ext <<_ACEOF
3932/* end confdefs.h. */
3933$ac_includes_default
3934#include <$ac_header>
3935_ACEOF
3936rm -f conftest.$ac_objext
3937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3938 (eval $ac_compile) 2>conftest.er1
3939 ac_status=$?
3940 grep -v '^ *+' conftest.er1 >conftest.err
3941 rm -f conftest.er1
3942 cat conftest.err >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } &&
b4e70030
JB
3945 { ac_try='test -z "$ac_c_werror_flag"
3946 || test ! -s conftest.err'
bec39cab
AC
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; } &&
3952 { ac_try='test -s conftest.$ac_objext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 ac_header_compiler=yes
3959else
3960 echo "$as_me: failed program was:" >&5
3961sed 's/^/| /' conftest.$ac_ext >&5
3962
b4e70030 3963ac_header_compiler=no
bec39cab
AC
3964fi
3965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3967echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3968
3969# Is the header present?
b4e70030
JB
3970echo "$as_me:$LINENO: checking $ac_header presence" >&5
3971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3972cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h. */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h. */
3978#include <$ac_header>
3979_ACEOF
3980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } >/dev/null; then
3988 if test -s conftest.err; then
3989 ac_cpp_err=$ac_c_preproc_warn_flag
3990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3991 else
3992 ac_cpp_err=
3993 fi
3994else
3995 ac_cpp_err=yes
3996fi
3997if test -z "$ac_cpp_err"; then
3998 ac_header_preproc=yes
3999else
4000 echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 ac_header_preproc=no
4004fi
4005rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4007echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4008
4009# So? What about this header?
4010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4011 yes:no: )
4012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4016 ac_header_preproc=yes
4017 ;;
4018 no:yes:* )
4019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4022echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4026echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4031 (
4032 cat <<\_ASBOX
4033## ------------------------------------------ ##
4034## Report this to the AC_PACKAGE_NAME lists. ##
4035## ------------------------------------------ ##
4036_ASBOX
4037 ) |
4038 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4039 ;;
4040esac
b4e70030
JB
4041echo "$as_me:$LINENO: checking for $ac_header" >&5
4042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4043if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 eval "$as_ac_Header=\$ac_header_preproc"
4047fi
b4e70030
JB
4048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4050
4051fi
4052if test `eval echo '${'$as_ac_Header'}'` = yes; then
4053 cat >>confdefs.h <<_ACEOF
4054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055_ACEOF
4056
4057fi
4058
4059done
4060
60ca704f
SE
4061
4062cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4063#define HAVE_LIBUNWIND 1
4064_ACEOF
4065
4066 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4067 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4068 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4069fi
4070
4071# Profiling support.
b4e70030 4072# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4073if test "${enable_profiling+set}" = set; then
b4e70030
JB
4074 enableval="$enable_profiling"
4075 case $enableval in
bec39cab
AC
4076 yes | no)
4077 ;;
4078 *)
4079 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4080echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4081 { (exit 1); exit 1; }; } ;;
4082 esac
4083else
4084 enable_profiling=no
b4e70030 4085fi;
bec39cab
AC
4086
4087
4088
4089for ac_func in monstartup _mcleanup
4090do
4091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4092echo "$as_me:$LINENO: checking for $ac_func" >&5
4093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4094if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 cat >conftest.$ac_ext <<_ACEOF
4098/* confdefs.h. */
4099_ACEOF
4100cat confdefs.h >>conftest.$ac_ext
4101cat >>conftest.$ac_ext <<_ACEOF
4102/* end confdefs.h. */
4103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4105#define $ac_func innocuous_$ac_func
4106
4107/* System header to define __stub macros and hopefully few prototypes,
4108 which can conflict with char $ac_func (); below.
4109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 <limits.h> exists even on freestanding compilers. */
4111
4112#ifdef __STDC__
4113# include <limits.h>
4114#else
4115# include <assert.h>
4116#endif
4117
4118#undef $ac_func
4119
b4e70030 4120/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4121#ifdef __cplusplus
4122extern "C"
b4e70030 4123{
bec39cab 4124#endif
b4e70030
JB
4125/* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
bec39cab
AC
4127char $ac_func ();
4128/* The GNU C library defines this for functions which it implements
4129 to always fail with ENOSYS. Some functions are actually named
4130 something starting with __ and the normal name is an alias. */
b4e70030 4131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4132choke me
b4e70030
JB
4133#else
4134char (*f) () = $ac_func;
4135#endif
4136#ifdef __cplusplus
4137}
bec39cab
AC
4138#endif
4139
4140int
4141main ()
4142{
b4e70030 4143return f != $ac_func;
bec39cab
AC
4144 ;
4145 return 0;
4146}
4147_ACEOF
4148rm -f conftest.$ac_objext conftest$ac_exeext
4149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4150 (eval $ac_link) 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
b4e70030
JB
4157 { ac_try='test -z "$ac_c_werror_flag"
4158 || test ! -s conftest.err'
bec39cab
AC
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 (eval $ac_try) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; } &&
4164 { ac_try='test -s conftest$ac_exeext'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 eval "$as_ac_var=yes"
4171else
4172 echo "$as_me: failed program was:" >&5
4173sed 's/^/| /' conftest.$ac_ext >&5
4174
b4e70030 4175eval "$as_ac_var=no"
bec39cab
AC
4176fi
4177rm -f conftest.err conftest.$ac_objext \
4178 conftest$ac_exeext conftest.$ac_ext
4179fi
b4e70030
JB
4180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4181echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4182if test `eval echo '${'$as_ac_var'}'` = yes; then
4183 cat >>confdefs.h <<_ACEOF
4184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4185_ACEOF
4186
4187fi
4188done
4189
b4e70030
JB
4190echo "$as_me:$LINENO: checking for _etext" >&5
4191echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4192if test "${ac_cv_var__etext+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h. */
4201#include <stdlib.h>
4202extern char _etext;
4203
4204int
4205main ()
4206{
4207free (&_etext);
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212rm -f conftest.$ac_objext conftest$ac_exeext
4213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4214 (eval $ac_link) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
b4e70030
JB
4221 { ac_try='test -z "$ac_c_werror_flag"
4222 || test ! -s conftest.err'
bec39cab
AC
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 ac_cv_var__etext=yes
4235else
4236 echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
4238
b4e70030 4239ac_cv_var__etext=no
bec39cab
AC
4240fi
4241rm -f conftest.err conftest.$ac_objext \
4242 conftest$ac_exeext conftest.$ac_ext
4243fi
b4e70030
JB
4244echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4245echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4246if test $ac_cv_var__etext = yes; then
4247
4248cat >>confdefs.h <<\_ACEOF
4249#define HAVE__ETEXT 1
4250_ACEOF
4251
4252fi
4253if test "$enable_profiling" = yes ; then
4254 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4255 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4256echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4257 { (exit 1); exit 1; }; }
4258 fi
4259 PROFILE_CFLAGS=-pg
4260 OLD_CFLAGS="$CFLAGS"
4261 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4262
b4e70030
JB
4263 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4264echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4265if test "${ac_cv_cc_supports_pg+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4267else
bec39cab
AC
4268 cat >conftest.$ac_ext <<_ACEOF
4269/* confdefs.h. */
4270_ACEOF
4271cat confdefs.h >>conftest.$ac_ext
4272cat >>conftest.$ac_ext <<_ACEOF
4273/* end confdefs.h. */
4274
4275int
4276main ()
4277{
4278int x;
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext
4284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
b4e70030
JB
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
bec39cab
AC
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_cc_supports_pg=yes
4306else
4307 echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
4309
b4e70030 4310ac_cv_cc_supports_pg=no
bec39cab
AC
4311fi
4312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313fi
b4e70030
JB
4314echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4315echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4316
4317 if test $ac_cv_cc_supports_pg = no; then
4318 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4319echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4320 { (exit 1); exit 1; }; }
4321 fi
4322
4323 CFLAGS="$OLD_CFLAGS"
4324fi
4325
4326# --------------------- #
4327# Checks for programs. #
4328# --------------------- #
4329
4330for ac_prog in gawk mawk nawk awk
4331do
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333set dummy $ac_prog; ac_word=$2
b4e70030
JB
4334echo "$as_me:$LINENO: checking for $ac_word" >&5
4335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4336if test "${ac_cv_prog_AWK+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339 if test -n "$AWK"; then
4340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4341else
4342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4349 ac_cv_prog_AWK="$ac_prog"
4350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4352 fi
4353done
4354done
4355
4356fi
4357fi
4358AWK=$ac_cv_prog_AWK
4359if test -n "$AWK"; then
b4e70030
JB
4360 echo "$as_me:$LINENO: result: $AWK" >&5
4361echo "${ECHO_T}$AWK" >&6
bec39cab 4362else
b4e70030
JB
4363 echo "$as_me:$LINENO: result: no" >&5
4364echo "${ECHO_T}no" >&6
bec39cab
AC
4365fi
4366
4367 test -n "$AWK" && break
4368done
4369
4370# Find a good install program. We prefer a C program (faster),
4371# so one script is as good as another. But avoid the broken or
4372# incompatible versions:
4373# SysV /etc/install, /usr/sbin/install
4374# SunOS /usr/etc/install
4375# IRIX /sbin/install
4376# AIX /bin/install
4377# AmigaOS /C/install, which installs bootblocks on floppy discs
4378# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4379# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4380# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4381# OS/2's system install, which has a completely different semantic
4382# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4383echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4384echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4385if test -z "$INSTALL"; then
4386if test "${ac_cv_path_install+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 # Account for people who put trailing slashes in PATH elements.
4395case $as_dir/ in
4396 ./ | .// | /cC/* | \
4397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4398 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4399 /usr/ucb/* ) ;;
c906108c 4400 *)
bec39cab
AC
4401 # OSF1 and SCO ODT 3.0 have their own names for install.
4402 # Don't use installbsd from OSF since it installs stuff as root
4403 # by default.
4404 for ac_prog in ginstall scoinst install; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4406 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4407 if test $ac_prog = install &&
4408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4409 # AIX install. It has an incompatible calling convention.
4410 :
4411 elif test $ac_prog = install &&
4412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4413 # program-specific install script used by HP pwplus--don't use.
4414 :
4415 else
4416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4417 break 3
4418 fi
4419 fi
4420 done
4421 done
4422 ;;
c906108c 4423esac
bec39cab
AC
4424done
4425
4426
4427fi
4428 if test "${ac_cv_path_install+set}" = set; then
4429 INSTALL=$ac_cv_path_install
4430 else
b4e70030
JB
4431 # As a last resort, use the slow shell script. We don't cache a
4432 # path for INSTALL within a source directory, because that will
bec39cab 4433 # break other packages using the cache if that directory is
b4e70030 4434 # removed, or if the path is relative.
bec39cab
AC
4435 INSTALL=$ac_install_sh
4436 fi
4437fi
b4e70030
JB
4438echo "$as_me:$LINENO: result: $INSTALL" >&5
4439echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4440
4441# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4442# It thinks the first close brace ends the variable substitution.
4443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4444
4445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4446
4447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4448
b4e70030
JB
4449echo "$as_me:$LINENO: checking whether ln -s works" >&5
4450echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4451LN_S=$as_ln_s
4452if test "$LN_S" = "ln -s"; then
b4e70030
JB
4453 echo "$as_me:$LINENO: result: yes" >&5
4454echo "${ECHO_T}yes" >&6
bec39cab 4455else
b4e70030
JB
4456 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4457echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4458fi
4459
4460if test -n "$ac_tool_prefix"; then
4461 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4462set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4463echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4465if test "${ac_cv_prog_RANLIB+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
4468 if test -n "$RANLIB"; then
4469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4470else
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4478 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482done
4483done
4484
4485fi
4486fi
4487RANLIB=$ac_cv_prog_RANLIB
4488if test -n "$RANLIB"; then
b4e70030
JB
4489 echo "$as_me:$LINENO: result: $RANLIB" >&5
4490echo "${ECHO_T}$RANLIB" >&6
bec39cab 4491else
b4e70030
JB
4492 echo "$as_me:$LINENO: result: no" >&5
4493echo "${ECHO_T}no" >&6
bec39cab
AC
4494fi
4495
4496fi
4497if test -z "$ac_cv_prog_RANLIB"; then
4498 ac_ct_RANLIB=$RANLIB
4499 # Extract the first word of "ranlib", so it can be a program name with args.
4500set dummy ranlib; ac_word=$2
b4e70030
JB
4501echo "$as_me:$LINENO: checking for $ac_word" >&5
4502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4503if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506 if test -n "$ac_ct_RANLIB"; then
4507 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4516 ac_cv_prog_ac_ct_RANLIB="ranlib"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520done
4521done
4522
b4e70030 4523 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4524fi
4525fi
4526ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4527if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4528 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4529echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4530else
b4e70030
JB
4531 echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6
bec39cab
AC
4533fi
4534
b4e70030 4535 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4536else
4537 RANLIB="$ac_cv_prog_RANLIB"
4538fi
4539
4540for ac_prog in 'bison -y' byacc
4541do
4542 # Extract the first word of "$ac_prog", so it can be a program name with args.
4543set dummy $ac_prog; ac_word=$2
b4e70030
JB
4544echo "$as_me:$LINENO: checking for $ac_word" >&5
4545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4546if test "${ac_cv_prog_YACC+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549 if test -n "$YACC"; then
4550 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4559 ac_cv_prog_YACC="$ac_prog"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563done
4564done
4565
4566fi
4567fi
4568YACC=$ac_cv_prog_YACC
4569if test -n "$YACC"; then
b4e70030
JB
4570 echo "$as_me:$LINENO: result: $YACC" >&5
4571echo "${ECHO_T}$YACC" >&6
bec39cab 4572else
b4e70030
JB
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
bec39cab
AC
4575fi
4576
4577 test -n "$YACC" && break
4578done
4579test -n "$YACC" || YACC="yacc"
4580
4581
4582if test -n "$ac_tool_prefix"; then
4583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4584set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4585echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4587if test "${ac_cv_prog_AR+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590 if test -n "$AR"; then
4591 ac_cv_prog_AR="$AR" # Let the user override the test.
4592else
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4600 ac_cv_prog_AR="${ac_tool_prefix}ar"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605done
4606
4607fi
4608fi
4609AR=$ac_cv_prog_AR
4610if test -n "$AR"; then
b4e70030
JB
4611 echo "$as_me:$LINENO: result: $AR" >&5
4612echo "${ECHO_T}$AR" >&6
bec39cab 4613else
b4e70030
JB
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
bec39cab
AC
4616fi
4617
4618fi
4619if test -z "$ac_cv_prog_AR"; then
4620 ac_ct_AR=$AR
4621 # Extract the first word of "ar", so it can be a program name with args.
4622set dummy ar; ac_word=$2
b4e70030
JB
4623echo "$as_me:$LINENO: checking for $ac_word" >&5
4624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4625if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628 if test -n "$ac_ct_AR"; then
4629 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4630else
4631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632for as_dir in $PATH
4633do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4638 ac_cv_prog_ac_ct_AR="ar"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642done
4643done
4644
4645fi
4646fi
4647ac_ct_AR=$ac_cv_prog_ac_ct_AR
4648if test -n "$ac_ct_AR"; then
b4e70030
JB
4649 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4650echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4651else
b4e70030
JB
4652 echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6
bec39cab
AC
4654fi
4655
b4e70030 4656 AR=$ac_ct_AR
bec39cab
AC
4657else
4658 AR="$ac_cv_prog_AR"
4659fi
4660
4661if test -n "$ac_tool_prefix"; then
4662 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4663set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4664echo "$as_me:$LINENO: checking for $ac_word" >&5
4665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4666if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669 if test -n "$DLLTOOL"; then
4670 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4671else
4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4679 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683done
4684done
4685
4686fi
4687fi
4688DLLTOOL=$ac_cv_prog_DLLTOOL
4689if test -n "$DLLTOOL"; then
b4e70030
JB
4690 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4691echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4692else
b4e70030
JB
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
bec39cab
AC
4695fi
4696
4697fi
4698if test -z "$ac_cv_prog_DLLTOOL"; then
4699 ac_ct_DLLTOOL=$DLLTOOL
4700 # Extract the first word of "dlltool", so it can be a program name with args.
4701set dummy dlltool; ac_word=$2
b4e70030
JB
4702echo "$as_me:$LINENO: checking for $ac_word" >&5
4703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4704if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707 if test -n "$ac_ct_DLLTOOL"; then
4708 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4709else
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4717 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721done
4722done
4723
4724fi
4725fi
4726ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4727if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4728 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4729echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4730else
b4e70030
JB
4731 echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6
bec39cab
AC
4733fi
4734
b4e70030 4735 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4736else
4737 DLLTOOL="$ac_cv_prog_DLLTOOL"
4738fi
4739
4740if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4742set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4743echo "$as_me:$LINENO: checking for $ac_word" >&5
4744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4745if test "${ac_cv_prog_WINDRES+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748 if test -n "$WINDRES"; then
4749 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4750else
4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4758 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762done
4763done
4764
4765fi
4766fi
4767WINDRES=$ac_cv_prog_WINDRES
4768if test -n "$WINDRES"; then
b4e70030
JB
4769 echo "$as_me:$LINENO: result: $WINDRES" >&5
4770echo "${ECHO_T}$WINDRES" >&6
bec39cab 4771else
b4e70030
JB
4772 echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
bec39cab
AC
4774fi
4775
4776fi
4777if test -z "$ac_cv_prog_WINDRES"; then
4778 ac_ct_WINDRES=$WINDRES
4779 # Extract the first word of "windres", so it can be a program name with args.
4780set dummy windres; ac_word=$2
b4e70030
JB
4781echo "$as_me:$LINENO: checking for $ac_word" >&5
4782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4783if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786 if test -n "$ac_ct_WINDRES"; then
4787 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4796 ac_cv_prog_ac_ct_WINDRES="windres"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801done
4802
4803fi
4804fi
4805ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4806if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4807 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4808echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4809else
b4e70030
JB
4810 echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
c906108c 4812fi
bec39cab 4813
b4e70030 4814 WINDRES=$ac_ct_WINDRES
c906108c 4815else
bec39cab 4816 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4817fi
4818
bec39cab
AC
4819
4820# Needed for GNU/Hurd.
4821if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4823set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4824echo "$as_me:$LINENO: checking for $ac_word" >&5
4825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4826if test "${ac_cv_prog_MIG+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4828else
bec39cab
AC
4829 if test -n "$MIG"; then
4830 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4831else
4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4839 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843done
4844done
4845
c906108c 4846fi
bec39cab
AC
4847fi
4848MIG=$ac_cv_prog_MIG
4849if test -n "$MIG"; then
b4e70030
JB
4850 echo "$as_me:$LINENO: result: $MIG" >&5
4851echo "${ECHO_T}$MIG" >&6
c906108c 4852else
b4e70030
JB
4853 echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6
c906108c
SS
4855fi
4856
bec39cab
AC
4857fi
4858if test -z "$ac_cv_prog_MIG"; then
4859 ac_ct_MIG=$MIG
4860 # Extract the first word of "mig", so it can be a program name with args.
4861set dummy mig; ac_word=$2
b4e70030
JB
4862echo "$as_me:$LINENO: checking for $ac_word" >&5
4863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4864if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867 if test -n "$ac_ct_MIG"; then
4868 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4877 ac_cv_prog_ac_ct_MIG="mig"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
c906108c 4883
bec39cab
AC
4884fi
4885fi
4886ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4887if test -n "$ac_ct_MIG"; then
b4e70030
JB
4888 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4889echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4890else
b4e70030
JB
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
bec39cab 4893fi
c906108c 4894
b4e70030 4895 MIG=$ac_ct_MIG
bec39cab
AC
4896else
4897 MIG="$ac_cv_prog_MIG"
4898fi
c906108c 4899
c906108c 4900
bec39cab
AC
4901# ---------------------- #
4902# Checks for libraries. #
4903# ---------------------- #
c906108c 4904
bec39cab 4905# We might need to link with -lm; most simulators need it.
c906108c 4906
b4e70030
JB
4907echo "$as_me:$LINENO: checking for main in -lm" >&5
4908echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
4909if test "${ac_cv_lib_m_main+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 ac_check_lib_save_LIBS=$LIBS
4913LIBS="-lm $LIBS"
4914cat >conftest.$ac_ext <<_ACEOF
4915/* confdefs.h. */
4916_ACEOF
4917cat confdefs.h >>conftest.$ac_ext
4918cat >>conftest.$ac_ext <<_ACEOF
4919/* end confdefs.h. */
c906108c 4920
c906108c 4921
bec39cab
AC
4922int
4923main ()
4924{
b4e70030 4925main ();
bec39cab
AC
4926 ;
4927 return 0;
4928}
4929_ACEOF
4930rm -f conftest.$ac_objext conftest$ac_exeext
4931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
b4e70030
JB
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
bec39cab
AC
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_lib_m_main=yes
4953else
4954 echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
b4e70030 4957ac_cv_lib_m_main=no
bec39cab
AC
4958fi
4959rm -f conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4961LIBS=$ac_check_lib_save_LIBS
4962fi
b4e70030
JB
4963echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4964echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
4965if test $ac_cv_lib_m_main = yes; then
4966 cat >>confdefs.h <<_ACEOF
4967#define HAVE_LIBM 1
4968_ACEOF
4969
4970 LIBS="-lm $LIBS"
c906108c 4971
c906108c 4972fi
bec39cab
AC
4973
4974
4975# We need to link with -lw to get `wctype' on Solaris before Solaris
4976# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
4977# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
4978# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
4979echo "$as_me:$LINENO: checking for wctype" >&5
4980echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
4981if test "${ac_cv_func_wctype+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984 cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h. */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h. */
4990/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
4991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4992#define wctype innocuous_wctype
4993
4994/* System header to define __stub macros and hopefully few prototypes,
4995 which can conflict with char wctype (); below.
4996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 <limits.h> exists even on freestanding compilers. */
4998
4999#ifdef __STDC__
5000# include <limits.h>
5001#else
5002# include <assert.h>
5003#endif
5004
5005#undef wctype
5006
b4e70030 5007/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5008#ifdef __cplusplus
5009extern "C"
b4e70030 5010{
bec39cab 5011#endif
b4e70030
JB
5012/* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
bec39cab
AC
5014char wctype ();
5015/* The GNU C library defines this for functions which it implements
5016 to always fail with ENOSYS. Some functions are actually named
5017 something starting with __ and the normal name is an alias. */
b4e70030 5018#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5019choke me
b4e70030
JB
5020#else
5021char (*f) () = wctype;
5022#endif
5023#ifdef __cplusplus
5024}
bec39cab
AC
5025#endif
5026
5027int
5028main ()
5029{
b4e70030 5030return f != wctype;
bec39cab
AC
5031 ;
5032 return 0;
5033}
5034_ACEOF
5035rm -f conftest.$ac_objext conftest$ac_exeext
5036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5037 (eval $ac_link) 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
b4e70030
JB
5044 { ac_try='test -z "$ac_c_werror_flag"
5045 || test ! -s conftest.err'
bec39cab
AC
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try='test -s conftest$ac_exeext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_cv_func_wctype=yes
5058else
5059 echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
b4e70030 5062ac_cv_func_wctype=no
bec39cab
AC
5063fi
5064rm -f conftest.err conftest.$ac_objext \
5065 conftest$ac_exeext conftest.$ac_ext
5066fi
b4e70030
JB
5067echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5068echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5069if test $ac_cv_func_wctype = yes; then
5070 :
c906108c 5071else
c906108c 5072
b4e70030
JB
5073echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5074echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5075if test "${ac_cv_lib_w_wctype+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078 ac_check_lib_save_LIBS=$LIBS
5079LIBS="-lw $LIBS"
5080cat >conftest.$ac_ext <<_ACEOF
5081/* confdefs.h. */
5082_ACEOF
5083cat confdefs.h >>conftest.$ac_ext
5084cat >>conftest.$ac_ext <<_ACEOF
5085/* end confdefs.h. */
c906108c 5086
b4e70030 5087/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5088#ifdef __cplusplus
5089extern "C"
5090#endif
b4e70030
JB
5091/* We use char because int might match the return type of a gcc2
5092 builtin and then its argument prototype would still apply. */
bec39cab
AC
5093char wctype ();
5094int
5095main ()
5096{
b4e70030 5097wctype ();
bec39cab
AC
5098 ;
5099 return 0;
5100}
5101_ACEOF
5102rm -f conftest.$ac_objext conftest$ac_exeext
5103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
b4e70030
JB
5111 { ac_try='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
bec39cab
AC
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_cv_lib_w_wctype=yes
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
b4e70030 5129ac_cv_lib_w_wctype=no
bec39cab
AC
5130fi
5131rm -f conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5133LIBS=$ac_check_lib_save_LIBS
5134fi
b4e70030
JB
5135echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5136echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5137if test $ac_cv_lib_w_wctype = yes; then
5138 cat >>confdefs.h <<_ACEOF
5139#define HAVE_LIBW 1
5140_ACEOF
c906108c 5141
bec39cab 5142 LIBS="-lw $LIBS"
c906108c 5143
bec39cab 5144fi
c906108c 5145
bec39cab 5146fi
c906108c 5147
ddc9cd0f 5148
bec39cab 5149# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5150echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5151echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5152if test "${ac_cv_search_gethostbyname+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155 ac_func_search_save_LIBS=$LIBS
b4e70030 5156ac_cv_search_gethostbyname=no
bec39cab
AC
5157cat >conftest.$ac_ext <<_ACEOF
5158/* confdefs.h. */
5159_ACEOF
5160cat confdefs.h >>conftest.$ac_ext
5161cat >>conftest.$ac_ext <<_ACEOF
5162/* end confdefs.h. */
ddc9cd0f 5163
b4e70030 5164/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5165#ifdef __cplusplus
5166extern "C"
5167#endif
b4e70030
JB
5168/* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
bec39cab
AC
5170char gethostbyname ();
5171int
5172main ()
5173{
b4e70030 5174gethostbyname ();
bec39cab
AC
5175 ;
5176 return 0;
5177}
5178_ACEOF
b4e70030 5179rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5181 (eval $ac_link) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
b4e70030
JB
5188 { ac_try='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
bec39cab
AC
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest$ac_exeext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
b4e70030 5201 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5202else
5203 echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5205
bec39cab
AC
5206fi
5207rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5208 conftest$ac_exeext conftest.$ac_ext
5209if test "$ac_cv_search_gethostbyname" = no; then
5210 for ac_lib in nsl; do
5211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5212 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
ddc9cd0f 5218
b4e70030 5219/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5220#ifdef __cplusplus
5221extern "C"
5222#endif
b4e70030
JB
5223/* We use char because int might match the return type of a gcc2
5224 builtin and then its argument prototype would still apply. */
5225char gethostbyname ();
bec39cab
AC
5226int
5227main ()
5228{
b4e70030 5229gethostbyname ();
bec39cab
AC
5230 ;
5231 return 0;
5232}
5233_ACEOF
b4e70030 5234rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5236 (eval $ac_link) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
b4e70030
JB
5243 { ac_try='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
bec39cab
AC
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try='test -s conftest$ac_exeext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
b4e70030
JB
5256 ac_cv_search_gethostbyname="-l$ac_lib"
5257break
bec39cab
AC
5258else
5259 echo "$as_me: failed program was:" >&5
5260sed 's/^/| /' conftest.$ac_ext >&5
5261
5262fi
5263rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5264 conftest$ac_exeext conftest.$ac_ext
5265 done
bec39cab
AC
5266fi
5267LIBS=$ac_func_search_save_LIBS
5268fi
b4e70030
JB
5269echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5270echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5271if test "$ac_cv_search_gethostbyname" != no; then
5272 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5273
bec39cab 5274fi
96baa820 5275
c906108c 5276
b4e70030
JB
5277# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5278echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5279echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5280if test "${ac_cv_search_socketpair+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283 ac_func_search_save_LIBS=$LIBS
5284ac_cv_search_socketpair=no
5285cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h. */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h. */
5291
5292/* Override any gcc2 internal prototype to avoid an error. */
5293#ifdef __cplusplus
5294extern "C"
5295#endif
5296/* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5298char socketpair ();
5299int
5300main ()
5301{
5302socketpair ();
5303 ;
5304 return 0;
5305}
5306_ACEOF
5307rm -f conftest.$ac_objext conftest$ac_exeext
5308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>conftest.er1
5310 ac_status=$?
5311 grep -v '^ *+' conftest.er1 >conftest.err
5312 rm -f conftest.er1
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } &&
5316 { ac_try='test -z "$ac_c_werror_flag"
5317 || test ! -s conftest.err'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_cv_search_socketpair="none required"
5330else
5331 echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334fi
5335rm -f conftest.err conftest.$ac_objext \
5336 conftest$ac_exeext conftest.$ac_ext
5337if test "$ac_cv_search_socketpair" = no; then
5338 for ac_lib in socket; do
5339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5340 cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h. */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h. */
5346
5347/* Override any gcc2 internal prototype to avoid an error. */
5348#ifdef __cplusplus
5349extern "C"
5350#endif
5351/* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5353char socketpair ();
5354int
5355main ()
5356{
5357socketpair ();
5358 ;
5359 return 0;
5360}
5361_ACEOF
5362rm -f conftest.$ac_objext conftest$ac_exeext
5363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5364 (eval $ac_link) 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -z "$ac_c_werror_flag"
5372 || test ! -s conftest.err'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; } &&
5378 { ac_try='test -s conftest$ac_exeext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_search_socketpair="-l$ac_lib"
5385break
5386else
5387 echo "$as_me: failed program was:" >&5
5388sed 's/^/| /' conftest.$ac_ext >&5
5389
5390fi
5391rm -f conftest.err conftest.$ac_objext \
5392 conftest$ac_exeext conftest.$ac_ext
5393 done
5394fi
5395LIBS=$ac_func_search_save_LIBS
5396fi
5397echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5398echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5399if test "$ac_cv_search_socketpair" != no; then
5400 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5401
5402fi
5403
5404
5405# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5406#
5407# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5408# curses library because the latter might not provide all the
5409# functionality we need. However, this leads to problems on systems
5410# where the linker searches /usr/local/lib, but the compiler doesn't
5411# search /usr/local/include, if ncurses is installed in /usr/local. A
5412# default installation of ncurses on alpha*-dec-osf* will lead to such
5413# a situation.
b4e70030
JB
5414echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5415echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5416if test "${ac_cv_search_waddstr+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419 ac_func_search_save_LIBS=$LIBS
b4e70030 5420ac_cv_search_waddstr=no
bec39cab
AC
5421cat >conftest.$ac_ext <<_ACEOF
5422/* confdefs.h. */
5423_ACEOF
5424cat confdefs.h >>conftest.$ac_ext
5425cat >>conftest.$ac_ext <<_ACEOF
5426/* end confdefs.h. */
c906108c 5427
b4e70030 5428/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5429#ifdef __cplusplus
5430extern "C"
5431#endif
b4e70030
JB
5432/* We use char because int might match the return type of a gcc2
5433 builtin and then its argument prototype would still apply. */
bec39cab
AC
5434char waddstr ();
5435int
5436main ()
5437{
b4e70030 5438waddstr ();
bec39cab
AC
5439 ;
5440 return 0;
5441}
5442_ACEOF
b4e70030 5443rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5445 (eval $ac_link) 2>conftest.er1
5446 ac_status=$?
5447 grep -v '^ *+' conftest.er1 >conftest.err
5448 rm -f conftest.er1
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } &&
b4e70030
JB
5452 { ac_try='test -z "$ac_c_werror_flag"
5453 || test ! -s conftest.err'
bec39cab
AC
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; } &&
5459 { ac_try='test -s conftest$ac_exeext'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; }; then
b4e70030 5465 ac_cv_search_waddstr="none required"
bec39cab
AC
5466else
5467 echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5469
5470fi
bec39cab 5471rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5472 conftest$ac_exeext conftest.$ac_ext
5473if test "$ac_cv_search_waddstr" = no; then
5474 for ac_lib in ncurses cursesX curses; do
5475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5476 cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h. */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h. */
5482
5483/* Override any gcc2 internal prototype to avoid an error. */
5484#ifdef __cplusplus
5485extern "C"
5486#endif
5487/* We use char because int might match the return type of a gcc2
5488 builtin and then its argument prototype would still apply. */
5489char waddstr ();
5490int
5491main ()
5492{
5493waddstr ();
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498rm -f conftest.$ac_objext conftest$ac_exeext
5499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500 (eval $ac_link) 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } &&
5507 { ac_try='test -z "$ac_c_werror_flag"
5508 || test ! -s conftest.err'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 (eval $ac_try) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest$ac_exeext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5520 ac_cv_search_waddstr="-l$ac_lib"
5521break
4e8d927d 5522else
b4e70030
JB
5523 echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
5526fi
5527rm -f conftest.err conftest.$ac_objext \
5528 conftest$ac_exeext conftest.$ac_ext
5529 done
1ba607ad 5530fi
bec39cab
AC
5531LIBS=$ac_func_search_save_LIBS
5532fi
b4e70030
JB
5533echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5534echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5535if test "$ac_cv_search_waddstr" != no; then
5536 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5537
8bb2c122 5538fi
8bb2c122 5539
8bb2c122 5540
bec39cab
AC
5541# Since GDB uses Readline, we need termcap functionality. In many
5542# cases this will be provided by the curses library, but some systems
5543# have a seperate termcap library, or no curses library at all.
8bb2c122 5544
bec39cab
AC
5545case $host_os in
5546 cygwin*)
5547 if test -d $srcdir/libtermcap; then
5548 LIBS="../libtermcap/libtermcap.a $LIBS"
5549 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5550 fi ;;
5551 go32* | *djgpp*)
5552 ac_cv_search_tgetent="none required"
5553 ;;
7ef34f2c
MM
5554 *mingw32*)
5555 ac_cv_search_tgetent="none required"
5556 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5557 ;;
bec39cab 5558esac
627af7ea 5559
bec39cab 5560# These are the libraries checked by Readline.
b4e70030
JB
5561echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5562echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5563if test "${ac_cv_search_tgetent+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566 ac_func_search_save_LIBS=$LIBS
b4e70030 5567ac_cv_search_tgetent=no
bec39cab
AC
5568cat >conftest.$ac_ext <<_ACEOF
5569/* confdefs.h. */
5570_ACEOF
5571cat confdefs.h >>conftest.$ac_ext
5572cat >>conftest.$ac_ext <<_ACEOF
5573/* end confdefs.h. */
5574
b4e70030 5575/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5576#ifdef __cplusplus
5577extern "C"
5578#endif
b4e70030
JB
5579/* We use char because int might match the return type of a gcc2
5580 builtin and then its argument prototype would still apply. */
bec39cab
AC
5581char tgetent ();
5582int
5583main ()
5584{
b4e70030 5585tgetent ();
bec39cab
AC
5586 ;
5587 return 0;
5588}
5589_ACEOF
b4e70030 5590rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
b4e70030
JB
5599 { ac_try='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
bec39cab
AC
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
b4e70030 5612 ac_cv_search_tgetent="none required"
627af7ea 5613else
bec39cab
AC
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5616
627af7ea 5617fi
bec39cab 5618rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5619 conftest$ac_exeext conftest.$ac_ext
5620if test "$ac_cv_search_tgetent" = no; then
5621 for ac_lib in termcap tinfo curses ncurses; do
5622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5623 cat >conftest.$ac_ext <<_ACEOF
5624/* confdefs.h. */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h. */
5629
5630/* Override any gcc2 internal prototype to avoid an error. */
5631#ifdef __cplusplus
5632extern "C"
5633#endif
5634/* We use char because int might match the return type of a gcc2
5635 builtin and then its argument prototype would still apply. */
5636char tgetent ();
5637int
5638main ()
5639{
5640tgetent ();
5641 ;
5642 return 0;
5643}
5644_ACEOF
5645rm -f conftest.$ac_objext conftest$ac_exeext
5646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647 (eval $ac_link) 2>conftest.er1
5648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag"
5655 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try='test -s conftest$ac_exeext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_search_tgetent="-l$ac_lib"
5668break
4e8d927d 5669else
b4e70030
JB
5670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673fi
5674rm -f conftest.err conftest.$ac_objext \
5675 conftest$ac_exeext conftest.$ac_ext
5676 done
bec39cab
AC
5677fi
5678LIBS=$ac_func_search_save_LIBS
5679fi
b4e70030
JB
5680echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5681echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5682if test "$ac_cv_search_tgetent" != no; then
5683 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5684
06825bd1
MK
5685fi
5686
06825bd1 5687
bec39cab
AC
5688if test "$ac_cv_search_tgetent" = no; then
5689 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5690echo "$as_me: error: no termcap library found" >&2;}
5691 { (exit 1); exit 1; }; }
8ee53726
MK
5692fi
5693
3841debe
DJ
5694
5695 if test "X$prefix" = "XNONE"; then
5696 acl_final_prefix="$ac_default_prefix"
5697 else
5698 acl_final_prefix="$prefix"
5699 fi
5700 if test "X$exec_prefix" = "XNONE"; then
5701 acl_final_exec_prefix='${prefix}'
5702 else
5703 acl_final_exec_prefix="$exec_prefix"
5704 fi
5705 acl_save_prefix="$prefix"
5706 prefix="$acl_final_prefix"
5707 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5708 prefix="$acl_save_prefix"
5709
5710
5711# Check whether --with-gnu-ld or --without-gnu-ld was given.
5712if test "${with_gnu_ld+set}" = set; then
5713 withval="$with_gnu_ld"
5714 test "$withval" = no || with_gnu_ld=yes
5715else
5716 with_gnu_ld=no
5717fi;
5718# Prepare PATH_SEPARATOR.
5719# The user is always right.
5720if test "${PATH_SEPARATOR+set}" != set; then
5721 echo "#! /bin/sh" >conf$$.sh
5722 echo "exit 0" >>conf$$.sh
5723 chmod +x conf$$.sh
5724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5725 PATH_SEPARATOR=';'
5726 else
5727 PATH_SEPARATOR=:
5728 fi
5729 rm -f conf$$.sh
5730fi
5731ac_prog=ld
5732if test "$GCC" = yes; then
5733 # Check if gcc -print-prog-name=ld gives a path.
5734 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5735echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5736 case $host in
5737 *-*-mingw*)
5738 # gcc leaves a trailing carriage return which upsets mingw
5739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5740 *)
5741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5742 esac
5743 case $ac_prog in
5744 # Accept absolute paths.
5745 [\\/]* | [A-Za-z]:[\\/]*)
5746 re_direlt='/[^/][^/]*/\.\./'
5747 # Canonicalize the path of ld
5748 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5749 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5750 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5751 done
5752 test -z "$LD" && LD="$ac_prog"
5753 ;;
5754 "")
5755 # If it fails, then pretend we aren't using GCC.
5756 ac_prog=ld
5757 ;;
5758 *)
5759 # If it is relative, then search for the first ld in PATH.
5760 with_gnu_ld=unknown
5761 ;;
5762 esac
5763elif test "$with_gnu_ld" = yes; then
5764 echo "$as_me:$LINENO: checking for GNU ld" >&5
5765echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5766else
5767 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5768echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5769fi
5770if test "${acl_cv_path_LD+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773 if test -z "$LD"; then
5774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5775 for ac_dir in $PATH; do
5776 test -z "$ac_dir" && ac_dir=.
5777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5778 acl_cv_path_LD="$ac_dir/$ac_prog"
5779 # Check to see if the program is GNU ld. I'd rather use --version,
5780 # but apparently some GNU ld's only accept -v.
5781 # Break only if it was the GNU/non-GNU ld that we prefer.
5782 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5783 test "$with_gnu_ld" != no && break
5784 else
5785 test "$with_gnu_ld" != yes && break
5786 fi
5787 fi
5788 done
5789 IFS="$ac_save_ifs"
5790else
5791 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5792fi
5793fi
5794
5795LD="$acl_cv_path_LD"
5796if test -n "$LD"; then
5797 echo "$as_me:$LINENO: result: $LD" >&5
5798echo "${ECHO_T}$LD" >&6
5799else
5800 echo "$as_me:$LINENO: result: no" >&5
5801echo "${ECHO_T}no" >&6
5802fi
5803test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5804echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5805 { (exit 1); exit 1; }; }
5806echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5807echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5808if test "${acl_cv_prog_gnu_ld+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5812if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5813 acl_cv_prog_gnu_ld=yes
5814else
5815 acl_cv_prog_gnu_ld=no
5816fi
5817fi
5818echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5819echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5820with_gnu_ld=$acl_cv_prog_gnu_ld
5821
5822
5823
5824 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5825echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5826if test "${acl_cv_rpath+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828else
5829
5830 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5831 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5832 . ./conftest.sh
5833 rm -f ./conftest.sh
5834 acl_cv_rpath=done
5835
5836fi
5837echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5838echo "${ECHO_T}$acl_cv_rpath" >&6
5839 wl="$acl_cv_wl"
5840 libext="$acl_cv_libext"
5841 shlibext="$acl_cv_shlibext"
5842 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5843 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5844 hardcode_direct="$acl_cv_hardcode_direct"
5845 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5846 # Check whether --enable-rpath or --disable-rpath was given.
5847if test "${enable_rpath+set}" = set; then
5848 enableval="$enable_rpath"
5849 :
5850else
5851 enable_rpath=yes
5852fi;
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 use_additional=yes
5863
5864 acl_save_prefix="$prefix"
5865 prefix="$acl_final_prefix"
5866 acl_save_exec_prefix="$exec_prefix"
5867 exec_prefix="$acl_final_exec_prefix"
5868
5869 eval additional_includedir=\"$includedir\"
5870 eval additional_libdir=\"$libdir\"
5871
5872 exec_prefix="$acl_save_exec_prefix"
5873 prefix="$acl_save_prefix"
5874
5875
5876# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5877if test "${with_libexpat_prefix+set}" = set; then
5878 withval="$with_libexpat_prefix"
5879
5880 if test "X$withval" = "Xno"; then
5881 use_additional=no
5882 else
5883 if test "X$withval" = "X"; then
5884
5885 acl_save_prefix="$prefix"
5886 prefix="$acl_final_prefix"
5887 acl_save_exec_prefix="$exec_prefix"
5888 exec_prefix="$acl_final_exec_prefix"
5889
5890 eval additional_includedir=\"$includedir\"
5891 eval additional_libdir=\"$libdir\"
5892
5893 exec_prefix="$acl_save_exec_prefix"
5894 prefix="$acl_save_prefix"
5895
5896 else
5897 additional_includedir="$withval/include"
5898 additional_libdir="$withval/lib"
5899 fi
5900 fi
5901
5902fi;
5903 LIBEXPAT=
5904 LTLIBEXPAT=
5905 INCEXPAT=
5906 rpathdirs=
5907 ltrpathdirs=
5908 names_already_handled=
5909 names_next_round='expat '
5910 while test -n "$names_next_round"; do
5911 names_this_round="$names_next_round"
5912 names_next_round=
5913 for name in $names_this_round; do
5914 already_handled=
5915 for n in $names_already_handled; do
5916 if test "$n" = "$name"; then
5917 already_handled=yes
5918 break
5919 fi
5920 done
5921 if test -z "$already_handled"; then
5922 names_already_handled="$names_already_handled $name"
5923 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5924 eval value=\"\$HAVE_LIB$uppername\"
5925 if test -n "$value"; then
5926 if test "$value" = yes; then
5927 eval value=\"\$LIB$uppername\"
5928 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5929 eval value=\"\$LTLIB$uppername\"
5930 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5931 else
5932 :
5933 fi
5934 else
5935 found_dir=
5936 found_la=
5937 found_so=
5938 found_a=
5939 if test $use_additional = yes; then
5940 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5941 found_dir="$additional_libdir"
5942 found_so="$additional_libdir/lib$name.$shlibext"
5943 if test -f "$additional_libdir/lib$name.la"; then
5944 found_la="$additional_libdir/lib$name.la"
5945 fi
5946 else
5947 if test -f "$additional_libdir/lib$name.$libext"; then
5948 found_dir="$additional_libdir"
5949 found_a="$additional_libdir/lib$name.$libext"
5950 if test -f "$additional_libdir/lib$name.la"; then
5951 found_la="$additional_libdir/lib$name.la"
5952 fi
5953 fi
5954 fi
5955 fi
5956 if test "X$found_dir" = "X"; then
5957 for x in $LDFLAGS $LTLIBEXPAT; do
5958
5959 acl_save_prefix="$prefix"
5960 prefix="$acl_final_prefix"
5961 acl_save_exec_prefix="$exec_prefix"
5962 exec_prefix="$acl_final_exec_prefix"
5963 eval x=\"$x\"
5964 exec_prefix="$acl_save_exec_prefix"
5965 prefix="$acl_save_prefix"
5966
5967 case "$x" in
5968 -L*)
5969 dir=`echo "X$x" | sed -e 's/^X-L//'`
5970 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5971 found_dir="$dir"
5972 found_so="$dir/lib$name.$shlibext"
5973 if test -f "$dir/lib$name.la"; then
5974 found_la="$dir/lib$name.la"
5975 fi
5976 else
5977 if test -f "$dir/lib$name.$libext"; then
5978 found_dir="$dir"
5979 found_a="$dir/lib$name.$libext"
5980 if test -f "$dir/lib$name.la"; then
5981 found_la="$dir/lib$name.la"
5982 fi
5983 fi
5984 fi
5985 ;;
5986 esac
5987 if test "X$found_dir" != "X"; then
5988 break
5989 fi
5990 done
5991 fi
5992 if test "X$found_dir" != "X"; then
5993 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
5994 if test "X$found_so" != "X"; then
5995 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5996 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
5997 else
5998 haveit=
5999 for x in $ltrpathdirs; do
6000 if test "X$x" = "X$found_dir"; then
6001 haveit=yes
6002 break
6003 fi
6004 done
6005 if test -z "$haveit"; then
6006 ltrpathdirs="$ltrpathdirs $found_dir"
6007 fi
6008 if test "$hardcode_direct" = yes; then
6009 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6010 else
6011 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6012 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6013 haveit=
6014 for x in $rpathdirs; do
6015 if test "X$x" = "X$found_dir"; then
6016 haveit=yes
6017 break
6018 fi
6019 done
6020 if test -z "$haveit"; then
6021 rpathdirs="$rpathdirs $found_dir"
6022 fi
6023 else
6024 haveit=
6025 for x in $LDFLAGS $LIBEXPAT; do
6026
6027 acl_save_prefix="$prefix"
6028 prefix="$acl_final_prefix"
6029 acl_save_exec_prefix="$exec_prefix"
6030 exec_prefix="$acl_final_exec_prefix"
6031 eval x=\"$x\"
6032 exec_prefix="$acl_save_exec_prefix"
6033 prefix="$acl_save_prefix"
6034
6035 if test "X$x" = "X-L$found_dir"; then
6036 haveit=yes
6037 break
6038 fi
6039 done
6040 if test -z "$haveit"; then
6041 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6042 fi
6043 if test "$hardcode_minus_L" != no; then
6044 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6045 else
6046 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6047 fi
6048 fi
6049 fi
6050 fi
6051 else
6052 if test "X$found_a" != "X"; then
6053 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6054 else
6055 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6056 fi
6057 fi
6058 additional_includedir=
6059 case "$found_dir" in
6060 */lib | */lib/)
6061 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6062 additional_includedir="$basedir/include"
6063 ;;
6064 esac
6065 if test "X$additional_includedir" != "X"; then
6066 if test "X$additional_includedir" != "X/usr/include"; then
6067 haveit=
6068 if test "X$additional_includedir" = "X/usr/local/include"; then
6069 if test -n "$GCC"; then
6070 case $host_os in
6071 linux*) haveit=yes;;
6072 esac
6073 fi
6074 fi
6075 if test -z "$haveit"; then
6076 for x in $CPPFLAGS $INCEXPAT; do
6077
6078 acl_save_prefix="$prefix"
6079 prefix="$acl_final_prefix"
6080 acl_save_exec_prefix="$exec_prefix"
6081 exec_prefix="$acl_final_exec_prefix"
6082 eval x=\"$x\"
6083 exec_prefix="$acl_save_exec_prefix"
6084 prefix="$acl_save_prefix"
6085
6086 if test "X$x" = "X-I$additional_includedir"; then
6087 haveit=yes
6088 break
6089 fi
6090 done
6091 if test -z "$haveit"; then
6092 if test -d "$additional_includedir"; then
6093 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6094 fi
6095 fi
6096 fi
6097 fi
6098 fi
6099 if test -n "$found_la"; then
6100 save_libdir="$libdir"
6101 case "$found_la" in
6102 */* | *\\*) . "$found_la" ;;
6103 *) . "./$found_la" ;;
6104 esac
6105 libdir="$save_libdir"
6106 for dep in $dependency_libs; do
6107 case "$dep" in
6108 -L*)
6109 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6110 if test "X$additional_libdir" != "X/usr/lib"; then
6111 haveit=
6112 if test "X$additional_libdir" = "X/usr/local/lib"; then
6113 if test -n "$GCC"; then
6114 case $host_os in
6115 linux*) haveit=yes;;
6116 esac
6117 fi
6118 fi
6119 if test -z "$haveit"; then
6120 haveit=
6121 for x in $LDFLAGS $LIBEXPAT; do
6122
6123 acl_save_prefix="$prefix"
6124 prefix="$acl_final_prefix"
6125 acl_save_exec_prefix="$exec_prefix"
6126 exec_prefix="$acl_final_exec_prefix"
6127 eval x=\"$x\"
6128 exec_prefix="$acl_save_exec_prefix"
6129 prefix="$acl_save_prefix"
6130
6131 if test "X$x" = "X-L$additional_libdir"; then
6132 haveit=yes
6133 break
6134 fi
6135 done
6136 if test -z "$haveit"; then
6137 if test -d "$additional_libdir"; then
6138 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6139 fi
6140 fi
6141 haveit=
6142 for x in $LDFLAGS $LTLIBEXPAT; do
6143
6144 acl_save_prefix="$prefix"
6145 prefix="$acl_final_prefix"
6146 acl_save_exec_prefix="$exec_prefix"
6147 exec_prefix="$acl_final_exec_prefix"
6148 eval x=\"$x\"
6149 exec_prefix="$acl_save_exec_prefix"
6150 prefix="$acl_save_prefix"
6151
6152 if test "X$x" = "X-L$additional_libdir"; then
6153 haveit=yes
6154 break
6155 fi
6156 done
6157 if test -z "$haveit"; then
6158 if test -d "$additional_libdir"; then
6159 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6160 fi
6161 fi
6162 fi
6163 fi
6164 ;;
6165 -R*)
6166 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6167 if test "$enable_rpath" != no; then
6168 haveit=
6169 for x in $rpathdirs; do
6170 if test "X$x" = "X$dir"; then
6171 haveit=yes
6172 break
6173 fi
6174 done
6175 if test -z "$haveit"; then
6176 rpathdirs="$rpathdirs $dir"
6177 fi
6178 haveit=
6179 for x in $ltrpathdirs; do
6180 if test "X$x" = "X$dir"; then
6181 haveit=yes
6182 break
6183 fi
6184 done
6185 if test -z "$haveit"; then
6186 ltrpathdirs="$ltrpathdirs $dir"
6187 fi
6188 fi
6189 ;;
6190 -l*)
6191 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6192 ;;
6193 *.la)
6194 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6195 ;;
6196 *)
6197 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6198 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6199 ;;
6200 esac
6201 done
6202 fi
6203 else
6204 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6205 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6206 fi
6207 fi
6208 fi
6209 done
6210 done
6211 if test "X$rpathdirs" != "X"; then
6212 if test -n "$hardcode_libdir_separator"; then
6213 alldirs=
6214 for found_dir in $rpathdirs; do
6215 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6216 done
6217 acl_save_libdir="$libdir"
6218 libdir="$alldirs"
6219 eval flag=\"$hardcode_libdir_flag_spec\"
6220 libdir="$acl_save_libdir"
6221 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6222 else
6223 for found_dir in $rpathdirs; do
6224 acl_save_libdir="$libdir"
6225 libdir="$found_dir"
6226 eval flag=\"$hardcode_libdir_flag_spec\"
6227 libdir="$acl_save_libdir"
6228 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6229 done
6230 fi
6231 fi
6232 if test "X$ltrpathdirs" != "X"; then
6233 for found_dir in $ltrpathdirs; do
6234 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6235 done
6236 fi
6237
6238
6239 ac_save_CPPFLAGS="$CPPFLAGS"
6240
6241 for element in $INCEXPAT; do
6242 haveit=
6243 for x in $CPPFLAGS; do
6244
6245 acl_save_prefix="$prefix"
6246 prefix="$acl_final_prefix"
6247 acl_save_exec_prefix="$exec_prefix"
6248 exec_prefix="$acl_final_exec_prefix"
6249 eval x=\"$x\"
6250 exec_prefix="$acl_save_exec_prefix"
6251 prefix="$acl_save_prefix"
6252
6253 if test "X$x" = "X$element"; then
6254 haveit=yes
6255 break
6256 fi
6257 done
6258 if test -z "$haveit"; then
6259 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6260 fi
6261 done
6262
6263
6264 echo "$as_me:$LINENO: checking for libexpat" >&5
6265echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6266if test "${ac_cv_libexpat+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269
6270 ac_save_LIBS="$LIBS"
6271 LIBS="$LIBS $LIBEXPAT"
6272 cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h. */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h. */
6278#include "expat.h"
6279int
6280main ()
6281{
6282XML_Parser p = XML_ParserCreate (0);
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289 (eval $ac_link) 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -z "$ac_c_werror_flag"
6297 || test ! -s conftest.err'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_cv_libexpat=yes
6310else
6311 echo "$as_me: failed program was:" >&5
6312sed 's/^/| /' conftest.$ac_ext >&5
6313
6314ac_cv_libexpat=no
6315fi
6316rm -f conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6318 LIBS="$ac_save_LIBS"
6319
6320fi
6321echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6322echo "${ECHO_T}$ac_cv_libexpat" >&6
6323 if test "$ac_cv_libexpat" = yes; then
6324 HAVE_LIBEXPAT=yes
6325
6326cat >>confdefs.h <<\_ACEOF
6327#define HAVE_LIBEXPAT 1
6328_ACEOF
6329
6330 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6331echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6332 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6333echo "${ECHO_T}$LIBEXPAT" >&6
6334 else
6335 HAVE_LIBEXPAT=no
6336 CPPFLAGS="$ac_save_CPPFLAGS"
6337 LIBEXPAT=
6338 LTLIBEXPAT=
6339 fi
6340
6341
6342
6343
6344
6345
6346if test "$HAVE_LIBEXPAT" != yes; then
6347 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6348echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
6349fi
6350
bec39cab
AC
6351# ------------------------- #
6352# Checks for header files. #
6353# ------------------------- #
8ee53726 6354
0e5d83e3 6355
bec39cab
AC
6356
6357
6358
6359
6360ac_header_dirent=no
6361for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6362 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6363echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6364echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6365if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367else
6368 cat >conftest.$ac_ext <<_ACEOF
6369/* confdefs.h. */
6370_ACEOF
6371cat confdefs.h >>conftest.$ac_ext
6372cat >>conftest.$ac_ext <<_ACEOF
6373/* end confdefs.h. */
6374#include <sys/types.h>
0e5d83e3 6375#include <$ac_hdr>
bec39cab
AC
6376
6377int
6378main ()
6379{
6380if ((DIR *) 0)
6381return 0;
6382 ;
6383 return 0;
6384}
6385_ACEOF
6386rm -f conftest.$ac_objext
6387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
b4e70030
JB
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
bec39cab
AC
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 eval "$as_ac_Header=yes"
6409else
6410 echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
b4e70030 6413eval "$as_ac_Header=no"
bec39cab
AC
6414fi
6415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416fi
b4e70030
JB
6417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6419if test `eval echo '${'$as_ac_Header'}'` = yes; then
6420 cat >>confdefs.h <<_ACEOF
6421#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6422_ACEOF
6423
6424ac_header_dirent=$ac_hdr; break
0e5d83e3 6425fi
0e5d83e3 6426
bec39cab
AC
6427done
6428# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6429if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6430 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6431echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6432if test "${ac_cv_search_opendir+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435 ac_func_search_save_LIBS=$LIBS
b4e70030 6436ac_cv_search_opendir=no
bec39cab
AC
6437cat >conftest.$ac_ext <<_ACEOF
6438/* confdefs.h. */
6439_ACEOF
6440cat confdefs.h >>conftest.$ac_ext
6441cat >>conftest.$ac_ext <<_ACEOF
6442/* end confdefs.h. */
0e5d83e3 6443
b4e70030 6444/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6445#ifdef __cplusplus
6446extern "C"
6447#endif
b4e70030
JB
6448/* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
bec39cab
AC
6450char opendir ();
6451int
6452main ()
6453{
b4e70030 6454opendir ();
bec39cab
AC
6455 ;
6456 return 0;
6457}
6458_ACEOF
b4e70030 6459rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
b4e70030
JB
6468 { ac_try='test -z "$ac_c_werror_flag"
6469 || test ! -s conftest.err'
bec39cab
AC
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 (eval $ac_try) 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 (eval $ac_try) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
b4e70030 6481 ac_cv_search_opendir="none required"
bec39cab
AC
6482else
6483 echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486fi
bec39cab 6487rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6488 conftest$ac_exeext conftest.$ac_ext
6489if test "$ac_cv_search_opendir" = no; then
6490 for ac_lib in dir; do
6491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6492 cat >conftest.$ac_ext <<_ACEOF
6493/* confdefs.h. */
6494_ACEOF
6495cat confdefs.h >>conftest.$ac_ext
6496cat >>conftest.$ac_ext <<_ACEOF
6497/* end confdefs.h. */
6498
6499/* Override any gcc2 internal prototype to avoid an error. */
6500#ifdef __cplusplus
6501extern "C"
6502#endif
6503/* We use char because int might match the return type of a gcc2
6504 builtin and then its argument prototype would still apply. */
6505char opendir ();
6506int
6507main ()
6508{
6509opendir ();
6510 ;
6511 return 0;
6512}
6513_ACEOF
6514rm -f conftest.$ac_objext conftest$ac_exeext
6515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_c_werror_flag"
6524 || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest$ac_exeext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 ac_cv_search_opendir="-l$ac_lib"
6537break
4e8d927d 6538else
b4e70030
JB
6539 echo "$as_me: failed program was:" >&5
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
6542fi
6543rm -f conftest.err conftest.$ac_objext \
6544 conftest$ac_exeext conftest.$ac_ext
6545 done
0e5d83e3 6546fi
bec39cab 6547LIBS=$ac_func_search_save_LIBS
0e5d83e3 6548fi
b4e70030
JB
6549echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6550echo "${ECHO_T}$ac_cv_search_opendir" >&6
6551if test "$ac_cv_search_opendir" != no; then
6552 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6553
0e5d83e3
JJ
6554fi
6555
d28f9cdf 6556else
b4e70030
JB
6557 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6558echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6559if test "${ac_cv_search_opendir+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562 ac_func_search_save_LIBS=$LIBS
b4e70030 6563ac_cv_search_opendir=no
bec39cab
AC
6564cat >conftest.$ac_ext <<_ACEOF
6565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h. */
d28f9cdf 6570
b4e70030 6571/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6572#ifdef __cplusplus
6573extern "C"
d28f9cdf 6574#endif
b4e70030
JB
6575/* We use char because int might match the return type of a gcc2
6576 builtin and then its argument prototype would still apply. */
bec39cab
AC
6577char opendir ();
6578int
6579main ()
6580{
b4e70030 6581opendir ();
bec39cab
AC
6582 ;
6583 return 0;
6584}
6585_ACEOF
b4e70030 6586rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
b4e70030
JB
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
bec39cab
AC
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
b4e70030 6608 ac_cv_search_opendir="none required"
d28f9cdf 6609else
bec39cab
AC
6610 echo "$as_me: failed program was:" >&5
6611sed 's/^/| /' conftest.$ac_ext >&5
6612
d28f9cdf 6613fi
bec39cab 6614rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6615 conftest$ac_exeext conftest.$ac_ext
6616if test "$ac_cv_search_opendir" = no; then
6617 for ac_lib in x; do
6618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6619 cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625
6626/* Override any gcc2 internal prototype to avoid an error. */
6627#ifdef __cplusplus
6628extern "C"
6629#endif
6630/* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6632char opendir ();
6633int
6634main ()
6635{
6636opendir ();
6637 ;
6638 return 0;
6639}
6640_ACEOF
6641rm -f conftest.$ac_objext conftest$ac_exeext
6642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_search_opendir="-l$ac_lib"
6664break
4e8d927d 6665else
b4e70030
JB
6666 echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669fi
6670rm -f conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
6672 done
bec39cab
AC
6673fi
6674LIBS=$ac_func_search_save_LIBS
d28f9cdf 6675fi
b4e70030
JB
6676echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6677echo "${ECHO_T}$ac_cv_search_opendir" >&6
6678if test "$ac_cv_search_opendir" != no; then
6679 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 6680
d28f9cdf
DJ
6681fi
6682
bec39cab 6683fi
b0b1c2c0 6684
b4e70030
JB
6685echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6686echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
6687if test "${ac_cv_header_stat_broken+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 6689else
bec39cab
AC
6690 cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h. */
6696#include <sys/types.h>
6697#include <sys/stat.h>
b0b1c2c0 6698
b4e70030 6699#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
6700# if S_ISBLK (S_IFDIR)
6701You lose.
6702# endif
6703#endif
b0b1c2c0 6704
b4e70030 6705#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
6706# if S_ISBLK (S_IFCHR)
6707You lose.
6708# endif
6709#endif
d28f9cdf 6710
b4e70030 6711#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
6712# if S_ISLNK (S_IFREG)
6713You lose.
6714# endif
6715#endif
d28f9cdf 6716
b4e70030 6717#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
6718# if S_ISSOCK (S_IFREG)
6719You lose.
6720# endif
6721#endif
6722
6723_ACEOF
6724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6725 $EGREP "You lose" >/dev/null 2>&1; then
6726 ac_cv_header_stat_broken=yes
d28f9cdf 6727else
bec39cab 6728 ac_cv_header_stat_broken=no
d28f9cdf
DJ
6729fi
6730rm -f conftest*
d28f9cdf 6731
d28f9cdf 6732fi
b4e70030
JB
6733echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6734echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 6735if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 6736
bec39cab
AC
6737cat >>confdefs.h <<\_ACEOF
6738#define STAT_MACROS_BROKEN 1
6739_ACEOF
8bb2c122 6740
7a292a7a 6741fi
bec39cab 6742
b4e70030
JB
6743echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6744echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
6745if test "${ac_cv_header_stdc+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 6747else
bec39cab
AC
6748 cat >conftest.$ac_ext <<_ACEOF
6749/* confdefs.h. */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h. */
6754#include <stdlib.h>
6755#include <stdarg.h>
6756#include <string.h>
6757#include <float.h>
7a292a7a 6758
bec39cab
AC
6759int
6760main ()
6761{
7a292a7a 6762
bec39cab
AC
6763 ;
6764 return 0;
6765}
6766_ACEOF
6767rm -f conftest.$ac_objext
6768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
b4e70030
JB
6776 { ac_try='test -z "$ac_c_werror_flag"
6777 || test ! -s conftest.err'
bec39cab
AC
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_header_stdc=yes
c906108c 6790else
bec39cab
AC
6791 echo "$as_me: failed program was:" >&5
6792sed 's/^/| /' conftest.$ac_ext >&5
c906108c 6793
b4e70030 6794ac_cv_header_stdc=no
c906108c 6795fi
bec39cab 6796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6797
bec39cab
AC
6798if test $ac_cv_header_stdc = yes; then
6799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6800 cat >conftest.$ac_ext <<_ACEOF
6801/* confdefs.h. */
6802_ACEOF
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h. */
6806#include <string.h>
c906108c 6807
bec39cab
AC
6808_ACEOF
6809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810 $EGREP "memchr" >/dev/null 2>&1; then
6811 :
8bb2c122 6812else
bec39cab 6813 ac_cv_header_stdc=no
8bb2c122 6814fi
bec39cab
AC
6815rm -f conftest*
6816
c906108c
SS
6817fi
6818
bec39cab
AC
6819if test $ac_cv_header_stdc = yes; then
6820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6821 cat >conftest.$ac_ext <<_ACEOF
6822/* confdefs.h. */
6823_ACEOF
6824cat confdefs.h >>conftest.$ac_ext
6825cat >>conftest.$ac_ext <<_ACEOF
6826/* end confdefs.h. */
6827#include <stdlib.h>
6828
6829_ACEOF
6830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831 $EGREP "free" >/dev/null 2>&1; then
6832 :
c906108c 6833else
bec39cab 6834 ac_cv_header_stdc=no
c906108c 6835fi
bec39cab
AC
6836rm -f conftest*
6837
c906108c
SS
6838fi
6839
bec39cab
AC
6840if test $ac_cv_header_stdc = yes; then
6841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6842 if test "$cross_compiling" = yes; then
6843 :
c906108c 6844else
bec39cab
AC
6845 cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
6851#include <ctype.h>
6852#if ((' ' & 0x0FF) == 0x020)
6853# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6854# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6855#else
6856# define ISLOWER(c) \
6857 (('a' <= (c) && (c) <= 'i') \
6858 || ('j' <= (c) && (c) <= 'r') \
6859 || ('s' <= (c) && (c) <= 'z'))
6860# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6861#endif
6862
6863#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6864int
6865main ()
6866{
6867 int i;
6868 for (i = 0; i < 256; i++)
6869 if (XOR (islower (i), ISLOWER (i))
6870 || toupper (i) != TOUPPER (i))
b4e70030
JB
6871 exit(2);
6872 exit (0);
bec39cab
AC
6873}
6874_ACEOF
6875rm -f conftest$ac_exeext
6876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 :
6887else
6888 echo "$as_me: program exited with status $ac_status" >&5
6889echo "$as_me: failed program was:" >&5
6890sed 's/^/| /' conftest.$ac_ext >&5
6891
6892( exit $ac_status )
6893ac_cv_header_stdc=no
c906108c 6894fi
b4e70030 6895rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 6896fi
c906108c 6897fi
bec39cab 6898fi
b4e70030
JB
6899echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6900echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 6901if test $ac_cv_header_stdc = yes; then
c906108c 6902
bec39cab
AC
6903cat >>confdefs.h <<\_ACEOF
6904#define STDC_HEADERS 1
6905_ACEOF
c906108c 6906
bec39cab 6907fi
8bb2c122 6908
bec39cab 6909
7cb9022a 6910for ac_header in nlist.h
bec39cab
AC
6911do
6912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
6913if eval "test \"\${$as_ac_Header+set}\" = set"; then
6914 echo "$as_me:$LINENO: checking for $ac_header" >&5
6915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6916if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918fi
b4e70030
JB
6919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6921else
6922 # Is the header compilable?
b4e70030
JB
6923echo "$as_me:$LINENO: checking $ac_header usability" >&5
6924echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
6925cat >conftest.$ac_ext <<_ACEOF
6926/* confdefs.h. */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h. */
6931$ac_includes_default
6932#include <$ac_header>
6933_ACEOF
6934rm -f conftest.$ac_objext
6935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936 (eval $ac_compile) 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } &&
b4e70030
JB
6943 { ac_try='test -z "$ac_c_werror_flag"
6944 || test ! -s conftest.err'
bec39cab
AC
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; } &&
6950 { ac_try='test -s conftest.$ac_objext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 ac_header_compiler=yes
6957else
6958 echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
b4e70030 6961ac_header_compiler=no
bec39cab
AC
6962fi
6963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
6964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6965echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
6966
6967# Is the header present?
b4e70030
JB
6968echo "$as_me:$LINENO: checking $ac_header presence" >&5
6969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
6970cat >conftest.$ac_ext <<_ACEOF
6971/* confdefs.h. */
6972_ACEOF
6973cat confdefs.h >>conftest.$ac_ext
6974cat >>conftest.$ac_ext <<_ACEOF
6975/* end confdefs.h. */
6976#include <$ac_header>
6977_ACEOF
6978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } >/dev/null; then
6986 if test -s conftest.err; then
6987 ac_cpp_err=$ac_c_preproc_warn_flag
6988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6989 else
6990 ac_cpp_err=
6991 fi
c906108c 6992else
bec39cab 6993 ac_cpp_err=yes
c906108c 6994fi
bec39cab
AC
6995if test -z "$ac_cpp_err"; then
6996 ac_header_preproc=yes
c906108c 6997else
bec39cab
AC
6998 echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7000
bec39cab
AC
7001 ac_header_preproc=no
7002fi
7003rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7004echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7005echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7006
bec39cab
AC
7007# So? What about this header?
7008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7009 yes:no: )
7010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7011echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7013echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7014 ac_header_preproc=yes
7015 ;;
7016 no:yes:* )
7017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7018echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7020echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7022echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7024echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7026echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7028echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7029 (
7030 cat <<\_ASBOX
7031## ------------------------------------------ ##
7032## Report this to the AC_PACKAGE_NAME lists. ##
7033## ------------------------------------------ ##
7034_ASBOX
7035 ) |
7036 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7037 ;;
7038esac
b4e70030
JB
7039echo "$as_me:$LINENO: checking for $ac_header" >&5
7040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7041if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7042 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7043else
bec39cab 7044 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7045fi
b4e70030
JB
7046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7048
95ca63c4 7049fi
bec39cab
AC
7050if test `eval echo '${'$as_ac_Header'}'` = yes; then
7051 cat >>confdefs.h <<_ACEOF
7052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053_ACEOF
7054
95ca63c4
CF
7055fi
7056
bec39cab 7057done
95ca63c4
CF
7058
7059
7cb9022a 7060for ac_header in link.h
bec39cab
AC
7061do
7062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7063echo "$as_me:$LINENO: checking for $ac_header" >&5
7064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7065if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7066 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7067else
7cb9022a 7068 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
7cb9022a
MK
7074#if HAVE_SYS_TYPES_H
7075# include <sys/types.h>
7076#endif
7077#if HAVE_NLIST_H
7078# include <nlist.h>
7079#endif
7080
7081
bec39cab
AC
7082#include <$ac_header>
7083_ACEOF
7084rm -f conftest.$ac_objext
7085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086 (eval $ac_compile) 2>conftest.er1
7087 ac_status=$?
7088 grep -v '^ *+' conftest.er1 >conftest.err
7089 rm -f conftest.er1
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } &&
b4e70030
JB
7093 { ac_try='test -z "$ac_c_werror_flag"
7094 || test ! -s conftest.err'
bec39cab
AC
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 (eval $ac_try) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7cb9022a 7106 eval "$as_ac_Header=yes"
bec39cab
AC
7107else
7108 echo "$as_me: failed program was:" >&5
7109sed 's/^/| /' conftest.$ac_ext >&5
7110
b4e70030 7111eval "$as_ac_Header=no"
bec39cab
AC
7112fi
7113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7114fi
b4e70030
JB
7115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7117if test `eval echo '${'$as_ac_Header'}'` = yes; then
7118 cat >>confdefs.h <<_ACEOF
7119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7120_ACEOF
95ca63c4 7121
bec39cab 7122fi
95ca63c4 7123
bec39cab 7124done
95ca63c4 7125
c906108c 7126
7cb9022a 7127for ac_header in machine/reg.h
bec39cab
AC
7128do
7129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7130if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131 echo "$as_me:$LINENO: checking for $ac_header" >&5
7132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7133if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135fi
b4e70030
JB
7136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7138else
7139 # Is the header compilable?
b4e70030
JB
7140echo "$as_me:$LINENO: checking $ac_header usability" >&5
7141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7142cat >conftest.$ac_ext <<_ACEOF
7143/* confdefs.h. */
7144_ACEOF
7145cat confdefs.h >>conftest.$ac_ext
7146cat >>conftest.$ac_ext <<_ACEOF
7147/* end confdefs.h. */
7148$ac_includes_default
7149#include <$ac_header>
7150_ACEOF
7151rm -f conftest.$ac_objext
7152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
b4e70030
JB
7160 { ac_try='test -z "$ac_c_werror_flag"
7161 || test ! -s conftest.err'
bec39cab
AC
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; } &&
7167 { ac_try='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 ac_header_compiler=yes
7174else
7175 echo "$as_me: failed program was:" >&5
7176sed 's/^/| /' conftest.$ac_ext >&5
7177
b4e70030 7178ac_header_compiler=no
bec39cab
AC
7179fi
7180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7182echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7183
7184# Is the header present?
b4e70030
JB
7185echo "$as_me:$LINENO: checking $ac_header presence" >&5
7186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7187cat >conftest.$ac_ext <<_ACEOF
7188/* confdefs.h. */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h. */
7193#include <$ac_header>
7194_ACEOF
7195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } >/dev/null; then
7203 if test -s conftest.err; then
7204 ac_cpp_err=$ac_c_preproc_warn_flag
7205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7206 else
7207 ac_cpp_err=
7208 fi
75c6e08a 7209else
bec39cab 7210 ac_cpp_err=yes
75c6e08a 7211fi
bec39cab
AC
7212if test -z "$ac_cpp_err"; then
7213 ac_header_preproc=yes
7214else
7215 echo "$as_me: failed program was:" >&5
7216sed 's/^/| /' conftest.$ac_ext >&5
7217
7218 ac_header_preproc=no
75c6e08a 7219fi
bec39cab 7220rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7222echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7223
7224# So? What about this header?
7225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7226 yes:no: )
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7231 ac_header_preproc=yes
7232 ;;
7233 no:yes:* )
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7246 (
7247 cat <<\_ASBOX
7248## ------------------------------------------ ##
7249## Report this to the AC_PACKAGE_NAME lists. ##
7250## ------------------------------------------ ##
7251_ASBOX
7252 ) |
7253 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7254 ;;
7255esac
b4e70030
JB
7256echo "$as_me:$LINENO: checking for $ac_header" >&5
7257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7258if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7259 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7260else
bec39cab
AC
7261 eval "$as_ac_Header=\$ac_header_preproc"
7262fi
b4e70030
JB
7263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7265
75c6e08a 7266fi
bec39cab
AC
7267if test `eval echo '${'$as_ac_Header'}'` = yes; then
7268 cat >>confdefs.h <<_ACEOF
7269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7270_ACEOF
75c6e08a 7271
bec39cab 7272fi
75c6e08a 7273
bec39cab 7274done
75c6e08a
MK
7275
7276
9a156167 7277
bec39cab
AC
7278for ac_header in poll.h sys/poll.h
7279do
7280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7281if eval "test \"\${$as_ac_Header+set}\" = set"; then
7282 echo "$as_me:$LINENO: checking for $ac_header" >&5
7283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7284if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286fi
b4e70030
JB
7287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7289else
7290 # Is the header compilable?
b4e70030
JB
7291echo "$as_me:$LINENO: checking $ac_header usability" >&5
7292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7293cat >conftest.$ac_ext <<_ACEOF
7294/* confdefs.h. */
7295_ACEOF
7296cat confdefs.h >>conftest.$ac_ext
7297cat >>conftest.$ac_ext <<_ACEOF
7298/* end confdefs.h. */
7299$ac_includes_default
7300#include <$ac_header>
7301_ACEOF
7302rm -f conftest.$ac_objext
7303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304 (eval $ac_compile) 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
b4e70030
JB
7311 { ac_try='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
bec39cab
AC
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_header_compiler=yes
7325else
7326 echo "$as_me: failed program was:" >&5
7327sed 's/^/| /' conftest.$ac_ext >&5
7328
b4e70030 7329ac_header_compiler=no
bec39cab
AC
7330fi
7331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7333echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7334
7335# Is the header present?
b4e70030
JB
7336echo "$as_me:$LINENO: checking $ac_header presence" >&5
7337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7338cat >conftest.$ac_ext <<_ACEOF
7339/* confdefs.h. */
7340_ACEOF
7341cat confdefs.h >>conftest.$ac_ext
7342cat >>conftest.$ac_ext <<_ACEOF
7343/* end confdefs.h. */
7344#include <$ac_header>
7345_ACEOF
7346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } >/dev/null; then
7354 if test -s conftest.err; then
7355 ac_cpp_err=$ac_c_preproc_warn_flag
7356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7357 else
7358 ac_cpp_err=
7359 fi
9a156167 7360else
bec39cab 7361 ac_cpp_err=yes
9a156167 7362fi
bec39cab
AC
7363if test -z "$ac_cpp_err"; then
7364 ac_header_preproc=yes
7365else
7366 echo "$as_me: failed program was:" >&5
7367sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7368
bec39cab 7369 ac_header_preproc=no
9a156167 7370fi
bec39cab 7371rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7373echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7374
bec39cab
AC
7375# So? What about this header?
7376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7377 yes:no: )
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7382 ac_header_preproc=yes
7383 ;;
7384 no:yes:* )
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7397 (
7398 cat <<\_ASBOX
7399## ------------------------------------------ ##
7400## Report this to the AC_PACKAGE_NAME lists. ##
7401## ------------------------------------------ ##
7402_ASBOX
7403 ) |
7404 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7405 ;;
7406esac
b4e70030
JB
7407echo "$as_me:$LINENO: checking for $ac_header" >&5
7408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7410 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7411else
bec39cab 7412 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7413fi
b4e70030
JB
7414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7416
bec39cab
AC
7417fi
7418if test `eval echo '${'$as_ac_Header'}'` = yes; then
7419 cat >>confdefs.h <<_ACEOF
7420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7421_ACEOF
9a156167 7422
bec39cab 7423fi
9a156167 7424
bec39cab 7425done
9a156167 7426
9a156167 7427
9a156167 7428
bec39cab
AC
7429
7430for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7431do
7432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7433if eval "test \"\${$as_ac_Header+set}\" = set"; then
7434 echo "$as_me:$LINENO: checking for $ac_header" >&5
7435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7436if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438fi
b4e70030
JB
7439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7441else
7442 # Is the header compilable?
b4e70030
JB
7443echo "$as_me:$LINENO: checking $ac_header usability" >&5
7444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7445cat >conftest.$ac_ext <<_ACEOF
7446/* confdefs.h. */
7447_ACEOF
7448cat confdefs.h >>conftest.$ac_ext
7449cat >>conftest.$ac_ext <<_ACEOF
7450/* end confdefs.h. */
7451$ac_includes_default
7452#include <$ac_header>
7453_ACEOF
7454rm -f conftest.$ac_objext
7455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
b4e70030
JB
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
bec39cab
AC
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_header_compiler=yes
7477else
7478 echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
7480
b4e70030 7481ac_header_compiler=no
bec39cab
AC
7482fi
7483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7485echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7486
7487# Is the header present?
b4e70030
JB
7488echo "$as_me:$LINENO: checking $ac_header presence" >&5
7489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7490cat >conftest.$ac_ext <<_ACEOF
7491/* confdefs.h. */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h. */
7496#include <$ac_header>
7497_ACEOF
7498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7500 ac_status=$?
7501 grep -v '^ *+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } >/dev/null; then
7506 if test -s conftest.err; then
7507 ac_cpp_err=$ac_c_preproc_warn_flag
7508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7509 else
7510 ac_cpp_err=
7511 fi
9a156167 7512else
bec39cab 7513 ac_cpp_err=yes
9a156167 7514fi
bec39cab
AC
7515if test -z "$ac_cpp_err"; then
7516 ac_header_preproc=yes
7517else
7518 echo "$as_me: failed program was:" >&5
7519sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7520
bec39cab 7521 ac_header_preproc=no
9a156167 7522fi
bec39cab 7523rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7526
bec39cab
AC
7527# So? What about this header?
7528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7529 yes:no: )
7530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7534 ac_header_preproc=yes
7535 ;;
7536 no:yes:* )
7537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7549 (
7550 cat <<\_ASBOX
7551## ------------------------------------------ ##
7552## Report this to the AC_PACKAGE_NAME lists. ##
7553## ------------------------------------------ ##
7554_ASBOX
7555 ) |
7556 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7557 ;;
7558esac
b4e70030
JB
7559echo "$as_me:$LINENO: checking for $ac_header" >&5
7560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7561if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7562 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7563else
bec39cab 7564 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7565fi
b4e70030
JB
7566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
7568
7569fi
bec39cab
AC
7570if test `eval echo '${'$as_ac_Header'}'` = yes; then
7571 cat >>confdefs.h <<_ACEOF
7572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7573_ACEOF
9a156167 7574
bec39cab
AC
7575fi
7576
7577done
9a156167 7578
c890192f 7579
bec39cab
AC
7580for ac_header in stddef.h
7581do
7582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7583if eval "test \"\${$as_ac_Header+set}\" = set"; then
7584 echo "$as_me:$LINENO: checking for $ac_header" >&5
7585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7586if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588fi
b4e70030
JB
7589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7591else
7592 # Is the header compilable?
b4e70030
JB
7593echo "$as_me:$LINENO: checking $ac_header usability" >&5
7594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7595cat >conftest.$ac_ext <<_ACEOF
7596/* confdefs.h. */
7597_ACEOF
7598cat confdefs.h >>conftest.$ac_ext
7599cat >>conftest.$ac_ext <<_ACEOF
7600/* end confdefs.h. */
7601$ac_includes_default
7602#include <$ac_header>
7603_ACEOF
7604rm -f conftest.$ac_objext
7605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606 (eval $ac_compile) 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
b4e70030
JB
7613 { ac_try='test -z "$ac_c_werror_flag"
7614 || test ! -s conftest.err'
bec39cab
AC
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_header_compiler=yes
7627else
7628 echo "$as_me: failed program was:" >&5
7629sed 's/^/| /' conftest.$ac_ext >&5
7630
b4e70030 7631ac_header_compiler=no
bec39cab
AC
7632fi
7633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7635echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7636
7637# Is the header present?
b4e70030
JB
7638echo "$as_me:$LINENO: checking $ac_header presence" >&5
7639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7640cat >conftest.$ac_ext <<_ACEOF
7641/* confdefs.h. */
7642_ACEOF
7643cat confdefs.h >>conftest.$ac_ext
7644cat >>conftest.$ac_ext <<_ACEOF
7645/* end confdefs.h. */
7646#include <$ac_header>
7647_ACEOF
7648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } >/dev/null; then
7656 if test -s conftest.err; then
7657 ac_cpp_err=$ac_c_preproc_warn_flag
7658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7659 else
7660 ac_cpp_err=
7661 fi
c890192f 7662else
bec39cab
AC
7663 ac_cpp_err=yes
7664fi
7665if test -z "$ac_cpp_err"; then
7666 ac_header_preproc=yes
c890192f 7667else
bec39cab
AC
7668 echo "$as_me: failed program was:" >&5
7669sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 ac_header_preproc=no
c890192f 7672fi
bec39cab 7673rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7675echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7676
7677# So? What about this header?
7678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7679 yes:no: )
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7684 ac_header_preproc=yes
7685 ;;
7686 no:yes:* )
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7699 (
7700 cat <<\_ASBOX
7701## ------------------------------------------ ##
7702## Report this to the AC_PACKAGE_NAME lists. ##
7703## ------------------------------------------ ##
7704_ASBOX
7705 ) |
7706 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7707 ;;
7708esac
b4e70030
JB
7709echo "$as_me:$LINENO: checking for $ac_header" >&5
7710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7711if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7712 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 7713else
bec39cab 7714 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 7715fi
b4e70030
JB
7716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7718
c890192f 7719fi
bec39cab
AC
7720if test `eval echo '${'$as_ac_Header'}'` = yes; then
7721 cat >>confdefs.h <<_ACEOF
7722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7723_ACEOF
c890192f 7724
c890192f
MK
7725fi
7726
bec39cab 7727done
9a156167 7728
bec39cab
AC
7729
7730for ac_header in stdlib.h
7731do
7732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7733if eval "test \"\${$as_ac_Header+set}\" = set"; then
7734 echo "$as_me:$LINENO: checking for $ac_header" >&5
7735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7736if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7738fi
b4e70030
JB
7739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7741else
7742 # Is the header compilable?
b4e70030
JB
7743echo "$as_me:$LINENO: checking $ac_header usability" >&5
7744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7745cat >conftest.$ac_ext <<_ACEOF
7746/* confdefs.h. */
7747_ACEOF
7748cat confdefs.h >>conftest.$ac_ext
7749cat >>conftest.$ac_ext <<_ACEOF
7750/* end confdefs.h. */
7751$ac_includes_default
7752#include <$ac_header>
7753_ACEOF
7754rm -f conftest.$ac_objext
7755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7756 (eval $ac_compile) 2>conftest.er1
7757 ac_status=$?
7758 grep -v '^ *+' conftest.er1 >conftest.err
7759 rm -f conftest.er1
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
b4e70030
JB
7763 { ac_try='test -z "$ac_c_werror_flag"
7764 || test ! -s conftest.err'
bec39cab
AC
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; } &&
7770 { ac_try='test -s conftest.$ac_objext'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; }; then
7776 ac_header_compiler=yes
7777else
7778 echo "$as_me: failed program was:" >&5
7779sed 's/^/| /' conftest.$ac_ext >&5
7780
b4e70030 7781ac_header_compiler=no
bec39cab
AC
7782fi
7783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7785echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7786
7787# Is the header present?
b4e70030
JB
7788echo "$as_me:$LINENO: checking $ac_header presence" >&5
7789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7790cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h. */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h. */
7796#include <$ac_header>
7797_ACEOF
7798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } >/dev/null; then
7806 if test -s conftest.err; then
7807 ac_cpp_err=$ac_c_preproc_warn_flag
7808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7809 else
7810 ac_cpp_err=
7811 fi
9a156167 7812else
bec39cab
AC
7813 ac_cpp_err=yes
7814fi
7815if test -z "$ac_cpp_err"; then
7816 ac_header_preproc=yes
9a156167 7817else
bec39cab
AC
7818 echo "$as_me: failed program was:" >&5
7819sed 's/^/| /' conftest.$ac_ext >&5
7820
7821 ac_header_preproc=no
9a156167 7822fi
bec39cab 7823rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7825echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7826
7827# So? What about this header?
7828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7829 yes:no: )
7830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7834 ac_header_preproc=yes
7835 ;;
7836 no:yes:* )
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7849 (
7850 cat <<\_ASBOX
7851## ------------------------------------------ ##
7852## Report this to the AC_PACKAGE_NAME lists. ##
7853## ------------------------------------------ ##
7854_ASBOX
7855 ) |
7856 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7857 ;;
7858esac
b4e70030
JB
7859echo "$as_me:$LINENO: checking for $ac_header" >&5
7860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7861if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7862 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7863else
bec39cab 7864 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7865fi
b4e70030
JB
7866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7868
9a156167 7869fi
bec39cab
AC
7870if test `eval echo '${'$as_ac_Header'}'` = yes; then
7871 cat >>confdefs.h <<_ACEOF
7872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7873_ACEOF
9a156167 7874
9a156167
MK
7875fi
7876
bec39cab
AC
7877done
7878
06825bd1 7879
bec39cab
AC
7880for ac_header in stdint.h
7881do
7882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7883if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884 echo "$as_me:$LINENO: checking for $ac_header" >&5
7885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7886if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888fi
b4e70030
JB
7889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7891else
7892 # Is the header compilable?
b4e70030
JB
7893echo "$as_me:$LINENO: checking $ac_header usability" >&5
7894echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7895cat >conftest.$ac_ext <<_ACEOF
7896/* confdefs.h. */
7897_ACEOF
7898cat confdefs.h >>conftest.$ac_ext
7899cat >>conftest.$ac_ext <<_ACEOF
7900/* end confdefs.h. */
7901$ac_includes_default
7902#include <$ac_header>
7903_ACEOF
7904rm -f conftest.$ac_objext
7905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906 (eval $ac_compile) 2>conftest.er1
7907 ac_status=$?
7908 grep -v '^ *+' conftest.er1 >conftest.err
7909 rm -f conftest.er1
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
b4e70030
JB
7913 { ac_try='test -z "$ac_c_werror_flag"
7914 || test ! -s conftest.err'
bec39cab
AC
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; } &&
7920 { ac_try='test -s conftest.$ac_objext'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 (eval $ac_try) 2>&5
7923 ac_status=$?
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7926 ac_header_compiler=yes
7927else
7928 echo "$as_me: failed program was:" >&5
7929sed 's/^/| /' conftest.$ac_ext >&5
7930
b4e70030 7931ac_header_compiler=no
bec39cab
AC
7932fi
7933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7935echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7936
7937# Is the header present?
b4e70030
JB
7938echo "$as_me:$LINENO: checking $ac_header presence" >&5
7939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7940cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
7946#include <$ac_header>
7947_ACEOF
7948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } >/dev/null; then
7956 if test -s conftest.err; then
7957 ac_cpp_err=$ac_c_preproc_warn_flag
7958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7959 else
7960 ac_cpp_err=
7961 fi
06825bd1 7962else
bec39cab
AC
7963 ac_cpp_err=yes
7964fi
7965if test -z "$ac_cpp_err"; then
7966 ac_header_preproc=yes
06825bd1 7967else
bec39cab
AC
7968 echo "$as_me: failed program was:" >&5
7969sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 ac_header_preproc=no
06825bd1 7972fi
bec39cab 7973rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7975echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7976
7977# So? What about this header?
7978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7979 yes:no: )
7980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7984 ac_header_preproc=yes
7985 ;;
7986 no:yes:* )
7987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7999 (
8000 cat <<\_ASBOX
8001## ------------------------------------------ ##
8002## Report this to the AC_PACKAGE_NAME lists. ##
8003## ------------------------------------------ ##
8004_ASBOX
8005 ) |
8006 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8007 ;;
8008esac
b4e70030
JB
8009echo "$as_me:$LINENO: checking for $ac_header" >&5
8010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8011if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8012 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8013else
bec39cab 8014 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8015fi
b4e70030
JB
8016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8018
06825bd1 8019fi
bec39cab
AC
8020if test `eval echo '${'$as_ac_Header'}'` = yes; then
8021 cat >>confdefs.h <<_ACEOF
8022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8023_ACEOF
06825bd1 8024
06825bd1 8025fi
4f0be353 8026
bec39cab 8027done
4f0be353 8028
06825bd1 8029
06825bd1 8030
bec39cab
AC
8031
8032for ac_header in string.h memory.h strings.h
8033do
8034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8035if eval "test \"\${$as_ac_Header+set}\" = set"; then
8036 echo "$as_me:$LINENO: checking for $ac_header" >&5
8037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8038if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040fi
b4e70030
JB
8041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8043else
8044 # Is the header compilable?
b4e70030
JB
8045echo "$as_me:$LINENO: checking $ac_header usability" >&5
8046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8047cat >conftest.$ac_ext <<_ACEOF
8048/* confdefs.h. */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
8052/* end confdefs.h. */
8053$ac_includes_default
8054#include <$ac_header>
8055_ACEOF
8056rm -f conftest.$ac_objext
8057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
b4e70030
JB
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
bec39cab
AC
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_header_compiler=yes
8079else
8080 echo "$as_me: failed program was:" >&5
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
b4e70030 8083ac_header_compiler=no
bec39cab
AC
8084fi
8085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8087echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8088
8089# Is the header present?
b4e70030
JB
8090echo "$as_me:$LINENO: checking $ac_header presence" >&5
8091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8092cat >conftest.$ac_ext <<_ACEOF
8093/* confdefs.h. */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h. */
8098#include <$ac_header>
8099_ACEOF
8100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } >/dev/null; then
8108 if test -s conftest.err; then
8109 ac_cpp_err=$ac_c_preproc_warn_flag
8110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8111 else
8112 ac_cpp_err=
8113 fi
06825bd1 8114else
bec39cab
AC
8115 ac_cpp_err=yes
8116fi
8117if test -z "$ac_cpp_err"; then
8118 ac_header_preproc=yes
06825bd1 8119else
bec39cab
AC
8120 echo "$as_me: failed program was:" >&5
8121sed 's/^/| /' conftest.$ac_ext >&5
8122
8123 ac_header_preproc=no
06825bd1 8124fi
bec39cab 8125rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8127echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8128
8129# So? What about this header?
8130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8131 yes:no: )
8132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8136 ac_header_preproc=yes
8137 ;;
8138 no:yes:* )
8139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8151 (
8152 cat <<\_ASBOX
8153## ------------------------------------------ ##
8154## Report this to the AC_PACKAGE_NAME lists. ##
8155## ------------------------------------------ ##
8156_ASBOX
8157 ) |
8158 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8159 ;;
8160esac
b4e70030
JB
8161echo "$as_me:$LINENO: checking for $ac_header" >&5
8162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8163if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8167fi
b4e70030
JB
8168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8170
06825bd1 8171fi
bec39cab
AC
8172if test `eval echo '${'$as_ac_Header'}'` = yes; then
8173 cat >>confdefs.h <<_ACEOF
8174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8175_ACEOF
06825bd1 8176
06825bd1
MK
8177fi
8178
bec39cab 8179done
5ee754fc 8180
bec39cab
AC
8181
8182for ac_header in sys/fault.h
5ee754fc 8183do
bec39cab 8184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8185if eval "test \"\${$as_ac_Header+set}\" = set"; then
8186 echo "$as_me:$LINENO: checking for $ac_header" >&5
8187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8188if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190fi
b4e70030
JB
8191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8193else
8194 # Is the header compilable?
b4e70030
JB
8195echo "$as_me:$LINENO: checking $ac_header usability" >&5
8196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8197cat >conftest.$ac_ext <<_ACEOF
8198/* confdefs.h. */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h. */
8203$ac_includes_default
8204#include <$ac_header>
8205_ACEOF
8206rm -f conftest.$ac_objext
8207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208 (eval $ac_compile) 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
b4e70030
JB
8215 { ac_try='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
bec39cab
AC
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest.$ac_objext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_header_compiler=yes
8229else
8230 echo "$as_me: failed program was:" >&5
8231sed 's/^/| /' conftest.$ac_ext >&5
8232
b4e70030 8233ac_header_compiler=no
bec39cab
AC
8234fi
8235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8236echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8237echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8238
8239# Is the header present?
b4e70030
JB
8240echo "$as_me:$LINENO: checking $ac_header presence" >&5
8241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8242cat >conftest.$ac_ext <<_ACEOF
8243/* confdefs.h. */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h. */
8248#include <$ac_header>
8249_ACEOF
8250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } >/dev/null; then
8258 if test -s conftest.err; then
8259 ac_cpp_err=$ac_c_preproc_warn_flag
8260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8261 else
8262 ac_cpp_err=
8263 fi
5ee754fc 8264else
bec39cab 8265 ac_cpp_err=yes
5ee754fc 8266fi
bec39cab
AC
8267if test -z "$ac_cpp_err"; then
8268 ac_header_preproc=yes
8269else
8270 echo "$as_me: failed program was:" >&5
8271sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8272
bec39cab 8273 ac_header_preproc=no
5ee754fc 8274fi
bec39cab 8275rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8276echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8277echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8278
8279# So? What about this header?
8280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8281 yes:no: )
8282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8283echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8285echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8286 ac_header_preproc=yes
8287 ;;
8288 no:yes:* )
8289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8290echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8292echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8294echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8296echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8300echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8301 (
8302 cat <<\_ASBOX
8303## ------------------------------------------ ##
8304## Report this to the AC_PACKAGE_NAME lists. ##
8305## ------------------------------------------ ##
8306_ASBOX
8307 ) |
8308 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8309 ;;
8310esac
b4e70030
JB
8311echo "$as_me:$LINENO: checking for $ac_header" >&5
8312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8313if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8314 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8315else
bec39cab 8316 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8317fi
b4e70030
JB
8318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8319echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8320
5ee754fc 8321fi
bec39cab
AC
8322if test `eval echo '${'$as_ac_Header'}'` = yes; then
8323 cat >>confdefs.h <<_ACEOF
8324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8325_ACEOF
c906108c 8326
5ee754fc 8327fi
bec39cab
AC
8328
8329done
8330
8331
8332for ac_header in sys/file.h
8333do
8334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8335if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336 echo "$as_me:$LINENO: checking for $ac_header" >&5
8337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8338if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340fi
b4e70030
JB
8341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8343else
8344 # Is the header compilable?
b4e70030
JB
8345echo "$as_me:$LINENO: checking $ac_header usability" >&5
8346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8347cat >conftest.$ac_ext <<_ACEOF
8348/* confdefs.h. */
8349_ACEOF
8350cat confdefs.h >>conftest.$ac_ext
8351cat >>conftest.$ac_ext <<_ACEOF
8352/* end confdefs.h. */
8353$ac_includes_default
8354#include <$ac_header>
8355_ACEOF
8356rm -f conftest.$ac_objext
8357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8358 (eval $ac_compile) 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
b4e70030
JB
8365 { ac_try='test -z "$ac_c_werror_flag"
8366 || test ! -s conftest.err'
bec39cab
AC
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest.$ac_objext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_header_compiler=yes
8379else
8380 echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
b4e70030 8383ac_header_compiler=no
bec39cab
AC
8384fi
8385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8387echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8388
8389# Is the header present?
b4e70030
JB
8390echo "$as_me:$LINENO: checking $ac_header presence" >&5
8391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8392cat >conftest.$ac_ext <<_ACEOF
8393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
8398#include <$ac_header>
8399_ACEOF
8400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } >/dev/null; then
8408 if test -s conftest.err; then
8409 ac_cpp_err=$ac_c_preproc_warn_flag
8410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8411 else
8412 ac_cpp_err=
8413 fi
5ee754fc 8414else
bec39cab 8415 ac_cpp_err=yes
5ee754fc 8416fi
bec39cab
AC
8417if test -z "$ac_cpp_err"; then
8418 ac_header_preproc=yes
8419else
8420 echo "$as_me: failed program was:" >&5
8421sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8422
bec39cab 8423 ac_header_preproc=no
5ee754fc 8424fi
bec39cab 8425rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8427echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8428
bec39cab
AC
8429# So? What about this header?
8430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8431 yes:no: )
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8436 ac_header_preproc=yes
8437 ;;
8438 no:yes:* )
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8451 (
8452 cat <<\_ASBOX
8453## ------------------------------------------ ##
8454## Report this to the AC_PACKAGE_NAME lists. ##
8455## ------------------------------------------ ##
8456_ASBOX
8457 ) |
8458 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8459 ;;
8460esac
b4e70030
JB
8461echo "$as_me:$LINENO: checking for $ac_header" >&5
8462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8464 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8465else
bec39cab
AC
8466 eval "$as_ac_Header=\$ac_header_preproc"
8467fi
b4e70030
JB
8468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8470
bec39cab
AC
8471fi
8472if test `eval echo '${'$as_ac_Header'}'` = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8475_ACEOF
5ee754fc 8476
bec39cab 8477fi
5ee754fc 8478
bec39cab 8479done
5ee754fc 8480
5ee754fc 8481
bec39cab
AC
8482for ac_header in sys/filio.h
8483do
8484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8485if eval "test \"\${$as_ac_Header+set}\" = set"; then
8486 echo "$as_me:$LINENO: checking for $ac_header" >&5
8487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8488if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490fi
b4e70030
JB
8491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8493else
8494 # Is the header compilable?
b4e70030
JB
8495echo "$as_me:$LINENO: checking $ac_header usability" >&5
8496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8497cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h. */
8503$ac_includes_default
8504#include <$ac_header>
8505_ACEOF
8506rm -f conftest.$ac_objext
8507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508 (eval $ac_compile) 2>conftest.er1
8509 ac_status=$?
8510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
b4e70030
JB
8515 { ac_try='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
bec39cab
AC
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest.$ac_objext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_header_compiler=yes
8529else
8530 echo "$as_me: failed program was:" >&5
8531sed 's/^/| /' conftest.$ac_ext >&5
8532
b4e70030 8533ac_header_compiler=no
bec39cab
AC
8534fi
8535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8537echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8538
8539# Is the header present?
b4e70030
JB
8540echo "$as_me:$LINENO: checking $ac_header presence" >&5
8541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8542cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h. */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h. */
8548#include <$ac_header>
8549_ACEOF
8550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } >/dev/null; then
8558 if test -s conftest.err; then
8559 ac_cpp_err=$ac_c_preproc_warn_flag
8560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8561 else
8562 ac_cpp_err=
8563 fi
5ee754fc 8564else
bec39cab 8565 ac_cpp_err=yes
5ee754fc 8566fi
bec39cab
AC
8567if test -z "$ac_cpp_err"; then
8568 ac_header_preproc=yes
8569else
8570 echo "$as_me: failed program was:" >&5
8571sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8572
bec39cab 8573 ac_header_preproc=no
5ee754fc 8574fi
bec39cab 8575rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8577echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8578
bec39cab
AC
8579# So? What about this header?
8580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8581 yes:no: )
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8586 ac_header_preproc=yes
8587 ;;
8588 no:yes:* )
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8601 (
8602 cat <<\_ASBOX
8603## ------------------------------------------ ##
8604## Report this to the AC_PACKAGE_NAME lists. ##
8605## ------------------------------------------ ##
8606_ASBOX
8607 ) |
8608 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8609 ;;
8610esac
b4e70030
JB
8611echo "$as_me:$LINENO: checking for $ac_header" >&5
8612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8613if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8614 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8615else
bec39cab 8616 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8617fi
b4e70030
JB
8618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8620
5ee754fc 8621fi
bec39cab
AC
8622if test `eval echo '${'$as_ac_Header'}'` = yes; then
8623 cat >>confdefs.h <<_ACEOF
8624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8625_ACEOF
5ee754fc
MK
8626
8627fi
8628
bec39cab
AC
8629done
8630
8631
8632for ac_header in sys/ioctl.h
8633do
8634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8635if eval "test \"\${$as_ac_Header+set}\" = set"; then
8636 echo "$as_me:$LINENO: checking for $ac_header" >&5
8637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8638if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640fi
b4e70030
JB
8641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8643else
8644 # Is the header compilable?
b4e70030
JB
8645echo "$as_me:$LINENO: checking $ac_header usability" >&5
8646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8647cat >conftest.$ac_ext <<_ACEOF
8648/* confdefs.h. */
8649_ACEOF
8650cat confdefs.h >>conftest.$ac_ext
8651cat >>conftest.$ac_ext <<_ACEOF
8652/* end confdefs.h. */
8653$ac_includes_default
8654#include <$ac_header>
8655_ACEOF
8656rm -f conftest.$ac_objext
8657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
b4e70030
JB
8665 { ac_try='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
bec39cab
AC
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_header_compiler=yes
8679else
8680 echo "$as_me: failed program was:" >&5
8681sed 's/^/| /' conftest.$ac_ext >&5
8682
b4e70030 8683ac_header_compiler=no
bec39cab
AC
8684fi
8685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8687echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8688
8689# Is the header present?
b4e70030
JB
8690echo "$as_me:$LINENO: checking $ac_header presence" >&5
8691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8692cat >conftest.$ac_ext <<_ACEOF
8693/* confdefs.h. */
8694_ACEOF
8695cat confdefs.h >>conftest.$ac_ext
8696cat >>conftest.$ac_ext <<_ACEOF
8697/* end confdefs.h. */
8698#include <$ac_header>
8699_ACEOF
8700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } >/dev/null; then
8708 if test -s conftest.err; then
8709 ac_cpp_err=$ac_c_preproc_warn_flag
8710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8711 else
8712 ac_cpp_err=
8713 fi
5ee754fc 8714else
bec39cab 8715 ac_cpp_err=yes
5ee754fc 8716fi
bec39cab
AC
8717if test -z "$ac_cpp_err"; then
8718 ac_header_preproc=yes
8719else
8720 echo "$as_me: failed program was:" >&5
8721sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8722
bec39cab 8723 ac_header_preproc=no
5ee754fc 8724fi
bec39cab 8725rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8727echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8728
bec39cab
AC
8729# So? What about this header?
8730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8731 yes:no: )
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8736 ac_header_preproc=yes
8737 ;;
8738 no:yes:* )
8739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8742echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8746echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8751 (
8752 cat <<\_ASBOX
8753## ------------------------------------------ ##
8754## Report this to the AC_PACKAGE_NAME lists. ##
8755## ------------------------------------------ ##
8756_ASBOX
8757 ) |
8758 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8759 ;;
8760esac
b4e70030
JB
8761echo "$as_me:$LINENO: checking for $ac_header" >&5
8762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8763if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8764 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8765else
bec39cab 8766 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8767fi
b4e70030
JB
8768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
8770
8771fi
bec39cab
AC
8772if test `eval echo '${'$as_ac_Header'}'` = yes; then
8773 cat >>confdefs.h <<_ACEOF
8774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775_ACEOF
8776
5ee754fc
MK
8777fi
8778
bec39cab 8779done
5ee754fc 8780
5ee754fc 8781
bec39cab 8782for ac_header in sys/param.h
5ee754fc 8783do
bec39cab 8784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8785if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786 echo "$as_me:$LINENO: checking for $ac_header" >&5
8787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8788if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790fi
b4e70030
JB
8791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8793else
8794 # Is the header compilable?
b4e70030
JB
8795echo "$as_me:$LINENO: checking $ac_header usability" >&5
8796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8797cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h. */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
8802/* end confdefs.h. */
8803$ac_includes_default
8804#include <$ac_header>
8805_ACEOF
8806rm -f conftest.$ac_objext
8807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
b4e70030
JB
8815 { ac_try='test -z "$ac_c_werror_flag"
8816 || test ! -s conftest.err'
bec39cab
AC
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest.$ac_objext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_header_compiler=yes
8829else
8830 echo "$as_me: failed program was:" >&5
8831sed 's/^/| /' conftest.$ac_ext >&5
8832
b4e70030 8833ac_header_compiler=no
bec39cab
AC
8834fi
8835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8837echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8838
8839# Is the header present?
b4e70030
JB
8840echo "$as_me:$LINENO: checking $ac_header presence" >&5
8841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8842cat >conftest.$ac_ext <<_ACEOF
8843/* confdefs.h. */
8844_ACEOF
8845cat confdefs.h >>conftest.$ac_ext
8846cat >>conftest.$ac_ext <<_ACEOF
8847/* end confdefs.h. */
8848#include <$ac_header>
8849_ACEOF
8850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } >/dev/null; then
8858 if test -s conftest.err; then
8859 ac_cpp_err=$ac_c_preproc_warn_flag
8860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8861 else
8862 ac_cpp_err=
8863 fi
5ee754fc 8864else
bec39cab 8865 ac_cpp_err=yes
5ee754fc 8866fi
bec39cab
AC
8867if test -z "$ac_cpp_err"; then
8868 ac_header_preproc=yes
8869else
8870 echo "$as_me: failed program was:" >&5
8871sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8872
bec39cab 8873 ac_header_preproc=no
5ee754fc 8874fi
bec39cab 8875rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8877echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8878
8879# So? What about this header?
8880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8881 yes:no: )
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8886 ac_header_preproc=yes
8887 ;;
8888 no:yes:* )
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8892echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8896echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8901 (
8902 cat <<\_ASBOX
8903## ------------------------------------------ ##
8904## Report this to the AC_PACKAGE_NAME lists. ##
8905## ------------------------------------------ ##
8906_ASBOX
8907 ) |
8908 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8909 ;;
8910esac
b4e70030
JB
8911echo "$as_me:$LINENO: checking for $ac_header" >&5
8912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8913if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8914 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8915else
bec39cab 8916 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8917fi
b4e70030
JB
8918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8920
5ee754fc 8921fi
bec39cab
AC
8922if test `eval echo '${'$as_ac_Header'}'` = yes; then
8923 cat >>confdefs.h <<_ACEOF
8924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8925_ACEOF
8926
5ee754fc 8927fi
bec39cab 8928
5ee754fc
MK
8929done
8930
bec39cab
AC
8931
8932for ac_header in sys/proc.h
5ee754fc 8933do
bec39cab 8934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8935echo "$as_me:$LINENO: checking for $ac_header" >&5
8936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8937if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8938 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 8939else
7cb9022a 8940 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
8941/* confdefs.h. */
8942_ACEOF
8943cat confdefs.h >>conftest.$ac_ext
8944cat >>conftest.$ac_ext <<_ACEOF
8945/* end confdefs.h. */
7cb9022a
MK
8946#if HAVE_SYS_PARAM_H
8947# include <sys/param.h>
8948#endif
8949
8950
bec39cab
AC
8951#include <$ac_header>
8952_ACEOF
8953rm -f conftest.$ac_objext
8954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955 (eval $ac_compile) 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
b4e70030
JB
8962 { ac_try='test -z "$ac_c_werror_flag"
8963 || test ! -s conftest.err'
bec39cab
AC
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; } &&
8969 { ac_try='test -s conftest.$ac_objext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 (eval $ac_try) 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
7cb9022a 8975 eval "$as_ac_Header=yes"
bec39cab
AC
8976else
8977 echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
b4e70030 8980eval "$as_ac_Header=no"
bec39cab
AC
8981fi
8982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 8983fi
b4e70030
JB
8984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8986if test `eval echo '${'$as_ac_Header'}'` = yes; then
8987 cat >>confdefs.h <<_ACEOF
8988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8989_ACEOF
8990
5ee754fc 8991fi
bec39cab 8992
5ee754fc
MK
8993done
8994
bec39cab
AC
8995
8996for ac_header in sys/procfs.h
5ee754fc 8997do
bec39cab 8998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8999if eval "test \"\${$as_ac_Header+set}\" = set"; then
9000 echo "$as_me:$LINENO: checking for $ac_header" >&5
9001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9002if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004fi
b4e70030
JB
9005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9007else
9008 # Is the header compilable?
b4e70030
JB
9009echo "$as_me:$LINENO: checking $ac_header usability" >&5
9010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9011cat >conftest.$ac_ext <<_ACEOF
9012/* confdefs.h. */
9013_ACEOF
9014cat confdefs.h >>conftest.$ac_ext
9015cat >>conftest.$ac_ext <<_ACEOF
9016/* end confdefs.h. */
9017$ac_includes_default
9018#include <$ac_header>
9019_ACEOF
9020rm -f conftest.$ac_objext
9021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022 (eval $ac_compile) 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
b4e70030
JB
9029 { ac_try='test -z "$ac_c_werror_flag"
9030 || test ! -s conftest.err'
bec39cab
AC
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 (eval $ac_try) 2>&5
9033 ac_status=$?
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; } &&
9036 { ac_try='test -s conftest.$ac_objext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 ac_header_compiler=yes
9043else
9044 echo "$as_me: failed program was:" >&5
9045sed 's/^/| /' conftest.$ac_ext >&5
9046
b4e70030 9047ac_header_compiler=no
bec39cab
AC
9048fi
9049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9050echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9051echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9052
9053# Is the header present?
b4e70030
JB
9054echo "$as_me:$LINENO: checking $ac_header presence" >&5
9055echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9056cat >conftest.$ac_ext <<_ACEOF
9057/* confdefs.h. */
9058_ACEOF
9059cat confdefs.h >>conftest.$ac_ext
9060cat >>conftest.$ac_ext <<_ACEOF
9061/* end confdefs.h. */
9062#include <$ac_header>
9063_ACEOF
9064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } >/dev/null; then
9072 if test -s conftest.err; then
9073 ac_cpp_err=$ac_c_preproc_warn_flag
9074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9075 else
9076 ac_cpp_err=
9077 fi
9078else
9079 ac_cpp_err=yes
5ee754fc 9080fi
bec39cab
AC
9081if test -z "$ac_cpp_err"; then
9082 ac_header_preproc=yes
5ee754fc 9083else
bec39cab
AC
9084 echo "$as_me: failed program was:" >&5
9085sed 's/^/| /' conftest.$ac_ext >&5
9086
9087 ac_header_preproc=no
5ee754fc 9088fi
bec39cab 9089rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9090echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9091echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9092
bec39cab
AC
9093# So? What about this header?
9094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9095 yes:no: )
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9097echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9099echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9100 ac_header_preproc=yes
9101 ;;
9102 no:yes:* )
9103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9104echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9106echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9108echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9110echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9112echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9114echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9115 (
9116 cat <<\_ASBOX
9117## ------------------------------------------ ##
9118## Report this to the AC_PACKAGE_NAME lists. ##
9119## ------------------------------------------ ##
9120_ASBOX
9121 ) |
9122 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9123 ;;
9124esac
b4e70030
JB
9125echo "$as_me:$LINENO: checking for $ac_header" >&5
9126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9127if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129else
9130 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9131fi
b4e70030
JB
9132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9134
5ee754fc 9135fi
bec39cab
AC
9136if test `eval echo '${'$as_ac_Header'}'` = yes; then
9137 cat >>confdefs.h <<_ACEOF
9138#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9139_ACEOF
9140
5ee754fc 9141fi
bec39cab 9142
5ee754fc
MK
9143done
9144
bec39cab
AC
9145
9146
9147for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9148do
bec39cab 9149as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9150if eval "test \"\${$as_ac_Header+set}\" = set"; then
9151 echo "$as_me:$LINENO: checking for $ac_header" >&5
9152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9153if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155fi
b4e70030
JB
9156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9158else
9159 # Is the header compilable?
b4e70030
JB
9160echo "$as_me:$LINENO: checking $ac_header usability" >&5
9161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9162cat >conftest.$ac_ext <<_ACEOF
9163/* confdefs.h. */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h. */
9168$ac_includes_default
9169#include <$ac_header>
9170_ACEOF
9171rm -f conftest.$ac_objext
9172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9173 (eval $ac_compile) 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
b4e70030
JB
9180 { ac_try='test -z "$ac_c_werror_flag"
9181 || test ! -s conftest.err'
bec39cab
AC
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try='test -s conftest.$ac_objext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_header_compiler=yes
9194else
9195 echo "$as_me: failed program was:" >&5
9196sed 's/^/| /' conftest.$ac_ext >&5
9197
b4e70030 9198ac_header_compiler=no
bec39cab
AC
9199fi
9200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9201echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9202echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9203
9204# Is the header present?
b4e70030
JB
9205echo "$as_me:$LINENO: checking $ac_header presence" >&5
9206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9207cat >conftest.$ac_ext <<_ACEOF
9208/* confdefs.h. */
9209_ACEOF
9210cat confdefs.h >>conftest.$ac_ext
9211cat >>conftest.$ac_ext <<_ACEOF
9212/* end confdefs.h. */
9213#include <$ac_header>
9214_ACEOF
9215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } >/dev/null; then
9223 if test -s conftest.err; then
9224 ac_cpp_err=$ac_c_preproc_warn_flag
9225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9226 else
9227 ac_cpp_err=
9228 fi
9229else
9230 ac_cpp_err=yes
5ee754fc 9231fi
bec39cab
AC
9232if test -z "$ac_cpp_err"; then
9233 ac_header_preproc=yes
5ee754fc 9234else
bec39cab
AC
9235 echo "$as_me: failed program was:" >&5
9236sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_header_preproc=no
5ee754fc 9239fi
bec39cab 9240rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9241echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9242echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9243
bec39cab
AC
9244# So? What about this header?
9245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9246 yes:no: )
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9248echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9250echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9251 ac_header_preproc=yes
9252 ;;
9253 no:yes:* )
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9255echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9257echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9259echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9261echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9263echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9265echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9266 (
9267 cat <<\_ASBOX
9268## ------------------------------------------ ##
9269## Report this to the AC_PACKAGE_NAME lists. ##
9270## ------------------------------------------ ##
9271_ASBOX
9272 ) |
9273 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9274 ;;
9275esac
b4e70030
JB
9276echo "$as_me:$LINENO: checking for $ac_header" >&5
9277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9278if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280else
9281 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9282fi
b4e70030
JB
9283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9284echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9285
5ee754fc 9286fi
bec39cab
AC
9287if test `eval echo '${'$as_ac_Header'}'` = yes; then
9288 cat >>confdefs.h <<_ACEOF
9289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9290_ACEOF
9291
5ee754fc 9292fi
bec39cab 9293
5ee754fc
MK
9294done
9295
bec39cab
AC
9296
9297
9298for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9299do
bec39cab 9300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9301if eval "test \"\${$as_ac_Header+set}\" = set"; then
9302 echo "$as_me:$LINENO: checking for $ac_header" >&5
9303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9304if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306fi
b4e70030
JB
9307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9309else
9310 # Is the header compilable?
b4e70030
JB
9311echo "$as_me:$LINENO: checking $ac_header usability" >&5
9312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9313cat >conftest.$ac_ext <<_ACEOF
9314/* confdefs.h. */
9315_ACEOF
9316cat confdefs.h >>conftest.$ac_ext
9317cat >>conftest.$ac_ext <<_ACEOF
9318/* end confdefs.h. */
9319$ac_includes_default
9320#include <$ac_header>
9321_ACEOF
9322rm -f conftest.$ac_objext
9323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9324 (eval $ac_compile) 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
b4e70030
JB
9331 { ac_try='test -z "$ac_c_werror_flag"
9332 || test ! -s conftest.err'
bec39cab
AC
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try='test -s conftest.$ac_objext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_header_compiler=yes
9345else
9346 echo "$as_me: failed program was:" >&5
9347sed 's/^/| /' conftest.$ac_ext >&5
9348
b4e70030 9349ac_header_compiler=no
bec39cab
AC
9350fi
9351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9353echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9354
9355# Is the header present?
b4e70030
JB
9356echo "$as_me:$LINENO: checking $ac_header presence" >&5
9357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9358cat >conftest.$ac_ext <<_ACEOF
9359/* confdefs.h. */
9360_ACEOF
9361cat confdefs.h >>conftest.$ac_ext
9362cat >>conftest.$ac_ext <<_ACEOF
9363/* end confdefs.h. */
9364#include <$ac_header>
9365_ACEOF
9366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null; then
9374 if test -s conftest.err; then
9375 ac_cpp_err=$ac_c_preproc_warn_flag
9376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9377 else
9378 ac_cpp_err=
9379 fi
9380else
9381 ac_cpp_err=yes
5ee754fc 9382fi
bec39cab
AC
9383if test -z "$ac_cpp_err"; then
9384 ac_header_preproc=yes
5ee754fc 9385else
bec39cab
AC
9386 echo "$as_me: failed program was:" >&5
9387sed 's/^/| /' conftest.$ac_ext >&5
9388
9389 ac_header_preproc=no
5ee754fc 9390fi
bec39cab 9391rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9393echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9394
bec39cab
AC
9395# So? What about this header?
9396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9397 yes:no: )
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9402 ac_header_preproc=yes
9403 ;;
9404 no:yes:* )
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9408echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9412echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9417 (
9418 cat <<\_ASBOX
9419## ------------------------------------------ ##
9420## Report this to the AC_PACKAGE_NAME lists. ##
9421## ------------------------------------------ ##
9422_ASBOX
9423 ) |
9424 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9425 ;;
9426esac
b4e70030
JB
9427echo "$as_me:$LINENO: checking for $ac_header" >&5
9428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9429if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9433fi
b4e70030
JB
9434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9436
5ee754fc 9437fi
bec39cab
AC
9438if test `eval echo '${'$as_ac_Header'}'` = yes; then
9439 cat >>confdefs.h <<_ACEOF
9440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9441_ACEOF
9442
5ee754fc 9443fi
bec39cab 9444
5ee754fc
MK
9445done
9446
bec39cab
AC
9447
9448for ac_header in sys/select.h
5ee754fc 9449do
bec39cab 9450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9451if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452 echo "$as_me:$LINENO: checking for $ac_header" >&5
9453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9454if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456fi
b4e70030
JB
9457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9459else
9460 # Is the header compilable?
b4e70030
JB
9461echo "$as_me:$LINENO: checking $ac_header usability" >&5
9462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9463cat >conftest.$ac_ext <<_ACEOF
9464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
9469$ac_includes_default
9470#include <$ac_header>
9471_ACEOF
9472rm -f conftest.$ac_objext
9473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474 (eval $ac_compile) 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
b4e70030
JB
9481 { ac_try='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
bec39cab
AC
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 ac_header_compiler=yes
9495else
9496 echo "$as_me: failed program was:" >&5
9497sed 's/^/| /' conftest.$ac_ext >&5
9498
b4e70030 9499ac_header_compiler=no
bec39cab
AC
9500fi
9501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9503echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9504
9505# Is the header present?
b4e70030
JB
9506echo "$as_me:$LINENO: checking $ac_header presence" >&5
9507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9508cat >conftest.$ac_ext <<_ACEOF
9509/* confdefs.h. */
9510_ACEOF
9511cat confdefs.h >>conftest.$ac_ext
9512cat >>conftest.$ac_ext <<_ACEOF
9513/* end confdefs.h. */
9514#include <$ac_header>
9515_ACEOF
9516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null; then
9524 if test -s conftest.err; then
9525 ac_cpp_err=$ac_c_preproc_warn_flag
9526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9527 else
9528 ac_cpp_err=
9529 fi
9530else
9531 ac_cpp_err=yes
5ee754fc 9532fi
bec39cab
AC
9533if test -z "$ac_cpp_err"; then
9534 ac_header_preproc=yes
5ee754fc 9535else
bec39cab
AC
9536 echo "$as_me: failed program was:" >&5
9537sed 's/^/| /' conftest.$ac_ext >&5
9538
9539 ac_header_preproc=no
5ee754fc 9540fi
bec39cab 9541rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9544
bec39cab
AC
9545# So? What about this header?
9546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9547 yes:no: )
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9552 ac_header_preproc=yes
9553 ;;
9554 no:yes:* )
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9567 (
9568 cat <<\_ASBOX
9569## ------------------------------------------ ##
9570## Report this to the AC_PACKAGE_NAME lists. ##
9571## ------------------------------------------ ##
9572_ASBOX
9573 ) |
9574 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9575 ;;
9576esac
b4e70030
JB
9577echo "$as_me:$LINENO: checking for $ac_header" >&5
9578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9579if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581else
9582 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9583fi
b4e70030
JB
9584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9586
5ee754fc 9587fi
bec39cab
AC
9588if test `eval echo '${'$as_ac_Header'}'` = yes; then
9589 cat >>confdefs.h <<_ACEOF
9590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9591_ACEOF
9592
5ee754fc 9593fi
bec39cab 9594
5ee754fc
MK
9595done
9596
bec39cab
AC
9597
9598for ac_header in sys/syscall.h
5ee754fc 9599do
bec39cab 9600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9601if eval "test \"\${$as_ac_Header+set}\" = set"; then
9602 echo "$as_me:$LINENO: checking for $ac_header" >&5
9603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9604if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606fi
b4e70030
JB
9607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9609else
9610 # Is the header compilable?
b4e70030
JB
9611echo "$as_me:$LINENO: checking $ac_header usability" >&5
9612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9613cat >conftest.$ac_ext <<_ACEOF
9614/* confdefs.h. */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h. */
9619$ac_includes_default
9620#include <$ac_header>
9621_ACEOF
9622rm -f conftest.$ac_objext
9623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624 (eval $ac_compile) 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
b4e70030
JB
9631 { ac_try='test -z "$ac_c_werror_flag"
9632 || test ! -s conftest.err'
bec39cab
AC
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 ac_header_compiler=yes
9645else
9646 echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
b4e70030 9649ac_header_compiler=no
bec39cab
AC
9650fi
9651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9652echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9653echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9654
9655# Is the header present?
b4e70030
JB
9656echo "$as_me:$LINENO: checking $ac_header presence" >&5
9657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9658cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h. */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h. */
9664#include <$ac_header>
9665_ACEOF
9666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } >/dev/null; then
9674 if test -s conftest.err; then
9675 ac_cpp_err=$ac_c_preproc_warn_flag
9676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9677 else
9678 ac_cpp_err=
9679 fi
9680else
9681 ac_cpp_err=yes
5ee754fc 9682fi
bec39cab
AC
9683if test -z "$ac_cpp_err"; then
9684 ac_header_preproc=yes
5ee754fc 9685else
bec39cab
AC
9686 echo "$as_me: failed program was:" >&5
9687sed 's/^/| /' conftest.$ac_ext >&5
9688
9689 ac_header_preproc=no
5ee754fc 9690fi
bec39cab 9691rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9692echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9693echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9694
bec39cab
AC
9695# So? What about this header?
9696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9697 yes:no: )
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9701echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9702 ac_header_preproc=yes
9703 ;;
9704 no:yes:* )
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9708echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9710echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9712echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9716echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9717 (
9718 cat <<\_ASBOX
9719## ------------------------------------------ ##
9720## Report this to the AC_PACKAGE_NAME lists. ##
9721## ------------------------------------------ ##
9722_ASBOX
9723 ) |
9724 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9725 ;;
9726esac
b4e70030
JB
9727echo "$as_me:$LINENO: checking for $ac_header" >&5
9728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9729if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731else
9732 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9733fi
b4e70030
JB
9734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9736
5ee754fc 9737fi
bec39cab
AC
9738if test `eval echo '${'$as_ac_Header'}'` = yes; then
9739 cat >>confdefs.h <<_ACEOF
9740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9741_ACEOF
9742
5ee754fc 9743fi
bec39cab 9744
5ee754fc
MK
9745done
9746
bec39cab
AC
9747
9748for ac_header in sys/types.h
5ee754fc 9749do
bec39cab 9750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9751if eval "test \"\${$as_ac_Header+set}\" = set"; then
9752 echo "$as_me:$LINENO: checking for $ac_header" >&5
9753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9754if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756fi
b4e70030
JB
9757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9759else
9760 # Is the header compilable?
b4e70030
JB
9761echo "$as_me:$LINENO: checking $ac_header usability" >&5
9762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9763cat >conftest.$ac_ext <<_ACEOF
9764/* confdefs.h. */
9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
9769$ac_includes_default
9770#include <$ac_header>
9771_ACEOF
9772rm -f conftest.$ac_objext
9773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9774 (eval $ac_compile) 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
b4e70030
JB
9781 { ac_try='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
bec39cab
AC
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest.$ac_objext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_header_compiler=yes
9795else
9796 echo "$as_me: failed program was:" >&5
9797sed 's/^/| /' conftest.$ac_ext >&5
9798
b4e70030 9799ac_header_compiler=no
bec39cab
AC
9800fi
9801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9803echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9804
9805# Is the header present?
b4e70030
JB
9806echo "$as_me:$LINENO: checking $ac_header presence" >&5
9807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9808cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h. */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h. */
9814#include <$ac_header>
9815_ACEOF
9816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } >/dev/null; then
9824 if test -s conftest.err; then
9825 ac_cpp_err=$ac_c_preproc_warn_flag
9826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9827 else
9828 ac_cpp_err=
9829 fi
9830else
9831 ac_cpp_err=yes
5ee754fc 9832fi
bec39cab
AC
9833if test -z "$ac_cpp_err"; then
9834 ac_header_preproc=yes
5ee754fc 9835else
bec39cab
AC
9836 echo "$as_me: failed program was:" >&5
9837sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 ac_header_preproc=no
5ee754fc 9840fi
bec39cab 9841rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9843echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9844
bec39cab
AC
9845# So? What about this header?
9846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9847 yes:no: )
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9852 ac_header_preproc=yes
9853 ;;
9854 no:yes:* )
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9867 (
9868 cat <<\_ASBOX
9869## ------------------------------------------ ##
9870## Report this to the AC_PACKAGE_NAME lists. ##
9871## ------------------------------------------ ##
9872_ASBOX
9873 ) |
9874 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9875 ;;
9876esac
b4e70030
JB
9877echo "$as_me:$LINENO: checking for $ac_header" >&5
9878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9879if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881else
9882 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9883fi
b4e70030
JB
9884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9886
5ee754fc 9887fi
bec39cab
AC
9888if test `eval echo '${'$as_ac_Header'}'` = yes; then
9889 cat >>confdefs.h <<_ACEOF
9890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9891_ACEOF
9892
5ee754fc 9893fi
bec39cab 9894
5ee754fc
MK
9895done
9896
bec39cab
AC
9897
9898for ac_header in sys/user.h
5ee754fc 9899do
bec39cab 9900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9901echo "$as_me:$LINENO: checking for $ac_header" >&5
9902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9903if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9904 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9905else
7cb9022a 9906 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9907/* confdefs.h. */
9908_ACEOF
9909cat confdefs.h >>conftest.$ac_ext
9910cat >>conftest.$ac_ext <<_ACEOF
9911/* end confdefs.h. */
7cb9022a
MK
9912#if HAVE_SYS_PARAM_H
9913# include <sys/param.h>
9914#endif
9915
9916
bec39cab
AC
9917#include <$ac_header>
9918_ACEOF
9919rm -f conftest.$ac_objext
9920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9921 (eval $ac_compile) 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
b4e70030
JB
9928 { ac_try='test -z "$ac_c_werror_flag"
9929 || test ! -s conftest.err'
bec39cab
AC
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
7cb9022a 9941 eval "$as_ac_Header=yes"
bec39cab
AC
9942else
9943 echo "$as_me: failed program was:" >&5
9944sed 's/^/| /' conftest.$ac_ext >&5
9945
b4e70030 9946eval "$as_ac_Header=no"
bec39cab
AC
9947fi
9948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9949fi
b4e70030
JB
9950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9951echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9952if test `eval echo '${'$as_ac_Header'}'` = yes; then
9953 cat >>confdefs.h <<_ACEOF
9954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9955_ACEOF
9956
5ee754fc 9957fi
bec39cab 9958
5ee754fc
MK
9959done
9960
bec39cab
AC
9961
9962
9963for ac_header in sys/wait.h wait.h
5ee754fc 9964do
bec39cab 9965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9966if eval "test \"\${$as_ac_Header+set}\" = set"; then
9967 echo "$as_me:$LINENO: checking for $ac_header" >&5
9968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9969if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971fi
b4e70030
JB
9972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9974else
9975 # Is the header compilable?
b4e70030
JB
9976echo "$as_me:$LINENO: checking $ac_header usability" >&5
9977echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9978cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h. */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h. */
9984$ac_includes_default
9985#include <$ac_header>
9986_ACEOF
9987rm -f conftest.$ac_objext
9988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9989 (eval $ac_compile) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
b4e70030
JB
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
bec39cab
AC
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest.$ac_objext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_header_compiler=yes
10010else
10011 echo "$as_me: failed program was:" >&5
10012sed 's/^/| /' conftest.$ac_ext >&5
10013
b4e70030 10014ac_header_compiler=no
bec39cab
AC
10015fi
10016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10018echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10019
10020# Is the header present?
b4e70030
JB
10021echo "$as_me:$LINENO: checking $ac_header presence" >&5
10022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10023cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h. */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h. */
10029#include <$ac_header>
10030_ACEOF
10031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } >/dev/null; then
10039 if test -s conftest.err; then
10040 ac_cpp_err=$ac_c_preproc_warn_flag
10041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10042 else
10043 ac_cpp_err=
10044 fi
10045else
10046 ac_cpp_err=yes
5ee754fc 10047fi
bec39cab
AC
10048if test -z "$ac_cpp_err"; then
10049 ac_header_preproc=yes
5ee754fc 10050else
bec39cab
AC
10051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_header_preproc=no
5ee754fc 10055fi
bec39cab 10056rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10058echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10059
bec39cab
AC
10060# So? What about this header?
10061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10062 yes:no: )
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10067 ac_header_preproc=yes
10068 ;;
10069 no:yes:* )
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10082 (
10083 cat <<\_ASBOX
10084## ------------------------------------------ ##
10085## Report this to the AC_PACKAGE_NAME lists. ##
10086## ------------------------------------------ ##
10087_ASBOX
10088 ) |
10089 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10090 ;;
10091esac
b4e70030
JB
10092echo "$as_me:$LINENO: checking for $ac_header" >&5
10093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10094if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096else
10097 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10098fi
b4e70030
JB
10099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10101
9608ab8b 10102fi
bec39cab
AC
10103if test `eval echo '${'$as_ac_Header'}'` = yes; then
10104 cat >>confdefs.h <<_ACEOF
10105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10106_ACEOF
10107
9608ab8b 10108fi
bec39cab 10109
9608ab8b 10110done
5ee754fc 10111
bec39cab
AC
10112
10113
10114
10115for ac_header in termios.h termio.h sgtty.h
5ee754fc 10116do
bec39cab 10117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10118if eval "test \"\${$as_ac_Header+set}\" = set"; then
10119 echo "$as_me:$LINENO: checking for $ac_header" >&5
10120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10121if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123fi
b4e70030
JB
10124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10126else
10127 # Is the header compilable?
b4e70030
JB
10128echo "$as_me:$LINENO: checking $ac_header usability" >&5
10129echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10130cat >conftest.$ac_ext <<_ACEOF
10131/* confdefs.h. */
10132_ACEOF
10133cat confdefs.h >>conftest.$ac_ext
10134cat >>conftest.$ac_ext <<_ACEOF
10135/* end confdefs.h. */
10136$ac_includes_default
10137#include <$ac_header>
10138_ACEOF
10139rm -f conftest.$ac_objext
10140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141 (eval $ac_compile) 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
b4e70030
JB
10148 { ac_try='test -z "$ac_c_werror_flag"
10149 || test ! -s conftest.err'
bec39cab
AC
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_header_compiler=yes
10162else
10163 echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
b4e70030 10166ac_header_compiler=no
bec39cab
AC
10167fi
10168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10169echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10170echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10171
10172# Is the header present?
b4e70030
JB
10173echo "$as_me:$LINENO: checking $ac_header presence" >&5
10174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10175cat >conftest.$ac_ext <<_ACEOF
10176/* confdefs.h. */
10177_ACEOF
10178cat confdefs.h >>conftest.$ac_ext
10179cat >>conftest.$ac_ext <<_ACEOF
10180/* end confdefs.h. */
10181#include <$ac_header>
10182_ACEOF
10183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10185 ac_status=$?
10186 grep -v '^ *+' conftest.er1 >conftest.err
10187 rm -f conftest.er1
10188 cat conftest.err >&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } >/dev/null; then
10191 if test -s conftest.err; then
10192 ac_cpp_err=$ac_c_preproc_warn_flag
10193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10194 else
10195 ac_cpp_err=
10196 fi
10197else
10198 ac_cpp_err=yes
9608ab8b 10199fi
bec39cab
AC
10200if test -z "$ac_cpp_err"; then
10201 ac_header_preproc=yes
9608ab8b 10202else
bec39cab
AC
10203 echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_header_preproc=no
9608ab8b 10207fi
bec39cab 10208rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10209echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10210echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10211
bec39cab
AC
10212# So? What about this header?
10213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10214 yes:no: )
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10219 ac_header_preproc=yes
10220 ;;
10221 no:yes:* )
10222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10229echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10234 (
10235 cat <<\_ASBOX
10236## ------------------------------------------ ##
10237## Report this to the AC_PACKAGE_NAME lists. ##
10238## ------------------------------------------ ##
10239_ASBOX
10240 ) |
10241 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10242 ;;
10243esac
b4e70030
JB
10244echo "$as_me:$LINENO: checking for $ac_header" >&5
10245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10246if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248else
10249 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10250fi
b4e70030
JB
10251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10253
9608ab8b 10254fi
bec39cab
AC
10255if test `eval echo '${'$as_ac_Header'}'` = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10258_ACEOF
10259
9608ab8b 10260fi
bec39cab 10261
5ee754fc 10262done
9608ab8b 10263
bec39cab
AC
10264
10265for ac_header in unistd.h
78434e59 10266do
bec39cab 10267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10268if eval "test \"\${$as_ac_Header+set}\" = set"; then
10269 echo "$as_me:$LINENO: checking for $ac_header" >&5
10270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10271if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273fi
b4e70030
JB
10274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10276else
10277 # Is the header compilable?
b4e70030
JB
10278echo "$as_me:$LINENO: checking $ac_header usability" >&5
10279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10280cat >conftest.$ac_ext <<_ACEOF
10281/* confdefs.h. */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h. */
10286$ac_includes_default
10287#include <$ac_header>
10288_ACEOF
10289rm -f conftest.$ac_objext
10290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291 (eval $ac_compile) 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
b4e70030
JB
10298 { ac_try='test -z "$ac_c_werror_flag"
10299 || test ! -s conftest.err'
bec39cab
AC
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest.$ac_objext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 ac_header_compiler=yes
10312else
10313 echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
10315
b4e70030 10316ac_header_compiler=no
bec39cab
AC
10317fi
10318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10319echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10320echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10321
10322# Is the header present?
b4e70030
JB
10323echo "$as_me:$LINENO: checking $ac_header presence" >&5
10324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10325cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h. */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h. */
10331#include <$ac_header>
10332_ACEOF
10333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } >/dev/null; then
10341 if test -s conftest.err; then
10342 ac_cpp_err=$ac_c_preproc_warn_flag
10343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10344 else
10345 ac_cpp_err=
10346 fi
10347else
10348 ac_cpp_err=yes
78434e59 10349fi
bec39cab
AC
10350if test -z "$ac_cpp_err"; then
10351 ac_header_preproc=yes
78434e59 10352else
bec39cab
AC
10353 echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355
10356 ac_header_preproc=no
78434e59 10357fi
bec39cab 10358rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10359echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10360echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 10361
bec39cab
AC
10362# So? What about this header?
10363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10364 yes:no: )
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10366echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10368echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10369 ac_header_preproc=yes
10370 ;;
10371 no:yes:* )
10372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10373echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10375echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10377echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10379echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10381echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10383echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10384 (
10385 cat <<\_ASBOX
10386## ------------------------------------------ ##
10387## Report this to the AC_PACKAGE_NAME lists. ##
10388## ------------------------------------------ ##
10389_ASBOX
10390 ) |
10391 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10392 ;;
10393esac
b4e70030
JB
10394echo "$as_me:$LINENO: checking for $ac_header" >&5
10395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10396if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398else
10399 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 10400fi
b4e70030
JB
10401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10403
086ec9eb 10404fi
bec39cab
AC
10405if test `eval echo '${'$as_ac_Header'}'` = yes; then
10406 cat >>confdefs.h <<_ACEOF
10407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10408_ACEOF
10409
086ec9eb 10410fi
bec39cab 10411
086ec9eb
MK
10412done
10413
9608ab8b 10414
b1d19a62 10415# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
10416# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10417# think that we don't have <curses.h> if we're using GCC.
10418case $host_os in
b1d19a62 10419 solaris2.[789])
5ee754fc 10420 if test "$GCC" = yes; then
bec39cab
AC
10421
10422cat >>confdefs.h <<\_ACEOF
5ee754fc 10423#define _MSE_INT_H 1
bec39cab 10424_ACEOF
5ee754fc
MK
10425
10426 fi ;;
10427esac
bec39cab
AC
10428
10429
10430
10431
10432for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 10433do
bec39cab 10434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10435if eval "test \"\${$as_ac_Header+set}\" = set"; then
10436 echo "$as_me:$LINENO: checking for $ac_header" >&5
10437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10438if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440fi
b4e70030
JB
10441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10443else
10444 # Is the header compilable?
b4e70030
JB
10445echo "$as_me:$LINENO: checking $ac_header usability" >&5
10446echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10447cat >conftest.$ac_ext <<_ACEOF
10448/* confdefs.h. */
10449_ACEOF
10450cat confdefs.h >>conftest.$ac_ext
10451cat >>conftest.$ac_ext <<_ACEOF
10452/* end confdefs.h. */
10453$ac_includes_default
10454#include <$ac_header>
10455_ACEOF
10456rm -f conftest.$ac_objext
10457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458 (eval $ac_compile) 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
b4e70030
JB
10465 { ac_try='test -z "$ac_c_werror_flag"
10466 || test ! -s conftest.err'
bec39cab
AC
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest.$ac_objext'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
10478 ac_header_compiler=yes
10479else
10480 echo "$as_me: failed program was:" >&5
10481sed 's/^/| /' conftest.$ac_ext >&5
10482
b4e70030 10483ac_header_compiler=no
bec39cab
AC
10484fi
10485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10486echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10487echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10488
10489# Is the header present?
b4e70030
JB
10490echo "$as_me:$LINENO: checking $ac_header presence" >&5
10491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10492cat >conftest.$ac_ext <<_ACEOF
10493/* confdefs.h. */
10494_ACEOF
10495cat confdefs.h >>conftest.$ac_ext
10496cat >>conftest.$ac_ext <<_ACEOF
10497/* end confdefs.h. */
10498#include <$ac_header>
10499_ACEOF
10500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } >/dev/null; then
10508 if test -s conftest.err; then
10509 ac_cpp_err=$ac_c_preproc_warn_flag
10510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10511 else
10512 ac_cpp_err=
10513 fi
10514else
10515 ac_cpp_err=yes
c906108c 10516fi
bec39cab
AC
10517if test -z "$ac_cpp_err"; then
10518 ac_header_preproc=yes
10519else
10520 echo "$as_me: failed program was:" >&5
10521sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_header_preproc=no
c906108c 10524fi
bec39cab 10525rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10526echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10527echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10528
10529# So? What about this header?
10530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10531 yes:no: )
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10536 ac_header_preproc=yes
10537 ;;
10538 no:yes:* )
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10546echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10551 (
10552 cat <<\_ASBOX
10553## ------------------------------------------ ##
10554## Report this to the AC_PACKAGE_NAME lists. ##
10555## ------------------------------------------ ##
10556_ASBOX
10557 ) |
10558 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10559 ;;
10560esac
b4e70030
JB
10561echo "$as_me:$LINENO: checking for $ac_header" >&5
10562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10563if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10564 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 10565else
bec39cab 10566 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10567fi
b4e70030
JB
10568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10570
10571fi
10572if test `eval echo '${'$as_ac_Header'}'` = yes; then
10573 cat >>confdefs.h <<_ACEOF
10574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10575_ACEOF
10576
10577fi
10578
5ee754fc 10579done
c906108c 10580
bec39cab 10581
065a1afc 10582for ac_header in ncurses/term.h
3b78cdbb 10583do
bec39cab 10584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10585if eval "test \"\${$as_ac_Header+set}\" = set"; then
10586 echo "$as_me:$LINENO: checking for $ac_header" >&5
10587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10588if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590fi
b4e70030
JB
10591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10593else
10594 # Is the header compilable?
b4e70030
JB
10595echo "$as_me:$LINENO: checking $ac_header usability" >&5
10596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10597cat >conftest.$ac_ext <<_ACEOF
10598/* confdefs.h. */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h. */
10603$ac_includes_default
10604#include <$ac_header>
10605_ACEOF
10606rm -f conftest.$ac_objext
10607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10608 (eval $ac_compile) 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
b4e70030
JB
10615 { ac_try='test -z "$ac_c_werror_flag"
10616 || test ! -s conftest.err'
bec39cab
AC
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; } &&
10622 { ac_try='test -s conftest.$ac_objext'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; }; then
10628 ac_header_compiler=yes
10629else
10630 echo "$as_me: failed program was:" >&5
10631sed 's/^/| /' conftest.$ac_ext >&5
10632
b4e70030 10633ac_header_compiler=no
bec39cab
AC
10634fi
10635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10636echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10637echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10638
10639# Is the header present?
b4e70030
JB
10640echo "$as_me:$LINENO: checking $ac_header presence" >&5
10641echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10642cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648#include <$ac_header>
10649_ACEOF
10650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } >/dev/null; then
10658 if test -s conftest.err; then
10659 ac_cpp_err=$ac_c_preproc_warn_flag
10660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10661 else
10662 ac_cpp_err=
10663 fi
10664else
10665 ac_cpp_err=yes
3b78cdbb 10666fi
bec39cab
AC
10667if test -z "$ac_cpp_err"; then
10668 ac_header_preproc=yes
10669else
10670 echo "$as_me: failed program was:" >&5
10671sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_header_preproc=no
3b78cdbb 10674fi
bec39cab 10675rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10676echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10677echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10678
10679# So? What about this header?
10680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10681 yes:no: )
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10683echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10685echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10686 ac_header_preproc=yes
10687 ;;
10688 no:yes:* )
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10690echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10692echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10694echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10696echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10698echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10700echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10701 (
10702 cat <<\_ASBOX
10703## ------------------------------------------ ##
10704## Report this to the AC_PACKAGE_NAME lists. ##
10705## ------------------------------------------ ##
10706_ASBOX
10707 ) |
10708 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10709 ;;
10710esac
b4e70030
JB
10711echo "$as_me:$LINENO: checking for $ac_header" >&5
10712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10713if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10714 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 10715else
bec39cab
AC
10716 eval "$as_ac_Header=\$ac_header_preproc"
10717fi
b4e70030
JB
10718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10720
3b78cdbb 10721fi
bec39cab
AC
10722if test `eval echo '${'$as_ac_Header'}'` = yes; then
10723 cat >>confdefs.h <<_ACEOF
10724#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10725_ACEOF
10726
10727fi
10728
3b78cdbb
DA
10729done
10730
c906108c 10731
065a1afc
JB
10732for ac_header in term.h
10733do
10734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10735echo "$as_me:$LINENO: checking for $ac_header" >&5
10736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10737if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else
10740 cat >conftest.$ac_ext <<_ACEOF
10741/* confdefs.h. */
10742_ACEOF
10743cat confdefs.h >>conftest.$ac_ext
10744cat >>conftest.$ac_ext <<_ACEOF
10745/* end confdefs.h. */
10746#if HAVE_CURSES_H
10747# include <curses.h>
10748#endif
10749
10750
10751#include <$ac_header>
10752_ACEOF
10753rm -f conftest.$ac_objext
10754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10755 (eval $ac_compile) 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
b4e70030
JB
10762 { ac_try='test -z "$ac_c_werror_flag"
10763 || test ! -s conftest.err'
065a1afc
JB
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 eval "$as_ac_Header=yes"
10776else
10777 echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
10779
b4e70030 10780eval "$as_ac_Header=no"
065a1afc
JB
10781fi
10782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10783fi
b4e70030
JB
10784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
10786if test `eval echo '${'$as_ac_Header'}'` = yes; then
10787 cat >>confdefs.h <<_ACEOF
10788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10789_ACEOF
10790
10791fi
10792
10793done
10794
10795
5ee754fc
MK
10796# FIXME: kettenis/20030102: In most cases we include these
10797# unconditionally, so what's the point in checking these?
bec39cab
AC
10798
10799
10800for ac_header in ctype.h time.h
c906108c 10801do
bec39cab 10802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10803if eval "test \"\${$as_ac_Header+set}\" = set"; then
10804 echo "$as_me:$LINENO: checking for $ac_header" >&5
10805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10806if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808fi
b4e70030
JB
10809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10811else
10812 # Is the header compilable?
b4e70030
JB
10813echo "$as_me:$LINENO: checking $ac_header usability" >&5
10814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10815cat >conftest.$ac_ext <<_ACEOF
10816/* confdefs.h. */
10817_ACEOF
10818cat confdefs.h >>conftest.$ac_ext
10819cat >>conftest.$ac_ext <<_ACEOF
10820/* end confdefs.h. */
10821$ac_includes_default
10822#include <$ac_header>
10823_ACEOF
10824rm -f conftest.$ac_objext
10825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826 (eval $ac_compile) 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
b4e70030
JB
10833 { ac_try='test -z "$ac_c_werror_flag"
10834 || test ! -s conftest.err'
bec39cab
AC
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_header_compiler=yes
10847else
10848 echo "$as_me: failed program was:" >&5
10849sed 's/^/| /' conftest.$ac_ext >&5
10850
b4e70030 10851ac_header_compiler=no
bec39cab
AC
10852fi
10853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10855echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10856
10857# Is the header present?
b4e70030
JB
10858echo "$as_me:$LINENO: checking $ac_header presence" >&5
10859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10860cat >conftest.$ac_ext <<_ACEOF
10861/* confdefs.h. */
10862_ACEOF
10863cat confdefs.h >>conftest.$ac_ext
10864cat >>conftest.$ac_ext <<_ACEOF
10865/* end confdefs.h. */
10866#include <$ac_header>
10867_ACEOF
10868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } >/dev/null; then
10876 if test -s conftest.err; then
10877 ac_cpp_err=$ac_c_preproc_warn_flag
10878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10879 else
10880 ac_cpp_err=
10881 fi
10882else
10883 ac_cpp_err=yes
c906108c 10884fi
bec39cab
AC
10885if test -z "$ac_cpp_err"; then
10886 ac_header_preproc=yes
10887else
10888 echo "$as_me: failed program was:" >&5
10889sed 's/^/| /' conftest.$ac_ext >&5
10890
10891 ac_header_preproc=no
c906108c 10892fi
bec39cab 10893rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10895echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10896
10897# So? What about this header?
10898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10899 yes:no: )
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10904 ac_header_preproc=yes
10905 ;;
10906 no:yes:* )
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10914echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10919 (
10920 cat <<\_ASBOX
10921## ------------------------------------------ ##
10922## Report this to the AC_PACKAGE_NAME lists. ##
10923## ------------------------------------------ ##
10924_ASBOX
10925 ) |
10926 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10927 ;;
10928esac
b4e70030
JB
10929echo "$as_me:$LINENO: checking for $ac_header" >&5
10930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10931if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10932 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 10933else
bec39cab
AC
10934 eval "$as_ac_Header=\$ac_header_preproc"
10935fi
b4e70030
JB
10936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10938
10939fi
10940if test `eval echo '${'$as_ac_Header'}'` = yes; then
10941 cat >>confdefs.h <<_ACEOF
10942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10943_ACEOF
10944
c906108c 10945fi
bec39cab 10946
c906108c
SS
10947done
10948
5ee754fc 10949
4e8d927d 10950# Create a header we can use portably to get the standard integer types.
666ec76f 10951
4e8d927d
DJ
10952
10953inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
10954
10955acx_cv_header_stdint=stddef.h
10956acx_cv_header_stdint_kind="(already complete)"
10957for i in stdint.h $inttype_headers; do
10958 unset ac_cv_type_uintptr_t
10959 unset ac_cv_type_uintmax_t
10960 unset ac_cv_type_int_least32_t
10961 unset ac_cv_type_int_fast32_t
10962 unset ac_cv_type_uint64_t
10963 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
10964 echo "$as_me:$LINENO: checking for uintmax_t" >&5
10965echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 10966if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 10967 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 10968else
bec39cab
AC
10969 cat >conftest.$ac_ext <<_ACEOF
10970/* confdefs.h. */
10971_ACEOF
10972cat confdefs.h >>conftest.$ac_ext
10973cat >>conftest.$ac_ext <<_ACEOF
10974/* end confdefs.h. */
4e8d927d
DJ
10975#include <sys/types.h>
10976#include <$i>
10977
bec39cab
AC
10978int
10979main ()
10980{
b4e70030 10981if ((uintmax_t *) 0)
4e8d927d 10982 return 0;
b4e70030 10983if (sizeof (uintmax_t))
4e8d927d
DJ
10984 return 0;
10985 ;
bec39cab
AC
10986 return 0;
10987}
10988_ACEOF
10989rm -f conftest.$ac_objext
10990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991 (eval $ac_compile) 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
b4e70030
JB
10998 { ac_try='test -z "$ac_c_werror_flag"
10999 || test ! -s conftest.err'
bec39cab
AC
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest.$ac_objext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
4e8d927d 11011 ac_cv_type_uintmax_t=yes
40a7debc 11012else
bec39cab
AC
11013 echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
b4e70030 11016ac_cv_type_uintmax_t=no
40a7debc 11017fi
bec39cab 11018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11019fi
b4e70030
JB
11020echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11021echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11022if test $ac_cv_type_uintmax_t = yes; then
11023 acx_cv_header_stdint=$i
666ec76f 11024else
4e8d927d 11025 continue
666ec76f 11026fi
4e8d927d 11027
b4e70030
JB
11028 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11029echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11030if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032else
11033 cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h. */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h. */
4e8d927d
DJ
11039#include <sys/types.h>
11040#include <$i>
11041
666ec76f
MK
11042int
11043main ()
11044{
b4e70030 11045if ((uintptr_t *) 0)
4e8d927d 11046 return 0;
b4e70030 11047if (sizeof (uintptr_t))
4e8d927d 11048 return 0;
666ec76f
MK
11049 ;
11050 return 0;
11051}
11052_ACEOF
11053rm -f conftest.$ac_objext
11054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055 (eval $ac_compile) 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
b4e70030
JB
11062 { ac_try='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
666ec76f
MK
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest.$ac_objext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
4e8d927d 11075 ac_cv_type_uintptr_t=yes
666ec76f
MK
11076else
11077 echo "$as_me: failed program was:" >&5
11078sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11079
b4e70030 11080ac_cv_type_uintptr_t=no
a3828db0
MK
11081fi
11082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11083fi
b4e70030
JB
11084echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11085echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11086if test $ac_cv_type_uintptr_t = yes; then
11087 :
a3828db0 11088else
4e8d927d 11089 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11090fi
4e8d927d 11091
b4e70030
JB
11092 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11093echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11094if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11096else
11097 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11098/* confdefs.h. */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h. */
4e8d927d
DJ
11103#include <sys/types.h>
11104#include <$i>
11105
bec39cab
AC
11106int
11107main ()
11108{
b4e70030 11109if ((int_least32_t *) 0)
4e8d927d 11110 return 0;
b4e70030 11111if (sizeof (int_least32_t))
4e8d927d 11112 return 0;
bec39cab
AC
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117rm -f conftest.$ac_objext
11118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } &&
b4e70030
JB
11126 { ac_try='test -z "$ac_c_werror_flag"
11127 || test ! -s conftest.err'
bec39cab
AC
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; } &&
11133 { ac_try='test -s conftest.$ac_objext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
4e8d927d 11139 ac_cv_type_int_least32_t=yes
b9362cc7 11140else
bec39cab
AC
11141 echo "$as_me: failed program was:" >&5
11142sed 's/^/| /' conftest.$ac_ext >&5
11143
b4e70030 11144ac_cv_type_int_least32_t=no
b9362cc7 11145fi
bec39cab 11146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11147fi
b4e70030
JB
11148echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11149echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11150if test $ac_cv_type_int_least32_t = yes; then
11151 :
a3828db0 11152else
4e8d927d 11153 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11154fi
5ee754fc 11155
b4e70030
JB
11156 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11157echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11158if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160else
11161 cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
4e8d927d
DJ
11167#include <sys/types.h>
11168#include <$i>
11169
bec39cab
AC
11170int
11171main ()
11172{
b4e70030 11173if ((int_fast32_t *) 0)
4e8d927d 11174 return 0;
b4e70030 11175if (sizeof (int_fast32_t))
4e8d927d 11176 return 0;
bec39cab
AC
11177 ;
11178 return 0;
11179}
11180_ACEOF
11181rm -f conftest.$ac_objext
11182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11183 (eval $ac_compile) 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
b4e70030
JB
11190 { ac_try='test -z "$ac_c_werror_flag"
11191 || test ! -s conftest.err'
bec39cab
AC
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest.$ac_objext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
4e8d927d 11203 ac_cv_type_int_fast32_t=yes
c906108c 11204else
bec39cab
AC
11205 echo "$as_me: failed program was:" >&5
11206sed 's/^/| /' conftest.$ac_ext >&5
11207
b4e70030 11208ac_cv_type_int_fast32_t=no
c906108c 11209fi
bec39cab 11210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11211fi
b4e70030
JB
11212echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11213echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
11214if test $ac_cv_type_int_fast32_t = yes; then
11215 :
a3828db0 11216else
4e8d927d 11217 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11218fi
4e8d927d 11219
b4e70030
JB
11220 echo "$as_me:$LINENO: checking for uint64_t" >&5
11221echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11222if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224else
11225 cat >conftest.$ac_ext <<_ACEOF
11226/* confdefs.h. */
11227_ACEOF
11228cat confdefs.h >>conftest.$ac_ext
11229cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h. */
4e8d927d
DJ
11231#include <sys/types.h>
11232#include <$i>
11233
bec39cab
AC
11234int
11235main ()
11236{
b4e70030 11237if ((uint64_t *) 0)
4e8d927d 11238 return 0;
b4e70030 11239if (sizeof (uint64_t))
4e8d927d 11240 return 0;
bec39cab
AC
11241 ;
11242 return 0;
11243}
11244_ACEOF
11245rm -f conftest.$ac_objext
11246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11247 (eval $ac_compile) 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
b4e70030
JB
11254 { ac_try='test -z "$ac_c_werror_flag"
11255 || test ! -s conftest.err'
bec39cab
AC
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; } &&
11261 { ac_try='test -s conftest.$ac_objext'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
4e8d927d 11267 ac_cv_type_uint64_t=yes
c906108c 11268else
bec39cab
AC
11269 echo "$as_me: failed program was:" >&5
11270sed 's/^/| /' conftest.$ac_ext >&5
11271
b4e70030 11272ac_cv_type_uint64_t=no
c906108c 11273fi
bec39cab 11274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11275fi
b4e70030
JB
11276echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11277echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
11278if test $ac_cv_type_uint64_t = yes; then
11279 :
a3828db0 11280else
4e8d927d 11281 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
11282fi
11283
4e8d927d
DJ
11284 break
11285done
11286if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 11287 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 11288 for i in stdint.h $inttype_headers; do
3841debe 11289 unset ac_cv_type_uintptr_t
4e8d927d
DJ
11290 unset ac_cv_type_uint32_t
11291 unset ac_cv_type_uint64_t
11292 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11293 echo "$as_me:$LINENO: checking for uint32_t" >&5
11294echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 11295if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 11296 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 11297else
bec39cab
AC
11298 cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
4e8d927d
DJ
11304#include <sys/types.h>
11305#include <$i>
11306
a3828db0
MK
11307int
11308main ()
11309{
b4e70030 11310if ((uint32_t *) 0)
4e8d927d 11311 return 0;
b4e70030 11312if (sizeof (uint32_t))
4e8d927d 11313 return 0;
a3828db0
MK
11314 ;
11315 return 0;
11316}
bec39cab
AC
11317_ACEOF
11318rm -f conftest.$ac_objext
11319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320 (eval $ac_compile) 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
b4e70030
JB
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
bec39cab
AC
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
4e8d927d 11340 ac_cv_type_uint32_t=yes
bce58c09 11341else
bec39cab
AC
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
b4e70030 11345ac_cv_type_uint32_t=no
bce58c09 11346fi
bec39cab 11347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 11348fi
b4e70030
JB
11349echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11350echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
11351if test $ac_cv_type_uint32_t = yes; then
11352 acx_cv_header_stdint=$i
a3828db0 11353else
4e8d927d 11354 continue
e5a7de23 11355fi
4e8d927d 11356
b4e70030
JB
11357 echo "$as_me:$LINENO: checking for uint64_t" >&5
11358echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11359if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361else
11362 cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
4e8d927d
DJ
11368#include <sys/types.h>
11369#include <$i>
11370
e5a7de23
EZ
11371int
11372main ()
11373{
b4e70030 11374if ((uint64_t *) 0)
4e8d927d 11375 return 0;
b4e70030 11376if (sizeof (uint64_t))
4e8d927d 11377 return 0;
e5a7de23
EZ
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382rm -f conftest.$ac_objext
11383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384 (eval $ac_compile) 2>conftest.er1
11385 ac_status=$?
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
b4e70030
JB
11391 { ac_try='test -z "$ac_c_werror_flag"
11392 || test ! -s conftest.err'
e5a7de23
EZ
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; } &&
11398 { ac_try='test -s conftest.$ac_objext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
4e8d927d 11404 ac_cv_type_uint64_t=yes
e5a7de23
EZ
11405else
11406 echo "$as_me: failed program was:" >&5
11407sed 's/^/| /' conftest.$ac_ext >&5
11408
b4e70030 11409ac_cv_type_uint64_t=no
e5a7de23
EZ
11410fi
11411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11412fi
b4e70030
JB
11413echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11414echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
11415
11416 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11417echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11418if test "${ac_cv_type_uintptr_t+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420else
11421 cat >conftest.$ac_ext <<_ACEOF
11422/* confdefs.h. */
11423_ACEOF
11424cat confdefs.h >>conftest.$ac_ext
11425cat >>conftest.$ac_ext <<_ACEOF
11426/* end confdefs.h. */
11427#include <sys/types.h>
11428#include <$i>
11429
11430int
11431main ()
11432{
11433if ((uintptr_t *) 0)
11434 return 0;
11435if (sizeof (uintptr_t))
11436 return 0;
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441rm -f conftest.$ac_objext
11442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11443 (eval $ac_compile) 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_c_werror_flag"
11451 || test ! -s conftest.err'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest.$ac_objext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 ac_cv_type_uintptr_t=yes
e5a7de23 11464else
3841debe
DJ
11465 echo "$as_me: failed program was:" >&5
11466sed 's/^/| /' conftest.$ac_ext >&5
11467
11468ac_cv_type_uintptr_t=no
4e8d927d 11469fi
3841debe
DJ
11470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11471fi
11472echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11473echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 11474
4e8d927d
DJ
11475 break
11476 done
e5a7de23 11477fi
4e8d927d
DJ
11478if test "$acx_cv_header_stdint" = stddef.h; then
11479 acx_cv_header_stdint_kind="(u_intXX_t style)"
11480 for i in sys/types.h $inttype_headers; do
11481 unset ac_cv_type_u_int32_t
11482 unset ac_cv_type_u_int64_t
11483 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
11484 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11485echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 11486if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488else
11489 cat >conftest.$ac_ext <<_ACEOF
11490/* confdefs.h. */
11491_ACEOF
11492cat confdefs.h >>conftest.$ac_ext
11493cat >>conftest.$ac_ext <<_ACEOF
11494/* end confdefs.h. */
4e8d927d
DJ
11495#include <sys/types.h>
11496#include <$i>
11497
e5a7de23
EZ
11498int
11499main ()
11500{
b4e70030 11501if ((u_int32_t *) 0)
4e8d927d 11502 return 0;
b4e70030 11503if (sizeof (u_int32_t))
4e8d927d 11504 return 0;
e5a7de23
EZ
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509rm -f conftest.$ac_objext
11510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11511 (eval $ac_compile) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
b4e70030
JB
11518 { ac_try='test -z "$ac_c_werror_flag"
11519 || test ! -s conftest.err'
e5a7de23
EZ
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
4e8d927d 11531 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
11532else
11533 echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
b4e70030 11536ac_cv_type_u_int32_t=no
e5a7de23
EZ
11537fi
11538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11539fi
b4e70030
JB
11540echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11541echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
11542if test $ac_cv_type_u_int32_t = yes; then
11543 acx_cv_header_stdint=$i
e5a7de23 11544else
4e8d927d 11545 continue
a3828db0 11546fi
5ee754fc 11547
b4e70030
JB
11548 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11549echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 11550if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552else
11553 cat >conftest.$ac_ext <<_ACEOF
11554/* confdefs.h. */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h. */
4e8d927d
DJ
11559#include <sys/types.h>
11560#include <$i>
11561
bec39cab
AC
11562int
11563main ()
11564{
b4e70030 11565if ((u_int64_t *) 0)
4e8d927d 11566 return 0;
b4e70030 11567if (sizeof (u_int64_t))
4e8d927d 11568 return 0;
bec39cab
AC
11569 ;
11570 return 0;
11571}
11572_ACEOF
a3828db0
MK
11573rm -f conftest.$ac_objext
11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
b4e70030
JB
11582 { ac_try='test -z "$ac_c_werror_flag"
11583 || test ! -s conftest.err'
bec39cab
AC
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
a3828db0 11589 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
4e8d927d 11595 ac_cv_type_u_int64_t=yes
bec39cab
AC
11596else
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
b4e70030 11600ac_cv_type_u_int64_t=no
4e8d927d 11601fi
4e8d927d
DJ
11602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11603fi
b4e70030
JB
11604echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11605echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
11606
11607 break
11608 done
11609fi
11610if test "$acx_cv_header_stdint" = stddef.h; then
11611 acx_cv_header_stdint_kind="(using manual detection)"
11612fi
11613
11614test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11615test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11616test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11617test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11618test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11619
11620# ----------------- Summarize what we found so far
11621
b4e70030
JB
11622echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
11623echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 11624
b4e70030 11625case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
11626$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
11627 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
11628 Xgdb_stdint.h : 'X\(/\)$' \| \
11629 . : '\(.\)' 2>/dev/null ||
4e8d927d 11630echo X/gdb_stdint.h |
b4e70030
JB
11631 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11632 /^X\/\(\/\/\)$/{ s//\1/; q; }
11633 /^X\/\(\/\).*/{ s//\1/; q; }
11634 s/.*/./; q'` in
4e8d927d
DJ
11635 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11636echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11637 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11638echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11639 *) ;;
11640esac
11641
b4e70030
JB
11642echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11643echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
11644
11645# ----------------- done included file, check C basic types --------
11646
11647# Lacking an uintptr_t? Test size of void *
11648case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
11649 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
11650echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
11651if test "${ac_cv_type_void_p+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653else
11654 cat >conftest.$ac_ext <<_ACEOF
a3828db0 11655/* confdefs.h. */
bec39cab
AC
11656_ACEOF
11657cat confdefs.h >>conftest.$ac_ext
11658cat >>conftest.$ac_ext <<_ACEOF
11659/* end confdefs.h. */
a3828db0 11660$ac_includes_default
bec39cab
AC
11661int
11662main ()
11663{
b4e70030 11664if ((void * *) 0)
4e8d927d 11665 return 0;
b4e70030 11666if (sizeof (void *))
4e8d927d 11667 return 0;
bec39cab
AC
11668 ;
11669 return 0;
11670}
11671_ACEOF
a3828db0
MK
11672rm -f conftest.$ac_objext
11673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11674 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
b4e70030
JB
11681 { ac_try='test -z "$ac_c_werror_flag"
11682 || test ! -s conftest.err'
bec39cab
AC
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
a3828db0 11688 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
4e8d927d 11694 ac_cv_type_void_p=yes
46711df8 11695else
bec39cab
AC
11696 echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
b4e70030 11699ac_cv_type_void_p=no
a3828db0 11700fi
4e8d927d 11701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 11702fi
b4e70030
JB
11703echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11704echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 11705
b4e70030
JB
11706echo "$as_me:$LINENO: checking size of void *" >&5
11707echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 11708if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
4e8d927d 11711 if test "$ac_cv_type_void_p" = yes; then
b4e70030 11712 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
11713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11715 # This bug is HP SR number 8606223364.
11716 if test "$cross_compiling" = yes; then
11717 # Depending upon the size, compute the lo and hi bounds.
11718cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724$ac_includes_default
11725int
11726main ()
11727{
b4e70030 11728static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
11729test_array [0] = 0
11730
d3ea6809
MM
11731 ;
11732 return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext
11736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737 (eval $ac_compile) 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
b4e70030
JB
11744 { ac_try='test -z "$ac_c_werror_flag"
11745 || test ! -s conftest.err'
d3ea6809
MM
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest.$ac_objext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
4e8d927d
DJ
11757 ac_lo=0 ac_mid=0
11758 while :; do
11759 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
11760/* confdefs.h. */
11761_ACEOF
11762cat confdefs.h >>conftest.$ac_ext
11763cat >>conftest.$ac_ext <<_ACEOF
11764/* end confdefs.h. */
11765$ac_includes_default
11766int
11767main ()
11768{
b4e70030 11769static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
11770test_array [0] = 0
11771
d3ea6809
MM
11772 ;
11773 return 0;
11774}
11775_ACEOF
11776rm -f conftest.$ac_objext
11777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11778 (eval $ac_compile) 2>conftest.er1
11779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
b4e70030
JB
11785 { ac_try='test -z "$ac_c_werror_flag"
11786 || test ! -s conftest.err'
d3ea6809
MM
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest.$ac_objext'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
4e8d927d 11798 ac_hi=$ac_mid; break
d3ea6809
MM
11799else
11800 echo "$as_me: failed program was:" >&5
11801sed 's/^/| /' conftest.$ac_ext >&5
11802
b4e70030
JB
11803ac_lo=`expr $ac_mid + 1`
11804 if test $ac_lo -le $ac_mid; then
11805 ac_lo= ac_hi=
11806 break
11807 fi
11808 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 11809fi
4e8d927d
DJ
11810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11811 done
bec39cab 11812else
4e8d927d
DJ
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
b4e70030 11816cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
4e8d927d 11822$ac_includes_default
bec39cab
AC
11823int
11824main ()
11825{
b4e70030 11826static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
11827test_array [0] = 0
11828
bec39cab
AC
11829 ;
11830 return 0;
11831}
11832_ACEOF
a3828db0
MK
11833rm -f conftest.$ac_objext
11834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
b4e70030
JB
11842 { ac_try='test -z "$ac_c_werror_flag"
11843 || test ! -s conftest.err'
bec39cab
AC
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
a3828db0 11849 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
4e8d927d
DJ
11855 ac_hi=-1 ac_mid=-1
11856 while :; do
11857 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
11858/* confdefs.h. */
11859_ACEOF
11860cat confdefs.h >>conftest.$ac_ext
11861cat >>conftest.$ac_ext <<_ACEOF
11862/* end confdefs.h. */
4e8d927d 11863$ac_includes_default
f9f87d2c
MK
11864int
11865main ()
11866{
b4e70030 11867static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
11868test_array [0] = 0
11869
f9f87d2c
MK
11870 ;
11871 return 0;
11872}
11873_ACEOF
11874rm -f conftest.$ac_objext
11875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11876 (eval $ac_compile) 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
b4e70030
JB
11883 { ac_try='test -z "$ac_c_werror_flag"
11884 || test ! -s conftest.err'
f9f87d2c
MK
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest.$ac_objext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
4e8d927d 11896 ac_lo=$ac_mid; break
f9f87d2c
MK
11897else
11898 echo "$as_me: failed program was:" >&5
11899sed 's/^/| /' conftest.$ac_ext >&5
11900
b4e70030
JB
11901ac_hi=`expr '(' $ac_mid ')' - 1`
11902 if test $ac_mid -le $ac_hi; then
11903 ac_lo= ac_hi=
11904 break
11905 fi
11906 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 11907fi
4e8d927d
DJ
11908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11909 done
11910else
11911 echo "$as_me: failed program was:" >&5
11912sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 11913
b4e70030 11914ac_lo= ac_hi=
4e8d927d 11915fi
4e8d927d 11916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 11917fi
4e8d927d
DJ
11918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11919# Binary search between lo and hi bounds.
11920while test "x$ac_lo" != "x$ac_hi"; do
11921 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
11922 cat >conftest.$ac_ext <<_ACEOF
11923/* confdefs.h. */
11924_ACEOF
11925cat confdefs.h >>conftest.$ac_ext
11926cat >>conftest.$ac_ext <<_ACEOF
11927/* end confdefs.h. */
4e8d927d 11928$ac_includes_default
3be60c3d
MK
11929int
11930main ()
11931{
b4e70030 11932static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
11933test_array [0] = 0
11934
3be60c3d
MK
11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext
11940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
b4e70030
JB
11948 { ac_try='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
3be60c3d
MK
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
4e8d927d 11961 ac_hi=$ac_mid
3be60c3d
MK
11962else
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
b4e70030 11966ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 11967fi
4e8d927d
DJ
11968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11969done
11970case $ac_lo in
11971?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 11972'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 11973See \`config.log' for more details." >&5
b4e70030 11974echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 11975See \`config.log' for more details." >&2;}
b4e70030 11976 { (exit 1); exit 1; }; } ;;
4e8d927d 11977esac
b4e70030
JB
11978else
11979 if test "$cross_compiling" = yes; then
11980 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11981See \`config.log' for more details." >&5
11982echo "$as_me: error: cannot run test program while cross compiling
11983See \`config.log' for more details." >&2;}
11984 { (exit 1); exit 1; }; }
4e8d927d
DJ
11985else
11986 cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
3be60c3d 11988_ACEOF
4e8d927d
DJ
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
11992$ac_includes_default
b4e70030
JB
11993long longval () { return (long) (sizeof (void *)); }
11994unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
11995#include <stdio.h>
11996#include <stdlib.h>
11997int
11998main ()
11999{
12000
12001 FILE *f = fopen ("conftest.val", "w");
12002 if (! f)
b4e70030
JB
12003 exit (1);
12004 if (((long) (sizeof (void *))) < 0)
4e8d927d 12005 {
b4e70030
JB
12006 long i = longval ();
12007 if (i != ((long) (sizeof (void *))))
12008 exit (1);
4e8d927d
DJ
12009 fprintf (f, "%ld\n", i);
12010 }
12011 else
12012 {
b4e70030
JB
12013 unsigned long i = ulongval ();
12014 if (i != ((long) (sizeof (void *))))
12015 exit (1);
4e8d927d
DJ
12016 fprintf (f, "%lu\n", i);
12017 }
b4e70030 12018 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12019
4e8d927d
DJ
12020 ;
12021 return 0;
12022}
12023_ACEOF
12024rm -f conftest$ac_exeext
12025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_sizeof_void_p=`cat conftest.val`
12036else
12037 echo "$as_me: program exited with status $ac_status" >&5
12038echo "$as_me: failed program was:" >&5
12039sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12040
4e8d927d 12041( exit $ac_status )
b4e70030 12042{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12043See \`config.log' for more details." >&5
b4e70030 12044echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12045See \`config.log' for more details." >&2;}
b4e70030
JB
12046 { (exit 1); exit 1; }; }
12047fi
12048rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12049fi
4e8d927d
DJ
12050fi
12051rm -f conftest.val
12052else
12053 ac_cv_sizeof_void_p=0
12054fi
12055fi
b4e70030
JB
12056echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12057echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12058cat >>confdefs.h <<_ACEOF
12059#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12060_ACEOF
f9f87d2c 12061
4e8d927d
DJ
12062 ;;
12063esac
46711df8 12064
4e8d927d
DJ
12065# Lacking an uint64_t? Test size of long
12066case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12067 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12068echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12069if test "${ac_cv_type_long+set}" = set; then
bec39cab 12070 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12071else
bec39cab
AC
12072 cat >conftest.$ac_ext <<_ACEOF
12073/* confdefs.h. */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
4e8d927d 12078$ac_includes_default
bec39cab 12079int
46711df8
MK
12080main ()
12081{
b4e70030 12082if ((long *) 0)
4e8d927d 12083 return 0;
b4e70030 12084if (sizeof (long))
4e8d927d 12085 return 0;
a3828db0
MK
12086 ;
12087 return 0;
46711df8 12088}
bec39cab 12089_ACEOF
a3828db0
MK
12090rm -f conftest.$ac_objext
12091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>conftest.er1
12093 ac_status=$?
12094 grep -v '^ *+' conftest.er1 >conftest.err
12095 rm -f conftest.er1
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } &&
b4e70030
JB
12099 { ac_try='test -z "$ac_c_werror_flag"
12100 || test ! -s conftest.err'
a3828db0
MK
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
bec39cab
AC
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12105 (exit $ac_status); }; } &&
12106 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
4e8d927d 12112 ac_cv_type_long=yes
46711df8 12113else
a3828db0 12114 echo "$as_me: failed program was:" >&5
bec39cab
AC
12115sed 's/^/| /' conftest.$ac_ext >&5
12116
b4e70030 12117ac_cv_type_long=no
46711df8 12118fi
4e8d927d 12119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12120fi
b4e70030
JB
12121echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12122echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12123
b4e70030
JB
12124echo "$as_me:$LINENO: checking size of long" >&5
12125echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12126if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12127 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12128else
4e8d927d 12129 if test "$ac_cv_type_long" = yes; then
b4e70030 12130 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12133 # This bug is HP SR number 8606223364.
12134 if test "$cross_compiling" = yes; then
12135 # Depending upon the size, compute the lo and hi bounds.
12136cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12137/* confdefs.h. */
12138_ACEOF
12139cat confdefs.h >>conftest.$ac_ext
12140cat >>conftest.$ac_ext <<_ACEOF
12141/* end confdefs.h. */
4e8d927d 12142$ac_includes_default
4e8d927d
DJ
12143int
12144main ()
12145{
b4e70030 12146static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12147test_array [0] = 0
a3828db0 12148
4e8d927d
DJ
12149 ;
12150 return 0;
12151}
bec39cab
AC
12152_ACEOF
12153rm -f conftest.$ac_objext
12154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12155 (eval $ac_compile) 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
b4e70030
JB
12162 { ac_try='test -z "$ac_c_werror_flag"
12163 || test ! -s conftest.err'
bec39cab
AC
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; } &&
12169 { ac_try='test -s conftest.$ac_objext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
4e8d927d
DJ
12175 ac_lo=0 ac_mid=0
12176 while :; do
12177 cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h. */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h. */
12183$ac_includes_default
4e8d927d
DJ
12184int
12185main ()
12186{
b4e70030 12187static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12188test_array [0] = 0
12189
12190 ;
12191 return 0;
12192}
12193_ACEOF
12194rm -f conftest.$ac_objext
12195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
b4e70030
JB
12203 { ac_try='test -z "$ac_c_werror_flag"
12204 || test ! -s conftest.err'
4e8d927d
DJ
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_hi=$ac_mid; break
12217else
12218 echo "$as_me: failed program was:" >&5
12219sed 's/^/| /' conftest.$ac_ext >&5
12220
b4e70030
JB
12221ac_lo=`expr $ac_mid + 1`
12222 if test $ac_lo -le $ac_mid; then
12223 ac_lo= ac_hi=
12224 break
12225 fi
12226 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12227fi
4e8d927d
DJ
12228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 done
12230else
12231 echo "$as_me: failed program was:" >&5
12232sed 's/^/| /' conftest.$ac_ext >&5
12233
b4e70030 12234cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
12239/* end confdefs.h. */
12240$ac_includes_default
4e8d927d
DJ
12241int
12242main ()
12243{
b4e70030 12244static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
12245test_array [0] = 0
12246
12247 ;
12248 return 0;
12249}
12250_ACEOF
12251rm -f conftest.$ac_objext
12252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
b4e70030
JB
12260 { ac_try='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
4e8d927d
DJ
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest.$ac_objext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_hi=-1 ac_mid=-1
12274 while :; do
12275 cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h. */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h. */
12281$ac_includes_default
4e8d927d
DJ
12282int
12283main ()
12284{
b4e70030 12285static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
12286test_array [0] = 0
12287
12288 ;
12289 return 0;
12290}
12291_ACEOF
12292rm -f conftest.$ac_objext
12293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
b4e70030
JB
12301 { ac_try='test -z "$ac_c_werror_flag"
12302 || test ! -s conftest.err'
4e8d927d
DJ
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try='test -s conftest.$ac_objext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_lo=$ac_mid; break
12315else
12316 echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
b4e70030
JB
12319ac_hi=`expr '(' $ac_mid ')' - 1`
12320 if test $ac_mid -le $ac_hi; then
12321 ac_lo= ac_hi=
12322 break
12323 fi
12324 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12325fi
4e8d927d
DJ
12326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12327 done
12328else
12329 echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
b4e70030 12332ac_lo= ac_hi=
4e8d927d 12333fi
4e8d927d
DJ
12334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12335fi
4e8d927d
DJ
12336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12337# Binary search between lo and hi bounds.
12338while test "x$ac_lo" != "x$ac_hi"; do
12339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12340 cat >conftest.$ac_ext <<_ACEOF
12341/* confdefs.h. */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h. */
12346$ac_includes_default
4e8d927d
DJ
12347int
12348main ()
12349{
b4e70030 12350static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12351test_array [0] = 0
12352
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext
12358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
b4e70030
JB
12366 { ac_try='test -z "$ac_c_werror_flag"
12367 || test ! -s conftest.err'
4e8d927d
DJ
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest.$ac_objext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_hi=$ac_mid
12380else
12381 echo "$as_me: failed program was:" >&5
12382sed 's/^/| /' conftest.$ac_ext >&5
12383
b4e70030 12384ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12385fi
4e8d927d
DJ
12386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12387done
12388case $ac_lo in
12389?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 12390'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12391See \`config.log' for more details." >&5
b4e70030 12392echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12393See \`config.log' for more details." >&2;}
b4e70030 12394 { (exit 1); exit 1; }; } ;;
4e8d927d 12395esac
b4e70030
JB
12396else
12397 if test "$cross_compiling" = yes; then
12398 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12399See \`config.log' for more details." >&5
12400echo "$as_me: error: cannot run test program while cross compiling
12401See \`config.log' for more details." >&2;}
12402 { (exit 1); exit 1; }; }
4e8d927d
DJ
12403else
12404 cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
12410$ac_includes_default
b4e70030
JB
12411long longval () { return (long) (sizeof (long)); }
12412unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
12413#include <stdio.h>
12414#include <stdlib.h>
12415int
12416main ()
12417{
12418
12419 FILE *f = fopen ("conftest.val", "w");
12420 if (! f)
b4e70030
JB
12421 exit (1);
12422 if (((long) (sizeof (long))) < 0)
4e8d927d 12423 {
b4e70030
JB
12424 long i = longval ();
12425 if (i != ((long) (sizeof (long))))
12426 exit (1);
4e8d927d
DJ
12427 fprintf (f, "%ld\n", i);
12428 }
12429 else
12430 {
b4e70030
JB
12431 unsigned long i = ulongval ();
12432 if (i != ((long) (sizeof (long))))
12433 exit (1);
4e8d927d
DJ
12434 fprintf (f, "%lu\n", i);
12435 }
b4e70030 12436 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12437
12438 ;
12439 return 0;
12440}
12441_ACEOF
12442rm -f conftest$ac_exeext
12443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12444 (eval $ac_link) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 ac_cv_sizeof_long=`cat conftest.val`
12454else
12455 echo "$as_me: program exited with status $ac_status" >&5
12456echo "$as_me: failed program was:" >&5
12457sed 's/^/| /' conftest.$ac_ext >&5
12458
12459( exit $ac_status )
b4e70030 12460{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12461See \`config.log' for more details." >&5
b4e70030 12462echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12463See \`config.log' for more details." >&2;}
b4e70030
JB
12464 { (exit 1); exit 1; }; }
12465fi
12466rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12467fi
4e8d927d
DJ
12468fi
12469rm -f conftest.val
12470else
12471 ac_cv_sizeof_long=0
12472fi
12473fi
b4e70030
JB
12474echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12475echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
12476cat >>confdefs.h <<_ACEOF
12477#define SIZEOF_LONG $ac_cv_sizeof_long
12478_ACEOF
12479
12480 ;;
12481esac
12482
12483if test $acx_cv_header_stdint = stddef.h; then
12484 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
12485 echo "$as_me:$LINENO: checking for int" >&5
12486echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
12487if test "${ac_cv_type_int+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12489else
12490 cat >conftest.$ac_ext <<_ACEOF
12491/* confdefs.h. */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h. */
12496$ac_includes_default
4e8d927d
DJ
12497int
12498main ()
12499{
b4e70030 12500if ((int *) 0)
4e8d927d 12501 return 0;
b4e70030 12502if (sizeof (int))
4e8d927d
DJ
12503 return 0;
12504 ;
12505 return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext
12509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
b4e70030
JB
12517 { ac_try='test -z "$ac_c_werror_flag"
12518 || test ! -s conftest.err'
4e8d927d
DJ
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_type_int=yes
12531else
12532 echo "$as_me: failed program was:" >&5
12533sed 's/^/| /' conftest.$ac_ext >&5
12534
b4e70030 12535ac_cv_type_int=no
4e8d927d 12536fi
4e8d927d
DJ
12537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12538fi
b4e70030
JB
12539echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12540echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 12541
b4e70030
JB
12542echo "$as_me:$LINENO: checking size of int" >&5
12543echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
12544if test "${ac_cv_sizeof_int+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546else
12547 if test "$ac_cv_type_int" = yes; then
b4e70030 12548 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12551 # This bug is HP SR number 8606223364.
12552 if test "$cross_compiling" = yes; then
12553 # Depending upon the size, compute the lo and hi bounds.
12554cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560$ac_includes_default
4e8d927d
DJ
12561int
12562main ()
12563{
b4e70030 12564static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
12565test_array [0] = 0
12566
12567 ;
12568 return 0;
12569}
12570_ACEOF
12571rm -f conftest.$ac_objext
12572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12573 (eval $ac_compile) 2>conftest.er1
12574 ac_status=$?
12575 grep -v '^ *+' conftest.er1 >conftest.err
12576 rm -f conftest.er1
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
b4e70030
JB
12580 { ac_try='test -z "$ac_c_werror_flag"
12581 || test ! -s conftest.err'
4e8d927d
DJ
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 ac_lo=0 ac_mid=0
12594 while :; do
12595 cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
12601$ac_includes_default
4e8d927d
DJ
12602int
12603main ()
12604{
b4e70030 12605static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
12606test_array [0] = 0
12607
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612rm -f conftest.$ac_objext
12613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12614 (eval $ac_compile) 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
b4e70030
JB
12621 { ac_try='test -z "$ac_c_werror_flag"
12622 || test ! -s conftest.err'
4e8d927d
DJ
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; } &&
12628 { ac_try='test -s conftest.$ac_objext'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 ac_hi=$ac_mid; break
12635else
12636 echo "$as_me: failed program was:" >&5
12637sed 's/^/| /' conftest.$ac_ext >&5
12638
b4e70030
JB
12639ac_lo=`expr $ac_mid + 1`
12640 if test $ac_lo -le $ac_mid; then
12641 ac_lo= ac_hi=
12642 break
12643 fi
12644 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12645fi
4e8d927d
DJ
12646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12647 done
12648else
12649 echo "$as_me: failed program was:" >&5
12650sed 's/^/| /' conftest.$ac_ext >&5
12651
b4e70030 12652cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12653/* confdefs.h. */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h. */
12658$ac_includes_default
4e8d927d
DJ
12659int
12660main ()
12661{
b4e70030 12662static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
12663test_array [0] = 0
12664
12665 ;
12666 return 0;
12667}
12668_ACEOF
12669rm -f conftest.$ac_objext
12670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
b4e70030
JB
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
4e8d927d
DJ
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_hi=-1 ac_mid=-1
12692 while :; do
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699$ac_includes_default
4e8d927d
DJ
12700int
12701main ()
12702{
b4e70030 12703static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
12704test_array [0] = 0
12705
12706 ;
12707 return 0;
12708}
12709_ACEOF
12710rm -f conftest.$ac_objext
12711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
b4e70030
JB
12719 { ac_try='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
4e8d927d
DJ
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_lo=$ac_mid; break
12733else
12734 echo "$as_me: failed program was:" >&5
12735sed 's/^/| /' conftest.$ac_ext >&5
12736
b4e70030
JB
12737ac_hi=`expr '(' $ac_mid ')' - 1`
12738 if test $ac_mid -le $ac_hi; then
12739 ac_lo= ac_hi=
12740 break
12741 fi
12742 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12743fi
4e8d927d
DJ
12744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12745 done
12746else
12747 echo "$as_me: failed program was:" >&5
12748sed 's/^/| /' conftest.$ac_ext >&5
12749
b4e70030 12750ac_lo= ac_hi=
4e8d927d 12751fi
4e8d927d
DJ
12752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12753fi
4e8d927d
DJ
12754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12755# Binary search between lo and hi bounds.
12756while test "x$ac_lo" != "x$ac_hi"; do
12757 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12758 cat >conftest.$ac_ext <<_ACEOF
12759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
12764$ac_includes_default
4e8d927d
DJ
12765int
12766main ()
12767{
b4e70030 12768static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
12769test_array [0] = 0
12770
12771 ;
12772 return 0;
12773}
12774_ACEOF
12775rm -f conftest.$ac_objext
12776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
b4e70030
JB
12784 { ac_try='test -z "$ac_c_werror_flag"
12785 || test ! -s conftest.err'
4e8d927d
DJ
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest.$ac_objext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 ac_hi=$ac_mid
12798else
12799 echo "$as_me: failed program was:" >&5
12800sed 's/^/| /' conftest.$ac_ext >&5
12801
b4e70030 12802ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12803fi
4e8d927d
DJ
12804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12805done
12806case $ac_lo in
12807?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 12808'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 12809See \`config.log' for more details." >&5
b4e70030 12810echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 12811See \`config.log' for more details." >&2;}
b4e70030 12812 { (exit 1); exit 1; }; } ;;
4e8d927d 12813esac
b4e70030
JB
12814else
12815 if test "$cross_compiling" = yes; then
12816 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12817See \`config.log' for more details." >&5
12818echo "$as_me: error: cannot run test program while cross compiling
12819See \`config.log' for more details." >&2;}
12820 { (exit 1); exit 1; }; }
4e8d927d
DJ
12821else
12822 cat >conftest.$ac_ext <<_ACEOF
12823/* confdefs.h. */
12824_ACEOF
12825cat confdefs.h >>conftest.$ac_ext
12826cat >>conftest.$ac_ext <<_ACEOF
12827/* end confdefs.h. */
12828$ac_includes_default
b4e70030
JB
12829long longval () { return (long) (sizeof (int)); }
12830unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
12831#include <stdio.h>
12832#include <stdlib.h>
12833int
12834main ()
12835{
12836
12837 FILE *f = fopen ("conftest.val", "w");
12838 if (! f)
b4e70030
JB
12839 exit (1);
12840 if (((long) (sizeof (int))) < 0)
4e8d927d 12841 {
b4e70030
JB
12842 long i = longval ();
12843 if (i != ((long) (sizeof (int))))
12844 exit (1);
4e8d927d
DJ
12845 fprintf (f, "%ld\n", i);
12846 }
12847 else
12848 {
b4e70030
JB
12849 unsigned long i = ulongval ();
12850 if (i != ((long) (sizeof (int))))
12851 exit (1);
4e8d927d
DJ
12852 fprintf (f, "%lu\n", i);
12853 }
b4e70030 12854 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12855
12856 ;
12857 return 0;
12858}
12859_ACEOF
12860rm -f conftest$ac_exeext
12861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862 (eval $ac_link) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_sizeof_int=`cat conftest.val`
12872else
12873 echo "$as_me: program exited with status $ac_status" >&5
12874echo "$as_me: failed program was:" >&5
12875sed 's/^/| /' conftest.$ac_ext >&5
12876
12877( exit $ac_status )
b4e70030 12878{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 12879See \`config.log' for more details." >&5
b4e70030 12880echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 12881See \`config.log' for more details." >&2;}
b4e70030
JB
12882 { (exit 1); exit 1; }; }
12883fi
12884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12885fi
4e8d927d
DJ
12886fi
12887rm -f conftest.val
12888else
12889 ac_cv_sizeof_int=0
12890fi
12891fi
b4e70030
JB
12892echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12893echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
12894cat >>confdefs.h <<_ACEOF
12895#define SIZEOF_INT $ac_cv_sizeof_int
12896_ACEOF
12897
12898
b4e70030
JB
12899 echo "$as_me:$LINENO: checking for short" >&5
12900echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
12901if test "${ac_cv_type_short+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904 cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
12910$ac_includes_default
4e8d927d
DJ
12911int
12912main ()
12913{
b4e70030 12914if ((short *) 0)
4e8d927d 12915 return 0;
b4e70030 12916if (sizeof (short))
4e8d927d
DJ
12917 return 0;
12918 ;
12919 return 0;
12920}
12921_ACEOF
12922rm -f conftest.$ac_objext
12923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12924 (eval $ac_compile) 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
b4e70030
JB
12931 { ac_try='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
4e8d927d
DJ
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest.$ac_objext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_type_short=yes
12945else
12946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
b4e70030 12949ac_cv_type_short=no
4e8d927d 12950fi
4e8d927d
DJ
12951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12952fi
b4e70030
JB
12953echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12954echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 12955
b4e70030
JB
12956echo "$as_me:$LINENO: checking size of short" >&5
12957echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
12958if test "${ac_cv_sizeof_short+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961 if test "$ac_cv_type_short" = yes; then
b4e70030 12962 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12965 # This bug is HP SR number 8606223364.
12966 if test "$cross_compiling" = yes; then
12967 # Depending upon the size, compute the lo and hi bounds.
12968cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h. */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h. */
12974$ac_includes_default
4e8d927d
DJ
12975int
12976main ()
12977{
b4e70030 12978static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
12979test_array [0] = 0
12980
12981 ;
12982 return 0;
12983}
12984_ACEOF
12985rm -f conftest.$ac_objext
12986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>conftest.er1
12988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
b4e70030
JB
12994 { ac_try='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
4e8d927d
DJ
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest.$ac_objext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 ac_lo=0 ac_mid=0
13008 while :; do
13009 cat >conftest.$ac_ext <<_ACEOF
13010/* confdefs.h. */
13011_ACEOF
13012cat confdefs.h >>conftest.$ac_ext
13013cat >>conftest.$ac_ext <<_ACEOF
13014/* end confdefs.h. */
13015$ac_includes_default
4e8d927d
DJ
13016int
13017main ()
13018{
b4e70030 13019static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13020test_array [0] = 0
13021
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026rm -f conftest.$ac_objext
13027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
b4e70030
JB
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
4e8d927d
DJ
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13048 ac_hi=$ac_mid; break
13049else
13050 echo "$as_me: failed program was:" >&5
13051sed 's/^/| /' conftest.$ac_ext >&5
13052
b4e70030
JB
13053ac_lo=`expr $ac_mid + 1`
13054 if test $ac_lo -le $ac_mid; then
13055 ac_lo= ac_hi=
13056 break
13057 fi
13058 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13059fi
4e8d927d
DJ
13060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13061 done
13062else
13063 echo "$as_me: failed program was:" >&5
13064sed 's/^/| /' conftest.$ac_ext >&5
13065
b4e70030 13066cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13067/* confdefs.h. */
13068_ACEOF
13069cat confdefs.h >>conftest.$ac_ext
13070cat >>conftest.$ac_ext <<_ACEOF
13071/* end confdefs.h. */
13072$ac_includes_default
4e8d927d
DJ
13073int
13074main ()
13075{
b4e70030 13076static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13077test_array [0] = 0
13078
13079 ;
13080 return 0;
13081}
13082_ACEOF
13083rm -f conftest.$ac_objext
13084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13085 (eval $ac_compile) 2>conftest.er1
13086 ac_status=$?
13087 grep -v '^ *+' conftest.er1 >conftest.err
13088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
b4e70030
JB
13092 { ac_try='test -z "$ac_c_werror_flag"
13093 || test ! -s conftest.err'
4e8d927d
DJ
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; } &&
13099 { ac_try='test -s conftest.$ac_objext'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_hi=-1 ac_mid=-1
13106 while :; do
13107 cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113$ac_includes_default
4e8d927d
DJ
13114int
13115main ()
13116{
b4e70030 13117static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13118test_array [0] = 0
13119
13120 ;
13121 return 0;
13122}
13123_ACEOF
13124rm -f conftest.$ac_objext
13125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
b4e70030
JB
13133 { ac_try='test -z "$ac_c_werror_flag"
13134 || test ! -s conftest.err'
4e8d927d
DJ
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; } &&
13140 { ac_try='test -s conftest.$ac_objext'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
13146 ac_lo=$ac_mid; break
13147else
13148 echo "$as_me: failed program was:" >&5
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
b4e70030
JB
13151ac_hi=`expr '(' $ac_mid ')' - 1`
13152 if test $ac_mid -le $ac_hi; then
13153 ac_lo= ac_hi=
13154 break
13155 fi
13156 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13157fi
4e8d927d
DJ
13158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13159 done
13160else
13161 echo "$as_me: failed program was:" >&5
13162sed 's/^/| /' conftest.$ac_ext >&5
13163
b4e70030 13164ac_lo= ac_hi=
4e8d927d 13165fi
4e8d927d
DJ
13166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13167fi
4e8d927d
DJ
13168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13169# Binary search between lo and hi bounds.
13170while test "x$ac_lo" != "x$ac_hi"; do
13171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13172 cat >conftest.$ac_ext <<_ACEOF
13173/* confdefs.h. */
13174_ACEOF
13175cat confdefs.h >>conftest.$ac_ext
13176cat >>conftest.$ac_ext <<_ACEOF
13177/* end confdefs.h. */
13178$ac_includes_default
4e8d927d
DJ
13179int
13180main ()
13181{
b4e70030 13182static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13183test_array [0] = 0
13184
13185 ;
13186 return 0;
13187}
13188_ACEOF
13189rm -f conftest.$ac_objext
13190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13191 (eval $ac_compile) 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
b4e70030
JB
13198 { ac_try='test -z "$ac_c_werror_flag"
13199 || test ! -s conftest.err'
4e8d927d
DJ
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest.$ac_objext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 ac_hi=$ac_mid
13212else
13213 echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
b4e70030 13216ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13217fi
4e8d927d
DJ
13218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13219done
13220case $ac_lo in
13221?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 13222'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13223See \`config.log' for more details." >&5
b4e70030 13224echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13225See \`config.log' for more details." >&2;}
b4e70030 13226 { (exit 1); exit 1; }; } ;;
4e8d927d 13227esac
b4e70030
JB
13228else
13229 if test "$cross_compiling" = yes; then
13230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13231See \`config.log' for more details." >&5
13232echo "$as_me: error: cannot run test program while cross compiling
13233See \`config.log' for more details." >&2;}
13234 { (exit 1); exit 1; }; }
4e8d927d
DJ
13235else
13236 cat >conftest.$ac_ext <<_ACEOF
13237/* confdefs.h. */
13238_ACEOF
13239cat confdefs.h >>conftest.$ac_ext
13240cat >>conftest.$ac_ext <<_ACEOF
13241/* end confdefs.h. */
13242$ac_includes_default
b4e70030
JB
13243long longval () { return (long) (sizeof (short)); }
13244unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
13245#include <stdio.h>
13246#include <stdlib.h>
13247int
13248main ()
13249{
13250
13251 FILE *f = fopen ("conftest.val", "w");
13252 if (! f)
b4e70030
JB
13253 exit (1);
13254 if (((long) (sizeof (short))) < 0)
4e8d927d 13255 {
b4e70030
JB
13256 long i = longval ();
13257 if (i != ((long) (sizeof (short))))
13258 exit (1);
4e8d927d
DJ
13259 fprintf (f, "%ld\n", i);
13260 }
13261 else
13262 {
b4e70030
JB
13263 unsigned long i = ulongval ();
13264 if (i != ((long) (sizeof (short))))
13265 exit (1);
4e8d927d
DJ
13266 fprintf (f, "%lu\n", i);
13267 }
b4e70030 13268 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13269
13270 ;
13271 return 0;
13272}
13273_ACEOF
13274rm -f conftest$ac_exeext
13275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13276 (eval $ac_link) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 ac_cv_sizeof_short=`cat conftest.val`
13286else
13287 echo "$as_me: program exited with status $ac_status" >&5
13288echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
13291( exit $ac_status )
b4e70030 13292{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13293See \`config.log' for more details." >&5
b4e70030 13294echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13295See \`config.log' for more details." >&2;}
b4e70030
JB
13296 { (exit 1); exit 1; }; }
13297fi
13298rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13299fi
4e8d927d
DJ
13300fi
13301rm -f conftest.val
13302else
13303 ac_cv_sizeof_short=0
13304fi
13305fi
b4e70030
JB
13306echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13307echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
13308cat >>confdefs.h <<_ACEOF
13309#define SIZEOF_SHORT $ac_cv_sizeof_short
13310_ACEOF
13311
13312
b4e70030
JB
13313 echo "$as_me:$LINENO: checking for char" >&5
13314echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
13315if test "${ac_cv_type_char+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317else
13318 cat >conftest.$ac_ext <<_ACEOF
13319/* confdefs.h. */
13320_ACEOF
13321cat confdefs.h >>conftest.$ac_ext
13322cat >>conftest.$ac_ext <<_ACEOF
13323/* end confdefs.h. */
13324$ac_includes_default
4e8d927d
DJ
13325int
13326main ()
13327{
b4e70030 13328if ((char *) 0)
4e8d927d 13329 return 0;
b4e70030 13330if (sizeof (char))
4e8d927d
DJ
13331 return 0;
13332 ;
13333 return 0;
13334}
13335_ACEOF
13336rm -f conftest.$ac_objext
13337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13338 (eval $ac_compile) 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
b4e70030
JB
13345 { ac_try='test -z "$ac_c_werror_flag"
13346 || test ! -s conftest.err'
4e8d927d
DJ
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest.$ac_objext'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 ac_cv_type_char=yes
13359else
13360 echo "$as_me: failed program was:" >&5
13361sed 's/^/| /' conftest.$ac_ext >&5
13362
b4e70030 13363ac_cv_type_char=no
4e8d927d 13364fi
4e8d927d
DJ
13365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13366fi
b4e70030
JB
13367echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13368echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 13369
b4e70030
JB
13370echo "$as_me:$LINENO: checking size of char" >&5
13371echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
13372if test "${ac_cv_sizeof_char+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374else
13375 if test "$ac_cv_type_char" = yes; then
b4e70030 13376 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13379 # This bug is HP SR number 8606223364.
13380 if test "$cross_compiling" = yes; then
13381 # Depending upon the size, compute the lo and hi bounds.
13382cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
13388$ac_includes_default
4e8d927d
DJ
13389int
13390main ()
13391{
b4e70030 13392static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
13393test_array [0] = 0
13394
13395 ;
13396 return 0;
13397}
13398_ACEOF
13399rm -f conftest.$ac_objext
13400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13401 (eval $ac_compile) 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
b4e70030
JB
13408 { ac_try='test -z "$ac_c_werror_flag"
13409 || test ! -s conftest.err'
4e8d927d
DJ
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } &&
13415 { ac_try='test -s conftest.$ac_objext'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_lo=0 ac_mid=0
13422 while :; do
13423 cat >conftest.$ac_ext <<_ACEOF
13424/* confdefs.h. */
13425_ACEOF
13426cat confdefs.h >>conftest.$ac_ext
13427cat >>conftest.$ac_ext <<_ACEOF
13428/* end confdefs.h. */
13429$ac_includes_default
4e8d927d
DJ
13430int
13431main ()
13432{
b4e70030 13433static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13434test_array [0] = 0
13435
13436 ;
13437 return 0;
13438}
13439_ACEOF
13440rm -f conftest.$ac_objext
13441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442 (eval $ac_compile) 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
b4e70030
JB
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
4e8d927d
DJ
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest.$ac_objext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_hi=$ac_mid; break
13463else
13464 echo "$as_me: failed program was:" >&5
13465sed 's/^/| /' conftest.$ac_ext >&5
13466
b4e70030
JB
13467ac_lo=`expr $ac_mid + 1`
13468 if test $ac_lo -le $ac_mid; then
13469 ac_lo= ac_hi=
13470 break
13471 fi
13472 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13473fi
4e8d927d
DJ
13474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13475 done
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
b4e70030 13480cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13481/* confdefs.h. */
13482_ACEOF
13483cat confdefs.h >>conftest.$ac_ext
13484cat >>conftest.$ac_ext <<_ACEOF
13485/* end confdefs.h. */
13486$ac_includes_default
4e8d927d
DJ
13487int
13488main ()
13489{
b4e70030 13490static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
13491test_array [0] = 0
13492
13493 ;
13494 return 0;
13495}
13496_ACEOF
13497rm -f conftest.$ac_objext
13498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499 (eval $ac_compile) 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
b4e70030
JB
13506 { ac_try='test -z "$ac_c_werror_flag"
13507 || test ! -s conftest.err'
4e8d927d
DJ
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; } &&
13513 { ac_try='test -s conftest.$ac_objext'
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
13519 ac_hi=-1 ac_mid=-1
13520 while :; do
13521 cat >conftest.$ac_ext <<_ACEOF
13522/* confdefs.h. */
13523_ACEOF
13524cat confdefs.h >>conftest.$ac_ext
13525cat >>conftest.$ac_ext <<_ACEOF
13526/* end confdefs.h. */
13527$ac_includes_default
4e8d927d
DJ
13528int
13529main ()
13530{
b4e70030 13531static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
13532test_array [0] = 0
13533
13534 ;
13535 return 0;
13536}
13537_ACEOF
13538rm -f conftest.$ac_objext
13539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>conftest.er1
13541 ac_status=$?
13542 grep -v '^ *+' conftest.er1 >conftest.err
13543 rm -f conftest.er1
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
b4e70030
JB
13547 { ac_try='test -z "$ac_c_werror_flag"
13548 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_lo=$ac_mid; break
13561else
13562 echo "$as_me: failed program was:" >&5
13563sed 's/^/| /' conftest.$ac_ext >&5
13564
b4e70030
JB
13565ac_hi=`expr '(' $ac_mid ')' - 1`
13566 if test $ac_mid -le $ac_hi; then
13567 ac_lo= ac_hi=
13568 break
13569 fi
13570 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13571fi
4e8d927d
DJ
13572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13573 done
13574else
13575 echo "$as_me: failed program was:" >&5
13576sed 's/^/| /' conftest.$ac_ext >&5
13577
b4e70030 13578ac_lo= ac_hi=
4e8d927d 13579fi
4e8d927d
DJ
13580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13581fi
4e8d927d
DJ
13582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13583# Binary search between lo and hi bounds.
13584while test "x$ac_lo" != "x$ac_hi"; do
13585 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13586 cat >conftest.$ac_ext <<_ACEOF
13587/* confdefs.h. */
13588_ACEOF
13589cat confdefs.h >>conftest.$ac_ext
13590cat >>conftest.$ac_ext <<_ACEOF
13591/* end confdefs.h. */
13592$ac_includes_default
4e8d927d
DJ
13593int
13594main ()
13595{
b4e70030 13596static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13597test_array [0] = 0
13598
13599 ;
13600 return 0;
13601}
13602_ACEOF
13603rm -f conftest.$ac_objext
13604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
b4e70030
JB
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
4e8d927d
DJ
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_hi=$ac_mid
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
b4e70030 13630ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13631fi
4e8d927d
DJ
13632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13633done
13634case $ac_lo in
13635?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 13636'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13637See \`config.log' for more details." >&5
b4e70030 13638echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13639See \`config.log' for more details." >&2;}
b4e70030 13640 { (exit 1); exit 1; }; } ;;
4e8d927d 13641esac
b4e70030
JB
13642else
13643 if test "$cross_compiling" = yes; then
13644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13645See \`config.log' for more details." >&5
13646echo "$as_me: error: cannot run test program while cross compiling
13647See \`config.log' for more details." >&2;}
13648 { (exit 1); exit 1; }; }
4e8d927d
DJ
13649else
13650 cat >conftest.$ac_ext <<_ACEOF
13651/* confdefs.h. */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
13655/* end confdefs.h. */
13656$ac_includes_default
b4e70030
JB
13657long longval () { return (long) (sizeof (char)); }
13658unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
13659#include <stdio.h>
13660#include <stdlib.h>
13661int
13662main ()
13663{
13664
13665 FILE *f = fopen ("conftest.val", "w");
13666 if (! f)
b4e70030
JB
13667 exit (1);
13668 if (((long) (sizeof (char))) < 0)
4e8d927d 13669 {
b4e70030
JB
13670 long i = longval ();
13671 if (i != ((long) (sizeof (char))))
13672 exit (1);
4e8d927d
DJ
13673 fprintf (f, "%ld\n", i);
13674 }
13675 else
13676 {
b4e70030
JB
13677 unsigned long i = ulongval ();
13678 if (i != ((long) (sizeof (char))))
13679 exit (1);
4e8d927d
DJ
13680 fprintf (f, "%lu\n", i);
13681 }
b4e70030 13682 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13683
13684 ;
13685 return 0;
13686}
13687_ACEOF
13688rm -f conftest$ac_exeext
13689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_cv_sizeof_char=`cat conftest.val`
13700else
13701 echo "$as_me: program exited with status $ac_status" >&5
13702echo "$as_me: failed program was:" >&5
13703sed 's/^/| /' conftest.$ac_ext >&5
13704
13705( exit $ac_status )
b4e70030 13706{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 13707See \`config.log' for more details." >&5
b4e70030 13708echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 13709See \`config.log' for more details." >&2;}
b4e70030
JB
13710 { (exit 1); exit 1; }; }
13711fi
13712rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13713fi
4e8d927d
DJ
13714fi
13715rm -f conftest.val
13716else
13717 ac_cv_sizeof_char=0
13718fi
13719fi
b4e70030
JB
13720echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13721echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
13722cat >>confdefs.h <<_ACEOF
13723#define SIZEOF_CHAR $ac_cv_sizeof_char
13724_ACEOF
13725
13726
13727
b4e70030
JB
13728 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
13729echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
13730 case "$ac_cv_sizeof_char" in
13731 1) acx_cv_type_int8_t=char ;;
13732 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
13733echo "$as_me: error: no 8-bit type" >&2;}
13734 { (exit please report a bug); exit please report a bug; }; }
13735 esac
b4e70030
JB
13736 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
13737echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 13738
b4e70030
JB
13739 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
13740echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
13741 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13742 2:*) acx_cv_type_int16_t=int ;;
13743 *:2) acx_cv_type_int16_t=short ;;
13744 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
13745echo "$as_me: error: no 16-bit type" >&2;}
13746 { (exit please report a bug); exit please report a bug; }; }
13747 esac
b4e70030
JB
13748 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
13749echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 13750
b4e70030
JB
13751 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
13752echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
13753 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13754 4:*) acx_cv_type_int32_t=int ;;
13755 *:4) acx_cv_type_int32_t=long ;;
13756 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
13757echo "$as_me: error: no 32-bit type" >&2;}
13758 { (exit please report a bug); exit please report a bug; }; }
13759 esac
b4e70030
JB
13760 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
13761echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
13762fi
13763
13764# These tests are here to make the output prettier
13765
13766if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13767 case "$ac_cv_sizeof_long" in
13768 8) acx_cv_type_int64_t=long ;;
13769 esac
b4e70030
JB
13770 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
13771echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
13772 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13773echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
13774fi
13775
13776# Now we can use the above types
13777
13778if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
13779 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
13780echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
13781 case $ac_cv_sizeof_void_p in
13782 2) acx_cv_type_intptr_t=int16_t ;;
13783 4) acx_cv_type_intptr_t=int32_t ;;
13784 8) acx_cv_type_intptr_t=int64_t ;;
13785 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
13786echo "$as_me: error: no equivalent for intptr_t" >&2;}
13787 { (exit please report a bug); exit please report a bug; }; }
13788 esac
b4e70030
JB
13789 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
13790echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
13791fi
13792
13793# ----------------- done all checks, emit header -------------
b4e70030 13794 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
13795
13796
13797
13798
13799# ------------------------- #
13800# Checks for declarations. #
13801# ------------------------- #
13802
b4e70030
JB
13803echo "$as_me:$LINENO: checking whether free is declared" >&5
13804echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
13805if test "${ac_cv_have_decl_free+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807else
13808 cat >conftest.$ac_ext <<_ACEOF
13809/* confdefs.h. */
13810_ACEOF
13811cat confdefs.h >>conftest.$ac_ext
13812cat >>conftest.$ac_ext <<_ACEOF
13813/* end confdefs.h. */
13814$ac_includes_default
13815int
13816main ()
13817{
13818#ifndef free
13819 char *p = (char *) free;
4e8d927d
DJ
13820#endif
13821
13822 ;
13823 return 0;
13824}
13825_ACEOF
13826rm -f conftest.$ac_objext
13827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13828 (eval $ac_compile) 2>conftest.er1
13829 ac_status=$?
13830 grep -v '^ *+' conftest.er1 >conftest.err
13831 rm -f conftest.er1
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
b4e70030
JB
13835 { ac_try='test -z "$ac_c_werror_flag"
13836 || test ! -s conftest.err'
4e8d927d
DJ
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; } &&
13842 { ac_try='test -s conftest.$ac_objext'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 ac_cv_have_decl_free=yes
13849else
13850 echo "$as_me: failed program was:" >&5
13851sed 's/^/| /' conftest.$ac_ext >&5
13852
b4e70030 13853ac_cv_have_decl_free=no
4e8d927d 13854fi
4e8d927d
DJ
13855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13856fi
b4e70030
JB
13857echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13858echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
13859if test $ac_cv_have_decl_free = yes; then
13860
13861cat >>confdefs.h <<_ACEOF
13862#define HAVE_DECL_FREE 1
13863_ACEOF
13864
13865
13866else
13867 cat >>confdefs.h <<_ACEOF
13868#define HAVE_DECL_FREE 0
13869_ACEOF
13870
13871
13872fi
b4e70030
JB
13873echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13874echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
13875if test "${ac_cv_have_decl_malloc+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877else
13878 cat >conftest.$ac_ext <<_ACEOF
13879/* confdefs.h. */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h. */
13884$ac_includes_default
13885int
13886main ()
13887{
13888#ifndef malloc
13889 char *p = (char *) malloc;
4e8d927d
DJ
13890#endif
13891
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); } &&
b4e70030
JB
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
4e8d927d
DJ
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_have_decl_malloc=yes
13919else
13920 echo "$as_me: failed program was:" >&5
13921sed 's/^/| /' conftest.$ac_ext >&5
13922
b4e70030 13923ac_cv_have_decl_malloc=no
4e8d927d 13924fi
4e8d927d
DJ
13925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13926fi
b4e70030
JB
13927echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13928echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
13929if test $ac_cv_have_decl_malloc = yes; then
13930
13931cat >>confdefs.h <<_ACEOF
13932#define HAVE_DECL_MALLOC 1
13933_ACEOF
13934
13935
13936else
13937 cat >>confdefs.h <<_ACEOF
13938#define HAVE_DECL_MALLOC 0
13939_ACEOF
13940
13941
13942fi
b4e70030
JB
13943echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13944echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
13945if test "${ac_cv_have_decl_realloc+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947else
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. */
13954$ac_includes_default
13955int
13956main ()
13957{
13958#ifndef realloc
13959 char *p = (char *) realloc;
4e8d927d
DJ
13960#endif
13961
13962 ;
13963 return 0;
13964}
13965_ACEOF
13966rm -f conftest.$ac_objext
13967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968 (eval $ac_compile) 2>conftest.er1
13969 ac_status=$?
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
b4e70030
JB
13975 { ac_try='test -z "$ac_c_werror_flag"
13976 || test ! -s conftest.err'
4e8d927d
DJ
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; } &&
13982 { ac_try='test -s conftest.$ac_objext'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 ac_cv_have_decl_realloc=yes
13989else
13990 echo "$as_me: failed program was:" >&5
13991sed 's/^/| /' conftest.$ac_ext >&5
13992
b4e70030 13993ac_cv_have_decl_realloc=no
4e8d927d 13994fi
4e8d927d
DJ
13995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13996fi
b4e70030
JB
13997echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13998echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
13999if test $ac_cv_have_decl_realloc = yes; then
14000
14001cat >>confdefs.h <<_ACEOF
14002#define HAVE_DECL_REALLOC 1
14003_ACEOF
14004
14005
14006else
14007 cat >>confdefs.h <<_ACEOF
14008#define HAVE_DECL_REALLOC 0
14009_ACEOF
14010
14011
14012fi
14013
14014
b4e70030
JB
14015echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14016echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14017if test "${ac_cv_have_decl_strerror+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019else
14020 cat >conftest.$ac_ext <<_ACEOF
14021/* confdefs.h. */
14022_ACEOF
14023cat confdefs.h >>conftest.$ac_ext
14024cat >>conftest.$ac_ext <<_ACEOF
14025/* end confdefs.h. */
14026$ac_includes_default
14027int
14028main ()
14029{
14030#ifndef strerror
14031 char *p = (char *) strerror;
4e8d927d
DJ
14032#endif
14033
14034 ;
14035 return 0;
14036}
14037_ACEOF
14038rm -f conftest.$ac_objext
14039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
b4e70030
JB
14047 { ac_try='test -z "$ac_c_werror_flag"
14048 || test ! -s conftest.err'
4e8d927d
DJ
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest.$ac_objext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_have_decl_strerror=yes
14061else
14062 echo "$as_me: failed program was:" >&5
14063sed 's/^/| /' conftest.$ac_ext >&5
14064
b4e70030 14065ac_cv_have_decl_strerror=no
4e8d927d 14066fi
4e8d927d
DJ
14067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14068fi
b4e70030
JB
14069echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14070echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14071if test $ac_cv_have_decl_strerror = yes; then
14072
14073cat >>confdefs.h <<_ACEOF
14074#define HAVE_DECL_STRERROR 1
14075_ACEOF
14076
14077
14078else
14079 cat >>confdefs.h <<_ACEOF
14080#define HAVE_DECL_STRERROR 0
14081_ACEOF
14082
14083
14084fi
b4e70030
JB
14085echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14086echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14087if test "${ac_cv_have_decl_strstr+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089else
14090 cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
14096$ac_includes_default
14097int
14098main ()
14099{
14100#ifndef strstr
14101 char *p = (char *) strstr;
4e8d927d
DJ
14102#endif
14103
14104 ;
14105 return 0;
14106}
14107_ACEOF
14108rm -f conftest.$ac_objext
14109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
b4e70030
JB
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
4e8d927d
DJ
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest.$ac_objext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_cv_have_decl_strstr=yes
14131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
b4e70030 14135ac_cv_have_decl_strstr=no
4e8d927d 14136fi
4e8d927d
DJ
14137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14138fi
b4e70030
JB
14139echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14140echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14141if test $ac_cv_have_decl_strstr = yes; then
14142
14143cat >>confdefs.h <<_ACEOF
14144#define HAVE_DECL_STRSTR 1
14145_ACEOF
14146
14147
14148else
14149 cat >>confdefs.h <<_ACEOF
14150#define HAVE_DECL_STRSTR 0
14151_ACEOF
14152
14153
14154fi
14155
14156
b4e70030
JB
14157echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14158echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14159if test "${ac_cv_have_decl_getopt+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14161else
14162 cat >conftest.$ac_ext <<_ACEOF
14163/* confdefs.h. */
14164_ACEOF
14165cat confdefs.h >>conftest.$ac_ext
14166cat >>conftest.$ac_ext <<_ACEOF
14167/* end confdefs.h. */
14168$ac_includes_default
14169int
14170main ()
14171{
14172#ifndef getopt
14173 char *p = (char *) getopt;
4e8d927d
DJ
14174#endif
14175
14176 ;
14177 return 0;
14178}
14179_ACEOF
14180rm -f conftest.$ac_objext
14181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182 (eval $ac_compile) 2>conftest.er1
14183 ac_status=$?
14184 grep -v '^ *+' conftest.er1 >conftest.err
14185 rm -f conftest.er1
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
b4e70030
JB
14189 { ac_try='test -z "$ac_c_werror_flag"
14190 || test ! -s conftest.err'
4e8d927d
DJ
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; } &&
14196 { ac_try='test -s conftest.$ac_objext'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 ac_cv_have_decl_getopt=yes
14203else
14204 echo "$as_me: failed program was:" >&5
14205sed 's/^/| /' conftest.$ac_ext >&5
14206
b4e70030 14207ac_cv_have_decl_getopt=no
4e8d927d 14208fi
4e8d927d
DJ
14209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14210fi
b4e70030
JB
14211echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14212echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
14213if test $ac_cv_have_decl_getopt = yes; then
14214
14215cat >>confdefs.h <<_ACEOF
14216#define HAVE_DECL_GETOPT 1
14217_ACEOF
14218
14219
14220else
14221 cat >>confdefs.h <<_ACEOF
14222#define HAVE_DECL_GETOPT 0
14223_ACEOF
14224
14225
14226fi
b4e70030
JB
14227echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14228echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14229if test "${ac_cv_have_decl_snprintf+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231else
14232 cat >conftest.$ac_ext <<_ACEOF
14233/* confdefs.h. */
14234_ACEOF
14235cat confdefs.h >>conftest.$ac_ext
14236cat >>conftest.$ac_ext <<_ACEOF
14237/* end confdefs.h. */
14238$ac_includes_default
14239int
14240main ()
14241{
14242#ifndef snprintf
14243 char *p = (char *) snprintf;
4e8d927d
DJ
14244#endif
14245
14246 ;
14247 return 0;
14248}
14249_ACEOF
14250rm -f conftest.$ac_objext
14251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>conftest.er1
14253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
b4e70030
JB
14259 { ac_try='test -z "$ac_c_werror_flag"
14260 || test ! -s conftest.err'
4e8d927d
DJ
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest.$ac_objext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_cv_have_decl_snprintf=yes
14273else
14274 echo "$as_me: failed program was:" >&5
14275sed 's/^/| /' conftest.$ac_ext >&5
14276
b4e70030 14277ac_cv_have_decl_snprintf=no
4e8d927d 14278fi
4e8d927d
DJ
14279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14280fi
b4e70030
JB
14281echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14282echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
14283if test $ac_cv_have_decl_snprintf = yes; then
14284
14285cat >>confdefs.h <<_ACEOF
14286#define HAVE_DECL_SNPRINTF 1
14287_ACEOF
14288
14289
14290else
14291 cat >>confdefs.h <<_ACEOF
14292#define HAVE_DECL_SNPRINTF 0
14293_ACEOF
14294
14295
14296fi
b4e70030
JB
14297echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14298echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14299if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301else
14302 cat >conftest.$ac_ext <<_ACEOF
14303/* confdefs.h. */
14304_ACEOF
14305cat confdefs.h >>conftest.$ac_ext
14306cat >>conftest.$ac_ext <<_ACEOF
14307/* end confdefs.h. */
14308$ac_includes_default
14309int
14310main ()
14311{
14312#ifndef vsnprintf
14313 char *p = (char *) vsnprintf;
4e8d927d
DJ
14314#endif
14315
14316 ;
14317 return 0;
14318}
14319_ACEOF
14320rm -f conftest.$ac_objext
14321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
b4e70030
JB
14329 { ac_try='test -z "$ac_c_werror_flag"
14330 || test ! -s conftest.err'
4e8d927d
DJ
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14342 ac_cv_have_decl_vsnprintf=yes
14343else
14344 echo "$as_me: failed program was:" >&5
14345sed 's/^/| /' conftest.$ac_ext >&5
14346
b4e70030 14347ac_cv_have_decl_vsnprintf=no
4e8d927d 14348fi
4e8d927d
DJ
14349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14350fi
b4e70030
JB
14351echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14352echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
14353if test $ac_cv_have_decl_vsnprintf = yes; then
14354
14355cat >>confdefs.h <<_ACEOF
14356#define HAVE_DECL_VSNPRINTF 1
14357_ACEOF
14358
14359
14360else
14361 cat >>confdefs.h <<_ACEOF
14362#define HAVE_DECL_VSNPRINTF 0
14363_ACEOF
14364
14365
14366fi
14367
14368
14369
14370# ----------------------- #
14371# Checks for structures. #
14372# ----------------------- #
14373
b4e70030
JB
14374echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14375echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
14376if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378else
14379 cat >conftest.$ac_ext <<_ACEOF
14380/* confdefs.h. */
14381_ACEOF
14382cat confdefs.h >>conftest.$ac_ext
14383cat >>conftest.$ac_ext <<_ACEOF
14384/* end confdefs.h. */
14385$ac_includes_default
14386int
14387main ()
14388{
14389static struct stat ac_aggr;
14390if (ac_aggr.st_blocks)
14391return 0;
14392 ;
14393 return 0;
14394}
14395_ACEOF
14396rm -f conftest.$ac_objext
14397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
b4e70030
JB
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
4e8d927d
DJ
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_member_struct_stat_st_blocks=yes
14419else
14420 echo "$as_me: failed program was:" >&5
14421sed 's/^/| /' conftest.$ac_ext >&5
14422
b4e70030 14423cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14424/* confdefs.h. */
14425_ACEOF
14426cat confdefs.h >>conftest.$ac_ext
14427cat >>conftest.$ac_ext <<_ACEOF
14428/* end confdefs.h. */
14429$ac_includes_default
14430int
14431main ()
14432{
14433static struct stat ac_aggr;
14434if (sizeof ac_aggr.st_blocks)
14435return 0;
14436 ;
14437 return 0;
14438}
14439_ACEOF
14440rm -f conftest.$ac_objext
14441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442 (eval $ac_compile) 2>conftest.er1
14443 ac_status=$?
14444 grep -v '^ *+' conftest.er1 >conftest.err
14445 rm -f conftest.er1
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
b4e70030
JB
14449 { ac_try='test -z "$ac_c_werror_flag"
14450 || test ! -s conftest.err'
4e8d927d
DJ
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; }; then
14462 ac_cv_member_struct_stat_st_blocks=yes
14463else
14464 echo "$as_me: failed program was:" >&5
14465sed 's/^/| /' conftest.$ac_ext >&5
14466
b4e70030 14467ac_cv_member_struct_stat_st_blocks=no
4e8d927d 14468fi
4e8d927d
DJ
14469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470fi
4e8d927d
DJ
14471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14472fi
b4e70030
JB
14473echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14474echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
14475if test $ac_cv_member_struct_stat_st_blocks = yes; then
14476
14477cat >>confdefs.h <<_ACEOF
14478#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14479_ACEOF
14480
14481
14482fi
14483
b4e70030
JB
14484echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14485echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
14486if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488else
14489 cat >conftest.$ac_ext <<_ACEOF
14490/* confdefs.h. */
14491_ACEOF
14492cat confdefs.h >>conftest.$ac_ext
14493cat >>conftest.$ac_ext <<_ACEOF
14494/* end confdefs.h. */
14495$ac_includes_default
14496int
14497main ()
14498{
14499static struct stat ac_aggr;
14500if (ac_aggr.st_blksize)
14501return 0;
14502 ;
14503 return 0;
14504}
14505_ACEOF
14506rm -f conftest.$ac_objext
14507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14508 (eval $ac_compile) 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
b4e70030
JB
14515 { ac_try='test -z "$ac_c_werror_flag"
14516 || test ! -s conftest.err'
4e8d927d
DJ
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_member_struct_stat_st_blksize=yes
14529else
14530 echo "$as_me: failed program was:" >&5
14531sed 's/^/| /' conftest.$ac_ext >&5
14532
b4e70030 14533cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14534/* confdefs.h. */
14535_ACEOF
14536cat confdefs.h >>conftest.$ac_ext
14537cat >>conftest.$ac_ext <<_ACEOF
14538/* end confdefs.h. */
14539$ac_includes_default
14540int
14541main ()
14542{
14543static struct stat ac_aggr;
14544if (sizeof ac_aggr.st_blksize)
14545return 0;
14546 ;
14547 return 0;
14548}
14549_ACEOF
14550rm -f conftest.$ac_objext
14551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14552 (eval $ac_compile) 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
b4e70030
JB
14559 { ac_try='test -z "$ac_c_werror_flag"
14560 || test ! -s conftest.err'
4e8d927d
DJ
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest.$ac_objext'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_cv_member_struct_stat_st_blksize=yes
14573else
14574 echo "$as_me: failed program was:" >&5
14575sed 's/^/| /' conftest.$ac_ext >&5
14576
b4e70030 14577ac_cv_member_struct_stat_st_blksize=no
4e8d927d 14578fi
4e8d927d
DJ
14579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14580fi
4e8d927d
DJ
14581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14582fi
b4e70030
JB
14583echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14584echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
14585if test $ac_cv_member_struct_stat_st_blksize = yes; then
14586
14587cat >>confdefs.h <<_ACEOF
14588#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14589_ACEOF
14590
14591
14592fi
14593
14594
14595# ------------------ #
14596# Checks for types. #
14597# ------------------ #
14598
b4e70030
JB
14599echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14600echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
14601if test "${ac_cv_type_signal+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14603else
14604 cat >conftest.$ac_ext <<_ACEOF
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
14609/* end confdefs.h. */
14610#include <sys/types.h>
14611#include <signal.h>
b4e70030
JB
14612#ifdef signal
14613# undef signal
14614#endif
14615#ifdef __cplusplus
14616extern "C" void (*signal (int, void (*)(int)))(int);
14617#else
14618void (*signal ()) ();
14619#endif
4e8d927d
DJ
14620
14621int
14622main ()
14623{
b4e70030 14624int i;
4e8d927d
DJ
14625 ;
14626 return 0;
14627}
14628_ACEOF
14629rm -f conftest.$ac_objext
14630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
b4e70030
JB
14638 { ac_try='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
4e8d927d
DJ
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
b4e70030 14651 ac_cv_type_signal=void
4e8d927d
DJ
14652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
b4e70030 14656ac_cv_type_signal=int
4e8d927d 14657fi
4e8d927d
DJ
14658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659fi
b4e70030
JB
14660echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14661echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
14662
14663cat >>confdefs.h <<_ACEOF
14664#define RETSIGTYPE $ac_cv_type_signal
14665_ACEOF
14666
14667
b4e70030
JB
14668echo "$as_me:$LINENO: checking for socklen_t" >&5
14669echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
14670if test "${ac_cv_type_socklen_t+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672else
14673 cat >conftest.$ac_ext <<_ACEOF
14674/* confdefs.h. */
14675_ACEOF
14676cat confdefs.h >>conftest.$ac_ext
14677cat >>conftest.$ac_ext <<_ACEOF
14678/* end confdefs.h. */
14679#include <sys/types.h>
14680#include <sys/socket.h>
14681
14682
4e8d927d
DJ
14683int
14684main ()
14685{
b4e70030 14686if ((socklen_t *) 0)
4e8d927d 14687 return 0;
b4e70030 14688if (sizeof (socklen_t))
4e8d927d
DJ
14689 return 0;
14690 ;
14691 return 0;
14692}
14693_ACEOF
14694rm -f conftest.$ac_objext
14695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
b4e70030
JB
14703 { ac_try='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
4e8d927d
DJ
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_cv_type_socklen_t=yes
14717else
14718 echo "$as_me: failed program was:" >&5
14719sed 's/^/| /' conftest.$ac_ext >&5
14720
b4e70030 14721ac_cv_type_socklen_t=no
4e8d927d 14722fi
4e8d927d
DJ
14723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14724fi
b4e70030
JB
14725echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14726echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
14727if test $ac_cv_type_socklen_t = yes; then
14728
14729cat >>confdefs.h <<_ACEOF
14730#define HAVE_SOCKLEN_T 1
14731_ACEOF
14732
14733
14734fi
14735
b4e70030
JB
14736echo "$as_me:$LINENO: checking for uintptr_t" >&5
14737echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
14738if test "${ac_cv_type_uintptr_t+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14740else
14741 cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h. */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
14747#include <stdint.h>
14748
4e8d927d
DJ
14749int
14750main ()
14751{
b4e70030 14752if ((uintptr_t *) 0)
4e8d927d 14753 return 0;
b4e70030 14754if (sizeof (uintptr_t))
4e8d927d
DJ
14755 return 0;
14756 ;
14757 return 0;
14758}
14759_ACEOF
14760rm -f conftest.$ac_objext
14761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
b4e70030
JB
14769 { ac_try='test -z "$ac_c_werror_flag"
14770 || test ! -s conftest.err'
4e8d927d
DJ
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } &&
14776 { ac_try='test -s conftest.$ac_objext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_type_uintptr_t=yes
14783else
14784 echo "$as_me: failed program was:" >&5
14785sed 's/^/| /' conftest.$ac_ext >&5
14786
b4e70030 14787ac_cv_type_uintptr_t=no
4e8d927d 14788fi
4e8d927d
DJ
14789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14790fi
b4e70030
JB
14791echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14792echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
14793if test $ac_cv_type_uintptr_t = yes; then
14794
14795cat >>confdefs.h <<_ACEOF
14796#define HAVE_UINTPTR_T 1
14797_ACEOF
14798
14799
14800fi
14801
14802
14803# ------------------------------------- #
14804# Checks for compiler characteristics. #
14805# ------------------------------------- #
14806
b4e70030
JB
14807echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14808echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
14809if test "${ac_cv_c_const+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811else
14812 cat >conftest.$ac_ext <<_ACEOF
14813/* confdefs.h. */
14814_ACEOF
14815cat confdefs.h >>conftest.$ac_ext
14816cat >>conftest.$ac_ext <<_ACEOF
14817/* end confdefs.h. */
14818
14819int
14820main ()
14821{
14822/* FIXME: Include the comments suggested by Paul. */
14823#ifndef __cplusplus
14824 /* Ultrix mips cc rejects this. */
14825 typedef int charset[2];
14826 const charset x;
14827 /* SunOS 4.1.1 cc rejects this. */
14828 char const *const *ccp;
14829 char **p;
14830 /* NEC SVR4.0.2 mips cc rejects this. */
14831 struct point {int x, y;};
14832 static struct point const zero = {0,0};
14833 /* AIX XL C 1.02.0.0 rejects this.
14834 It does not let you subtract one const X* pointer from another in
14835 an arm of an if-expression whose if-part is not a constant
14836 expression */
14837 const char *g = "string";
14838 ccp = &g + (g ? g-g : 0);
14839 /* HPUX 7.0 cc rejects these. */
14840 ++ccp;
14841 p = (char**) ccp;
14842 ccp = (char const *const *) p;
14843 { /* SCO 3.2v4 cc rejects this. */
14844 char *t;
14845 char const *s = 0 ? (char *) 0 : (char const *) 0;
14846
14847 *t++ = 0;
4e8d927d
DJ
14848 }
14849 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14850 int x[] = {25, 17};
14851 const int *foo = &x[0];
14852 ++foo;
14853 }
14854 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14855 typedef const int *iptr;
14856 iptr p = 0;
14857 ++p;
14858 }
14859 { /* AIX XL C 1.02.0.0 rejects this saying
14860 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14861 struct s { int j; const int *ap[3]; };
14862 struct s *b; b->j = 5;
14863 }
14864 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14865 const int foo = 10;
4e8d927d 14866 }
4e8d927d
DJ
14867#endif
14868
14869 ;
14870 return 0;
14871}
14872_ACEOF
14873rm -f conftest.$ac_objext
14874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875 (eval $ac_compile) 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
b4e70030
JB
14882 { ac_try='test -z "$ac_c_werror_flag"
14883 || test ! -s conftest.err'
4e8d927d
DJ
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ac_cv_c_const=yes
14896else
14897 echo "$as_me: failed program was:" >&5
14898sed 's/^/| /' conftest.$ac_ext >&5
14899
b4e70030 14900ac_cv_c_const=no
4e8d927d 14901fi
4e8d927d
DJ
14902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14903fi
b4e70030
JB
14904echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14905echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
14906if test $ac_cv_c_const = no; then
14907
14908cat >>confdefs.h <<\_ACEOF
14909#define const
14910_ACEOF
14911
14912fi
14913
b4e70030
JB
14914echo "$as_me:$LINENO: checking for inline" >&5
14915echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
14916if test "${ac_cv_c_inline+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918else
14919 ac_cv_c_inline=no
14920for ac_kw in inline __inline__ __inline; do
14921 cat >conftest.$ac_ext <<_ACEOF
14922/* confdefs.h. */
14923_ACEOF
14924cat confdefs.h >>conftest.$ac_ext
14925cat >>conftest.$ac_ext <<_ACEOF
14926/* end confdefs.h. */
14927#ifndef __cplusplus
14928typedef int foo_t;
14929static $ac_kw foo_t static_foo () {return 0; }
14930$ac_kw foo_t foo () {return 0; }
14931#endif
14932
14933_ACEOF
14934rm -f conftest.$ac_objext
14935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14936 (eval $ac_compile) 2>conftest.er1
14937 ac_status=$?
14938 grep -v '^ *+' conftest.er1 >conftest.err
14939 rm -f conftest.er1
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
b4e70030
JB
14943 { ac_try='test -z "$ac_c_werror_flag"
14944 || test ! -s conftest.err'
4e8d927d
DJ
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try='test -s conftest.$ac_objext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
b4e70030 14956 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
14957else
14958 echo "$as_me: failed program was:" >&5
14959sed 's/^/| /' conftest.$ac_ext >&5
14960
4e8d927d 14961fi
4e8d927d 14962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
14963done
14964
14965fi
b4e70030
JB
14966echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14967echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 14968
bec39cab 14969
a3828db0
MK
14970case $ac_cv_c_inline in
14971 inline | yes) ;;
14972 *)
14973 case $ac_cv_c_inline in
14974 no) ac_val=;;
14975 *) ac_val=$ac_cv_c_inline;;
14976 esac
14977 cat >>confdefs.h <<_ACEOF
14978#ifndef __cplusplus
14979#define inline $ac_val
14980#endif
14981_ACEOF
bec39cab
AC
14982 ;;
14983esac
bec39cab 14984
74c1b268 14985
a3828db0
MK
14986# ------------------------------ #
14987# Checks for library functions. #
14988# ------------------------------ #
bec39cab 14989
a3828db0
MK
14990# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14991# for constant arguments. Useless!
b4e70030
JB
14992echo "$as_me:$LINENO: checking for working alloca.h" >&5
14993echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 14994if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996else
14997 cat >conftest.$ac_ext <<_ACEOF
14998/* confdefs.h. */
14999_ACEOF
15000cat confdefs.h >>conftest.$ac_ext
15001cat >>conftest.$ac_ext <<_ACEOF
15002/* end confdefs.h. */
a3828db0 15003#include <alloca.h>
bec39cab
AC
15004int
15005main ()
15006{
a3828db0 15007char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
15008 ;
15009 return 0;
15010}
15011_ACEOF
15012rm -f conftest.$ac_objext conftest$ac_exeext
15013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15014 (eval $ac_link) 2>conftest.er1
15015 ac_status=$?
15016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
b4e70030
JB
15021 { ac_try='test -z "$ac_c_werror_flag"
15022 || test ! -s conftest.err'
bec39cab
AC
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
a3828db0 15034 ac_cv_working_alloca_h=yes
bec39cab
AC
15035else
15036 echo "$as_me: failed program was:" >&5
15037sed 's/^/| /' conftest.$ac_ext >&5
15038
b4e70030 15039ac_cv_working_alloca_h=no
bec39cab
AC
15040fi
15041rm -f conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
15043fi
b4e70030
JB
15044echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15045echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
15046if test $ac_cv_working_alloca_h = yes; then
15047
15048cat >>confdefs.h <<\_ACEOF
15049#define HAVE_ALLOCA_H 1
bec39cab 15050_ACEOF
74c1b268 15051
74c1b268
AC
15052fi
15053
b4e70030
JB
15054echo "$as_me:$LINENO: checking for alloca" >&5
15055echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 15056if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 15057 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 15058else
bec39cab
AC
15059 cat >conftest.$ac_ext <<_ACEOF
15060/* confdefs.h. */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h. */
a3828db0
MK
15065#ifdef __GNUC__
15066# define alloca __builtin_alloca
15067#else
15068# ifdef _MSC_VER
15069# include <malloc.h>
15070# define alloca _alloca
15071# else
15072# if HAVE_ALLOCA_H
15073# include <alloca.h>
15074# else
15075# ifdef _AIX
15076 #pragma alloca
15077# else
15078# ifndef alloca /* predefined by HP cc +Olibcalls */
15079char *alloca ();
15080# endif
15081# endif
15082# endif
97bf5e38 15083# endif
a3828db0 15084#endif
97bf5e38 15085
bec39cab
AC
15086int
15087main ()
15088{
a3828db0 15089char *p = (char *) alloca (1);
bec39cab
AC
15090 ;
15091 return 0;
15092}
15093_ACEOF
a3828db0
MK
15094rm -f conftest.$ac_objext conftest$ac_exeext
15095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
b4e70030
JB
15103 { ac_try='test -z "$ac_c_werror_flag"
15104 || test ! -s conftest.err'
bec39cab
AC
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
a3828db0 15110 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
a3828db0 15116 ac_cv_func_alloca_works=yes
0200359f 15117else
bec39cab
AC
15118 echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
0200359f 15120
b4e70030 15121ac_cv_func_alloca_works=no
0200359f 15122fi
a3828db0
MK
15123rm -f conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
72473524 15125fi
b4e70030
JB
15126echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15127echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 15128
a3828db0
MK
15129if test $ac_cv_func_alloca_works = yes; then
15130
15131cat >>confdefs.h <<\_ACEOF
15132#define HAVE_ALLOCA 1
bec39cab
AC
15133_ACEOF
15134
a3828db0
MK
15135else
15136 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15137# that cause trouble. Some versions do not even contain alloca or
15138# contain a buggy version. If you still want to use their alloca,
15139# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 15140
b4e70030 15141ALLOCA=alloca.$ac_objext
bec39cab 15142
a3828db0
MK
15143cat >>confdefs.h <<\_ACEOF
15144#define C_ALLOCA 1
15145_ACEOF
bec39cab 15146
a3828db0 15147
b4e70030
JB
15148echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15149echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 15150if test "${ac_cv_os_cray+set}" = set; then
bec39cab 15151 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15152else
a3828db0 15153 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15154/* confdefs.h. */
15155_ACEOF
15156cat confdefs.h >>conftest.$ac_ext
15157cat >>conftest.$ac_ext <<_ACEOF
15158/* end confdefs.h. */
b4e70030 15159#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
15160webecray
15161#else
15162wenotbecray
15163#endif
15164
15165_ACEOF
15166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15167 $EGREP "webecray" >/dev/null 2>&1; then
15168 ac_cv_os_cray=yes
15169else
15170 ac_cv_os_cray=no
15171fi
15172rm -f conftest*
15173
15174fi
b4e70030
JB
15175echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15176echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
15177if test $ac_cv_os_cray = yes; then
15178 for ac_func in _getb67 GETB67 getb67; do
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15180echo "$as_me:$LINENO: checking for $ac_func" >&5
15181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15182if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184else
15185 cat >conftest.$ac_ext <<_ACEOF
15186/* confdefs.h. */
15187_ACEOF
15188cat confdefs.h >>conftest.$ac_ext
15189cat >>conftest.$ac_ext <<_ACEOF
15190/* end confdefs.h. */
15191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15193#define $ac_func innocuous_$ac_func
15194
15195/* System header to define __stub macros and hopefully few prototypes,
15196 which can conflict with char $ac_func (); below.
15197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198 <limits.h> exists even on freestanding compilers. */
15199
15200#ifdef __STDC__
15201# include <limits.h>
15202#else
15203# include <assert.h>
15204#endif
15205
15206#undef $ac_func
15207
b4e70030 15208/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
15209#ifdef __cplusplus
15210extern "C"
b4e70030 15211{
a3828db0 15212#endif
b4e70030
JB
15213/* We use char because int might match the return type of a gcc2
15214 builtin and then its argument prototype would still apply. */
a3828db0
MK
15215char $ac_func ();
15216/* The GNU C library defines this for functions which it implements
15217 to always fail with ENOSYS. Some functions are actually named
15218 something starting with __ and the normal name is an alias. */
b4e70030 15219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 15220choke me
b4e70030
JB
15221#else
15222char (*f) () = $ac_func;
15223#endif
15224#ifdef __cplusplus
15225}
a3828db0
MK
15226#endif
15227
15228int
15229main ()
15230{
b4e70030 15231return f != $ac_func;
a3828db0
MK
15232 ;
15233 return 0;
15234}
15235_ACEOF
15236rm -f conftest.$ac_objext conftest$ac_exeext
15237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238 (eval $ac_link) 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
b4e70030
JB
15245 { ac_try='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
a3828db0
MK
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest$ac_exeext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 eval "$as_ac_var=yes"
15259else
15260 echo "$as_me: failed program was:" >&5
15261sed 's/^/| /' conftest.$ac_ext >&5
15262
b4e70030 15263eval "$as_ac_var=no"
a3828db0
MK
15264fi
15265rm -f conftest.err conftest.$ac_objext \
15266 conftest$ac_exeext conftest.$ac_ext
15267fi
b4e70030
JB
15268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
15270if test `eval echo '${'$as_ac_var'}'` = yes; then
15271
15272cat >>confdefs.h <<_ACEOF
15273#define CRAY_STACKSEG_END $ac_func
15274_ACEOF
15275
15276 break
15277fi
15278
15279 done
15280fi
15281
b4e70030
JB
15282echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15283echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
15284if test "${ac_cv_c_stack_direction+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286else
15287 if test "$cross_compiling" = yes; then
15288 ac_cv_c_stack_direction=0
15289else
15290 cat >conftest.$ac_ext <<_ACEOF
15291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
15296int
15297find_stack_direction ()
15298{
15299 static char *addr = 0;
15300 auto char dummy;
15301 if (addr == 0)
15302 {
15303 addr = &dummy;
15304 return find_stack_direction ();
15305 }
15306 else
15307 return (&dummy > addr) ? 1 : -1;
15308}
15309
15310int
15311main ()
15312{
b4e70030 15313 exit (find_stack_direction () < 0);
a3828db0
MK
15314}
15315_ACEOF
15316rm -f conftest$ac_exeext
15317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15318 (eval $ac_link) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_cv_c_stack_direction=1
15328else
15329 echo "$as_me: program exited with status $ac_status" >&5
15330echo "$as_me: failed program was:" >&5
15331sed 's/^/| /' conftest.$ac_ext >&5
15332
15333( exit $ac_status )
15334ac_cv_c_stack_direction=-1
15335fi
b4e70030 15336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
15337fi
15338fi
b4e70030
JB
15339echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15340echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
15341
15342cat >>confdefs.h <<_ACEOF
15343#define STACK_DIRECTION $ac_cv_c_stack_direction
15344_ACEOF
15345
15346
15347fi
15348
15349
15350
15351for ac_header in stdlib.h unistd.h
15352do
15353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15354if eval "test \"\${$as_ac_Header+set}\" = set"; then
15355 echo "$as_me:$LINENO: checking for $ac_header" >&5
15356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15357if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359fi
b4e70030
JB
15360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
15362else
15363 # Is the header compilable?
b4e70030
JB
15364echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
15366cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h. */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h. */
15372$ac_includes_default
15373#include <$ac_header>
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>conftest.er1
15378 ac_status=$?
bec39cab
AC
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
b4e70030
JB
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
bec39cab
AC
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_header_compiler=yes
15398else
15399 echo "$as_me: failed program was:" >&5
15400sed 's/^/| /' conftest.$ac_ext >&5
15401
b4e70030 15402ac_header_compiler=no
bec39cab
AC
15403fi
15404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15406echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15407
15408# Is the header present?
b4e70030
JB
15409echo "$as_me:$LINENO: checking $ac_header presence" >&5
15410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15411cat >conftest.$ac_ext <<_ACEOF
15412/* confdefs.h. */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h. */
15417#include <$ac_header>
15418_ACEOF
15419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } >/dev/null; then
15427 if test -s conftest.err; then
15428 ac_cpp_err=$ac_c_preproc_warn_flag
15429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15430 else
15431 ac_cpp_err=
15432 fi
15433else
15434 ac_cpp_err=yes
15435fi
15436if test -z "$ac_cpp_err"; then
15437 ac_header_preproc=yes
97bf5e38 15438else
bec39cab
AC
15439 echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 ac_header_preproc=no
72473524 15443fi
bec39cab 15444rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 15447
bec39cab
AC
15448# So? What about this header?
15449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15450 yes:no: )
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15455 ac_header_preproc=yes
15456 ;;
15457 no:yes:* )
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15470 (
15471 cat <<\_ASBOX
15472## ------------------------------------------ ##
15473## Report this to the AC_PACKAGE_NAME lists. ##
15474## ------------------------------------------ ##
15475_ASBOX
15476 ) |
15477 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15478 ;;
15479esac
b4e70030
JB
15480echo "$as_me:$LINENO: checking for $ac_header" >&5
15481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15482if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15483 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15484else
bec39cab
AC
15485 eval "$as_ac_Header=\$ac_header_preproc"
15486fi
b4e70030
JB
15487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15489
15490fi
15491if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494_ACEOF
15495
15496fi
15497
15498done
15499
15500
a3828db0 15501for ac_func in getpagesize
bec39cab
AC
15502do
15503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15504echo "$as_me:$LINENO: checking for $ac_func" >&5
15505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15506if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508else
15509 cat >conftest.$ac_ext <<_ACEOF
15510/* confdefs.h. */
15511_ACEOF
15512cat confdefs.h >>conftest.$ac_ext
15513cat >>conftest.$ac_ext <<_ACEOF
15514/* end confdefs.h. */
15515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15517#define $ac_func innocuous_$ac_func
15518
97bf5e38 15519/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15520 which can conflict with char $ac_func (); below.
15521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15522 <limits.h> exists even on freestanding compilers. */
2b2d558c 15523
bec39cab
AC
15524#ifdef __STDC__
15525# include <limits.h>
15526#else
15527# include <assert.h>
15528#endif
97bf5e38 15529
bec39cab
AC
15530#undef $ac_func
15531
b4e70030 15532/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
15533#ifdef __cplusplus
15534extern "C"
b4e70030 15535{
bec39cab 15536#endif
b4e70030
JB
15537/* We use char because int might match the return type of a gcc2
15538 builtin and then its argument prototype would still apply. */
bec39cab 15539char $ac_func ();
97bf5e38
MK
15540/* The GNU C library defines this for functions which it implements
15541 to always fail with ENOSYS. Some functions are actually named
15542 something starting with __ and the normal name is an alias. */
b4e70030 15543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 15544choke me
b4e70030
JB
15545#else
15546char (*f) () = $ac_func;
15547#endif
15548#ifdef __cplusplus
15549}
97bf5e38
MK
15550#endif
15551
bec39cab
AC
15552int
15553main ()
15554{
b4e70030 15555return f != $ac_func;
bec39cab
AC
15556 ;
15557 return 0;
15558}
15559_ACEOF
15560rm -f conftest.$ac_objext conftest$ac_exeext
15561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
b4e70030
JB
15569 { ac_try='test -z "$ac_c_werror_flag"
15570 || test ! -s conftest.err'
bec39cab
AC
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; } &&
15576 { ac_try='test -s conftest$ac_exeext'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15579 ac_status=$?
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 eval "$as_ac_var=yes"
15583else
15584 echo "$as_me: failed program was:" >&5
15585sed 's/^/| /' conftest.$ac_ext >&5
15586
b4e70030 15587eval "$as_ac_var=no"
bec39cab
AC
15588fi
15589rm -f conftest.err conftest.$ac_objext \
15590 conftest$ac_exeext conftest.$ac_ext
15591fi
b4e70030
JB
15592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
15594if test `eval echo '${'$as_ac_var'}'` = yes; then
15595 cat >>confdefs.h <<_ACEOF
15596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15597_ACEOF
15598
2b2d558c 15599fi
bec39cab 15600done
2b2d558c 15601
b4e70030
JB
15602echo "$as_me:$LINENO: checking for working mmap" >&5
15603echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 15604if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 15605 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15606else
bec39cab 15607 if test "$cross_compiling" = yes; then
a3828db0 15608 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
15609else
15610 cat >conftest.$ac_ext <<_ACEOF
a3828db0 15611/* confdefs.h. */
bec39cab
AC
15612_ACEOF
15613cat confdefs.h >>conftest.$ac_ext
15614cat >>conftest.$ac_ext <<_ACEOF
15615/* end confdefs.h. */
a3828db0
MK
15616$ac_includes_default
15617/* malloc might have been renamed as rpl_malloc. */
15618#undef malloc
bec39cab 15619
a3828db0
MK
15620/* Thanks to Mike Haertel and Jim Avera for this test.
15621 Here is a matrix of mmap possibilities:
15622 mmap private not fixed
15623 mmap private fixed at somewhere currently unmapped
15624 mmap private fixed at somewhere already mapped
15625 mmap shared not fixed
15626 mmap shared fixed at somewhere currently unmapped
15627 mmap shared fixed at somewhere already mapped
15628 For private mappings, we should verify that changes cannot be read()
15629 back from the file, nor mmap's back from the file at a different
15630 address. (There have been systems where private was not correctly
15631 implemented like the infamous i386 svr4.0, and systems where the
15632 VM page cache was not coherent with the file system buffer cache
15633 like early versions of FreeBSD and possibly contemporary NetBSD.)
15634 For shared mappings, we should conversely verify that changes get
15635 propagated back to all the places they're supposed to be.
7dfa765c 15636
a3828db0
MK
15637 Grep wants private fixed already mapped.
15638 The main things grep needs to know about mmap are:
15639 * does it exist and is it safe to write into the mmap'd area
15640 * how to use it (BSD variants) */
7dfa765c 15641
a3828db0
MK
15642#include <fcntl.h>
15643#include <sys/mman.h>
7dfa765c 15644
a3828db0
MK
15645#if !STDC_HEADERS && !HAVE_STDLIB_H
15646char *malloc ();
15647#endif
7dfa765c 15648
a3828db0
MK
15649/* This mess was copied from the GNU getpagesize.h. */
15650#if !HAVE_GETPAGESIZE
15651/* Assume that all systems that can run configure have sys/param.h. */
15652# if !HAVE_SYS_PARAM_H
15653# define HAVE_SYS_PARAM_H 1
15654# endif
64bb1671 15655
a3828db0
MK
15656# ifdef _SC_PAGESIZE
15657# define getpagesize() sysconf(_SC_PAGESIZE)
15658# else /* no _SC_PAGESIZE */
15659# if HAVE_SYS_PARAM_H
15660# include <sys/param.h>
15661# ifdef EXEC_PAGESIZE
15662# define getpagesize() EXEC_PAGESIZE
15663# else /* no EXEC_PAGESIZE */
15664# ifdef NBPG
15665# define getpagesize() NBPG * CLSIZE
15666# ifndef CLSIZE
15667# define CLSIZE 1
15668# endif /* no CLSIZE */
15669# else /* no NBPG */
15670# ifdef NBPC
15671# define getpagesize() NBPC
15672# else /* no NBPC */
15673# ifdef PAGESIZE
15674# define getpagesize() PAGESIZE
15675# endif /* PAGESIZE */
15676# endif /* no NBPC */
15677# endif /* no NBPG */
15678# endif /* no EXEC_PAGESIZE */
15679# else /* no HAVE_SYS_PARAM_H */
15680# define getpagesize() 8192 /* punt totally */
15681# endif /* no HAVE_SYS_PARAM_H */
15682# endif /* no _SC_PAGESIZE */
64bb1671 15683
a3828db0 15684#endif /* no HAVE_GETPAGESIZE */
64bb1671 15685
a3828db0
MK
15686int
15687main ()
15688{
15689 char *data, *data2, *data3;
15690 int i, pagesize;
15691 int fd;
97bf5e38 15692
a3828db0
MK
15693 pagesize = getpagesize ();
15694
15695 /* First, make a file with some known garbage in it. */
15696 data = (char *) malloc (pagesize);
15697 if (!data)
b4e70030 15698 exit (1);
a3828db0
MK
15699 for (i = 0; i < pagesize; ++i)
15700 *(data + i) = rand ();
15701 umask (0);
15702 fd = creat ("conftest.mmap", 0600);
15703 if (fd < 0)
b4e70030 15704 exit (1);
a3828db0 15705 if (write (fd, data, pagesize) != pagesize)
b4e70030 15706 exit (1);
a3828db0
MK
15707 close (fd);
15708
15709 /* Next, try to mmap the file at a fixed address which already has
15710 something else allocated at it. If we can, also make sure that
15711 we see the same garbage. */
15712 fd = open ("conftest.mmap", O_RDWR);
15713 if (fd < 0)
b4e70030 15714 exit (1);
a3828db0
MK
15715 data2 = (char *) malloc (2 * pagesize);
15716 if (!data2)
b4e70030
JB
15717 exit (1);
15718 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
15719 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15720 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 15721 exit (1);
a3828db0
MK
15722 for (i = 0; i < pagesize; ++i)
15723 if (*(data + i) != *(data2 + i))
b4e70030 15724 exit (1);
a3828db0
MK
15725
15726 /* Finally, make sure that changes to the mapped area do not
15727 percolate back to the file as seen by read(). (This is a bug on
15728 some variants of i386 svr4.0.) */
15729 for (i = 0; i < pagesize; ++i)
15730 *(data2 + i) = *(data2 + i) + 1;
15731 data3 = (char *) malloc (pagesize);
15732 if (!data3)
b4e70030 15733 exit (1);
a3828db0 15734 if (read (fd, data3, pagesize) != pagesize)
b4e70030 15735 exit (1);
a3828db0
MK
15736 for (i = 0; i < pagesize; ++i)
15737 if (*(data + i) != *(data3 + i))
b4e70030 15738 exit (1);
a3828db0 15739 close (fd);
b4e70030 15740 exit (0);
97bf5e38 15741}
bec39cab
AC
15742_ACEOF
15743rm -f conftest$ac_exeext
15744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15745 (eval $ac_link) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
a3828db0 15754 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 15755else
bec39cab
AC
15756 echo "$as_me: program exited with status $ac_status" >&5
15757echo "$as_me: failed program was:" >&5
15758sed 's/^/| /' conftest.$ac_ext >&5
15759
15760( exit $ac_status )
a3828db0 15761ac_cv_func_mmap_fixed_mapped=no
0afdd437 15762fi
b4e70030 15763rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 15764fi
a3828db0 15765fi
b4e70030
JB
15766echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15767echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 15768if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
15769
15770cat >>confdefs.h <<\_ACEOF
a3828db0 15771#define HAVE_MMAP 1
bec39cab 15772_ACEOF
0afdd437
MK
15773
15774fi
a3828db0 15775rm -f conftest.mmap
0afdd437 15776
b4e70030
JB
15777echo "$as_me:$LINENO: checking for pid_t" >&5
15778echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 15779if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15781else
15782 cat >conftest.$ac_ext <<_ACEOF
15783/* confdefs.h. */
15784_ACEOF
15785cat confdefs.h >>conftest.$ac_ext
15786cat >>conftest.$ac_ext <<_ACEOF
15787/* end confdefs.h. */
a3828db0 15788$ac_includes_default
bec39cab
AC
15789int
15790main ()
15791{
b4e70030 15792if ((pid_t *) 0)
a3828db0 15793 return 0;
b4e70030 15794if (sizeof (pid_t))
a3828db0 15795 return 0;
bec39cab
AC
15796 ;
15797 return 0;
15798}
15799_ACEOF
a3828db0
MK
15800rm -f conftest.$ac_objext
15801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
b4e70030
JB
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
bec39cab
AC
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
a3828db0 15816 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
a3828db0 15822 ac_cv_type_pid_t=yes
bec39cab
AC
15823else
15824 echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
b4e70030 15827ac_cv_type_pid_t=no
bec39cab 15828fi
a3828db0 15829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 15830fi
b4e70030
JB
15831echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15832echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
15833if test $ac_cv_type_pid_t = yes; then
15834 :
15835else
15836
15837cat >>confdefs.h <<_ACEOF
15838#define pid_t int
bec39cab 15839_ACEOF
7e89e357 15840
7e89e357
JT
15841fi
15842
bec39cab 15843
b4e70030
JB
15844
15845for ac_header in unistd.h vfork.h
7be570e7 15846do
a3828db0 15847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15848if eval "test \"\${$as_ac_Header+set}\" = set"; then
15849 echo "$as_me:$LINENO: checking for $ac_header" >&5
15850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15851if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15852 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 15853fi
b4e70030
JB
15854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15856else
a3828db0 15857 # Is the header compilable?
b4e70030
JB
15858echo "$as_me:$LINENO: checking $ac_header usability" >&5
15859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 15860cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15861/* confdefs.h. */
15862_ACEOF
15863cat confdefs.h >>conftest.$ac_ext
15864cat >>conftest.$ac_ext <<_ACEOF
15865/* end confdefs.h. */
a3828db0
MK
15866$ac_includes_default
15867#include <$ac_header>
bec39cab 15868_ACEOF
a3828db0
MK
15869rm -f conftest.$ac_objext
15870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
b4e70030
JB
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
bec39cab
AC
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
a3828db0 15885 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
a3828db0 15891 ac_header_compiler=yes
bec39cab
AC
15892else
15893 echo "$as_me: failed program was:" >&5
15894sed 's/^/| /' conftest.$ac_ext >&5
15895
b4e70030 15896ac_header_compiler=no
bec39cab 15897fi
a3828db0 15898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15900echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
15901
15902# Is the header present?
b4e70030
JB
15903echo "$as_me:$LINENO: checking $ac_header presence" >&5
15904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
15905cat >conftest.$ac_ext <<_ACEOF
15906/* confdefs.h. */
15907_ACEOF
15908cat confdefs.h >>conftest.$ac_ext
15909cat >>conftest.$ac_ext <<_ACEOF
15910/* end confdefs.h. */
15911#include <$ac_header>
15912_ACEOF
15913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15915 ac_status=$?
15916 grep -v '^ *+' conftest.er1 >conftest.err
15917 rm -f conftest.er1
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } >/dev/null; then
15921 if test -s conftest.err; then
15922 ac_cpp_err=$ac_c_preproc_warn_flag
15923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15924 else
15925 ac_cpp_err=
15926 fi
15927else
15928 ac_cpp_err=yes
15929fi
15930if test -z "$ac_cpp_err"; then
15931 ac_header_preproc=yes
15932else
15933 echo "$as_me: failed program was:" >&5
15934sed 's/^/| /' conftest.$ac_ext >&5
15935
15936 ac_header_preproc=no
15937fi
15938rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15940echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
15941
15942# So? What about this header?
15943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15944 yes:no: )
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15949 ac_header_preproc=yes
15950 ;;
15951 no:yes:* )
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15964 (
15965 cat <<\_ASBOX
15966## ------------------------------------------ ##
15967## Report this to the AC_PACKAGE_NAME lists. ##
15968## ------------------------------------------ ##
15969_ASBOX
15970 ) |
15971 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
15972 ;;
15973esac
b4e70030
JB
15974echo "$as_me:$LINENO: checking for $ac_header" >&5
15975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15976if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15978else
15979 eval "$as_ac_Header=\$ac_header_preproc"
15980fi
b4e70030
JB
15981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 15983
bec39cab 15984fi
a3828db0 15985if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 15986 cat >>confdefs.h <<_ACEOF
a3828db0 15987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 15988_ACEOF
14abd0fb 15989
14abd0fb 15990fi
a3828db0 15991
14abd0fb
MK
15992done
15993
bec39cab 15994
a3828db0
MK
15995
15996for ac_func in fork vfork
14abd0fb 15997do
bec39cab 15998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15999echo "$as_me:$LINENO: checking for $ac_func" >&5
16000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16001if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003else
16004 cat >conftest.$ac_ext <<_ACEOF
16005/* confdefs.h. */
16006_ACEOF
16007cat confdefs.h >>conftest.$ac_ext
16008cat >>conftest.$ac_ext <<_ACEOF
16009/* end confdefs.h. */
16010/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16012#define $ac_func innocuous_$ac_func
16013
14abd0fb 16014/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16015 which can conflict with char $ac_func (); below.
16016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16017 <limits.h> exists even on freestanding compilers. */
16018
16019#ifdef __STDC__
16020# include <limits.h>
16021#else
16022# include <assert.h>
16023#endif
14abd0fb 16024
bec39cab 16025#undef $ac_func
14abd0fb 16026
b4e70030 16027/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16028#ifdef __cplusplus
16029extern "C"
b4e70030 16030{
bec39cab 16031#endif
b4e70030
JB
16032/* We use char because int might match the return type of a gcc2
16033 builtin and then its argument prototype would still apply. */
bec39cab 16034char $ac_func ();
14abd0fb
MK
16035/* The GNU C library defines this for functions which it implements
16036 to always fail with ENOSYS. Some functions are actually named
16037 something starting with __ and the normal name is an alias. */
b4e70030 16038#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 16039choke me
b4e70030
JB
16040#else
16041char (*f) () = $ac_func;
16042#endif
16043#ifdef __cplusplus
16044}
14abd0fb
MK
16045#endif
16046
bec39cab
AC
16047int
16048main ()
16049{
b4e70030 16050return f != $ac_func;
bec39cab
AC
16051 ;
16052 return 0;
16053}
16054_ACEOF
16055rm -f conftest.$ac_objext conftest$ac_exeext
16056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16057 (eval $ac_link) 2>conftest.er1
16058 ac_status=$?
16059 grep -v '^ *+' conftest.er1 >conftest.err
16060 rm -f conftest.er1
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
b4e70030
JB
16064 { ac_try='test -z "$ac_c_werror_flag"
16065 || test ! -s conftest.err'
bec39cab
AC
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; } &&
16071 { ac_try='test -s conftest$ac_exeext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 eval "$as_ac_var=yes"
16078else
16079 echo "$as_me: failed program was:" >&5
16080sed 's/^/| /' conftest.$ac_ext >&5
16081
b4e70030 16082eval "$as_ac_var=no"
bec39cab
AC
16083fi
16084rm -f conftest.err conftest.$ac_objext \
16085 conftest$ac_exeext conftest.$ac_ext
16086fi
b4e70030
JB
16087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16088echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16089if test `eval echo '${'$as_ac_var'}'` = yes; then
16090 cat >>confdefs.h <<_ACEOF
16091#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16092_ACEOF
7be570e7 16093
7be570e7
JM
16094fi
16095done
16096
a3828db0 16097if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
16098 echo "$as_me:$LINENO: checking for working fork" >&5
16099echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
16100if test "${ac_cv_func_fork_works+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16102else
16103 if test "$cross_compiling" = yes; then
16104 ac_cv_func_fork_works=cross
16105else
16106 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
16107/* By Ruediger Kuhlmann. */
16108 #include <sys/types.h>
16109 #if HAVE_UNISTD_H
16110 # include <unistd.h>
16111 #endif
16112 /* Some systems only have a dummy stub for fork() */
16113 int main ()
16114 {
16115 if (fork() < 0)
16116 exit (1);
16117 exit (0);
16118 }
a3828db0
MK
16119_ACEOF
16120rm -f conftest$ac_exeext
16121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16122 (eval $ac_link) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131 ac_cv_func_fork_works=yes
16132else
16133 echo "$as_me: program exited with status $ac_status" >&5
16134echo "$as_me: failed program was:" >&5
16135sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16136
a3828db0
MK
16137( exit $ac_status )
16138ac_cv_func_fork_works=no
16139fi
b4e70030 16140rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16141fi
16142fi
b4e70030
JB
16143echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16144echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
16145
16146else
16147 ac_cv_func_fork_works=$ac_cv_func_fork
16148fi
16149if test "x$ac_cv_func_fork_works" = xcross; then
16150 case $host in
16151 *-*-amigaos* | *-*-msdosdjgpp*)
16152 # Override, as these systems have only a dummy fork() stub
16153 ac_cv_func_fork_works=no
16154 ;;
16155 *)
16156 ac_cv_func_fork_works=yes
16157 ;;
16158 esac
16159 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16160echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16161fi
16162ac_cv_func_vfork_works=$ac_cv_func_vfork
16163if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
16164 echo "$as_me:$LINENO: checking for working vfork" >&5
16165echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 16166if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 16167 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16168else
16169 if test "$cross_compiling" = yes; then
16170 ac_cv_func_vfork_works=cross
bec39cab
AC
16171else
16172 cat >conftest.$ac_ext <<_ACEOF
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
16177/* end confdefs.h. */
a3828db0 16178/* Thanks to Paul Eggert for this test. */
b4e70030
JB
16179#include <stdio.h>
16180#include <stdlib.h>
16181#include <sys/types.h>
16182#include <sys/stat.h>
a3828db0 16183#include <sys/wait.h>
b4e70030
JB
16184#if HAVE_UNISTD_H
16185# include <unistd.h>
16186#endif
a3828db0
MK
16187#if HAVE_VFORK_H
16188# include <vfork.h>
bec39cab 16189#endif
a3828db0
MK
16190/* On some sparc systems, changes by the child to local and incoming
16191 argument registers are propagated back to the parent. The compiler
16192 is told about this with #include <vfork.h>, but some compilers
16193 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16194 static variable whose address is put into a register that is
16195 clobbered by the vfork. */
16196static void
bec39cab 16197#ifdef __cplusplus
a3828db0
MK
16198sparc_address_test (int arg)
16199# else
16200sparc_address_test (arg) int arg;
c906108c 16201#endif
a3828db0
MK
16202{
16203 static pid_t child;
16204 if (!child) {
16205 child = vfork ();
16206 if (child < 0) {
16207 perror ("vfork");
16208 _exit(2);
16209 }
16210 if (!child) {
16211 arg = getpid();
16212 write(-1, "", 0);
16213 _exit (arg);
16214 }
16215 }
16216}
97bf5e38 16217
bec39cab
AC
16218int
16219main ()
16220{
a3828db0
MK
16221 pid_t parent = getpid ();
16222 pid_t child;
16223
16224 sparc_address_test (0);
16225
16226 child = vfork ();
16227
16228 if (child == 0) {
16229 /* Here is another test for sparc vfork register problems. This
16230 test uses lots of local variables, at least as many local
16231 variables as main has allocated so far including compiler
16232 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16233 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16234 reuse the register of parent for one of the local variables,
16235 since it will think that parent can't possibly be used any more
16236 in this routine. Assigning to the local variable will thus
16237 munge parent in the parent process. */
16238 pid_t
16239 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16240 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16241 /* Convince the compiler that p..p7 are live; otherwise, it might
16242 use the same hardware register for all 8 local variables. */
16243 if (p != p1 || p != p2 || p != p3 || p != p4
16244 || p != p5 || p != p6 || p != p7)
16245 _exit(1);
16246
16247 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16248 from child file descriptors. If the child closes a descriptor
16249 before it execs or exits, this munges the parent's descriptor
16250 as well. Test for this by closing stdout in the child. */
16251 _exit(close(fileno(stdout)) != 0);
16252 } else {
16253 int status;
16254 struct stat st;
16255
16256 while (wait(&status) != child)
16257 ;
b4e70030 16258 exit(
a3828db0
MK
16259 /* Was there some problem with vforking? */
16260 child < 0
16261
16262 /* Did the child fail? (This shouldn't happen.) */
16263 || status
16264
16265 /* Did the vfork/compiler bug occur? */
16266 || parent != getpid()
16267
16268 /* Did the file descriptor bug occur? */
16269 || fstat(fileno(stdout), &st) != 0
16270 );
16271 }
bec39cab
AC
16272}
16273_ACEOF
a3828db0 16274rm -f conftest$ac_exeext
bec39cab 16275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16276 (eval $ac_link) 2>&5
bec39cab
AC
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
a3828db0
MK
16285 ac_cv_func_vfork_works=yes
16286else
16287 echo "$as_me: program exited with status $ac_status" >&5
16288echo "$as_me: failed program was:" >&5
16289sed 's/^/| /' conftest.$ac_ext >&5
16290
16291( exit $ac_status )
16292ac_cv_func_vfork_works=no
16293fi
b4e70030 16294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16295fi
16296fi
b4e70030
JB
16297echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16298echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
16299
16300fi;
16301if test "x$ac_cv_func_fork_works" = xcross; then
16302 ac_cv_func_vfork_works=$ac_cv_func_vfork
16303 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16304echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16305fi
16306
16307if test "x$ac_cv_func_vfork_works" = xyes; then
16308
16309cat >>confdefs.h <<\_ACEOF
16310#define HAVE_WORKING_VFORK 1
16311_ACEOF
16312
bec39cab 16313else
bec39cab 16314
a3828db0
MK
16315cat >>confdefs.h <<\_ACEOF
16316#define vfork fork
16317_ACEOF
16318
bec39cab 16319fi
a3828db0
MK
16320if test "x$ac_cv_func_fork_works" = xyes; then
16321
16322cat >>confdefs.h <<\_ACEOF
16323#define HAVE_WORKING_FORK 1
bec39cab 16324_ACEOF
c906108c 16325
c906108c
SS
16326fi
16327
bec39cab
AC
16328
16329
a3828db0 16330for ac_func in canonicalize_file_name realpath
97bf5e38 16331do
bec39cab 16332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16333echo "$as_me:$LINENO: checking for $ac_func" >&5
16334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16335if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16337else
16338 cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
16344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16346#define $ac_func innocuous_$ac_func
16347
d3ea6809
MM
16348/* System header to define __stub macros and hopefully few prototypes,
16349 which can conflict with char $ac_func (); below.
16350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16351 <limits.h> exists even on freestanding compilers. */
16352
16353#ifdef __STDC__
16354# include <limits.h>
16355#else
16356# include <assert.h>
16357#endif
16358
16359#undef $ac_func
16360
b4e70030 16361/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
16362#ifdef __cplusplus
16363extern "C"
b4e70030 16364{
d3ea6809 16365#endif
b4e70030
JB
16366/* We use char because int might match the return type of a gcc2
16367 builtin and then its argument prototype would still apply. */
d3ea6809
MM
16368char $ac_func ();
16369/* The GNU C library defines this for functions which it implements
16370 to always fail with ENOSYS. Some functions are actually named
16371 something starting with __ and the normal name is an alias. */
b4e70030 16372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 16373choke me
b4e70030
JB
16374#else
16375char (*f) () = $ac_func;
16376#endif
16377#ifdef __cplusplus
16378}
d3ea6809
MM
16379#endif
16380
16381int
16382main ()
16383{
b4e70030 16384return f != $ac_func;
d3ea6809
MM
16385 ;
16386 return 0;
16387}
16388_ACEOF
16389rm -f conftest.$ac_objext conftest$ac_exeext
16390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16391 (eval $ac_link) 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
b4e70030
JB
16398 { ac_try='test -z "$ac_c_werror_flag"
16399 || test ! -s conftest.err'
d3ea6809
MM
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest$ac_exeext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 eval "$as_ac_var=yes"
16412else
16413 echo "$as_me: failed program was:" >&5
16414sed 's/^/| /' conftest.$ac_ext >&5
16415
b4e70030 16416eval "$as_ac_var=no"
d3ea6809
MM
16417fi
16418rm -f conftest.err conftest.$ac_objext \
16419 conftest$ac_exeext conftest.$ac_ext
16420fi
b4e70030
JB
16421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
16423if test `eval echo '${'$as_ac_var'}'` = yes; then
16424 cat >>confdefs.h <<_ACEOF
16425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16426_ACEOF
16427
16428fi
16429done
16430
16431
16432
16433for ac_func in getuid getgid
16434do
16435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16436echo "$as_me:$LINENO: checking for $ac_func" >&5
16437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16438if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440else
16441 cat >conftest.$ac_ext <<_ACEOF
16442/* confdefs.h. */
16443_ACEOF
16444cat confdefs.h >>conftest.$ac_ext
16445cat >>conftest.$ac_ext <<_ACEOF
16446/* end confdefs.h. */
16447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16449#define $ac_func innocuous_$ac_func
16450
97bf5e38 16451/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16452 which can conflict with char $ac_func (); below.
16453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16454 <limits.h> exists even on freestanding compilers. */
c906108c 16455
bec39cab
AC
16456#ifdef __STDC__
16457# include <limits.h>
16458#else
16459# include <assert.h>
16460#endif
97bf5e38 16461
bec39cab
AC
16462#undef $ac_func
16463
b4e70030 16464/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16465#ifdef __cplusplus
16466extern "C"
b4e70030 16467{
bec39cab 16468#endif
b4e70030
JB
16469/* We use char because int might match the return type of a gcc2
16470 builtin and then its argument prototype would still apply. */
bec39cab 16471char $ac_func ();
97bf5e38
MK
16472/* The GNU C library defines this for functions which it implements
16473 to always fail with ENOSYS. Some functions are actually named
16474 something starting with __ and the normal name is an alias. */
b4e70030 16475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16476choke me
b4e70030
JB
16477#else
16478char (*f) () = $ac_func;
16479#endif
16480#ifdef __cplusplus
16481}
c906108c 16482#endif
97bf5e38 16483
bec39cab
AC
16484int
16485main ()
16486{
b4e70030 16487return f != $ac_func;
bec39cab
AC
16488 ;
16489 return 0;
16490}
16491_ACEOF
16492rm -f conftest.$ac_objext conftest$ac_exeext
16493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16494 (eval $ac_link) 2>conftest.er1
16495 ac_status=$?
16496 grep -v '^ *+' conftest.er1 >conftest.err
16497 rm -f conftest.er1
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } &&
b4e70030
JB
16501 { ac_try='test -z "$ac_c_werror_flag"
16502 || test ! -s conftest.err'
bec39cab
AC
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; } &&
16508 { ac_try='test -s conftest$ac_exeext'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 eval "$as_ac_var=yes"
16515else
16516 echo "$as_me: failed program was:" >&5
16517sed 's/^/| /' conftest.$ac_ext >&5
16518
b4e70030 16519eval "$as_ac_var=no"
bec39cab
AC
16520fi
16521rm -f conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16523fi
b4e70030
JB
16524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16526if test `eval echo '${'$as_ac_var'}'` = yes; then
16527 cat >>confdefs.h <<_ACEOF
16528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16529_ACEOF
c906108c 16530
c906108c 16531fi
97bf5e38 16532done
c906108c 16533
bec39cab 16534
a3828db0 16535for ac_func in poll
97bf5e38 16536do
bec39cab 16537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16538echo "$as_me:$LINENO: checking for $ac_func" >&5
16539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16540if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16542else
16543 cat >conftest.$ac_ext <<_ACEOF
16544/* confdefs.h. */
16545_ACEOF
16546cat confdefs.h >>conftest.$ac_ext
16547cat >>conftest.$ac_ext <<_ACEOF
16548/* end confdefs.h. */
16549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16551#define $ac_func innocuous_$ac_func
16552
97bf5e38 16553/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16554 which can conflict with char $ac_func (); below.
16555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16556 <limits.h> exists even on freestanding compilers. */
16557
16558#ifdef __STDC__
16559# include <limits.h>
16560#else
16561# include <assert.h>
16562#endif
c906108c 16563
bec39cab 16564#undef $ac_func
97bf5e38 16565
b4e70030 16566/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16567#ifdef __cplusplus
16568extern "C"
b4e70030 16569{
bec39cab 16570#endif
b4e70030
JB
16571/* We use char because int might match the return type of a gcc2
16572 builtin and then its argument prototype would still apply. */
bec39cab 16573char $ac_func ();
97bf5e38
MK
16574/* The GNU C library defines this for functions which it implements
16575 to always fail with ENOSYS. Some functions are actually named
16576 something starting with __ and the normal name is an alias. */
b4e70030 16577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16578choke me
b4e70030
JB
16579#else
16580char (*f) () = $ac_func;
16581#endif
16582#ifdef __cplusplus
16583}
c906108c 16584#endif
97bf5e38 16585
bec39cab
AC
16586int
16587main ()
16588{
b4e70030 16589return f != $ac_func;
bec39cab
AC
16590 ;
16591 return 0;
16592}
16593_ACEOF
16594rm -f conftest.$ac_objext conftest$ac_exeext
16595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16596 (eval $ac_link) 2>conftest.er1
16597 ac_status=$?
16598 grep -v '^ *+' conftest.er1 >conftest.err
16599 rm -f conftest.er1
16600 cat conftest.err >&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
b4e70030
JB
16603 { ac_try='test -z "$ac_c_werror_flag"
16604 || test ! -s conftest.err'
bec39cab
AC
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest$ac_exeext'
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 eval "$as_ac_var=yes"
16617else
16618 echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
16620
b4e70030 16621eval "$as_ac_var=no"
bec39cab
AC
16622fi
16623rm -f conftest.err conftest.$ac_objext \
16624 conftest$ac_exeext conftest.$ac_ext
16625fi
b4e70030
JB
16626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16628if test `eval echo '${'$as_ac_var'}'` = yes; then
16629 cat >>confdefs.h <<_ACEOF
16630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16631_ACEOF
c906108c 16632
c906108c 16633fi
97bf5e38 16634done
c906108c 16635
bec39cab 16636
a3828db0 16637for ac_func in pread64
97bf5e38 16638do
bec39cab 16639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16640echo "$as_me:$LINENO: checking for $ac_func" >&5
16641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16642if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645 cat >conftest.$ac_ext <<_ACEOF
16646/* confdefs.h. */
16647_ACEOF
16648cat confdefs.h >>conftest.$ac_ext
16649cat >>conftest.$ac_ext <<_ACEOF
16650/* end confdefs.h. */
16651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16653#define $ac_func innocuous_$ac_func
16654
97bf5e38 16655/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16656 which can conflict with char $ac_func (); below.
16657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16658 <limits.h> exists even on freestanding compilers. */
16659
16660#ifdef __STDC__
16661# include <limits.h>
16662#else
16663# include <assert.h>
16664#endif
c906108c 16665
bec39cab 16666#undef $ac_func
97bf5e38 16667
b4e70030 16668/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16669#ifdef __cplusplus
16670extern "C"
b4e70030 16671{
bec39cab 16672#endif
b4e70030
JB
16673/* We use char because int might match the return type of a gcc2
16674 builtin and then its argument prototype would still apply. */
bec39cab 16675char $ac_func ();
97bf5e38
MK
16676/* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
b4e70030 16679#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16680choke me
b4e70030
JB
16681#else
16682char (*f) () = $ac_func;
16683#endif
16684#ifdef __cplusplus
16685}
c906108c 16686#endif
97bf5e38 16687
bec39cab
AC
16688int
16689main ()
16690{
b4e70030 16691return f != $ac_func;
bec39cab
AC
16692 ;
16693 return 0;
16694}
16695_ACEOF
16696rm -f conftest.$ac_objext conftest$ac_exeext
16697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16698 (eval $ac_link) 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
b4e70030
JB
16705 { ac_try='test -z "$ac_c_werror_flag"
16706 || test ! -s conftest.err'
bec39cab
AC
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try='test -s conftest$ac_exeext'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 eval "$as_ac_var=yes"
16719else
16720 echo "$as_me: failed program was:" >&5
16721sed 's/^/| /' conftest.$ac_ext >&5
16722
b4e70030 16723eval "$as_ac_var=no"
bec39cab
AC
16724fi
16725rm -f conftest.err conftest.$ac_objext \
16726 conftest$ac_exeext conftest.$ac_ext
16727fi
b4e70030
JB
16728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16729echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16730if test `eval echo '${'$as_ac_var'}'` = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16733_ACEOF
c906108c 16734
c906108c 16735fi
97bf5e38 16736done
c906108c 16737
bec39cab 16738
a3828db0 16739for ac_func in sbrk
b757528f 16740do
bec39cab 16741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16742echo "$as_me:$LINENO: checking for $ac_func" >&5
16743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16744if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16746else
16747 cat >conftest.$ac_ext <<_ACEOF
16748/* confdefs.h. */
16749_ACEOF
16750cat confdefs.h >>conftest.$ac_ext
16751cat >>conftest.$ac_ext <<_ACEOF
16752/* end confdefs.h. */
16753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16755#define $ac_func innocuous_$ac_func
16756
b757528f 16757/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16758 which can conflict with char $ac_func (); below.
16759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16760 <limits.h> exists even on freestanding compilers. */
16761
16762#ifdef __STDC__
16763# include <limits.h>
16764#else
16765# include <assert.h>
16766#endif
b757528f 16767
bec39cab 16768#undef $ac_func
b757528f 16769
b4e70030 16770/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16771#ifdef __cplusplus
16772extern "C"
b4e70030 16773{
bec39cab 16774#endif
b4e70030
JB
16775/* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
bec39cab 16777char $ac_func ();
b757528f
JJ
16778/* The GNU C library defines this for functions which it implements
16779 to always fail with ENOSYS. Some functions are actually named
16780 something starting with __ and the normal name is an alias. */
b4e70030 16781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 16782choke me
b4e70030
JB
16783#else
16784char (*f) () = $ac_func;
16785#endif
16786#ifdef __cplusplus
16787}
b757528f
JJ
16788#endif
16789
bec39cab
AC
16790int
16791main ()
16792{
b4e70030 16793return f != $ac_func;
bec39cab
AC
16794 ;
16795 return 0;
16796}
16797_ACEOF
16798rm -f conftest.$ac_objext conftest$ac_exeext
16799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800 (eval $ac_link) 2>conftest.er1
16801 ac_status=$?
16802 grep -v '^ *+' conftest.er1 >conftest.err
16803 rm -f conftest.er1
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
b4e70030
JB
16807 { ac_try='test -z "$ac_c_werror_flag"
16808 || test ! -s conftest.err'
bec39cab
AC
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 eval "$as_ac_var=yes"
16821else
16822 echo "$as_me: failed program was:" >&5
16823sed 's/^/| /' conftest.$ac_ext >&5
16824
b4e70030 16825eval "$as_ac_var=no"
bec39cab
AC
16826fi
16827rm -f conftest.err conftest.$ac_objext \
16828 conftest$ac_exeext conftest.$ac_ext
16829fi
b4e70030
JB
16830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16832if test `eval echo '${'$as_ac_var'}'` = yes; then
16833 cat >>confdefs.h <<_ACEOF
16834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16835_ACEOF
b757528f 16836
b757528f
JJ
16837fi
16838done
16839
bec39cab 16840
a3828db0
MK
16841
16842for ac_func in setpgid setpgrp
bcb3dc3d 16843do
bec39cab 16844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16845echo "$as_me:$LINENO: checking for $ac_func" >&5
16846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16847if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849else
16850 cat >conftest.$ac_ext <<_ACEOF
16851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
16856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16858#define $ac_func innocuous_$ac_func
16859
bcb3dc3d 16860/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16861 which can conflict with char $ac_func (); below.
16862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863 <limits.h> exists even on freestanding compilers. */
16864
16865#ifdef __STDC__
16866# include <limits.h>
16867#else
16868# include <assert.h>
16869#endif
bcb3dc3d 16870
bec39cab 16871#undef $ac_func
bcb3dc3d 16872
b4e70030 16873/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16874#ifdef __cplusplus
16875extern "C"
b4e70030 16876{
bec39cab 16877#endif
b4e70030
JB
16878/* We use char because int might match the return type of a gcc2
16879 builtin and then its argument prototype would still apply. */
bec39cab 16880char $ac_func ();
bcb3dc3d
MK
16881/* The GNU C library defines this for functions which it implements
16882 to always fail with ENOSYS. Some functions are actually named
16883 something starting with __ and the normal name is an alias. */
b4e70030 16884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 16885choke me
b4e70030
JB
16886#else
16887char (*f) () = $ac_func;
16888#endif
16889#ifdef __cplusplus
16890}
bcb3dc3d
MK
16891#endif
16892
bec39cab
AC
16893int
16894main ()
16895{
b4e70030 16896return f != $ac_func;
bec39cab
AC
16897 ;
16898 return 0;
16899}
16900_ACEOF
16901rm -f conftest.$ac_objext conftest$ac_exeext
16902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16903 (eval $ac_link) 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
b4e70030
JB
16910 { ac_try='test -z "$ac_c_werror_flag"
16911 || test ! -s conftest.err'
bec39cab
AC
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try='test -s conftest$ac_exeext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 eval "$as_ac_var=yes"
16924else
16925 echo "$as_me: failed program was:" >&5
16926sed 's/^/| /' conftest.$ac_ext >&5
16927
b4e70030 16928eval "$as_ac_var=no"
bec39cab
AC
16929fi
16930rm -f conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16932fi
b4e70030
JB
16933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16934echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16935if test `eval echo '${'$as_ac_var'}'` = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16938_ACEOF
bcb3dc3d 16939
bcb3dc3d
MK
16940fi
16941done
16942
bec39cab 16943
a3828db0
MK
16944
16945
16946for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 16947do
bec39cab 16948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16949echo "$as_me:$LINENO: checking for $ac_func" >&5
16950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16951if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953else
16954 cat >conftest.$ac_ext <<_ACEOF
16955/* confdefs.h. */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h. */
16960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16962#define $ac_func innocuous_$ac_func
16963
8b9cf735 16964/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16965 which can conflict with char $ac_func (); below.
16966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967 <limits.h> exists even on freestanding compilers. */
16968
16969#ifdef __STDC__
16970# include <limits.h>
16971#else
16972# include <assert.h>
16973#endif
8b9cf735 16974
bec39cab 16975#undef $ac_func
8b9cf735 16976
b4e70030 16977/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
16978#ifdef __cplusplus
16979extern "C"
b4e70030 16980{
a3828db0 16981#endif
b4e70030
JB
16982/* We use char because int might match the return type of a gcc2
16983 builtin and then its argument prototype would still apply. */
a3828db0
MK
16984char $ac_func ();
16985/* The GNU C library defines this for functions which it implements
16986 to always fail with ENOSYS. Some functions are actually named
16987 something starting with __ and the normal name is an alias. */
b4e70030 16988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 16989choke me
b4e70030
JB
16990#else
16991char (*f) () = $ac_func;
16992#endif
16993#ifdef __cplusplus
16994}
a3828db0
MK
16995#endif
16996
bec39cab
AC
16997int
16998main ()
16999{
b4e70030 17000return f != $ac_func;
bec39cab
AC
17001 ;
17002 return 0;
17003}
17004_ACEOF
a3828db0
MK
17005rm -f conftest.$ac_objext conftest$ac_exeext
17006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17008 ac_status=$?
17009 grep -v '^ *+' conftest.er1 >conftest.err
17010 rm -f conftest.er1
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
b4e70030
JB
17014 { ac_try='test -z "$ac_c_werror_flag"
17015 || test ! -s conftest.err'
bec39cab
AC
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
a3828db0 17021 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
a3828db0 17027 eval "$as_ac_var=yes"
086ec9eb 17028else
bec39cab
AC
17029 echo "$as_me: failed program was:" >&5
17030sed 's/^/| /' conftest.$ac_ext >&5
17031
b4e70030 17032eval "$as_ac_var=no"
a3828db0
MK
17033fi
17034rm -f conftest.err conftest.$ac_objext \
17035 conftest$ac_exeext conftest.$ac_ext
17036fi
b4e70030
JB
17037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17039if test `eval echo '${'$as_ac_var'}'` = yes; then
17040 cat >>confdefs.h <<_ACEOF
17041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17042_ACEOF
17043
086ec9eb 17044fi
a3828db0
MK
17045done
17046
17047
17048for ac_func in socketpair
17049do
17050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17051echo "$as_me:$LINENO: checking for $ac_func" >&5
17052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17053if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
a3828db0
MK
17062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17064#define $ac_func innocuous_$ac_func
17065
17066/* System header to define __stub macros and hopefully few prototypes,
17067 which can conflict with char $ac_func (); below.
17068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17069 <limits.h> exists even on freestanding compilers. */
17070
17071#ifdef __STDC__
17072# include <limits.h>
17073#else
17074# include <assert.h>
17075#endif
17076
17077#undef $ac_func
17078
b4e70030 17079/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17080#ifdef __cplusplus
17081extern "C"
b4e70030 17082{
a3828db0 17083#endif
b4e70030
JB
17084/* We use char because int might match the return type of a gcc2
17085 builtin and then its argument prototype would still apply. */
a3828db0
MK
17086char $ac_func ();
17087/* The GNU C library defines this for functions which it implements
17088 to always fail with ENOSYS. Some functions are actually named
17089 something starting with __ and the normal name is an alias. */
b4e70030 17090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17091choke me
b4e70030
JB
17092#else
17093char (*f) () = $ac_func;
17094#endif
17095#ifdef __cplusplus
17096}
a3828db0
MK
17097#endif
17098
bec39cab
AC
17099int
17100main ()
17101{
b4e70030 17102return f != $ac_func;
bec39cab
AC
17103 ;
17104 return 0;
17105}
17106_ACEOF
a3828db0
MK
17107rm -f conftest.$ac_objext conftest$ac_exeext
17108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17110 ac_status=$?
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
b4e70030
JB
17116 { ac_try='test -z "$ac_c_werror_flag"
17117 || test ! -s conftest.err'
bec39cab
AC
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
a3828db0 17123 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
a3828db0 17129 eval "$as_ac_var=yes"
086ec9eb 17130else
bec39cab
AC
17131 echo "$as_me: failed program was:" >&5
17132sed 's/^/| /' conftest.$ac_ext >&5
17133
b4e70030 17134eval "$as_ac_var=no"
086ec9eb 17135fi
a3828db0
MK
17136rm -f conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
086ec9eb 17138fi
b4e70030
JB
17139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17140echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17141if test `eval echo '${'$as_ac_var'}'` = yes; then
17142 cat >>confdefs.h <<_ACEOF
17143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17144_ACEOF
086ec9eb
MK
17145
17146fi
a3828db0 17147done
086ec9eb 17148
a3828db0
MK
17149
17150for ac_func in syscall
17151do
17152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17153echo "$as_me:$LINENO: checking for $ac_func" >&5
17154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17155if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17156 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
17157else
17158 cat >conftest.$ac_ext <<_ACEOF
17159/* confdefs.h. */
17160_ACEOF
17161cat confdefs.h >>conftest.$ac_ext
17162cat >>conftest.$ac_ext <<_ACEOF
17163/* end confdefs.h. */
a3828db0
MK
17164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17166#define $ac_func innocuous_$ac_func
17167
17168/* System header to define __stub macros and hopefully few prototypes,
17169 which can conflict with char $ac_func (); below.
17170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171 <limits.h> exists even on freestanding compilers. */
17172
17173#ifdef __STDC__
17174# include <limits.h>
17175#else
17176# include <assert.h>
17177#endif
17178
17179#undef $ac_func
17180
b4e70030 17181/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17182#ifdef __cplusplus
17183extern "C"
b4e70030 17184{
a3828db0 17185#endif
b4e70030
JB
17186/* We use char because int might match the return type of a gcc2
17187 builtin and then its argument prototype would still apply. */
a3828db0
MK
17188char $ac_func ();
17189/* The GNU C library defines this for functions which it implements
17190 to always fail with ENOSYS. Some functions are actually named
17191 something starting with __ and the normal name is an alias. */
b4e70030 17192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17193choke me
b4e70030
JB
17194#else
17195char (*f) () = $ac_func;
17196#endif
17197#ifdef __cplusplus
17198}
c906108c 17199#endif
97bf5e38 17200
bec39cab
AC
17201int
17202main ()
97bf5e38 17203{
b4e70030 17204return f != $ac_func;
bec39cab
AC
17205 ;
17206 return 0;
97bf5e38 17207}
bec39cab 17208_ACEOF
a3828db0 17209rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 17210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17211 (eval $ac_link) 2>conftest.er1
bec39cab 17212 ac_status=$?
a3828db0
MK
17213 grep -v '^ *+' conftest.er1 >conftest.err
17214 rm -f conftest.er1
17215 cat conftest.err >&5
bec39cab 17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17217 (exit $ac_status); } &&
b4e70030
JB
17218 { ac_try='test -z "$ac_c_werror_flag"
17219 || test ! -s conftest.err'
a3828db0
MK
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; } &&
17225 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; }; then
a3828db0 17231 eval "$as_ac_var=yes"
c906108c 17232else
a3828db0 17233 echo "$as_me: failed program was:" >&5
bec39cab
AC
17234sed 's/^/| /' conftest.$ac_ext >&5
17235
b4e70030 17236eval "$as_ac_var=no"
97bf5e38 17237fi
a3828db0
MK
17238rm -f conftest.err conftest.$ac_objext \
17239 conftest$ac_exeext conftest.$ac_ext
17240fi
b4e70030
JB
17241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17243if test `eval echo '${'$as_ac_var'}'` = yes; then
17244 cat >>confdefs.h <<_ACEOF
17245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17246_ACEOF
c906108c
SS
17247
17248fi
a3828db0 17249done
c906108c 17250
a3828db0
MK
17251
17252for ac_func in ttrace
17253do
17254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17255echo "$as_me:$LINENO: checking for $ac_func" >&5
17256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17257if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17258 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 17259else
bec39cab
AC
17260 cat >conftest.$ac_ext <<_ACEOF
17261/* confdefs.h. */
17262_ACEOF
17263cat confdefs.h >>conftest.$ac_ext
17264cat >>conftest.$ac_ext <<_ACEOF
17265/* end confdefs.h. */
a3828db0
MK
17266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17268#define $ac_func innocuous_$ac_func
b83266a0 17269
a3828db0
MK
17270/* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17274
17275#ifdef __STDC__
17276# include <limits.h>
17277#else
17278# include <assert.h>
17279#endif
17280
17281#undef $ac_func
17282
b4e70030 17283/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17284#ifdef __cplusplus
17285extern "C"
b4e70030 17286{
a3828db0 17287#endif
b4e70030
JB
17288/* We use char because int might match the return type of a gcc2
17289 builtin and then its argument prototype would still apply. */
a3828db0
MK
17290char $ac_func ();
17291/* The GNU C library defines this for functions which it implements
17292 to always fail with ENOSYS. Some functions are actually named
17293 something starting with __ and the normal name is an alias. */
b4e70030 17294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17295choke me
b4e70030
JB
17296#else
17297char (*f) () = $ac_func;
17298#endif
17299#ifdef __cplusplus
17300}
a3828db0 17301#endif
97bf5e38 17302
bec39cab
AC
17303int
17304main ()
17305{
b4e70030 17306return f != $ac_func;
bec39cab
AC
17307 ;
17308 return 0;
17309}
17310_ACEOF
a3828db0
MK
17311rm -f conftest.$ac_objext conftest$ac_exeext
17312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
b4e70030
JB
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
bec39cab
AC
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
a3828db0 17327 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
a3828db0 17333 eval "$as_ac_var=yes"
b83266a0 17334else
bec39cab
AC
17335 echo "$as_me: failed program was:" >&5
17336sed 's/^/| /' conftest.$ac_ext >&5
17337
b4e70030 17338eval "$as_ac_var=no"
b83266a0 17339fi
a3828db0
MK
17340rm -f conftest.err conftest.$ac_objext \
17341 conftest$ac_exeext conftest.$ac_ext
b83266a0 17342fi
b4e70030
JB
17343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17344echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17345if test `eval echo '${'$as_ac_var'}'` = yes; then
17346 cat >>confdefs.h <<_ACEOF
17347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17348_ACEOF
b83266a0 17349
97bf5e38 17350fi
a3828db0 17351done
b83266a0 17352
a3828db0
MK
17353
17354for ac_func in wborder
17355do
17356as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17357echo "$as_me:$LINENO: checking for $ac_func" >&5
17358echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17359if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361else
17362 cat >conftest.$ac_ext <<_ACEOF
17363/* confdefs.h. */
17364_ACEOF
17365cat confdefs.h >>conftest.$ac_ext
17366cat >>conftest.$ac_ext <<_ACEOF
17367/* end confdefs.h. */
a3828db0
MK
17368/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17370#define $ac_func innocuous_$ac_func
a4db0f07 17371
a3828db0
MK
17372/* System header to define __stub macros and hopefully few prototypes,
17373 which can conflict with char $ac_func (); below.
17374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17375 <limits.h> exists even on freestanding compilers. */
17376
17377#ifdef __STDC__
17378# include <limits.h>
17379#else
17380# include <assert.h>
17381#endif
17382
17383#undef $ac_func
17384
b4e70030 17385/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17386#ifdef __cplusplus
17387extern "C"
b4e70030 17388{
a3828db0 17389#endif
b4e70030
JB
17390/* We use char because int might match the return type of a gcc2
17391 builtin and then its argument prototype would still apply. */
a3828db0
MK
17392char $ac_func ();
17393/* The GNU C library defines this for functions which it implements
17394 to always fail with ENOSYS. Some functions are actually named
17395 something starting with __ and the normal name is an alias. */
b4e70030 17396#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17397choke me
b4e70030
JB
17398#else
17399char (*f) () = $ac_func;
17400#endif
17401#ifdef __cplusplus
17402}
a3828db0 17403#endif
97bf5e38 17404
bec39cab
AC
17405int
17406main ()
17407{
b4e70030 17408return f != $ac_func;
bec39cab
AC
17409 ;
17410 return 0;
17411}
17412_ACEOF
a3828db0
MK
17413rm -f conftest.$ac_objext conftest$ac_exeext
17414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
b4e70030
JB
17422 { ac_try='test -z "$ac_c_werror_flag"
17423 || test ! -s conftest.err'
bec39cab
AC
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
a3828db0 17429 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
a3828db0 17435 eval "$as_ac_var=yes"
a4db0f07 17436else
bec39cab
AC
17437 echo "$as_me: failed program was:" >&5
17438sed 's/^/| /' conftest.$ac_ext >&5
17439
b4e70030 17440eval "$as_ac_var=no"
a4db0f07 17441fi
a3828db0
MK
17442rm -f conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
a4db0f07 17444fi
b4e70030
JB
17445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17446echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17447if test `eval echo '${'$as_ac_var'}'` = yes; then
17448 cat >>confdefs.h <<_ACEOF
17449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17450_ACEOF
a4db0f07
RH
17451
17452fi
a3828db0 17453done
c906108c 17454
06825bd1 17455
a3828db0
MK
17456# Check the return and argument types of ptrace. No canned test for
17457# this, so roll our own.
17458gdb_ptrace_headers='
17459#if HAVE_SYS_TYPES_H
17460# include <sys/types.h>
17461#endif
17462#if HAVE_SYS_PTRACE_H
17463# include <sys/ptrace.h>
17464#endif
17465#if HAVE_UNISTD_H
17466# include <unistd.h>
17467#endif
17468'
17469# There is no point in checking if we don't have a prototype.
b4e70030
JB
17470echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
17471echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 17472if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474else
17475 cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
a3828db0
MK
17481$gdb_ptrace_headers
17482
bec39cab
AC
17483int
17484main ()
17485{
a3828db0
MK
17486#ifndef ptrace
17487 char *p = (char *) ptrace;
06825bd1 17488#endif
a3828db0 17489
bec39cab
AC
17490 ;
17491 return 0;
17492}
17493_ACEOF
17494rm -f conftest.$ac_objext
17495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496 (eval $ac_compile) 2>conftest.er1
17497 ac_status=$?
17498 grep -v '^ *+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
b4e70030
JB
17503 { ac_try='test -z "$ac_c_werror_flag"
17504 || test ! -s conftest.err'
bec39cab
AC
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try='test -s conftest.$ac_objext'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
a3828db0 17516 ac_cv_have_decl_ptrace=yes
06825bd1 17517else
bec39cab
AC
17518 echo "$as_me: failed program was:" >&5
17519sed 's/^/| /' conftest.$ac_ext >&5
17520
b4e70030 17521ac_cv_have_decl_ptrace=no
06825bd1 17522fi
bec39cab 17523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 17524fi
b4e70030
JB
17525echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
17526echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 17527if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 17528
a3828db0
MK
17529cat >>confdefs.h <<_ACEOF
17530#define HAVE_DECL_PTRACE 1
17531_ACEOF
bec39cab 17532
bec39cab 17533
a3828db0
MK
17534else
17535 cat >>confdefs.h <<_ACEOF
17536#define HAVE_DECL_PTRACE 0
bec39cab 17537_ACEOF
06825bd1 17538
a3828db0
MK
17539
17540 : ${gdb_cv_func_ptrace_ret='int'}
17541 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17542
06825bd1
MK
17543fi
17544
a3828db0
MK
17545
17546# Check return type.
b4e70030
JB
17547echo "$as_me:$LINENO: checking return type of ptrace" >&5
17548echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 17549if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17551else
17552 cat >conftest.$ac_ext <<_ACEOF
17553/* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h. */
a3828db0 17558$gdb_ptrace_headers
bec39cab
AC
17559int
17560main ()
17561{
a3828db0 17562extern int ptrace ();
bec39cab
AC
17563 ;
17564 return 0;
17565}
17566_ACEOF
17567rm -f conftest.$ac_objext
17568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>conftest.er1
17570 ac_status=$?
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
b4e70030
JB
17576 { ac_try='test -z "$ac_c_werror_flag"
17577 || test ! -s conftest.err'
bec39cab
AC
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
a3828db0 17589 gdb_cv_func_ptrace_ret='int'
70f9f479 17590else
bec39cab
AC
17591 echo "$as_me: failed program was:" >&5
17592sed 's/^/| /' conftest.$ac_ext >&5
17593
b4e70030 17594gdb_cv_func_ptrace_ret='long'
70f9f479 17595fi
bec39cab 17596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 17597fi
b4e70030
JB
17598echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
17599echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 17600
a3828db0
MK
17601cat >>confdefs.h <<_ACEOF
17602#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 17603_ACEOF
70f9f479 17604
a3828db0 17605# Check argument types.
b4e70030
JB
17606echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
17607echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 17608if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17610else
a3828db0
MK
17611
17612for gdb_arg1 in 'int' 'long'; do
17613 for gdb_arg2 in 'pid_t' 'int' 'long'; do
17614 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
17615 for gdb_arg4 in 'int' 'long'; do
17616 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17617/* confdefs.h. */
17618_ACEOF
17619cat confdefs.h >>conftest.$ac_ext
17620cat >>conftest.$ac_ext <<_ACEOF
17621/* end confdefs.h. */
a3828db0 17622$gdb_ptrace_headers
bec39cab
AC
17623int
17624main ()
17625{
a3828db0
MK
17626
17627extern $gdb_cv_func_ptrace_ret
17628 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
17629
bec39cab
AC
17630 ;
17631 return 0;
17632}
17633_ACEOF
17634rm -f conftest.$ac_objext
17635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636 (eval $ac_compile) 2>conftest.er1
17637 ac_status=$?
17638 grep -v '^ *+' conftest.er1 >conftest.err
17639 rm -f conftest.er1
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
b4e70030
JB
17643 { ac_try='test -z "$ac_c_werror_flag"
17644 || test ! -s conftest.err'
bec39cab
AC
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest.$ac_objext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
a3828db0
MK
17656 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
17657 break 4;
5c7f2947 17658else
bec39cab
AC
17659 echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
5c7f2947 17662fi
bec39cab 17663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17664 for gdb_arg5 in 'int *' 'int' 'long'; do
17665 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17666/* confdefs.h. */
17667_ACEOF
17668cat confdefs.h >>conftest.$ac_ext
17669cat >>conftest.$ac_ext <<_ACEOF
17670/* end confdefs.h. */
a3828db0 17671$gdb_ptrace_headers
bec39cab
AC
17672int
17673main ()
17674{
a3828db0
MK
17675
17676extern $gdb_cv_func_ptrace_ret
17677 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
17678
bec39cab
AC
17679 ;
17680 return 0;
17681}
17682_ACEOF
17683rm -f conftest.$ac_objext
17684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17685 (eval $ac_compile) 2>conftest.er1
17686 ac_status=$?
17687 grep -v '^ *+' conftest.er1 >conftest.err
17688 rm -f conftest.er1
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
b4e70030
JB
17692 { ac_try='test -z "$ac_c_werror_flag"
17693 || test ! -s conftest.err'
bec39cab
AC
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try='test -s conftest.$ac_objext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
a3828db0
MK
17705
17706gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
17707 break 5;
78434e59 17708else
bec39cab
AC
17709 echo "$as_me: failed program was:" >&5
17710sed 's/^/| /' conftest.$ac_ext >&5
17711
78434e59 17712fi
bec39cab 17713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17714 done
17715 done
17716 done
17717 done
17718done
17719# Provide a safe default value.
17720: ${gdb_cv_func_ptrace_args='int,int,long,long'}
17721
78434e59 17722fi
b4e70030
JB
17723echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
17724echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
17725ac_save_IFS=$IFS; IFS=','
17726set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
17727IFS=$ac_save_IFS
17728shift
bec39cab 17729
a3828db0
MK
17730cat >>confdefs.h <<_ACEOF
17731#define PTRACE_TYPE_ARG3 $3
17732_ACEOF
17733
17734if test -n "$5"; then
17735
17736cat >>confdefs.h <<_ACEOF
17737#define PTRACE_TYPE_ARG5 $5
bec39cab 17738_ACEOF
78434e59
MK
17739
17740fi
17741
a3828db0 17742if test "$cross_compiling" = no; then
b4e70030
JB
17743 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17744echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 17745if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 17746 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
17747else
17748 if test "$cross_compiling" = yes; then
17749 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17750echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17751 { (exit 1); exit 1; }; }
bec39cab
AC
17752else
17753 cat >conftest.$ac_ext <<_ACEOF
17754/* confdefs.h. */
17755_ACEOF
17756cat confdefs.h >>conftest.$ac_ext
17757cat >>conftest.$ac_ext <<_ACEOF
17758/* end confdefs.h. */
b4e70030
JB
17759#if HAVE_UNISTD_H
17760# include <unistd.h>
17761#endif
17762
bec39cab
AC
17763int
17764main ()
17765{
a3828db0
MK
17766/* If this system has a BSD-style setpgrp which takes arguments,
17767 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17768 exit successfully. */
b4e70030 17769 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
17770 ;
17771 return 0;
17772}
17773_ACEOF
a3828db0
MK
17774rm -f conftest$ac_exeext
17775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776 (eval $ac_link) 2>&5
bec39cab
AC
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
a3828db0 17785 ac_cv_func_setpgrp_void=no
c906108c 17786else
a3828db0
MK
17787 echo "$as_me: program exited with status $ac_status" >&5
17788echo "$as_me: failed program was:" >&5
bec39cab
AC
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
a3828db0
MK
17791( exit $ac_status )
17792ac_cv_func_setpgrp_void=yes
c906108c 17793fi
b4e70030 17794rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 17795fi
a3828db0 17796fi
b4e70030
JB
17797echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17798echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
17799if test $ac_cv_func_setpgrp_void = yes; then
17800
17801cat >>confdefs.h <<\_ACEOF
17802#define SETPGRP_VOID 1
bec39cab 17803_ACEOF
97bf5e38
MK
17804
17805fi
a3828db0
MK
17806
17807else
b4e70030
JB
17808 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17809echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 17810if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 17811 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 17812else
bec39cab
AC
17813 cat >conftest.$ac_ext <<_ACEOF
17814/* confdefs.h. */
17815_ACEOF
17816cat confdefs.h >>conftest.$ac_ext
17817cat >>conftest.$ac_ext <<_ACEOF
17818/* end confdefs.h. */
a3828db0
MK
17819
17820#include <unistd.h>
17821
bec39cab
AC
17822int
17823main ()
17824{
a3828db0
MK
17825
17826 if (setpgrp(1,1) == -1)
17827 exit (0);
17828 else
17829 exit (1);
17830
bec39cab
AC
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext
17836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17837 (eval $ac_compile) 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
b4e70030
JB
17844 { ac_try='test -z "$ac_c_werror_flag"
17845 || test ! -s conftest.err'
bec39cab
AC
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } &&
17851 { ac_try='test -s conftest.$ac_objext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
a3828db0 17857 ac_cv_func_setpgrp_void=no
c906108c 17858else
bec39cab
AC
17859 echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
b4e70030 17862ac_cv_func_setpgrp_void=yes
c906108c 17863fi
bec39cab 17864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17865fi
b4e70030
JB
17866echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17867echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 17868if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 17869 cat >>confdefs.h <<\_ACEOF
a3828db0 17870#define SETPGRP_VOID 1
bec39cab 17871_ACEOF
c3f6f71d 17872
a3828db0 17873fi
c906108c
SS
17874fi
17875
a3828db0
MK
17876# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17877# since sigsetjmp might only be defined as a macro.
b4e70030
JB
17878echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17879echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 17880if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17882else
17883 cat >conftest.$ac_ext <<_ACEOF
17884/* confdefs.h. */
17885_ACEOF
17886cat confdefs.h >>conftest.$ac_ext
17887cat >>conftest.$ac_ext <<_ACEOF
17888/* end confdefs.h. */
a3828db0
MK
17889
17890#include <setjmp.h>
17891
bec39cab
AC
17892int
17893main ()
17894{
a3828db0 17895sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
17896 ;
17897 return 0;
17898}
17899_ACEOF
17900rm -f conftest.$ac_objext
17901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17902 (eval $ac_compile) 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
b4e70030
JB
17909 { ac_try='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
bec39cab
AC
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest.$ac_objext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
a3828db0 17922 gdb_cv_func_sigsetjmp=yes
c906108c 17923else
bec39cab
AC
17924 echo "$as_me: failed program was:" >&5
17925sed 's/^/| /' conftest.$ac_ext >&5
17926
b4e70030 17927gdb_cv_func_sigsetjmp=no
c906108c 17928fi
bec39cab 17929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17930fi
b4e70030
JB
17931echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17932echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 17933if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 17934
a3828db0
MK
17935cat >>confdefs.h <<\_ACEOF
17936#define HAVE_SIGSETJMP 1
bec39cab 17937_ACEOF
c906108c 17938
97bf5e38 17939fi
c906108c 17940
a3828db0
MK
17941# Assume we'll default to using the included libiberty regex.
17942gdb_use_included_regex=yes
17943
17944# However, if the system regex is GNU regex, then default to *not*
17945# using the included regex.
b4e70030
JB
17946echo "$as_me:$LINENO: checking for GNU regex" >&5
17947echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 17948if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17950else
17951 cat >conftest.$ac_ext <<_ACEOF
17952/* confdefs.h. */
17953_ACEOF
17954cat confdefs.h >>conftest.$ac_ext
17955cat >>conftest.$ac_ext <<_ACEOF
17956/* end confdefs.h. */
a3828db0 17957#include <gnu-versions.h>
bec39cab
AC
17958int
17959main ()
17960{
a3828db0
MK
17961#define REGEX_INTERFACE_VERSION 1
17962#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17963# error "Version mismatch"
17964#endif
bec39cab
AC
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969rm -f conftest.$ac_objext
17970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17971 (eval $ac_compile) 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
b4e70030
JB
17978 { ac_try='test -z "$ac_c_werror_flag"
17979 || test ! -s conftest.err'
bec39cab
AC
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest.$ac_objext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
a3828db0 17991 gdb_cv_have_gnu_regex=yes
c906108c 17992else
bec39cab
AC
17993 echo "$as_me: failed program was:" >&5
17994sed 's/^/| /' conftest.$ac_ext >&5
17995
b4e70030 17996gdb_cv_have_gnu_regex=no
c906108c 17997fi
bec39cab 17998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17999fi
b4e70030
JB
18000echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18001echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
18002if test $gdb_cv_have_gnu_regex = yes; then
18003 gdb_use_included_regex=no
18004fi
c906108c 18005
a3828db0 18006
b4e70030 18007# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 18008if test "${with_included_regex+set}" = set; then
b4e70030
JB
18009 withval="$with_included_regex"
18010 gdb_with_regex=$withval
a3828db0
MK
18011else
18012 gdb_with_regex=$gdb_use_included_regex
b4e70030 18013fi;
a3828db0
MK
18014if test "$gdb_with_regex" = yes; then
18015
18016cat >>confdefs.h <<\_ACEOF
18017#define USE_INCLUDED_REGEX 1
bec39cab 18018_ACEOF
c906108c 18019
97bf5e38 18020fi
c906108c 18021
5c45e068 18022# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
18023echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18024echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 18025if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18027else
18028 cat >conftest.$ac_ext <<_ACEOF
18029/* confdefs.h. */
18030_ACEOF
18031cat confdefs.h >>conftest.$ac_ext
18032cat >>conftest.$ac_ext <<_ACEOF
18033/* end confdefs.h. */
a3828db0
MK
18034#include <sys/param.h>
18035#include <sys/proc.h>
5c45e068
MK
18036
18037
bec39cab
AC
18038int
18039main ()
18040{
5c45e068
MK
18041static struct thread ac_aggr;
18042if (ac_aggr.td_pcb)
18043return 0;
bec39cab
AC
18044 ;
18045 return 0;
18046}
18047_ACEOF
18048rm -f conftest.$ac_objext
18049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18050 (eval $ac_compile) 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
b4e70030
JB
18057 { ac_try='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
bec39cab
AC
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest.$ac_objext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
5c45e068 18070 ac_cv_member_struct_thread_td_pcb=yes
c906108c 18071else
bec39cab
AC
18072 echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
b4e70030 18075cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18076/* confdefs.h. */
18077_ACEOF
18078cat confdefs.h >>conftest.$ac_ext
18079cat >>conftest.$ac_ext <<_ACEOF
18080/* end confdefs.h. */
18081#include <sys/param.h>
18082#include <sys/proc.h>
18083
18084
18085int
18086main ()
18087{
18088static struct thread ac_aggr;
18089if (sizeof ac_aggr.td_pcb)
18090return 0;
18091 ;
18092 return 0;
18093}
18094_ACEOF
18095rm -f conftest.$ac_objext
18096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18097 (eval $ac_compile) 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
b4e70030
JB
18104 { ac_try='test -z "$ac_c_werror_flag"
18105 || test ! -s conftest.err'
5c45e068
MK
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_cv_member_struct_thread_td_pcb=yes
18118else
18119 echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
b4e70030 18122ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
18123fi
18124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18125fi
bec39cab 18126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18127fi
b4e70030
JB
18128echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18129echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 18130if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 18131
5c45e068 18132cat >>confdefs.h <<_ACEOF
a3828db0 18133#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 18134_ACEOF
c906108c 18135
5c45e068 18136
97bf5e38 18137fi
c906108c 18138
5c45e068 18139
a3828db0 18140# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
18141echo "$as_me:$LINENO: checking for struct lwp" >&5
18142echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 18143if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145else
18146 cat >conftest.$ac_ext <<_ACEOF
18147/* confdefs.h. */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h. */
a3828db0
MK
18152#include <sys/param.h>
18153#include <sys/lwp.h>
bec39cab
AC
18154int
18155main ()
18156{
a3828db0 18157struct lwp l;
bec39cab
AC
18158 ;
18159 return 0;
18160}
18161_ACEOF
18162rm -f conftest.$ac_objext
18163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164 (eval $ac_compile) 2>conftest.er1
18165 ac_status=$?
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
b4e70030
JB
18171 { ac_try='test -z "$ac_c_werror_flag"
18172 || test ! -s conftest.err'
bec39cab
AC
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest.$ac_objext'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
a3828db0 18184 gdb_cv_struct_lwp=yes
c906108c 18185else
bec39cab
AC
18186 echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
b4e70030 18189gdb_cv_struct_lwp=no
c906108c 18190fi
bec39cab 18191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18192fi
b4e70030
JB
18193echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18194echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 18195if test $gdb_cv_struct_lwp = yes; then
c906108c 18196
a3828db0
MK
18197cat >>confdefs.h <<\_ACEOF
18198#define HAVE_STRUCT_LWP 1
bec39cab 18199_ACEOF
c906108c 18200
97bf5e38 18201fi
c906108c 18202
a3828db0 18203# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
18204echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18205echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 18206if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208else
18209 cat >conftest.$ac_ext <<_ACEOF
18210/* confdefs.h. */
18211_ACEOF
18212cat confdefs.h >>conftest.$ac_ext
18213cat >>conftest.$ac_ext <<_ACEOF
18214/* end confdefs.h. */
a3828db0
MK
18215#include <sys/types.h>
18216#include <machine/reg.h>
bec39cab
AC
18217int
18218main ()
18219{
a3828db0 18220struct reg r;
bec39cab
AC
18221 ;
18222 return 0;
18223}
18224_ACEOF
18225rm -f conftest.$ac_objext
18226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18227 (eval $ac_compile) 2>conftest.er1
18228 ac_status=$?
18229 grep -v '^ *+' conftest.er1 >conftest.err
18230 rm -f conftest.er1
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
b4e70030
JB
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
bec39cab
AC
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest.$ac_objext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
a3828db0 18247 gdb_cv_struct_reg=yes
27ca5dad 18248else
bec39cab
AC
18249 echo "$as_me: failed program was:" >&5
18250sed 's/^/| /' conftest.$ac_ext >&5
18251
b4e70030 18252gdb_cv_struct_reg=no
27ca5dad 18253fi
bec39cab 18254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 18255fi
b4e70030
JB
18256echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18257echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 18258if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
18259
18260cat >>confdefs.h <<\_ACEOF
a3828db0 18261#define HAVE_STRUCT_REG 1
bec39cab 18262_ACEOF
27ca5dad
MC
18263
18264fi
97bf5e38 18265
a3828db0
MK
18266# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18267# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
18268echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18269echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 18270if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 18271 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18272else
bec39cab
AC
18273 cat >conftest.$ac_ext <<_ACEOF
18274/* confdefs.h. */
18275_ACEOF
18276cat confdefs.h >>conftest.$ac_ext
18277cat >>conftest.$ac_ext <<_ACEOF
18278/* end confdefs.h. */
a3828db0 18279#include <machine/reg.h>
5c45e068
MK
18280
18281int
18282main ()
18283{
18284static struct reg ac_aggr;
18285if (ac_aggr.r_fs)
18286return 0;
18287 ;
18288 return 0;
18289}
18290_ACEOF
18291rm -f conftest.$ac_objext
18292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293 (eval $ac_compile) 2>conftest.er1
18294 ac_status=$?
18295 grep -v '^ *+' conftest.er1 >conftest.err
18296 rm -f conftest.er1
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
b4e70030
JB
18300 { ac_try='test -z "$ac_c_werror_flag"
18301 || test ! -s conftest.err'
5c45e068
MK
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; } &&
18307 { ac_try='test -s conftest.$ac_objext'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 ac_cv_member_struct_reg_r_fs=yes
18314else
18315 echo "$as_me: failed program was:" >&5
18316sed 's/^/| /' conftest.$ac_ext >&5
18317
b4e70030 18318cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18319/* confdefs.h. */
18320_ACEOF
18321cat confdefs.h >>conftest.$ac_ext
18322cat >>conftest.$ac_ext <<_ACEOF
18323/* end confdefs.h. */
18324#include <machine/reg.h>
18325
bec39cab
AC
18326int
18327main ()
18328{
5c45e068
MK
18329static struct reg ac_aggr;
18330if (sizeof ac_aggr.r_fs)
18331return 0;
bec39cab
AC
18332 ;
18333 return 0;
18334}
18335_ACEOF
18336rm -f conftest.$ac_objext
18337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18338 (eval $ac_compile) 2>conftest.er1
18339 ac_status=$?
18340 grep -v '^ *+' conftest.er1 >conftest.err
18341 rm -f conftest.er1
18342 cat conftest.err >&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } &&
b4e70030
JB
18345 { ac_try='test -z "$ac_c_werror_flag"
18346 || test ! -s conftest.err'
bec39cab
AC
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest.$ac_objext'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
5c45e068 18358 ac_cv_member_struct_reg_r_fs=yes
3862412b 18359else
bec39cab
AC
18360 echo "$as_me: failed program was:" >&5
18361sed 's/^/| /' conftest.$ac_ext >&5
18362
b4e70030 18363ac_cv_member_struct_reg_r_fs=no
3862412b 18364fi
bec39cab 18365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18366fi
5c45e068
MK
18367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368fi
b4e70030
JB
18369echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18370echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
18371if test $ac_cv_member_struct_reg_r_fs = yes; then
18372
18373cat >>confdefs.h <<_ACEOF
a3828db0 18374#define HAVE_STRUCT_REG_R_FS 1
bec39cab 18375_ACEOF
3862412b 18376
5c45e068 18377
97bf5e38 18378fi
b4e70030
JB
18379echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18380echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 18381if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 18382 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18383else
bec39cab
AC
18384 cat >conftest.$ac_ext <<_ACEOF
18385/* confdefs.h. */
18386_ACEOF
18387cat confdefs.h >>conftest.$ac_ext
18388cat >>conftest.$ac_ext <<_ACEOF
18389/* end confdefs.h. */
a3828db0 18390#include <machine/reg.h>
5c45e068 18391
bec39cab
AC
18392int
18393main ()
18394{
5c45e068
MK
18395static struct reg ac_aggr;
18396if (ac_aggr.r_gs)
18397return 0;
bec39cab
AC
18398 ;
18399 return 0;
18400}
18401_ACEOF
18402rm -f conftest.$ac_objext
18403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18404 (eval $ac_compile) 2>conftest.er1
18405 ac_status=$?
18406 grep -v '^ *+' conftest.er1 >conftest.err
18407 rm -f conftest.er1
18408 cat conftest.err >&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } &&
b4e70030
JB
18411 { ac_try='test -z "$ac_c_werror_flag"
18412 || test ! -s conftest.err'
bec39cab
AC
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; } &&
18418 { ac_try='test -s conftest.$ac_objext'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
5c45e068 18424 ac_cv_member_struct_reg_r_gs=yes
3862412b 18425else
bec39cab
AC
18426 echo "$as_me: failed program was:" >&5
18427sed 's/^/| /' conftest.$ac_ext >&5
18428
b4e70030 18429cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18430/* confdefs.h. */
18431_ACEOF
18432cat confdefs.h >>conftest.$ac_ext
18433cat >>conftest.$ac_ext <<_ACEOF
18434/* end confdefs.h. */
18435#include <machine/reg.h>
18436
18437int
18438main ()
18439{
18440static struct reg ac_aggr;
18441if (sizeof ac_aggr.r_gs)
18442return 0;
18443 ;
18444 return 0;
18445}
18446_ACEOF
18447rm -f conftest.$ac_objext
18448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18449 (eval $ac_compile) 2>conftest.er1
18450 ac_status=$?
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
b4e70030
JB
18456 { ac_try='test -z "$ac_c_werror_flag"
18457 || test ! -s conftest.err'
5c45e068
MK
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest.$ac_objext'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_member_struct_reg_r_gs=yes
18470else
18471 echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
b4e70030 18474ac_cv_member_struct_reg_r_gs=no
3862412b 18475fi
bec39cab 18476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18477fi
5c45e068
MK
18478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18479fi
b4e70030
JB
18480echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
18481echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
18482if test $ac_cv_member_struct_reg_r_gs = yes; then
18483
18484cat >>confdefs.h <<_ACEOF
a3828db0 18485#define HAVE_STRUCT_REG_R_GS 1
bec39cab 18486_ACEOF
3862412b 18487
5c45e068 18488
97bf5e38 18489fi
3862412b 18490
5c45e068 18491
a3828db0 18492# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
18493echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
18494echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 18495if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 18496 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18497else
bec39cab
AC
18498 cat >conftest.$ac_ext <<_ACEOF
18499/* confdefs.h. */
18500_ACEOF
18501cat confdefs.h >>conftest.$ac_ext
18502cat >>conftest.$ac_ext <<_ACEOF
18503/* end confdefs.h. */
a3828db0 18504#include <sys/ptrace.h>
bec39cab
AC
18505int
18506main ()
18507{
a3828db0 18508PTRACE_GETREGS;
bec39cab
AC
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513rm -f conftest.$ac_objext
18514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515 (eval $ac_compile) 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
b4e70030
JB
18522 { ac_try='test -z "$ac_c_werror_flag"
18523 || test ! -s conftest.err'
bec39cab
AC
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
a3828db0 18535 gdb_cv_have_ptrace_getregs=yes
451928c5 18536else
bec39cab
AC
18537 echo "$as_me: failed program was:" >&5
18538sed 's/^/| /' conftest.$ac_ext >&5
18539
b4e70030 18540gdb_cv_have_ptrace_getregs=no
451928c5 18541fi
bec39cab 18542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18543fi
18544
b4e70030
JB
18545echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
18546echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 18547if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
18548
18549cat >>confdefs.h <<\_ACEOF
a3828db0 18550#define HAVE_PTRACE_GETREGS 1
bec39cab 18551_ACEOF
451928c5 18552
97bf5e38 18553fi
451928c5 18554
a3828db0 18555# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
18556echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
18557echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 18558if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 18559 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 18560else
bec39cab
AC
18561 cat >conftest.$ac_ext <<_ACEOF
18562/* confdefs.h. */
18563_ACEOF
18564cat confdefs.h >>conftest.$ac_ext
18565cat >>conftest.$ac_ext <<_ACEOF
18566/* end confdefs.h. */
a3828db0 18567#include <sys/ptrace.h>
bec39cab
AC
18568int
18569main ()
18570{
a3828db0 18571PTRACE_GETFPXREGS;
bec39cab
AC
18572 ;
18573 return 0;
18574}
18575_ACEOF
18576rm -f conftest.$ac_objext
18577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18578 (eval $ac_compile) 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
b4e70030
JB
18585 { ac_try='test -z "$ac_c_werror_flag"
18586 || test ! -s conftest.err'
bec39cab
AC
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest.$ac_objext'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; }; then
a3828db0 18598 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 18599else
bec39cab
AC
18600 echo "$as_me: failed program was:" >&5
18601sed 's/^/| /' conftest.$ac_ext >&5
18602
b4e70030 18603gdb_cv_have_ptrace_getfpxregs=no
451928c5 18604fi
bec39cab 18605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
18606fi
18607
b4e70030
JB
18608echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
18609echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 18610if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
18611
18612cat >>confdefs.h <<\_ACEOF
a3828db0 18613#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 18614_ACEOF
451928c5 18615
97bf5e38 18616fi
451928c5 18617
a3828db0 18618# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
18619echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
18620echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 18621if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 18622 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18623else
bec39cab
AC
18624 cat >conftest.$ac_ext <<_ACEOF
18625/* confdefs.h. */
18626_ACEOF
18627cat confdefs.h >>conftest.$ac_ext
18628cat >>conftest.$ac_ext <<_ACEOF
18629/* end confdefs.h. */
a3828db0
MK
18630#include <sys/types.h>
18631#include <sys/ptrace.h>
bec39cab
AC
18632int
18633main ()
18634{
a3828db0 18635PT_GETDBREGS;
bec39cab
AC
18636 ;
18637 return 0;
18638}
18639_ACEOF
18640rm -f conftest.$ac_objext
18641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18642 (eval $ac_compile) 2>conftest.er1
18643 ac_status=$?
18644 grep -v '^ *+' conftest.er1 >conftest.err
18645 rm -f conftest.er1
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } &&
b4e70030
JB
18649 { ac_try='test -z "$ac_c_werror_flag"
18650 || test ! -s conftest.err'
bec39cab
AC
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; } &&
18656 { ac_try='test -s conftest.$ac_objext'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; }; then
a3828db0 18662 gdb_cv_have_pt_getdbregs=yes
3862412b 18663else
bec39cab
AC
18664 echo "$as_me: failed program was:" >&5
18665sed 's/^/| /' conftest.$ac_ext >&5
18666
b4e70030 18667gdb_cv_have_pt_getdbregs=no
3862412b 18668fi
bec39cab 18669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
18670fi
18671
b4e70030
JB
18672echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
18673echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 18674if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
18675
18676cat >>confdefs.h <<\_ACEOF
a3828db0 18677#define HAVE_PT_GETDBREGS 1
bec39cab 18678_ACEOF
3862412b 18679
97bf5e38 18680fi
3862412b 18681
a3828db0 18682# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
18683echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
18684echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 18685if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 18686 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18687else
bec39cab
AC
18688 cat >conftest.$ac_ext <<_ACEOF
18689/* confdefs.h. */
18690_ACEOF
18691cat confdefs.h >>conftest.$ac_ext
18692cat >>conftest.$ac_ext <<_ACEOF
18693/* end confdefs.h. */
a3828db0
MK
18694#include <sys/types.h>
18695#include <sys/ptrace.h>
bec39cab
AC
18696int
18697main ()
18698{
a3828db0 18699PT_GETXMMREGS;
bec39cab
AC
18700 ;
18701 return 0;
18702}
18703_ACEOF
18704rm -f conftest.$ac_objext
18705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18706 (eval $ac_compile) 2>conftest.er1
18707 ac_status=$?
18708 grep -v '^ *+' conftest.er1 >conftest.err
18709 rm -f conftest.er1
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
b4e70030
JB
18713 { ac_try='test -z "$ac_c_werror_flag"
18714 || test ! -s conftest.err'
bec39cab
AC
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest.$ac_objext'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
a3828db0 18726 gdb_cv_have_pt_getxmmregs=yes
3862412b 18727else
bec39cab
AC
18728 echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
b4e70030 18731gdb_cv_have_pt_getxmmregs=no
3862412b 18732fi
bec39cab 18733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
18734fi
18735
b4e70030
JB
18736echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
18737echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 18738if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
18739
18740cat >>confdefs.h <<\_ACEOF
a3828db0 18741#define HAVE_PT_GETXMMREGS 1
bec39cab 18742_ACEOF
3862412b 18743
97bf5e38 18744fi
3862412b 18745
97bf5e38
MK
18746# If we are configured native on GNU/Linux, work around problems with
18747# sys/procfs.h
18748# Also detect which type of /proc is in use, such as for Unixware or Solaris.
18749
18750if test "${target}" = "${host}"; then
18751 case "${host}" in
18752 i[3456]86-*-linux*)
60ca704f
SE
18753
18754cat >>confdefs.h <<\_ACEOF
97bf5e38 18755#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 18756_ACEOF
97bf5e38 18757
60ca704f
SE
18758
18759cat >>confdefs.h <<\_ACEOF
97bf5e38 18760#define sys_quotactl 1
bec39cab 18761_ACEOF
97bf5e38
MK
18762
18763 ;;
97bf5e38 18764 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
18765
18766cat >>confdefs.h <<\_ACEOF
97bf5e38 18767#define NEW_PROC_API 1
bec39cab 18768_ACEOF
97bf5e38
MK
18769
18770 ;;
0bbc026e 18771 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
18772
18773cat >>confdefs.h <<\_ACEOF
97bf5e38 18774#define NEW_PROC_API 1
bec39cab 18775_ACEOF
c960c18f
AC
18776
18777 ;;
18778 mips-sgi-irix5*)
18779 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
18780
18781cat >>confdefs.h <<\_ACEOF
c960c18f 18782#define _KMEMUSER 1
bec39cab 18783_ACEOF
97bf5e38
MK
18784
18785 ;;
18786 esac
18787fi
18788
18789if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
18790 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18791echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18792 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18794else
18795 cat >conftest.$ac_ext <<_ACEOF
18796/* confdefs.h. */
18797_ACEOF
18798cat confdefs.h >>conftest.$ac_ext
18799cat >>conftest.$ac_ext <<_ACEOF
18800/* end confdefs.h. */
596c9d4b
KB
18801
18802#define _SYSCALL32
18803#include <sys/procfs.h>
bec39cab
AC
18804int
18805main ()
18806{
97bf5e38 18807pstatus_t avar
bec39cab
AC
18808 ;
18809 return 0;
18810}
18811_ACEOF
18812rm -f conftest.$ac_objext
18813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18814 (eval $ac_compile) 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
b4e70030
JB
18821 { ac_try='test -z "$ac_c_werror_flag"
18822 || test ! -s conftest.err'
bec39cab
AC
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; } &&
18828 { ac_try='test -s conftest.$ac_objext'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
97bf5e38 18834 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 18835else
bec39cab
AC
18836 echo "$as_me: failed program was:" >&5
18837sed 's/^/| /' conftest.$ac_ext >&5
18838
b4e70030 18839bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 18840
596c9d4b 18841fi
bec39cab 18842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18843fi
18844
97bf5e38 18845 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
18846
18847cat >>confdefs.h <<\_ACEOF
97bf5e38 18848#define HAVE_PSTATUS_T 1
bec39cab 18849_ACEOF
596c9d4b
KB
18850
18851 fi
b4e70030
JB
18852 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18853echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 18854
b4e70030
JB
18855 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
18856echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18857 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18859else
bec39cab
AC
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
596c9d4b
KB
18866
18867#define _SYSCALL32
18868#include <sys/procfs.h>
bec39cab
AC
18869int
18870main ()
18871{
97bf5e38 18872prrun_t avar
bec39cab
AC
18873 ;
18874 return 0;
18875}
18876_ACEOF
18877rm -f conftest.$ac_objext
18878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879 (eval $ac_compile) 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
b4e70030
JB
18886 { ac_try='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
bec39cab
AC
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest.$ac_objext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
97bf5e38 18899 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 18900else
bec39cab
AC
18901 echo "$as_me: failed program was:" >&5
18902sed 's/^/| /' conftest.$ac_ext >&5
18903
b4e70030 18904bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 18905
596c9d4b 18906fi
bec39cab 18907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18908fi
18909
97bf5e38 18910 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
18911
18912cat >>confdefs.h <<\_ACEOF
97bf5e38 18913#define HAVE_PRRUN_T 1
bec39cab 18914_ACEOF
596c9d4b
KB
18915
18916 fi
b4e70030
JB
18917 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18918echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 18919
b4e70030
JB
18920 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18921echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18922 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 18924else
bec39cab
AC
18925 cat >conftest.$ac_ext <<_ACEOF
18926/* confdefs.h. */
18927_ACEOF
18928cat confdefs.h >>conftest.$ac_ext
18929cat >>conftest.$ac_ext <<_ACEOF
18930/* end confdefs.h. */
596c9d4b
KB
18931
18932#define _SYSCALL32
18933#include <sys/procfs.h>
bec39cab
AC
18934int
18935main ()
18936{
97bf5e38 18937gregset_t avar
bec39cab
AC
18938 ;
18939 return 0;
18940}
18941_ACEOF
18942rm -f conftest.$ac_objext
18943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18944 (eval $ac_compile) 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
b4e70030
JB
18951 { ac_try='test -z "$ac_c_werror_flag"
18952 || test ! -s conftest.err'
bec39cab
AC
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
97bf5e38 18964 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 18965else
bec39cab
AC
18966 echo "$as_me: failed program was:" >&5
18967sed 's/^/| /' conftest.$ac_ext >&5
18968
b4e70030 18969bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 18970
596c9d4b 18971fi
bec39cab 18972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
18973fi
18974
97bf5e38 18975 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
18976
18977cat >>confdefs.h <<\_ACEOF
97bf5e38 18978#define HAVE_GREGSET_T 1
bec39cab 18979_ACEOF
596c9d4b
KB
18980
18981 fi
b4e70030
JB
18982 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18983echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 18984
b4e70030
JB
18985 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18986echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
18987 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 18989else
bec39cab
AC
18990 cat >conftest.$ac_ext <<_ACEOF
18991/* confdefs.h. */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */
97bf5e38
MK
18996
18997#define _SYSCALL32
d84dd0c5 18998#include <sys/procfs.h>
bec39cab
AC
18999int
19000main ()
19001{
97bf5e38 19002fpregset_t avar
bec39cab
AC
19003 ;
19004 return 0;
19005}
19006_ACEOF
19007rm -f conftest.$ac_objext
19008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19009 (eval $ac_compile) 2>conftest.er1
19010 ac_status=$?
19011 grep -v '^ *+' conftest.er1 >conftest.err
19012 rm -f conftest.er1
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } &&
b4e70030
JB
19016 { ac_try='test -z "$ac_c_werror_flag"
19017 || test ! -s conftest.err'
bec39cab
AC
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; } &&
19023 { ac_try='test -s conftest.$ac_objext'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; }; then
97bf5e38 19029 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 19030else
bec39cab
AC
19031 echo "$as_me: failed program was:" >&5
19032sed 's/^/| /' conftest.$ac_ext >&5
19033
b4e70030 19034bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 19035
d84dd0c5 19036fi
bec39cab 19037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
19038fi
19039
97bf5e38 19040 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
19041
19042cat >>confdefs.h <<\_ACEOF
97bf5e38 19043#define HAVE_FPREGSET_T 1
bec39cab 19044_ACEOF
d84dd0c5 19045
97bf5e38 19046 fi
b4e70030
JB
19047 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19048echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 19049
b4e70030
JB
19050 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19051echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19052 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19054else
bec39cab
AC
19055 cat >conftest.$ac_ext <<_ACEOF
19056/* confdefs.h. */
19057_ACEOF
19058cat confdefs.h >>conftest.$ac_ext
19059cat >>conftest.$ac_ext <<_ACEOF
19060/* end confdefs.h. */
c906108c 19061
97bf5e38
MK
19062#define _SYSCALL32
19063#include <sys/procfs.h>
bec39cab
AC
19064int
19065main ()
19066{
97bf5e38 19067prgregset_t avar
bec39cab
AC
19068 ;
19069 return 0;
19070}
19071_ACEOF
19072rm -f conftest.$ac_objext
19073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19074 (eval $ac_compile) 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
b4e70030
JB
19081 { ac_try='test -z "$ac_c_werror_flag"
19082 || test ! -s conftest.err'
bec39cab
AC
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest.$ac_objext'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
97bf5e38 19094 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 19095else
bec39cab
AC
19096 echo "$as_me: failed program was:" >&5
19097sed 's/^/| /' conftest.$ac_ext >&5
19098
b4e70030 19099bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 19100
c906108c 19101fi
bec39cab 19102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19103fi
19104
97bf5e38 19105 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
19106
19107cat >>confdefs.h <<\_ACEOF
97bf5e38 19108#define HAVE_PRGREGSET_T 1
bec39cab 19109_ACEOF
c906108c 19110
97bf5e38 19111 fi
b4e70030
JB
19112 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19113echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 19114
b4e70030
JB
19115 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19116echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19117 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19119else
bec39cab
AC
19120 cat >conftest.$ac_ext <<_ACEOF
19121/* confdefs.h. */
19122_ACEOF
19123cat confdefs.h >>conftest.$ac_ext
19124cat >>conftest.$ac_ext <<_ACEOF
19125/* end confdefs.h. */
97bf5e38
MK
19126
19127#define _SYSCALL32
19128#include <sys/procfs.h>
bec39cab
AC
19129int
19130main ()
19131{
97bf5e38 19132prfpregset_t avar
bec39cab
AC
19133 ;
19134 return 0;
19135}
19136_ACEOF
19137rm -f conftest.$ac_objext
19138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19139 (eval $ac_compile) 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
b4e70030
JB
19146 { ac_try='test -z "$ac_c_werror_flag"
19147 || test ! -s conftest.err'
bec39cab
AC
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try='test -s conftest.$ac_objext'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
97bf5e38 19159 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 19160else
bec39cab
AC
19161 echo "$as_me: failed program was:" >&5
19162sed 's/^/| /' conftest.$ac_ext >&5
19163
b4e70030 19164bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 19165
d45fe813 19166fi
bec39cab 19167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19168fi
19169
97bf5e38 19170 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
19171
19172cat >>confdefs.h <<\_ACEOF
97bf5e38 19173#define HAVE_PRFPREGSET_T 1
bec39cab 19174_ACEOF
d45fe813 19175
97bf5e38 19176 fi
b4e70030
JB
19177 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19178echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 19179
b4e70030
JB
19180 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19181echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19182 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19184else
bec39cab
AC
19185 cat >conftest.$ac_ext <<_ACEOF
19186/* confdefs.h. */
19187_ACEOF
19188cat confdefs.h >>conftest.$ac_ext
19189cat >>conftest.$ac_ext <<_ACEOF
19190/* end confdefs.h. */
97bf5e38
MK
19191
19192#define _SYSCALL32
19193#include <sys/procfs.h>
bec39cab
AC
19194int
19195main ()
19196{
97bf5e38 19197prgregset32_t avar
bec39cab
AC
19198 ;
19199 return 0;
19200}
19201_ACEOF
19202rm -f conftest.$ac_objext
19203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19204 (eval $ac_compile) 2>conftest.er1
19205 ac_status=$?
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
b4e70030
JB
19211 { ac_try='test -z "$ac_c_werror_flag"
19212 || test ! -s conftest.err'
bec39cab
AC
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
97bf5e38 19224 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 19225else
bec39cab
AC
19226 echo "$as_me: failed program was:" >&5
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
b4e70030 19229bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 19230
d45fe813 19231fi
bec39cab 19232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19233fi
19234
97bf5e38 19235 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
19236
19237cat >>confdefs.h <<\_ACEOF
97bf5e38 19238#define HAVE_PRGREGSET32_T 1
bec39cab 19239_ACEOF
d45fe813 19240
97bf5e38 19241 fi
b4e70030
JB
19242 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19243echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 19244
b4e70030
JB
19245 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19246echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19247 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19249else
bec39cab
AC
19250 cat >conftest.$ac_ext <<_ACEOF
19251/* confdefs.h. */
19252_ACEOF
19253cat confdefs.h >>conftest.$ac_ext
19254cat >>conftest.$ac_ext <<_ACEOF
19255/* end confdefs.h. */
97bf5e38
MK
19256
19257#define _SYSCALL32
19258#include <sys/procfs.h>
bec39cab
AC
19259int
19260main ()
19261{
97bf5e38 19262prfpregset32_t avar
bec39cab
AC
19263 ;
19264 return 0;
19265}
19266_ACEOF
19267rm -f conftest.$ac_objext
19268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19269 (eval $ac_compile) 2>conftest.er1
19270 ac_status=$?
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
b4e70030
JB
19276 { ac_try='test -z "$ac_c_werror_flag"
19277 || test ! -s conftest.err'
bec39cab
AC
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest.$ac_objext'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
97bf5e38 19289 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 19290else
bec39cab
AC
19291 echo "$as_me: failed program was:" >&5
19292sed 's/^/| /' conftest.$ac_ext >&5
19293
b4e70030 19294bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 19295
d45fe813 19296fi
bec39cab 19297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19298fi
19299
97bf5e38 19300 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
19301
19302cat >>confdefs.h <<\_ACEOF
97bf5e38 19303#define HAVE_PRFPREGSET32_T 1
bec39cab 19304_ACEOF
d45fe813 19305
97bf5e38 19306 fi
b4e70030
JB
19307 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19308echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 19309
b4e70030
JB
19310 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19311echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19312 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19314else
bec39cab
AC
19315 cat >conftest.$ac_ext <<_ACEOF
19316/* confdefs.h. */
19317_ACEOF
19318cat confdefs.h >>conftest.$ac_ext
19319cat >>conftest.$ac_ext <<_ACEOF
19320/* end confdefs.h. */
97bf5e38 19321
d45fe813 19322#define _SYSCALL32
97bf5e38 19323#include <sys/procfs.h>
bec39cab
AC
19324int
19325main ()
19326{
97bf5e38 19327lwpid_t avar
bec39cab
AC
19328 ;
19329 return 0;
19330}
19331_ACEOF
19332rm -f conftest.$ac_objext
19333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19334 (eval $ac_compile) 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
b4e70030
JB
19341 { ac_try='test -z "$ac_c_werror_flag"
19342 || test ! -s conftest.err'
bec39cab
AC
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest.$ac_objext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
97bf5e38 19354 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 19355else
bec39cab
AC
19356 echo "$as_me: failed program was:" >&5
19357sed 's/^/| /' conftest.$ac_ext >&5
19358
b4e70030 19359bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 19360
d45fe813 19361fi
bec39cab 19362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19363fi
19364
97bf5e38 19365 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
19366
19367cat >>confdefs.h <<\_ACEOF
97bf5e38 19368#define HAVE_LWPID_T 1
bec39cab 19369_ACEOF
d45fe813 19370
97bf5e38 19371 fi
b4e70030
JB
19372 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19373echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 19374
b4e70030
JB
19375 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19376echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19377 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19379else
bec39cab
AC
19380 cat >conftest.$ac_ext <<_ACEOF
19381/* confdefs.h. */
19382_ACEOF
19383cat confdefs.h >>conftest.$ac_ext
19384cat >>conftest.$ac_ext <<_ACEOF
19385/* end confdefs.h. */
c906108c 19386
97bf5e38
MK
19387#define _SYSCALL32
19388#include <sys/procfs.h>
bec39cab
AC
19389int
19390main ()
19391{
97bf5e38 19392psaddr_t avar
bec39cab
AC
19393 ;
19394 return 0;
19395}
19396_ACEOF
19397rm -f conftest.$ac_objext
19398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19399 (eval $ac_compile) 2>conftest.er1
19400 ac_status=$?
19401 grep -v '^ *+' conftest.er1 >conftest.err
19402 rm -f conftest.er1
19403 cat conftest.err >&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } &&
b4e70030
JB
19406 { ac_try='test -z "$ac_c_werror_flag"
19407 || test ! -s conftest.err'
bec39cab
AC
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; } &&
19413 { ac_try='test -s conftest.$ac_objext'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
97bf5e38 19419 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 19420else
bec39cab
AC
19421 echo "$as_me: failed program was:" >&5
19422sed 's/^/| /' conftest.$ac_ext >&5
19423
b4e70030 19424bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 19425
c906108c 19426fi
bec39cab 19427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19428fi
19429
97bf5e38 19430 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
19431
19432cat >>confdefs.h <<\_ACEOF
97bf5e38 19433#define HAVE_PSADDR_T 1
bec39cab 19434_ACEOF
c906108c 19435
97bf5e38 19436 fi
b4e70030
JB
19437 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19438echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 19439
b4e70030
JB
19440 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19441echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19442 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19444else
bec39cab
AC
19445 cat >conftest.$ac_ext <<_ACEOF
19446/* confdefs.h. */
19447_ACEOF
19448cat confdefs.h >>conftest.$ac_ext
19449cat >>conftest.$ac_ext <<_ACEOF
19450/* end confdefs.h. */
c906108c 19451
97bf5e38
MK
19452#define _SYSCALL32
19453#include <sys/procfs.h>
bec39cab
AC
19454int
19455main ()
19456{
97bf5e38 19457prsysent_t avar
bec39cab
AC
19458 ;
19459 return 0;
19460}
19461_ACEOF
19462rm -f conftest.$ac_objext
19463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19464 (eval $ac_compile) 2>conftest.er1
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
b4e70030
JB
19471 { ac_try='test -z "$ac_c_werror_flag"
19472 || test ! -s conftest.err'
bec39cab
AC
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try='test -s conftest.$ac_objext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
97bf5e38 19484 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 19485else
bec39cab
AC
19486 echo "$as_me: failed program was:" >&5
19487sed 's/^/| /' conftest.$ac_ext >&5
19488
b4e70030 19489bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 19490
c906108c 19491fi
bec39cab 19492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19493fi
19494
97bf5e38 19495 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
19496
19497cat >>confdefs.h <<\_ACEOF
97bf5e38 19498#define HAVE_PRSYSENT_T 1
bec39cab 19499_ACEOF
c906108c 19500
97bf5e38 19501 fi
b4e70030
JB
19502 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
19503echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 19504
b4e70030
JB
19505 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
19506echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19507 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19509else
bec39cab
AC
19510 cat >conftest.$ac_ext <<_ACEOF
19511/* confdefs.h. */
19512_ACEOF
19513cat confdefs.h >>conftest.$ac_ext
19514cat >>conftest.$ac_ext <<_ACEOF
19515/* end confdefs.h. */
c906108c 19516
97bf5e38
MK
19517#define _SYSCALL32
19518#include <sys/procfs.h>
bec39cab
AC
19519int
19520main ()
19521{
97bf5e38 19522pr_sigset_t avar
bec39cab
AC
19523 ;
19524 return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext
19528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19529 (eval $ac_compile) 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
b4e70030
JB
19536 { ac_try='test -z "$ac_c_werror_flag"
19537 || test ! -s conftest.err'
bec39cab
AC
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; } &&
19543 { ac_try='test -s conftest.$ac_objext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
97bf5e38 19549 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 19550else
bec39cab
AC
19551 echo "$as_me: failed program was:" >&5
19552sed 's/^/| /' conftest.$ac_ext >&5
19553
b4e70030 19554bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 19555
c906108c 19556fi
bec39cab 19557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19558fi
19559
97bf5e38 19560 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
19561
19562cat >>confdefs.h <<\_ACEOF
97bf5e38 19563#define HAVE_PR_SIGSET_T 1
bec39cab 19564_ACEOF
c906108c 19565
97bf5e38 19566 fi
b4e70030
JB
19567 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
19568echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 19569
b4e70030
JB
19570 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
19571echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19572 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19574else
bec39cab
AC
19575 cat >conftest.$ac_ext <<_ACEOF
19576/* confdefs.h. */
19577_ACEOF
19578cat confdefs.h >>conftest.$ac_ext
19579cat >>conftest.$ac_ext <<_ACEOF
19580/* end confdefs.h. */
c906108c 19581
97bf5e38
MK
19582#define _SYSCALL32
19583#include <sys/procfs.h>
bec39cab
AC
19584int
19585main ()
19586{
97bf5e38 19587pr_sigaction64_t avar
bec39cab
AC
19588 ;
19589 return 0;
19590}
19591_ACEOF
19592rm -f conftest.$ac_objext
19593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
b4e70030
JB
19601 { ac_try='test -z "$ac_c_werror_flag"
19602 || test ! -s conftest.err'
bec39cab
AC
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
97bf5e38 19614 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 19615else
bec39cab
AC
19616 echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
b4e70030 19619bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 19620
c906108c 19621fi
bec39cab 19622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19623fi
19624
97bf5e38 19625 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
19626
19627cat >>confdefs.h <<\_ACEOF
97bf5e38 19628#define HAVE_PR_SIGACTION64_T 1
bec39cab 19629_ACEOF
c906108c 19630
97bf5e38 19631 fi
b4e70030
JB
19632 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
19633echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 19634
b4e70030
JB
19635 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
19636echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19637 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19639else
bec39cab
AC
19640 cat >conftest.$ac_ext <<_ACEOF
19641/* confdefs.h. */
19642_ACEOF
19643cat confdefs.h >>conftest.$ac_ext
19644cat >>conftest.$ac_ext <<_ACEOF
19645/* end confdefs.h. */
97bf5e38
MK
19646
19647#define _SYSCALL32
19648#include <sys/procfs.h>
bec39cab
AC
19649int
19650main ()
19651{
97bf5e38 19652pr_siginfo64_t avar
bec39cab
AC
19653 ;
19654 return 0;
19655}
19656_ACEOF
19657rm -f conftest.$ac_objext
19658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19659 (eval $ac_compile) 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } &&
b4e70030
JB
19666 { ac_try='test -z "$ac_c_werror_flag"
19667 || test ! -s conftest.err'
bec39cab
AC
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; } &&
19673 { ac_try='test -s conftest.$ac_objext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
97bf5e38
MK
19679 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
19680else
bec39cab
AC
19681 echo "$as_me: failed program was:" >&5
19682sed 's/^/| /' conftest.$ac_ext >&5
19683
b4e70030 19684bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 19685
97bf5e38 19686fi
bec39cab 19687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19688fi
c906108c 19689
97bf5e38 19690 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
19691
19692cat >>confdefs.h <<\_ACEOF
97bf5e38 19693#define HAVE_PR_SIGINFO64_T 1
bec39cab 19694_ACEOF
c906108c 19695
97bf5e38 19696 fi
b4e70030
JB
19697 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
19698echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
19699
19700
97bf5e38
MK
19701
19702
19703
97bf5e38 19704 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
19705 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
19706echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
19707 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
19709else
19710 if test "$cross_compiling" = yes; then
97bf5e38 19711 gdb_cv_prfpregset_t_broken=yes
c906108c 19712else
bec39cab
AC
19713 cat >conftest.$ac_ext <<_ACEOF
19714/* confdefs.h. */
19715_ACEOF
19716cat confdefs.h >>conftest.$ac_ext
19717cat >>conftest.$ac_ext <<_ACEOF
19718/* end confdefs.h. */
97bf5e38
MK
19719#include <sys/procfs.h>
19720 int main ()
19721 {
19722 if (sizeof (prfpregset_t) == sizeof (void *))
19723 return 1;
19724 return 0;
19725 }
bec39cab
AC
19726_ACEOF
19727rm -f conftest$ac_exeext
19728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
97bf5e38 19738 gdb_cv_prfpregset_t_broken=no
c906108c 19739else
bec39cab
AC
19740 echo "$as_me: program exited with status $ac_status" >&5
19741echo "$as_me: failed program was:" >&5
19742sed 's/^/| /' conftest.$ac_ext >&5
19743
19744( exit $ac_status )
19745gdb_cv_prfpregset_t_broken=yes
c906108c 19746fi
b4e70030 19747rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19748fi
c906108c
SS
19749fi
19750
b4e70030
JB
19751 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
19752echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 19753 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
19754
19755cat >>confdefs.h <<\_ACEOF
97bf5e38 19756#define PRFPREGSET_T_BROKEN 1
bec39cab 19757_ACEOF
c906108c 19758
97bf5e38
MK
19759 fi
19760 fi
c906108c 19761
bec39cab 19762
b4e70030
JB
19763 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
19764echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19765 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19767else
bec39cab
AC
19768 cat >conftest.$ac_ext <<_ACEOF
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
97bf5e38
MK
19774#include <unistd.h>
19775#include <sys/types.h>
19776#include <sys/procfs.h>
19777
bec39cab
AC
19778int
19779main ()
19780{
97bf5e38
MK
19781
19782 int dummy;;
19783 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
19784
19785 ;
19786 return 0;
19787}
19788_ACEOF
19789rm -f conftest.$ac_objext
19790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791 (eval $ac_compile) 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
b4e70030
JB
19798 { ac_try='test -z "$ac_c_werror_flag"
19799 || test ! -s conftest.err'
bec39cab
AC
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
97bf5e38 19811 gdb_cv_have_procfs_piocset=yes
c906108c 19812else
bec39cab
AC
19813 echo "$as_me: failed program was:" >&5
19814sed 's/^/| /' conftest.$ac_ext >&5
19815
b4e70030 19816gdb_cv_have_procfs_piocset=no
c906108c 19817fi
bec39cab 19818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19819fi
97bf5e38 19820
b4e70030
JB
19821 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
19822echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 19823 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
19824
19825cat >>confdefs.h <<\_ACEOF
97bf5e38 19826#define HAVE_PROCFS_PIOCSET 1
bec39cab 19827_ACEOF
97bf5e38
MK
19828
19829 fi
c906108c 19830fi
c906108c 19831
97bf5e38 19832if test ${host} = ${target} ; then
bec39cab 19833
b4e70030
JB
19834 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
19835echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
19836 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838else
19839 cat >conftest.$ac_ext <<_ACEOF
19840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h. */
97bf5e38 19845#include <link.h>
bec39cab
AC
19846int
19847main ()
19848{
97bf5e38 19849struct link_map lm; (void) lm.l_addr;
bec39cab
AC
19850 ;
19851 return 0;
19852}
19853_ACEOF
19854rm -f conftest.$ac_objext
19855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19856 (eval $ac_compile) 2>conftest.er1
19857 ac_status=$?
19858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
b4e70030
JB
19863 { ac_try='test -z "$ac_c_werror_flag"
19864 || test ! -s conftest.err'
bec39cab
AC
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest.$ac_objext'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
97bf5e38 19876 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 19877else
bec39cab
AC
19878 echo "$as_me: failed program was:" >&5
19879sed 's/^/| /' conftest.$ac_ext >&5
19880
b4e70030 19881gdb_cv_have_struct_link_map_with_l_members=no
c906108c 19882fi
bec39cab 19883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19884fi
19885
b4e70030
JB
19886 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19887echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 19888 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
19889
19890cat >>confdefs.h <<\_ACEOF
97bf5e38 19891#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 19892_ACEOF
97bf5e38
MK
19893
19894 fi
19895
bec39cab 19896
b4e70030
JB
19897 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19898echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
19899 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19901else
bec39cab
AC
19902 cat >conftest.$ac_ext <<_ACEOF
19903/* confdefs.h. */
19904_ACEOF
19905cat confdefs.h >>conftest.$ac_ext
19906cat >>conftest.$ac_ext <<_ACEOF
19907/* end confdefs.h. */
97bf5e38
MK
19908#include <sys/types.h>
19909#include <link.h>
bec39cab
AC
19910int
19911main ()
19912{
97bf5e38 19913struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
19914 ;
19915 return 0;
19916}
19917_ACEOF
19918rm -f conftest.$ac_objext
19919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19920 (eval $ac_compile) 2>conftest.er1
19921 ac_status=$?
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
b4e70030
JB
19927 { ac_try='test -z "$ac_c_werror_flag"
19928 || test ! -s conftest.err'
bec39cab
AC
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; } &&
19934 { ac_try='test -s conftest.$ac_objext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
97bf5e38
MK
19940 gdb_cv_have_struct_link_map_with_lm_members=yes
19941else
bec39cab
AC
19942 echo "$as_me: failed program was:" >&5
19943sed 's/^/| /' conftest.$ac_ext >&5
19944
b4e70030 19945gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 19946fi
bec39cab 19947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19948fi
c906108c 19949
b4e70030
JB
19950 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19951echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 19952 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
19953
19954cat >>confdefs.h <<\_ACEOF
97bf5e38 19955#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 19956_ACEOF
97bf5e38
MK
19957
19958 fi
19959
bec39cab 19960
b4e70030
JB
19961 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19962echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
19963 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19965else
bec39cab
AC
19966 cat >conftest.$ac_ext <<_ACEOF
19967/* confdefs.h. */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h. */
97bf5e38
MK
19972#include <sys/types.h>
19973#ifdef HAVE_NLIST_H
19974#include <nlist.h>
19975#endif
19976#include <link.h>
bec39cab
AC
19977int
19978main ()
19979{
97bf5e38 19980struct so_map lm; (void) lm.som_addr;
bec39cab
AC
19981 ;
19982 return 0;
19983}
19984_ACEOF
19985rm -f conftest.$ac_objext
19986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19987 (eval $ac_compile) 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
b4e70030
JB
19994 { ac_try='test -z "$ac_c_werror_flag"
19995 || test ! -s conftest.err'
bec39cab
AC
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
97bf5e38
MK
20007 gdb_cv_have_struct_so_map_with_som_members=yes
20008else
bec39cab
AC
20009 echo "$as_me: failed program was:" >&5
20010sed 's/^/| /' conftest.$ac_ext >&5
20011
b4e70030 20012gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 20013fi
bec39cab 20014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20015fi
c906108c 20016
b4e70030
JB
20017 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20018echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 20019 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
20020
20021cat >>confdefs.h <<\_ACEOF
97bf5e38 20022#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 20023_ACEOF
c906108c 20024
97bf5e38 20025 fi
c906108c 20026
bec39cab 20027
b4e70030
JB
20028 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20029echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
20030 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20032else
bec39cab
AC
20033 cat >conftest.$ac_ext <<_ACEOF
20034/* confdefs.h. */
20035_ACEOF
20036cat confdefs.h >>conftest.$ac_ext
20037cat >>conftest.$ac_ext <<_ACEOF
20038/* end confdefs.h. */
97bf5e38
MK
20039#define _SYSCALL32
20040#include <sys/link.h>
bec39cab
AC
20041int
20042main ()
20043{
97bf5e38 20044struct link_map32 l;
bec39cab
AC
20045 ;
20046 return 0;
20047}
20048_ACEOF
20049rm -f conftest.$ac_objext
20050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051 (eval $ac_compile) 2>conftest.er1
20052 ac_status=$?
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
b4e70030
JB
20058 { ac_try='test -z "$ac_c_werror_flag"
20059 || test ! -s conftest.err'
bec39cab
AC
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } &&
20065 { ac_try='test -s conftest.$ac_objext'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20068 ac_status=$?
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; }; then
97bf5e38
MK
20071 gdb_cv_have_struct_link_map32=yes
20072else
bec39cab
AC
20073 echo "$as_me: failed program was:" >&5
20074sed 's/^/| /' conftest.$ac_ext >&5
20075
b4e70030 20076gdb_cv_have_struct_link_map32=no
97bf5e38 20077fi
bec39cab 20078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20079fi
c906108c 20080
b4e70030
JB
20081 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20082echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 20083 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
20084
20085cat >>confdefs.h <<\_ACEOF
97bf5e38 20086#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 20087_ACEOF
c906108c 20088
60ca704f
SE
20089
20090cat >>confdefs.h <<\_ACEOF
97bf5e38 20091#define _SYSCALL32 1
bec39cab 20092_ACEOF
c906108c 20093
97bf5e38
MK
20094 fi
20095fi
c906108c 20096
bc8bcb4b 20097# Check if the compiler supports the `long long' type.
c906108c 20098
b4e70030
JB
20099echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20100echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
20101if test "${gdb_cv_c_long_long+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20103else
bec39cab
AC
20104 cat >conftest.$ac_ext <<_ACEOF
20105/* confdefs.h. */
20106_ACEOF
20107cat confdefs.h >>conftest.$ac_ext
20108cat >>conftest.$ac_ext <<_ACEOF
20109/* end confdefs.h. */
bc8bcb4b 20110extern long long foo;
bec39cab
AC
20111int
20112main ()
20113{
bc8bcb4b 20114switch (foo & 2) { case 0: return 1; }
bec39cab
AC
20115 ;
20116 return 0;
20117}
20118_ACEOF
20119rm -f conftest.$ac_objext
20120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20121 (eval $ac_compile) 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
b4e70030
JB
20128 { ac_try='test -z "$ac_c_werror_flag"
20129 || test ! -s conftest.err'
bec39cab
AC
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest.$ac_objext'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
97bf5e38
MK
20141 gdb_cv_c_long_long=yes
20142else
bec39cab
AC
20143 echo "$as_me: failed program was:" >&5
20144sed 's/^/| /' conftest.$ac_ext >&5
20145
b4e70030 20146gdb_cv_c_long_long=no
97bf5e38 20147fi
bec39cab 20148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20149fi
b4e70030
JB
20150echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20151echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 20152if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
20153
20154cat >>confdefs.h <<\_ACEOF
97bf5e38 20155#define CC_HAS_LONG_LONG 1
bec39cab 20156_ACEOF
97bf5e38
MK
20157
20158fi
20159
bc8bcb4b 20160# Check if the compiler and runtime support printing long longs.
97bf5e38 20161
b4e70030
JB
20162echo "$as_me:$LINENO: checking for long long support in printf" >&5
20163echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
20164if test "${gdb_cv_printf_has_long_long+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20166else
20167 if test "$cross_compiling" = yes; then
20168 gdb_cv_printf_has_long_long=no
20169else
bec39cab
AC
20170 cat >conftest.$ac_ext <<_ACEOF
20171/* confdefs.h. */
20172_ACEOF
20173cat confdefs.h >>conftest.$ac_ext
20174cat >>conftest.$ac_ext <<_ACEOF
20175/* end confdefs.h. */
bc8bcb4b
MK
20176$ac_includes_default
20177int
20178main ()
20179{
20180char buf[32];
97bf5e38
MK
20181 long long l = 0;
20182 l = (l << 16) + 0x0123;
20183 l = (l << 16) + 0x4567;
20184 l = (l << 16) + 0x89ab;
20185 l = (l << 16) + 0xcdef;
20186 sprintf (buf, "0x%016llx", l);
20187 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
20188 ;
20189 return 0;
c906108c 20190}
bec39cab
AC
20191_ACEOF
20192rm -f conftest$ac_exeext
20193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20194 (eval $ac_link) 2>&5
20195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
97bf5e38
MK
20203 gdb_cv_printf_has_long_long=yes
20204else
bec39cab
AC
20205 echo "$as_me: program exited with status $ac_status" >&5
20206echo "$as_me: failed program was:" >&5
20207sed 's/^/| /' conftest.$ac_ext >&5
20208
20209( exit $ac_status )
20210gdb_cv_printf_has_long_long=no
97bf5e38 20211fi
b4e70030 20212rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20213fi
97bf5e38 20214fi
b4e70030
JB
20215echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20216echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 20217if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
20218
20219cat >>confdefs.h <<\_ACEOF
97bf5e38 20220#define PRINTF_HAS_LONG_LONG 1
bec39cab 20221_ACEOF
97bf5e38
MK
20222
20223fi
97bf5e38 20224
bc8bcb4b
MK
20225# Check if the compiler supports the `long double' type. We can't use
20226# AC_C_LONG_DOUBLE because that one does additional checks on the
20227# constants defined in <float.h> that fail on some systems,
20228# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 20229
b4e70030
JB
20230echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20231echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 20232if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 20233 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20234else
bec39cab
AC
20235 cat >conftest.$ac_ext <<_ACEOF
20236/* confdefs.h. */
20237_ACEOF
20238cat confdefs.h >>conftest.$ac_ext
20239cat >>conftest.$ac_ext <<_ACEOF
20240/* end confdefs.h. */
97bf5e38 20241long double foo;
bec39cab
AC
20242_ACEOF
20243rm -f conftest.$ac_objext
20244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20245 (eval $ac_compile) 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
b4e70030
JB
20252 { ac_try='test -z "$ac_c_werror_flag"
20253 || test ! -s conftest.err'
bec39cab
AC
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
bc8bcb4b 20265 gdb_cv_c_long_double=yes
97bf5e38 20266else
bec39cab
AC
20267 echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
b4e70030 20270gdb_cv_c_long_double=no
97bf5e38 20271fi
bec39cab 20272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20273fi
b4e70030
JB
20274echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20275echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 20276if test $gdb_cv_c_long_double = yes; then
c906108c 20277
bc8bcb4b 20278cat >>confdefs.h <<\_ACEOF
97bf5e38 20279#define HAVE_LONG_DOUBLE 1
bec39cab 20280_ACEOF
97bf5e38
MK
20281
20282fi
20283
bc8bcb4b 20284# Check if the compiler and runtime support printing long doubles.
97bf5e38 20285
b4e70030
JB
20286echo "$as_me:$LINENO: checking for long double support in printf" >&5
20287echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
20288if test "${gdb_cv_printf_has_long_double+set}" = set; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20290else
20291 if test "$cross_compiling" = yes; then
20292 gdb_cv_printf_has_long_double=no
20293else
bec39cab
AC
20294 cat >conftest.$ac_ext <<_ACEOF
20295/* confdefs.h. */
20296_ACEOF
20297cat confdefs.h >>conftest.$ac_ext
20298cat >>conftest.$ac_ext <<_ACEOF
20299/* end confdefs.h. */
bc8bcb4b
MK
20300$ac_includes_default
20301int
20302main ()
20303{
20304char buf[16];
97bf5e38
MK
20305 long double f = 3.141592653;
20306 sprintf (buf, "%Lg", f);
20307 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
20308 ;
20309 return 0;
97bf5e38 20310}
bec39cab
AC
20311_ACEOF
20312rm -f conftest$ac_exeext
20313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20314 (eval $ac_link) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
97bf5e38 20323 gdb_cv_printf_has_long_double=yes
c906108c 20324else
bec39cab
AC
20325 echo "$as_me: program exited with status $ac_status" >&5
20326echo "$as_me: failed program was:" >&5
20327sed 's/^/| /' conftest.$ac_ext >&5
20328
20329( exit $ac_status )
20330gdb_cv_printf_has_long_double=no
c906108c 20331fi
b4e70030 20332rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20333fi
c906108c 20334fi
b4e70030
JB
20335echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20336echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 20337if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
20338
20339cat >>confdefs.h <<\_ACEOF
97bf5e38 20340#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 20341_ACEOF
97bf5e38
MK
20342
20343fi
97bf5e38 20344
bc8bcb4b 20345# Check if the compiler and runtime support scanning long doubles.
97bf5e38 20346
b4e70030
JB
20347echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20348echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
20349if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20351else
20352 if test "$cross_compiling" = yes; then
20353 gdb_cv_scanf_has_long_double=no
20354else
bec39cab
AC
20355 cat >conftest.$ac_ext <<_ACEOF
20356/* confdefs.h. */
20357_ACEOF
20358cat confdefs.h >>conftest.$ac_ext
20359cat >>conftest.$ac_ext <<_ACEOF
20360/* end confdefs.h. */
bc8bcb4b
MK
20361#include <stdio.h>
20362int
20363main ()
20364{
20365char *buf = "3.141592653";
97bf5e38
MK
20366 long double f = 0;
20367 sscanf (buf, "%Lg", &f);
20368 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
20369 ;
20370 return 0;
97bf5e38 20371}
bec39cab
AC
20372_ACEOF
20373rm -f conftest$ac_exeext
20374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20375 (eval $ac_link) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
97bf5e38
MK
20384 gdb_cv_scanf_has_long_double=yes
20385else
bec39cab
AC
20386 echo "$as_me: program exited with status $ac_status" >&5
20387echo "$as_me: failed program was:" >&5
20388sed 's/^/| /' conftest.$ac_ext >&5
20389
20390( exit $ac_status )
20391gdb_cv_scanf_has_long_double=no
97bf5e38 20392fi
b4e70030 20393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20394fi
c906108c 20395fi
b4e70030
JB
20396echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20397echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 20398if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
20399
20400cat >>confdefs.h <<\_ACEOF
97bf5e38 20401#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 20402_ACEOF
97bf5e38
MK
20403
20404fi
c906108c 20405
438013df
AO
20406case ${host_os} in
20407aix*)
b4e70030
JB
20408 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20409echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
20410if test "${gdb_cv_bigtoc+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 20412else
bec39cab 20413
438013df
AO
20414 SAVE_LDFLAGS=$LDFLAGS
20415
20416 case $GCC in
20417 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20418 *) gdb_cv_bigtoc=-bbigtoc ;;
20419 esac
20420
20421 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
20422 cat >conftest.$ac_ext <<_ACEOF
20423/* confdefs.h. */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h. */
438013df 20428
bec39cab
AC
20429int
20430main ()
20431{
438013df 20432int i;
bec39cab
AC
20433 ;
20434 return 0;
20435}
20436_ACEOF
20437rm -f conftest.$ac_objext conftest$ac_exeext
20438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20439 (eval $ac_link) 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } &&
b4e70030
JB
20446 { ac_try='test -z "$ac_c_werror_flag"
20447 || test ! -s conftest.err'
bec39cab
AC
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; } &&
20453 { ac_try='test -s conftest$ac_exeext'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
438013df
AO
20459 :
20460else
bec39cab
AC
20461 echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
b4e70030 20464gdb_cv_bigtoc=
438013df 20465fi
bec39cab
AC
20466rm -f conftest.err conftest.$ac_objext \
20467 conftest$ac_exeext conftest.$ac_ext
ec76baa5 20468 LDFLAGS="${SAVE_LDFLAGS}"
438013df 20469
bec39cab 20470fi
b4e70030
JB
20471echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
20472echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
20473 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
20474 ;;
20475esac
20476
c906108c
SS
20477
20478
20479if test ${build} = ${host} -a ${host} = ${target} ; then
20480 case ${host_os} in
20481 hpux*)
b4e70030
JB
20482 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
20483echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
20484 if test -f /usr/include/dce/cma_config.h ; then
20485 if test "$GCC" = "yes" ; then
b4e70030
JB
20486 echo "$as_me:$LINENO: result: yes" >&5
20487echo "${ECHO_T}yes" >&6
60ca704f
SE
20488
20489cat >>confdefs.h <<\_ACEOF
c906108c 20490#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 20491_ACEOF
c906108c 20492
3483b318 20493 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
20494 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
20495 else
b4e70030
JB
20496 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
20497echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
20498 fi
20499 else
b4e70030
JB
20500 echo "$as_me:$LINENO: result: no" >&5
20501echo "${ECHO_T}no" >&6
c906108c
SS
20502 fi
20503 ;;
20504 solaris*)
d92419e5
JB
20505 # See if thread_db library is around for Solaris thread debugging.
20506 # Note that we must explicitly test for version 1 of the library
20507 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
20508 # the same API.
b4e70030
JB
20509 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
20510echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 20511 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
20512 echo "$as_me:$LINENO: result: yes" >&5
20513echo "${ECHO_T}yes" >&6
60ca704f
SE
20514
20515cat >>confdefs.h <<\_ACEOF
c906108c 20516#define HAVE_THREAD_DB_LIB 1
bec39cab 20517_ACEOF
c906108c 20518
3483b318 20519 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 20520 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 20521
b4e70030
JB
20522echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20523echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
20524if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20526else
bec39cab 20527 ac_check_lib_save_LIBS=$LIBS
c906108c 20528LIBS="-ldl $LIBS"
bec39cab
AC
20529cat >conftest.$ac_ext <<_ACEOF
20530/* confdefs.h. */
20531_ACEOF
20532cat confdefs.h >>conftest.$ac_ext
20533cat >>conftest.$ac_ext <<_ACEOF
20534/* end confdefs.h. */
20535
b4e70030 20536/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
20537#ifdef __cplusplus
20538extern "C"
20539#endif
b4e70030
JB
20540/* We use char because int might match the return type of a gcc2
20541 builtin and then its argument prototype would still apply. */
bec39cab
AC
20542char dlopen ();
20543int
20544main ()
20545{
b4e70030 20546dlopen ();
bec39cab
AC
20547 ;
20548 return 0;
20549}
20550_ACEOF
20551rm -f conftest.$ac_objext conftest$ac_exeext
20552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553 (eval $ac_link) 2>conftest.er1
20554 ac_status=$?
20555 grep -v '^ *+' conftest.er1 >conftest.err
20556 rm -f conftest.er1
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
b4e70030
JB
20560 { ac_try='test -z "$ac_c_werror_flag"
20561 || test ! -s conftest.err'
bec39cab
AC
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest$ac_exeext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_cv_lib_dl_dlopen=yes
20574else
20575 echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
b4e70030 20578ac_cv_lib_dl_dlopen=no
bec39cab
AC
20579fi
20580rm -f conftest.err conftest.$ac_objext \
20581 conftest$ac_exeext conftest.$ac_ext
20582LIBS=$ac_check_lib_save_LIBS
20583fi
b4e70030
JB
20584echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20585echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
20586if test $ac_cv_lib_dl_dlopen = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588#define HAVE_LIBDL 1
20589_ACEOF
c906108c
SS
20590
20591 LIBS="-ldl $LIBS"
20592
c906108c
SS
20593fi
20594
20595 if test "$GCC" = "yes" ; then
20596 # The GNU linker requires the -export-dynamic option to make
20597 # all symbols visible in the dynamic symbol table.
20598 hold_ldflags=$LDFLAGS
b4e70030
JB
20599 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
20600echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 20601 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
20602 cat >conftest.$ac_ext <<_ACEOF
20603/* confdefs.h. */
20604_ACEOF
20605cat confdefs.h >>conftest.$ac_ext
20606cat >>conftest.$ac_ext <<_ACEOF
20607/* end confdefs.h. */
c906108c 20608
bec39cab
AC
20609int
20610main ()
20611{
c906108c 20612int i;
bec39cab
AC
20613 ;
20614 return 0;
20615}
20616_ACEOF
20617rm -f conftest.$ac_objext conftest$ac_exeext
20618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>conftest.er1
20620 ac_status=$?
20621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
b4e70030
JB
20626 { ac_try='test -z "$ac_c_werror_flag"
20627 || test ! -s conftest.err'
bec39cab
AC
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest$ac_exeext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
c906108c
SS
20639 found=yes
20640else
bec39cab
AC
20641 echo "$as_me: failed program was:" >&5
20642sed 's/^/| /' conftest.$ac_ext >&5
20643
b4e70030 20644found=no
c906108c 20645fi
bec39cab
AC
20646rm -f conftest.err conftest.$ac_objext \
20647 conftest$ac_exeext conftest.$ac_ext
c906108c 20648 LDFLAGS=$hold_ldflags
b4e70030
JB
20649 echo "$as_me:$LINENO: result: $found" >&5
20650echo "${ECHO_T}$found" >&6
c906108c
SS
20651 if test $found = yes; then
20652 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
20653 fi
20654 fi
20655 # Sun randomly tweaked the prototypes in <proc_service.h>
20656 # at one point.
b4e70030
JB
20657 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
20658echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
20659 if test "${gdb_cv_proc_service_is_old+set}" = set; then
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20661else
bec39cab
AC
20662
20663 cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
c906108c
SS
20669
20670 #include <proc_service.h>
20671 ps_err_e ps_pdwrite
20672 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 20673
bec39cab
AC
20674int
20675main ()
20676{
20677
20678 ;
20679 return 0;
20680}
20681_ACEOF
20682rm -f conftest.$ac_objext
20683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20684 (eval $ac_compile) 2>conftest.er1
20685 ac_status=$?
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } &&
b4e70030
JB
20691 { ac_try='test -z "$ac_c_werror_flag"
20692 || test ! -s conftest.err'
bec39cab
AC
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; } &&
20698 { ac_try='test -s conftest.$ac_objext'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
c906108c
SS
20704 gdb_cv_proc_service_is_old=no
20705else
bec39cab
AC
20706 echo "$as_me: failed program was:" >&5
20707sed 's/^/| /' conftest.$ac_ext >&5
20708
b4e70030 20709gdb_cv_proc_service_is_old=yes
c906108c 20710fi
bec39cab
AC
20711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20712
c906108c
SS
20713fi
20714
b4e70030
JB
20715 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
20716echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 20717 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
20718
20719cat >>confdefs.h <<\_ACEOF
c906108c 20720#define PROC_SERVICE_IS_OLD 1
bec39cab 20721_ACEOF
c906108c
SS
20722
20723 fi
20724 else
b4e70030
JB
20725 echo "$as_me:$LINENO: result: no" >&5
20726echo "${ECHO_T}no" >&6
c906108c
SS
20727 fi
20728 ;;
d92419e5 20729 aix*)
b4e70030
JB
20730 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
20731echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
20732 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20734else
20735 cat >conftest.$ac_ext <<_ACEOF
20736/* confdefs.h. */
20737_ACEOF
20738cat confdefs.h >>conftest.$ac_ext
20739cat >>conftest.$ac_ext <<_ACEOF
20740/* end confdefs.h. */
d92419e5 20741#include <sys/pthdebug.h>
bec39cab
AC
20742int
20743main ()
20744{
d92419e5
JB
20745#ifndef PTHDB_VERSION_3
20746 #error
20747 #endif
bec39cab
AC
20748 ;
20749 return 0;
20750}
20751_ACEOF
20752rm -f conftest.$ac_objext
20753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20754 (eval $ac_compile) 2>conftest.er1
20755 ac_status=$?
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } &&
b4e70030
JB
20761 { ac_try='test -z "$ac_c_werror_flag"
20762 || test ! -s conftest.err'
bec39cab
AC
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; } &&
20768 { ac_try='test -s conftest.$ac_objext'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
d92419e5
JB
20774 gdb_cv_have_aix_thread_debug=yes
20775else
bec39cab
AC
20776 echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
b4e70030 20779gdb_cv_have_aix_thread_debug=no
d92419e5 20780fi
bec39cab 20781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
20782fi
20783
b4e70030
JB
20784 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
20785echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
20786 if test $gdb_cv_have_aix_thread_debug = yes; then
20787 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 20788 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
20789 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
20790 fi
20791 ;;
c906108c 20792 esac
bec39cab 20793
c906108c
SS
20794fi
20795
3f47be5c 20796if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
20797 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
20798echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
20799if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801else
20802 cat >conftest.$ac_ext <<_ACEOF
20803/* confdefs.h. */
20804_ACEOF
20805cat confdefs.h >>conftest.$ac_ext
20806cat >>conftest.$ac_ext <<_ACEOF
20807/* end confdefs.h. */
3f47be5c 20808#include <thread_db.h>
bec39cab
AC
20809int
20810main ()
20811{
3f47be5c 20812int i = TD_NOTALLOC;
bec39cab
AC
20813 ;
20814 return 0;
20815}
20816_ACEOF
20817rm -f conftest.$ac_objext
20818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20819 (eval $ac_compile) 2>conftest.er1
20820 ac_status=$?
20821 grep -v '^ *+' conftest.er1 >conftest.err
20822 rm -f conftest.er1
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
b4e70030
JB
20826 { ac_try='test -z "$ac_c_werror_flag"
20827 || test ! -s conftest.err'
bec39cab
AC
20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; } &&
20833 { ac_try='test -s conftest.$ac_objext'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
3f47be5c
EZ
20839 gdb_cv_thread_db_h_has_td_notalloc=yes
20840else
bec39cab
AC
20841 echo "$as_me: failed program was:" >&5
20842sed 's/^/| /' conftest.$ac_ext >&5
20843
b4e70030 20844gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 20845
3f47be5c 20846fi
bec39cab 20847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 20848
bec39cab 20849fi
b4e70030
JB
20850echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
20851echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
20852fi
20853if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
20854
20855cat >>confdefs.h <<\_ACEOF
3f47be5c 20856#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 20857_ACEOF
3f47be5c
EZ
20858
20859fi
20860
b757528f 20861if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
20862 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
20863echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
20864if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866else
20867 cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
b757528f 20873#include <sys/syscall.h>
bec39cab
AC
20874int
20875main ()
20876{
b757528f 20877int i = __NR_tkill;
bec39cab
AC
20878 ;
20879 return 0;
20880}
20881_ACEOF
20882rm -f conftest.$ac_objext
20883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20884 (eval $ac_compile) 2>conftest.er1
20885 ac_status=$?
20886 grep -v '^ *+' conftest.er1 >conftest.err
20887 rm -f conftest.er1
20888 cat conftest.err >&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } &&
b4e70030
JB
20891 { ac_try='test -z "$ac_c_werror_flag"
20892 || test ! -s conftest.err'
bec39cab
AC
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; } &&
20898 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
b757528f
JJ
20904 gdb_cv_sys_syscall_h_has_tkill=yes
20905else
bec39cab
AC
20906 echo "$as_me: failed program was:" >&5
20907sed 's/^/| /' conftest.$ac_ext >&5
20908
b4e70030 20909gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 20910
b757528f 20911fi
bec39cab 20912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 20913
bec39cab 20914fi
b4e70030
JB
20915echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20916echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
20917fi
20918if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
20919
20920cat >>confdefs.h <<\_ACEOF
b757528f 20921#define HAVE_TKILL_SYSCALL 1
bec39cab 20922_ACEOF
b757528f
JJ
20923
20924fi
20925
fb40c209 20926
bec39cab 20927
b4e70030 20928# Check whether --with-sysroot or --without-sysroot was given.
030292b7 20929if test "${with_sysroot+set}" = set; then
b4e70030
JB
20930 withval="$with_sysroot"
20931
030292b7 20932 case ${with_sysroot} in
715d1656 20933 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
20934 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
20935 esac
20936
20937 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20938
20939 if test "x$exec_prefix" = xNONE; then
20940 if test "x$prefix" = xNONE; then
20941 test_prefix=/usr/local
20942 else
20943 test_prefix=$prefix
20944 fi
20945 else
20946 test_prefix=$exec_prefix
20947 fi
20948 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
20949 "${test_prefix}"|"${test_prefix}/"*|\
20950 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
20951 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20952 TARGET_SYSTEM_ROOT_DEFINE="$t"
20953 ;;
20954 esac
20955
20956else
bec39cab 20957
030292b7
DJ
20958 TARGET_SYSTEM_ROOT=
20959 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20960
b4e70030 20961fi;
030292b7
DJ
20962
20963
20964
b4e70030 20965# Check whether --enable-werror or --disable-werror was given.
094a342e 20966if test "${enable_werror+set}" = set; then
b4e70030
JB
20967 enableval="$enable_werror"
20968 case "${enableval}" in
094a342e
MK
20969 yes | y) ERROR_ON_WARNING="yes" ;;
20970 no | n) ERROR_ON_WARNING="no" ;;
20971 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
20972echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
20973 { (exit 1); exit 1; }; } ;;
20974 esac
b4e70030 20975fi;
094a342e
MK
20976
20977# Enable -Werror by default when using gcc
20978if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
20979 ERROR_ON_WARNING=yes
20980fi
20981
20982WERROR_CFLAGS=""
20983if test "${ERROR_ON_WARNING}" = yes ; then
20984 WERROR_CFLAGS="-Werror"
20985fi
20986
3b851bce
AC
20987# NOTE: Don't add -Wall or -Wunused, they both include
20988# -Wunused-parameter which reports bogus warnings.
20989# NOTE: If you add to this list, remember to update
20990# gdb/doc/gdbint.texinfo.
1decb323 20991build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 20992-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
7be93b9e 20993-Wunused-label -Wunused-function -Wno-pointer-sign"
a3b362c4
JB
20994
20995# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 20996if test x${CFLAGS+set} = xset; then
a3b362c4
JB
20997 case "${CFLAGS}" in
20998 *"-O0"* ) ;;
20999 *"-O"* )
21000 build_warnings="${build_warnings} -Wuninitialized"
21001 ;;
21002 esac
21003else
21004 build_warnings="${build_warnings} -Wuninitialized"
21005fi
21006
d8038014 21007# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 21008# -Wunused-function -Wunused-variable -Wunused-value
93d56215 21009# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
21010# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
21011# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
21012# -Woverloaded-virtual -Winline -Werror"
b4e70030 21013# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 21014if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
21015 enableval="$enable_build_warnings"
21016 case "${enableval}" in
c906108c
SS
21017 yes) ;;
21018 no) build_warnings="-w";;
21019 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21020 build_warnings="${build_warnings} ${t}";;
21021 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21022 build_warnings="${t} ${build_warnings}";;
21023 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21024esac
d4f3574e 21025if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 21026 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 21027fi
b4e70030 21028fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 21029if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
21030 enableval="$enable_gdb_build_warnings"
21031 case "${enableval}" in
3b851bce
AC
21032 yes) ;;
21033 no) build_warnings="-w";;
21034 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21035 build_warnings="${build_warnings} ${t}";;
21036 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21037 build_warnings="${t} ${build_warnings}";;
21038 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21039esac
21040if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21041 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21042fi
b4e70030 21043fi; WARN_CFLAGS=""
c906108c
SS
21044if test "x${build_warnings}" != x -a "x$GCC" = xyes
21045then
b4e70030
JB
21046 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21047echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
21048 # Separate out the -Werror flag as some files just cannot be
21049 # compiled with it enabled.
21050 for w in ${build_warnings}; do
21051 case $w in
21052 -Werr*) WERROR_CFLAGS=-Werror ;;
21053 *) # Check that GCC accepts it
4536bbc6
AC
21054 saved_CFLAGS="$CFLAGS"
21055 CFLAGS="$CFLAGS $w"
bec39cab
AC
21056 cat >conftest.$ac_ext <<_ACEOF
21057/* confdefs.h. */
21058_ACEOF
21059cat confdefs.h >>conftest.$ac_ext
21060cat >>conftest.$ac_ext <<_ACEOF
21061/* end confdefs.h. */
4536bbc6 21062
bec39cab
AC
21063int
21064main ()
21065{
4536bbc6 21066
bec39cab
AC
21067 ;
21068 return 0;
21069}
21070_ACEOF
21071rm -f conftest.$ac_objext
21072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21073 (eval $ac_compile) 2>conftest.er1
21074 ac_status=$?
21075 grep -v '^ *+' conftest.er1 >conftest.err
21076 rm -f conftest.er1
21077 cat conftest.err >&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); } &&
b4e70030
JB
21080 { ac_try='test -z "$ac_c_werror_flag"
21081 || test ! -s conftest.err'
bec39cab
AC
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; } &&
21087 { ac_try='test -s conftest.$ac_objext'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; }; then
4536bbc6
AC
21093 WARN_CFLAGS="${WARN_CFLAGS} $w"
21094else
bec39cab
AC
21095 echo "$as_me: failed program was:" >&5
21096sed 's/^/| /' conftest.$ac_ext >&5
21097
4536bbc6 21098fi
bec39cab 21099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 21100 CFLAGS="$saved_CFLAGS"
746a987d
AC
21101 esac
21102 done
b4e70030
JB
21103 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
21104echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
21105fi
21106
21107
104c1213 21108
7a292a7a 21109# In the Cygwin environment, we need some additional flags.
b4e70030
JB
21110echo "$as_me:$LINENO: checking for cygwin" >&5
21111echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
21112if test "${gdb_cv_os_cygwin+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21114else
21115 cat >conftest.$ac_ext <<_ACEOF
21116/* confdefs.h. */
21117_ACEOF
21118cat confdefs.h >>conftest.$ac_ext
21119cat >>conftest.$ac_ext <<_ACEOF
21120/* end confdefs.h. */
7a292a7a
SS
21121
21122#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21123lose
21124#endif
bec39cab 21125_ACEOF
7a292a7a 21126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 21127 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
21128 gdb_cv_os_cygwin=yes
21129else
7a292a7a
SS
21130 gdb_cv_os_cygwin=no
21131fi
21132rm -f conftest*
21133
21134fi
b4e70030
JB
21135echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21136echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 21137
aff38e61 21138
3eb25fda 21139SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 21140case ${host} in
95cbc983
AC
21141 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21142 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 21143 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
21144esac
21145
21146
cd0fc7c3
SS
21147# libreadline needs libuser32.a in a cygwin environment
21148WIN32LIBS=
21149if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
21150 WIN32LIBS="-luser32"
21151 case "${target}" in
21152 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21153 ;;
21154 esac
cd0fc7c3 21155fi
c906108c 21156
b4505029
MM
21157# The ser-tcp.c module requires sockets.
21158case ${host} in
21159 *mingw32*)
21160
21161cat >>confdefs.h <<\_ACEOF
21162#define USE_WIN32API 1
21163_ACEOF
21164
21165 WIN32LIBS="$WIN32LIBS -lws2_32"
21166 ;;
21167esac
21168
7a292a7a 21169
121ce6e5
DJ
21170# Add any host-specific objects to GDB.
21171CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21172
3fc11d3e
JM
21173LIBGUI="../libgui/src/libgui.a"
21174GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21175
21176
7a292a7a 21177
3fc11d3e
JM
21178WIN32LDAPP=
21179
21180
21181
d91670b9
CV
21182case "${host}" in
21183*-*-cygwin*)
21184 configdir="win"
21185 ;;
21186*)
21187 configdir="unix"
21188 ;;
21189esac
3fc11d3e
JM
21190
21191GDBTKLIBS=
21192if test "${enable_gdbtk}" = "yes"; then
21193
d1c3b63a
KS
21194 # Gdbtk must have an absolute path to srcdir in order to run
21195 # properly when not installed.
21196 here=`pwd`
21197 cd ${srcdir}
21198 GDBTK_SRC_DIR=`pwd`
21199 cd $here
21200
bec39cab 21201
3fc11d3e
JM
21202#
21203# Ok, lets find the tcl configuration
bec39cab 21204# First, look for one uninstalled.
3fc11d3e
JM
21205# the alternative search directory is invoked by --with-tclconfig
21206#
21207
21208if test x"${no_tcl}" = x ; then
21209 # we reset no_tcl in case something fails here
21210 no_tcl=true
bec39cab 21211
b4e70030 21212# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 21213if test "${with_tclconfig+set}" = set; then
b4e70030
JB
21214 withval="$with_tclconfig"
21215 with_tclconfig=${withval}
21216fi;
21217 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21218echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
21219 if test "${ac_cv_c_tclconfig+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21221else
bec39cab 21222
3fc11d3e
JM
21223
21224 # First check to see if --with-tclconfig was specified.
21225 if test x"${with_tclconfig}" != x ; then
21226 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21227 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21228 else
bec39cab
AC
21229 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21230echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21231 { (exit 1); exit 1; }; }
3fc11d3e
JM
21232 fi
21233 fi
21234
21235 # then check for a private Tcl installation
21236 if test x"${ac_cv_c_tclconfig}" = x ; then
21237 for i in \
21238 ../tcl \
21239 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21240 ../../tcl \
21241 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21242 ../../../tcl \
21243 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21244 if test -f "$i/${configdir}/tclConfig.sh" ; then
21245 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21246 break
21247 fi
21248 done
21249 fi
21250 # check in a few common install locations
21251 if test x"${ac_cv_c_tclconfig}" = x ; then
21252 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21253 if test -f "$i/tclConfig.sh" ; then
21254 ac_cv_c_tclconfig=`(cd $i; pwd)`
21255 break
21256 fi
21257 done
21258 fi
21259 # check in a few other private locations
21260 if test x"${ac_cv_c_tclconfig}" = x ; then
21261 for i in \
21262 ${srcdir}/../tcl \
21263 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21264 if test -f "$i/${configdir}/tclConfig.sh" ; then
21265 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21266 break
21267 fi
21268 done
21269 fi
bec39cab 21270
3fc11d3e
JM
21271fi
21272
21273 if test x"${ac_cv_c_tclconfig}" = x ; then
21274 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
21275 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21276echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
21277 else
21278 no_tcl=
21279 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
21280 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21281echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
21282 fi
21283fi
21284
21285 if test -z "${no_tcl}"; then
bec39cab 21286
3fc11d3e
JM
21287 . $TCLCONFIG
21288
3fc11d3e
JM
21289
21290
21291
21292
3fc11d3e
JM
21293
21294
21295
bec39cab
AC
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
3fc11d3e
JM
21315#
21316# Ok, lets find the tk configuration
bec39cab 21317# First, look for one uninstalled.
3fc11d3e
JM
21318# the alternative search directory is invoked by --with-tkconfig
21319#
21320
21321if test x"${no_tk}" = x ; then
21322 # we reset no_tk in case something fails here
21323 no_tk=true
bec39cab 21324
b4e70030 21325# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 21326if test "${with_tkconfig+set}" = set; then
b4e70030
JB
21327 withval="$with_tkconfig"
21328 with_tkconfig=${withval}
21329fi;
21330 echo "$as_me:$LINENO: checking for Tk configuration" >&5
21331echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
21332 if test "${ac_cv_c_tkconfig+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21334else
bec39cab 21335
3fc11d3e
JM
21336
21337 # First check to see if --with-tkconfig was specified.
21338 if test x"${with_tkconfig}" != x ; then
21339 if test -f "${with_tkconfig}/tkConfig.sh" ; then
21340 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21341 else
bec39cab
AC
21342 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21343echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21344 { (exit 1); exit 1; }; }
3fc11d3e
JM
21345 fi
21346 fi
21347
21348 # then check for a private Tk library
21349 if test x"${ac_cv_c_tkconfig}" = x ; then
21350 for i in \
21351 ../tk \
21352 `ls -dr ../tk[4-9]* 2>/dev/null` \
21353 ../../tk \
21354 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21355 ../../../tk \
21356 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21357 if test -f "$i/${configdir}/tkConfig.sh" ; then
21358 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21359 break
21360 fi
21361 done
21362 fi
21363 # check in a few common install locations
21364 if test x"${ac_cv_c_tkconfig}" = x ; then
21365 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21366 if test -f "$i/tkConfig.sh" ; then
21367 ac_cv_c_tkconfig=`(cd $i; pwd)`
21368 break
21369 fi
21370 done
21371 fi
21372 # check in a few other private locations
21373 if test x"${ac_cv_c_tkconfig}" = x ; then
21374 for i in \
21375 ${srcdir}/../tk \
21376 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
21377 if test -f "$i/${configdir}/tkConfig.sh" ; then
21378 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21379 break
21380 fi
21381 done
21382 fi
bec39cab 21383
3fc11d3e
JM
21384fi
21385
21386 if test x"${ac_cv_c_tkconfig}" = x ; then
21387 TKCONFIG="# no Tk configs found"
bec39cab
AC
21388 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
21389echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
21390 else
21391 no_tk=
21392 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
21393 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
21394echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
21395 fi
21396fi
21397
21398
21399
dd2504ab
JM
21400 # now look for Tcl library stuff
21401
d91670b9 21402 tcldir="../tcl/${configdir}/"
dd2504ab
JM
21403
21404 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
21405
3fc11d3e
JM
21406 # If $no_tk is nonempty, then we can't do Tk, and there is no
21407 # point to doing Tcl.
21408 if test -z "${no_tk}"; then
bec39cab 21409
3fc11d3e
JM
21410 if test -f "$TKCONFIG" ; then
21411 . $TKCONFIG
21412 fi
21413
3fc11d3e 21414
3fc11d3e
JM
21415
21416
3fc11d3e 21417
bec39cab
AC
21418
21419
21420
21421
21422
21423
21424
21425
21426
3fc11d3e
JM
21427#
21428# Ok, lets find the tcl source trees so we can use the headers
21429# Warning: transition of version 9 to 10 will break this algorithm
21430# because 10 sorts before 9. We also look for just tcl. We have to
21431# be careful that we don't match stuff like tclX by accident.
21432# the alternative search directory is involked by --with-tclinclude
21433#
21434
21435no_tcl=true
b4e70030
JB
21436echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
21437echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 21438
b4e70030 21439# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 21440if test "${with_tclinclude+set}" = set; then
b4e70030
JB
21441 withval="$with_tclinclude"
21442 with_tclinclude=${withval}
21443fi;
bec39cab
AC
21444if test "${ac_cv_c_tclh+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21446else
bec39cab 21447
3fc11d3e
JM
21448# first check to see if --with-tclinclude was specified
21449if test x"${with_tclinclude}" != x ; then
21450 if test -f ${with_tclinclude}/tclInt.h ; then
21451 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
21452 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
21453 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
21454 else
bec39cab
AC
21455 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
21456echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
21457 { (exit 1); exit 1; }; }
3fc11d3e
JM
21458 fi
21459fi
21460
21461# next check if it came with Tcl configuration file
21462if test x"${ac_cv_c_tclconfig}" = x ; then
21463 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
21464 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
21465 fi
21466fi
21467
21468# next check in private source directory
21469#
21470# since ls returns lowest version numbers first, reverse its output
21471if test x"${ac_cv_c_tclh}" = x ; then
21472 for i in \
21473 ${srcdir}/../tcl \
21474 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
21475 ${srcdir}/../../tcl \
21476 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
21477 ${srcdir}/../../../tcl \
21478 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
21479 if test -f $i/generic/tclInt.h ; then
21480 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21481 break
21482 fi
21483 done
21484fi
21485# finally check in a few common install locations
21486#
21487# since ls returns lowest version numbers first, reverse its output
21488if test x"${ac_cv_c_tclh}" = x ; then
21489 for i in \
21490 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
21491 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
21492 /usr/local/src/tcl \
21493 /usr/local/lib/tcl \
21494 ${prefix}/include ; do
21495 if test -f $i/generic/tclInt.h ; then
21496 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21497 break
21498 fi
21499 done
21500fi
21501# see if one is installed
21502if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 21503 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
21504 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21505echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
21506if test "${ac_cv_header_tclInt_h+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508fi
b4e70030
JB
21509echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21510echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
21511else
21512 # Is the header compilable?
b4e70030
JB
21513echo "$as_me:$LINENO: checking tclInt.h usability" >&5
21514echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
21515cat >conftest.$ac_ext <<_ACEOF
21516/* confdefs.h. */
21517_ACEOF
21518cat confdefs.h >>conftest.$ac_ext
21519cat >>conftest.$ac_ext <<_ACEOF
21520/* end confdefs.h. */
21521$ac_includes_default
21522#include <tclInt.h>
21523_ACEOF
21524rm -f conftest.$ac_objext
21525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526 (eval $ac_compile) 2>conftest.er1
21527 ac_status=$?
21528 grep -v '^ *+' conftest.er1 >conftest.err
21529 rm -f conftest.er1
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
b4e70030
JB
21533 { ac_try='test -z "$ac_c_werror_flag"
21534 || test ! -s conftest.err'
bec39cab
AC
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest.$ac_objext'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_header_compiler=yes
21547else
21548 echo "$as_me: failed program was:" >&5
21549sed 's/^/| /' conftest.$ac_ext >&5
21550
b4e70030 21551ac_header_compiler=no
bec39cab
AC
21552fi
21553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
21554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21555echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
21556
21557# Is the header present?
b4e70030
JB
21558echo "$as_me:$LINENO: checking tclInt.h presence" >&5
21559echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
21560cat >conftest.$ac_ext <<_ACEOF
21561/* confdefs.h. */
21562_ACEOF
21563cat confdefs.h >>conftest.$ac_ext
21564cat >>conftest.$ac_ext <<_ACEOF
21565/* end confdefs.h. */
3fc11d3e 21566#include <tclInt.h>
bec39cab
AC
21567_ACEOF
21568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } >/dev/null; then
21576 if test -s conftest.err; then
21577 ac_cpp_err=$ac_c_preproc_warn_flag
21578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21579 else
21580 ac_cpp_err=
21581 fi
21582else
21583 ac_cpp_err=yes
3fc11d3e 21584fi
bec39cab
AC
21585if test -z "$ac_cpp_err"; then
21586 ac_header_preproc=yes
21587else
21588 echo "$as_me: failed program was:" >&5
21589sed 's/^/| /' conftest.$ac_ext >&5
21590
21591 ac_header_preproc=no
3fc11d3e 21592fi
bec39cab 21593rm -f conftest.err conftest.$ac_ext
b4e70030
JB
21594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21595echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
21596
21597# So? What about this header?
21598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21599 yes:no: )
21600 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21601echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
21603echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
21604 ac_header_preproc=yes
21605 ;;
21606 no:yes:* )
21607 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
21608echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
21610echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
21612echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
21614echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
21616echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
21618echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
21619 (
21620 cat <<\_ASBOX
21621## ------------------------------------------ ##
21622## Report this to the AC_PACKAGE_NAME lists. ##
21623## ------------------------------------------ ##
21624_ASBOX
21625 ) |
21626 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
21627 ;;
21628esac
b4e70030
JB
21629echo "$as_me:$LINENO: checking for tclInt.h" >&5
21630echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
21631if test "${ac_cv_header_tclInt_h+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633else
21634 ac_cv_header_tclInt_h=$ac_header_preproc
21635fi
b4e70030
JB
21636echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21637echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
21638
21639fi
21640if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
21641 ac_cv_c_tclh=installed
21642else
bec39cab 21643 ac_cv_c_tclh=""
3fc11d3e
JM
21644fi
21645
bec39cab 21646
3fc11d3e
JM
21647fi
21648
21649fi
21650
21651if test x"${ac_cv_c_tclh}" = x ; then
21652 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
21653 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
21654echo "$as_me: error: Can't find Tcl private headers" >&2;}
21655 { (exit 1); exit 1; }; }
3fc11d3e
JM
21656fi
21657if test x"${ac_cv_c_tclh}" != x ; then
21658 no_tcl=""
21659 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
21660 echo "$as_me:$LINENO: result: is installed" >&5
21661echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
21662 TCLHDIR=""
21663 else
b4e70030
JB
21664 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
21665echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
21666 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
21667 TCLHDIR="-I${ac_cv_c_tclh}"
21668 fi
21669fi
21670
21671
21672
bec39cab 21673
3fc11d3e
JM
21674#
21675# Ok, lets find the tk source trees so we can use the headers
21676# If the directory (presumably symlink) named "tk" exists, use that one
21677# in preference to any others. Same logic is used when choosing library
21678# and again with Tcl. The search order is the best place to look first, then in
21679# decreasing significance. The loop breaks if the trigger file is found.
21680# Note the gross little conversion here of srcdir by cd'ing to the found
21681# directory. This converts the path from a relative to an absolute, so
21682# recursive cache variables for the path will work right. We check all
21683# the possible paths in one loop rather than many seperate loops to speed
21684# things up.
21685# the alternative search directory is involked by --with-tkinclude
21686#
21687no_tk=true
b4e70030
JB
21688echo "$as_me:$LINENO: checking for Tk private headers" >&5
21689echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 21690
b4e70030 21691# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 21692if test "${with_tkinclude+set}" = set; then
b4e70030
JB
21693 withval="$with_tkinclude"
21694 with_tkinclude=${withval}
21695fi;
bec39cab
AC
21696if test "${ac_cv_c_tkh+set}" = set; then
21697 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21698else
bec39cab 21699
3fc11d3e
JM
21700# first check to see if --with-tkinclude was specified
21701if test x"${with_tkinclude}" != x ; then
21702 if test -f ${with_tkinclude}/tk.h ; then
21703 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
21704 elif test -f ${with_tkinclude}/generic/tk.h ; then
21705 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
21706 else
bec39cab
AC
21707 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
21708echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
21709 { (exit 1); exit 1; }; }
3fc11d3e
JM
21710 fi
21711fi
21712
21713# next check if it came with Tk configuration file
21714if test x"${ac_cv_c_tkconfig}" = x ; then
21715 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
21716 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
21717 fi
21718fi
21719
21720# next check in private source directory
21721#
21722# since ls returns lowest version numbers first, reverse its output
21723if test x"${ac_cv_c_tkh}" = x ; then
21724 for i in \
21725 ${srcdir}/../tk \
21726 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
21727 ${srcdir}/../../tk \
21728 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
21729 ${srcdir}/../../../tk \
21730 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
21731 if test -f $i/generic/tk.h ; then
21732 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21733 break
21734 fi
21735 done
21736fi
21737# finally check in a few common install locations
21738#
21739# since ls returns lowest version numbers first, reverse its output
21740if test x"${ac_cv_c_tkh}" = x ; then
21741 for i in \
21742 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
21743 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
21744 /usr/local/src/tk \
21745 /usr/local/lib/tk \
21746 ${prefix}/include ; do
21747 if test -f $i/generic/tk.h ; then
21748 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21749 break
21750 fi
21751 done
21752fi
21753# see if one is installed
21754if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 21755 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
21756 echo "$as_me:$LINENO: checking for tk.h" >&5
21757echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
21758if test "${ac_cv_header_tk_h+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21760fi
b4e70030
JB
21761echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21762echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
21763else
21764 # Is the header compilable?
b4e70030
JB
21765echo "$as_me:$LINENO: checking tk.h usability" >&5
21766echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
21767cat >conftest.$ac_ext <<_ACEOF
21768/* confdefs.h. */
21769_ACEOF
21770cat confdefs.h >>conftest.$ac_ext
21771cat >>conftest.$ac_ext <<_ACEOF
21772/* end confdefs.h. */
21773$ac_includes_default
3fc11d3e 21774#include <tk.h>
bec39cab
AC
21775_ACEOF
21776rm -f conftest.$ac_objext
21777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21778 (eval $ac_compile) 2>conftest.er1
21779 ac_status=$?
21780 grep -v '^ *+' conftest.er1 >conftest.err
21781 rm -f conftest.er1
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
b4e70030
JB
21785 { ac_try='test -z "$ac_c_werror_flag"
21786 || test ! -s conftest.err'
bec39cab
AC
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try='test -s conftest.$ac_objext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_header_compiler=yes
21799else
21800 echo "$as_me: failed program was:" >&5
21801sed 's/^/| /' conftest.$ac_ext >&5
21802
b4e70030 21803ac_header_compiler=no
bec39cab
AC
21804fi
21805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
21806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21807echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
21808
21809# Is the header present?
b4e70030
JB
21810echo "$as_me:$LINENO: checking tk.h presence" >&5
21811echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
21812cat >conftest.$ac_ext <<_ACEOF
21813/* confdefs.h. */
21814_ACEOF
21815cat confdefs.h >>conftest.$ac_ext
21816cat >>conftest.$ac_ext <<_ACEOF
21817/* end confdefs.h. */
21818#include <tk.h>
21819_ACEOF
21820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21822 ac_status=$?
21823 grep -v '^ *+' conftest.er1 >conftest.err
21824 rm -f conftest.er1
21825 cat conftest.err >&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } >/dev/null; then
21828 if test -s conftest.err; then
21829 ac_cpp_err=$ac_c_preproc_warn_flag
21830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21831 else
21832 ac_cpp_err=
21833 fi
21834else
21835 ac_cpp_err=yes
3fc11d3e 21836fi
bec39cab
AC
21837if test -z "$ac_cpp_err"; then
21838 ac_header_preproc=yes
21839else
21840 echo "$as_me: failed program was:" >&5
21841sed 's/^/| /' conftest.$ac_ext >&5
21842
21843 ac_header_preproc=no
21844fi
21845rm -f conftest.err conftest.$ac_ext
b4e70030
JB
21846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21847echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
21848
21849# So? What about this header?
21850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21851 yes:no: )
21852 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
21853echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21854 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
21855echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
21856 ac_header_preproc=yes
21857 ;;
21858 no:yes:* )
21859 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
21860echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
21862echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
21864echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
21866echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
21868echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
21870echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
21871 (
21872 cat <<\_ASBOX
21873## ------------------------------------------ ##
21874## Report this to the AC_PACKAGE_NAME lists. ##
21875## ------------------------------------------ ##
21876_ASBOX
21877 ) |
21878 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
21879 ;;
21880esac
b4e70030
JB
21881echo "$as_me:$LINENO: checking for tk.h" >&5
21882echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
21883if test "${ac_cv_header_tk_h+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21885else
21886 ac_cv_header_tk_h=$ac_header_preproc
21887fi
b4e70030
JB
21888echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21889echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 21890
3fc11d3e 21891fi
bec39cab 21892if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
21893 ac_cv_c_tkh=installed
21894else
bec39cab 21895 ac_cv_c_tkh=""
3fc11d3e
JM
21896fi
21897
bec39cab 21898
3fc11d3e
JM
21899fi
21900
21901fi
21902
21903if test x"${ac_cv_c_tkh}" != x ; then
21904 no_tk=""
21905 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
21906 echo "$as_me:$LINENO: result: is installed" >&5
21907echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
21908 TKHDIR=""
21909 else
b4e70030
JB
21910 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
21911echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
21912 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
21913 TKHDIR="-I${ac_cv_c_tkh}"
21914 fi
21915else
21916 TKHDIR="# no Tk directory found"
bec39cab
AC
21917 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21918echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
21919 no_tk=true
21920fi
21921
21922
21923
bec39cab 21924
b4e70030
JB
21925echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21926echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21927if test x"${ac_cv_c_itclh}" = x ; then
21928 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
21929 if test -f $i/generic/itcl.h ; then
21930 ac_cv_c_itclh=`(cd $i/generic; pwd)`
21931 break
21932 fi
21933 done
21934fi
21935if test x"${ac_cv_c_itclh}" = x ; then
21936 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
21937 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21938echo "$as_me: error: Can't find Itcl private headers" >&2;}
21939 { (exit 1); exit 1; }; }
3fc11d3e
JM
21940fi
21941if test x"${ac_cv_c_itclh}" != x ; then
21942 ITCLHDIR="-I${ac_cv_c_itclh}"
21943fi
21944# should always be here
21945# ITCLLIB="../itcl/itcl/unix/libitcl.a"
21946
21947#AC_SUBST(ITCLLIB)
21948
bec39cab 21949
b4e70030
JB
21950echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21951echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
21952if test x"${ac_cv_c_itkh}" = x ; then
21953 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
21954 if test -f $i/generic/itk.h ; then
21955 ac_cv_c_itkh=`(cd $i/generic; pwd)`
21956 break
21957 fi
21958 done
21959fi
21960if test x"${ac_cv_c_itkh}" = x ; then
21961 ITKHDIR="# no Itk private headers found"
bec39cab
AC
21962 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21963echo "$as_me: error: Can't find Itk private headers" >&2;}
21964 { (exit 1); exit 1; }; }
3fc11d3e
JM
21965fi
21966if test x"${ac_cv_c_itkh}" != x ; then
21967 ITKHDIR="-I${ac_cv_c_itkh}"
21968fi
21969# should always be here
21970# ITKLIB="../itcl/itk/unix/libitk.a"
21971
21972#AC_SUBST(ITKLIB)
21973
3fc11d3e 21974
dd2504ab
JM
21975
21976 # now look for Tk library stuff
21977
d91670b9 21978 tkdir="../tk/${configdir}/"
dd2504ab
JM
21979
21980 TK_DEPS="${tkdir}${TK_LIB_FILE}"
21981
3fc11d3e
JM
21982 # now look for Itcl library stuff
21983
bec39cab 21984
3fc11d3e
JM
21985#
21986# Ok, lets find the itcl configuration
bec39cab 21987# First, look for one uninstalled.
3fc11d3e
JM
21988# the alternative search directory is invoked by --with-itclconfig
21989#
21990
21991if test x"${no_itcl}" = x ; then
21992 # we reset no_itcl in case something fails here
21993 no_itcl=true
bec39cab 21994
b4e70030 21995# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 21996if test "${with_itclconfig+set}" = set; then
b4e70030
JB
21997 withval="$with_itclconfig"
21998 with_itclconfig=${withval}
21999fi;
22000 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22001echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
22002 if test "${ac_cv_c_itclconfig+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22004else
bec39cab 22005
3fc11d3e
JM
22006
22007 # First check to see if --with-itclconfig was specified.
22008 if test x"${with_itclconfig}" != x ; then
22009 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22010 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22011 else
bec39cab
AC
22012 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22013echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22014 { (exit 1); exit 1; }; }
3fc11d3e
JM
22015 fi
22016 fi
22017
22018 # then check for a private Itcl library
22019 if test x"${ac_cv_c_itclconfig}" = x ; then
22020 for i in \
22021 ../itcl/itcl \
22022 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22023 ../../itcl \
22024 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22025 ../../../itcl \
22026 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22027 if test -f "$i/itclConfig.sh" ; then
22028 ac_cv_c_itclconfig=`(cd $i; pwd)`
22029 break
22030 fi
22031 done
22032 fi
22033 # check in a few common install locations
22034 if test x"${ac_cv_c_itclconfig}" = x ; then
22035 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22036 if test -f "$i/itclConfig.sh" ; then
22037 ac_cv_c_itclconfig=`(cd $i; pwd)`
22038 break
22039 fi
22040 done
22041 fi
22042 # check in a few other private locations
22043 if test x"${ac_cv_c_itclconfig}" = x ; then
22044 for i in \
22045 ${srcdir}/../itcl/itcl \
22046 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22047 if test -f "$i/itclConfig.sh" ; then
22048 ac_cv_c_itclconfig=`(cd $i; pwd)`
22049 break
22050 fi
22051 done
22052 fi
bec39cab 22053
3fc11d3e
JM
22054fi
22055
22056 if test x"${ac_cv_c_itclconfig}" = x ; then
22057 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
22058 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22059echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
22060 else
22061 no_itcl=
22062 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
22063 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22064echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
22065 fi
22066fi
22067
22068 if test -z "${no_itcl}"; then
bec39cab 22069
3fc11d3e
JM
22070 if test -f "$ITCLCONFIG" ; then
22071 . $ITCLCONFIG
22072 fi
22073
3fc11d3e 22074
3fc11d3e
JM
22075
22076
bec39cab
AC
22077
22078
22079
22080
22081
22082
22083
3fc11d3e
JM
22084
22085 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 22086 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
22087 fi
22088
bec39cab 22089
3fc11d3e 22090 # now look for Itk library stuff
bec39cab 22091
3fc11d3e
JM
22092#
22093# Ok, lets find the itk configuration
bec39cab 22094# First, look for one uninstalled.
3fc11d3e
JM
22095# the alternative search directory is invoked by --with-itkconfig
22096#
22097
22098if test x"${no_itk}" = x ; then
22099 # we reset no_itk in case something fails here
22100 no_itk=true
bec39cab 22101
b4e70030 22102# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 22103if test "${with_itkconfig+set}" = set; then
b4e70030
JB
22104 withval="$with_itkconfig"
22105 with_itkconfig=${withval}
22106fi;
22107 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22108echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
22109 if test "${ac_cv_c_itkconfig+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22111else
bec39cab 22112
3fc11d3e
JM
22113
22114 # First check to see if --with-itkconfig was specified.
22115 if test x"${with_itkconfig}" != x ; then
22116 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22117 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22118 else
bec39cab
AC
22119 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22120echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22121 { (exit 1); exit 1; }; }
3fc11d3e
JM
22122 fi
22123 fi
22124
22125 # then check for a private Itk library
22126 if test x"${ac_cv_c_itkconfig}" = x ; then
22127 for i in \
22128 ../itcl/itk \
22129 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22130 ../../itk \
22131 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22132 ../../../itk \
22133 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22134 if test -f "$i/itkConfig.sh" ; then
22135 ac_cv_c_itkconfig=`(cd $i; pwd)`
22136 break
22137 fi
22138 done
22139 fi
22140 # check in a few common install locations
22141 if test x"${ac_cv_c_itkconfig}" = x ; then
22142 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22143 if test -f "$i/itkConfig.sh" ; then
22144 ac_cv_c_itkconfig=`(cd $i; pwd)`
22145 break
22146 fi
22147 done
22148 fi
22149 # check in a few other private locations
22150 if test x"${ac_cv_c_itkconfig}" = x ; then
22151 for i in \
22152 ${srcdir}/../itcl/itk \
22153 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22154 if test -f "$i/itkConfig.sh" ; then
22155 ac_cv_c_itkconfig=`(cd $i; pwd)`
22156 break
22157 fi
22158 done
22159 fi
bec39cab 22160
3fc11d3e
JM
22161fi
22162
22163 if test x"${ac_cv_c_itkconfig}" = x ; then
22164 ITKCONFIG="# no Itk configs found"
bec39cab
AC
22165 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22166echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
22167 else
22168 no_itk=
22169 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
22170 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22171echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
22172 fi
22173fi
22174
22175
bec39cab
AC
22176 if test -z "${no_itcl}"; then
22177
22178 if test -f "$ITKCONFIG" ; then
22179 . $ITKCONFIG
22180 fi
22181
22182
22183
22184
22185
22186
3fc11d3e 22187
3fc11d3e 22188
3fc11d3e
JM
22189
22190
3fc11d3e
JM
22191
22192
3fc11d3e 22193 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 22194 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
22195 fi
22196
4226a5a5 22197 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
22198
22199 # Include some libraries that Tcl and Tk want.
b2a1bd4f 22200 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
22201 # Yes, the ordering seems wrong here. But it isn't.
22202 # TK_LIBS is the list of libraries that need to be linked
22203 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22204 # were in LIBS then any link tests after this point would
22205 # try to include things like `$(LIBGUI)', which wouldn't work.
22206 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
22207
22208 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22209 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22210 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
22211 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22212 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22213 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22214 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
22215
22216 if test x$gdb_cv_os_cygwin = xyes; then
22217 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22218 WIN32LDAPP="-Wl,--subsystem,console"
22219 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22220 fi
22221 fi
22222 fi
ffc6a242 22223
b4e70030
JB
22224
22225
22226subdirs="$subdirs gdbtk"
3ace7edb 22227
3fc11d3e
JM
22228fi
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
dd2504ab 22242
b4e70030
JB
22243echo "$as_me:$LINENO: checking for X" >&5
22244echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 22245
c906108c 22246
b4e70030 22247# Check whether --with-x or --without-x was given.
c906108c 22248if test "${with_x+set}" = set; then
b4e70030 22249 withval="$with_x"
c906108c 22250
b4e70030 22251fi;
c906108c
SS
22252# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22253if test "x$with_x" = xno; then
22254 # The user explicitly disabled X.
22255 have_x=disabled
22256else
22257 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22258 # Both variables are already set.
22259 have_x=yes
22260 else
bec39cab
AC
22261 if test "${ac_cv_have_x+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22263else
22264 # One or both of the vars are not set, and there is no cached value.
bec39cab 22265ac_x_includes=no ac_x_libraries=no
b4e70030 22266rm -fr conftest.dir
bec39cab
AC
22267if mkdir conftest.dir; then
22268 cd conftest.dir
c906108c 22269 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 22270 cat >Imakefile <<'_ACEOF'
c906108c
SS
22271acfindx:
22272 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 22273_ACEOF
b4e70030 22274 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
22275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22276 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22277 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22278 for ac_extension in a so sl; do
22279 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
22280 test -f $ac_im_libdir/libX11.$ac_extension; then
22281 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
22282 fi
22283 done
22284 # Screen out bogus values from the imake configuration. They are
22285 # bogus both because they are the default anyway, and because
22286 # using them would break gcc on systems where it needs fixed includes.
bec39cab 22287 case $ac_im_incroot in
b4e70030 22288 /usr/include) ;;
bec39cab 22289 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 22290 esac
bec39cab 22291 case $ac_im_usrlibdir in
c906108c 22292 /usr/lib | /lib) ;;
bec39cab 22293 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
22294 esac
22295 fi
22296 cd ..
b4e70030 22297 rm -fr conftest.dir
c906108c
SS
22298fi
22299
bec39cab
AC
22300# Standard set of common directories for X headers.
22301# Check X11 before X11Rn because it is often a symlink to the current release.
22302ac_x_header_dirs='
22303/usr/X11/include
22304/usr/X11R6/include
22305/usr/X11R5/include
22306/usr/X11R4/include
22307
22308/usr/include/X11
22309/usr/include/X11R6
22310/usr/include/X11R5
22311/usr/include/X11R4
22312
22313/usr/local/X11/include
22314/usr/local/X11R6/include
22315/usr/local/X11R5/include
22316/usr/local/X11R4/include
22317
22318/usr/local/include/X11
22319/usr/local/include/X11R6
22320/usr/local/include/X11R5
22321/usr/local/include/X11R4
22322
22323/usr/X386/include
22324/usr/x386/include
22325/usr/XFree86/include/X11
22326
22327/usr/include
22328/usr/local/include
22329/usr/unsupported/include
22330/usr/athena/include
22331/usr/local/x11r5/include
22332/usr/lpp/Xamples/include
22333
22334/usr/openwin/include
22335/usr/openwin/share/include'
22336
22337if test "$ac_x_includes" = no; then
b4e70030 22338 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 22339 # First, try using that file with no special directory specified.
bec39cab
AC
22340 cat >conftest.$ac_ext <<_ACEOF
22341/* confdefs.h. */
22342_ACEOF
22343cat confdefs.h >>conftest.$ac_ext
22344cat >>conftest.$ac_ext <<_ACEOF
22345/* end confdefs.h. */
b4e70030 22346#include <X11/Intrinsic.h>
bec39cab
AC
22347_ACEOF
22348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22350 ac_status=$?
22351 grep -v '^ *+' conftest.er1 >conftest.err
22352 rm -f conftest.er1
22353 cat conftest.err >&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } >/dev/null; then
22356 if test -s conftest.err; then
22357 ac_cpp_err=$ac_c_preproc_warn_flag
22358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22359 else
22360 ac_cpp_err=
22361 fi
22362else
22363 ac_cpp_err=yes
22364fi
22365if test -z "$ac_cpp_err"; then
c906108c
SS
22366 # We can compile using X headers with no special include directory.
22367ac_x_includes=
22368else
bec39cab
AC
22369 echo "$as_me: failed program was:" >&5
22370sed 's/^/| /' conftest.$ac_ext >&5
22371
22372 for ac_dir in $ac_x_header_dirs; do
b4e70030 22373 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
22374 ac_x_includes=$ac_dir
22375 break
22376 fi
22377done
c906108c 22378fi
bec39cab
AC
22379rm -f conftest.err conftest.$ac_ext
22380fi # $ac_x_includes = no
c906108c 22381
bec39cab 22382if test "$ac_x_libraries" = no; then
c906108c 22383 # Check for the libraries.
c906108c
SS
22384 # See if we find them without any special options.
22385 # Don't add to $LIBS permanently.
bec39cab 22386 ac_save_LIBS=$LIBS
4e8d927d 22387 LIBS="-lXt $LIBS"
bec39cab
AC
22388 cat >conftest.$ac_ext <<_ACEOF
22389/* confdefs.h. */
22390_ACEOF
22391cat confdefs.h >>conftest.$ac_ext
22392cat >>conftest.$ac_ext <<_ACEOF
22393/* end confdefs.h. */
b4e70030 22394#include <X11/Intrinsic.h>
bec39cab
AC
22395int
22396main ()
22397{
b4e70030 22398XtMalloc (0)
bec39cab
AC
22399 ;
22400 return 0;
22401}
22402_ACEOF
22403rm -f conftest.$ac_objext conftest$ac_exeext
22404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22405 (eval $ac_link) 2>conftest.er1
22406 ac_status=$?
22407 grep -v '^ *+' conftest.er1 >conftest.err
22408 rm -f conftest.er1
22409 cat conftest.err >&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } &&
b4e70030
JB
22412 { ac_try='test -z "$ac_c_werror_flag"
22413 || test ! -s conftest.err'
bec39cab
AC
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest$ac_exeext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 LIBS=$ac_save_LIBS
c906108c
SS
22426# We can link X programs with no special library path.
22427ac_x_libraries=
22428else
bec39cab
AC
22429 echo "$as_me: failed program was:" >&5
22430sed 's/^/| /' conftest.$ac_ext >&5
22431
b4e70030 22432LIBS=$ac_save_LIBS
bec39cab 22433for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 22434do
bec39cab 22435 # Don't even attempt the hair of trying to link an X program!
c906108c 22436 for ac_extension in a so sl; do
b4e70030 22437 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
22438 ac_x_libraries=$ac_dir
22439 break 2
22440 fi
22441 done
22442done
22443fi
bec39cab
AC
22444rm -f conftest.err conftest.$ac_objext \
22445 conftest$ac_exeext conftest.$ac_ext
22446fi # $ac_x_libraries = no
c906108c 22447
bec39cab 22448if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
22449 # Didn't find X anywhere. Cache the known absence of X.
22450 ac_cv_have_x="have_x=no"
22451else
22452 # Record where we found X for the cache.
22453 ac_cv_have_x="have_x=yes \
bec39cab 22454 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
22455fi
22456fi
bec39cab 22457
c906108c
SS
22458 fi
22459 eval "$ac_cv_have_x"
22460fi # $with_x != no
22461
22462if test "$have_x" != yes; then
b4e70030
JB
22463 echo "$as_me:$LINENO: result: $have_x" >&5
22464echo "${ECHO_T}$have_x" >&6
c906108c
SS
22465 no_x=yes
22466else
22467 # If each of the values was on the command line, it overrides each guess.
22468 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22469 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22470 # Update the cache value to reflect the command line values.
22471 ac_cv_have_x="have_x=yes \
22472 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
22473 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22474echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
22475fi
22476
22477
9cc52bde
MK
22478# Check whether we should enable the TUI, but only do so if we really
22479# can.
22480if test x"$enable_tui" = xyes; then
22481 if test -d $srcdir/tui; then
22482 if test "$ac_cv_search_waddstr" != no; then
22483 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22484 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22485 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22486 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
22487 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22488 CONFIG_ALL="${CONFIG_ALL} all-tui"
22489 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
22490 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
22491 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
22492 else
bec39cab
AC
22493 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
22494echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
22495 fi
22496 fi
22497fi
22498
bec39cab
AC
22499# Unlike the sim directory, whether a simulator is linked is controlled by
22500# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
22501# This code just checks for a few cases where we'd like to ignore those
22502# definitions, even when they're present in the '.mt' file. These cases
22503# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 22504# not part of the source tree.
7a292a7a 22505#
b4e70030 22506# Check whether --enable-sim or --disable-sim was given.
7a292a7a 22507if test "${enable_sim+set}" = set; then
b4e70030
JB
22508 enableval="$enable_sim"
22509 echo "enable_sim = $enable_sim";
7a292a7a
SS
22510 echo "enableval = ${enableval}";
22511 case "${enableval}" in
22512 yes) ignore_sim=false ;;
22513 no) ignore_sim=true ;;
22514 *) ignore_sim=false ;;
22515 esac
22516else
22517 ignore_sim=false
b4e70030 22518fi;
7a292a7a
SS
22519
22520if test ! -d "${srcdir}/../sim"; then
22521 ignore_sim=true
22522fi
22523
22524if test "${ignore_sim}" = "true"; then
22525 IGNORE_SIM="SIM="
22526 IGNORE_SIM_OBS="SIM_OBS="
22527else
22528 IGNORE_SIM=""
22529 IGNORE_SIM_OBS=""
60ca704f
SE
22530
22531cat >>confdefs.h <<\_ACEOF
7a292a7a 22532#define WITH_SIM 1
bec39cab 22533_ACEOF
7a292a7a
SS
22534
22535fi
22536
22537
22538
c906108c
SS
22539
22540
22541
22542
22543
22544
dfcd3bfb 22545
e56ac5c3
AC
22546
22547
b3a90332
AC
22548
22549
c35f4ffc 22550# List of host floatformats.
bec39cab
AC
22551
22552cat >>confdefs.h <<_ACEOF
c35f4ffc 22553#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 22554_ACEOF
c35f4ffc 22555
bec39cab
AC
22556
22557cat >>confdefs.h <<_ACEOF
c35f4ffc 22558#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
22559_ACEOF
22560
c35f4ffc 22561
bec39cab 22562cat >>confdefs.h <<_ACEOF
c35f4ffc 22563#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 22564_ACEOF
c35f4ffc
AC
22565
22566
c906108c
SS
22567# target_subdir is used by the testsuite to find the target libraries.
22568target_subdir=
22569if test "${host}" != "${target}"; then
22570 target_subdir="${target_alias}/"
22571fi
22572
22573
22574frags=
0dad8a66
MK
22575if test "${target}" = "${host}"; then
22576 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
22577 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
22578 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
22579echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
22580 { (exit 1); exit 1; }; }
0dad8a66
MK
22581 fi
22582 frags="$frags $host_makefile_frag"
22583else
22584 host_makefile_frag=/dev/null
c906108c 22585fi
c906108c
SS
22586
22587target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
22588if test ! -f ${target_makefile_frag}; then
bec39cab
AC
22589 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
22590echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
22591 { (exit 1); exit 1; }; }
c906108c
SS
22592fi
22593frags="$frags $target_makefile_frag"
22594
22595
22596
22597
22598
22599hostfile=`sed -n '
22600s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22601' ${host_makefile_frag}`
22602
22603targetfile=`sed -n '
2c0fc042 22604s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
22605' ${target_makefile_frag}`
22606
c906108c 22607if test "${target}" = "${host}"; then
a85f51e7
DJ
22608# We pick this up from the host configuration file (.mh) because we
22609# do not have a native configuration Makefile fragment.
c906108c
SS
22610nativefile=`sed -n '
22611s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22612' ${host_makefile_frag}`
c906108c
SS
22613fi
22614
22615
b00a8037 22616if test x"${gdb_osabi}" != x ; then
bec39cab
AC
22617
22618cat >>confdefs.h <<_ACEOF
b00a8037 22619#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 22620_ACEOF
b00a8037
DJ
22621
22622fi
22623
8dcde887 22624# Enable multi-ice-gdb-server.
b4e70030 22625# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 22626if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
22627 enableval="$enable_multi_ice"
22628 case $enableval in
8dcde887
MK
22629 yes | no)
22630 ;;
bec39cab
AC
22631 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
22632echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
22633 { (exit 1); exit 1; }; } ;;
8dcde887 22634 esac
b4e70030 22635fi;
4e8d927d 22636if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
22637
22638
22639subdirs="$subdirs multi-ice"
3ace7edb 22640
a85f51e7
DJ
22641fi
22642
8dcde887
MK
22643# We only build gdbserver automatically if host and target are the same.
22644if test "x$target" = "x$host"; then
b4e70030
JB
22645 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
22646echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 22647 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
22648 echo "$as_me:$LINENO: result: yes" >&5
22649echo "${ECHO_T}yes" >&6
22650
22651
22652subdirs="$subdirs gdbserver"
3ace7edb 22653
8dcde887 22654 else
b4e70030
JB
22655 echo "$as_me:$LINENO: result: no" >&5
22656echo "${ECHO_T}no" >&6
8dcde887
MK
22657 fi
22658fi
22659
2c0fc042
AC
22660# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
22661# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
22662# to an empty version.
c906108c
SS
22663
22664files=
22665links=
5a2402b8 22666
c906108c 22667rm -f xm.h
5a2402b8 22668xm_h=""
c906108c 22669if test "${hostfile}" != ""; then
5a2402b8 22670 xm_h=xm.h
0f475e27
AC
22671 case "${hostfile}" in
22672 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
22673 * ) GDB_XM_FILE="${hostfile}"
22674 esac
5a2402b8
AC
22675 files="${files} ${GDB_XM_FILE}"
22676 links="${links} xm.h"
60ca704f
SE
22677
22678cat >>confdefs.h <<_ACEOF
b78960be 22679#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 22680_ACEOF
5a2402b8 22681
c906108c 22682fi
5a2402b8
AC
22683
22684
c906108c 22685rm -f tm.h
5a2402b8 22686tm_h=""
c906108c 22687if test "${targetfile}" != ""; then
5a2402b8 22688 tm_h=tm.h
0f475e27 22689 case "${targetfile}" in
b8c4aece 22690 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
22691 * ) GDB_TM_FILE="${targetfile}"
22692 esac
5a2402b8
AC
22693 files="${files} ${GDB_TM_FILE}"
22694 links="${links} tm.h"
60ca704f
SE
22695
22696cat >>confdefs.h <<_ACEOF
b78960be 22697#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 22698_ACEOF
5a2402b8 22699
c906108c 22700fi
5a2402b8
AC
22701
22702
c906108c 22703rm -f nm.h
5a2402b8 22704nm_h=""
c906108c 22705if test "${nativefile}" != ""; then
5a2402b8 22706 nm_h=nm.h
0f475e27
AC
22707 case "${nativefile}" in
22708 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
22709 * ) GDB_NM_FILE="${nativefile}"
22710 esac
5a2402b8
AC
22711 files="${files} ${GDB_NM_FILE}"
22712 links="${links} nm.h"
60ca704f
SE
22713
22714cat >>confdefs.h <<_ACEOF
b78960be 22715#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 22716_ACEOF
5a2402b8 22717
c906108c 22718fi
5a2402b8
AC
22719
22720
bec39cab
AC
22721ac_sources="$files"
22722ac_dests="$links"
22723while test -n "$ac_sources"; do
22724 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22725 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22726 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22727done
b4e70030 22728 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
22729
22730
c906108c
SS
22731
22732
c906108c 22733
c906108c 22734
bec39cab
AC
22735cat >>confdefs.h <<\_ACEOF
22736#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
22737_ACEOF
c906108c 22738
234b45d4 22739
234b45d4
KB
22740
22741
22742
b4e70030 22743# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 22744if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
22745 withval="$with_libiconv_prefix"
22746
234b45d4
KB
22747 for dir in `echo "$withval" | tr : ' '`; do
22748 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
22749 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
22750 done
234b45d4 22751
b4e70030 22752fi;
234b45d4 22753
b4e70030
JB
22754 echo "$as_me:$LINENO: checking for iconv" >&5
22755echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
22756if test "${am_cv_func_iconv+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 22758else
bec39cab 22759
234b45d4
KB
22760 am_cv_func_iconv="no, consider installing GNU libiconv"
22761 am_cv_lib_iconv=no
bec39cab
AC
22762 cat >conftest.$ac_ext <<_ACEOF
22763/* confdefs.h. */
22764_ACEOF
22765cat confdefs.h >>conftest.$ac_ext
22766cat >>conftest.$ac_ext <<_ACEOF
22767/* end confdefs.h. */
234b45d4
KB
22768#include <stdlib.h>
22769#include <iconv.h>
bec39cab
AC
22770int
22771main ()
22772{
234b45d4
KB
22773iconv_t cd = iconv_open("","");
22774 iconv(cd,NULL,NULL,NULL,NULL);
22775 iconv_close(cd);
bec39cab
AC
22776 ;
22777 return 0;
22778}
22779_ACEOF
22780rm -f conftest.$ac_objext conftest$ac_exeext
22781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22782 (eval $ac_link) 2>conftest.er1
22783 ac_status=$?
22784 grep -v '^ *+' conftest.er1 >conftest.err
22785 rm -f conftest.er1
22786 cat conftest.err >&5
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } &&
b4e70030
JB
22789 { ac_try='test -z "$ac_c_werror_flag"
22790 || test ! -s conftest.err'
bec39cab
AC
22791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22792 (eval $ac_try) 2>&5
22793 ac_status=$?
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); }; } &&
22796 { ac_try='test -s conftest$ac_exeext'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
234b45d4
KB
22802 am_cv_func_iconv=yes
22803else
bec39cab
AC
22804 echo "$as_me: failed program was:" >&5
22805sed 's/^/| /' conftest.$ac_ext >&5
22806
234b45d4 22807fi
bec39cab
AC
22808rm -f conftest.err conftest.$ac_objext \
22809 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
22810 if test "$am_cv_func_iconv" != yes; then
22811 am_save_LIBS="$LIBS"
22812 LIBS="$LIBS -liconv"
bec39cab
AC
22813 cat >conftest.$ac_ext <<_ACEOF
22814/* confdefs.h. */
22815_ACEOF
22816cat confdefs.h >>conftest.$ac_ext
22817cat >>conftest.$ac_ext <<_ACEOF
22818/* end confdefs.h. */
234b45d4
KB
22819#include <stdlib.h>
22820#include <iconv.h>
bec39cab
AC
22821int
22822main ()
22823{
234b45d4
KB
22824iconv_t cd = iconv_open("","");
22825 iconv(cd,NULL,NULL,NULL,NULL);
22826 iconv_close(cd);
bec39cab
AC
22827 ;
22828 return 0;
22829}
22830_ACEOF
22831rm -f conftest.$ac_objext conftest$ac_exeext
22832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22833 (eval $ac_link) 2>conftest.er1
22834 ac_status=$?
22835 grep -v '^ *+' conftest.er1 >conftest.err
22836 rm -f conftest.er1
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } &&
b4e70030
JB
22840 { ac_try='test -z "$ac_c_werror_flag"
22841 || test ! -s conftest.err'
bec39cab
AC
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest$ac_exeext'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
234b45d4
KB
22853 am_cv_lib_iconv=yes
22854 am_cv_func_iconv=yes
22855else
bec39cab
AC
22856 echo "$as_me: failed program was:" >&5
22857sed 's/^/| /' conftest.$ac_ext >&5
22858
234b45d4 22859fi
bec39cab
AC
22860rm -f conftest.err conftest.$ac_objext \
22861 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
22862 LIBS="$am_save_LIBS"
22863 fi
bec39cab
AC
22864
22865fi
b4e70030
JB
22866echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22867echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
22868 if test "$am_cv_func_iconv" = yes; then
22869
22870cat >>confdefs.h <<\_ACEOF
22871#define HAVE_ICONV 1
22872_ACEOF
22873
b4e70030
JB
22874 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22875echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
22876 if test "${am_cv_proto_iconv+set}" = set; then
22877 echo $ECHO_N "(cached) $ECHO_C" >&6
22878else
22879
22880 cat >conftest.$ac_ext <<_ACEOF
22881/* confdefs.h. */
22882_ACEOF
22883cat confdefs.h >>conftest.$ac_ext
22884cat >>conftest.$ac_ext <<_ACEOF
22885/* end confdefs.h. */
22886
22887#include <stdlib.h>
22888#include <iconv.h>
22889extern
22890#ifdef __cplusplus
22891"C"
22892#endif
22893#if defined(__STDC__) || defined(__cplusplus)
22894size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22895#else
22896size_t iconv();
22897#endif
22898
22899int
22900main ()
22901{
22902
22903 ;
22904 return 0;
22905}
22906_ACEOF
22907rm -f conftest.$ac_objext
22908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22909 (eval $ac_compile) 2>conftest.er1
22910 ac_status=$?
22911 grep -v '^ *+' conftest.er1 >conftest.err
22912 rm -f conftest.er1
22913 cat conftest.err >&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } &&
b4e70030
JB
22916 { ac_try='test -z "$ac_c_werror_flag"
22917 || test ! -s conftest.err'
bec39cab
AC
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest.$ac_objext'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 am_cv_proto_iconv_arg1=""
22930else
22931 echo "$as_me: failed program was:" >&5
22932sed 's/^/| /' conftest.$ac_ext >&5
22933
b4e70030 22934am_cv_proto_iconv_arg1="const"
bec39cab
AC
22935fi
22936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22937 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);"
22938fi
22939
22940 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 22941 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
22942 }$am_cv_proto_iconv" >&5
22943echo "${ECHO_T}${ac_t:-
b4e70030 22944 }$am_cv_proto_iconv" >&6
bec39cab
AC
22945
22946cat >>confdefs.h <<_ACEOF
22947#define ICONV_CONST $am_cv_proto_iconv_arg1
22948_ACEOF
22949
22950 fi
22951 LIBICONV=
22952 if test "$am_cv_lib_iconv" = yes; then
22953 LIBICONV="-liconv"
22954 fi
22955
22956
22957
b4e70030
JB
22958 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
22959 ac_config_commands="$ac_config_commands default"
bec39cab
AC
22960cat >confcache <<\_ACEOF
22961# This file is a shell script that caches the results of configure
22962# tests run on this system so they can be shared between configure
22963# scripts and configure runs, see configure's option --config-cache.
22964# It is not useful on other systems. If it contains results you don't
22965# want to keep, you may remove or edit it.
22966#
22967# config.status only pays attention to the cache file if you give it
22968# the --recheck option to rerun configure.
22969#
22970# `ac_cv_env_foo' variables (set or unset) will be overridden when
22971# loading this file, other *unset* `ac_cv_foo' will be assigned the
22972# following values.
22973
22974_ACEOF
22975
22976# The following way of writing the cache mishandles newlines in values,
22977# but we know of no workaround that is simple, portable, and efficient.
b4e70030 22978# So, don't put newlines in cache variables' values.
bec39cab
AC
22979# Ultrix sh set writes to stderr and can't be redirected directly,
22980# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 22981{
bec39cab 22982 (set) 2>&1 |
b4e70030
JB
22983 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22984 *ac_space=\ *)
bec39cab
AC
22985 # `set' does not quote correctly, so add quotes (double-quote
22986 # substitution turns \\\\ into \\, and sed turns \\ into \).
22987 sed -n \
22988 "s/'/'\\\\''/g;
22989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 22990 ;;
bec39cab
AC
22991 *)
22992 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
22993 sed -n \
22994 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 22995 ;;
b4e70030
JB
22996 esac;
22997} |
bec39cab
AC
22998 sed '
22999 t clear
b4e70030 23000 : clear
bec39cab
AC
23001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23002 t end
b4e70030
JB
23003 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23004 : end' >>confcache
bec39cab
AC
23005if diff $cache_file confcache >/dev/null 2>&1; then :; else
23006 if test -w $cache_file; then
b4e70030 23007 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
23008 cat confcache >$cache_file
23009 else
b4e70030 23010 echo "not updating unwritable cache $cache_file"
bec39cab
AC
23011 fi
23012fi
23013rm -f confcache
23014
23015test "x$prefix" = xNONE && prefix=$ac_default_prefix
23016# Let make expand exec_prefix.
23017test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23018
b4e70030
JB
23019# VPATH may cause trouble with some makes, so we remove $(srcdir),
23020# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23021# trailing colons and then remove the whole line if VPATH becomes empty
23022# (actually we leave an empty line to preserve line numbers).
23023if test "x$srcdir" = x.; then
23024 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23025s/:*\$(srcdir):*/:/;
23026s/:*\${srcdir}:*/:/;
23027s/:*@srcdir@:*/:/;
23028s/^\([^=]*=[ ]*\):*/\1/;
23029s/:*$//;
23030s/^[^=]*=[ ]*$//;
23031}'
23032fi
23033
bec39cab
AC
23034DEFS=-DHAVE_CONFIG_H
23035
23036ac_libobjs=
23037ac_ltlibobjs=
23038for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23039 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
23040 ac_i=`echo "$ac_i" |
23041 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23042 # 2. Add them.
23043 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23044 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
23045done
23046LIBOBJS=$ac_libobjs
23047
23048LTLIBOBJS=$ac_ltlibobjs
23049
23050
85981d60
AC
23051if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23052 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23053Usually this means the macro was only invoked conditionally." >&5
23054echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23055Usually this means the macro was only invoked conditionally." >&2;}
23056 { (exit 1); exit 1; }; }
23057fi
bec39cab
AC
23058
23059: ${CONFIG_STATUS=./config.status}
23060ac_clean_files_save=$ac_clean_files
23061ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23062{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23063echo "$as_me: creating $CONFIG_STATUS" >&6;}
23064cat >$CONFIG_STATUS <<_ACEOF
23065#! $SHELL
23066# Generated by $as_me.
23067# Run this file to recreate the current configuration.
23068# Compiler output produced by configure, useful for debugging
23069# configure, is in config.log if it exists.
23070
23071debug=false
23072ac_cs_recheck=false
23073ac_cs_silent=false
23074SHELL=\${CONFIG_SHELL-$SHELL}
23075_ACEOF
23076
23077cat >>$CONFIG_STATUS <<\_ACEOF
23078## --------------------- ##
23079## M4sh Initialization. ##
23080## --------------------- ##
23081
23082# Be Bourne compatible
23083if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23084 emulate sh
23085 NULLCMD=:
23086 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23087 # is contrary to our usage. Disable this feature.
23088 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
23089elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23090 set -o posix
bec39cab
AC
23091fi
23092DUALCASE=1; export DUALCASE # for MKS sh
23093
23094# Support unset when possible.
23095if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23096 as_unset=unset
23097else
23098 as_unset=false
23099fi
23100
23101
23102# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 23103$as_unset ENV MAIL MAILPATH
bec39cab
AC
23104PS1='$ '
23105PS2='> '
23106PS4='+ '
23107
23108# NLS nuisances.
23109for as_var in \
23110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23112 LC_TELEPHONE LC_TIME
23113do
23114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23115 eval $as_var=C; export $as_var
23116 else
b4e70030 23117 $as_unset $as_var
bec39cab
AC
23118 fi
23119done
23120
23121# Required to use basename.
b4e70030 23122if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23123 as_expr=expr
23124else
23125 as_expr=false
23126fi
23127
b4e70030 23128if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
23129 as_basename=basename
23130else
23131 as_basename=false
23132fi
23133
23134
23135# Name of the executable.
b4e70030 23136as_me=`$as_basename "$0" ||
bec39cab
AC
23137$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23138 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
23139 X"$0" : 'X\(/\)$' \| \
23140 . : '\(.\)' 2>/dev/null ||
bec39cab 23141echo X/"$0" |
b4e70030
JB
23142 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23143 /^X\/\(\/\/\)$/{ s//\1/; q; }
23144 /^X\/\(\/\).*/{ s//\1/; q; }
23145 s/.*/./; q'`
bec39cab 23146
b4e70030
JB
23147
23148# PATH needs CR, and LINENO needs CR and PATH.
23149# Avoid depending upon Character Ranges.
23150as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23151as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23152as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23153as_cr_digits='0123456789'
23154as_cr_alnum=$as_cr_Letters$as_cr_digits
23155
23156# The user is always right.
23157if test "${PATH_SEPARATOR+set}" != set; then
23158 echo "#! /bin/sh" >conf$$.sh
23159 echo "exit 0" >>conf$$.sh
23160 chmod +x conf$$.sh
23161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23162 PATH_SEPARATOR=';'
23163 else
23164 PATH_SEPARATOR=:
23165 fi
23166 rm -f conf$$.sh
23167fi
bec39cab
AC
23168
23169
b4e70030
JB
23170 as_lineno_1=$LINENO
23171 as_lineno_2=$LINENO
23172 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23173 test "x$as_lineno_1" != "x$as_lineno_2" &&
23174 test "x$as_lineno_3" = "x$as_lineno_2" || {
23175 # Find who we are. Look in the path if we contain no path at all
23176 # relative or not.
23177 case $0 in
23178 *[\\/]* ) as_myself=$0 ;;
23179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23180for as_dir in $PATH
23181do
23182 IFS=$as_save_IFS
23183 test -z "$as_dir" && as_dir=.
23184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23185done
bec39cab 23186
b4e70030
JB
23187 ;;
23188 esac
23189 # We did not find ourselves, most probably we were run as `sh COMMAND'
23190 # in which case we are not to be found in the path.
23191 if test "x$as_myself" = x; then
23192 as_myself=$0
23193 fi
23194 if test ! -f "$as_myself"; then
23195 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23196echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23197 { (exit 1); exit 1; }; }
23198 fi
23199 case $CONFIG_SHELL in
23200 '')
23201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23202for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23203do
23204 IFS=$as_save_IFS
23205 test -z "$as_dir" && as_dir=.
23206 for as_base in sh bash ksh sh5; do
23207 case $as_dir in
23208 /*)
23209 if ("$as_dir/$as_base" -c '
bec39cab
AC
23210 as_lineno_1=$LINENO
23211 as_lineno_2=$LINENO
b4e70030 23212 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 23213 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
23214 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23215 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23216 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23217 CONFIG_SHELL=$as_dir/$as_base
23218 export CONFIG_SHELL
23219 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23220 fi;;
23221 esac
23222 done
23223done
23224;;
23225 esac
bec39cab
AC
23226
23227 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23228 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
23229 # line-number line before each line; the second 'sed' does the real
23230 # work. The second script uses 'N' to pair each line-number line
23231 # with the numbered line, and appends trailing '-' during
23232 # substitution so that $LINENO is not a special case at line end.
bec39cab 23233 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
23234 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23235 sed '=' <$as_myself |
bec39cab
AC
23236 sed '
23237 N
b4e70030
JB
23238 s,$,-,
23239 : loop
23240 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 23241 t loop
b4e70030
JB
23242 s,-$,,
23243 s,^['$as_cr_digits']*\n,,
bec39cab 23244 ' >$as_me.lineno &&
b4e70030
JB
23245 chmod +x $as_me.lineno ||
23246 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23247echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
23248 { (exit 1); exit 1; }; }
23249
23250 # Don't try to exec as it changes $[0], causing all sort of problems
23251 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
23252 # original and so on. Autoconf is especially sensible to this).
23253 . ./$as_me.lineno
bec39cab
AC
23254 # Exit status is that of the last command.
23255 exit
23256}
23257
23258
b4e70030
JB
23259case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23260 *c*,-n*) ECHO_N= ECHO_C='
23261' ECHO_T=' ' ;;
23262 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23263 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
23264esac
23265
b4e70030 23266if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23267 as_expr=expr
23268else
23269 as_expr=false
23270fi
23271
23272rm -f conf$$ conf$$.exe conf$$.file
23273echo >conf$$.file
23274if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
23275 # We could just check for DJGPP; but this test a) works b) is more generic
23276 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23277 if test -f conf$$.exe; then
23278 # Don't use ln at all; we don't have any links
bec39cab 23279 as_ln_s='cp -p'
b4e70030
JB
23280 else
23281 as_ln_s='ln -s'
23282 fi
bec39cab
AC
23283elif ln conf$$.file conf$$ 2>/dev/null; then
23284 as_ln_s=ln
23285else
23286 as_ln_s='cp -p'
23287fi
b4e70030 23288rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
23289
23290if mkdir -p . 2>/dev/null; then
23291 as_mkdir_p=:
23292else
23293 test -d ./-p && rmdir ./-p
23294 as_mkdir_p=false
23295fi
23296
b4e70030 23297as_executable_p="test -f"
bec39cab
AC
23298
23299# Sed expression to map a string onto a valid CPP name.
23300as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23301
23302# Sed expression to map a string onto a valid variable name.
23303as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23304
23305
b4e70030
JB
23306# IFS
23307# We need space, tab and new line, in precisely that order.
23308as_nl='
23309'
23310IFS=" $as_nl"
23311
23312# CDPATH.
23313$as_unset CDPATH
23314
bec39cab
AC
23315exec 6>&1
23316
b4e70030 23317# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 23318# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
23319# values after options handling. Logging --version etc. is OK.
23320exec 5>>config.log
23321{
23322 echo
23323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23324## Running $as_me. ##
23325_ASBOX
23326} >&5
23327cat >&5 <<_CSEOF
23328
bec39cab 23329This file was extended by $as_me, which was
b4e70030 23330generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
23331
23332 CONFIG_FILES = $CONFIG_FILES
23333 CONFIG_HEADERS = $CONFIG_HEADERS
23334 CONFIG_LINKS = $CONFIG_LINKS
23335 CONFIG_COMMANDS = $CONFIG_COMMANDS
23336 $ $0 $@
23337
b4e70030
JB
23338_CSEOF
23339echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23340echo >&5
bec39cab
AC
23341_ACEOF
23342
23343# Files that config.status was made for.
b4e70030
JB
23344if test -n "$ac_config_files"; then
23345 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23346fi
234b45d4 23347
b4e70030
JB
23348if test -n "$ac_config_headers"; then
23349 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23350fi
23351
23352if test -n "$ac_config_links"; then
23353 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23354fi
23355
23356if test -n "$ac_config_commands"; then
23357 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23358fi
234b45d4 23359
bec39cab 23360cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 23361
bec39cab
AC
23362ac_cs_usage="\
23363\`$as_me' instantiates files from templates according to the
23364current configuration.
234b45d4 23365
bec39cab 23366Usage: $0 [OPTIONS] [FILE]...
234b45d4 23367
bec39cab
AC
23368 -h, --help print this help, then exit
23369 -V, --version print version number, then exit
23370 -q, --quiet do not print progress messages
23371 -d, --debug don't remove temporary files
23372 --recheck update $as_me by reconfiguring in the same conditions
23373 --file=FILE[:TEMPLATE]
23374 instantiate the configuration file FILE
23375 --header=FILE[:TEMPLATE]
23376 instantiate the configuration header FILE
234b45d4 23377
bec39cab
AC
23378Configuration files:
23379$config_files
234b45d4 23380
bec39cab
AC
23381Configuration headers:
23382$config_headers
234b45d4 23383
bec39cab
AC
23384Configuration links:
23385$config_links
234b45d4 23386
bec39cab
AC
23387Configuration commands:
23388$config_commands
23389
23390Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 23391_ACEOF
b4e70030 23392
bec39cab
AC
23393cat >>$CONFIG_STATUS <<_ACEOF
23394ac_cs_version="\\
23395config.status
b4e70030 23396configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
23397 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23398
b4e70030 23399Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
23400This config.status script is free software; the Free Software Foundation
23401gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
23402srcdir=$srcdir
23403INSTALL="$INSTALL"
bec39cab
AC
23404_ACEOF
23405
23406cat >>$CONFIG_STATUS <<\_ACEOF
23407# If no file are specified by the user, then we need to provide default
23408# value. By we need to know if files were specified by the user.
23409ac_need_defaults=:
23410while test $# != 0
23411do
23412 case $1 in
23413 --*=*)
b4e70030
JB
23414 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23415 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 23416 ac_shift=:
c906108c 23417 ;;
b4e70030 23418 -*)
bec39cab
AC
23419 ac_option=$1
23420 ac_optarg=$2
23421 ac_shift=shift
c906108c 23422 ;;
b4e70030
JB
23423 *) # This is not an option, so the user has probably given explicit
23424 # arguments.
23425 ac_option=$1
23426 ac_need_defaults=false;;
bec39cab 23427 esac
c906108c 23428
bec39cab
AC
23429 case $ac_option in
23430 # Handling of the options.
b4e70030
JB
23431_ACEOF
23432cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
23433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23434 ac_cs_recheck=: ;;
b4e70030
JB
23435 --version | --vers* | -V )
23436 echo "$ac_cs_version"; exit 0 ;;
23437 --he | --h)
23438 # Conflict between --help and --header
23439 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23440Try \`$0 --help' for more information." >&5
23441echo "$as_me: error: ambiguous option: $1
23442Try \`$0 --help' for more information." >&2;}
23443 { (exit 1); exit 1; }; };;
23444 --help | --hel | -h )
23445 echo "$ac_cs_usage"; exit 0 ;;
23446 --debug | --d* | -d )
bec39cab
AC
23447 debug=: ;;
23448 --file | --fil | --fi | --f )
23449 $ac_shift
23450 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23451 ac_need_defaults=false;;
23452 --header | --heade | --head | --hea )
23453 $ac_shift
23454 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23455 ac_need_defaults=false;;
23456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23458 ac_cs_silent=: ;;
c906108c 23459
bec39cab 23460 # This is an error.
b4e70030
JB
23461 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23462Try \`$0 --help' for more information." >&5
23463echo "$as_me: error: unrecognized option: $1
23464Try \`$0 --help' for more information." >&2;}
bec39cab 23465 { (exit 1); exit 1; }; } ;;
c906108c 23466
b4e70030 23467 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 23468
bec39cab
AC
23469 esac
23470 shift
23471done
c906108c 23472
bec39cab 23473ac_configure_extra_args=
c906108c 23474
bec39cab
AC
23475if $ac_cs_silent; then
23476 exec 6>/dev/null
23477 ac_configure_extra_args="$ac_configure_extra_args --silent"
23478fi
c906108c 23479
bec39cab
AC
23480_ACEOF
23481cat >>$CONFIG_STATUS <<_ACEOF
23482if \$ac_cs_recheck; then
b4e70030
JB
23483 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23484 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
23485fi
23486
23487_ACEOF
23488
23489cat >>$CONFIG_STATUS <<_ACEOF
c906108c 23490#
b4e70030 23491# INIT-COMMANDS section.
c906108c 23492#
c906108c 23493
b4e70030 23494
4e8d927d
DJ
23495GCC="$GCC"
23496CC="$CC"
23497acx_cv_header_stdint="$acx_cv_header_stdint"
23498acx_cv_type_int8_t="$acx_cv_type_int8_t"
23499acx_cv_type_int16_t="$acx_cv_type_int16_t"
23500acx_cv_type_int32_t="$acx_cv_type_int32_t"
23501acx_cv_type_int64_t="$acx_cv_type_int64_t"
23502acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23503ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23504ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23505ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23506ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23507ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23508ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23509ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23510ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23511
bec39cab
AC
23512
23513gdb_host_cpu=$gdb_host_cpu
23514gdb_target_cpu=$gdb_target_cpu
23515nativefile=$nativefile
23516
23517
23518_ACEOF
23519
4e8d927d 23520
b4e70030
JB
23521
23522cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 23523for ac_config_target in $ac_config_targets
c906108c 23524do
b4e70030
JB
23525 case "$ac_config_target" in
23526 # Handling of arguments.
23527 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23528 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
23529 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
23530 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
23531 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23532 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
23533 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23534echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23535 { (exit 1); exit 1; }; };;
c906108c
SS
23536 esac
23537done
23538
bec39cab
AC
23539# If the user did not use the arguments to specify the items to instantiate,
23540# then the envvar interface is used. Set only those that are not.
23541# We use the long form for the default assignment because of an extremely
23542# bizarre bug on SunOS 4.1.3.
23543if $ac_need_defaults; then
23544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23546 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23548fi
23549
b4e70030
JB
23550# Have a temporary directory for convenience. Make it in the build tree
23551# simply because there is no reason to put it here, and in addition,
23552# creating and moving files from /tmp can sometimes cause problems.
23553# Create a temporary directory, and hook for its removal unless debugging.
23554$debug ||
23555{
23556 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23557 trap '{ (exit 1); exit 1; }' 1 2 13 15
23558}
4e8d927d 23559
b4e70030 23560# Create a (secure) tmp directory for tmp files.
4e8d927d 23561
b4e70030
JB
23562{
23563 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23564 test -n "$tmp" && test -d "$tmp"
23565} ||
23566{
23567 tmp=./confstat$$-$RANDOM
23568 (umask 077 && mkdir $tmp)
23569} ||
23570{
23571 echo "$me: cannot create a temporary directory in ." >&2
23572 { (exit 1); exit 1; }
23573}
4e8d927d 23574
b4e70030 23575_ACEOF
4e8d927d 23576
b4e70030 23577cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 23578
b4e70030
JB
23579#
23580# CONFIG_FILES section.
23581#
4e8d927d 23582
b4e70030
JB
23583# No need to generate the scripts if there are no CONFIG_FILES.
23584# This happens for instance when ./config.status config.h
23585if test -n "\$CONFIG_FILES"; then
23586 # Protect against being on the right side of a sed subst in config.status.
23587 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23588 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23589s,@SHELL@,$SHELL,;t t
23590s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23591s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23592s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23593s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23594s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23595s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23596s,@exec_prefix@,$exec_prefix,;t t
23597s,@prefix@,$prefix,;t t
23598s,@program_transform_name@,$program_transform_name,;t t
23599s,@bindir@,$bindir,;t t
23600s,@sbindir@,$sbindir,;t t
23601s,@libexecdir@,$libexecdir,;t t
23602s,@datadir@,$datadir,;t t
23603s,@sysconfdir@,$sysconfdir,;t t
23604s,@sharedstatedir@,$sharedstatedir,;t t
23605s,@localstatedir@,$localstatedir,;t t
23606s,@libdir@,$libdir,;t t
23607s,@includedir@,$includedir,;t t
23608s,@oldincludedir@,$oldincludedir,;t t
23609s,@infodir@,$infodir,;t t
23610s,@mandir@,$mandir,;t t
23611s,@build_alias@,$build_alias,;t t
23612s,@host_alias@,$host_alias,;t t
23613s,@target_alias@,$target_alias,;t t
23614s,@DEFS@,$DEFS,;t t
23615s,@ECHO_C@,$ECHO_C,;t t
23616s,@ECHO_N@,$ECHO_N,;t t
23617s,@ECHO_T@,$ECHO_T,;t t
23618s,@LIBS@,$LIBS,;t t
23619s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23620s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23621s,@MAINT@,$MAINT,;t t
23622s,@CC@,$CC,;t t
23623s,@CFLAGS@,$CFLAGS,;t t
23624s,@LDFLAGS@,$LDFLAGS,;t t
23625s,@CPPFLAGS@,$CPPFLAGS,;t t
23626s,@ac_ct_CC@,$ac_ct_CC,;t t
23627s,@EXEEXT@,$EXEEXT,;t t
23628s,@OBJEXT@,$OBJEXT,;t t
23629s,@CPP@,$CPP,;t t
23630s,@EGREP@,$EGREP,;t t
23631s,@build@,$build,;t t
23632s,@build_cpu@,$build_cpu,;t t
23633s,@build_vendor@,$build_vendor,;t t
23634s,@build_os@,$build_os,;t t
23635s,@host@,$host,;t t
23636s,@host_cpu@,$host_cpu,;t t
23637s,@host_vendor@,$host_vendor,;t t
23638s,@host_os@,$host_os,;t t
23639s,@target@,$target,;t t
23640s,@target_cpu@,$target_cpu,;t t
23641s,@target_vendor@,$target_vendor,;t t
23642s,@target_os@,$target_os,;t t
b4e70030 23643s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
23644s,@LIBINTL@,$LIBINTL,;t t
23645s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23646s,@INCINTL@,$INCINTL,;t t
b4e70030 23647s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
23648s,@GMSGFMT@,$GMSGFMT,;t t
23649s,@POSUB@,$POSUB,;t t
b4e70030 23650s,@CATALOGS@,$CATALOGS,;t t
b4e70030 23651s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 23652s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
23653s,@GENCAT@,$GENCAT,;t t
23654s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
23655s,@localedir@,$localedir,;t t
23656s,@PACKAGE@,$PACKAGE,;t t
23657s,@subdirs@,$subdirs,;t t
23658s,@AWK@,$AWK,;t t
23659s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23660s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23661s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23662s,@LN_S@,$LN_S,;t t
20e95c23
DJ
23663s,@RANLIB@,$RANLIB,;t t
23664s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
23665s,@YACC@,$YACC,;t t
23666s,@AR@,$AR,;t t
23667s,@ac_ct_AR@,$ac_ct_AR,;t t
23668s,@DLLTOOL@,$DLLTOOL,;t t
23669s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23670s,@WINDRES@,$WINDRES,;t t
23671s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
23672s,@MIG@,$MIG,;t t
23673s,@ac_ct_MIG@,$ac_ct_MIG,;t t
3841debe
DJ
23674s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
23675s,@LIBEXPAT@,$LIBEXPAT,;t t
23676s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 23677s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
23678s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
23679s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
23680s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
23681s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23682s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
23683s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
23684s,@WIN32LIBS@,$WIN32LIBS,;t t
23685s,@LIBGUI@,$LIBGUI,;t t
23686s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
23687s,@WIN32LDAPP@,$WIN32LDAPP,;t t
23688s,@TCL_VERSION@,$TCL_VERSION,;t t
23689s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
23690s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
23691s,@TCL_CC@,$TCL_CC,;t t
23692s,@TCL_DEFS@,$TCL_DEFS,;t t
23693s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
23694s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
23695s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23696s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
23697s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
23698s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
23699s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
23700s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
23701s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
23702s,@TCL_RANLIB@,$TCL_RANLIB,;t t
23703s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
23704s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23705s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
23706s,@TK_VERSION@,$TK_VERSION,;t t
23707s,@TK_DEFS@,$TK_DEFS,;t t
23708s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
23709s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
23710s,@TK_XLIBSW@,$TK_XLIBSW,;t t
23711s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
23712s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
23713s,@TCLHDIR@,$TCLHDIR,;t t
23714s,@TKHDIR@,$TKHDIR,;t t
23715s,@ITCLHDIR@,$ITCLHDIR,;t t
23716s,@ITKHDIR@,$ITKHDIR,;t t
23717s,@ITCL_VERSION@,$ITCL_VERSION,;t t
23718s,@ITCL_DEFS@,$ITCL_DEFS,;t t
23719s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
23720s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
23721s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
23722s,@ITK_VERSION@,$ITK_VERSION,;t t
23723s,@ITK_DEFS@,$ITK_DEFS,;t t
23724s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
23725s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
23726s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
23727s,@X_CFLAGS@,$X_CFLAGS,;t t
23728s,@X_LDFLAGS@,$X_LDFLAGS,;t t
23729s,@X_LIBS@,$X_LIBS,;t t
23730s,@TCL_DEPS@,$TCL_DEPS,;t t
23731s,@TK_DEPS@,$TK_DEPS,;t t
23732s,@ITCLLIB@,$ITCLLIB,;t t
23733s,@ITCL_DEPS@,$ITCL_DEPS,;t t
23734s,@ITKLIB@,$ITKLIB,;t t
23735s,@ITK_DEPS@,$ITK_DEPS,;t t
23736s,@GDBTKLIBS@,$GDBTKLIBS,;t t
23737s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
23738s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
23739s,@IGNORE_SIM@,$IGNORE_SIM,;t t
23740s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
23741s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
23742s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
23743s,@CONFIG_OBS@,$CONFIG_OBS,;t t
23744s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
23745s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
23746s,@CONFIG_ALL@,$CONFIG_ALL,;t t
23747s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
23748s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
23749s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
23750s,@target_subdir@,$target_subdir,;t t
23751s,@frags@,$frags,;t t
23752s,@xm_h@,$xm_h,;t t
23753s,@tm_h@,$tm_h,;t t
23754s,@nm_h@,$nm_h,;t t
23755s,@LIBICONV@,$LIBICONV,;t t
23756s,@LIBOBJS@,$LIBOBJS,;t t
23757s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23758/@host_makefile_frag@/r $host_makefile_frag
23759s,@host_makefile_frag@,,;t t
23760/@target_makefile_frag@/r $target_makefile_frag
23761s,@target_makefile_frag@,,;t t
23762CEOF
23763
23764_ACEOF
23765
23766 cat >>$CONFIG_STATUS <<\_ACEOF
23767 # Split the substitutions into bite-sized pieces for seds with
23768 # small command number limits, like on Digital OSF/1 and HP-UX.
23769 ac_max_sed_lines=48
23770 ac_sed_frag=1 # Number of current file.
23771 ac_beg=1 # First line for current file.
23772 ac_end=$ac_max_sed_lines # Line after last line for current file.
23773 ac_more_lines=:
23774 ac_sed_cmds=
23775 while $ac_more_lines; do
23776 if test $ac_beg -gt 1; then
23777 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23778 else
23779 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 23780 fi
b4e70030
JB
23781 if test ! -s $tmp/subs.frag; then
23782 ac_more_lines=false
23783 else
23784 # The purpose of the label and of the branching condition is to
23785 # speed up the sed processing (if there are no `@' at all, there
23786 # is no need to browse any of the substitutions).
23787 # These are the two extra sed commands mentioned above.
23788 (echo ':t
23789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23790 if test -z "$ac_sed_cmds"; then
23791 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23792 else
23793 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23794 fi
23795 ac_sed_frag=`expr $ac_sed_frag + 1`
23796 ac_beg=$ac_end
23797 ac_end=`expr $ac_end + $ac_max_sed_lines`
23798 fi
23799 done
23800 if test -z "$ac_sed_cmds"; then
23801 ac_sed_cmds=cat
23802 fi
23803fi # test -n "$CONFIG_FILES"
4e8d927d 23804
b4e70030
JB
23805_ACEOF
23806cat >>$CONFIG_STATUS <<\_ACEOF
23807for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23809 case $ac_file in
23810 - | *:- | *:-:* ) # input from stdin
23811 cat >$tmp/stdin
23812 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23814 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23816 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
23817 esac
23818
b4e70030
JB
23819 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23820 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
23821$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23822 X"$ac_file" : 'X\(//\)[^/]' \| \
23823 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
23824 X"$ac_file" : 'X\(/\)' \| \
23825 . : '\(.\)' 2>/dev/null ||
bec39cab 23826echo X"$ac_file" |
b4e70030
JB
23827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23829 /^X\(\/\/\)$/{ s//\1/; q; }
23830 /^X\(\/\).*/{ s//\1/; q; }
23831 s/.*/./; q'`
23832 { if $as_mkdir_p; then
23833 mkdir -p "$ac_dir"
23834 else
23835 as_dir="$ac_dir"
bec39cab 23836 as_dirs=
b4e70030
JB
23837 while test ! -d "$as_dir"; do
23838 as_dirs="$as_dir $as_dirs"
23839 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
23840$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23841 X"$as_dir" : 'X\(//\)[^/]' \| \
23842 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
23843 X"$as_dir" : 'X\(/\)' \| \
23844 . : '\(.\)' 2>/dev/null ||
bec39cab 23845echo X"$as_dir" |
b4e70030
JB
23846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23848 /^X\(\/\/\)$/{ s//\1/; q; }
23849 /^X\(\/\).*/{ s//\1/; q; }
23850 s/.*/./; q'`
bec39cab 23851 done
b4e70030
JB
23852 test ! -n "$as_dirs" || mkdir $as_dirs
23853 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23854echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 23855 { (exit 1); exit 1; }; }; }
b4e70030 23856
bec39cab
AC
23857 ac_builddir=.
23858
b4e70030 23859if test "$ac_dir" != .; then
bec39cab 23860 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
23861 # A "../" for each directory in $ac_dir_suffix.
23862 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23863else
23864 ac_dir_suffix= ac_top_builddir=
23865fi
bec39cab
AC
23866
23867case $srcdir in
b4e70030 23868 .) # No --srcdir option. We are building in place.
bec39cab 23869 ac_srcdir=.
b4e70030
JB
23870 if test -z "$ac_top_builddir"; then
23871 ac_top_srcdir=.
23872 else
23873 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23874 fi ;;
23875 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 23876 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
23877 ac_top_srcdir=$srcdir ;;
23878 *) # Relative path.
23879 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23880 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
23881esac
23882
b4e70030
JB
23883# Do not use `cd foo && pwd` to compute absolute paths, because
23884# the directories may not exist.
23885case `pwd` in
23886.) ac_abs_builddir="$ac_dir";;
23887*)
23888 case "$ac_dir" in
23889 .) ac_abs_builddir=`pwd`;;
23890 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23891 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23892 esac;;
23893esac
23894case $ac_abs_builddir in
23895.) ac_abs_top_builddir=${ac_top_builddir}.;;
23896*)
23897 case ${ac_top_builddir}. in
23898 .) ac_abs_top_builddir=$ac_abs_builddir;;
23899 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23900 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23901 esac;;
23902esac
23903case $ac_abs_builddir in
23904.) ac_abs_srcdir=$ac_srcdir;;
23905*)
23906 case $ac_srcdir in
23907 .) ac_abs_srcdir=$ac_abs_builddir;;
23908 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23909 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23910 esac;;
23911esac
23912case $ac_abs_builddir in
23913.) ac_abs_top_srcdir=$ac_top_srcdir;;
23914*)
23915 case $ac_top_srcdir in
23916 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23917 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23918 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23919 esac;;
23920esac
c906108c 23921
c906108c 23922
bec39cab
AC
23923 case $INSTALL in
23924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 23925 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 23926 esac
121ce6e5 23927
b4e70030
JB
23928 if test x"$ac_file" != x-; then
23929 { echo "$as_me:$LINENO: creating $ac_file" >&5
23930echo "$as_me: creating $ac_file" >&6;}
23931 rm -f "$ac_file"
23932 fi
23933 # Let's still pretend it is `configure' which instantiates (i.e., don't
23934 # use $as_me), people would be surprised to read:
23935 # /* config.h. Generated by config.status. */
23936 if test x"$ac_file" = x-; then
23937 configure_input=
23938 else
23939 configure_input="$ac_file. "
23940 fi
23941 configure_input=$configure_input"Generated from `echo $ac_file_in |
23942 sed 's,.*/,,'` by configure."
23943
23944 # First look for the input files in the build tree, otherwise in the
23945 # src tree.
23946 ac_file_inputs=`IFS=:
23947 for f in $ac_file_in; do
23948 case $f in
23949 -) echo $tmp/stdin ;;
23950 [\\/$]*)
23951 # Absolute (can't be DOS-style, as IFS=:)
23952 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23953echo "$as_me: error: cannot find input file: $f" >&2;}
23954 { (exit 1); exit 1; }; }
23955 echo "$f";;
23956 *) # Relative
23957 if test -f "$f"; then
23958 # Build tree
23959 echo "$f"
23960 elif test -f "$srcdir/$f"; then
23961 # Source tree
23962 echo "$srcdir/$f"
23963 else
23964 # /dev/null tree
23965 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23966echo "$as_me: error: cannot find input file: $f" >&2;}
23967 { (exit 1); exit 1; }; }
23968 fi;;
23969 esac
23970 done` || { (exit 1); exit 1; }
4e8d927d 23971_ACEOF
bec39cab
AC
23972cat >>$CONFIG_STATUS <<_ACEOF
23973 sed "$ac_vpsub
23974$extrasub
23975_ACEOF
23976cat >>$CONFIG_STATUS <<\_ACEOF
23977:t
23978/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
23979s,@configure_input@,$configure_input,;t t
23980s,@srcdir@,$ac_srcdir,;t t
23981s,@abs_srcdir@,$ac_abs_srcdir,;t t
23982s,@top_srcdir@,$ac_top_srcdir,;t t
23983s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23984s,@builddir@,$ac_builddir,;t t
23985s,@abs_builddir@,$ac_abs_builddir,;t t
23986s,@top_builddir@,$ac_top_builddir,;t t
23987s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23988s,@INSTALL@,$ac_INSTALL,;t t
23989" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23990 rm -f $tmp/stdin
23991 if test x"$ac_file" != x-; then
23992 mv $tmp/out $ac_file
23993 else
23994 cat $tmp/out
23995 rm -f $tmp/out
23996 fi
23997
23998done
23999_ACEOF
24000cat >>$CONFIG_STATUS <<\_ACEOF
24001
24002#
24003# CONFIG_HEADER section.
24004#
24005
24006# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24007# NAME is the cpp macro being defined and VALUE is the value it is being given.
24008#
24009# ac_d sets the value in "#define NAME VALUE" lines.
24010ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24011ac_dB='[ ].*$,\1#\2'
24012ac_dC=' '
24013ac_dD=',;t'
24014# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24015ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24016ac_uB='$,\1#\2define\3'
24017ac_uC=' '
24018ac_uD=',;t'
24019
24020for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24021 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 24022 case $ac_file in
b4e70030
JB
24023 - | *:- | *:-:* ) # input from stdin
24024 cat >$tmp/stdin
24025 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24027 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24028 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24029 * ) ac_file_in=$ac_file.in ;;
c906108c 24030 esac
b4e70030
JB
24031
24032 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24033echo "$as_me: creating $ac_file" >&6;}
24034
24035 # First look for the input files in the build tree, otherwise in the
24036 # src tree.
24037 ac_file_inputs=`IFS=:
24038 for f in $ac_file_in; do
24039 case $f in
24040 -) echo $tmp/stdin ;;
24041 [\\/$]*)
24042 # Absolute (can't be DOS-style, as IFS=:)
24043 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24044echo "$as_me: error: cannot find input file: $f" >&2;}
24045 { (exit 1); exit 1; }; }
24046 # Do quote $f, to prevent DOS paths from being IFS'd.
24047 echo "$f";;
24048 *) # Relative
24049 if test -f "$f"; then
24050 # Build tree
24051 echo "$f"
24052 elif test -f "$srcdir/$f"; then
24053 # Source tree
24054 echo "$srcdir/$f"
24055 else
24056 # /dev/null tree
24057 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24058echo "$as_me: error: cannot find input file: $f" >&2;}
24059 { (exit 1); exit 1; }; }
24060 fi;;
24061 esac
24062 done` || { (exit 1); exit 1; }
24063 # Remove the trailing spaces.
24064 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24065
24066_ACEOF
24067
24068# Transform confdefs.h into two sed scripts, `conftest.defines' and
24069# `conftest.undefs', that substitutes the proper values into
24070# config.h.in to produce config.h. The first handles `#define'
24071# templates, and the second `#undef' templates.
24072# And first: Protect against being on the right side of a sed subst in
24073# config.status. Protect against being in an unquoted here document
24074# in config.status.
24075rm -f conftest.defines conftest.undefs
24076# Using a here document instead of a string reduces the quoting nightmare.
24077# Putting comments in sed scripts is not portable.
24078#
24079# `end' is used to avoid that the second main sed command (meant for
24080# 0-ary CPP macros) applies to n-ary macro definitions.
24081# See the Autoconf documentation for `clear'.
24082cat >confdef2sed.sed <<\_ACEOF
24083s/[\\&,]/\\&/g
24084s,[\\$`],\\&,g
24085t clear
24086: clear
24087s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24088t end
24089s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24090: end
24091_ACEOF
24092# If some macros were called several times there might be several times
24093# the same #defines, which is useless. Nevertheless, we may not want to
24094# sort them, since we want the *last* AC-DEFINE to be honored.
24095uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24096sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24097rm -f confdef2sed.sed
24098
24099# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
24100# example, in the case of _POSIX_SOURCE, which is predefined and required
24101# on some systems where configure will not decide to define it.
b4e70030
JB
24102cat >>conftest.undefs <<\_ACEOF
24103s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24104_ACEOF
24105
24106# Break up conftest.defines because some shells have a limit on the size
24107# of here documents, and old seds have small limits too (100 cmds).
24108echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24109echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24110echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24111echo ' :' >>$CONFIG_STATUS
24112rm -f conftest.tail
24113while grep . conftest.defines >/dev/null
bec39cab 24114do
b4e70030
JB
24115 # Write a limited-size here document to $tmp/defines.sed.
24116 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24117 # Speed up: don't consider the non `#define' lines.
24118 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24119 # Work around the forget-to-reset-the-flag bug.
24120 echo 't clr' >>$CONFIG_STATUS
24121 echo ': clr' >>$CONFIG_STATUS
24122 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 24123 echo 'CEOF
b4e70030
JB
24124 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24125 rm -f $tmp/in
24126 mv $tmp/out $tmp/in
24127' >>$CONFIG_STATUS
24128 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
24129 rm -f conftest.defines
24130 mv conftest.tail conftest.defines
24131done
b4e70030
JB
24132rm -f conftest.defines
24133echo ' fi # grep' >>$CONFIG_STATUS
24134echo >>$CONFIG_STATUS
24135
24136# Break up conftest.undefs because some shells have a limit on the size
24137# of here documents, and old seds have small limits too (100 cmds).
24138echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24139rm -f conftest.tail
24140while grep . conftest.undefs >/dev/null
24141do
24142 # Write a limited-size here document to $tmp/undefs.sed.
24143 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24144 # Speed up: don't consider the non `#undef'
24145 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24146 # Work around the forget-to-reset-the-flag bug.
24147 echo 't clr' >>$CONFIG_STATUS
24148 echo ': clr' >>$CONFIG_STATUS
24149 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24150 echo 'CEOF
24151 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24152 rm -f $tmp/in
24153 mv $tmp/out $tmp/in
24154' >>$CONFIG_STATUS
24155 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24156 rm -f conftest.undefs
24157 mv conftest.tail conftest.undefs
24158done
24159rm -f conftest.undefs
bec39cab
AC
24160
24161cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
24162 # Let's still pretend it is `configure' which instantiates (i.e., don't
24163 # use $as_me), people would be surprised to read:
24164 # /* config.h. Generated by config.status. */
24165 if test x"$ac_file" = x-; then
24166 echo "/* Generated by configure. */" >$tmp/config.h
24167 else
24168 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24169 fi
24170 cat $tmp/in >>$tmp/config.h
24171 rm -f $tmp/in
bec39cab 24172 if test x"$ac_file" != x-; then
b4e70030 24173 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
24174 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24175echo "$as_me: $ac_file is unchanged" >&6;}
24176 else
b4e70030
JB
24177 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24178$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24179 X"$ac_file" : 'X\(//\)[^/]' \| \
24180 X"$ac_file" : 'X\(//\)$' \| \
24181 X"$ac_file" : 'X\(/\)' \| \
24182 . : '\(.\)' 2>/dev/null ||
24183echo X"$ac_file" |
24184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24186 /^X\(\/\/\)$/{ s//\1/; q; }
24187 /^X\(\/\).*/{ s//\1/; q; }
24188 s/.*/./; q'`
24189 { if $as_mkdir_p; then
24190 mkdir -p "$ac_dir"
24191 else
24192 as_dir="$ac_dir"
24193 as_dirs=
24194 while test ! -d "$as_dir"; do
24195 as_dirs="$as_dir $as_dirs"
24196 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24198 X"$as_dir" : 'X\(//\)[^/]' \| \
24199 X"$as_dir" : 'X\(//\)$' \| \
24200 X"$as_dir" : 'X\(/\)' \| \
24201 . : '\(.\)' 2>/dev/null ||
24202echo X"$as_dir" |
24203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24205 /^X\(\/\/\)$/{ s//\1/; q; }
24206 /^X\(\/\).*/{ s//\1/; q; }
24207 s/.*/./; q'`
24208 done
24209 test ! -n "$as_dirs" || mkdir $as_dirs
24210 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24211echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24212 { (exit 1); exit 1; }; }; }
24213
bec39cab 24214 rm -f $ac_file
b4e70030 24215 mv $tmp/config.h $ac_file
bec39cab
AC
24216 fi
24217 else
b4e70030
JB
24218 cat $tmp/config.h
24219 rm -f $tmp/config.h
bec39cab 24220 fi
b4e70030
JB
24221done
24222_ACEOF
24223cat >>$CONFIG_STATUS <<\_ACEOF
24224
24225#
24226# CONFIG_LINKS section.
24227#
24228
24229for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24230 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24231 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 24232
b4e70030
JB
24233 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24234echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
24235
24236 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
24237 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24238echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24239 { (exit 1); exit 1; }; }
c906108c 24240 fi
b4e70030
JB
24241 rm -f $ac_dest
24242
24243 # Make relative symlinks.
24244 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24245$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24246 X"$ac_dest" : 'X\(//\)[^/]' \| \
24247 X"$ac_dest" : 'X\(//\)$' \| \
24248 X"$ac_dest" : 'X\(/\)' \| \
24249 . : '\(.\)' 2>/dev/null ||
24250echo X"$ac_dest" |
24251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24253 /^X\(\/\/\)$/{ s//\1/; q; }
24254 /^X\(\/\).*/{ s//\1/; q; }
24255 s/.*/./; q'`
24256 { if $as_mkdir_p; then
24257 mkdir -p "$ac_dest_dir"
24258 else
24259 as_dir="$ac_dest_dir"
24260 as_dirs=
24261 while test ! -d "$as_dir"; do
24262 as_dirs="$as_dir $as_dirs"
24263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24265 X"$as_dir" : 'X\(//\)[^/]' \| \
24266 X"$as_dir" : 'X\(//\)$' \| \
24267 X"$as_dir" : 'X\(/\)' \| \
24268 . : '\(.\)' 2>/dev/null ||
24269echo X"$as_dir" |
24270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24272 /^X\(\/\/\)$/{ s//\1/; q; }
24273 /^X\(\/\).*/{ s//\1/; q; }
24274 s/.*/./; q'`
24275 done
24276 test ! -n "$as_dirs" || mkdir $as_dirs
24277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24278echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24279 { (exit 1); exit 1; }; }; }
24280
24281 ac_builddir=.
24282
24283if test "$ac_dest_dir" != .; then
24284 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24285 # A "../" for each directory in $ac_dir_suffix.
24286 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24287else
24288 ac_dir_suffix= ac_top_builddir=
24289fi
24290
24291case $srcdir in
24292 .) # No --srcdir option. We are building in place.
24293 ac_srcdir=.
24294 if test -z "$ac_top_builddir"; then
24295 ac_top_srcdir=.
24296 else
24297 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24298 fi ;;
24299 [\\/]* | ?:[\\/]* ) # Absolute path.
24300 ac_srcdir=$srcdir$ac_dir_suffix;
24301 ac_top_srcdir=$srcdir ;;
24302 *) # Relative path.
24303 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24304 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24305esac
24306
24307# Do not use `cd foo && pwd` to compute absolute paths, because
24308# the directories may not exist.
24309case `pwd` in
24310.) ac_abs_builddir="$ac_dest_dir";;
24311*)
24312 case "$ac_dest_dir" in
24313 .) ac_abs_builddir=`pwd`;;
24314 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24315 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24316 esac;;
24317esac
24318case $ac_abs_builddir in
24319.) ac_abs_top_builddir=${ac_top_builddir}.;;
24320*)
24321 case ${ac_top_builddir}. in
24322 .) ac_abs_top_builddir=$ac_abs_builddir;;
24323 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24324 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24325 esac;;
24326esac
24327case $ac_abs_builddir in
24328.) ac_abs_srcdir=$ac_srcdir;;
24329*)
24330 case $ac_srcdir in
24331 .) ac_abs_srcdir=$ac_abs_builddir;;
24332 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24333 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24334 esac;;
24335esac
24336case $ac_abs_builddir in
24337.) ac_abs_top_srcdir=$ac_top_srcdir;;
24338*)
24339 case $ac_top_srcdir in
24340 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24341 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24342 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24343 esac;;
24344esac
24345
bec39cab
AC
24346
24347 case $srcdir in
24348 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 24349 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 24350 esac
b4e70030
JB
24351
24352 # Try a symlink, then a hard link, then a copy.
24353 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24354 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24355 cp -p $srcdir/$ac_source $ac_dest ||
24356 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24357echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 24358 { (exit 1); exit 1; }; }
b4e70030
JB
24359done
24360_ACEOF
24361cat >>$CONFIG_STATUS <<\_ACEOF
24362
24363#
24364# CONFIG_COMMANDS section.
24365#
24366for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24367 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24368 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24369 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24370$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24371 X"$ac_dest" : 'X\(//\)[^/]' \| \
24372 X"$ac_dest" : 'X\(//\)$' \| \
24373 X"$ac_dest" : 'X\(/\)' \| \
24374 . : '\(.\)' 2>/dev/null ||
24375echo X"$ac_dest" |
24376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24378 /^X\(\/\/\)$/{ s//\1/; q; }
24379 /^X\(\/\).*/{ s//\1/; q; }
24380 s/.*/./; q'`
24381 { if $as_mkdir_p; then
24382 mkdir -p "$ac_dir"
24383 else
24384 as_dir="$ac_dir"
24385 as_dirs=
24386 while test ! -d "$as_dir"; do
24387 as_dirs="$as_dir $as_dirs"
24388 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24390 X"$as_dir" : 'X\(//\)[^/]' \| \
24391 X"$as_dir" : 'X\(//\)$' \| \
24392 X"$as_dir" : 'X\(/\)' \| \
24393 . : '\(.\)' 2>/dev/null ||
24394echo X"$as_dir" |
24395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24397 /^X\(\/\/\)$/{ s//\1/; q; }
24398 /^X\(\/\).*/{ s//\1/; q; }
24399 s/.*/./; q'`
24400 done
24401 test ! -n "$as_dirs" || mkdir $as_dirs
24402 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24403echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24404 { (exit 1); exit 1; }; }; }
24405
24406 ac_builddir=.
24407
24408if test "$ac_dir" != .; then
24409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24410 # A "../" for each directory in $ac_dir_suffix.
24411 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24412else
24413 ac_dir_suffix= ac_top_builddir=
24414fi
24415
24416case $srcdir in
24417 .) # No --srcdir option. We are building in place.
24418 ac_srcdir=.
24419 if test -z "$ac_top_builddir"; then
24420 ac_top_srcdir=.
24421 else
24422 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24423 fi ;;
24424 [\\/]* | ?:[\\/]* ) # Absolute path.
24425 ac_srcdir=$srcdir$ac_dir_suffix;
24426 ac_top_srcdir=$srcdir ;;
24427 *) # Relative path.
24428 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24429 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24430esac
24431
24432# Do not use `cd foo && pwd` to compute absolute paths, because
24433# the directories may not exist.
24434case `pwd` in
24435.) ac_abs_builddir="$ac_dir";;
24436*)
24437 case "$ac_dir" in
24438 .) ac_abs_builddir=`pwd`;;
24439 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24440 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24441 esac;;
24442esac
24443case $ac_abs_builddir in
24444.) ac_abs_top_builddir=${ac_top_builddir}.;;
24445*)
24446 case ${ac_top_builddir}. in
24447 .) ac_abs_top_builddir=$ac_abs_builddir;;
24448 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24449 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24450 esac;;
24451esac
24452case $ac_abs_builddir in
24453.) ac_abs_srcdir=$ac_srcdir;;
24454*)
24455 case $ac_srcdir in
24456 .) ac_abs_srcdir=$ac_abs_builddir;;
24457 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24458 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24459 esac;;
24460esac
24461case $ac_abs_builddir in
24462.) ac_abs_top_srcdir=$ac_top_srcdir;;
24463*)
24464 case $ac_top_srcdir in
24465 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24466 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24467 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24468 esac;;
24469esac
bec39cab 24470
bec39cab 24471
b4e70030
JB
24472 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24473echo "$as_me: executing $ac_dest commands" >&6;}
24474 case $ac_dest in
24475 gdb_stdint.h )
4e8d927d
DJ
24476if test "$GCC" = yes; then
24477 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24478else
24479 echo "/* generated for $CC */" > tmp-stdint.h
24480fi
24481
24482sed 's/^ *//' >> tmp-stdint.h <<EOF
24483
24484 #ifndef GCC_GENERATED_STDINT_H
24485 #define GCC_GENERATED_STDINT_H 1
24486
24487 #include <sys/types.h>
24488EOF
24489
24490if test "$acx_cv_header_stdint" != stdint.h; then
24491 echo "#include <stddef.h>" >> tmp-stdint.h
24492fi
24493if test "$acx_cv_header_stdint" != stddef.h; then
24494 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24495fi
24496
24497sed 's/^ *//' >> tmp-stdint.h <<EOF
24498 /* glibc uses these symbols as guards to prevent redefinitions. */
24499 #ifdef __int8_t_defined
24500 #define _INT8_T
24501 #define _INT16_T
24502 #define _INT32_T
24503 #endif
24504 #ifdef __uint32_t_defined
24505 #define _UINT32_T
24506 #endif
24507
24508EOF
24509
24510# ----------------- done header, emit basic int types -------------
24511if test "$acx_cv_header_stdint" = stddef.h; then
24512 sed 's/^ *//' >> tmp-stdint.h <<EOF
24513
24514 #ifndef _UINT8_T
24515 #define _UINT8_T
24516 typedef unsigned $acx_cv_type_int8_t uint8_t;
24517 #endif
24518
24519 #ifndef _UINT16_T
24520 #define _UINT16_T
24521 typedef unsigned $acx_cv_type_int16_t uint16_t;
24522 #endif
24523
24524 #ifndef _UINT32_T
24525 #define _UINT32_T
24526 typedef unsigned $acx_cv_type_int32_t uint32_t;
24527 #endif
24528
24529 #ifndef _INT8_T
24530 #define _INT8_T
24531 typedef $acx_cv_type_int8_t int8_t;
24532 #endif
24533
24534 #ifndef _INT16_T
24535 #define _INT16_T
24536 typedef $acx_cv_type_int16_t int16_t;
24537 #endif
24538
24539 #ifndef _INT32_T
24540 #define _INT32_T
24541 typedef $acx_cv_type_int32_t int32_t;
24542 #endif
24543EOF
24544elif test "$ac_cv_type_u_int32_t" = yes; then
24545 sed 's/^ *//' >> tmp-stdint.h <<EOF
24546
24547 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24548 #ifndef _INT8_T
24549 #define _INT8_T
24550 #endif
24551 #ifndef _INT16_T
24552 #define _INT16_T
24553 #endif
24554 #ifndef _INT32_T
24555 #define _INT32_T
24556 #endif
24557
24558 #ifndef _UINT8_T
24559 #define _UINT8_T
24560 typedef u_int8_t uint8_t;
24561 #endif
24562
24563 #ifndef _UINT16_T
24564 #define _UINT16_T
24565 typedef u_int16_t uint16_t;
24566 #endif
24567
24568 #ifndef _UINT32_T
24569 #define _UINT32_T
24570 typedef u_int32_t uint32_t;
24571 #endif
24572EOF
24573else
24574 sed 's/^ *//' >> tmp-stdint.h <<EOF
24575
24576 /* Some systems have guard macros to prevent redefinitions, define them. */
24577 #ifndef _INT8_T
24578 #define _INT8_T
24579 #endif
24580 #ifndef _INT16_T
24581 #define _INT16_T
24582 #endif
24583 #ifndef _INT32_T
24584 #define _INT32_T
24585 #endif
24586 #ifndef _UINT8_T
24587 #define _UINT8_T
24588 #endif
24589 #ifndef _UINT16_T
24590 #define _UINT16_T
24591 #endif
24592 #ifndef _UINT32_T
24593 #define _UINT32_T
24594 #endif
24595EOF
24596fi
24597
24598# ------------- done basic int types, emit int64_t types ------------
24599if test "$ac_cv_type_uint64_t" = yes; then
24600 sed 's/^ *//' >> tmp-stdint.h <<EOF
24601
24602 /* system headers have good uint64_t and int64_t */
24603 #ifndef _INT64_T
24604 #define _INT64_T
24605 #endif
24606 #ifndef _UINT64_T
24607 #define _UINT64_T
24608 #endif
24609EOF
24610elif test "$ac_cv_type_u_int64_t" = yes; then
24611 sed 's/^ *//' >> tmp-stdint.h <<EOF
24612
24613 /* system headers have an u_int64_t (and int64_t) */
24614 #ifndef _INT64_T
24615 #define _INT64_T
24616 #endif
24617 #ifndef _UINT64_T
24618 #define _UINT64_T
24619 typedef u_int64_t uint64_t;
24620 #endif
24621EOF
24622elif test -n "$acx_cv_type_int64_t"; then
24623 sed 's/^ *//' >> tmp-stdint.h <<EOF
24624
24625 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24626 #ifndef _INT64_T
24627 #define _INT64_T
24628 typedef $acx_cv_type_int64_t int64_t;
24629 #endif
24630 #ifndef _UINT64_T
24631 #define _UINT64_T
24632 typedef unsigned $acx_cv_type_int64_t uint64_t;
24633 #endif
24634EOF
24635else
24636 sed 's/^ *//' >> tmp-stdint.h <<EOF
24637
24638 /* some common heuristics for int64_t, using compiler-specific tests */
24639 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24640 #ifndef _INT64_T
24641 #define _INT64_T
24642 typedef long long int64_t;
24643 #endif
24644 #ifndef _UINT64_T
24645 #define _UINT64_T
24646 typedef unsigned long long uint64_t;
24647 #endif
24648
24649 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24650 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24651 does not implement __extension__. But that compiler doesn't define
24652 __GNUC_MINOR__. */
24653 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24654 # define __extension__
24655 # endif
24656
24657 # ifndef _INT64_T
24658 # define _INT64_T
24659 __extension__ typedef long long int64_t;
24660 # endif
24661 # ifndef _UINT64_T
24662 # define _UINT64_T
24663 __extension__ typedef unsigned long long uint64_t;
24664 # endif
24665
24666 #elif !defined __STRICT_ANSI__
24667 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24668
24669 # ifndef _INT64_T
24670 # define _INT64_T
24671 typedef __int64 int64_t;
24672 # endif
24673 # ifndef _UINT64_T
24674 # define _UINT64_T
24675 typedef unsigned __int64 uint64_t;
24676 # endif
24677 # endif /* compiler */
24678
24679 #endif /* ANSI version */
24680EOF
24681fi
24682
24683# ------------- done int64_t types, emit intptr types ------------
24684if test "$ac_cv_type_uintptr_t" != yes; then
24685 sed 's/^ *//' >> tmp-stdint.h <<EOF
24686
24687 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24688 typedef u$acx_cv_type_intptr_t uintptr_t;
24689 typedef $acx_cv_type_intptr_t intptr_t;
24690EOF
24691fi
24692
24693# ------------- done intptr types, emit int_least types ------------
24694if test "$ac_cv_type_int_least32_t" != yes; then
24695 sed 's/^ *//' >> tmp-stdint.h <<EOF
24696
24697 /* Define int_least types */
24698 typedef int8_t int_least8_t;
24699 typedef int16_t int_least16_t;
24700 typedef int32_t int_least32_t;
24701 #ifdef _INT64_T
24702 typedef int64_t int_least64_t;
24703 #endif
24704
24705 typedef uint8_t uint_least8_t;
24706 typedef uint16_t uint_least16_t;
24707 typedef uint32_t uint_least32_t;
24708 #ifdef _UINT64_T
24709 typedef uint64_t uint_least64_t;
24710 #endif
24711EOF
24712fi
24713
24714# ------------- done intptr types, emit int_fast types ------------
24715if test "$ac_cv_type_int_fast32_t" != yes; then
24716 sed 's/^ *//' >> tmp-stdint.h <<EOF
24717
24718 /* Define int_fast types. short is often slow */
24719 typedef int8_t int_fast8_t;
24720 typedef int int_fast16_t;
24721 typedef int32_t int_fast32_t;
24722 #ifdef _INT64_T
24723 typedef int64_t int_fast64_t;
24724 #endif
24725
24726 typedef uint8_t uint_fast8_t;
24727 typedef unsigned int uint_fast16_t;
24728 typedef uint32_t uint_fast32_t;
24729 #ifdef _UINT64_T
24730 typedef uint64_t uint_fast64_t;
24731 #endif
24732EOF
24733fi
24734
24735if test "$ac_cv_type_uintmax_t" != yes; then
24736 sed 's/^ *//' >> tmp-stdint.h <<EOF
24737
24738 /* Define intmax based on what we found */
24739 #ifdef _INT64_T
24740 typedef int64_t intmax_t;
24741 #else
24742 typedef long intmax_t;
24743 #endif
24744 #ifdef _UINT64_T
24745 typedef uint64_t uintmax_t;
24746 #else
24747 typedef unsigned long uintmax_t;
24748 #endif
24749EOF
24750fi
24751
24752sed 's/^ *//' >> tmp-stdint.h <<EOF
24753
24754 #endif /* GCC_GENERATED_STDINT_H */
24755EOF
24756
24757if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
24758 rm -f tmp-stdint.h
24759else
24760 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
24761fi
24762
4e8d927d 24763 ;;
b4e70030 24764 default )
c906108c 24765
2c0fc042 24766sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
24767/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
24768/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
24769mv -f Makefile.tmp Makefile
24770
2acceee2 24771
c906108c
SS
24772case x$CONFIG_HEADERS in
24773xconfig.h:config.in)
24774echo > stamp-h ;;
24775esac
bec39cab
AC
24776 ;;
24777 esac
b4e70030
JB
24778done
24779_ACEOF
c906108c 24780
b4e70030 24781cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
24782
24783{ (exit 0); exit 0; }
24784_ACEOF
c906108c 24785chmod +x $CONFIG_STATUS
bec39cab
AC
24786ac_clean_files=$ac_clean_files_save
24787
24788
24789# configure is writing to config.log, and then calls config.status.
24790# config.status does its own redirection, appending to config.log.
24791# Unfortunately, on DOS this fails, as config.log is still kept open
24792# by configure, so config.status won't be able to write to it; its
24793# output is simply discarded. So we exec the FD to /dev/null,
24794# effectively closing config.log, so it can be properly (re)opened and
24795# appended to by config.status. When coming back to configure, we
24796# need to make the FD available again.
24797if test "$no_create" != yes; then
24798 ac_cs_success=:
24799 ac_config_status_args=
24800 test "$silent" = yes &&
24801 ac_config_status_args="$ac_config_status_args --quiet"
24802 exec 5>/dev/null
24803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24804 exec 5>>config.log
24805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24806 # would make configure fail if this is the last instruction.
24807 $ac_cs_success || { (exit 1); exit 1; }
24808fi
c906108c 24809
bec39cab
AC
24810#
24811# CONFIG_SUBDIRS section.
24812#
c906108c
SS
24813if test "$no_recursion" != yes; then
24814
24815 # Remove --cache-file and --srcdir arguments so they do not pile up.
24816 ac_sub_configure_args=
24817 ac_prev=
b4e70030 24818 for ac_arg in $ac_configure_args; do
c906108c
SS
24819 if test -n "$ac_prev"; then
24820 ac_prev=
24821 continue
24822 fi
bec39cab 24823 case $ac_arg in
c906108c
SS
24824 -cache-file | --cache-file | --cache-fil | --cache-fi \
24825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24826 ac_prev=cache_file ;;
24827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
24828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24829 | --c=*)
24830 ;;
24831 --config-cache | -C)
c906108c
SS
24832 ;;
24833 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24834 ac_prev=srcdir ;;
24835 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24836 ;;
bec39cab
AC
24837 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24838 ac_prev=prefix ;;
24839 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24840 ;;
b4e70030 24841 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
24842 esac
24843 done
24844
bec39cab
AC
24845 # Always prepend --prefix to ensure using the same prefix
24846 # in subdir configurations.
24847 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24848
b4e70030 24849 ac_popdir=`pwd`
bec39cab 24850 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
24851
24852 # Do not complain, so a configure script can configure whichever
24853 # parts of a large source tree are present.
bec39cab 24854 test -d $srcdir/$ac_dir || continue
c906108c 24855
b4e70030
JB
24856 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24857echo "$as_me: configuring in $ac_dir" >&6;}
24858 { if $as_mkdir_p; then
24859 mkdir -p "$ac_dir"
24860 else
24861 as_dir="$ac_dir"
bec39cab 24862 as_dirs=
b4e70030
JB
24863 while test ! -d "$as_dir"; do
24864 as_dirs="$as_dir $as_dirs"
24865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
24866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24867 X"$as_dir" : 'X\(//\)[^/]' \| \
24868 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
24869 X"$as_dir" : 'X\(/\)' \| \
24870 . : '\(.\)' 2>/dev/null ||
bec39cab 24871echo X"$as_dir" |
b4e70030
JB
24872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24874 /^X\(\/\/\)$/{ s//\1/; q; }
24875 /^X\(\/\).*/{ s//\1/; q; }
24876 s/.*/./; q'`
bec39cab 24877 done
b4e70030
JB
24878 test ! -n "$as_dirs" || mkdir $as_dirs
24879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24880echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 24881 { (exit 1); exit 1; }; }; }
b4e70030 24882
bec39cab
AC
24883 ac_builddir=.
24884
b4e70030 24885if test "$ac_dir" != .; then
bec39cab 24886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
24887 # A "../" for each directory in $ac_dir_suffix.
24888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24889else
24890 ac_dir_suffix= ac_top_builddir=
24891fi
bec39cab
AC
24892
24893case $srcdir in
b4e70030 24894 .) # No --srcdir option. We are building in place.
bec39cab 24895 ac_srcdir=.
b4e70030
JB
24896 if test -z "$ac_top_builddir"; then
24897 ac_top_srcdir=.
24898 else
24899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24900 fi ;;
24901 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 24902 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
24903 ac_top_srcdir=$srcdir ;;
24904 *) # Relative path.
24905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24907esac
24908
24909# Do not use `cd foo && pwd` to compute absolute paths, because
24910# the directories may not exist.
24911case `pwd` in
24912.) ac_abs_builddir="$ac_dir";;
24913*)
24914 case "$ac_dir" in
24915 .) ac_abs_builddir=`pwd`;;
24916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24918 esac;;
24919esac
24920case $ac_abs_builddir in
24921.) ac_abs_top_builddir=${ac_top_builddir}.;;
24922*)
24923 case ${ac_top_builddir}. in
24924 .) ac_abs_top_builddir=$ac_abs_builddir;;
24925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24927 esac;;
24928esac
24929case $ac_abs_builddir in
24930.) ac_abs_srcdir=$ac_srcdir;;
24931*)
24932 case $ac_srcdir in
24933 .) ac_abs_srcdir=$ac_abs_builddir;;
24934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24936 esac;;
24937esac
24938case $ac_abs_builddir in
24939.) ac_abs_top_srcdir=$ac_top_srcdir;;
24940*)
24941 case $ac_top_srcdir in
24942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24945 esac;;
bec39cab 24946esac
c906108c 24947
c906108c 24948
b4e70030 24949 cd $ac_dir
c906108c
SS
24950
24951 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
24952 if test -f $ac_srcdir/configure.gnu; then
24953 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24954 elif test -f $ac_srcdir/configure; then
24955 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24956 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
24957 ac_sub_configure=$ac_configure
24958 else
bec39cab
AC
24959 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24960echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
24961 ac_sub_configure=
24962 fi
24963
24964 # The recursion is here.
24965 if test -n "$ac_sub_configure"; then
c906108c 24966 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
24967 case $cache_file in
24968 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
24969 *) # Relative path.
24970 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 24971 esac
c906108c 24972
bec39cab
AC
24973 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24974echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 24975 # The eval makes quoting arguments work.
b4e70030
JB
24976 eval $ac_sub_configure $ac_sub_configure_args \
24977 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
24978 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24979echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24980 { (exit 1); exit 1; }; }
c906108c
SS
24981 fi
24982
b4e70030 24983 cd $ac_popdir
c906108c
SS
24984 done
24985fi
24986
24987
24988exit 0
This page took 2.135273 seconds and 4 git commands to generate.